blob: 8b34b6136df184147261b0360a7b9ba29b54a424 [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
John Criswell7ec78aa2003-10-16 01:49:00 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
John Criswell12399a12003-09-30 15:55:44 +0000430ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000431ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446# include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451# include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462# include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000470ac_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 subdirs 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 PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000471ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
958 cat <<_ACEOF
959\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981 cat <<_ACEOF
982Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
984 [$ac_default_prefix]
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1008_ACEOF
1009
1010 cat <<\_ACEOF
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$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 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell7ec78aa2003-10-16 01:49:00 +00001524if test -d ${srcdir}/projects/sample
1525then
1526
1527
1528subdirs="$subdirs projects/sample"
1529
1530fi
1531
John Criswell12399a12003-09-30 15:55:44 +00001532if test -d ${srcdir}/projects/reopt
1533then
1534
1535
1536subdirs="$subdirs projects/reopt"
1537
1538fi
1539
John Criswell559a6c12003-09-30 16:31:48 +00001540if test -d ${srcdir}/projects/poolalloc
1541then
1542
1543
1544subdirs="$subdirs projects/poolalloc"
1545
1546fi
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/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/Analysis/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/Analysis/DataStructure/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/Analysis/IPA/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/Analysis/LiveVar/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/AsmParser/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/Bytecode/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/Bytecode/Reader/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/Bytecode/Writer/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/CWriter/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/CodeGen/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/CodeGen/InstrSched/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/CodeGen/InstrSelection/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/CodeGen/ModuloScheduling/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/CodeGen/RegAlloc/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/CodeGen/SelectionDAG/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/ExecutionEngine/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/ExecutionEngine/Interpreter/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/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
Brian Gaekec45be042003-10-07 06:01:34 +00001616 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/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/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell613758d2003-09-11 18:03:50 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell613758d2003-09-11 18:03:50 +00001679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell613758d2003-09-11 18:03:50 +00001685 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell759c3ed2003-10-28 19:21:11 +00001697 ac_config_commands="$ac_config_commands runtime/libprofile/Makefile"
1698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswellf424d742003-10-07 21:13:47 +00001706 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1707
1708
1709 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
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/TEST.aa.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/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
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/TEST.example.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/TEST.nightly.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/TEST.buildrepo.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/TEST.jit.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/TEST.nightly.report"
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/TEST.dsgraph.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/TEST.jit.report"
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/TEST.typesafe.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/TEST.dsgraph.gnuplot"
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/TEST.micro.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/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/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell613758d2003-09-11 18:03:50 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell5ab73462003-10-09 15:44:28 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/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/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell987e49c2003-10-10 01:11:54 +00001805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1806
1807
1808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell0c38eaf2003-09-10 15:17:25 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
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/Applications/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/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell39e83892003-09-12 16:36:17 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1839
1840
1841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/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/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
Misha Brukman811ce9f2003-11-12 22:16:51 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/Makefile"
1851
1852
1853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile"
1854
1855
1856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1857
1858
1859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1863
1864
1865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1866
1867
1868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1869
1870
1871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1872
1873
1874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1875
1876
1877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1878
1879
1880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1881
1882
1883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1884
1885
1886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1887
1888
1889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell48e3cb92003-09-12 16:31:43 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell48e3cb92003-09-12 16:31:43 +00001922 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell48e3cb92003-09-12 16:31:43 +00001925 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell48e3cb92003-09-12 16:31:43 +00001928 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell48e3cb92003-09-12 16:31:43 +00001931 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell48e3cb92003-09-12 16:31:43 +00001934 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell48e3cb92003-09-12 16:31:43 +00001937 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell48e3cb92003-09-12 16:31:43 +00001940 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell48e3cb92003-09-12 16:31:43 +00001943 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswell48e3cb92003-09-12 16:31:43 +00001946 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001947
1948
John Criswell48e3cb92003-09-12 16:31:43 +00001949 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell48e3cb92003-09-12 16:31:43 +00001952 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001959
1960
John Criswell39e83892003-09-12 16:36:17 +00001961 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001962
1963
John Criswell48e3cb92003-09-12 16:31:43 +00001964 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell48e3cb92003-09-12 16:31:43 +00001967 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell48e3cb92003-09-12 16:31:43 +00001970 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell48e3cb92003-09-12 16:31:43 +00001973 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell48e3cb92003-09-12 16:31:43 +00001976 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell48e3cb92003-09-12 16:31:43 +00001979 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell48e3cb92003-09-12 16:31:43 +00001982 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell48e3cb92003-09-12 16:31:43 +00001985 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswellffaaf3b2003-09-10 18:38:44 +00001994 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1995
1996
1997 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1998
1999
2000 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
2001
2002
2003 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
2004
2005
2006 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
2007
2008
2009 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
2010
2011
John Criswell0c38eaf2003-09-10 15:17:25 +00002012 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002013
2014
John Criswell0c38eaf2003-09-10 15:17:25 +00002015 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002016
2017
John Criswell0afe8252003-09-11 20:53:48 +00002018 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
2019
2020
John Criswell67181ca2003-09-26 14:53:17 +00002021 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
2022
2023
John Criswell68886d42003-09-26 19:51:42 +00002024 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
2025
2026
2027 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
2028
2029
John Criswellc66bbd52003-09-29 21:35:32 +00002030 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
2031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands 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 tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswellddb7b4e2003-09-16 15:54:19 +00002057 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
Chris Lattnerebd70302003-09-13 03:29:53 +00002060 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2061
2062
John Criswellddb7b4e2003-09-16 15:54:19 +00002063 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2064
2065
John Criswell0c38eaf2003-09-10 15:17:25 +00002066 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002067
2068
John Criswellddb7b4e2003-09-16 15:54:19 +00002069 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2070
2071
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00002072 ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2073
2074
John Criswell759c3ed2003-10-28 19:21:11 +00002075 ac_config_commands="$ac_config_commands tools/llvm-prof/Makefile"
2076
2077
John Criswellddb7b4e2003-09-16 15:54:19 +00002078 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2079
2080
Brian Gaekec45be042003-10-07 06:01:34 +00002081 ac_config_commands="$ac_config_commands utils/Makefile"
2082
2083
2084 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2085
2086
2087 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2088
2089
2090 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2091
2092
John Criswell0c38eaf2003-09-10 15:17:25 +00002093 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002094
2095
John Criswell0c38eaf2003-09-10 15:17:25 +00002096 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002097
2098
John Criswell0c38eaf2003-09-10 15:17:25 +00002099 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002100
2101
John Criswell0c38eaf2003-09-10 15:17:25 +00002102 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002103
2104
John Criswell0c38eaf2003-09-10 15:17:25 +00002105 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002106
2107
Brian Gaeke866f10c2003-11-24 02:54:57 +00002108 ac_config_commands="$ac_config_commands projects/Stacker/Makefile"
2109
2110
2111 ac_config_commands="$ac_config_commands projects/Stacker/lib/Makefile"
2112
2113
2114 ac_config_commands="$ac_config_commands projects/Stacker/lib/compiler/Makefile"
2115
2116
2117 ac_config_commands="$ac_config_commands projects/Stacker/lib/runtime/Makefile"
2118
2119
2120 ac_config_commands="$ac_config_commands projects/Stacker/tools/Makefile"
2121
2122
2123 ac_config_commands="$ac_config_commands projects/Stacker/tools/stkrc/Makefile"
2124
2125
2126 ac_config_commands="$ac_config_commands projects/Stacker/test/Makefile"
2127
2128
2129 ac_config_commands="$ac_config_commands projects/Stacker/samples/Makefile"
2130
2131
John Criswell392aaa32003-07-22 19:18:09 +00002132
2133
John Criswell7a73b802003-06-30 21:59:07 +00002134# Find a good install program. We prefer a C program (faster),
2135# so one script is as good as another. But avoid the broken or
2136# incompatible versions:
2137# SysV /etc/install, /usr/sbin/install
2138# SunOS /usr/etc/install
2139# IRIX /sbin/install
2140# AIX /bin/install
2141# AmigaOS /C/install, which installs bootblocks on floppy discs
2142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2143# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2145# ./install, which can be erroneously created by make from ./install.sh.
2146echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2147echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2148if test -z "$INSTALL"; then
2149if test "${ac_cv_path_install+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 # Account for people who put trailing slashes in PATH elements.
2158case $as_dir/ in
2159 ./ | .// | /cC/* | \
2160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2161 /usr/ucb/* ) ;;
2162 *)
2163 # OSF1 and SCO ODT 3.0 have their own names for install.
2164 # Don't use installbsd from OSF since it installs stuff as root
2165 # by default.
2166 for ac_prog in ginstall scoinst install; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2169 if test $ac_prog = install &&
2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171 # AIX install. It has an incompatible calling convention.
2172 :
2173 elif test $ac_prog = install &&
2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2175 # program-specific install script used by HP pwplus--don't use.
2176 :
2177 else
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179 break 3
2180 fi
2181 fi
2182 done
2183 done
2184 ;;
2185esac
2186done
2187
2188
2189fi
2190 if test "${ac_cv_path_install+set}" = set; then
2191 INSTALL=$ac_cv_path_install
2192 else
2193 # As a last resort, use the slow shell script. We don't cache a
2194 # path for INSTALL within a source directory, because that will
2195 # break other packages using the cache if that directory is
2196 # removed, or if the path is relative.
2197 INSTALL=$ac_install_sh
2198 fi
2199fi
2200echo "$as_me:$LINENO: result: $INSTALL" >&5
2201echo "${ECHO_T}$INSTALL" >&6
2202
2203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204# It thinks the first close brace ends the variable substitution.
2205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2206
2207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2208
2209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2210
2211
2212# Make sure we can run config.sub.
2213$ac_config_sub sun4 >/dev/null 2>&1 ||
2214 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2215echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2216 { (exit 1); exit 1; }; }
2217
2218echo "$as_me:$LINENO: checking build system type" >&5
2219echo $ECHO_N "checking build system type... $ECHO_C" >&6
2220if test "${ac_cv_build+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223 ac_cv_build_alias=$build_alias
2224test -z "$ac_cv_build_alias" &&
2225 ac_cv_build_alias=`$ac_config_guess`
2226test -z "$ac_cv_build_alias" &&
2227 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2228echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2229 { (exit 1); exit 1; }; }
2230ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2231 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2232echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2234
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2237echo "${ECHO_T}$ac_cv_build" >&6
2238build=$ac_cv_build
2239build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2240build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2241build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2242
2243
2244echo "$as_me:$LINENO: checking host system type" >&5
2245echo $ECHO_N "checking host system type... $ECHO_C" >&6
2246if test "${ac_cv_host+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 ac_cv_host_alias=$host_alias
2250test -z "$ac_cv_host_alias" &&
2251 ac_cv_host_alias=$ac_cv_build_alias
2252ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2253 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2254echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2255 { (exit 1); exit 1; }; }
2256
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2259echo "${ECHO_T}$ac_cv_host" >&6
2260host=$ac_cv_host
2261host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2262host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2263host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2264
2265
2266echo "$as_me:$LINENO: checking target system type" >&5
2267echo $ECHO_N "checking target system type... $ECHO_C" >&6
2268if test "${ac_cv_target+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271 ac_cv_target_alias=$target_alias
2272test "x$ac_cv_target_alias" = "x" &&
2273 ac_cv_target_alias=$ac_cv_host_alias
2274ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2275 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2276echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2277 { (exit 1); exit 1; }; }
2278
2279fi
2280echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2281echo "${ECHO_T}$ac_cv_target" >&6
2282target=$ac_cv_target
2283target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2284target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2285target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2286
2287
2288# The aliases save the names the user supplied, while $host etc.
2289# will get canonicalized.
2290test -n "$target_alias" &&
2291 test "$program_prefix$program_suffix$program_transform_name" = \
2292 NONENONEs,x,x, &&
2293 program_prefix=${target_alias}-
2294
2295case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002296 *-*-linux*)
2297 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00002298
Brian Gaekef3b24102003-11-16 18:38:14 +00002299 if test -d /home/vadve/lattner/local/x86/llvm-gcc
2300 then
2301 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002302
Brian Gaekef3b24102003-11-16 18:38:14 +00002303 fi
John Criswell7a73b802003-06-30 21:59:07 +00002304 ;;
2305
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002306 *-*-solaris*)
2307 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00002308
Brian Gaekef3b24102003-11-16 18:38:14 +00002309 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
2310 then
2311 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002312
Brian Gaekef3b24102003-11-16 18:38:14 +00002313 fi
John Criswell7a73b802003-06-30 21:59:07 +00002314 ;;
2315
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002316 *-*-darwin*)
2317 OS=Darwin
2318
2319 ;;
2320
John Criswell7a73b802003-06-30 21:59:07 +00002321 *) OS=Unknown
2322
2323 ;;
2324esac
2325
2326case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002327 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00002328
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002329 ;;
John Criswell7a73b802003-06-30 21:59:07 +00002330esac
2331
John Criswell76595452003-07-01 22:07:39 +00002332case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002333 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00002334
2335 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002336 sparc*-*) ARCH=Sparc
2337
2338 ;;
2339 powerpc*-*) ARCH=PowerPC
2340
2341 ;;
2342 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00002343
2344 ;;
2345esac
2346
John Criswell7a73b802003-06-30 21:59:07 +00002347
2348ac_ext=cc
2349ac_cpp='$CXXCPP $CPPFLAGS'
2350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2353if test -n "$ac_tool_prefix"; then
2354 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2355 do
2356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2357set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2358echo "$as_me:$LINENO: checking for $ac_word" >&5
2359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360if test "${ac_cv_prog_CXX+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363 if test -n "$CXX"; then
2364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377done
2378done
2379
2380fi
2381fi
2382CXX=$ac_cv_prog_CXX
2383if test -n "$CXX"; then
2384 echo "$as_me:$LINENO: result: $CXX" >&5
2385echo "${ECHO_T}$CXX" >&6
2386else
2387 echo "$as_me:$LINENO: result: no" >&5
2388echo "${ECHO_T}no" >&6
2389fi
2390
2391 test -n "$CXX" && break
2392 done
2393fi
2394if test -z "$CXX"; then
2395 ac_ct_CXX=$CXX
2396 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2397do
2398 # Extract the first word of "$ac_prog", so it can be a program name with args.
2399set dummy $ac_prog; ac_word=$2
2400echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$ac_ct_CXX"; then
2406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415 ac_cv_prog_ac_ct_CXX="$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
2421
2422fi
2423fi
2424ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2425if test -n "$ac_ct_CXX"; then
2426 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2427echo "${ECHO_T}$ac_ct_CXX" >&6
2428else
2429 echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432
2433 test -n "$ac_ct_CXX" && break
2434done
2435test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2436
2437 CXX=$ac_ct_CXX
2438fi
2439
2440
2441# Provide some information about the compiler.
2442echo "$as_me:$LINENO:" \
2443 "checking for C++ compiler version" >&5
2444ac_compiler=`set X $ac_compile; echo $2`
2445{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2446 (eval $ac_compiler --version </dev/null >&5) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }
2450{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2451 (eval $ac_compiler -v </dev/null >&5) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }
2455{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2456 (eval $ac_compiler -V </dev/null >&5) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }
2460
2461cat >conftest.$ac_ext <<_ACEOF
2462#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002463/* confdefs.h. */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002468
John Criswell7a73b802003-06-30 21:59:07 +00002469int
2470main ()
2471{
2472
2473 ;
2474 return 0;
2475}
2476_ACEOF
2477ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002478ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002479# Try to create an executable without -o first, disregard a.out.
2480# It will help us diagnose broken compilers, and finding out an intuition
2481# of exeext.
2482echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2483echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2484ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2486 (eval $ac_link_default) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 # Find the output, starting from the most likely. This scheme is
2491# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2492# resort.
2493
2494# Be careful to initialize this variable, since it used to be cached.
2495# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2496ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002497# b.out is created by i960 compilers.
2498for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2499do
2500 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002501 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2503 ;;
2504 conftest.$ac_ext )
2505 # This is the source file.
2506 ;;
2507 [ab].out )
2508 # We found the default executable, but exeext='' is most
2509 # certainly right.
2510 break;;
2511 *.* )
2512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513 # FIXME: I believe we export ac_cv_exeext for Libtool,
2514 # but it would be cool to find out if it's true. Does anybody
2515 # maintain Libtool? --akim.
2516 export ac_cv_exeext
2517 break;;
2518 * )
2519 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002520 esac
2521done
2522else
2523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C++ compiler cannot create executables
2529See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002530 { (exit 77); exit 77; }; }
2531fi
2532
2533ac_exeext=$ac_cv_exeext
2534echo "$as_me:$LINENO: result: $ac_file" >&5
2535echo "${ECHO_T}$ac_file" >&6
2536
2537# Check the compiler produces executables we can run. If not, either
2538# the compiler is broken, or we cross compile.
2539echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2540echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2541# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542# If not cross compiling, check that we can run a simple program.
2543if test "$cross_compiling" != yes; then
2544 if { ac_try='./$ac_file'
2545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 (eval $ac_try) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 cross_compiling=no
2551 else
2552 if test "$cross_compiling" = maybe; then
2553 cross_compiling=yes
2554 else
2555 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002556If you meant to cross compile, use \`--host'.
2557See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002558echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002559If you meant to cross compile, use \`--host'.
2560See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002561 { (exit 1); exit 1; }; }
2562 fi
2563 fi
2564fi
2565echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567
John Criswell0c38eaf2003-09-10 15:17:25 +00002568rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002569ac_clean_files=$ac_clean_files_save
2570# Check the compiler produces executables we can run. If not, either
2571# the compiler is broken, or we cross compile.
2572echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2574echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575echo "${ECHO_T}$cross_compiling" >&6
2576
2577echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; then
2584 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2586# work properly (i.e., refer to `conftest.exe'), while it won't with
2587# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002588for ac_file in conftest.exe conftest conftest.*; do
2589 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002590 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002592 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593 export ac_cv_exeext
2594 break;;
2595 * ) break;;
2596 esac
2597done
2598else
John Criswell0c38eaf2003-09-10 15:17:25 +00002599 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002603 { (exit 1); exit 1; }; }
2604fi
2605
2606rm -f conftest$ac_cv_exeext
2607echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608echo "${ECHO_T}$ac_cv_exeext" >&6
2609
2610rm -f conftest.$ac_ext
2611EXEEXT=$ac_cv_exeext
2612ac_exeext=$EXEEXT
2613echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2615if test "${ac_cv_objext+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 cat >conftest.$ac_ext <<_ACEOF
2619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002620/* confdefs.h. */
2621_ACEOF
2622cat confdefs.h >>conftest.$ac_ext
2623cat >>conftest.$ac_ext <<_ACEOF
2624/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002625
John Criswell7a73b802003-06-30 21:59:07 +00002626int
2627main ()
2628{
2629
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.o conftest.obj
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; then
2640 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2641 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002643 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2644 break;;
2645 esac
2646done
2647else
2648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2652See \`config.log' for more details." >&5
2653echo "$as_me: error: cannot compute suffix of object files: cannot compile
2654See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002655 { (exit 1); exit 1; }; }
2656fi
2657
2658rm -f conftest.$ac_cv_objext conftest.$ac_ext
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2661echo "${ECHO_T}$ac_cv_objext" >&6
2662OBJEXT=$ac_cv_objext
2663ac_objext=$OBJEXT
2664echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2665echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2666if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 cat >conftest.$ac_ext <<_ACEOF
2670#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002676
John Criswell7a73b802003-06-30 21:59:07 +00002677int
2678main ()
2679{
2680#ifndef __GNUC__
2681 choke me
2682#endif
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_compiler_gnu=yes
2701else
2702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002703sed 's/^/| /' conftest.$ac_ext >&5
2704
John Criswell7a73b802003-06-30 21:59:07 +00002705ac_compiler_gnu=no
2706fi
2707rm -f conftest.$ac_objext conftest.$ac_ext
2708ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2709
2710fi
2711echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2712echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2713GXX=`test $ac_compiler_gnu = yes && echo yes`
2714ac_test_CXXFLAGS=${CXXFLAGS+set}
2715ac_save_CXXFLAGS=$CXXFLAGS
2716CXXFLAGS="-g"
2717echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2718echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2719if test "${ac_cv_prog_cxx_g+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 cat >conftest.$ac_ext <<_ACEOF
2723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002729
John Criswell7a73b802003-06-30 21:59:07 +00002730int
2731main ()
2732{
2733
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext
2739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740 (eval $ac_compile) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_cv_prog_cxx_g=yes
2751else
2752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002753sed 's/^/| /' conftest.$ac_ext >&5
2754
John Criswell7a73b802003-06-30 21:59:07 +00002755ac_cv_prog_cxx_g=no
2756fi
2757rm -f conftest.$ac_objext conftest.$ac_ext
2758fi
2759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2761if test "$ac_test_CXXFLAGS" = set; then
2762 CXXFLAGS=$ac_save_CXXFLAGS
2763elif test $ac_cv_prog_cxx_g = yes; then
2764 if test "$GXX" = yes; then
2765 CXXFLAGS="-g -O2"
2766 else
2767 CXXFLAGS="-g"
2768 fi
2769else
2770 if test "$GXX" = yes; then
2771 CXXFLAGS="-O2"
2772 else
2773 CXXFLAGS=
2774 fi
2775fi
2776for ac_declaration in \
2777 ''\
2778 '#include <stdlib.h>' \
2779 'extern "C" void std::exit (int) throw (); using std::exit;' \
2780 'extern "C" void std::exit (int); using std::exit;' \
2781 'extern "C" void exit (int) throw ();' \
2782 'extern "C" void exit (int);' \
2783 'void exit (int);'
2784do
2785 cat >conftest.$ac_ext <<_ACEOF
2786#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002792#include <stdlib.h>
2793$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002794int
2795main ()
2796{
2797exit (42);
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 :
2815else
2816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
John Criswell7a73b802003-06-30 21:59:07 +00002819continue
2820fi
2821rm -f conftest.$ac_objext conftest.$ac_ext
2822 cat >conftest.$ac_ext <<_ACEOF
2823#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002829$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002830int
2831main ()
2832{
2833exit (42);
2834 ;
2835 return 0;
2836}
2837_ACEOF
2838rm -f conftest.$ac_objext
2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -s conftest.$ac_objext'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 break
2851else
2852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002853sed 's/^/| /' conftest.$ac_ext >&5
2854
John Criswell7a73b802003-06-30 21:59:07 +00002855fi
2856rm -f conftest.$ac_objext conftest.$ac_ext
2857done
2858rm -f conftest*
2859if test -n "$ac_declaration"; then
2860 echo '#ifdef __cplusplus' >>confdefs.h
2861 echo $ac_declaration >>confdefs.h
2862 echo '#endif' >>confdefs.h
2863fi
2864
2865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
2871ac_ext=c
2872ac_cpp='$CPP $CPPFLAGS'
2873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876if test -n "$ac_tool_prefix"; then
2877 for ac_prog in gcc
2878 do
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881echo "$as_me:$LINENO: checking for $ac_word" >&5
2882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883if test "${ac_cv_prog_CC+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900done
2901done
2902
2903fi
2904fi
2905CC=$ac_cv_prog_CC
2906if test -n "$CC"; then
2907 echo "$as_me:$LINENO: result: $CC" >&5
2908echo "${ECHO_T}$CC" >&6
2909else
2910 echo "$as_me:$LINENO: result: no" >&5
2911echo "${ECHO_T}no" >&6
2912fi
2913
2914 test -n "$CC" && break
2915 done
2916fi
2917if test -z "$CC"; then
2918 ac_ct_CC=$CC
2919 for ac_prog in gcc
2920do
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922set dummy $ac_prog; ac_word=$2
2923echo "$as_me:$LINENO: checking for $ac_word" >&5
2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 if test -n "$ac_ct_CC"; then
2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930else
2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH
2933do
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938 ac_cv_prog_ac_ct_CC="$ac_prog"
2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2941 fi
2942done
2943done
2944
2945fi
2946fi
2947ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948if test -n "$ac_ct_CC"; then
2949 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2950echo "${ECHO_T}$ac_ct_CC" >&6
2951else
2952 echo "$as_me:$LINENO: result: no" >&5
2953echo "${ECHO_T}no" >&6
2954fi
2955
2956 test -n "$ac_ct_CC" && break
2957done
2958
2959 CC=$ac_ct_CC
2960fi
2961
2962
John Criswell0c38eaf2003-09-10 15:17:25 +00002963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: no acceptable C compiler found in \$PATH
2966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002967 { (exit 1); exit 1; }; }
2968
2969# Provide some information about the compiler.
2970echo "$as_me:$LINENO:" \
2971 "checking for C compiler version" >&5
2972ac_compiler=`set X $ac_compile; echo $2`
2973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2974 (eval $ac_compiler --version </dev/null >&5) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2979 (eval $ac_compiler -v </dev/null >&5) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }
2983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2984 (eval $ac_compiler -V </dev/null >&5) 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988
2989echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2990echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2991if test "${ac_cv_c_compiler_gnu+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993else
2994 cat >conftest.$ac_ext <<_ACEOF
2995#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003001
John Criswell7a73b802003-06-30 21:59:07 +00003002int
3003main ()
3004{
3005#ifndef __GNUC__
3006 choke me
3007#endif
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext
3014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015 (eval $ac_compile) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 ac_compiler_gnu=yes
3026else
3027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003028sed 's/^/| /' conftest.$ac_ext >&5
3029
John Criswell7a73b802003-06-30 21:59:07 +00003030ac_compiler_gnu=no
3031fi
3032rm -f conftest.$ac_objext conftest.$ac_ext
3033ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3037echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3038GCC=`test $ac_compiler_gnu = yes && echo yes`
3039ac_test_CFLAGS=${CFLAGS+set}
3040ac_save_CFLAGS=$CFLAGS
3041CFLAGS="-g"
3042echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3044if test "${ac_cv_prog_cc_g+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 cat >conftest.$ac_ext <<_ACEOF
3048#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003054
John Criswell7a73b802003-06-30 21:59:07 +00003055int
3056main ()
3057{
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 (eval $ac_try) 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_cv_prog_cc_g=yes
3076else
3077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003078sed 's/^/| /' conftest.$ac_ext >&5
3079
John Criswell7a73b802003-06-30 21:59:07 +00003080ac_cv_prog_cc_g=no
3081fi
3082rm -f conftest.$ac_objext conftest.$ac_ext
3083fi
3084echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3086if test "$ac_test_CFLAGS" = set; then
3087 CFLAGS=$ac_save_CFLAGS
3088elif test $ac_cv_prog_cc_g = yes; then
3089 if test "$GCC" = yes; then
3090 CFLAGS="-g -O2"
3091 else
3092 CFLAGS="-g"
3093 fi
3094else
3095 if test "$GCC" = yes; then
3096 CFLAGS="-O2"
3097 else
3098 CFLAGS=
3099 fi
3100fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003101echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3102echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3103if test "${ac_cv_prog_cc_stdc+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106 ac_cv_prog_cc_stdc=no
3107ac_save_CC=$CC
3108cat >conftest.$ac_ext <<_ACEOF
3109#line $LINENO "configure"
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115#include <stdarg.h>
3116#include <stdio.h>
3117#include <sys/types.h>
3118#include <sys/stat.h>
3119/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3120struct buf { int x; };
3121FILE * (*rcsopen) (struct buf *, struct stat *, int);
3122static char *e (p, i)
3123 char **p;
3124 int i;
3125{
3126 return p[i];
3127}
3128static char *f (char * (*g) (char **, int), char **p, ...)
3129{
3130 char *s;
3131 va_list v;
3132 va_start (v,p);
3133 s = g (p, va_arg (v,int));
3134 va_end (v);
3135 return s;
3136}
3137int test (int i, double x);
3138struct s1 {int (*f) (int a);};
3139struct s2 {int (*f) (double a);};
3140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141int argc;
3142char **argv;
3143int
3144main ()
3145{
3146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151# Don't try gcc -ansi; that turns off useful extensions and
3152# breaks some systems' header files.
3153# AIX -qlanglvl=ansi
3154# Ultrix and OSF/1 -std1
3155# HP-UX 10.20 and later -Ae
3156# HP-UX older versions -Aa -D_HPUX_SOURCE
3157# SVR4 -Xc -D__EXTENSIONS__
3158for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3159do
3160 CC="$ac_save_CC $ac_arg"
3161 rm -f conftest.$ac_objext
3162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 (eval $ac_try) 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 ac_cv_prog_cc_stdc=$ac_arg
3174break
3175else
3176 echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179fi
3180rm -f conftest.$ac_objext
3181done
3182rm -f conftest.$ac_ext conftest.$ac_objext
3183CC=$ac_save_CC
3184
3185fi
3186
3187case "x$ac_cv_prog_cc_stdc" in
3188 x|xno)
3189 echo "$as_me:$LINENO: result: none needed" >&5
3190echo "${ECHO_T}none needed" >&6 ;;
3191 *)
3192 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3193echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3194 CC="$CC $ac_cv_prog_cc_stdc" ;;
3195esac
3196
John Criswell7a73b802003-06-30 21:59:07 +00003197# Some people use a C++ compiler to compile C. Since we use `exit',
3198# in C++ we need to declare it. In case someone uses the same compiler
3199# for both compiling C and C++ we need to have the C++ compiler decide
3200# the declaration of exit, since it's the most demanding environment.
3201cat >conftest.$ac_ext <<_ACEOF
3202#ifndef __cplusplus
3203 choke me
3204#endif
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 for ac_declaration in \
3219 ''\
3220 '#include <stdlib.h>' \
3221 'extern "C" void std::exit (int) throw (); using std::exit;' \
3222 'extern "C" void std::exit (int); using std::exit;' \
3223 'extern "C" void exit (int) throw ();' \
3224 'extern "C" void exit (int);' \
3225 'void exit (int);'
3226do
3227 cat >conftest.$ac_ext <<_ACEOF
3228#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003234#include <stdlib.h>
3235$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003236int
3237main ()
3238{
3239exit (42);
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244rm -f conftest.$ac_objext
3245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 :
3257else
3258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003259sed 's/^/| /' conftest.$ac_ext >&5
3260
John Criswell7a73b802003-06-30 21:59:07 +00003261continue
3262fi
3263rm -f conftest.$ac_objext conftest.$ac_ext
3264 cat >conftest.$ac_ext <<_ACEOF
3265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003271$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003272int
3273main ()
3274{
3275exit (42);
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280rm -f conftest.$ac_objext
3281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282 (eval $ac_compile) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 break
3293else
3294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003295sed 's/^/| /' conftest.$ac_ext >&5
3296
John Criswell7a73b802003-06-30 21:59:07 +00003297fi
3298rm -f conftest.$ac_objext conftest.$ac_ext
3299done
3300rm -f conftest*
3301if test -n "$ac_declaration"; then
3302 echo '#ifdef __cplusplus' >>confdefs.h
3303 echo $ac_declaration >>confdefs.h
3304 echo '#endif' >>confdefs.h
3305fi
3306
3307else
3308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003309sed 's/^/| /' conftest.$ac_ext >&5
3310
John Criswell7a73b802003-06-30 21:59:07 +00003311fi
3312rm -f conftest.$ac_objext conftest.$ac_ext
3313ac_ext=c
3314ac_cpp='$CPP $CPPFLAGS'
3315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318
3319ac_ext=c
3320ac_cpp='$CPP $CPPFLAGS'
3321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3325echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3326# On Suns, sometimes $CPP names a directory.
3327if test -n "$CPP" && test -d "$CPP"; then
3328 CPP=
3329fi
3330if test -z "$CPP"; then
3331 if test "${ac_cv_prog_CPP+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334 # Double quotes because CPP needs to be expanded
3335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3336 do
3337 ac_preproc_ok=false
3338for ac_c_preproc_warn_flag in '' yes
3339do
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353#ifdef __STDC__
3354# include <limits.h>
3355#else
3356# include <assert.h>
3357#endif
John Criswell7a73b802003-06-30 21:59:07 +00003358 Syntax error
3359_ACEOF
3360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003363 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_c_preproc_warn_flag
3370 else
3371 ac_cpp_err=
3372 fi
3373else
3374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 :
3378else
3379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003380sed 's/^/| /' conftest.$ac_ext >&5
3381
John Criswell7a73b802003-06-30 21:59:07 +00003382 # Broken: fails on valid input.
3383continue
3384fi
3385rm -f conftest.err conftest.$ac_ext
3386
3387 # OK, works on sane cases. Now check whether non-existent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3390#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003396#include <ac_nonexistent.h>
3397_ACEOF
3398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003401 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 else
3409 ac_cpp_err=
3410 fi
3411else
3412 ac_cpp_err=yes
3413fi
3414if test -z "$ac_cpp_err"; then
3415 # Broken: success on invalid input.
3416continue
3417else
3418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003419sed 's/^/| /' conftest.$ac_ext >&5
3420
John Criswell7a73b802003-06-30 21:59:07 +00003421 # Passes both tests.
3422ac_preproc_ok=:
3423break
3424fi
3425rm -f conftest.err conftest.$ac_ext
3426
3427done
3428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429rm -f conftest.err conftest.$ac_ext
3430if $ac_preproc_ok; then
3431 break
3432fi
3433
3434 done
3435 ac_cv_prog_CPP=$CPP
3436
3437fi
3438 CPP=$ac_cv_prog_CPP
3439else
3440 ac_cv_prog_CPP=$CPP
3441fi
3442echo "$as_me:$LINENO: result: $CPP" >&5
3443echo "${ECHO_T}$CPP" >&6
3444ac_preproc_ok=false
3445for ac_c_preproc_warn_flag in '' yes
3446do
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.$ac_ext <<_ACEOF
3454#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
John Criswell7a73b802003-06-30 21:59:07 +00003465 Syntax error
3466_ACEOF
3467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003470 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev/null; then
3475 if test -s conftest.err; then
3476 ac_cpp_err=$ac_c_preproc_warn_flag
3477 else
3478 ac_cpp_err=
3479 fi
3480else
3481 ac_cpp_err=yes
3482fi
3483if test -z "$ac_cpp_err"; then
3484 :
3485else
3486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003487sed 's/^/| /' conftest.$ac_ext >&5
3488
John Criswell7a73b802003-06-30 21:59:07 +00003489 # Broken: fails on valid input.
3490continue
3491fi
3492rm -f conftest.err conftest.$ac_ext
3493
3494 # OK, works on sane cases. Now check whether non-existent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003503#include <ac_nonexistent.h>
3504_ACEOF
3505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003508 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } >/dev/null; then
3513 if test -s conftest.err; then
3514 ac_cpp_err=$ac_c_preproc_warn_flag
3515 else
3516 ac_cpp_err=
3517 fi
3518else
3519 ac_cpp_err=yes
3520fi
3521if test -z "$ac_cpp_err"; then
3522 # Broken: success on invalid input.
3523continue
3524else
3525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003526sed 's/^/| /' conftest.$ac_ext >&5
3527
John Criswell7a73b802003-06-30 21:59:07 +00003528 # Passes both tests.
3529ac_preproc_ok=:
3530break
3531fi
3532rm -f conftest.err conftest.$ac_ext
3533
3534done
3535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536rm -f conftest.err conftest.$ac_ext
3537if $ac_preproc_ok; then
3538 :
3539else
John Criswell0c38eaf2003-09-10 15:17:25 +00003540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541See \`config.log' for more details." >&5
3542echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003544 { (exit 1); exit 1; }; }
3545fi
3546
3547ac_ext=c
3548ac_cpp='$CPP $CPPFLAGS'
3549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554if test "$GCC" != "yes"
3555then
3556 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3557echo "$as_me: error: gcc required but not found" >&2;}
3558 { (exit 1); exit 1; }; }
3559fi
3560
3561if test "$GXX" != "yes"
3562then
3563 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3564echo "$as_me: error: g++ required but not found" >&2;}
3565 { (exit 1); exit 1; }; }
3566fi
3567
John Criswellde00db22003-08-25 16:49:54 +00003568gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3569if test "$gccmajor" -lt "3"
3570then
3571 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3572echo "$as_me: error: gcc 3.x required" >&2;}
3573 { (exit 1); exit 1; }; }
3574fi
3575
John Criswell7a73b802003-06-30 21:59:07 +00003576 echo "$as_me:$LINENO: checking for GNU make" >&5
3577echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3578if test "${_cv_gnu_make_command+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 _cv_gnu_make_command='' ;
3582 for a in "$MAKE" make gmake gnumake ; do
3583 if test -z "$a" ; then continue ; fi ;
3584 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3585 _cv_gnu_make_command=$a ;
3586 break;
3587 fi
3588 done ;
3589
3590fi
3591echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3592echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3593 if test "x$_cv_gnu_make_command" != "x" ; then
3594 ifGNUmake='' ;
3595 else
3596 ifGNUmake='#' ;
3597 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3598echo "${ECHO_T}\"Not found\"" >&6;
3599 fi
3600
3601
3602if test -z "$_cv_gnu_make_command"
3603then
3604 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3605echo "$as_me: error: GNU Make required but not found" >&2;}
3606 { (exit 1); exit 1; }; }
3607fi
3608
3609
3610echo "$as_me:$LINENO: checking " >&5
3611echo $ECHO_N "checking ... $ECHO_C" >&6
3612if test "${ac_cv_has_flex+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 for ac_prog in flex lex
3616do
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618set dummy $ac_prog; ac_word=$2
3619echo "$as_me:$LINENO: checking for $ac_word" >&5
3620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621if test "${ac_cv_prog_LEX+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 if test -n "$LEX"; then
3625 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_LEX="$ac_prog"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638done
3639done
3640
3641fi
3642fi
3643LEX=$ac_cv_prog_LEX
3644if test -n "$LEX"; then
3645 echo "$as_me:$LINENO: result: $LEX" >&5
3646echo "${ECHO_T}$LEX" >&6
3647else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650fi
3651
3652 test -n "$LEX" && break
3653done
3654test -n "$LEX" || LEX=":"
3655
3656if test -z "$LEXLIB"
3657then
3658 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3659echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3660if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 ac_check_lib_save_LIBS=$LIBS
3664LIBS="-lfl $LIBS"
3665cat >conftest.$ac_ext <<_ACEOF
3666#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003667/* confdefs.h. */
3668_ACEOF
3669cat confdefs.h >>conftest.$ac_ext
3670cat >>conftest.$ac_ext <<_ACEOF
3671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003672
3673/* Override any gcc2 internal prototype to avoid an error. */
3674#ifdef __cplusplus
3675extern "C"
3676#endif
3677/* We use char because int might match the return type of a gcc2
3678 builtin and then its argument prototype would still apply. */
3679char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003680int
3681main ()
3682{
3683yywrap ();
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688rm -f conftest.$ac_objext conftest$ac_exeext
3689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690 (eval $ac_link) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest$ac_exeext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_lib_fl_yywrap=yes
3701else
3702 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003703sed 's/^/| /' conftest.$ac_ext >&5
3704
John Criswell7a73b802003-06-30 21:59:07 +00003705ac_cv_lib_fl_yywrap=no
3706fi
3707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3708LIBS=$ac_check_lib_save_LIBS
3709fi
3710echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3711echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3712if test $ac_cv_lib_fl_yywrap = yes; then
3713 LEXLIB="-lfl"
3714else
3715 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3716echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3717if test "${ac_cv_lib_l_yywrap+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 ac_check_lib_save_LIBS=$LIBS
3721LIBS="-ll $LIBS"
3722cat >conftest.$ac_ext <<_ACEOF
3723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003724/* confdefs.h. */
3725_ACEOF
3726cat confdefs.h >>conftest.$ac_ext
3727cat >>conftest.$ac_ext <<_ACEOF
3728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003729
3730/* Override any gcc2 internal prototype to avoid an error. */
3731#ifdef __cplusplus
3732extern "C"
3733#endif
3734/* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003737int
3738main ()
3739{
3740yywrap ();
3741 ;
3742 return 0;
3743}
3744_ACEOF
3745rm -f conftest.$ac_objext conftest$ac_exeext
3746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3747 (eval $ac_link) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -s conftest$ac_exeext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_lib_l_yywrap=yes
3758else
3759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003760sed 's/^/| /' conftest.$ac_ext >&5
3761
John Criswell7a73b802003-06-30 21:59:07 +00003762ac_cv_lib_l_yywrap=no
3763fi
3764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3765LIBS=$ac_check_lib_save_LIBS
3766fi
3767echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3768echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3769if test $ac_cv_lib_l_yywrap = yes; then
3770 LEXLIB="-ll"
3771fi
3772
3773fi
3774
3775fi
3776
3777if test "x$LEX" != "x:"; then
3778 echo "$as_me:$LINENO: checking lex output file root" >&5
3779echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3780if test "${ac_cv_prog_lex_root+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 # The minimal lex program is just a single line: %%. But some broken lexes
3784# (Solaris, I think it was) want two %% lines, so accommodate them.
3785cat >conftest.l <<_ACEOF
3786%%
3787%%
3788_ACEOF
3789{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3790 (eval $LEX conftest.l) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794if test -f lex.yy.c; then
3795 ac_cv_prog_lex_root=lex.yy
3796elif test -f lexyy.c; then
3797 ac_cv_prog_lex_root=lexyy
3798else
3799 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3800echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3801 { (exit 1); exit 1; }; }
3802fi
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3805echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3806rm -f conftest.l
3807LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3808
3809echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3810echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3811if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 # POSIX says lex can declare yytext either as a pointer or an array; the
3815# default is implementation-dependent. Figure out which it is, since
3816# not all implementations provide the %pointer and %array declarations.
3817ac_cv_prog_lex_yytext_pointer=no
3818echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3819ac_save_LIBS=$LIBS
3820LIBS="$LIBS $LEXLIB"
3821cat >conftest.$ac_ext <<_ACEOF
3822`cat $LEX_OUTPUT_ROOT.c`
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -s conftest$ac_exeext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_prog_lex_yytext_pointer=yes
3837else
3838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003839sed 's/^/| /' conftest.$ac_ext >&5
3840
John Criswell7a73b802003-06-30 21:59:07 +00003841fi
3842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3843LIBS=$ac_save_LIBS
3844rm -f "${LEX_OUTPUT_ROOT}.c"
3845
3846fi
3847echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3848echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3849if test $ac_cv_prog_lex_yytext_pointer = yes; then
3850
3851cat >>confdefs.h <<\_ACEOF
3852#define YYTEXT_POINTER 1
3853_ACEOF
3854
3855fi
3856
3857fi
3858
3859fi
3860echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3861echo "${ECHO_T}$ac_cv_has_flex" >&6
3862if test "$LEX" != "flex"; then
3863 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3864echo "$as_me: error: flex not found but required" >&2;}
3865 { (exit 1); exit 1; }; }
3866fi
3867
3868echo "$as_me:$LINENO: checking " >&5
3869echo $ECHO_N "checking ... $ECHO_C" >&6
3870if test "${ac_cv_has_bison+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873 for ac_prog in 'bison -y' byacc
3874do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876set dummy $ac_prog; ac_word=$2
3877echo "$as_me:$LINENO: checking for $ac_word" >&5
3878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3879if test "${ac_cv_prog_YACC+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 if test -n "$YACC"; then
3883 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_YACC="$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897done
3898
3899fi
3900fi
3901YACC=$ac_cv_prog_YACC
3902if test -n "$YACC"; then
3903 echo "$as_me:$LINENO: result: $YACC" >&5
3904echo "${ECHO_T}$YACC" >&6
3905else
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908fi
3909
3910 test -n "$YACC" && break
3911done
3912test -n "$YACC" || YACC="yacc"
3913
3914
3915fi
3916echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3917echo "${ECHO_T}$ac_cv_has_bison" >&6
3918if test "$YACC" != "bison -y"; then
3919 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3920echo "$as_me: error: bison not found but required" >&2;}
3921 { (exit 1); exit 1; }; }
3922else
3923 YACC=bison
3924
3925fi
3926
3927
3928# Check whether --enable-shared or --disable-shared was given.
3929if test "${enable_shared+set}" = set; then
3930 enableval="$enable_shared"
3931 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003932 case $enableval in
3933 yes) enable_shared=yes ;;
3934 no) enable_shared=no ;;
3935 *)
3936 enable_shared=no
3937 # Look at the argument we got. We use all the common list separators.
3938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3939 for pkg in $enableval; do
3940 IFS="$lt_save_ifs"
3941 if test "X$pkg" = "X$p"; then
3942 enable_shared=yes
3943 fi
3944 done
3945 IFS="$lt_save_ifs"
3946 ;;
3947 esac
John Criswell7a73b802003-06-30 21:59:07 +00003948else
3949 enable_shared=yes
3950fi;
John Criswell47fdd832003-07-14 16:52:07 +00003951
John Criswell7a73b802003-06-30 21:59:07 +00003952# Check whether --enable-static or --disable-static was given.
3953if test "${enable_static+set}" = set; then
3954 enableval="$enable_static"
3955 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003956 case $enableval in
3957 yes) enable_static=yes ;;
3958 no) enable_static=no ;;
3959 *)
3960 enable_static=no
3961 # Look at the argument we got. We use all the common list separators.
3962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3963 for pkg in $enableval; do
3964 IFS="$lt_save_ifs"
3965 if test "X$pkg" = "X$p"; then
3966 enable_static=yes
3967 fi
3968 done
3969 IFS="$lt_save_ifs"
3970 ;;
3971 esac
John Criswell7a73b802003-06-30 21:59:07 +00003972else
3973 enable_static=yes
3974fi;
John Criswell47fdd832003-07-14 16:52:07 +00003975
John Criswell7a73b802003-06-30 21:59:07 +00003976# Check whether --enable-fast-install or --disable-fast-install was given.
3977if test "${enable_fast_install+set}" = set; then
3978 enableval="$enable_fast_install"
3979 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003980 case $enableval in
3981 yes) enable_fast_install=yes ;;
3982 no) enable_fast_install=no ;;
3983 *)
3984 enable_fast_install=no
3985 # Look at the argument we got. We use all the common list separators.
3986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3987 for pkg in $enableval; do
3988 IFS="$lt_save_ifs"
3989 if test "X$pkg" = "X$p"; then
3990 enable_fast_install=yes
3991 fi
3992 done
3993 IFS="$lt_save_ifs"
3994 ;;
3995 esac
John Criswell7a73b802003-06-30 21:59:07 +00003996else
3997 enable_fast_install=yes
3998fi;
John Criswell47fdd832003-07-14 16:52:07 +00003999
4000echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4001echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4002if test "${lt_cv_path_SED+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005 # Loop through the user's path and test for sed and gsed.
4006# Then use that list of sed's as ones to test for truncation.
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for lt_ac_prog in sed gsed; do
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4015 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4016 fi
4017 done
4018 done
4019done
4020lt_ac_max=0
4021lt_ac_count=0
4022# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4023# along with /bin/sed that truncates output.
4024for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4025 test ! -f $lt_ac_sed && break
4026 cat /dev/null > conftest.in
4027 lt_ac_count=0
4028 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4029 # Check for GNU sed and select it if it is found.
4030 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4031 lt_cv_path_SED=$lt_ac_sed
4032 break
4033 fi
4034 while true; do
4035 cat conftest.in conftest.in >conftest.tmp
4036 mv conftest.tmp conftest.in
4037 cp conftest.in conftest.nl
4038 echo >>conftest.nl
4039 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4040 cmp -s conftest.out conftest.nl || break
4041 # 10000 chars as input seems more than enough
4042 test $lt_ac_count -gt 10 && break
4043 lt_ac_count=`expr $lt_ac_count + 1`
4044 if test $lt_ac_count -gt $lt_ac_max; then
4045 lt_ac_max=$lt_ac_count
4046 lt_cv_path_SED=$lt_ac_sed
4047 fi
4048 done
4049done
4050SED=$lt_cv_path_SED
4051
John Criswell7a73b802003-06-30 21:59:07 +00004052fi
4053
John Criswell47fdd832003-07-14 16:52:07 +00004054echo "$as_me:$LINENO: result: $SED" >&5
4055echo "${ECHO_T}$SED" >&6
4056
4057echo "$as_me:$LINENO: checking for egrep" >&5
4058echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4059if test "${ac_cv_prog_egrep+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061else
4062 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4063 then ac_cv_prog_egrep='grep -E'
4064 else ac_cv_prog_egrep='egrep'
4065 fi
4066fi
4067echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4068echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4069 EGREP=$ac_cv_prog_egrep
4070
4071
John Criswell7a73b802003-06-30 21:59:07 +00004072
4073# Check whether --with-gnu-ld or --without-gnu-ld was given.
4074if test "${with_gnu_ld+set}" = set; then
4075 withval="$with_gnu_ld"
4076 test "$withval" = no || with_gnu_ld=yes
4077else
4078 with_gnu_ld=no
4079fi;
4080ac_prog=ld
4081if test "$GCC" = yes; then
4082 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004083 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4084echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004085 case $host in
4086 *-*-mingw*)
4087 # gcc leaves a trailing carriage return which upsets mingw
4088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089 *)
4090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091 esac
4092 case $ac_prog in
4093 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004094 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 re_direlt='/[^/][^/]*/\.\./'
4096 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004097 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004099 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004100 done
4101 test -z "$LD" && LD="$ac_prog"
4102 ;;
4103 "")
4104 # If it fails, then pretend we aren't using GCC.
4105 ac_prog=ld
4106 ;;
4107 *)
4108 # If it is relative, then search for the first ld in PATH.
4109 with_gnu_ld=unknown
4110 ;;
4111 esac
4112elif test "$with_gnu_ld" = yes; then
4113 echo "$as_me:$LINENO: checking for GNU ld" >&5
4114echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4115else
4116 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4118fi
4119if test "${lt_cv_path_LD+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004124 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004125 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004126 test -z "$ac_dir" && ac_dir=.
4127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128 lt_cv_path_LD="$ac_dir/$ac_prog"
4129 # Check to see if the program is GNU ld. I'd rather use --version,
4130 # but apparently some GNU ld's only accept -v.
4131 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004134 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004135 ;;
4136 *)
John Criswell7a73b802003-06-30 21:59:07 +00004137 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004138 ;;
4139 esac
John Criswell7a73b802003-06-30 21:59:07 +00004140 fi
4141 done
John Criswell47fdd832003-07-14 16:52:07 +00004142 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004143else
4144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145fi
4146fi
4147
4148LD="$lt_cv_path_LD"
4149if test -n "$LD"; then
4150 echo "$as_me:$LINENO: result: $LD" >&5
4151echo "${ECHO_T}$LD" >&6
4152else
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4157echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4158 { (exit 1); exit 1; }; }
4159echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4160echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4161if test "${lt_cv_prog_gnu_ld+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004165case `"$LD" -v 2>&1 </dev/null` in
4166*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004167 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004168 ;;
4169*)
John Criswell7a73b802003-06-30 21:59:07 +00004170 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004171 ;;
4172esac
John Criswell7a73b802003-06-30 21:59:07 +00004173fi
4174echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4175echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4176with_gnu_ld=$lt_cv_prog_gnu_ld
4177
4178
4179echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4180echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4181if test "${lt_cv_ld_reload_flag+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 lt_cv_ld_reload_flag='-r'
4185fi
4186echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4187echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4188reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004189case $reload_flag in
4190"" | " "*) ;;
4191*) reload_flag=" $reload_flag" ;;
4192esac
4193reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004194
4195echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4196echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4197if test "${lt_cv_path_NM+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 if test -n "$NM"; then
4201 # Let the user override the test.
4202 lt_cv_path_NM="$NM"
4203else
John Criswell47fdd832003-07-14 16:52:07 +00004204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004205 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004206 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004207 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004208 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4209 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004210 # Check to see if the nm accepts a BSD-compat flag.
4211 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4212 # nm: unknown option "B" ignored
4213 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004214 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4215 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004216 lt_cv_path_NM="$tmp_nm -B"
4217 break
John Criswell47fdd832003-07-14 16:52:07 +00004218 ;;
4219 *)
4220 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4221 */dev/null*)
4222 lt_cv_path_NM="$tmp_nm -p"
4223 break
4224 ;;
4225 *)
4226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4227 continue # so that we can try to find one that supports BSD flags
4228 ;;
4229 esac
4230 esac
John Criswell7a73b802003-06-30 21:59:07 +00004231 fi
4232 done
John Criswell47fdd832003-07-14 16:52:07 +00004233 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004234 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4235fi
4236fi
John Criswell47fdd832003-07-14 16:52:07 +00004237echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4238echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004239NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004240
4241echo "$as_me:$LINENO: checking whether ln -s works" >&5
4242echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4243LN_S=$as_ln_s
4244if test "$LN_S" = "ln -s"; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247else
4248 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4249echo "${ECHO_T}no, using $LN_S" >&6
4250fi
4251
John Criswell47fdd832003-07-14 16:52:07 +00004252echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4253echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004254if test "${lt_cv_deplibs_check_method+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256else
4257 lt_cv_file_magic_cmd='$MAGIC_CMD'
4258lt_cv_file_magic_test_file=
4259lt_cv_deplibs_check_method='unknown'
4260# Need to set the preceding variable on all platforms that support
4261# interlibrary dependencies.
4262# 'none' -- dependencies not supported.
4263# `unknown' -- same as none, but documents that we really don't know.
4264# 'pass_all' -- all dependencies passed with no checks.
4265# 'test_compile' -- check by making test program.
4266# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004267# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004268# If you have `file' or equivalent on your system and you're not sure
4269# whether `pass_all' will *always* work, you probably want this one.
4270
4271case $host_os in
4272aix4* | aix5*)
4273 lt_cv_deplibs_check_method=pass_all
4274 ;;
4275
4276beos*)
4277 lt_cv_deplibs_check_method=pass_all
4278 ;;
4279
4280bsdi4*)
4281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4282 lt_cv_file_magic_cmd='/usr/bin/file -L'
4283 lt_cv_file_magic_test_file=/shlib/libc.so
4284 ;;
4285
4286cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004287 # win32_libid is a shell function defined in ltmain.sh
4288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4289 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004290 ;;
4291
4292darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004293 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004294 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4295 lt_cv_file_magic_cmd='/usr/bin/file -L'
4296 case "$host_os" in
4297 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004298 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004299 ;;
4300 *) # Darwin 1.3 on
4301 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4302 ;;
4303 esac
John Criswell47fdd832003-07-14 16:52:07 +00004304 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004305 ;;
4306
4307freebsd*)
4308 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4309 case $host_cpu in
4310 i*86 )
4311 # Not sure whether the presence of OpenBSD here was a mistake.
4312 # Let's accept both of them until this is cleared up.
4313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4314 lt_cv_file_magic_cmd=/usr/bin/file
4315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4316 ;;
4317 esac
4318 else
4319 lt_cv_deplibs_check_method=pass_all
4320 fi
4321 ;;
4322
4323gnu*)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326
John Criswell47fdd832003-07-14 16:52:07 +00004327hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004328 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004329 case "$host_cpu" in
4330 ia64*)
4331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4333 ;;
4334 hppa*64*)
4335 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]'
4336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4337 ;;
4338 *)
4339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4341 ;;
4342 esac
John Criswell7a73b802003-06-30 21:59:07 +00004343 ;;
4344
John Criswell47fdd832003-07-14 16:52:07 +00004345irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004346 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004347 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004348 # this will be overridden with pass_all, but let us keep it just in case
4349 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4350 ;;
4351 *)
4352 case $LD in
4353 *-32|*"-32 ") libmagic=32-bit;;
4354 *-n32|*"-n32 ") libmagic=N32;;
4355 *-64|*"-64 ") libmagic=64-bit;;
4356 *) libmagic=never-match;;
4357 esac
4358 # this will be overridden with pass_all, but let us keep it just in case
4359 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4360 ;;
4361 esac
4362 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365
4366# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004367linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004368 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004369 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004370 lt_cv_deplibs_check_method=pass_all ;;
4371 *)
4372 # glibc up to 2.1.1 does not perform some relocations on ARM
4373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4374 esac
4375 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4376 ;;
4377
4378netbsd*)
4379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004381 else
John Criswell47fdd832003-07-14 16:52:07 +00004382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004383 fi
4384 ;;
4385
4386newos6*)
4387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4388 lt_cv_file_magic_cmd=/usr/bin/file
4389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4390 ;;
4391
John Criswell47fdd832003-07-14 16:52:07 +00004392nto-qnx)
4393 lt_cv_deplibs_check_method=unknown
4394 ;;
4395
John Criswell7a73b802003-06-30 21:59:07 +00004396openbsd*)
4397 lt_cv_file_magic_cmd=/usr/bin/file
4398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4401 else
4402 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4403 fi
4404 ;;
4405
4406osf3* | osf4* | osf5*)
4407 # this will be overridden with pass_all, but let us keep it just in case
4408 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4409 lt_cv_file_magic_test_file=/shlib/libc.so
4410 lt_cv_deplibs_check_method=pass_all
4411 ;;
4412
4413sco3.2v5*)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416
4417solaris*)
4418 lt_cv_deplibs_check_method=pass_all
4419 lt_cv_file_magic_test_file=/lib/libc.so
4420 ;;
4421
John Criswell7a73b802003-06-30 21:59:07 +00004422sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4423 case $host_vendor in
4424 motorola)
4425 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]'
4426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4427 ;;
4428 ncr)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431 sequent)
4432 lt_cv_file_magic_cmd='/bin/file'
4433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4434 ;;
4435 sni)
4436 lt_cv_file_magic_cmd='/bin/file'
4437 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4438 lt_cv_file_magic_test_file=/lib/libc.so
4439 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004440 siemens)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004443 esac
4444 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004445
4446sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4447 lt_cv_deplibs_check_method=pass_all
4448 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004449esac
4450
4451fi
4452echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4453echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4454file_magic_cmd=$lt_cv_file_magic_cmd
4455deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004456test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458
4459
4460
John Criswell47fdd832003-07-14 16:52:07 +00004461# If no C compiler was specified, use CC.
4462LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004463
John Criswell47fdd832003-07-14 16:52:07 +00004464# Allow CC to be a program name with arguments.
4465compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004466
John Criswell47fdd832003-07-14 16:52:07 +00004467# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4468if test "${enable_libtool_lock+set}" = set; then
4469 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004470
John Criswell47fdd832003-07-14 16:52:07 +00004471fi;
4472test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004473
John Criswell47fdd832003-07-14 16:52:07 +00004474# Some flags need to be propagated to the compiler or linker for good
4475# libtool support.
4476case $host in
4477ia64-*-hpux*)
4478 # Find out which ABI we are using.
4479 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004485 case `/usr/bin/file conftest.$ac_objext` in
4486 *ELF-32*)
4487 HPUX_IA64_MODE="32"
4488 ;;
4489 *ELF-64*)
4490 HPUX_IA64_MODE="64"
4491 ;;
4492 esac
4493 fi
4494 rm -rf conftest*
4495 ;;
4496*-*-irix6*)
4497 # Find out which ABI we are using.
Brian Gaeke866f10c2003-11-24 02:54:57 +00004498 echo '#line 4498 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004503 (exit $ac_status); }; then
4504 if test "$lt_cv_prog_gnu_ld" = yes; then
4505 case `/usr/bin/file conftest.$ac_objext` in
4506 *32-bit*)
4507 LD="${LD-ld} -melf32bsmip"
4508 ;;
4509 *N32*)
4510 LD="${LD-ld} -melf32bmipn32"
4511 ;;
4512 *64-bit*)
4513 LD="${LD-ld} -melf64bmip"
4514 ;;
4515 esac
4516 else
4517 case `/usr/bin/file conftest.$ac_objext` in
4518 *32-bit*)
4519 LD="${LD-ld} -32"
4520 ;;
4521 *N32*)
4522 LD="${LD-ld} -n32"
4523 ;;
4524 *64-bit*)
4525 LD="${LD-ld} -64"
4526 ;;
4527 esac
4528 fi
4529 fi
4530 rm -rf conftest*
4531 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004532
John Criswell47fdd832003-07-14 16:52:07 +00004533x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4534 # Find out which ABI we are using.
4535 echo 'int i;' > conftest.$ac_ext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; then
4541 case "`/usr/bin/file conftest.o`" in
4542 *32-bit*)
4543 case $host in
4544 x86_64-*linux*)
4545 LD="${LD-ld} -m elf_i386"
4546 ;;
4547 ppc64-*linux*)
4548 LD="${LD-ld} -m elf32ppclinux"
4549 ;;
4550 s390x-*linux*)
4551 LD="${LD-ld} -m elf_s390"
4552 ;;
4553 sparc64-*linux*)
4554 LD="${LD-ld} -m elf32_sparc"
4555 ;;
4556 esac
4557 ;;
4558 *64-bit*)
4559 case $host in
4560 x86_64-*linux*)
4561 LD="${LD-ld} -m elf_x86_64"
4562 ;;
4563 ppc*-*linux*|powerpc*-*linux*)
4564 LD="${LD-ld} -m elf64ppc"
4565 ;;
4566 s390*-*linux*)
4567 LD="${LD-ld} -m elf64_s390"
4568 ;;
4569 sparc*-*linux*)
4570 LD="${LD-ld} -m elf64_sparc"
4571 ;;
4572 esac
4573 ;;
4574 esac
4575 fi
4576 rm -rf conftest*
4577 ;;
4578
4579*-*-sco3.2v5*)
4580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4581 SAVE_CFLAGS="$CFLAGS"
4582 CFLAGS="$CFLAGS -belf"
4583 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4584echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4585if test "${lt_cv_cc_needs_belf+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 ac_ext=c
4589ac_cpp='$CPP $CPPFLAGS'
4590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594 cat >conftest.$ac_ext <<_ACEOF
4595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004601
John Criswell47fdd832003-07-14 16:52:07 +00004602int
4603main ()
John Criswell7a73b802003-06-30 21:59:07 +00004604{
John Criswell7a73b802003-06-30 21:59:07 +00004605
John Criswell47fdd832003-07-14 16:52:07 +00004606 ;
4607 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004608}
John Criswell47fdd832003-07-14 16:52:07 +00004609_ACEOF
4610rm -f conftest.$ac_objext conftest$ac_exeext
4611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004612 (eval $ac_link) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004615 (exit $ac_status); } &&
4616 { ac_try='test -s conftest$ac_exeext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 (eval $ac_try) 2>&5
4619 ac_status=$?
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004623else
John Criswell47fdd832003-07-14 16:52:07 +00004624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004625sed 's/^/| /' conftest.$ac_ext >&5
4626
John Criswell47fdd832003-07-14 16:52:07 +00004627lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004628fi
John Criswell47fdd832003-07-14 16:52:07 +00004629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4630 ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
John Criswell7a73b802003-06-30 21:59:07 +00004636fi
John Criswell47fdd832003-07-14 16:52:07 +00004637echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4638echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4639 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4640 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4641 CFLAGS="$SAVE_CFLAGS"
4642 fi
4643 ;;
4644
4645esac
4646
4647need_locks="$enable_libtool_lock"
4648
John Criswell7a73b802003-06-30 21:59:07 +00004649
4650
4651echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4652echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4653if test "${ac_cv_header_stdc+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 cat >conftest.$ac_ext <<_ACEOF
4657#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004658/* confdefs.h. */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004663#include <stdlib.h>
4664#include <stdarg.h>
4665#include <string.h>
4666#include <float.h>
4667
John Criswell0c38eaf2003-09-10 15:17:25 +00004668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
John Criswell7a73b802003-06-30 21:59:07 +00004675_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004676rm -f conftest.$ac_objext
4677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004679 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004681 (exit $ac_status); } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004688 ac_cv_header_stdc=yes
4689else
4690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004694fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004695rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004696
4697if test $ac_cv_header_stdc = yes; then
4698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4699 cat >conftest.$ac_ext <<_ACEOF
4700#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004701/* confdefs.h. */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004706#include <string.h>
4707
4708_ACEOF
4709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004710 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004711 :
4712else
4713 ac_cv_header_stdc=no
4714fi
4715rm -f conftest*
4716
4717fi
4718
4719if test $ac_cv_header_stdc = yes; then
4720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4721 cat >conftest.$ac_ext <<_ACEOF
4722#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004723/* confdefs.h. */
4724_ACEOF
4725cat confdefs.h >>conftest.$ac_ext
4726cat >>conftest.$ac_ext <<_ACEOF
4727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004728#include <stdlib.h>
4729
4730_ACEOF
4731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004732 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004733 :
4734else
4735 ac_cv_header_stdc=no
4736fi
4737rm -f conftest*
4738
4739fi
4740
4741if test $ac_cv_header_stdc = yes; then
4742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4743 if test "$cross_compiling" = yes; then
4744 :
4745else
4746 cat >conftest.$ac_ext <<_ACEOF
4747#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004748/* confdefs.h. */
4749_ACEOF
4750cat confdefs.h >>conftest.$ac_ext
4751cat >>conftest.$ac_ext <<_ACEOF
4752/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004753#include <ctype.h>
4754#if ((' ' & 0x0FF) == 0x020)
4755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4757#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004758# define ISLOWER(c) \
4759 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004760 || ('j' <= (c) && (c) <= 'r') \
4761 || ('s' <= (c) && (c) <= 'z'))
4762# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4763#endif
4764
4765#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4766int
4767main ()
4768{
4769 int i;
4770 for (i = 0; i < 256; i++)
4771 if (XOR (islower (i), ISLOWER (i))
4772 || toupper (i) != TOUPPER (i))
4773 exit(2);
4774 exit (0);
4775}
4776_ACEOF
4777rm -f conftest$ac_exeext
4778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 :
4789else
4790 echo "$as_me: program exited with status $ac_status" >&5
4791echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004792sed 's/^/| /' conftest.$ac_ext >&5
4793
John Criswell7a73b802003-06-30 21:59:07 +00004794( exit $ac_status )
4795ac_cv_header_stdc=no
4796fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004797rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004798fi
4799fi
4800fi
4801echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4802echo "${ECHO_T}$ac_cv_header_stdc" >&6
4803if test $ac_cv_header_stdc = yes; then
4804
4805cat >>confdefs.h <<\_ACEOF
4806#define STDC_HEADERS 1
4807_ACEOF
4808
4809fi
4810
4811# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4822 inttypes.h stdint.h unistd.h
4823do
4824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4825echo "$as_me:$LINENO: checking for $ac_header" >&5
4826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4827if eval "test \"\${$as_ac_Header+set}\" = set"; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830 cat >conftest.$ac_ext <<_ACEOF
4831#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004837$ac_includes_default
4838
4839#include <$ac_header>
4840_ACEOF
4841rm -f conftest.$ac_objext
4842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 eval "$as_ac_Header=yes"
4854else
4855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004856sed 's/^/| /' conftest.$ac_ext >&5
4857
John Criswell7a73b802003-06-30 21:59:07 +00004858eval "$as_ac_Header=no"
4859fi
4860rm -f conftest.$ac_objext conftest.$ac_ext
4861fi
4862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4864if test `eval echo '${'$as_ac_Header'}'` = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4867_ACEOF
4868
4869fi
4870
4871done
4872
4873
4874
4875for ac_header in dlfcn.h
4876do
4877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4878if eval "test \"\${$as_ac_Header+set}\" = set"; then
4879 echo "$as_me:$LINENO: checking for $ac_header" >&5
4880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4881if eval "test \"\${$as_ac_Header+set}\" = set"; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883fi
4884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4886else
4887 # Is the header compilable?
4888echo "$as_me:$LINENO: checking $ac_header usability" >&5
4889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4890cat >conftest.$ac_ext <<_ACEOF
4891#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004897$ac_includes_default
4898#include <$ac_header>
4899_ACEOF
4900rm -f conftest.$ac_objext
4901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -s conftest.$ac_objext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_header_compiler=yes
4913else
4914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004915sed 's/^/| /' conftest.$ac_ext >&5
4916
John Criswell7a73b802003-06-30 21:59:07 +00004917ac_header_compiler=no
4918fi
4919rm -f conftest.$ac_objext conftest.$ac_ext
4920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4921echo "${ECHO_T}$ac_header_compiler" >&6
4922
4923# Is the header present?
4924echo "$as_me:$LINENO: checking $ac_header presence" >&5
4925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4926cat >conftest.$ac_ext <<_ACEOF
4927#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004928/* confdefs.h. */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004933#include <$ac_header>
4934_ACEOF
4935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004938 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_c_preproc_warn_flag
4945 else
4946 ac_cpp_err=
4947 fi
4948else
4949 ac_cpp_err=yes
4950fi
4951if test -z "$ac_cpp_err"; then
4952 ac_header_preproc=yes
4953else
4954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004955sed 's/^/| /' conftest.$ac_ext >&5
4956
John Criswell7a73b802003-06-30 21:59:07 +00004957 ac_header_preproc=no
4958fi
4959rm -f conftest.err conftest.$ac_ext
4960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4961echo "${ECHO_T}$ac_header_preproc" >&6
4962
4963# So? What about this header?
4964case $ac_header_compiler:$ac_header_preproc in
4965 yes:no )
4966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4970 (
4971 cat <<\_ASBOX
4972## ------------------------------------ ##
4973## Report this to bug-autoconf@gnu.org. ##
4974## ------------------------------------ ##
4975_ASBOX
4976 ) |
4977 sed "s/^/$as_me: WARNING: /" >&2
4978 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004979 no:yes )
4980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4986 (
4987 cat <<\_ASBOX
4988## ------------------------------------ ##
4989## Report this to bug-autoconf@gnu.org. ##
4990## ------------------------------------ ##
4991_ASBOX
4992 ) |
4993 sed "s/^/$as_me: WARNING: /" >&2
4994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004995esac
4996echo "$as_me:$LINENO: checking for $ac_header" >&5
4997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 eval "$as_ac_Header=$ac_header_preproc"
5002fi
5003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5005
5006fi
5007if test `eval echo '${'$as_ac_Header'}'` = yes; then
5008 cat >>confdefs.h <<_ACEOF
5009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010_ACEOF
5011
5012fi
5013
5014done
5015
John Criswell47fdd832003-07-14 16:52:07 +00005016ac_ext=cc
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5022echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5023if test -z "$CXXCPP"; then
5024 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
John Criswell47fdd832003-07-14 16:52:07 +00005027 # Double quotes because CXXCPP needs to be expanded
5028 for CXXCPP in "$CXX -E" "/lib/cpp"
5029 do
5030 ac_preproc_ok=false
5031for ac_cxx_preproc_warn_flag in '' yes
5032do
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat >conftest.$ac_ext <<_ACEOF
5040#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h. */
5046#ifdef __STDC__
5047# include <limits.h>
5048#else
5049# include <assert.h>
5050#endif
John Criswell47fdd832003-07-14 16:52:07 +00005051 Syntax error
5052_ACEOF
5053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005056 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null; then
5061 if test -s conftest.err; then
5062 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00005063 else
John Criswell47fdd832003-07-14 16:52:07 +00005064 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005065 fi
John Criswell47fdd832003-07-14 16:52:07 +00005066else
5067 ac_cpp_err=yes
5068fi
5069if test -z "$ac_cpp_err"; then
5070 :
5071else
5072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005073sed 's/^/| /' conftest.$ac_ext >&5
5074
John Criswell47fdd832003-07-14 16:52:07 +00005075 # Broken: fails on valid input.
5076continue
5077fi
5078rm -f conftest.err conftest.$ac_ext
5079
5080 # OK, works on sane cases. Now check whether non-existent headers
5081 # can be detected and how.
5082 cat >conftest.$ac_ext <<_ACEOF
5083#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005089#include <ac_nonexistent.h>
5090_ACEOF
5091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005094 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_cxx_preproc_warn_flag
5101 else
5102 ac_cpp_err=
5103 fi
5104else
5105 ac_cpp_err=yes
5106fi
5107if test -z "$ac_cpp_err"; then
5108 # Broken: success on invalid input.
5109continue
5110else
5111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005112sed 's/^/| /' conftest.$ac_ext >&5
5113
John Criswell47fdd832003-07-14 16:52:07 +00005114 # Passes both tests.
5115ac_preproc_ok=:
5116break
5117fi
5118rm -f conftest.err conftest.$ac_ext
5119
5120done
5121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122rm -f conftest.err conftest.$ac_ext
5123if $ac_preproc_ok; then
5124 break
John Criswell7a73b802003-06-30 21:59:07 +00005125fi
5126
John Criswell47fdd832003-07-14 16:52:07 +00005127 done
5128 ac_cv_prog_CXXCPP=$CXXCPP
5129
5130fi
5131 CXXCPP=$ac_cv_prog_CXXCPP
5132else
5133 ac_cv_prog_CXXCPP=$CXXCPP
5134fi
5135echo "$as_me:$LINENO: result: $CXXCPP" >&5
5136echo "${ECHO_T}$CXXCPP" >&6
5137ac_preproc_ok=false
5138for ac_cxx_preproc_warn_flag in '' yes
5139do
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat >conftest.$ac_ext <<_ACEOF
5147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005148/* confdefs.h. */
5149_ACEOF
5150cat confdefs.h >>conftest.$ac_ext
5151cat >>conftest.$ac_ext <<_ACEOF
5152/* end confdefs.h. */
5153#ifdef __STDC__
5154# include <limits.h>
5155#else
5156# include <assert.h>
5157#endif
John Criswell47fdd832003-07-14 16:52:07 +00005158 Syntax error
5159_ACEOF
5160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005163 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null; then
5168 if test -s conftest.err; then
5169 ac_cpp_err=$ac_cxx_preproc_warn_flag
5170 else
5171 ac_cpp_err=
5172 fi
5173else
5174 ac_cpp_err=yes
5175fi
5176if test -z "$ac_cpp_err"; then
5177 :
5178else
5179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005180sed 's/^/| /' conftest.$ac_ext >&5
5181
John Criswell47fdd832003-07-14 16:52:07 +00005182 # Broken: fails on valid input.
5183continue
5184fi
5185rm -f conftest.err conftest.$ac_ext
5186
5187 # OK, works on sane cases. Now check whether non-existent headers
5188 # can be detected and how.
5189 cat >conftest.$ac_ext <<_ACEOF
5190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005191/* confdefs.h. */
5192_ACEOF
5193cat confdefs.h >>conftest.$ac_ext
5194cat >>conftest.$ac_ext <<_ACEOF
5195/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005196#include <ac_nonexistent.h>
5197_ACEOF
5198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005201 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null; then
5206 if test -s conftest.err; then
5207 ac_cpp_err=$ac_cxx_preproc_warn_flag
5208 else
5209 ac_cpp_err=
5210 fi
5211else
5212 ac_cpp_err=yes
5213fi
5214if test -z "$ac_cpp_err"; then
5215 # Broken: success on invalid input.
5216continue
5217else
5218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005219sed 's/^/| /' conftest.$ac_ext >&5
5220
John Criswell47fdd832003-07-14 16:52:07 +00005221 # Passes both tests.
5222ac_preproc_ok=:
5223break
5224fi
5225rm -f conftest.err conftest.$ac_ext
5226
5227done
5228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229rm -f conftest.err conftest.$ac_ext
5230if $ac_preproc_ok; then
5231 :
5232else
John Criswell0c38eaf2003-09-10 15:17:25 +00005233 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5234See \`config.log' for more details." >&5
5235echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5236See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005237 { (exit 1); exit 1; }; }
5238fi
5239
5240ac_ext=cc
5241ac_cpp='$CXXCPP $CPPFLAGS'
5242ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5245
5246
5247ac_ext=f
5248ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5249ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5251if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005252 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 +00005253 do
5254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_prog_F77+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261 if test -n "$F77"; then
5262 ac_cv_prog_F77="$F77" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275done
5276done
5277
5278fi
5279fi
5280F77=$ac_cv_prog_F77
5281if test -n "$F77"; then
5282 echo "$as_me:$LINENO: result: $F77" >&5
5283echo "${ECHO_T}$F77" >&6
5284else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287fi
5288
5289 test -n "$F77" && break
5290 done
5291fi
5292if test -z "$F77"; then
5293 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005294 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 +00005295do
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297set dummy $ac_prog; ac_word=$2
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 if test -n "$ac_ct_F77"; then
5304 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_F77="$ac_prog"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318done
5319
5320fi
5321fi
5322ac_ct_F77=$ac_cv_prog_ac_ct_F77
5323if test -n "$ac_ct_F77"; then
5324 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5325echo "${ECHO_T}$ac_ct_F77" >&6
5326else
5327 echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
5329fi
5330
5331 test -n "$ac_ct_F77" && break
5332done
5333
5334 F77=$ac_ct_F77
5335fi
5336
5337
5338# Provide some information about the compiler.
Brian Gaeke866f10c2003-11-24 02:54:57 +00005339echo "$as_me:5339:" \
John Criswell47fdd832003-07-14 16:52:07 +00005340 "checking for Fortran 77 compiler version" >&5
5341ac_compiler=`set X $ac_compile; echo $2`
5342{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5343 (eval $ac_compiler --version </dev/null >&5) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5348 (eval $ac_compiler -v </dev/null >&5) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }
5352{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5353 (eval $ac_compiler -V </dev/null >&5) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }
5357
5358# If we don't use `.F' as extension, the preprocessor is not run on the
5359# input file.
5360ac_save_ext=$ac_ext
5361ac_ext=F
5362echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5363echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5364if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 program main
5369#ifndef __GNUC__
5370 choke me
5371#endif
5372
5373 end
5374_ACEOF
5375rm -f conftest.$ac_objext
5376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_compiler_gnu=yes
5388else
5389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005390sed 's/^/| /' conftest.$ac_ext >&5
5391
John Criswell47fdd832003-07-14 16:52:07 +00005392ac_compiler_gnu=no
5393fi
5394rm -f conftest.$ac_objext conftest.$ac_ext
5395ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5396
5397fi
5398echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5399echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5400ac_ext=$ac_save_ext
5401G77=`test $ac_compiler_gnu = yes && echo yes`
5402ac_test_FFLAGS=${FFLAGS+set}
5403ac_save_FFLAGS=$FFLAGS
5404FFLAGS=
5405echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5406echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5407if test "${ac_cv_prog_f77_g+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410 FFLAGS=-g
5411cat >conftest.$ac_ext <<_ACEOF
5412 program main
5413
5414 end
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_prog_f77_g=yes
5429else
5430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005431sed 's/^/| /' conftest.$ac_ext >&5
5432
John Criswell47fdd832003-07-14 16:52:07 +00005433ac_cv_prog_f77_g=no
5434fi
5435rm -f conftest.$ac_objext conftest.$ac_ext
5436
5437fi
5438echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5439echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5440if test "$ac_test_FFLAGS" = set; then
5441 FFLAGS=$ac_save_FFLAGS
5442elif test $ac_cv_prog_f77_g = yes; then
5443 if test "$G77" = yes; then
5444 FFLAGS="-g -O2"
5445 else
5446 FFLAGS="-g"
5447 fi
5448else
5449 if test "$G77" = yes; then
5450 FFLAGS="-O2"
5451 else
5452 FFLAGS=
5453 fi
5454fi
5455ac_ext=c
5456ac_cpp='$CPP $CPPFLAGS'
5457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5459ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460
5461
5462
5463# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5464
5465# find the maximum length of command line arguments
5466echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 i=0
5472 testring="ABCD"
5473
5474 case $build_os in
5475 msdosdjgpp*)
5476 # On DJGPP, this test can blow up pretty badly due to problems in libc
5477 # (any single argument exceeding 2000 bytes causes a buffer overrun
5478 # during glob expansion). Even if it were fixed, the result of this
5479 # check would be larger than it should be.
5480 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5481 ;;
5482
5483 gnu*)
5484 # Under GNU Hurd, this test is not required because there is
5485 # no limit to the length of command line arguments.
5486 # Libtool will interpret -1 as no limit whatsoever
5487 lt_cv_sys_max_cmd_len=-1;
5488 ;;
5489
5490 cygwin* | mingw*)
5491 # On Win9x/ME, this test blows up -- it succeeds, but takes
5492 # about 5 minutes as the teststring grows exponentially.
5493 # Worse, since 9x/ME are not pre-emptively multitasking,
5494 # you end up with a "frozen" computer, even though with patience
5495 # the test eventually succeeds (with a max line length of 256k).
5496 # Instead, let's just punt: use the minimum linelength reported by
5497 # all of the supported platforms: 8192 (on NT/2K/XP).
5498 lt_cv_sys_max_cmd_len=8192;
5499 ;;
5500
5501 *)
5502 # If test is not a shell built-in, we'll probably end up computing a
5503 # maximum length that is only half of the actual maximum length, but
5504 # we can't tell.
5505 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5506 = "XX$testring") >/dev/null 2>&1 &&
5507 new_result=`expr "X$testring" : ".*" 2>&1` &&
5508 lt_cv_sys_max_cmd_len=$new_result &&
5509 test $i != 17 # 1/2 MB should be enough
5510 do
5511 i=`expr $i + 1`
5512 testring=$testring$testring
5513 done
5514 testring=
5515 # Add a significant safety factor because C++ compilers can tack on massive
5516 # amounts of additional arguments before passing them to the linker.
5517 # It appears as though 1/2 is a usable value.
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 ;;
5520 esac
5521
5522fi
5523
5524if test -n $lt_cv_sys_max_cmd_len ; then
5525 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5526echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5527else
5528 echo "$as_me:$LINENO: result: none" >&5
5529echo "${ECHO_T}none" >&6
5530fi
5531
5532
5533
5534
5535# Check for command to grab the raw symbol name followed by C symbol from nm.
5536echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5537echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5538if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541
5542# These are sane defaults that work on at least a few old systems.
5543# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5544
5545# Character class describing NM global symbol codes.
5546symcode='[BCDEGRST]'
5547
5548# Regexp to match symbols that can be accessed directly from C.
5549sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5550
5551# Transform the above into a raw symbol and a C symbol.
5552symxfrm='\1 \2\3 \3'
5553
5554# Transform an extracted symbol line into a proper C declaration
5555lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5556
5557# Transform an extracted symbol line into symbol name and symbol address
5558lt_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'"
5559
5560# Define system-specific variables.
5561case $host_os in
5562aix*)
5563 symcode='[BCDT]'
5564 ;;
5565cygwin* | mingw* | pw32*)
5566 symcode='[ABCDGISTW]'
5567 ;;
5568hpux*) # Its linker distinguishes data from code symbols
5569 if test "$host_cpu" = ia64; then
5570 symcode='[ABCDEGRST]'
5571 fi
5572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5573 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'"
5574 ;;
5575irix* | nonstopux*)
5576 symcode='[BCDEGRST]'
5577 ;;
5578osf*)
5579 symcode='[BCDEGQRST]'
5580 ;;
5581solaris* | sysv5*)
5582 symcode='[BDT]'
5583 ;;
5584sysv4)
5585 symcode='[DFNSTU]'
5586 ;;
5587esac
5588
5589# Handle CRLF in mingw tool chain
5590opt_cr=
5591case $build_os in
5592mingw*)
5593 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5594 ;;
5595esac
5596
5597# If we're using GNU nm, then use its standard symbol codes.
5598case `$NM -V 2>&1` in
5599*GNU* | *'with BFD'*)
5600 symcode='[ABCDGISTW]' ;;
5601esac
5602
5603# Try without a prefix undercore, then with it.
5604for ac_symprfx in "" "_"; do
5605
5606 # Write the raw and C identifiers.
5607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5608
5609 # Check to see that the pipe works correctly.
5610 pipe_works=no
5611
5612 rm -f conftest*
5613 cat > conftest.$ac_ext <<EOF
5614#ifdef __cplusplus
5615extern "C" {
5616#endif
5617char nm_test_var;
5618void nm_test_func(){}
5619#ifdef __cplusplus
5620}
5621#endif
5622int main(){nm_test_var='a';nm_test_func();return(0);}
5623EOF
5624
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; then
5630 # Now try to grab the symbols.
5631 nlist=conftest.nm
5632 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5633 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s "$nlist"; then
5637 # Try sorting and uniquifying the output.
5638 if sort "$nlist" | uniq > "$nlist"T; then
5639 mv -f "$nlist"T "$nlist"
5640 else
5641 rm -f "$nlist"T
5642 fi
5643
5644 # Make sure that we snagged all the symbols we need.
5645 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5646 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5647 cat <<EOF > conftest.$ac_ext
5648#ifdef __cplusplus
5649extern "C" {
5650#endif
5651
5652EOF
5653 # Now generate the symbol file.
5654 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5655
5656 cat <<EOF >> conftest.$ac_ext
5657#if defined (__STDC__) && __STDC__
5658# define lt_ptr_t void *
5659#else
5660# define lt_ptr_t char *
5661# define const
5662#endif
5663
5664/* The mapping between symbol names and symbols. */
5665const struct {
5666 const char *name;
5667 lt_ptr_t address;
5668}
5669lt_preloaded_symbols[] =
5670{
5671EOF
5672 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5673 cat <<\EOF >> conftest.$ac_ext
5674 {0, (lt_ptr_t) 0}
5675};
5676
5677#ifdef __cplusplus
5678}
5679#endif
5680EOF
5681 # Now try linking the two files.
5682 mv conftest.$ac_objext conftstm.$ac_objext
5683 lt_save_LIBS="$LIBS"
5684 lt_save_CFLAGS="$CFLAGS"
5685 LIBS="conftstm.$ac_objext"
5686 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5692 pipe_works=yes
5693 fi
5694 LIBS="$lt_save_LIBS"
5695 CFLAGS="$lt_save_CFLAGS"
5696 else
5697 echo "cannot find nm_test_func in $nlist" >&5
5698 fi
5699 else
5700 echo "cannot find nm_test_var in $nlist" >&5
5701 fi
5702 else
5703 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5704 fi
5705 else
5706 echo "$progname: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 fi
5709 rm -f conftest* conftst*
5710
5711 # Do not use the global_symbol_pipe unless it works.
5712 if test "$pipe_works" = yes; then
5713 break
5714 else
5715 lt_cv_sys_global_symbol_pipe=
5716 fi
5717done
5718
5719fi
5720
5721if test -z "$lt_cv_sys_global_symbol_pipe"; then
5722 lt_cv_sys_global_symbol_to_cdecl=
5723fi
5724if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5725 echo "$as_me:$LINENO: result: failed" >&5
5726echo "${ECHO_T}failed" >&6
5727else
5728 echo "$as_me:$LINENO: result: ok" >&5
5729echo "${ECHO_T}ok" >&6
5730fi
5731
5732echo "$as_me:$LINENO: checking for objdir" >&5
5733echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5734if test "${lt_cv_objdir+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 rm -f .libs 2>/dev/null
5738mkdir .libs 2>/dev/null
5739if test -d .libs; then
5740 lt_cv_objdir=.libs
5741else
5742 # MS-DOS does not allow filenames that begin with a dot.
5743 lt_cv_objdir=_libs
5744fi
5745rmdir .libs 2>/dev/null
5746fi
5747echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5748echo "${ECHO_T}$lt_cv_objdir" >&6
5749objdir=$lt_cv_objdir
5750
5751
5752
5753
5754
5755case $host_os in
5756aix3*)
5757 # AIX sometimes has problems with the GCC collect2 program. For some
5758 # reason, if we set the COLLECT_NAMES environment variable, the problems
5759 # vanish in a puff of smoke.
5760 if test "X${COLLECT_NAMES+set}" != Xset; then
5761 COLLECT_NAMES=
5762 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005763 fi
5764 ;;
5765esac
5766
John Criswell47fdd832003-07-14 16:52:07 +00005767# Sed substitution that helps us do robust quoting. It backslashifies
5768# metacharacters that are still active within double-quoted strings.
5769Xsed='sed -e s/^X//'
5770sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5771
5772# Same as above, but do not quote variable references.
5773double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5774
5775# Sed substitution to delay expansion of an escaped shell variable in a
5776# double_quote_subst'ed string.
5777delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5778
5779# Sed substitution to avoid accidental globbing in evaled expressions
5780no_glob_subst='s/\*/\\\*/g'
5781
5782# Constants:
5783rm="rm -f"
5784
5785# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005786default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005787can_build_shared=yes
5788
5789# All known linkers require a `.a' archive for static linking (except M$VC,
5790# which needs '.lib').
5791libext=a
5792ltmain="$ac_aux_dir/ltmain.sh"
5793ofile="$default_ofile"
5794with_gnu_ld="$lt_cv_prog_gnu_ld"
5795
5796if test -n "$ac_tool_prefix"; then
5797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5798set dummy ${ac_tool_prefix}ar; ac_word=$2
5799echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801if test "${ac_cv_prog_AR+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 if test -n "$AR"; then
5805 ac_cv_prog_AR="$AR" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_AR="${ac_tool_prefix}ar"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819done
5820
5821fi
5822fi
5823AR=$ac_cv_prog_AR
5824if test -n "$AR"; then
5825 echo "$as_me:$LINENO: result: $AR" >&5
5826echo "${ECHO_T}$AR" >&6
5827else
5828 echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830fi
5831
5832fi
5833if test -z "$ac_cv_prog_AR"; then
5834 ac_ct_AR=$AR
5835 # Extract the first word of "ar", so it can be a program name with args.
5836set dummy ar; ac_word=$2
5837echo "$as_me:$LINENO: checking for $ac_word" >&5
5838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5839if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842 if test -n "$ac_ct_AR"; then
5843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5844else
5845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_ac_ct_AR="ar"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857done
5858
5859 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5860fi
5861fi
5862ac_ct_AR=$ac_cv_prog_ac_ct_AR
5863if test -n "$ac_ct_AR"; then
5864 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5865echo "${ECHO_T}$ac_ct_AR" >&6
5866else
5867 echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
5869fi
5870
5871 AR=$ac_ct_AR
5872else
5873 AR="$ac_cv_prog_AR"
5874fi
5875
John Criswell7a73b802003-06-30 21:59:07 +00005876if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5878set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5879echo "$as_me:$LINENO: checking for $ac_word" >&5
5880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881if test "${ac_cv_prog_RANLIB+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884 if test -n "$RANLIB"; then
5885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899done
5900
5901fi
5902fi
5903RANLIB=$ac_cv_prog_RANLIB
5904if test -n "$RANLIB"; then
5905 echo "$as_me:$LINENO: result: $RANLIB" >&5
5906echo "${ECHO_T}$RANLIB" >&6
5907else
5908 echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
5910fi
5911
5912fi
5913if test -z "$ac_cv_prog_RANLIB"; then
5914 ac_ct_RANLIB=$RANLIB
5915 # Extract the first word of "ranlib", so it can be a program name with args.
5916set dummy ranlib; ac_word=$2
5917echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5919if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922 if test -n "$ac_ct_RANLIB"; then
5923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_RANLIB="ranlib"
5933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937done
5938
5939 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5940fi
5941fi
5942ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5943if test -n "$ac_ct_RANLIB"; then
5944 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5945echo "${ECHO_T}$ac_ct_RANLIB" >&6
5946else
5947 echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949fi
5950
5951 RANLIB=$ac_ct_RANLIB
5952else
5953 RANLIB="$ac_cv_prog_RANLIB"
5954fi
5955
5956if test -n "$ac_tool_prefix"; then
5957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5958set dummy ${ac_tool_prefix}strip; ac_word=$2
5959echo "$as_me:$LINENO: checking for $ac_word" >&5
5960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5961if test "${ac_cv_prog_STRIP+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 if test -n "$STRIP"; then
5965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5966else
5967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968for as_dir in $PATH
5969do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978done
5979done
5980
5981fi
5982fi
5983STRIP=$ac_cv_prog_STRIP
5984if test -n "$STRIP"; then
5985 echo "$as_me:$LINENO: result: $STRIP" >&5
5986echo "${ECHO_T}$STRIP" >&6
5987else
5988 echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990fi
5991
5992fi
5993if test -z "$ac_cv_prog_STRIP"; then
5994 ac_ct_STRIP=$STRIP
5995 # Extract the first word of "strip", so it can be a program name with args.
5996set dummy strip; ac_word=$2
5997echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5999if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 if test -n "$ac_ct_STRIP"; then
6003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_ac_ct_STRIP="strip"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
6017done
6018
6019 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6020fi
6021fi
6022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6023if test -n "$ac_ct_STRIP"; then
6024 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6025echo "${ECHO_T}$ac_ct_STRIP" >&6
6026else
6027 echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6
6029fi
6030
6031 STRIP=$ac_ct_STRIP
6032else
6033 STRIP="$ac_cv_prog_STRIP"
6034fi
6035
6036
John Criswell7a73b802003-06-30 21:59:07 +00006037old_CC="$CC"
6038old_CFLAGS="$CFLAGS"
6039
6040# Set sane defaults for various variables
6041test -z "$AR" && AR=ar
6042test -z "$AR_FLAGS" && AR_FLAGS=cru
6043test -z "$AS" && AS=as
6044test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006045test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006046test -z "$DLLTOOL" && DLLTOOL=dlltool
6047test -z "$LD" && LD=ld
6048test -z "$LN_S" && LN_S="ln -s"
6049test -z "$MAGIC_CMD" && MAGIC_CMD=file
6050test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006051test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006052test -z "$OBJDUMP" && OBJDUMP=objdump
6053test -z "$RANLIB" && RANLIB=:
6054test -z "$STRIP" && STRIP=:
6055test -z "$ac_objext" && ac_objext=o
6056
John Criswell7a73b802003-06-30 21:59:07 +00006057# Determine commands to create old-style static archives.
6058old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6059old_postinstall_cmds='chmod 644 $oldlib'
6060old_postuninstall_cmds=
6061
6062if test -n "$RANLIB"; then
6063 case $host_os in
6064 openbsd*)
6065 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6066 ;;
6067 *)
6068 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6069 ;;
6070 esac
6071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6072fi
6073
John Criswell47fdd832003-07-14 16:52:07 +00006074# Only perform the check for file, if the check method requires it
6075case $deplibs_check_method in
6076file_magic*)
6077 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6078 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6079echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6080if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006082else
John Criswell47fdd832003-07-14 16:52:07 +00006083 case $MAGIC_CMD in
6084[\\/*] | ?:[\\/]*)
6085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6086 ;;
6087*)
6088 lt_save_MAGIC_CMD="$MAGIC_CMD"
6089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6090 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6091 for ac_dir in $ac_dummy; do
6092 IFS="$lt_save_ifs"
6093 test -z "$ac_dir" && ac_dir=.
6094 if test -f $ac_dir/${ac_tool_prefix}file; then
6095 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6096 if test -n "$file_magic_test_file"; then
6097 case $deplibs_check_method in
6098 "file_magic "*)
6099 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6102 $EGREP "$file_magic_regex" > /dev/null; then
6103 :
6104 else
6105 cat <<EOF 1>&2
6106
6107*** Warning: the command libtool uses to detect shared libraries,
6108*** $file_magic_cmd, produces output that libtool cannot recognize.
6109*** The result is that libtool may fail to recognize shared libraries
6110*** as such. This will affect the creation of libtool libraries that
6111*** depend on shared libraries, but programs linked with such libtool
6112*** libraries will work regardless of this problem. Nevertheless, you
6113*** may want to report the problem to your system manager and/or to
6114*** bug-libtool@gnu.org
6115
6116EOF
6117 fi ;;
6118 esac
6119 fi
6120 break
6121 fi
6122 done
6123 IFS="$lt_save_ifs"
6124 MAGIC_CMD="$lt_save_MAGIC_CMD"
6125 ;;
6126esac
John Criswell7a73b802003-06-30 21:59:07 +00006127fi
John Criswell7a73b802003-06-30 21:59:07 +00006128
John Criswell47fdd832003-07-14 16:52:07 +00006129MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130if test -n "$MAGIC_CMD"; then
6131 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6132echo "${ECHO_T}$MAGIC_CMD" >&6
6133else
6134 echo "$as_me:$LINENO: result: no" >&5
6135echo "${ECHO_T}no" >&6
6136fi
John Criswell7a73b802003-06-30 21:59:07 +00006137
John Criswell47fdd832003-07-14 16:52:07 +00006138if test -z "$lt_cv_path_MAGIC_CMD"; then
6139 if test -n "$ac_tool_prefix"; then
6140 echo "$as_me:$LINENO: checking for file" >&5
6141echo $ECHO_N "checking for file... $ECHO_C" >&6
6142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 case $MAGIC_CMD in
6146[\\/*] | ?:[\\/]*)
6147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6148 ;;
6149*)
6150 lt_save_MAGIC_CMD="$MAGIC_CMD"
6151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6153 for ac_dir in $ac_dummy; do
6154 IFS="$lt_save_ifs"
6155 test -z "$ac_dir" && ac_dir=.
6156 if test -f $ac_dir/file; then
6157 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6158 if test -n "$file_magic_test_file"; then
6159 case $deplibs_check_method in
6160 "file_magic "*)
6161 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6164 $EGREP "$file_magic_regex" > /dev/null; then
6165 :
6166 else
6167 cat <<EOF 1>&2
6168
6169*** Warning: the command libtool uses to detect shared libraries,
6170*** $file_magic_cmd, produces output that libtool cannot recognize.
6171*** The result is that libtool may fail to recognize shared libraries
6172*** as such. This will affect the creation of libtool libraries that
6173*** depend on shared libraries, but programs linked with such libtool
6174*** libraries will work regardless of this problem. Nevertheless, you
6175*** may want to report the problem to your system manager and/or to
6176*** bug-libtool@gnu.org
6177
6178EOF
6179 fi ;;
6180 esac
6181 fi
6182 break
6183 fi
6184 done
6185 IFS="$lt_save_ifs"
6186 MAGIC_CMD="$lt_save_MAGIC_CMD"
6187 ;;
6188esac
6189fi
6190
6191MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6192if test -n "$MAGIC_CMD"; then
6193 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6194echo "${ECHO_T}$MAGIC_CMD" >&6
6195else
6196 echo "$as_me:$LINENO: result: no" >&5
6197echo "${ECHO_T}no" >&6
6198fi
6199
6200 else
6201 MAGIC_CMD=:
6202 fi
6203fi
6204
6205 fi
6206 ;;
6207esac
6208
6209enable_dlopen=no
6210enable_win32_dll=no
6211
6212# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6213if test "${enable_libtool_lock+set}" = set; then
6214 enableval="$enable_libtool_lock"
6215
6216fi;
6217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6218
John Criswell7a73b802003-06-30 21:59:07 +00006219
6220# Check whether --with-pic or --without-pic was given.
6221if test "${with_pic+set}" = set; then
6222 withval="$with_pic"
6223 pic_mode="$withval"
6224else
6225 pic_mode=default
6226fi;
6227test -z "$pic_mode" && pic_mode=default
6228
John Criswell47fdd832003-07-14 16:52:07 +00006229# Use C for the default configuration in the libtool script
6230tagname=
6231lt_save_CC="$CC"
6232ac_ext=c
6233ac_cpp='$CPP $CPPFLAGS'
6234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238
6239# Source file extension for C test sources.
6240ac_ext=c
6241
6242# Object file extension for compiled C test sources.
6243objext=o
6244objext=$objext
6245
6246# Code to be used in simple compile tests
6247lt_simple_compile_test_code="int some_variable = 0;\n"
6248
6249# Code to be used in simple link tests
6250lt_simple_link_test_code='int main(){return(0);}\n'
6251
6252
6253# If no C compiler was specified, use CC.
6254LTCC=${LTCC-"$CC"}
6255
6256# Allow CC to be a program name with arguments.
6257compiler=$CC
6258
6259
6260#
6261# Check for any special shared library compilation flags.
6262#
6263lt_prog_cc_shlib=
6264if test "$GCC" = no; then
6265 case $host_os in
6266 sco3.2v5*)
6267 lt_prog_cc_shlib='-belf'
6268 ;;
6269 esac
6270fi
6271if test -n "$lt_prog_cc_shlib"; then
6272 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6273echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6274 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6275 else
6276 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6277echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6278 lt_cv_prog_cc_can_build_shared=no
6279 fi
6280fi
6281
6282
6283#
6284# Check to make sure the static flag actually works.
6285#
6286echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6287echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6288if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290else
John Criswell47fdd832003-07-14 16:52:07 +00006291 lt_prog_compiler_static_works=no
6292 save_LDFLAGS="$LDFLAGS"
6293 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6294 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6296 # The compiler can only warn and ignore the option if not recognized
6297 # So say no if there are warnings
6298 if test -s conftest.err; then
6299 # Append any errors to the config.log.
6300 cat conftest.err 1>&5
6301 else
6302 lt_prog_compiler_static_works=yes
6303 fi
6304 fi
6305 $rm conftest*
6306 LDFLAGS="$save_LDFLAGS"
6307
6308fi
6309echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6310echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6311
6312if test x"$lt_prog_compiler_static_works" = xyes; then
6313 :
6314else
6315 lt_prog_compiler_static=
6316fi
6317
6318
6319
6320## CAVEAT EMPTOR:
6321## There is no encapsulation within the following macros, do not change
6322## the running order or otherwise move them around unless you know exactly
6323## what you are doing...
6324
6325lt_prog_compiler_no_builtin_flag=
6326
6327if test "$GCC" = yes; then
6328 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6329
6330 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6331echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6332if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 lt_cv_prog_compiler_rtti_exceptions=no
6336 ac_outfile=conftest.$ac_objext
6337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6338 lt_compiler_flag="-fno-rtti -fno-exceptions"
6339 # Insert the option either (1) after the last *FLAGS variable, or
6340 # (2) before a word containing "conftest.", or (3) at the end.
6341 # Note that $ac_compile itself does not contain backslashes and begins
6342 # with a dollar sign (not a hyphen), so the echo should work correctly.
6343 # The option is referenced via a variable to avoid confusing sed.
6344 lt_compile=`echo "$ac_compile" | $SED \
6345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6347 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +00006348 (eval echo "\"\$as_me:6348: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006349 (eval "$lt_compile" 2>conftest.err)
6350 ac_status=$?
6351 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +00006352 echo "$as_me:6352: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006353 if (exit $ac_status) && test -s "$ac_outfile"; then
6354 # The compiler can only warn and ignore the option if not recognized
6355 # So say no if there are warnings
6356 if test ! -s conftest.err; then
6357 lt_cv_prog_compiler_rtti_exceptions=yes
6358 fi
6359 fi
6360 $rm conftest*
6361
6362fi
6363echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6364echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6365
6366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6368else
6369 :
6370fi
6371
6372fi
6373
6374lt_prog_compiler_wl=
6375lt_prog_compiler_pic=
6376lt_prog_compiler_static=
6377
6378echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6379echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006380
6381 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006382 lt_prog_compiler_wl='-Wl,'
6383 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006384
6385 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006386 aix*)
6387 # All AIX code is PIC.
6388 if test "$host_cpu" = ia64; then
6389 # AIX 5 now supports IA64 processor
6390 lt_prog_compiler_static='-Bstatic'
6391 fi
John Criswell7a73b802003-06-30 21:59:07 +00006392 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006393
John Criswell7a73b802003-06-30 21:59:07 +00006394 amigaos*)
6395 # FIXME: we need at least 68020 code to build shared libraries, but
6396 # adding the `-m68020' flag to GCC prevents building anything better,
6397 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006398 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006399 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006400
6401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006402 # PIC is the default for these OSes.
6403 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006404
6405 mingw* | pw32* | os2*)
6406 # This hack is so that the source file can tell whether it is being
6407 # built for inclusion in a dll (and should export symbols for example).
6408 lt_prog_compiler_pic='-DDLL_EXPORT'
6409 ;;
6410
John Criswell7a73b802003-06-30 21:59:07 +00006411 darwin* | rhapsody*)
6412 # PIC is the default on this platform
6413 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006414 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006415 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006416
6417 msdosdjgpp*)
6418 # Just because we use GCC doesn't mean we suddenly get shared libraries
6419 # on systems that don't support them.
6420 lt_prog_compiler_can_build_shared=no
6421 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006422 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006423
John Criswell7a73b802003-06-30 21:59:07 +00006424 sysv4*MP*)
6425 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006426 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006427 fi
6428 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006429
6430 hpux*)
6431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6432 # not for PA HP-UX.
6433 case "$host_cpu" in
6434 hppa*64*|ia64*)
6435 # +Z the default
6436 ;;
6437 *)
6438 lt_prog_compiler_pic='-fPIC'
6439 ;;
6440 esac
6441 ;;
6442
John Criswell7a73b802003-06-30 21:59:07 +00006443 *)
John Criswell47fdd832003-07-14 16:52:07 +00006444 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006445 ;;
6446 esac
6447 else
John Criswell47fdd832003-07-14 16:52:07 +00006448 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006449 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006450 aix*)
6451 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006452 if test "$host_cpu" = ia64; then
6453 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006454 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006455 else
John Criswell47fdd832003-07-14 16:52:07 +00006456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006457 fi
6458 ;;
6459
John Criswell47fdd832003-07-14 16:52:07 +00006460 mingw* | pw32* | os2*)
6461 # This hack is so that the source file can tell whether it is being
6462 # built for inclusion in a dll (and should export symbols for example).
6463 lt_prog_compiler_pic='-DDLL_EXPORT'
6464 ;;
6465
John Criswell7a73b802003-06-30 21:59:07 +00006466 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006467 lt_prog_compiler_wl='-Wl,'
6468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6469 # not for PA HP-UX.
6470 case "$host_cpu" in
6471 hppa*64*|ia64*)
6472 # +Z the default
6473 ;;
6474 *)
6475 lt_prog_compiler_pic='+Z'
6476 ;;
6477 esac
6478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6479 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006480 ;;
6481
John Criswell47fdd832003-07-14 16:52:07 +00006482 irix5* | irix6* | nonstopux*)
6483 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006484 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006485 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006486 ;;
6487
6488 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006489 lt_prog_compiler_pic='-KPIC'
6490 lt_prog_compiler_static='-Bstatic'
6491 ;;
6492
6493 linux*)
6494 case $CC in
6495 icc|ecc)
6496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-static'
6499 ;;
6500 ccc)
6501 lt_prog_compiler_wl='-Wl,'
6502 # All Alpha code is PIC.
6503 lt_prog_compiler_static='-non_shared'
6504 ;;
6505 esac
John Criswell7a73b802003-06-30 21:59:07 +00006506 ;;
6507
6508 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006509 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006510 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006511 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006512 ;;
6513
6514 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006515 lt_prog_compiler_pic='-Kpic'
6516 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006517 ;;
6518
6519 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006520 lt_prog_compiler_wl='-Wl,'
6521 lt_prog_compiler_pic='-KPIC'
6522 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006523 ;;
6524
6525 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006526 lt_prog_compiler_wl='-Qoption ld '
6527 lt_prog_compiler_pic='-PIC'
6528 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006529 ;;
6530
6531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006532 lt_prog_compiler_wl='-Wl,'
6533 lt_prog_compiler_pic='-KPIC'
6534 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006535 ;;
6536
6537 sysv4*MP*)
6538 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006539 lt_prog_compiler_pic='-Kconform_pic'
6540 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006541 fi
6542 ;;
6543
John Criswell47fdd832003-07-14 16:52:07 +00006544 uts4*)
6545 lt_prog_compiler_pic='-pic'
6546 lt_prog_compiler_static='-Bstatic'
6547 ;;
6548
John Criswell7a73b802003-06-30 21:59:07 +00006549 *)
John Criswell47fdd832003-07-14 16:52:07 +00006550 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006551 ;;
6552 esac
6553 fi
6554
John Criswell47fdd832003-07-14 16:52:07 +00006555echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6556echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006557
John Criswell47fdd832003-07-14 16:52:07 +00006558#
6559# Check to make sure the PIC flag actually works.
6560#
6561if test -n "$lt_prog_compiler_pic"; then
6562 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6563echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6564if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
John Criswell47fdd832003-07-14 16:52:07 +00006567 lt_prog_compiler_pic_works=no
6568 ac_outfile=conftest.$ac_objext
6569 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6570 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6571 # Insert the option either (1) after the last *FLAGS variable, or
6572 # (2) before a word containing "conftest.", or (3) at the end.
6573 # Note that $ac_compile itself does not contain backslashes and begins
6574 # with a dollar sign (not a hyphen), so the echo should work correctly.
6575 # The option is referenced via a variable to avoid confusing sed.
6576 lt_compile=`echo "$ac_compile" | $SED \
6577 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6579 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +00006580 (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006581 (eval "$lt_compile" 2>conftest.err)
6582 ac_status=$?
6583 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +00006584 echo "$as_me:6584: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006585 if (exit $ac_status) && test -s "$ac_outfile"; then
6586 # The compiler can only warn and ignore the option if not recognized
6587 # So say no if there are warnings
6588 if test ! -s conftest.err; then
6589 lt_prog_compiler_pic_works=yes
6590 fi
6591 fi
6592 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006593
John Criswell47fdd832003-07-14 16:52:07 +00006594fi
6595echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6596echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell47fdd832003-07-14 16:52:07 +00006598if test x"$lt_prog_compiler_pic_works" = xyes; then
6599 case $lt_prog_compiler_pic in
6600 "" | " "*) ;;
6601 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6602 esac
John Criswell7a73b802003-06-30 21:59:07 +00006603else
John Criswell47fdd832003-07-14 16:52:07 +00006604 lt_prog_compiler_pic=
6605 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006606fi
6607
John Criswell7a73b802003-06-30 21:59:07 +00006608fi
John Criswell47fdd832003-07-14 16:52:07 +00006609case "$host_os" in
6610 # For platforms which do not support PIC, -DPIC is meaningless:
6611 *djgpp*)
6612 lt_prog_compiler_pic=
6613 ;;
6614 *)
6615 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6616 ;;
6617esac
John Criswell7a73b802003-06-30 21:59:07 +00006618
John Criswell7a73b802003-06-30 21:59:07 +00006619echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6620echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006621if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
John Criswell47fdd832003-07-14 16:52:07 +00006624 lt_cv_prog_compiler_c_o=no
6625 $rm -r conftest 2>/dev/null
6626 mkdir conftest
6627 cd conftest
6628 mkdir out
6629 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006630
John Criswell47fdd832003-07-14 16:52:07 +00006631 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6632 # that will create temporary files in the current directory regardless of
6633 # the output directory. Thus, making CWD read-only will cause this test
6634 # to fail, enabling locking or at least warning the user not to do parallel
6635 # builds.
6636 chmod -w .
6637
6638 lt_compiler_flag="-o out/conftest2.$ac_objext"
6639 # Insert the option either (1) after the last *FLAGS variable, or
6640 # (2) before a word containing "conftest.", or (3) at the end.
6641 # Note that $ac_compile itself does not contain backslashes and begins
6642 # with a dollar sign (not a hyphen), so the echo should work correctly.
6643 lt_compile=`echo "$ac_compile" | $SED \
6644 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6646 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +00006647 (eval echo "\"\$as_me:6647: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006648 (eval "$lt_compile" 2>out/conftest.err)
6649 ac_status=$?
6650 cat out/conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +00006651 echo "$as_me:6651: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6653 then
6654 # The compiler can only warn and ignore the option if not recognized
6655 # So say no if there are warnings
6656 if test ! -s out/conftest.err; then
6657 lt_cv_prog_compiler_c_o=yes
6658 fi
6659 fi
6660 chmod u+w .
6661 $rm conftest* out/*
6662 rmdir out
6663 cd ..
6664 rmdir conftest
6665 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006666
6667fi
John Criswell47fdd832003-07-14 16:52:07 +00006668echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6669echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006670
John Criswell7a73b802003-06-30 21:59:07 +00006671
John Criswell7a73b802003-06-30 21:59:07 +00006672hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006673if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006674 # do not overwrite the value of need_locks provided by the user
6675 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6676echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6677 hard_links=yes
6678 $rm conftest*
6679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6680 touch conftest.a
6681 ln conftest.a conftest.b 2>&5 || hard_links=no
6682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6683 echo "$as_me:$LINENO: result: $hard_links" >&5
6684echo "${ECHO_T}$hard_links" >&6
6685 if test "$hard_links" = no; then
6686 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6687echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6688 need_locks=warn
6689 fi
6690else
6691 need_locks=no
6692fi
John Criswell7a73b802003-06-30 21:59:07 +00006693
John Criswell47fdd832003-07-14 16:52:07 +00006694echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6695echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6696
6697 runpath_var=
6698 allow_undefined_flag=
6699 enable_shared_with_static_runtimes=no
6700 archive_cmds=
6701 archive_expsym_cmds=
6702 old_archive_From_new_cmds=
6703 old_archive_from_expsyms_cmds=
6704 export_dynamic_flag_spec=
6705 whole_archive_flag_spec=
6706 thread_safe_flag_spec=
6707 hardcode_libdir_flag_spec=
6708 hardcode_libdir_flag_spec_ld=
6709 hardcode_libdir_separator=
6710 hardcode_direct=no
6711 hardcode_minus_L=no
6712 hardcode_shlibpath_var=unsupported
6713 link_all_deplibs=unknown
6714 hardcode_automatic=no
6715 module_cmds=
6716 module_expsym_cmds=
6717 always_export_symbols=no
6718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6719 # include_expsyms should be a list of space-separated symbols to be *always*
6720 # included in the symbol list
6721 include_expsyms=
6722 # exclude_expsyms can be an extended regexp of symbols to exclude
6723 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6724 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6725 # as well as any symbol that contains `d'.
6726 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6727 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6728 # platforms (ab)use it in PIC code, but their linkers get confused if
6729 # the symbol is explicitly referenced. Since portable code cannot
6730 # rely on this symbol name, it's probably fine to never include it in
6731 # preloaded symbol tables.
6732 extract_expsyms_cmds=
6733
6734 case $host_os in
6735 cygwin* | mingw* | pw32*)
6736 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6737 # When not using gcc, we currently assume that we are using
6738 # Microsoft Visual C++.
6739 if test "$GCC" != yes; then
6740 with_gnu_ld=no
6741 fi
6742 ;;
6743 openbsd*)
6744 with_gnu_ld=no
6745 ;;
6746 esac
6747
6748 ld_shlibs=yes
6749 if test "$with_gnu_ld" = yes; then
6750 # If archive_cmds runs LD, not CC, wlarc should be empty
6751 wlarc='${wl}'
6752
6753 # See if GNU ld supports shared libraries.
6754 case $host_os in
6755 aix3* | aix4* | aix5*)
6756 # On AIX/PPC, the GNU linker is very broken
6757 if test "$host_cpu" != ia64; then
6758 ld_shlibs=no
6759 cat <<EOF 1>&2
6760
6761*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6762*** to be unable to reliably create shared libraries on AIX.
6763*** Therefore, libtool is disabling shared libraries support. If you
6764*** really care for shared libraries, you may want to modify your PATH
6765*** so that a non-GNU linker is found, and then restart.
6766
6767EOF
6768 fi
6769 ;;
6770
6771 amigaos*)
6772 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)'
6773 hardcode_libdir_flag_spec='-L$libdir'
6774 hardcode_minus_L=yes
6775
6776 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6777 # that the semantics of dynamic libraries on AmigaOS, at least up
6778 # to version 4, is to share data among multiple programs linked
6779 # with the same dynamic library. Since this doesn't match the
6780 # behavior of shared libraries on other platforms, we can't use
6781 # them.
6782 ld_shlibs=no
6783 ;;
6784
6785 beos*)
6786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6787 allow_undefined_flag=unsupported
6788 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6789 # support --undefined. This deserves some investigation. FIXME
6790 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6791 else
6792 ld_shlibs=no
6793 fi
6794 ;;
6795
6796 cygwin* | mingw* | pw32*)
6797 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6798 # as there is no search path for DLLs.
6799 hardcode_libdir_flag_spec='-L$libdir'
6800 allow_undefined_flag=unsupported
6801 always_export_symbols=no
6802 enable_shared_with_static_runtimes=yes
6803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6804
6805 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6807 # If the export-symbols file already is a .def file (1st line
6808 # is EXPORTS), use it as is; otherwise, prepend...
6809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6810 cp $export_symbols $output_objdir/$soname.def;
6811 else
6812 echo EXPORTS > $output_objdir/$soname.def;
6813 cat $export_symbols >> $output_objdir/$soname.def;
6814 fi~
6815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6816 else
6817 ld_shlibs=no
6818 fi
6819 ;;
6820
6821 netbsd*)
6822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6824 wlarc=
6825 else
6826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6828 fi
6829 ;;
6830
6831 solaris* | sysv5*)
6832 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6833 ld_shlibs=no
6834 cat <<EOF 1>&2
6835
6836*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6837*** create shared libraries on Solaris systems. Therefore, libtool
6838*** is disabling shared libraries support. We urge you to upgrade GNU
6839*** binutils to release 2.9.1 or newer. Another option is to modify
6840*** your PATH or compiler configuration so that the native linker is
6841*** used, and then restart.
6842
6843EOF
6844 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6847 else
6848 ld_shlibs=no
6849 fi
6850 ;;
6851
6852 sunos4*)
6853 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6854 wlarc=
6855 hardcode_direct=yes
6856 hardcode_shlibpath_var=no
6857 ;;
6858
6859 *)
6860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6863 else
6864 ld_shlibs=no
6865 fi
6866 ;;
6867 esac
6868
6869 if test "$ld_shlibs" = yes; then
6870 runpath_var=LD_RUN_PATH
6871 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6872 export_dynamic_flag_spec='${wl}--export-dynamic'
6873 # ancient GNU ld didn't support --whole-archive et. al.
6874 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6875 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6876 else
6877 whole_archive_flag_spec=
6878 fi
6879 fi
6880 else
6881 # PORTME fill in a description of your system's linker (not GNU ld)
6882 case $host_os in
6883 aix3*)
6884 allow_undefined_flag=unsupported
6885 always_export_symbols=yes
6886 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'
6887 # Note: this linker hardcodes the directories in LIBPATH if there
6888 # are no directories specified by -L.
6889 hardcode_minus_L=yes
6890 if test "$GCC" = yes && test -z "$link_static_flag"; then
6891 # Neither direct hardcoding nor static linking is supported with a
6892 # broken collect2.
6893 hardcode_direct=unsupported
6894 fi
6895 ;;
6896
6897 aix4* | aix5*)
6898 if test "$host_cpu" = ia64; then
6899 # On IA64, the linker does run time linking by default, so we don't
6900 # have to do anything special.
6901 aix_use_runtimelinking=no
6902 exp_sym_flag='-Bexport'
6903 no_entry_flag=""
6904 else
6905 # If we're using GNU nm, then we don't want the "-C" option.
6906 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6907 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6908 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'
6909 else
6910 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'
6911 fi
6912 aix_use_runtimelinking=no
6913
6914 # Test if we are trying to use run time linking or normal
6915 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6916 # need to do runtime linking.
6917 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6918 for ld_flag in $LDFLAGS; do
6919 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6920 aix_use_runtimelinking=yes
6921 break
6922 fi
6923 done
6924 esac
6925
6926 exp_sym_flag='-bexport'
6927 no_entry_flag='-bnoentry'
6928 fi
6929
6930 # When large executables or shared objects are built, AIX ld can
6931 # have problems creating the table of contents. If linking a library
6932 # or program results in "error TOC overflow" add -mminimal-toc to
6933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6935
6936 archive_cmds=''
6937 hardcode_direct=yes
6938 hardcode_libdir_separator=':'
6939 link_all_deplibs=yes
6940
6941 if test "$GCC" = yes; then
6942 case $host_os in aix4.012|aix4.012.*)
6943 # We only want to do this on AIX 4.2 and lower, the check
6944 # below for broken collect2 doesn't work under 4.3+
6945 collect2name=`${CC} -print-prog-name=collect2`
6946 if test -f "$collect2name" && \
6947 strings "$collect2name" | grep resolve_lib_name >/dev/null
6948 then
6949 # We have reworked collect2
6950 hardcode_direct=yes
6951 else
6952 # We have old collect2
6953 hardcode_direct=unsupported
6954 # It fails to find uninstalled libraries when the uninstalled
6955 # path is not listed in the libpath. Setting hardcode_minus_L
6956 # to unsupported forces relinking
6957 hardcode_minus_L=yes
6958 hardcode_libdir_flag_spec='-L$libdir'
6959 hardcode_libdir_separator=
6960 fi
6961 esac
6962 shared_flag='-shared'
6963 else
6964 # not using gcc
6965 if test "$host_cpu" = ia64; then
6966 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6967 # chokes on -Wl,-G. The following line is correct:
6968 shared_flag='-G'
6969 else
6970 if test "$aix_use_runtimelinking" = yes; then
6971 shared_flag='${wl}-G'
6972 else
6973 shared_flag='${wl}-bM:SRE'
6974 fi
6975 fi
6976 fi
6977
6978 # It seems that -bexpall does not export symbols beginning with
6979 # underscore (_), so it is better to generate a list of symbols to export.
6980 always_export_symbols=yes
6981 if test "$aix_use_runtimelinking" = yes; then
6982 # Warning - without using the other runtime loading flags (-brtl),
6983 # -berok will link without error, but may produce a broken library.
6984 allow_undefined_flag='-berok'
6985 # Determine the default libpath from the value encoded in an empty executable.
6986 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006987#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006988/* confdefs.h. */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006993
John Criswell7a73b802003-06-30 21:59:07 +00006994int
6995main ()
6996{
John Criswell47fdd832003-07-14 16:52:07 +00006997
John Criswell7a73b802003-06-30 21:59:07 +00006998 ;
6999 return 0;
7000}
7001_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00007002rm -f conftest.$ac_objext conftest$ac_exeext
7003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00007005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00007008 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007014
John Criswell47fdd832003-07-14 16:52:07 +00007015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7016}'`
7017# Check for a 64-bit object if we didn't find anything.
7018if 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; }
7019}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007020else
7021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007022sed 's/^/| /' conftest.$ac_ext >&5
7023
John Criswell7a73b802003-06-30 21:59:07 +00007024fi
John Criswell47fdd832003-07-14 16:52:07 +00007025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7026if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007027
John Criswell47fdd832003-07-14 16:52:07 +00007028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7029 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"
7030 else
7031 if test "$host_cpu" = ia64; then
7032 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7033 allow_undefined_flag="-z nodefs"
7034 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"
7035 else
7036 # Determine the default libpath from the value encoded in an empty executable.
7037 cat >conftest.$ac_ext <<_ACEOF
7038#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007039/* confdefs.h. */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007044
John Criswell47fdd832003-07-14 16:52:07 +00007045int
7046main ()
7047{
John Criswell7a73b802003-06-30 21:59:07 +00007048
John Criswell47fdd832003-07-14 16:52:07 +00007049 ;
7050 return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext conftest$ac_exeext
7054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7055 (eval $ac_link) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007065
John Criswell47fdd832003-07-14 16:52:07 +00007066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7067}'`
7068# Check for a 64-bit object if we didn't find anything.
7069if 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; }
7070}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007071else
John Criswell47fdd832003-07-14 16:52:07 +00007072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007073sed 's/^/| /' conftest.$ac_ext >&5
7074
John Criswell47fdd832003-07-14 16:52:07 +00007075fi
7076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007078
John Criswell47fdd832003-07-14 16:52:07 +00007079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7080 # Warning - without using the other run time loading flags,
7081 # -berok will link without error, but may produce a broken library.
7082 no_undefined_flag=' ${wl}-bernotok'
7083 allow_undefined_flag=' ${wl}-berok'
7084 # -bexpall does not export symbols beginning with underscore (_)
7085 always_export_symbols=yes
7086 # Exported symbols can be pulled into shared objects from archives
7087 whole_archive_flag_spec=' '
7088 archive_cmds_need_lc=yes
7089 # This is similar to how AIX traditionally builds it's shared libraries.
7090 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 +00007091 fi
7092 fi
John Criswell7a73b802003-06-30 21:59:07 +00007093 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007094
7095 amigaos*)
7096 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)'
7097 hardcode_libdir_flag_spec='-L$libdir'
7098 hardcode_minus_L=yes
7099 # see comment about different semantics on the GNU ld section
7100 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007101 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007102
John Criswell47fdd832003-07-14 16:52:07 +00007103 bsdi4*)
7104 export_dynamic_flag_spec=-rdynamic
7105 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007106
John Criswell47fdd832003-07-14 16:52:07 +00007107 cygwin* | mingw* | pw32*)
7108 # When not using gcc, we currently assume that we are using
7109 # Microsoft Visual C++.
7110 # hardcode_libdir_flag_spec is actually meaningless, as there is
7111 # no search path for DLLs.
7112 hardcode_libdir_flag_spec=' '
7113 allow_undefined_flag=unsupported
7114 # Tell ltmain to make .lib files, not .a files.
7115 libext=lib
7116 # Tell ltmain to make .dll files, not .so files.
7117 shrext=".dll"
7118 # FIXME: Setting linknames here is a bad hack.
7119 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7120 # The linker will automatically build a .lib file if we build a DLL.
7121 old_archive_From_new_cmds='true'
7122 # FIXME: Should let the user specify the lib program.
7123 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7124 fix_srcfile_path='`cygpath -w "$srcfile"`'
7125 enable_shared_with_static_runtimes=yes
7126 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007127
John Criswell47fdd832003-07-14 16:52:07 +00007128 darwin* | rhapsody*)
7129 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7130 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007131 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007132 rhapsody* | darwin1.[012])
7133 allow_undefined_flag='-undefined suppress'
7134 ;;
7135 *) # Darwin 1.3 on
7136 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007137 ;;
7138 esac
John Criswell47fdd832003-07-14 16:52:07 +00007139 # FIXME: Relying on posixy $() will cause problems for
7140 # cross-compilation, but unfortunately the echo tests do not
7141 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7142 # `"' quotes if we put them in here... so don't!
7143 lt_int_apple_cc_single_mod=no
7144 output_verbose_link_cmd='echo'
7145 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7146 lt_int_apple_cc_single_mod=yes
7147 fi
7148 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7149 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7150 else
7151 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'
7152 fi
7153 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7154 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7155 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7156 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}'
7157 else
7158 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}'
7159 fi
7160 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}'
7161 hardcode_direct=no
7162 hardcode_automatic=yes
7163 hardcode_shlibpath_var=unsupported
7164 whole_archive_flag_spec='-all_load $convenience'
7165 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007166 fi
John Criswell47fdd832003-07-14 16:52:07 +00007167 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007168
John Criswell47fdd832003-07-14 16:52:07 +00007169 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007171 hardcode_libdir_flag_spec='-L$libdir'
7172 hardcode_shlibpath_var=no
7173 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007174
John Criswell47fdd832003-07-14 16:52:07 +00007175 freebsd1*)
7176 ld_shlibs=no
7177 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007178
John Criswell47fdd832003-07-14 16:52:07 +00007179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7180 # support. Future versions do this automatically, but an explicit c++rt0.o
7181 # does not break anything, and helps significantly (at the cost of a little
7182 # extra space).
7183 freebsd2.2*)
7184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7185 hardcode_libdir_flag_spec='-R$libdir'
7186 hardcode_direct=yes
7187 hardcode_shlibpath_var=no
7188 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007189
John Criswell47fdd832003-07-14 16:52:07 +00007190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7191 freebsd2*)
7192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7193 hardcode_direct=yes
7194 hardcode_minus_L=yes
7195 hardcode_shlibpath_var=no
7196 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007197
John Criswell47fdd832003-07-14 16:52:07 +00007198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7199 freebsd*)
7200 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7201 hardcode_libdir_flag_spec='-R$libdir'
7202 hardcode_direct=yes
7203 hardcode_shlibpath_var=no
7204 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007205
John Criswell47fdd832003-07-14 16:52:07 +00007206 hpux9*)
7207 if test "$GCC" = yes; then
7208 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'
7209 else
7210 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'
7211 fi
7212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7213 hardcode_libdir_separator=:
7214 hardcode_direct=yes
7215
7216 # hardcode_minus_L: Not really in the search PATH,
7217 # but as the default location of the library.
7218 hardcode_minus_L=yes
7219 export_dynamic_flag_spec='${wl}-E'
7220 ;;
7221
7222 hpux10* | hpux11*)
7223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7224 case "$host_cpu" in
7225 hppa*64*|ia64*)
7226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7227 ;;
7228 *)
7229 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7230 ;;
7231 esac
7232 else
7233 case "$host_cpu" in
7234 hppa*64*|ia64*)
7235 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7236 ;;
7237 *)
7238 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7239 ;;
7240 esac
7241 fi
7242 if test "$with_gnu_ld" = no; then
7243 case "$host_cpu" in
7244 hppa*64*)
7245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7246 hardcode_libdir_flag_spec_ld='+b $libdir'
7247 hardcode_libdir_separator=:
7248 hardcode_direct=no
7249 hardcode_shlibpath_var=no
7250 ;;
7251 ia64*)
7252 hardcode_libdir_flag_spec='-L$libdir'
7253 hardcode_direct=no
7254 hardcode_shlibpath_var=no
7255
7256 # hardcode_minus_L: Not really in the search PATH,
7257 # but as the default location of the library.
7258 hardcode_minus_L=yes
7259 ;;
7260 *)
7261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7262 hardcode_libdir_separator=:
7263 hardcode_direct=yes
7264 export_dynamic_flag_spec='${wl}-E'
7265
7266 # hardcode_minus_L: Not really in the search PATH,
7267 # but as the default location of the library.
7268 hardcode_minus_L=yes
7269 ;;
7270 esac
7271 fi
7272 ;;
7273
7274 irix5* | irix6* | nonstopux*)
7275 if test "$GCC" = yes; then
7276 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'
7277 else
7278 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'
7279 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7280 fi
7281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282 hardcode_libdir_separator=:
7283 link_all_deplibs=yes
7284 ;;
7285
7286 netbsd*)
7287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7289 else
7290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7291 fi
7292 hardcode_libdir_flag_spec='-R$libdir'
7293 hardcode_direct=yes
7294 hardcode_shlibpath_var=no
7295 ;;
7296
7297 newsos6)
7298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299 hardcode_direct=yes
7300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7301 hardcode_libdir_separator=:
7302 hardcode_shlibpath_var=no
7303 ;;
7304
7305 openbsd*)
7306 hardcode_direct=yes
7307 hardcode_shlibpath_var=no
7308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7309 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7311 export_dynamic_flag_spec='${wl}-E'
7312 else
7313 case $host_os in
7314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_libdir_flag_spec='-R$libdir'
7317 ;;
7318 *)
7319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7321 ;;
7322 esac
7323 fi
7324 ;;
7325
7326 os2*)
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 hardcode_minus_L=yes
7329 allow_undefined_flag=unsupported
7330 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'
7331 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7332 ;;
7333
7334 osf3*)
7335 if test "$GCC" = yes; then
7336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7337 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'
7338 else
7339 allow_undefined_flag=' -expect_unresolved \*'
7340 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'
7341 fi
7342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7343 hardcode_libdir_separator=:
7344 ;;
7345
7346 osf4* | osf5*) # as osf3* with the addition of -msym flag
7347 if test "$GCC" = yes; then
7348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7349 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'
7350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7351 else
7352 allow_undefined_flag=' -expect_unresolved \*'
7353 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'
7354 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7355 $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'
7356
7357 # Both c and cxx compiler support -rpath directly
7358 hardcode_libdir_flag_spec='-rpath $libdir'
7359 fi
7360 hardcode_libdir_separator=:
7361 ;;
7362
7363 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007366 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007367 runpath_var=LD_RUN_PATH
7368 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007369 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007370
John Criswell47fdd832003-07-14 16:52:07 +00007371 solaris*)
7372 no_undefined_flag=' -z text'
7373 if test "$GCC" = yes; then
7374 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7376 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7377 else
7378 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7380 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7381 fi
7382 hardcode_libdir_flag_spec='-R$libdir'
7383 hardcode_shlibpath_var=no
7384 case $host_os in
7385 solaris2.[0-5] | solaris2.[0-5].*) ;;
7386 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7387 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7388 esac
7389 link_all_deplibs=yes
7390 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007391
John Criswell47fdd832003-07-14 16:52:07 +00007392 sunos4*)
7393 if test "x$host_vendor" = xsequent; then
7394 # Use $CC to link under sequent, because it throws in some extra .o
7395 # files that make .init and .fini sections work.
7396 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7397 else
7398 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7399 fi
7400 hardcode_libdir_flag_spec='-L$libdir'
7401 hardcode_direct=yes
7402 hardcode_minus_L=yes
7403 hardcode_shlibpath_var=no
7404 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007405
John Criswell47fdd832003-07-14 16:52:07 +00007406 sysv4)
7407 case $host_vendor in
7408 sni)
7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_direct=yes # is this really true???
7411 ;;
7412 siemens)
7413 ## LD is ld it makes a PLAMLIB
7414 ## CC just makes a GrossModule.
7415 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7416 reload_cmds='$CC -r -o $output$reload_objs'
7417 hardcode_direct=no
7418 ;;
7419 motorola)
7420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7421 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7422 ;;
7423 esac
7424 runpath_var='LD_RUN_PATH'
7425 hardcode_shlibpath_var=no
7426 ;;
7427
7428 sysv4.3*)
7429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7430 hardcode_shlibpath_var=no
7431 export_dynamic_flag_spec='-Bexport'
7432 ;;
7433
7434 sysv4*MP*)
7435 if test -d /usr/nec; then
7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 hardcode_shlibpath_var=no
7438 runpath_var=LD_RUN_PATH
7439 hardcode_runpath_var=yes
7440 ld_shlibs=yes
7441 fi
7442 ;;
7443
7444 sysv4.2uw2*)
7445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7446 hardcode_direct=yes
7447 hardcode_minus_L=no
7448 hardcode_shlibpath_var=no
7449 hardcode_runpath_var=yes
7450 runpath_var=LD_RUN_PATH
7451 ;;
7452
7453 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7454 no_undefined_flag='${wl}-z ${wl}text'
7455 if test "$GCC" = yes; then
7456 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7457 else
7458 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7459 fi
7460 runpath_var='LD_RUN_PATH'
7461 hardcode_shlibpath_var=no
7462 ;;
7463
7464 sysv5*)
7465 no_undefined_flag=' -z text'
7466 # $CC -shared without GNU ld will not create a library from C++
7467 # object files and a static libstdc++, better avoid it by now
7468 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7469 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7471 hardcode_libdir_flag_spec=
7472 hardcode_shlibpath_var=no
7473 runpath_var='LD_RUN_PATH'
7474 ;;
7475
7476 uts4*)
7477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7478 hardcode_libdir_flag_spec='-L$libdir'
7479 hardcode_shlibpath_var=no
7480 ;;
7481
7482 *)
7483 ld_shlibs=no
7484 ;;
7485 esac
7486 fi
7487
John Criswell7a73b802003-06-30 21:59:07 +00007488echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7489echo "${ECHO_T}$ld_shlibs" >&6
7490test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007491
John Criswell47fdd832003-07-14 16:52:07 +00007492variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7493if test "$GCC" = yes; then
7494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7495fi
7496
7497#
7498# Do we need to explicitly link libc?
7499#
7500case "x$archive_cmds_need_lc" in
7501x|xyes)
7502 # Assume -lc should be added
7503 archive_cmds_need_lc=yes
7504
7505 if test "$enable_shared" = yes && test "$GCC" = yes; then
7506 case $archive_cmds in
7507 *'~'*)
7508 # FIXME: we may have to deal with multi-command sequences.
7509 ;;
7510 '$CC '*)
7511 # Test whether the compiler implicitly links with -lc since on some
7512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7513 # to ld, don't add -lc before -lgcc.
7514 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7515echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7516 $rm conftest*
7517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7518
7519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7520 (eval $ac_compile) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } 2>conftest.err; then
7524 soname=conftest
7525 lib=conftest
7526 libobjs=conftest.$ac_objext
7527 deplibs=
7528 wl=$lt_prog_compiler_wl
7529 compiler_flags=-v
7530 linker_flags=-v
7531 verstring=
7532 output_objdir=.
7533 libname=conftest
7534 lt_save_allow_undefined_flag=$allow_undefined_flag
7535 allow_undefined_flag=
7536 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7537 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }
7541 then
7542 archive_cmds_need_lc=no
7543 else
7544 archive_cmds_need_lc=yes
7545 fi
7546 allow_undefined_flag=$lt_save_allow_undefined_flag
7547 else
7548 cat conftest.err 1>&5
7549 fi
7550 $rm conftest*
7551 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7552echo "${ECHO_T}$archive_cmds_need_lc" >&6
7553 ;;
7554 esac
7555 fi
7556 ;;
7557esac
7558
John Criswell7a73b802003-06-30 21:59:07 +00007559echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7560echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7561hardcode_action=
7562if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007563 test -n "$runpath_var " || \
7564 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007565
7566 # We can hardcode non-existant directories.
7567 if test "$hardcode_direct" != no &&
7568 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7569 # have to relink, otherwise we might link with an installed library
7570 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007571 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007572 test "$hardcode_minus_L" != no; then
7573 # Linking always hardcodes the temporary library directory.
7574 hardcode_action=relink
7575 else
7576 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7577 hardcode_action=immediate
7578 fi
7579else
7580 # We cannot hardcode anything, or else we can only hardcode existing
7581 # directories.
7582 hardcode_action=unsupported
7583fi
7584echo "$as_me:$LINENO: result: $hardcode_action" >&5
7585echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007586
John Criswell47fdd832003-07-14 16:52:07 +00007587if test "$hardcode_action" = relink; then
7588 # Fast installation is not supported
7589 enable_fast_install=no
7590elif test "$shlibpath_overrides_runpath" = yes ||
7591 test "$enable_shared" = no; then
7592 # Fast installation is not necessary
7593 enable_fast_install=needless
7594fi
7595
John Criswell7a73b802003-06-30 21:59:07 +00007596striplib=
7597old_striplib=
7598echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7599echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7600if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7601 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7602 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7603 echo "$as_me:$LINENO: result: yes" >&5
7604echo "${ECHO_T}yes" >&6
7605else
John Criswell47fdd832003-07-14 16:52:07 +00007606# FIXME - insert some real tests, host_os isn't really good enough
7607 case $host_os in
7608 darwin*)
7609 if test -n "$STRIP" ; then
7610 striplib="$STRIP -x"
7611 echo "$as_me:$LINENO: result: yes" >&5
7612echo "${ECHO_T}yes" >&6
7613 else
John Criswell7a73b802003-06-30 21:59:07 +00007614 echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6
7616fi
John Criswell47fdd832003-07-14 16:52:07 +00007617 ;;
7618 *)
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 ;;
7622 esac
7623fi
John Criswell7a73b802003-06-30 21:59:07 +00007624
John Criswell7a73b802003-06-30 21:59:07 +00007625echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7626echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7627library_names_spec=
7628libname_spec='lib$name'
7629soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007630shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007631postinstall_cmds=
7632postuninstall_cmds=
7633finish_cmds=
7634finish_eval=
7635shlibpath_var=
7636shlibpath_overrides_runpath=unknown
7637version_type=none
7638dynamic_linker="$host_os ld.so"
7639sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007640if test "$GCC" = yes; then
7641 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7642 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7643 # if the path contains ";" then we assume it to be the separator
7644 # otherwise default to the standard path separator (i.e. ":") - it is
7645 # assumed that no part of a normal pathname contains ";" but that should
7646 # okay in the real world where ";" in dirpaths is itself problematic.
7647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7648 else
7649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7650 fi
7651else
7652 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7653fi
7654need_lib_prefix=unknown
7655hardcode_into_libs=no
7656
7657# when you set need_version to no, make sure it does not cause -set_version
7658# flags to be left without arguments
7659need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007660
7661case $host_os in
7662aix3*)
7663 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007665 shlibpath_var=LIBPATH
7666
John Criswell47fdd832003-07-14 16:52:07 +00007667 # AIX 3 has no versioning support, so we append a major version to the name.
7668 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007669 ;;
7670
7671aix4* | aix5*)
7672 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007673 need_lib_prefix=no
7674 need_version=no
7675 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007676 if test "$host_cpu" = ia64; then
7677 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007678 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007679 shlibpath_var=LD_LIBRARY_PATH
7680 else
7681 # With GCC up to 2.95.x, collect2 would create an import file
7682 # for dependence libraries. The import file would start with
7683 # the line `#! .'. This would cause the generated library to
7684 # depend on `.', always an invalid library. This was fixed in
7685 # development snapshots of GCC prior to 3.0.
7686 case $host_os in
7687 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7689 echo ' yes '
7690 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7691 :
7692 else
7693 can_build_shared=no
7694 fi
7695 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007696 esac
John Criswell47fdd832003-07-14 16:52:07 +00007697 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7698 # soname into executable. Probably we can add versioning support to
7699 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007700 if test "$aix_use_runtimelinking" = yes; then
7701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7702 # instead of lib<name>.a to let people know that these are not
7703 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007705 else
7706 # We preserve .a as extension for shared libraries through AIX4.2
7707 # and later when we are not doing run time linking.
7708 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007709 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007710 fi
7711 shlibpath_var=LIBPATH
7712 fi
7713 ;;
7714
7715amigaos*)
7716 library_names_spec='$libname.ixlibrary $libname.a'
7717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7718 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'
7719 ;;
7720
7721beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007722 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007723 dynamic_linker="$host_os ld.so"
7724 shlibpath_var=LIBRARY_PATH
7725 ;;
7726
7727bsdi4*)
7728 version_type=linux
7729 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7731 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7733 shlibpath_var=LD_LIBRARY_PATH
7734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007736 # the default ld.so.conf also contains /usr/contrib/lib and
7737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7738 # libtool to hard-code these into programs
7739 ;;
7740
7741cygwin* | mingw* | pw32*)
7742 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007743 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007744 need_version=no
7745 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007746
John Criswell7a73b802003-06-30 21:59:07 +00007747 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007748 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007749 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7751 postinstall_cmds='base_file=`basename \${file}`~
7752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007753 dldir=$destdir/`dirname \$dlpath`~
7754 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007755 $install_prog $dir/$dlname \$dldir/$dlname'
7756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007757 dlpath=$dir/\$dldll~
7758 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007759 shlibpath_overrides_runpath=yes
7760
7761 case $host_os in
7762 cygwin*)
7763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7765 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7766 ;;
7767 mingw*)
7768 # MinGW DLLs use traditional 'lib' prefix
7769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7770 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7771 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7772 # It is most probably a Windows format PATH printed by
7773 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7774 # path with ; separators, and with drive letters. We can handle the
7775 # drive letters (cygwin fileutils understands them), so leave them,
7776 # especially as we might pass files found there to a mingw objdump,
7777 # which wouldn't understand a cygwinified path. Ahh.
7778 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7779 else
7780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7781 fi
7782 ;;
7783 pw32*)
7784 # pw32 DLLs use 'pw' prefix rather than 'lib'
7785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7786 ;;
7787 esac
John Criswell7a73b802003-06-30 21:59:07 +00007788 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007789
John Criswell7a73b802003-06-30 21:59:07 +00007790 *)
John Criswell47fdd832003-07-14 16:52:07 +00007791 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007792 ;;
7793 esac
7794 dynamic_linker='Win32 ld.exe'
7795 # FIXME: first we should search . and the directory the executable is in
7796 shlibpath_var=PATH
7797 ;;
7798
7799darwin* | rhapsody*)
7800 dynamic_linker="$host_os dyld"
7801 version_type=darwin
7802 need_lib_prefix=no
7803 need_version=no
7804 # FIXME: Relying on posixy $() will cause problems for
7805 # cross-compilation, but unfortunately the echo tests do not
7806 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7808 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007809 shlibpath_overrides_runpath=yes
7810 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007811 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7812 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7813 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7814 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"`
7815 fi
7816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7817 ;;
7818
7819dgux*)
7820 version_type=linux
7821 need_lib_prefix=no
7822 need_version=no
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7824 soname_spec='${libname}${release}${shared_ext}$major'
7825 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007826 ;;
7827
7828freebsd1*)
7829 dynamic_linker=no
7830 ;;
7831
7832freebsd*)
7833 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7834 version_type=freebsd-$objformat
7835 case $version_type in
7836 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007838 need_version=no
7839 need_lib_prefix=no
7840 ;;
7841 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007843 need_version=yes
7844 ;;
7845 esac
7846 shlibpath_var=LD_LIBRARY_PATH
7847 case $host_os in
7848 freebsd2*)
7849 shlibpath_overrides_runpath=yes
7850 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007851 freebsd3.01* | freebsdelf3.01*)
7852 shlibpath_overrides_runpath=yes
7853 hardcode_into_libs=yes
7854 ;;
7855 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007856 shlibpath_overrides_runpath=no
7857 hardcode_into_libs=yes
7858 ;;
7859 esac
7860 ;;
7861
7862gnu*)
7863 version_type=linux
7864 need_lib_prefix=no
7865 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7867 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007868 shlibpath_var=LD_LIBRARY_PATH
7869 hardcode_into_libs=yes
7870 ;;
7871
7872hpux9* | hpux10* | hpux11*)
7873 # Give a soname corresponding to the major version so that dld.sl refuses to
7874 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007875 version_type=sunos
7876 need_lib_prefix=no
7877 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007878 case "$host_cpu" in
7879 ia64*)
7880 shrext='.so'
7881 hardcode_into_libs=yes
7882 dynamic_linker="$host_os dld.so"
7883 shlibpath_var=LD_LIBRARY_PATH
7884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886 soname_spec='${libname}${release}${shared_ext}$major'
7887 if test "X$HPUX_IA64_MODE" = X32; then
7888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7889 else
7890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7891 fi
7892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7893 ;;
7894 hppa*64*)
7895 shrext='.sl'
7896 hardcode_into_libs=yes
7897 dynamic_linker="$host_os dld.sl"
7898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901 soname_spec='${libname}${release}${shared_ext}$major'
7902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7904 ;;
7905 *)
7906 shrext='.sl'
7907 dynamic_linker="$host_os dld.sl"
7908 shlibpath_var=SHLIB_PATH
7909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911 soname_spec='${libname}${release}${shared_ext}$major'
7912 ;;
7913 esac
John Criswell7a73b802003-06-30 21:59:07 +00007914 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7915 postinstall_cmds='chmod 555 $lib'
7916 ;;
7917
John Criswell47fdd832003-07-14 16:52:07 +00007918irix5* | irix6* | nonstopux*)
7919 case $host_os in
7920 nonstopux*) version_type=nonstopux ;;
7921 *)
7922 if test "$lt_cv_prog_gnu_ld" = yes; then
7923 version_type=linux
7924 else
7925 version_type=irix
7926 fi ;;
7927 esac
John Criswell7a73b802003-06-30 21:59:07 +00007928 need_lib_prefix=no
7929 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007930 soname_spec='${libname}${release}${shared_ext}$major'
7931 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 +00007932 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007933 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007934 libsuff= shlibsuff=
7935 ;;
7936 *)
7937 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007938 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7939 libsuff= shlibsuff= libmagic=32-bit;;
7940 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7941 libsuff=32 shlibsuff=N32 libmagic=N32;;
7942 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7943 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007944 *) libsuff= shlibsuff= libmagic=never-match;;
7945 esac
7946 ;;
7947 esac
7948 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7949 shlibpath_overrides_runpath=no
7950 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7951 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007952 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007953 ;;
7954
7955# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007956linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007957 dynamic_linker=no
7958 ;;
7959
7960# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007961linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007962 version_type=linux
7963 need_lib_prefix=no
7964 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7968 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=no
7970 # This implies no fast_install, which is unacceptable.
7971 # Some rework will be needed to allow for fast_install
7972 # before this can be enabled.
7973 hardcode_into_libs=yes
7974
7975 # We used to test for /lib/ld.so.1 and disable shared libraries on
7976 # powerpc, because MkLinux only supported shared libraries with the
7977 # GNU dynamic linker. Since this was broken with cross compilers,
7978 # most powerpc-linux boxes support dynamic linking these days and
7979 # people can always --disable-shared, the test was removed, and we
7980 # assume the GNU/Linux dynamic linker is in use.
7981 dynamic_linker='GNU/Linux ld.so'
7982 ;;
7983
7984netbsd*)
7985 version_type=sunos
7986 need_lib_prefix=no
7987 need_version=no
7988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7991 dynamic_linker='NetBSD (a.out) ld.so'
7992 else
John Criswell47fdd832003-07-14 16:52:07 +00007993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7994 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007995 dynamic_linker='NetBSD ld.elf_so'
7996 fi
7997 shlibpath_var=LD_LIBRARY_PATH
7998 shlibpath_overrides_runpath=yes
7999 hardcode_into_libs=yes
8000 ;;
8001
8002newsos6)
8003 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 shlibpath_overrides_runpath=yes
8007 ;;
8008
8009nto-qnx)
8010 version_type=linux
8011 need_lib_prefix=no
8012 need_version=no
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008015 shlibpath_var=LD_LIBRARY_PATH
8016 shlibpath_overrides_runpath=yes
8017 ;;
8018
8019openbsd*)
8020 version_type=sunos
8021 need_lib_prefix=no
8022 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8025 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008026 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 +00008027 case $host_os in
8028 openbsd2.[89] | openbsd2.[89].*)
8029 shlibpath_overrides_runpath=no
8030 ;;
8031 *)
8032 shlibpath_overrides_runpath=yes
8033 ;;
8034 esac
John Criswell7a73b802003-06-30 21:59:07 +00008035 else
8036 shlibpath_overrides_runpath=yes
8037 fi
John Criswell7a73b802003-06-30 21:59:07 +00008038 ;;
8039
8040os2*)
8041 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00008042 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008043 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008044 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008045 dynamic_linker='OS/2 ld.exe'
8046 shlibpath_var=LIBPATH
8047 ;;
8048
8049osf3* | osf4* | osf5*)
8050 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008051 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008052 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008053 soname_spec='${libname}${release}${shared_ext}$major'
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008055 shlibpath_var=LD_LIBRARY_PATH
8056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8058 ;;
8059
8060sco3.2v5*)
8061 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008062 soname_spec='${libname}${release}${shared_ext}$major'
8063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008064 shlibpath_var=LD_LIBRARY_PATH
8065 ;;
8066
8067solaris*)
8068 version_type=linux
8069 need_lib_prefix=no
8070 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8072 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008073 shlibpath_var=LD_LIBRARY_PATH
8074 shlibpath_overrides_runpath=yes
8075 hardcode_into_libs=yes
8076 # ldd complains unless libraries are executable
8077 postinstall_cmds='chmod +x $lib'
8078 ;;
8079
8080sunos4*)
8081 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8084 shlibpath_var=LD_LIBRARY_PATH
8085 shlibpath_overrides_runpath=yes
8086 if test "$with_gnu_ld" = yes; then
8087 need_lib_prefix=no
8088 fi
8089 need_version=yes
8090 ;;
8091
8092sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8093 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008096 shlibpath_var=LD_LIBRARY_PATH
8097 case $host_vendor in
8098 sni)
8099 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008100 need_lib_prefix=no
8101 export_dynamic_flag_spec='${wl}-Blargedynsym'
8102 runpath_var=LD_RUN_PATH
8103 ;;
8104 siemens)
8105 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008106 ;;
8107 motorola)
8108 need_lib_prefix=no
8109 need_version=no
8110 shlibpath_overrides_runpath=no
8111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8112 ;;
8113 esac
8114 ;;
8115
John Criswell7a73b802003-06-30 21:59:07 +00008116sysv4*MP*)
8117 if test -d /usr/nec ;then
8118 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8120 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008121 shlibpath_var=LD_LIBRARY_PATH
8122 fi
8123 ;;
8124
John Criswell47fdd832003-07-14 16:52:07 +00008125uts4*)
8126 version_type=linux
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
8129 shlibpath_var=LD_LIBRARY_PATH
8130 ;;
8131
John Criswell7a73b802003-06-30 21:59:07 +00008132*)
8133 dynamic_linker=no
8134 ;;
8135esac
8136echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8137echo "${ECHO_T}$dynamic_linker" >&6
8138test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008139
8140if test "x$enable_dlopen" != xyes; then
8141 enable_dlopen=unknown
8142 enable_dlopen_self=unknown
8143 enable_dlopen_self_static=unknown
8144else
8145 lt_cv_dlopen=no
8146 lt_cv_dlopen_libs=
8147
8148 case $host_os in
8149 beos*)
8150 lt_cv_dlopen="load_add_on"
8151 lt_cv_dlopen_libs=
8152 lt_cv_dlopen_self=yes
8153 ;;
8154
John Criswell47fdd832003-07-14 16:52:07 +00008155 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008156 lt_cv_dlopen="LoadLibrary"
8157 lt_cv_dlopen_libs=
8158 ;;
8159
John Criswell47fdd832003-07-14 16:52:07 +00008160 cygwin*)
8161 lt_cv_dlopen="dlopen"
8162 lt_cv_dlopen_libs=
8163 ;;
8164
8165 darwin*)
8166 # if libdl is installed we need to link against it
8167 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8168echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8169if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172 ac_check_lib_save_LIBS=$LIBS
8173LIBS="-ldl $LIBS"
8174cat >conftest.$ac_ext <<_ACEOF
8175#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008176/* confdefs.h. */
8177_ACEOF
8178cat confdefs.h >>conftest.$ac_ext
8179cat >>conftest.$ac_ext <<_ACEOF
8180/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008181
8182/* Override any gcc2 internal prototype to avoid an error. */
8183#ifdef __cplusplus
8184extern "C"
8185#endif
8186/* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8188char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008189int
8190main ()
8191{
8192dlopen ();
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197rm -f conftest.$ac_objext conftest$ac_exeext
8198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199 (eval $ac_link) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_lib_dl_dlopen=yes
8210else
8211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008212sed 's/^/| /' conftest.$ac_ext >&5
8213
John Criswell47fdd832003-07-14 16:52:07 +00008214ac_cv_lib_dl_dlopen=no
8215fi
8216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8217LIBS=$ac_check_lib_save_LIBS
8218fi
8219echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8220echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8221if test $ac_cv_lib_dl_dlopen = yes; then
8222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8223else
8224
8225 lt_cv_dlopen="dyld"
8226 lt_cv_dlopen_libs=
8227 lt_cv_dlopen_self=yes
8228
8229fi
8230
8231 ;;
8232
John Criswell7a73b802003-06-30 21:59:07 +00008233 *)
8234 echo "$as_me:$LINENO: checking for shl_load" >&5
8235echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8236if test "${ac_cv_func_shl_load+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239 cat >conftest.$ac_ext <<_ACEOF
8240#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008241/* confdefs.h. */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
8245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008246/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008247 which can conflict with char shl_load (); below.
8248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8249 <limits.h> exists even on freestanding compilers. */
8250#ifdef __STDC__
8251# include <limits.h>
8252#else
8253# include <assert.h>
8254#endif
John Criswell7a73b802003-06-30 21:59:07 +00008255/* Override any gcc2 internal prototype to avoid an error. */
8256#ifdef __cplusplus
8257extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008258{
John Criswell7a73b802003-06-30 21:59:07 +00008259#endif
8260/* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8262char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008263/* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266#if defined (__stub_shl_load) || defined (__stub___shl_load)
8267choke me
8268#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008269char (*f) () = shl_load;
8270#endif
8271#ifdef __cplusplus
8272}
John Criswell7a73b802003-06-30 21:59:07 +00008273#endif
8274
John Criswell0c38eaf2003-09-10 15:17:25 +00008275int
8276main ()
8277{
8278return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008279 ;
8280 return 0;
8281}
8282_ACEOF
8283rm -f conftest.$ac_objext conftest$ac_exeext
8284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_func_shl_load=yes
8296else
8297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008298sed 's/^/| /' conftest.$ac_ext >&5
8299
John Criswell7a73b802003-06-30 21:59:07 +00008300ac_cv_func_shl_load=no
8301fi
8302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303fi
8304echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8305echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8306if test $ac_cv_func_shl_load = yes; then
8307 lt_cv_dlopen="shl_load"
8308else
8309 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8310echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8311if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 ac_check_lib_save_LIBS=$LIBS
8315LIBS="-ldld $LIBS"
8316cat >conftest.$ac_ext <<_ACEOF
8317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008318/* confdefs.h. */
8319_ACEOF
8320cat confdefs.h >>conftest.$ac_ext
8321cat >>conftest.$ac_ext <<_ACEOF
8322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008323
8324/* Override any gcc2 internal prototype to avoid an error. */
8325#ifdef __cplusplus
8326extern "C"
8327#endif
8328/* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008331int
8332main ()
8333{
8334shl_load ();
8335 ;
8336 return 0;
8337}
8338_ACEOF
8339rm -f conftest.$ac_objext conftest$ac_exeext
8340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_lib_dld_shl_load=yes
8352else
8353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008354sed 's/^/| /' conftest.$ac_ext >&5
8355
John Criswell7a73b802003-06-30 21:59:07 +00008356ac_cv_lib_dld_shl_load=no
8357fi
8358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359LIBS=$ac_check_lib_save_LIBS
8360fi
8361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8362echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8363if test $ac_cv_lib_dld_shl_load = yes; then
8364 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8365else
8366 echo "$as_me:$LINENO: checking for dlopen" >&5
8367echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8368if test "${ac_cv_func_dlopen+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 cat >conftest.$ac_ext <<_ACEOF
8372#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008378/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008379 which can conflict with char dlopen (); below.
8380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381 <limits.h> exists even on freestanding compilers. */
8382#ifdef __STDC__
8383# include <limits.h>
8384#else
8385# include <assert.h>
8386#endif
John Criswell7a73b802003-06-30 21:59:07 +00008387/* Override any gcc2 internal prototype to avoid an error. */
8388#ifdef __cplusplus
8389extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008390{
John Criswell7a73b802003-06-30 21:59:07 +00008391#endif
8392/* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8394char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008395/* The GNU C library defines this for functions which it implements
8396 to always fail with ENOSYS. Some functions are actually named
8397 something starting with __ and the normal name is an alias. */
8398#if defined (__stub_dlopen) || defined (__stub___dlopen)
8399choke me
8400#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008401char (*f) () = dlopen;
8402#endif
8403#ifdef __cplusplus
8404}
John Criswell7a73b802003-06-30 21:59:07 +00008405#endif
8406
John Criswell0c38eaf2003-09-10 15:17:25 +00008407int
8408main ()
8409{
8410return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008411 ;
8412 return 0;
8413}
8414_ACEOF
8415rm -f conftest.$ac_objext conftest$ac_exeext
8416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -s conftest$ac_exeext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_func_dlopen=yes
8428else
8429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008430sed 's/^/| /' conftest.$ac_ext >&5
8431
John Criswell7a73b802003-06-30 21:59:07 +00008432ac_cv_func_dlopen=no
8433fi
8434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8435fi
8436echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8437echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8438if test $ac_cv_func_dlopen = yes; then
8439 lt_cv_dlopen="dlopen"
8440else
8441 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8442echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8443if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
8446 ac_check_lib_save_LIBS=$LIBS
8447LIBS="-ldl $LIBS"
8448cat >conftest.$ac_ext <<_ACEOF
8449#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
8454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008455
8456/* Override any gcc2 internal prototype to avoid an error. */
8457#ifdef __cplusplus
8458extern "C"
8459#endif
8460/* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8462char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008463int
8464main ()
8465{
8466dlopen ();
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext conftest$ac_exeext
8472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473 (eval $ac_link) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 (eval $ac_try) 2>&5
8480 ac_status=$?
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_cv_lib_dl_dlopen=yes
8484else
8485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008486sed 's/^/| /' conftest.$ac_ext >&5
8487
John Criswell7a73b802003-06-30 21:59:07 +00008488ac_cv_lib_dl_dlopen=no
8489fi
8490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8491LIBS=$ac_check_lib_save_LIBS
8492fi
8493echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8494echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8495if test $ac_cv_lib_dl_dlopen = yes; then
8496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8497else
8498 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8499echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8500if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 ac_check_lib_save_LIBS=$LIBS
8504LIBS="-lsvld $LIBS"
8505cat >conftest.$ac_ext <<_ACEOF
8506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008512
8513/* Override any gcc2 internal prototype to avoid an error. */
8514#ifdef __cplusplus
8515extern "C"
8516#endif
8517/* We use char because int might match the return type of a gcc2
8518 builtin and then its argument prototype would still apply. */
8519char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008520int
8521main ()
8522{
8523dlopen ();
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext conftest$ac_exeext
8529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_lib_svld_dlopen=yes
8541else
8542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008543sed 's/^/| /' conftest.$ac_ext >&5
8544
John Criswell7a73b802003-06-30 21:59:07 +00008545ac_cv_lib_svld_dlopen=no
8546fi
8547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548LIBS=$ac_check_lib_save_LIBS
8549fi
8550echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8551echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8552if test $ac_cv_lib_svld_dlopen = yes; then
8553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8554else
8555 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8556echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8557if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560 ac_check_lib_save_LIBS=$LIBS
8561LIBS="-ldld $LIBS"
8562cat >conftest.$ac_ext <<_ACEOF
8563#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008569
8570/* Override any gcc2 internal prototype to avoid an error. */
8571#ifdef __cplusplus
8572extern "C"
8573#endif
8574/* We use char because int might match the return type of a gcc2
8575 builtin and then its argument prototype would still apply. */
8576char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008577int
8578main ()
8579{
8580dld_link ();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
8586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_lib_dld_dld_link=yes
8598else
8599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008600sed 's/^/| /' conftest.$ac_ext >&5
8601
John Criswell7a73b802003-06-30 21:59:07 +00008602ac_cv_lib_dld_dld_link=no
8603fi
8604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8605LIBS=$ac_check_lib_save_LIBS
8606fi
8607echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8608echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8609if test $ac_cv_lib_dld_dld_link = yes; then
8610 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8611fi
8612
8613
8614fi
8615
8616
8617fi
8618
8619
8620fi
8621
8622
8623fi
8624
8625
8626fi
8627
8628 ;;
8629 esac
8630
8631 if test "x$lt_cv_dlopen" != xno; then
8632 enable_dlopen=yes
8633 else
8634 enable_dlopen=no
8635 fi
8636
8637 case $lt_cv_dlopen in
8638 dlopen)
8639 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008640 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008641
8642 save_LDFLAGS="$LDFLAGS"
8643 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8644
8645 save_LIBS="$LIBS"
8646 LIBS="$lt_cv_dlopen_libs $LIBS"
8647
8648 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8649echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8650if test "${lt_cv_dlopen_self+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 if test "$cross_compiling" = yes; then :
8654 lt_cv_dlopen_self=cross
8655else
John Criswell47fdd832003-07-14 16:52:07 +00008656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008657 lt_status=$lt_dlunknown
8658 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +00008659#line 8659 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008660#include "confdefs.h"
8661
8662#if HAVE_DLFCN_H
8663#include <dlfcn.h>
8664#endif
8665
8666#include <stdio.h>
8667
8668#ifdef RTLD_GLOBAL
8669# define LT_DLGLOBAL RTLD_GLOBAL
8670#else
8671# ifdef DL_GLOBAL
8672# define LT_DLGLOBAL DL_GLOBAL
8673# else
8674# define LT_DLGLOBAL 0
8675# endif
8676#endif
8677
8678/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8679 find out it does not work in some platform. */
8680#ifndef LT_DLLAZY_OR_NOW
8681# ifdef RTLD_LAZY
8682# define LT_DLLAZY_OR_NOW RTLD_LAZY
8683# else
8684# ifdef DL_LAZY
8685# define LT_DLLAZY_OR_NOW DL_LAZY
8686# else
8687# ifdef RTLD_NOW
8688# define LT_DLLAZY_OR_NOW RTLD_NOW
8689# else
8690# ifdef DL_NOW
8691# define LT_DLLAZY_OR_NOW DL_NOW
8692# else
8693# define LT_DLLAZY_OR_NOW 0
8694# endif
8695# endif
8696# endif
8697# endif
8698#endif
8699
8700#ifdef __cplusplus
8701extern "C" void exit (int);
8702#endif
8703
8704void fnord() { int i=42;}
8705int main ()
8706{
8707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8708 int status = $lt_dlunknown;
8709
8710 if (self)
8711 {
8712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8713 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8714 /* dlclose (self); */
8715 }
8716
8717 exit (status);
8718}
8719EOF
8720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8721 (eval $ac_link) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8725 (./conftest; exit; ) 2>/dev/null
8726 lt_status=$?
8727 case x$lt_status in
8728 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8729 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8730 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8731 esac
8732 else :
8733 # compilation failed
8734 lt_cv_dlopen_self=no
8735 fi
8736fi
8737rm -fr conftest*
8738
8739
8740fi
8741echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8742echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8743
8744 if test "x$lt_cv_dlopen_self" = xyes; then
8745 LDFLAGS="$LDFLAGS $link_static_flag"
8746 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8747echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8748if test "${lt_cv_dlopen_self_static+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751 if test "$cross_compiling" = yes; then :
8752 lt_cv_dlopen_self_static=cross
8753else
John Criswell47fdd832003-07-14 16:52:07 +00008754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008755 lt_status=$lt_dlunknown
8756 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +00008757#line 8757 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008758#include "confdefs.h"
8759
8760#if HAVE_DLFCN_H
8761#include <dlfcn.h>
8762#endif
8763
8764#include <stdio.h>
8765
8766#ifdef RTLD_GLOBAL
8767# define LT_DLGLOBAL RTLD_GLOBAL
8768#else
8769# ifdef DL_GLOBAL
8770# define LT_DLGLOBAL DL_GLOBAL
8771# else
8772# define LT_DLGLOBAL 0
8773# endif
8774#endif
8775
8776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8777 find out it does not work in some platform. */
8778#ifndef LT_DLLAZY_OR_NOW
8779# ifdef RTLD_LAZY
8780# define LT_DLLAZY_OR_NOW RTLD_LAZY
8781# else
8782# ifdef DL_LAZY
8783# define LT_DLLAZY_OR_NOW DL_LAZY
8784# else
8785# ifdef RTLD_NOW
8786# define LT_DLLAZY_OR_NOW RTLD_NOW
8787# else
8788# ifdef DL_NOW
8789# define LT_DLLAZY_OR_NOW DL_NOW
8790# else
8791# define LT_DLLAZY_OR_NOW 0
8792# endif
8793# endif
8794# endif
8795# endif
8796#endif
8797
8798#ifdef __cplusplus
8799extern "C" void exit (int);
8800#endif
8801
8802void fnord() { int i=42;}
8803int main ()
8804{
8805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8806 int status = $lt_dlunknown;
8807
8808 if (self)
8809 {
8810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8812 /* dlclose (self); */
8813 }
8814
8815 exit (status);
8816}
8817EOF
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8823 (./conftest; exit; ) 2>/dev/null
8824 lt_status=$?
8825 case x$lt_status in
8826 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8827 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8828 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8829 esac
8830 else :
8831 # compilation failed
8832 lt_cv_dlopen_self_static=no
8833 fi
8834fi
8835rm -fr conftest*
8836
8837
8838fi
8839echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8840echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8841 fi
8842
8843 CPPFLAGS="$save_CPPFLAGS"
8844 LDFLAGS="$save_LDFLAGS"
8845 LIBS="$save_LIBS"
8846 ;;
8847 esac
8848
8849 case $lt_cv_dlopen_self in
8850 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8851 *) enable_dlopen_self=unknown ;;
8852 esac
8853
8854 case $lt_cv_dlopen_self_static in
8855 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8856 *) enable_dlopen_self_static=unknown ;;
8857 esac
8858fi
8859
8860
John Criswell47fdd832003-07-14 16:52:07 +00008861# Report which librarie types wil actually be built
8862echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8863echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8864echo "$as_me:$LINENO: result: $can_build_shared" >&5
8865echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008866
John Criswell47fdd832003-07-14 16:52:07 +00008867echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8868echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8869test "$can_build_shared" = "no" && enable_shared=no
8870
8871# On AIX, shared libraries and static libraries use the same namespace, and
8872# are all built from PIC.
8873case "$host_os" in
8874aix3*)
8875 test "$enable_shared" = yes && enable_static=no
8876 if test -n "$RANLIB"; then
8877 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8878 postinstall_cmds='$RANLIB $lib'
8879 fi
8880 ;;
8881
8882aix4*)
8883 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8884 test "$enable_shared" = yes && enable_static=no
8885 fi
8886 ;;
8887 darwin* | rhapsody*)
8888 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8889 archive_cmds_need_lc=no
8890 case "$host_os" in
8891 rhapsody* | darwin1.[012])
8892 allow_undefined_flag='-undefined suppress'
8893 ;;
8894 *) # Darwin 1.3 on
8895 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8896 ;;
8897 esac
8898 # FIXME: Relying on posixy $() will cause problems for
8899 # cross-compilation, but unfortunately the echo tests do not
8900 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8901 # `"' quotes if we put them in here... so don't!
8902 output_verbose_link_cmd='echo'
8903 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8904 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8905 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8906 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}'
8907 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}'
8908 hardcode_direct=no
8909 hardcode_automatic=yes
8910 hardcode_shlibpath_var=unsupported
8911 whole_archive_flag_spec='-all_load $convenience'
8912 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008913 fi
John Criswell7a73b802003-06-30 21:59:07 +00008914 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008915esac
8916echo "$as_me:$LINENO: result: $enable_shared" >&5
8917echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008918
John Criswell47fdd832003-07-14 16:52:07 +00008919echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8920echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8921# Make sure either enable_shared or enable_static is yes.
8922test "$enable_shared" = yes || enable_static=yes
8923echo "$as_me:$LINENO: result: $enable_static" >&5
8924echo "${ECHO_T}$enable_static" >&6
8925
8926# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008927# libtool distribution, otherwise you forgot to ship ltmain.sh
8928# with your package, and you will get complaints that there are
8929# no rules to generate ltmain.sh.
8930if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008931 # See if we are running on zsh, and set the options which allow our commands through
8932 # without removal of \ escapes.
8933 if test -n "${ZSH_VERSION+set}" ; then
8934 setopt NO_GLOB_SUBST
8935 fi
John Criswell7a73b802003-06-30 21:59:07 +00008936 # Now quote all the things that may contain metacharacters while being
8937 # careful not to overquote the AC_SUBSTed values. We take copies of the
8938 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008939 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8940 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8941 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8942 deplibs_check_method reload_flag reload_cmds need_locks \
8943 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8944 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008945 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008946 old_postinstall_cmds old_postuninstall_cmds \
8947 compiler \
8948 CC \
8949 LD \
8950 lt_prog_compiler_wl \
8951 lt_prog_compiler_pic \
8952 lt_prog_compiler_static \
8953 lt_prog_compiler_no_builtin_flag \
8954 export_dynamic_flag_spec \
8955 thread_safe_flag_spec \
8956 whole_archive_flag_spec \
8957 enable_shared_with_static_runtimes \
8958 old_archive_cmds \
8959 old_archive_from_new_cmds \
8960 predep_objects \
8961 postdep_objects \
8962 predeps \
8963 postdeps \
8964 compiler_lib_search_path \
8965 archive_cmds \
8966 archive_expsym_cmds \
8967 postinstall_cmds \
8968 postuninstall_cmds \
8969 old_archive_from_expsyms_cmds \
8970 allow_undefined_flag \
8971 no_undefined_flag \
8972 export_symbols_cmds \
8973 hardcode_libdir_flag_spec \
8974 hardcode_libdir_flag_spec_ld \
8975 hardcode_libdir_separator \
8976 hardcode_automatic \
8977 module_cmds \
8978 module_expsym_cmds \
8979 lt_cv_prog_compiler_c_o \
8980 exclude_expsyms \
8981 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008982
8983 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008984 old_archive_cmds | \
8985 old_archive_from_new_cmds | \
8986 archive_cmds | \
8987 archive_expsym_cmds | \
8988 module_cmds | \
8989 module_expsym_cmds | \
8990 old_archive_from_expsyms_cmds | \
8991 export_symbols_cmds | \
8992 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008993 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008994 old_postinstall_cmds | old_postuninstall_cmds | \
8995 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008996 # Double-quote double-evaled strings.
8997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8998 ;;
8999 *)
9000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9001 ;;
9002 esac
9003 done
9004
John Criswell47fdd832003-07-14 16:52:07 +00009005 case $lt_echo in
9006 *'\$0 --fallback-echo"')
9007 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9008 ;;
9009 esac
9010
9011cfgfile="${ofile}T"
9012 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9013 $rm -f "$cfgfile"
9014 { echo "$as_me:$LINENO: creating $ofile" >&5
9015echo "$as_me: creating $ofile" >&6;}
9016
9017 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009018#! $SHELL
9019
John Criswell47fdd832003-07-14 16:52:07 +00009020# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00009021# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9022# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9023#
John Criswell47fdd832003-07-14 16:52:07 +00009024# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9025# Free Software Foundation, Inc.
9026#
9027# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00009028# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9029#
9030# This program is free software; you can redistribute it and/or modify
9031# it under the terms of the GNU General Public License as published by
9032# the Free Software Foundation; either version 2 of the License, or
9033# (at your option) any later version.
9034#
9035# This program is distributed in the hope that it will be useful, but
9036# WITHOUT ANY WARRANTY; without even the implied warranty of
9037# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9038# General Public License for more details.
9039#
9040# You should have received a copy of the GNU General Public License
9041# along with this program; if not, write to the Free Software
9042# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9043#
9044# As a special exception to the GNU General Public License, if you
9045# distribute this file as part of a program that contains a
9046# configuration script generated by Autoconf, you may include it under
9047# the same distribution terms that you use for the rest of that program.
9048
John Criswell47fdd832003-07-14 16:52:07 +00009049# A sed program that does not truncate output.
9050SED=$lt_SED
9051
John Criswell7a73b802003-06-30 21:59:07 +00009052# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009053Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009054
9055# The HP-UX ksh and POSIX shell print the target directory to stdout
9056# if CDPATH is set.
9057if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9058
John Criswell47fdd832003-07-14 16:52:07 +00009059# The names of the tagged configurations supported by this script.
9060available_tags=
9061
John Criswell7a73b802003-06-30 21:59:07 +00009062# ### BEGIN LIBTOOL CONFIG
9063
9064# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9065
9066# Shell to use when invoking shell scripts.
9067SHELL=$lt_SHELL
9068
9069# Whether or not to build shared libraries.
9070build_libtool_libs=$enable_shared
9071
9072# Whether or not to build static libraries.
9073build_old_libs=$enable_static
9074
9075# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009076build_libtool_need_lc=$archive_cmds_need_lc
9077
9078# Whether or not to disallow shared libs when runtime libs are static
9079allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009080
9081# Whether or not to optimize for fast installation.
9082fast_install=$enable_fast_install
9083
9084# The host system.
9085host_alias=$host_alias
9086host=$host
9087
9088# An echo program that does not interpret backslashes.
9089echo=$lt_echo
9090
9091# The archiver.
9092AR=$lt_AR
9093AR_FLAGS=$lt_AR_FLAGS
9094
John Criswell47fdd832003-07-14 16:52:07 +00009095# A C compiler.
9096LTCC=$lt_LTCC
9097
9098# A language-specific compiler.
9099CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009100
9101# Is the compiler the GNU C compiler?
9102with_gcc=$GCC
9103
John Criswell47fdd832003-07-14 16:52:07 +00009104# An ERE matcher.
9105EGREP=$lt_EGREP
9106
John Criswell7a73b802003-06-30 21:59:07 +00009107# The linker used to build libraries.
9108LD=$lt_LD
9109
9110# Whether we need hard or soft links.
9111LN_S=$lt_LN_S
9112
9113# A BSD-compatible nm program.
9114NM=$lt_NM
9115
9116# A symbol stripping program
9117STRIP=$STRIP
9118
9119# Used to examine libraries when file_magic_cmd begins "file"
9120MAGIC_CMD=$MAGIC_CMD
9121
9122# Used on cygwin: DLL creation program.
9123DLLTOOL="$DLLTOOL"
9124
9125# Used on cygwin: object dumper.
9126OBJDUMP="$OBJDUMP"
9127
9128# Used on cygwin: assembler.
9129AS="$AS"
9130
9131# The name of the directory that contains temporary libtool files.
9132objdir=$objdir
9133
9134# How to create reloadable object files.
9135reload_flag=$lt_reload_flag
9136reload_cmds=$lt_reload_cmds
9137
9138# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009139wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009140
9141# Object file suffix (normally "o").
9142objext="$ac_objext"
9143
9144# Old archive suffix (normally "a").
9145libext="$libext"
9146
John Criswell47fdd832003-07-14 16:52:07 +00009147# Shared library suffix (normally ".so").
9148shrext='$shrext'
9149
John Criswell7a73b802003-06-30 21:59:07 +00009150# Executable file suffix (normally "").
9151exeext="$exeext"
9152
9153# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009154pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009155pic_mode=$pic_mode
9156
John Criswell47fdd832003-07-14 16:52:07 +00009157# What is the maximum length of a command?
9158max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009159
John Criswell47fdd832003-07-14 16:52:07 +00009160# Does compiler simultaneously support -c and -o options?
9161compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009162
9163# Must we lock files when doing compilation ?
9164need_locks=$lt_need_locks
9165
9166# Do we need the lib prefix for modules?
9167need_lib_prefix=$need_lib_prefix
9168
9169# Do we need a version for libraries?
9170need_version=$need_version
9171
9172# Whether dlopen is supported.
9173dlopen_support=$enable_dlopen
9174
9175# Whether dlopen of programs is supported.
9176dlopen_self=$enable_dlopen_self
9177
9178# Whether dlopen of statically linked programs is supported.
9179dlopen_self_static=$enable_dlopen_self_static
9180
9181# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009182link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009183
9184# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009185no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009186
9187# Compiler flag to allow reflexive dlopens.
9188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9189
9190# Compiler flag to generate shared objects directly from archives.
9191whole_archive_flag_spec=$lt_whole_archive_flag_spec
9192
9193# Compiler flag to generate thread-safe objects.
9194thread_safe_flag_spec=$lt_thread_safe_flag_spec
9195
9196# Library versioning type.
9197version_type=$version_type
9198
9199# Format of library name prefix.
9200libname_spec=$lt_libname_spec
9201
9202# List of archive names. First name is the real one, the rest are links.
9203# The last name is the one that the linker finds with -lNAME.
9204library_names_spec=$lt_library_names_spec
9205
9206# The coded name of the library, if different from the real name.
9207soname_spec=$lt_soname_spec
9208
9209# Commands used to build and install an old-style archive.
9210RANLIB=$lt_RANLIB
9211old_archive_cmds=$lt_old_archive_cmds
9212old_postinstall_cmds=$lt_old_postinstall_cmds
9213old_postuninstall_cmds=$lt_old_postuninstall_cmds
9214
9215# Create an old-style archive from a shared archive.
9216old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9217
9218# Create a temporary old-style archive to link instead of a shared archive.
9219old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9220
9221# Commands used to build and install a shared archive.
9222archive_cmds=$lt_archive_cmds
9223archive_expsym_cmds=$lt_archive_expsym_cmds
9224postinstall_cmds=$lt_postinstall_cmds
9225postuninstall_cmds=$lt_postuninstall_cmds
9226
John Criswell47fdd832003-07-14 16:52:07 +00009227# Commands used to build a loadable module (assumed same as above if empty)
9228module_cmds=$lt_module_cmds
9229module_expsym_cmds=$lt_module_expsym_cmds
9230
John Criswell7a73b802003-06-30 21:59:07 +00009231# Commands to strip libraries.
9232old_striplib=$lt_old_striplib
9233striplib=$lt_striplib
9234
John Criswell47fdd832003-07-14 16:52:07 +00009235# Dependencies to place before the objects being linked to create a
9236# shared library.
9237predep_objects=$lt_predep_objects
9238
9239# Dependencies to place after the objects being linked to create a
9240# shared library.
9241postdep_objects=$lt_postdep_objects
9242
9243# Dependencies to place before the objects being linked to create a
9244# shared library.
9245predeps=$lt_predeps
9246
9247# Dependencies to place after the objects being linked to create a
9248# shared library.
9249postdeps=$lt_postdeps
9250
9251# The library search path used internally by the compiler when linking
9252# a shared library.
9253compiler_lib_search_path=$lt_compiler_lib_search_path
9254
John Criswell7a73b802003-06-30 21:59:07 +00009255# Method to check whether dependent libraries are shared objects.
9256deplibs_check_method=$lt_deplibs_check_method
9257
9258# Command to use when deplibs_check_method == file_magic.
9259file_magic_cmd=$lt_file_magic_cmd
9260
9261# Flag that allows shared libraries with undefined symbols to be built.
9262allow_undefined_flag=$lt_allow_undefined_flag
9263
9264# Flag that forces no undefined symbols.
9265no_undefined_flag=$lt_no_undefined_flag
9266
9267# Commands used to finish a libtool library installation in a directory.
9268finish_cmds=$lt_finish_cmds
9269
9270# Same as above, but a single script fragment to be evaled but not shown.
9271finish_eval=$lt_finish_eval
9272
9273# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009274global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009275
9276# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009277global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009278
9279# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009280global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009281
9282# This is the shared library runtime path variable.
9283runpath_var=$runpath_var
9284
9285# This is the shared library path variable.
9286shlibpath_var=$shlibpath_var
9287
9288# Is shlibpath searched before the hard-coded library search path?
9289shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9290
9291# How to hardcode a shared library path into an executable.
9292hardcode_action=$hardcode_action
9293
9294# Whether we should hardcode library paths into libraries.
9295hardcode_into_libs=$hardcode_into_libs
9296
9297# Flag to hardcode \$libdir into a binary during linking.
9298# This must work even if \$libdir does not exist.
9299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9300
John Criswell47fdd832003-07-14 16:52:07 +00009301# If ld is used when linking, flag to hardcode \$libdir into
9302# a binary during linking. This must work even if \$libdir does
9303# not exist.
9304hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9305
John Criswell7a73b802003-06-30 21:59:07 +00009306# Whether we need a single -rpath flag with a separated argument.
9307hardcode_libdir_separator=$lt_hardcode_libdir_separator
9308
John Criswell47fdd832003-07-14 16:52:07 +00009309# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009310# resulting binary.
9311hardcode_direct=$hardcode_direct
9312
9313# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9314# resulting binary.
9315hardcode_minus_L=$hardcode_minus_L
9316
9317# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9318# the resulting binary.
9319hardcode_shlibpath_var=$hardcode_shlibpath_var
9320
John Criswell47fdd832003-07-14 16:52:07 +00009321# Set to yes if building a shared library automatically hardcodes DIR into the library
9322# and all subsequent libraries and executables linked against it.
9323hardcode_automatic=$hardcode_automatic
9324
John Criswell7a73b802003-06-30 21:59:07 +00009325# Variables whose values should be saved in libtool wrapper scripts and
9326# restored at relink time.
9327variables_saved_for_relink="$variables_saved_for_relink"
9328
9329# Whether libtool must link a program against all its dependency libraries.
9330link_all_deplibs=$link_all_deplibs
9331
9332# Compile-time system search path for libraries
9333sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9334
9335# Run-time system search path for libraries
9336sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9337
9338# Fix the shell variable \$srcfile for the compiler.
9339fix_srcfile_path="$fix_srcfile_path"
9340
9341# Set to yes if exported symbols are required.
9342always_export_symbols=$always_export_symbols
9343
9344# The commands to list exported symbols.
9345export_symbols_cmds=$lt_export_symbols_cmds
9346
9347# The commands to extract the exported symbol list from a shared archive.
9348extract_expsyms_cmds=$lt_extract_expsyms_cmds
9349
9350# Symbols that should not be listed in the preloaded symbols.
9351exclude_expsyms=$lt_exclude_expsyms
9352
9353# Symbols that must always be exported.
9354include_expsyms=$lt_include_expsyms
9355
9356# ### END LIBTOOL CONFIG
9357
9358__EOF__
9359
John Criswell47fdd832003-07-14 16:52:07 +00009360
John Criswell7a73b802003-06-30 21:59:07 +00009361 case $host_os in
9362 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009363 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009364
9365# AIX sometimes has problems with the GCC collect2 program. For some
9366# reason, if we set the COLLECT_NAMES environment variable, the problems
9367# vanish in a puff of smoke.
9368if test "X${COLLECT_NAMES+set}" != Xset; then
9369 COLLECT_NAMES=
9370 export COLLECT_NAMES
9371fi
9372EOF
9373 ;;
9374 esac
9375
John Criswell7a73b802003-06-30 21:59:07 +00009376 # We use sed instead of cat because bash on DJGPP gets confused if
9377 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9378 # text mode, it properly converts lines to CR/LF. This bash problem
9379 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009380 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009381
John Criswell47fdd832003-07-14 16:52:07 +00009382 mv -f "$cfgfile" "$ofile" || \
9383 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009384 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009385
9386else
9387 # If there is no Makefile yet, we rely on a make rule to execute
9388 # `config.status --recheck' to rerun these tests and create the
9389 # libtool script then.
9390 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009391fi
John Criswell7a73b802003-06-30 21:59:07 +00009392
9393
John Criswell47fdd832003-07-14 16:52:07 +00009394ac_ext=c
9395ac_cpp='$CPP $CPPFLAGS'
9396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398ac_compiler_gnu=$ac_cv_c_compiler_gnu
9399
9400CC="$lt_save_CC"
9401
9402
9403# Check whether --with-tags or --without-tags was given.
9404if test "${with_tags+set}" = set; then
9405 withval="$with_tags"
9406 tagnames="$withval"
9407fi;
9408
9409if test -f "$ltmain" && test -n "$tagnames"; then
9410 if test ! -f "${ofile}"; then
9411 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9412echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9413 fi
9414
9415 if test -z "$LTCC"; then
9416 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9417 if test -z "$LTCC"; then
9418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9419echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9420 else
9421 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9422echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9423 fi
9424 fi
9425
9426 # Extract list of available tagged configurations in $ofile.
9427 # Note that this assumes the entire list is on one line.
9428 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9429
9430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9431 for tagname in $tagnames; do
9432 IFS="$lt_save_ifs"
9433 # Check whether tagname contains only valid characters
9434 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9435 "") ;;
9436 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9437echo "$as_me: error: invalid tag name: $tagname" >&2;}
9438 { (exit 1); exit 1; }; }
9439 ;;
9440 esac
9441
9442 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9443 then
9444 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9445echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9446 { (exit 1); exit 1; }; }
9447 fi
9448
9449 # Update the list of available tags.
9450 if test -n "$tagname"; then
9451 echo appending configuration tag \"$tagname\" to $ofile
9452
9453 case $tagname in
9454 CXX)
9455 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9456 ac_ext=cc
9457ac_cpp='$CXXCPP $CPPFLAGS'
9458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9461
9462
9463
9464
9465archive_cmds_need_lc_CXX=no
9466allow_undefined_flag_CXX=
9467always_export_symbols_CXX=no
9468archive_expsym_cmds_CXX=
9469export_dynamic_flag_spec_CXX=
9470hardcode_direct_CXX=no
9471hardcode_libdir_flag_spec_CXX=
9472hardcode_libdir_flag_spec_ld_CXX=
9473hardcode_libdir_separator_CXX=
9474hardcode_minus_L_CXX=no
9475hardcode_automatic_CXX=no
9476module_cmds_CXX=
9477module_expsym_cmds_CXX=
9478link_all_deplibs_CXX=unknown
9479old_archive_cmds_CXX=$old_archive_cmds
9480no_undefined_flag_CXX=
9481whole_archive_flag_spec_CXX=
9482enable_shared_with_static_runtimes_CXX=no
9483
9484# Dependencies to place before and after the object being linked:
9485predep_objects_CXX=
9486postdep_objects_CXX=
9487predeps_CXX=
9488postdeps_CXX=
9489compiler_lib_search_path_CXX=
9490
9491# Source file extension for C++ test sources.
9492ac_ext=cc
9493
9494# Object file extension for compiled C++ test sources.
9495objext=o
9496objext_CXX=$objext
9497
9498# Code to be used in simple compile tests
9499lt_simple_compile_test_code="int some_variable = 0;\n"
9500
9501# Code to be used in simple link tests
9502lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9503
9504# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9505
9506# If no C compiler was specified, use CC.
9507LTCC=${LTCC-"$CC"}
9508
9509# Allow CC to be a program name with arguments.
9510compiler=$CC
9511
9512
9513# Allow CC to be a program name with arguments.
9514lt_save_CC=$CC
9515lt_save_LD=$LD
9516lt_save_GCC=$GCC
9517GCC=$GXX
9518lt_save_with_gnu_ld=$with_gnu_ld
9519lt_save_path_LD=$lt_cv_path_LD
9520if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9521 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9522else
9523 unset lt_cv_prog_gnu_ld
9524fi
9525if test -n "${lt_cv_path_LDCXX+set}"; then
9526 lt_cv_path_LD=$lt_cv_path_LDCXX
9527else
9528 unset lt_cv_path_LD
9529fi
9530test -z "${LDCXX+set}" || LD=$LDCXX
9531CC=${CXX-"c++"}
9532compiler=$CC
9533compiler_CXX=$CC
9534cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9535
9536# We don't want -fno-exception wen compiling C++ code, so set the
9537# no_builtin_flag separately
9538if test "$GXX" = yes; then
9539 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9540else
9541 lt_prog_compiler_no_builtin_flag_CXX=
9542fi
9543
9544if test "$GXX" = yes; then
9545 # Set up default GNU C++ configuration
9546
9547
9548# Check whether --with-gnu-ld or --without-gnu-ld was given.
9549if test "${with_gnu_ld+set}" = set; then
9550 withval="$with_gnu_ld"
9551 test "$withval" = no || with_gnu_ld=yes
9552else
9553 with_gnu_ld=no
9554fi;
9555ac_prog=ld
9556if test "$GCC" = yes; then
9557 # Check if gcc -print-prog-name=ld gives a path.
9558 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9559echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9560 case $host in
9561 *-*-mingw*)
9562 # gcc leaves a trailing carriage return which upsets mingw
9563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9564 *)
9565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9566 esac
9567 case $ac_prog in
9568 # Accept absolute paths.
9569 [\\/]* | ?:[\\/]*)
9570 re_direlt='/[^/][^/]*/\.\./'
9571 # Canonicalize the path of ld
9572 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9573 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9574 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9575 done
9576 test -z "$LD" && LD="$ac_prog"
9577 ;;
9578 "")
9579 # If it fails, then pretend we aren't using GCC.
9580 ac_prog=ld
9581 ;;
9582 *)
9583 # If it is relative, then search for the first ld in PATH.
9584 with_gnu_ld=unknown
9585 ;;
9586 esac
9587elif test "$with_gnu_ld" = yes; then
9588 echo "$as_me:$LINENO: checking for GNU ld" >&5
9589echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9590else
9591 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9592echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9593fi
9594if test "${lt_cv_path_LD+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596else
9597 if test -z "$LD"; then
9598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9599 for ac_dir in $PATH; do
9600 IFS="$lt_save_ifs"
9601 test -z "$ac_dir" && ac_dir=.
9602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9603 lt_cv_path_LD="$ac_dir/$ac_prog"
9604 # Check to see if the program is GNU ld. I'd rather use --version,
9605 # but apparently some GNU ld's only accept -v.
9606 # Break only if it was the GNU/non-GNU ld that we prefer.
9607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9608 *GNU* | *'with BFD'*)
9609 test "$with_gnu_ld" != no && break
9610 ;;
9611 *)
9612 test "$with_gnu_ld" != yes && break
9613 ;;
9614 esac
9615 fi
9616 done
9617 IFS="$lt_save_ifs"
9618else
9619 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9620fi
9621fi
9622
9623LD="$lt_cv_path_LD"
9624if test -n "$LD"; then
9625 echo "$as_me:$LINENO: result: $LD" >&5
9626echo "${ECHO_T}$LD" >&6
9627else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630fi
9631test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9632echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9633 { (exit 1); exit 1; }; }
9634echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9635echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9636if test "${lt_cv_prog_gnu_ld+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9640case `"$LD" -v 2>&1 </dev/null` in
9641*GNU* | *'with BFD'*)
9642 lt_cv_prog_gnu_ld=yes
9643 ;;
9644*)
9645 lt_cv_prog_gnu_ld=no
9646 ;;
9647esac
9648fi
9649echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9650echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9651with_gnu_ld=$lt_cv_prog_gnu_ld
9652
9653
9654
9655 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9656 # archiving commands below assume that GNU ld is being used.
9657 if test "$with_gnu_ld" = yes; then
9658 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9659 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'
9660
9661 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9663
9664 # If archive_cmds runs LD, not CC, wlarc should be empty
9665 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9666 # investigate it a little bit more. (MM)
9667 wlarc='${wl}'
9668
9669 # ancient GNU ld didn't support --whole-archive et. al.
9670 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9671 grep 'no-whole-archive' > /dev/null; then
9672 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9673 else
9674 whole_archive_flag_spec_CXX=
9675 fi
9676 else
9677 with_gnu_ld=no
9678 wlarc=
9679
9680 # A generic and very simple default shared library creation
9681 # command for GNU C++ for the case where it uses the native
9682 # linker, instead of GNU ld. If possible, this setting should
9683 # overridden to take advantage of the native linker features on
9684 # the platform it is being used on.
9685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9686 fi
9687
9688 # Commands to make compiler produce verbose output that lists
9689 # what "hidden" libraries, object files and flags are used when
9690 # linking a shared library.
9691 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9692
9693else
9694 GXX=no
9695 with_gnu_ld=no
9696 wlarc=
9697fi
9698
9699# PORTME: fill in a description of your system's C++ link characteristics
9700echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9701echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9702ld_shlibs_CXX=yes
9703case $host_os in
9704 aix3*)
9705 # FIXME: insert proper C++ library support
9706 ld_shlibs_CXX=no
9707 ;;
9708 aix4* | aix5*)
9709 if test "$host_cpu" = ia64; then
9710 # On IA64, the linker does run time linking by default, so we don't
9711 # have to do anything special.
9712 aix_use_runtimelinking=no
9713 exp_sym_flag='-Bexport'
9714 no_entry_flag=""
9715 else
9716 aix_use_runtimelinking=no
9717
9718 # Test if we are trying to use run time linking or normal
9719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720 # need to do runtime linking.
9721 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9722 for ld_flag in $LDFLAGS; do
9723 case $ld_flag in
9724 *-brtl*)
9725 aix_use_runtimelinking=yes
9726 break
9727 ;;
9728 esac
9729 done
9730 esac
9731
9732 exp_sym_flag='-bexport'
9733 no_entry_flag='-bnoentry'
9734 fi
9735
9736 # When large executables or shared objects are built, AIX ld can
9737 # have problems creating the table of contents. If linking a library
9738 # or program results in "error TOC overflow" add -mminimal-toc to
9739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9741
9742 archive_cmds_CXX=''
9743 hardcode_direct_CXX=yes
9744 hardcode_libdir_separator_CXX=':'
9745 link_all_deplibs_CXX=yes
9746
9747 if test "$GXX" = yes; then
9748 case $host_os in aix4.012|aix4.012.*)
9749 # We only want to do this on AIX 4.2 and lower, the check
9750 # below for broken collect2 doesn't work under 4.3+
9751 collect2name=`${CC} -print-prog-name=collect2`
9752 if test -f "$collect2name" && \
9753 strings "$collect2name" | grep resolve_lib_name >/dev/null
9754 then
9755 # We have reworked collect2
9756 hardcode_direct_CXX=yes
9757 else
9758 # We have old collect2
9759 hardcode_direct_CXX=unsupported
9760 # It fails to find uninstalled libraries when the uninstalled
9761 # path is not listed in the libpath. Setting hardcode_minus_L
9762 # to unsupported forces relinking
9763 hardcode_minus_L_CXX=yes
9764 hardcode_libdir_flag_spec_CXX='-L$libdir'
9765 hardcode_libdir_separator_CXX=
9766 fi
9767 esac
9768 shared_flag='-shared'
9769 else
9770 # not using gcc
9771 if test "$host_cpu" = ia64; then
9772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9773 # chokes on -Wl,-G. The following line is correct:
9774 shared_flag='-G'
9775 else
9776 if test "$aix_use_runtimelinking" = yes; then
9777 shared_flag='${wl}-G'
9778 else
9779 shared_flag='${wl}-bM:SRE'
9780 fi
9781 fi
9782 fi
9783
9784 # It seems that -bexpall does not export symbols beginning with
9785 # underscore (_), so it is better to generate a list of symbols to export.
9786 always_export_symbols_CXX=yes
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # Warning - without using the other runtime loading flags (-brtl),
9789 # -berok will link without error, but may produce a broken library.
9790 allow_undefined_flag_CXX='-berok'
9791 # Determine the default libpath from the value encoded in an empty executable.
9792 cat >conftest.$ac_ext <<_ACEOF
9793#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009799
John Criswell47fdd832003-07-14 16:52:07 +00009800int
9801main ()
9802{
9803
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820
9821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9822}'`
9823# Check for a 64-bit object if we didn't find anything.
9824if 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; }
9825}'`; fi
9826else
9827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009828sed 's/^/| /' conftest.$ac_ext >&5
9829
John Criswell47fdd832003-07-14 16:52:07 +00009830fi
9831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9833
9834 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9835
9836 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"
9837 else
9838 if test "$host_cpu" = ia64; then
9839 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9840 allow_undefined_flag_CXX="-z nodefs"
9841 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"
9842 else
9843 # Determine the default libpath from the value encoded in an empty executable.
9844 cat >conftest.$ac_ext <<_ACEOF
9845#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009846/* confdefs.h. */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009851
John Criswell47fdd832003-07-14 16:52:07 +00009852int
9853main ()
9854{
9855
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860rm -f conftest.$ac_objext conftest$ac_exeext
9861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9862 (eval $ac_link) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872
9873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9874}'`
9875# Check for a 64-bit object if we didn't find anything.
9876if 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; }
9877}'`; fi
9878else
9879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009880sed 's/^/| /' conftest.$ac_ext >&5
9881
John Criswell47fdd832003-07-14 16:52:07 +00009882fi
9883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9885
9886 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9887 # Warning - without using the other run time loading flags,
9888 # -berok will link without error, but may produce a broken library.
9889 no_undefined_flag_CXX=' ${wl}-bernotok'
9890 allow_undefined_flag_CXX=' ${wl}-berok'
9891 # -bexpall does not export symbols beginning with underscore (_)
9892 always_export_symbols_CXX=yes
9893 # Exported symbols can be pulled into shared objects from archives
9894 whole_archive_flag_spec_CXX=' '
9895 archive_cmds_need_lc_CXX=yes
9896 # This is similar to how AIX traditionally builds it's shared libraries.
9897 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'
9898 fi
9899 fi
9900 ;;
9901 chorus*)
9902 case $cc_basename in
9903 *)
9904 # FIXME: insert proper C++ library support
9905 ld_shlibs_CXX=no
9906 ;;
9907 esac
9908 ;;
9909
9910 cygwin* | mingw* | pw32*)
9911 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9912 # as there is no search path for DLLs.
9913 hardcode_libdir_flag_spec_CXX='-L$libdir'
9914 allow_undefined_flag_CXX=unsupported
9915 always_export_symbols_CXX=no
9916 enable_shared_with_static_runtimes_CXX=yes
9917
9918 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9919 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'
9920 # If the export-symbols file already is a .def file (1st line
9921 # is EXPORTS), use it as is; otherwise, prepend...
9922 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9923 cp $export_symbols $output_objdir/$soname.def;
9924 else
9925 echo EXPORTS > $output_objdir/$soname.def;
9926 cat $export_symbols >> $output_objdir/$soname.def;
9927 fi~
9928 $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'
9929 else
9930 ld_shlibs_CXX=no
9931 fi
9932 ;;
9933
9934 darwin* | rhapsody*)
9935 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9936 archive_cmds_need_lc_CXX=no
9937 case "$host_os" in
9938 rhapsody* | darwin1.[012])
9939 allow_undefined_flag_CXX='-undefined suppress'
9940 ;;
9941 *) # Darwin 1.3 on
9942 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9943 ;;
9944 esac
9945 lt_int_apple_cc_single_mod=no
9946 output_verbose_link_cmd='echo'
9947 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9948 lt_int_apple_cc_single_mod=yes
9949 fi
9950 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9951 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9952 else
9953 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'
9954 fi
9955 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9956
9957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9958 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9959 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}'
9960 else
9961 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}'
9962 fi
9963 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}'
9964 hardcode_direct_CXX=no
9965 hardcode_automatic_CXX=yes
9966 hardcode_shlibpath_var_CXX=unsupported
9967 whole_archive_flag_spec_CXX='-all_load $convenience'
9968 link_all_deplibs_CXX=yes
9969 fi
9970 ;;
9971
9972 dgux*)
9973 case $cc_basename in
9974 ec++)
9975 # FIXME: insert proper C++ library support
9976 ld_shlibs_CXX=no
9977 ;;
9978 ghcx)
9979 # Green Hills C++ Compiler
9980 # FIXME: insert proper C++ library support
9981 ld_shlibs_CXX=no
9982 ;;
9983 *)
9984 # FIXME: insert proper C++ library support
9985 ld_shlibs_CXX=no
9986 ;;
9987 esac
9988 ;;
9989 freebsd12*)
9990 # C++ shared libraries reported to be fairly broken before switch to ELF
9991 ld_shlibs_CXX=no
9992 ;;
9993 freebsd-elf*)
9994 archive_cmds_need_lc_CXX=no
9995 ;;
9996 freebsd*)
9997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9998 # conventions
9999 ld_shlibs_CXX=yes
10000 ;;
10001 gnu*)
10002 ;;
10003 hpux9*)
10004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10005 hardcode_libdir_separator_CXX=:
10006 export_dynamic_flag_spec_CXX='${wl}-E'
10007 hardcode_direct_CXX=yes
10008 hardcode_minus_L_CXX=yes # Not in the search PATH,
10009 # but as the default
10010 # location of the library.
10011
10012 case $cc_basename in
10013 CC)
10014 # FIXME: insert proper C++ library support
10015 ld_shlibs_CXX=no
10016 ;;
10017 aCC)
10018 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'
10019 # Commands to make compiler produce verbose output that lists
10020 # what "hidden" libraries, object files and flags are used when
10021 # linking a shared library.
10022 #
10023 # There doesn't appear to be a way to prevent this compiler from
10024 # explicitly linking system object files so we need to strip them
10025 # from the output so that they don't get included in the library
10026 # dependencies.
10027 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'
10028 ;;
10029 *)
10030 if test "$GXX" = yes; then
10031 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'
10032 else
10033 # FIXME: insert proper C++ library support
10034 ld_shlibs_CXX=no
10035 fi
10036 ;;
10037 esac
10038 ;;
10039 hpux10*|hpux11*)
10040 if test $with_gnu_ld = no; then
10041 case "$host_cpu" in
10042 hppa*64*)
10043 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10044 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10045 hardcode_libdir_separator_CXX=:
10046 ;;
10047 ia64*)
10048 hardcode_libdir_flag_spec_CXX='-L$libdir'
10049 ;;
10050 *)
10051 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10052 hardcode_libdir_separator_CXX=:
10053 export_dynamic_flag_spec_CXX='${wl}-E'
10054 ;;
10055 esac
10056 fi
10057 case "$host_cpu" in
10058 hppa*64*)
10059 hardcode_direct_CXX=no
10060 hardcode_shlibpath_var_CXX=no
10061 ;;
10062 ia64*)
10063 hardcode_direct_CXX=no
10064 hardcode_shlibpath_var_CXX=no
10065 hardcode_minus_L_CXX=yes # Not in the search PATH,
10066 # but as the default
10067 # location of the library.
10068 ;;
10069 *)
10070 hardcode_direct_CXX=yes
10071 hardcode_minus_L_CXX=yes # Not in the search PATH,
10072 # but as the default
10073 # location of the library.
10074 ;;
10075 esac
10076
10077 case $cc_basename in
10078 CC)
10079 # FIXME: insert proper C++ library support
10080 ld_shlibs_CXX=no
10081 ;;
10082 aCC)
10083 case "$host_cpu" in
10084 hppa*64*|ia64*)
10085 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10086 ;;
10087 *)
10088 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10089 ;;
10090 esac
10091 # Commands to make compiler produce verbose output that lists
10092 # what "hidden" libraries, object files and flags are used when
10093 # linking a shared library.
10094 #
10095 # There doesn't appear to be a way to prevent this compiler from
10096 # explicitly linking system object files so we need to strip them
10097 # from the output so that they don't get included in the library
10098 # dependencies.
10099 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'
10100 ;;
10101 *)
10102 if test "$GXX" = yes; then
10103 if test $with_gnu_ld = no; then
10104 case "$host_cpu" in
10105 ia64*|hppa*64*)
10106 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10107 ;;
10108 *)
10109 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'
10110 ;;
10111 esac
10112 fi
10113 else
10114 # FIXME: insert proper C++ library support
10115 ld_shlibs_CXX=no
10116 fi
10117 ;;
10118 esac
10119 ;;
10120 irix5* | irix6*)
10121 case $cc_basename in
10122 CC)
10123 # SGI C++
10124 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'
10125
10126 # Archives containing C++ object files must be created using
10127 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10128 # necessary to make sure instantiated templates are included
10129 # in the archive.
10130 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10131 ;;
10132 *)
10133 if test "$GXX" = yes; then
10134 if test "$with_gnu_ld" = no; then
10135 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'
10136 else
10137 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'
10138 fi
10139 fi
10140 link_all_deplibs_CXX=yes
10141 ;;
10142 esac
10143 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10144 hardcode_libdir_separator_CXX=:
10145 ;;
10146 linux*)
10147 case $cc_basename in
10148 KCC)
10149 # Kuck and Associates, Inc. (KAI) C++ Compiler
10150
10151 # KCC will only create a shared library if the output file
10152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10153 # to its proper name (with version) after linking.
10154 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'
10155 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'
10156 # Commands to make compiler produce verbose output that lists
10157 # what "hidden" libraries, object files and flags are used when
10158 # linking a shared library.
10159 #
10160 # There doesn't appear to be a way to prevent this compiler from
10161 # explicitly linking system object files so we need to strip them
10162 # from the output so that they don't get included in the library
10163 # dependencies.
10164 output_verbose_link_cmd='templist=`$CC $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'
10165
10166 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168
10169 # Archives containing C++ object files must be created using
10170 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10171 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10172 ;;
10173 icpc)
10174 # Intel C++
10175 with_gnu_ld=yes
10176 archive_cmds_need_lc_CXX=no
10177 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178 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'
10179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10181 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10182 ;;
10183 cxx)
10184 # Compaq C++
10185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 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'
10187
10188 runpath_var=LD_RUN_PATH
10189 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10190 hardcode_libdir_separator_CXX=:
10191
10192 # Commands to make compiler produce verbose output that lists
10193 # what "hidden" libraries, object files and flags are used when
10194 # linking a shared library.
10195 #
10196 # There doesn't appear to be a way to prevent this compiler from
10197 # explicitly linking system object files so we need to strip them
10198 # from the output so that they don't get included in the library
10199 # dependencies.
10200 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'
10201 ;;
10202 esac
10203 ;;
10204 lynxos*)
10205 # FIXME: insert proper C++ library support
10206 ld_shlibs_CXX=no
10207 ;;
10208 m88k*)
10209 # FIXME: insert proper C++ library support
10210 ld_shlibs_CXX=no
10211 ;;
10212 mvs*)
10213 case $cc_basename in
10214 cxx)
10215 # FIXME: insert proper C++ library support
10216 ld_shlibs_CXX=no
10217 ;;
10218 *)
10219 # FIXME: insert proper C++ library support
10220 ld_shlibs_CXX=no
10221 ;;
10222 esac
10223 ;;
10224 netbsd*)
10225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10226 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10227 wlarc=
10228 hardcode_libdir_flag_spec_CXX='-R$libdir'
10229 hardcode_direct_CXX=yes
10230 hardcode_shlibpath_var_CXX=no
10231 fi
10232 # Workaround some broken pre-1.5 toolchains
10233 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10234 ;;
10235 osf3*)
10236 case $cc_basename in
10237 KCC)
10238 # Kuck and Associates, Inc. (KAI) C++ Compiler
10239
10240 # KCC will only create a shared library if the output file
10241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10242 # to its proper name (with version) after linking.
10243 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'
10244
10245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10246 hardcode_libdir_separator_CXX=:
10247
10248 # Archives containing C++ object files must be created using
10249 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10250 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10251
10252 ;;
10253 RCC)
10254 # Rational C++ 2.4.1
10255 # FIXME: insert proper C++ library support
10256 ld_shlibs_CXX=no
10257 ;;
10258 cxx)
10259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10260 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'
10261
10262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10263 hardcode_libdir_separator_CXX=:
10264
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10268 #
10269 # There doesn't appear to be a way to prevent this compiler from
10270 # explicitly linking system object files so we need to strip them
10271 # from the output so that they don't get included in the library
10272 # dependencies.
10273 output_verbose_link_cmd='templist=`$CC -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'
10274 ;;
10275 *)
10276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10278 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'
10279
10280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10281 hardcode_libdir_separator_CXX=:
10282
10283 # Commands to make compiler produce verbose output that lists
10284 # what "hidden" libraries, object files and flags are used when
10285 # linking a shared library.
10286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10287
10288 else
10289 # FIXME: insert proper C++ library support
10290 ld_shlibs_CXX=no
10291 fi
10292 ;;
10293 esac
10294 ;;
10295 osf4* | osf5*)
10296 case $cc_basename in
10297 KCC)
10298 # Kuck and Associates, Inc. (KAI) C++ Compiler
10299
10300 # KCC will only create a shared library if the output file
10301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10302 # to its proper name (with version) after linking.
10303 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'
10304
10305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10306 hardcode_libdir_separator_CXX=:
10307
10308 # Archives containing C++ object files must be created using
10309 # the KAI C++ compiler.
10310 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10311 ;;
10312 RCC)
10313 # Rational C++ 2.4.1
10314 # FIXME: insert proper C++ library support
10315 ld_shlibs_CXX=no
10316 ;;
10317 cxx)
10318 allow_undefined_flag_CXX=' -expect_unresolved \*'
10319 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'
10320 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10321 echo "-hidden">> $lib.exp~
10322 $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~
10323 $rm $lib.exp'
10324
10325 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10326 hardcode_libdir_separator_CXX=:
10327
10328 # Commands to make compiler produce verbose output that lists
10329 # what "hidden" libraries, object files and flags are used when
10330 # linking a shared library.
10331 #
10332 # There doesn't appear to be a way to prevent this compiler from
10333 # explicitly linking system object files so we need to strip them
10334 # from the output so that they don't get included in the library
10335 # dependencies.
10336 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'
10337 ;;
10338 *)
10339 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10340 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10341 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'
10342
10343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10344 hardcode_libdir_separator_CXX=:
10345
10346 # Commands to make compiler produce verbose output that lists
10347 # what "hidden" libraries, object files and flags are used when
10348 # linking a shared library.
10349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10350
10351 else
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 fi
10355 ;;
10356 esac
10357 ;;
10358 psos*)
10359 # FIXME: insert proper C++ library support
10360 ld_shlibs_CXX=no
10361 ;;
10362 sco*)
10363 archive_cmds_need_lc_CXX=no
10364 case $cc_basename in
10365 CC)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 *)
10370 # FIXME: insert proper C++ library support
10371 ld_shlibs_CXX=no
10372 ;;
10373 esac
10374 ;;
10375 sunos4*)
10376 case $cc_basename in
10377 CC)
10378 # Sun C++ 4.x
10379 # FIXME: insert proper C++ library support
10380 ld_shlibs_CXX=no
10381 ;;
10382 lcc)
10383 # Lucid
10384 # FIXME: insert proper C++ library support
10385 ld_shlibs_CXX=no
10386 ;;
10387 *)
10388 # FIXME: insert proper C++ library support
10389 ld_shlibs_CXX=no
10390 ;;
10391 esac
10392 ;;
10393 solaris*)
10394 case $cc_basename in
10395 CC)
10396 # Sun C++ 4.2, 5.x and Centerline C++
10397 no_undefined_flag_CXX=' -zdefs'
10398 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10399 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10400 $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'
10401
10402 hardcode_libdir_flag_spec_CXX='-R$libdir'
10403 hardcode_shlibpath_var_CXX=no
10404 case $host_os in
10405 solaris2.0-5 | solaris2.0-5.*) ;;
10406 *)
10407 # The C++ compiler is used as linker so we must use $wl
10408 # flag to pass the commands to the underlying system
10409 # linker.
10410 # Supported since Solaris 2.6 (maybe 2.5.1?)
10411 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10412 ;;
10413 esac
10414 link_all_deplibs_CXX=yes
10415
10416 # Commands to make compiler produce verbose output that lists
10417 # what "hidden" libraries, object files and flags are used when
10418 # linking a shared library.
10419 #
10420 # There doesn't appear to be a way to prevent this compiler from
10421 # explicitly linking system object files so we need to strip them
10422 # from the output so that they don't get included in the library
10423 # dependencies.
10424 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'
10425
10426 # Archives containing C++ object files must be created using
10427 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10428 # necessary to make sure instantiated templates are included
10429 # in the archive.
10430 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10431 ;;
10432 gcx)
10433 # Green Hills C++ Compiler
10434 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10435
10436 # The C++ compiler must be used to create the archive.
10437 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10438 ;;
10439 *)
10440 # GNU C++ compiler with Solaris linker
10441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10442 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10443 if $CC --version | grep -v '^2\.7' > /dev/null; then
10444 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10445 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10446 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10447
10448 # Commands to make compiler produce verbose output that lists
10449 # what "hidden" libraries, object files and flags are used when
10450 # linking a shared library.
10451 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10452 else
10453 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10454 # platform.
10455 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10456 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10457 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10458
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10462 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10463 fi
10464
10465 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10466 fi
10467 ;;
10468 esac
10469 ;;
10470 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10471 archive_cmds_need_lc_CXX=no
10472 ;;
10473 tandem*)
10474 case $cc_basename in
10475 NCC)
10476 # NonStop-UX NCC 3.20
10477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10479 ;;
10480 *)
10481 # FIXME: insert proper C++ library support
10482 ld_shlibs_CXX=no
10483 ;;
10484 esac
10485 ;;
10486 vxworks*)
10487 # FIXME: insert proper C++ library support
10488 ld_shlibs_CXX=no
10489 ;;
10490 *)
10491 # FIXME: insert proper C++ library support
10492 ld_shlibs_CXX=no
10493 ;;
10494esac
10495echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10496echo "${ECHO_T}$ld_shlibs_CXX" >&6
10497test "$ld_shlibs_CXX" = no && can_build_shared=no
10498
10499GCC_CXX="$GXX"
10500LD_CXX="$LD"
10501
10502## CAVEAT EMPTOR:
10503## There is no encapsulation within the following macros, do not change
10504## the running order or otherwise move them around unless you know exactly
10505## what you are doing...
10506
10507cat > conftest.$ac_ext <<EOF
10508class Foo
10509{
10510public:
10511 Foo (void) { a = 0; }
10512private:
10513 int a;
10514};
10515EOF
10516
10517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518 (eval $ac_compile) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; then
10522 # Parse the compiler output and extract the necessary
10523 # objects, libraries and library flags.
10524
10525 # Sentinel used to keep track of whether or not we are before
10526 # the conftest object file.
10527 pre_test_object_deps_done=no
10528
10529 # The `*' in the case matches for architectures that use `case' in
10530 # $output_verbose_cmd can trigger glob expansion during the loop
10531 # eval without this substitution.
10532 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10533
10534 for p in `eval $output_verbose_link_cmd`; do
10535 case $p in
10536
10537 -L* | -R* | -l*)
10538 # Some compilers place space between "-{L,R}" and the path.
10539 # Remove the space.
10540 if test $p = "-L" \
10541 || test $p = "-R"; then
10542 prev=$p
10543 continue
10544 else
10545 prev=
10546 fi
10547
10548 if test "$pre_test_object_deps_done" = no; then
10549 case $p in
10550 -L* | -R*)
10551 # Internal compiler library paths should come after those
10552 # provided the user. The postdeps already come after the
10553 # user supplied libs so there is no need to process them.
10554 if test -z "$compiler_lib_search_path_CXX"; then
10555 compiler_lib_search_path_CXX="${prev}${p}"
10556 else
10557 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10558 fi
10559 ;;
10560 # The "-l" case would never come before the object being
10561 # linked, so don't bother handling this case.
10562 esac
10563 else
10564 if test -z "$postdeps_CXX"; then
10565 postdeps_CXX="${prev}${p}"
10566 else
10567 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10568 fi
10569 fi
10570 ;;
10571
10572 *.$objext)
10573 # This assumes that the test object file only shows up
10574 # once in the compiler output.
10575 if test "$p" = "conftest.$objext"; then
10576 pre_test_object_deps_done=yes
10577 continue
10578 fi
10579
10580 if test "$pre_test_object_deps_done" = no; then
10581 if test -z "$predep_objects_CXX"; then
10582 predep_objects_CXX="$p"
10583 else
10584 predep_objects_CXX="$predep_objects_CXX $p"
10585 fi
10586 else
10587 if test -z "$postdep_objects_CXX"; then
10588 postdep_objects_CXX="$p"
10589 else
10590 postdep_objects_CXX="$postdep_objects_CXX $p"
10591 fi
10592 fi
10593 ;;
10594
10595 *) ;; # Ignore the rest.
10596
10597 esac
10598 done
10599
10600 # Clean up.
10601 rm -f a.out a.exe
10602else
10603 echo "libtool.m4: error: problem compiling CXX test program"
10604fi
10605
10606$rm -f confest.$objext
10607
10608case " $postdeps_CXX " in
10609*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10610esac
10611
10612lt_prog_compiler_wl_CXX=
10613lt_prog_compiler_pic_CXX=
10614lt_prog_compiler_static_CXX=
10615
10616echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10617echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10618
10619 # C++ specific cases for pic, static, wl, etc.
10620 if test "$GXX" = yes; then
10621 lt_prog_compiler_wl_CXX='-Wl,'
10622 lt_prog_compiler_static_CXX='-static'
10623
10624 case $host_os in
10625 aix*)
10626 # All AIX code is PIC.
10627 if test "$host_cpu" = ia64; then
10628 # AIX 5 now supports IA64 processor
10629 lt_prog_compiler_static_CXX='-Bstatic'
10630 fi
10631 ;;
10632 amigaos*)
10633 # FIXME: we need at least 68020 code to build shared libraries, but
10634 # adding the `-m68020' flag to GCC prevents building anything better,
10635 # like `-m68040'.
10636 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10637 ;;
10638 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10639 # PIC is the default for these OSes.
10640 ;;
10641 mingw* | os2* | pw32*)
10642 # This hack is so that the source file can tell whether it is being
10643 # built for inclusion in a dll (and should export symbols for example).
10644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10645 ;;
10646 darwin* | rhapsody*)
10647 # PIC is the default on this platform
10648 # Common symbols not allowed in MH_DYLIB files
10649 lt_prog_compiler_pic_CXX='-fno-common'
10650 ;;
10651 *djgpp*)
10652 # DJGPP does not support shared libraries at all
10653 lt_prog_compiler_pic_CXX=
10654 ;;
10655 sysv4*MP*)
10656 if test -d /usr/nec; then
10657 lt_prog_compiler_pic_CXX=-Kconform_pic
10658 fi
10659 ;;
10660 hpux*)
10661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10662 # not for PA HP-UX.
10663 case "$host_cpu" in
10664 hppa*64*|ia64*)
10665 ;;
10666 *)
10667 lt_prog_compiler_pic_CXX='-fPIC'
10668 ;;
10669 esac
10670 ;;
10671 *)
10672 lt_prog_compiler_pic_CXX='-fPIC'
10673 ;;
10674 esac
10675 else
10676 case $host_os in
10677 aix4* | aix5*)
10678 # All AIX code is PIC.
10679 if test "$host_cpu" = ia64; then
10680 # AIX 5 now supports IA64 processor
10681 lt_prog_compiler_static_CXX='-Bstatic'
10682 else
10683 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10684 fi
10685 ;;
10686 chorus*)
10687 case $cc_basename in
10688 cxch68)
10689 # Green Hills C++ Compiler
10690 # _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"
10691 ;;
10692 esac
10693 ;;
10694 dgux*)
10695 case $cc_basename in
10696 ec++)
10697 lt_prog_compiler_pic_CXX='-KPIC'
10698 ;;
10699 ghcx)
10700 # Green Hills C++ Compiler
10701 lt_prog_compiler_pic_CXX='-pic'
10702 ;;
10703 *)
10704 ;;
10705 esac
10706 ;;
10707 freebsd*)
10708 # FreeBSD uses GNU C++
10709 ;;
10710 hpux9* | hpux10* | hpux11*)
10711 case $cc_basename in
10712 CC)
10713 lt_prog_compiler_wl_CXX='-Wl,'
10714 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10715 if test "$host_cpu" != ia64; then
10716 lt_prog_compiler_pic_CXX='+Z'
10717 fi
10718 ;;
10719 aCC)
10720 lt_prog_compiler_wl_CXX='-Wl,'
10721 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10722 case "$host_cpu" in
10723 hppa*64*|ia64*)
10724 # +Z the default
10725 ;;
10726 *)
10727 lt_prog_compiler_pic_CXX='+Z'
10728 ;;
10729 esac
10730 ;;
10731 *)
10732 ;;
10733 esac
10734 ;;
10735 irix5* | irix6* | nonstopux*)
10736 case $cc_basename in
10737 CC)
10738 lt_prog_compiler_wl_CXX='-Wl,'
10739 lt_prog_compiler_static_CXX='-non_shared'
10740 # CC pic flag -KPIC is the default.
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 linux*)
10747 case $cc_basename in
10748 KCC)
10749 # KAI C++ Compiler
10750 lt_prog_compiler_wl_CXX='--backend -Wl,'
10751 lt_prog_compiler_pic_CXX='-fPIC'
10752 ;;
10753 icpc)
10754 # Intel C++
10755 lt_prog_compiler_wl_CXX='-Wl,'
10756 lt_prog_compiler_pic_CXX='-KPIC'
10757 lt_prog_compiler_static_CXX='-static'
10758 ;;
10759 cxx)
10760 # Compaq C++
10761 # Make sure the PIC flag is empty. It appears that all Alpha
10762 # Linux and Compaq Tru64 Unix objects are PIC.
10763 lt_prog_compiler_pic_CXX=
10764 lt_prog_compiler_static_CXX='-non_shared'
10765 ;;
10766 *)
10767 ;;
10768 esac
10769 ;;
10770 lynxos*)
10771 ;;
10772 m88k*)
10773 ;;
10774 mvs*)
10775 case $cc_basename in
10776 cxx)
10777 lt_prog_compiler_pic_CXX='-W c,exportall'
10778 ;;
10779 *)
10780 ;;
10781 esac
10782 ;;
10783 netbsd*)
10784 ;;
10785 osf3* | osf4* | osf5*)
10786 case $cc_basename in
10787 KCC)
10788 lt_prog_compiler_wl_CXX='--backend -Wl,'
10789 ;;
10790 RCC)
10791 # Rational C++ 2.4.1
10792 lt_prog_compiler_pic_CXX='-pic'
10793 ;;
10794 cxx)
10795 # Digital/Compaq C++
10796 lt_prog_compiler_wl_CXX='-Wl,'
10797 # Make sure the PIC flag is empty. It appears that all Alpha
10798 # Linux and Compaq Tru64 Unix objects are PIC.
10799 lt_prog_compiler_pic_CXX=
10800 lt_prog_compiler_static_CXX='-non_shared'
10801 ;;
10802 *)
10803 ;;
10804 esac
10805 ;;
10806 psos*)
10807 ;;
10808 sco*)
10809 case $cc_basename in
10810 CC)
10811 lt_prog_compiler_pic_CXX='-fPIC'
10812 ;;
10813 *)
10814 ;;
10815 esac
10816 ;;
10817 solaris*)
10818 case $cc_basename in
10819 CC)
10820 # Sun C++ 4.2, 5.x and Centerline C++
10821 lt_prog_compiler_pic_CXX='-KPIC'
10822 lt_prog_compiler_static_CXX='-Bstatic'
10823 lt_prog_compiler_wl_CXX='-Qoption ld '
10824 ;;
10825 gcx)
10826 # Green Hills C++ Compiler
10827 lt_prog_compiler_pic_CXX='-PIC'
10828 ;;
10829 *)
10830 ;;
10831 esac
10832 ;;
10833 sunos4*)
10834 case $cc_basename in
10835 CC)
10836 # Sun C++ 4.x
10837 lt_prog_compiler_pic_CXX='-pic'
10838 lt_prog_compiler_static_CXX='-Bstatic'
10839 ;;
10840 lcc)
10841 # Lucid
10842 lt_prog_compiler_pic_CXX='-pic'
10843 ;;
10844 *)
10845 ;;
10846 esac
10847 ;;
10848 tandem*)
10849 case $cc_basename in
10850 NCC)
10851 # NonStop-UX NCC 3.20
10852 lt_prog_compiler_pic_CXX='-KPIC'
10853 ;;
10854 *)
10855 ;;
10856 esac
10857 ;;
10858 unixware*)
10859 ;;
10860 vxworks*)
10861 ;;
10862 *)
10863 lt_prog_compiler_can_build_shared_CXX=no
10864 ;;
10865 esac
10866 fi
10867
10868echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10869echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10870
10871#
10872# Check to make sure the PIC flag actually works.
10873#
10874if test -n "$lt_prog_compiler_pic_CXX"; then
10875 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10876echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10877if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 lt_prog_compiler_pic_works_CXX=no
10881 ac_outfile=conftest.$ac_objext
10882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10884 # Insert the option either (1) after the last *FLAGS variable, or
10885 # (2) before a word containing "conftest.", or (3) at the end.
10886 # Note that $ac_compile itself does not contain backslashes and begins
10887 # with a dollar sign (not a hyphen), so the echo should work correctly.
10888 # The option is referenced via a variable to avoid confusing sed.
10889 lt_compile=`echo "$ac_compile" | $SED \
10890 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000010893 (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010894 (eval "$lt_compile" 2>conftest.err)
10895 ac_status=$?
10896 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000010897 echo "$as_me:10897: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010898 if (exit $ac_status) && test -s "$ac_outfile"; then
10899 # The compiler can only warn and ignore the option if not recognized
10900 # So say no if there are warnings
10901 if test ! -s conftest.err; then
10902 lt_prog_compiler_pic_works_CXX=yes
10903 fi
10904 fi
10905 $rm conftest*
10906
10907fi
10908echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10909echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10910
10911if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10912 case $lt_prog_compiler_pic_CXX in
10913 "" | " "*) ;;
10914 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10915 esac
10916else
10917 lt_prog_compiler_pic_CXX=
10918 lt_prog_compiler_can_build_shared_CXX=no
10919fi
10920
10921fi
10922case "$host_os" in
10923 # For platforms which do not support PIC, -DPIC is meaningless:
10924 *djgpp*)
10925 lt_prog_compiler_pic_CXX=
10926 ;;
10927 *)
10928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10929 ;;
10930esac
10931
10932echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10933echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10934if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 lt_cv_prog_compiler_c_o_CXX=no
10938 $rm -r conftest 2>/dev/null
10939 mkdir conftest
10940 cd conftest
10941 mkdir out
10942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10943
10944 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10945 # that will create temporary files in the current directory regardless of
10946 # the output directory. Thus, making CWD read-only will cause this test
10947 # to fail, enabling locking or at least warning the user not to do parallel
10948 # builds.
10949 chmod -w .
10950
10951 lt_compiler_flag="-o out/conftest2.$ac_objext"
10952 # Insert the option either (1) after the last *FLAGS variable, or
10953 # (2) before a word containing "conftest.", or (3) at the end.
10954 # Note that $ac_compile itself does not contain backslashes and begins
10955 # with a dollar sign (not a hyphen), so the echo should work correctly.
10956 lt_compile=`echo "$ac_compile" | $SED \
10957 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10959 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000010960 (eval echo "\"\$as_me:10960: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010961 (eval "$lt_compile" 2>out/conftest.err)
10962 ac_status=$?
10963 cat out/conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000010964 echo "$as_me:10964: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10966 then
10967 # The compiler can only warn and ignore the option if not recognized
10968 # So say no if there are warnings
10969 if test ! -s out/conftest.err; then
10970 lt_cv_prog_compiler_c_o_CXX=yes
10971 fi
10972 fi
10973 chmod u+w .
10974 $rm conftest* out/*
10975 rmdir out
10976 cd ..
10977 rmdir conftest
10978 $rm conftest*
10979
10980fi
10981echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10982echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10983
10984
10985hard_links="nottested"
10986if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10987 # do not overwrite the value of need_locks provided by the user
10988 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10989echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10990 hard_links=yes
10991 $rm conftest*
10992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10993 touch conftest.a
10994 ln conftest.a conftest.b 2>&5 || hard_links=no
10995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10996 echo "$as_me:$LINENO: result: $hard_links" >&5
10997echo "${ECHO_T}$hard_links" >&6
10998 if test "$hard_links" = no; then
10999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11000echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11001 need_locks=warn
11002 fi
11003else
11004 need_locks=no
11005fi
11006
11007echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11008echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11009
11010 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11011 case $host_os in
11012 aix4* | aix5*)
11013 # If we're using GNU nm, then we don't want the "-C" option.
11014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11015 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11016 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'
11017 else
11018 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'
11019 fi
11020 ;;
11021 pw32*)
11022 export_symbols_cmds_CXX="$ltdll_cmds"
11023 ;;
11024 cygwin* | mingw*)
11025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11026 ;;
11027 *)
11028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11029 ;;
11030 esac
11031
11032echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11033echo "${ECHO_T}$ld_shlibs_CXX" >&6
11034test "$ld_shlibs_CXX" = no && can_build_shared=no
11035
11036variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11037if test "$GCC" = yes; then
11038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11039fi
11040
11041#
11042# Do we need to explicitly link libc?
11043#
11044case "x$archive_cmds_need_lc_CXX" in
11045x|xyes)
11046 # Assume -lc should be added
11047 archive_cmds_need_lc_CXX=yes
11048
11049 if test "$enable_shared" = yes && test "$GCC" = yes; then
11050 case $archive_cmds_CXX in
11051 *'~'*)
11052 # FIXME: we may have to deal with multi-command sequences.
11053 ;;
11054 '$CC '*)
11055 # Test whether the compiler implicitly links with -lc since on some
11056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11057 # to ld, don't add -lc before -lgcc.
11058 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11059echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11060 $rm conftest*
11061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11062
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } 2>conftest.err; then
11068 soname=conftest
11069 lib=conftest
11070 libobjs=conftest.$ac_objext
11071 deplibs=
11072 wl=$lt_prog_compiler_wl_CXX
11073 compiler_flags=-v
11074 linker_flags=-v
11075 verstring=
11076 output_objdir=.
11077 libname=conftest
11078 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11079 allow_undefined_flag_CXX=
11080 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11081 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }
11085 then
11086 archive_cmds_need_lc_CXX=no
11087 else
11088 archive_cmds_need_lc_CXX=yes
11089 fi
11090 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11091 else
11092 cat conftest.err 1>&5
11093 fi
11094 $rm conftest*
11095 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11096echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11097 ;;
11098 esac
11099 fi
11100 ;;
11101esac
11102
11103echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11104echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11105hardcode_action_CXX=
11106if test -n "$hardcode_libdir_flag_spec_CXX" || \
11107 test -n "$runpath_var CXX" || \
11108 test "X$hardcode_automatic_CXX"="Xyes" ; then
11109
11110 # We can hardcode non-existant directories.
11111 if test "$hardcode_direct_CXX" != no &&
11112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113 # have to relink, otherwise we might link with an installed library
11114 # when we should be linking with a yet-to-be-installed one
11115 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11116 test "$hardcode_minus_L_CXX" != no; then
11117 # Linking always hardcodes the temporary library directory.
11118 hardcode_action_CXX=relink
11119 else
11120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121 hardcode_action_CXX=immediate
11122 fi
11123else
11124 # We cannot hardcode anything, or else we can only hardcode existing
11125 # directories.
11126 hardcode_action_CXX=unsupported
11127fi
11128echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11129echo "${ECHO_T}$hardcode_action_CXX" >&6
11130
11131if test "$hardcode_action_CXX" = relink; then
11132 # Fast installation is not supported
11133 enable_fast_install=no
11134elif test "$shlibpath_overrides_runpath" = yes ||
11135 test "$enable_shared" = no; then
11136 # Fast installation is not necessary
11137 enable_fast_install=needless
11138fi
11139
11140striplib=
11141old_striplib=
11142echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11143echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11144if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11147 echo "$as_me:$LINENO: result: yes" >&5
11148echo "${ECHO_T}yes" >&6
11149else
11150# FIXME - insert some real tests, host_os isn't really good enough
11151 case $host_os in
11152 darwin*)
11153 if test -n "$STRIP" ; then
11154 striplib="$STRIP -x"
11155 echo "$as_me:$LINENO: result: yes" >&5
11156echo "${ECHO_T}yes" >&6
11157 else
11158 echo "$as_me:$LINENO: result: no" >&5
11159echo "${ECHO_T}no" >&6
11160fi
11161 ;;
11162 *)
11163 echo "$as_me:$LINENO: result: no" >&5
11164echo "${ECHO_T}no" >&6
11165 ;;
11166 esac
11167fi
11168
11169echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11170echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11171library_names_spec=
11172libname_spec='lib$name'
11173soname_spec=
11174shrext=".so"
11175postinstall_cmds=
11176postuninstall_cmds=
11177finish_cmds=
11178finish_eval=
11179shlibpath_var=
11180shlibpath_overrides_runpath=unknown
11181version_type=none
11182dynamic_linker="$host_os ld.so"
11183sys_lib_dlsearch_path_spec="/lib /usr/lib"
11184if test "$GCC" = yes; then
11185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11187 # if the path contains ";" then we assume it to be the separator
11188 # otherwise default to the standard path separator (i.e. ":") - it is
11189 # assumed that no part of a normal pathname contains ";" but that should
11190 # okay in the real world where ";" in dirpaths is itself problematic.
11191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11192 else
11193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11194 fi
11195else
11196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11197fi
11198need_lib_prefix=unknown
11199hardcode_into_libs=no
11200
11201# when you set need_version to no, make sure it does not cause -set_version
11202# flags to be left without arguments
11203need_version=unknown
11204
11205case $host_os in
11206aix3*)
11207 version_type=linux
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11209 shlibpath_var=LIBPATH
11210
11211 # AIX 3 has no versioning support, so we append a major version to the name.
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 ;;
11214
11215aix4* | aix5*)
11216 version_type=linux
11217 need_lib_prefix=no
11218 need_version=no
11219 hardcode_into_libs=yes
11220 if test "$host_cpu" = ia64; then
11221 # AIX 5 supports IA64
11222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 else
11225 # With GCC up to 2.95.x, collect2 would create an import file
11226 # for dependence libraries. The import file would start with
11227 # the line `#! .'. This would cause the generated library to
11228 # depend on `.', always an invalid library. This was fixed in
11229 # development snapshots of GCC prior to 3.0.
11230 case $host_os in
11231 aix4 | aix4.[01] | aix4.[01].*)
11232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11233 echo ' yes '
11234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11235 :
11236 else
11237 can_build_shared=no
11238 fi
11239 ;;
11240 esac
11241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11242 # soname into executable. Probably we can add versioning support to
11243 # collect2, so additional links can be useful in future.
11244 if test "$aix_use_runtimelinking" = yes; then
11245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11246 # instead of lib<name>.a to let people know that these are not
11247 # typical AIX shared libraries.
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 else
11250 # We preserve .a as extension for shared libraries through AIX4.2
11251 # and later when we are not doing run time linking.
11252 library_names_spec='${libname}${release}.a $libname.a'
11253 soname_spec='${libname}${release}${shared_ext}$major'
11254 fi
11255 shlibpath_var=LIBPATH
11256 fi
11257 ;;
11258
11259amigaos*)
11260 library_names_spec='$libname.ixlibrary $libname.a'
11261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11262 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'
11263 ;;
11264
11265beos*)
11266 library_names_spec='${libname}${shared_ext}'
11267 dynamic_linker="$host_os ld.so"
11268 shlibpath_var=LIBRARY_PATH
11269 ;;
11270
11271bsdi4*)
11272 version_type=linux
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11280 # the default ld.so.conf also contains /usr/contrib/lib and
11281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11282 # libtool to hard-code these into programs
11283 ;;
11284
11285cygwin* | mingw* | pw32*)
11286 version_type=windows
11287 shrext=".dll"
11288 need_version=no
11289 need_lib_prefix=no
11290
11291 case $GCC,$host_os in
11292 yes,cygwin* | yes,mingw* | yes,pw32*)
11293 library_names_spec='$libname.dll.a'
11294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11295 postinstall_cmds='base_file=`basename \${file}`~
11296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11297 dldir=$destdir/`dirname \$dlpath`~
11298 test -d \$dldir || mkdir -p \$dldir~
11299 $install_prog $dir/$dlname \$dldir/$dlname'
11300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11301 dlpath=$dir/\$dldll~
11302 $rm \$dlpath'
11303 shlibpath_overrides_runpath=yes
11304
11305 case $host_os in
11306 cygwin*)
11307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11309 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11310 ;;
11311 mingw*)
11312 # MinGW DLLs use traditional 'lib' prefix
11313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11314 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11315 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11316 # It is most probably a Windows format PATH printed by
11317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11318 # path with ; separators, and with drive letters. We can handle the
11319 # drive letters (cygwin fileutils understands them), so leave them,
11320 # especially as we might pass files found there to a mingw objdump,
11321 # which wouldn't understand a cygwinified path. Ahh.
11322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11323 else
11324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11325 fi
11326 ;;
11327 pw32*)
11328 # pw32 DLLs use 'pw' prefix rather than 'lib'
11329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11330 ;;
11331 esac
11332 ;;
11333
11334 *)
11335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11336 ;;
11337 esac
11338 dynamic_linker='Win32 ld.exe'
11339 # FIXME: first we should search . and the directory the executable is in
11340 shlibpath_var=PATH
11341 ;;
11342
11343darwin* | rhapsody*)
11344 dynamic_linker="$host_os dyld"
11345 version_type=darwin
11346 need_lib_prefix=no
11347 need_version=no
11348 # FIXME: Relying on posixy $() will cause problems for
11349 # cross-compilation, but unfortunately the echo tests do not
11350 # yet detect zsh echo's removal of \ escapes.
11351 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11352 soname_spec='${libname}${release}${major}$shared_ext'
11353 shlibpath_overrides_runpath=yes
11354 shlibpath_var=DYLD_LIBRARY_PATH
11355 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11356 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11357 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11358 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"`
11359 fi
11360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11361 ;;
11362
11363dgux*)
11364 version_type=linux
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 ;;
11371
11372freebsd1*)
11373 dynamic_linker=no
11374 ;;
11375
11376freebsd*)
11377 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11378 version_type=freebsd-$objformat
11379 case $version_type in
11380 freebsd-elf*)
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11382 need_version=no
11383 need_lib_prefix=no
11384 ;;
11385 freebsd-*)
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11387 need_version=yes
11388 ;;
11389 esac
11390 shlibpath_var=LD_LIBRARY_PATH
11391 case $host_os in
11392 freebsd2*)
11393 shlibpath_overrides_runpath=yes
11394 ;;
11395 freebsd3.01* | freebsdelf3.01*)
11396 shlibpath_overrides_runpath=yes
11397 hardcode_into_libs=yes
11398 ;;
11399 *) # from 3.2 on
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11402 ;;
11403 esac
11404 ;;
11405
11406gnu*)
11407 version_type=linux
11408 need_lib_prefix=no
11409 need_version=no
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 hardcode_into_libs=yes
11414 ;;
11415
11416hpux9* | hpux10* | hpux11*)
11417 # Give a soname corresponding to the major version so that dld.sl refuses to
11418 # link against other versions.
11419 version_type=sunos
11420 need_lib_prefix=no
11421 need_version=no
11422 case "$host_cpu" in
11423 ia64*)
11424 shrext='.so'
11425 hardcode_into_libs=yes
11426 dynamic_linker="$host_os dld.so"
11427 shlibpath_var=LD_LIBRARY_PATH
11428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 if test "X$HPUX_IA64_MODE" = X32; then
11432 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11433 else
11434 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11435 fi
11436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11437 ;;
11438 hppa*64*)
11439 shrext='.sl'
11440 hardcode_into_libs=yes
11441 dynamic_linker="$host_os dld.sl"
11442 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445 soname_spec='${libname}${release}${shared_ext}$major'
11446 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11448 ;;
11449 *)
11450 shrext='.sl'
11451 dynamic_linker="$host_os dld.sl"
11452 shlibpath_var=SHLIB_PATH
11453 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 ;;
11457 esac
11458 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11459 postinstall_cmds='chmod 555 $lib'
11460 ;;
11461
11462irix5* | irix6* | nonstopux*)
11463 case $host_os in
11464 nonstopux*) version_type=nonstopux ;;
11465 *)
11466 if test "$lt_cv_prog_gnu_ld" = yes; then
11467 version_type=linux
11468 else
11469 version_type=irix
11470 fi ;;
11471 esac
11472 need_lib_prefix=no
11473 need_version=no
11474 soname_spec='${libname}${release}${shared_ext}$major'
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11476 case $host_os in
11477 irix5* | nonstopux*)
11478 libsuff= shlibsuff=
11479 ;;
11480 *)
11481 case $LD in # libtool.m4 will add one of these switches to LD
11482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11483 libsuff= shlibsuff= libmagic=32-bit;;
11484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11485 libsuff=32 shlibsuff=N32 libmagic=N32;;
11486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11488 *) libsuff= shlibsuff= libmagic=never-match;;
11489 esac
11490 ;;
11491 esac
11492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11493 shlibpath_overrides_runpath=no
11494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11496 hardcode_into_libs=yes
11497 ;;
11498
11499# No shared lib support for Linux oldld, aout, or coff.
11500linux*oldld* | linux*aout* | linux*coff*)
11501 dynamic_linker=no
11502 ;;
11503
11504# This must be Linux ELF.
11505linux*)
11506 version_type=linux
11507 need_lib_prefix=no
11508 need_version=no
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 shlibpath_overrides_runpath=no
11514 # This implies no fast_install, which is unacceptable.
11515 # Some rework will be needed to allow for fast_install
11516 # before this can be enabled.
11517 hardcode_into_libs=yes
11518
11519 # We used to test for /lib/ld.so.1 and disable shared libraries on
11520 # powerpc, because MkLinux only supported shared libraries with the
11521 # GNU dynamic linker. Since this was broken with cross compilers,
11522 # most powerpc-linux boxes support dynamic linking these days and
11523 # people can always --disable-shared, the test was removed, and we
11524 # assume the GNU/Linux dynamic linker is in use.
11525 dynamic_linker='GNU/Linux ld.so'
11526 ;;
11527
11528netbsd*)
11529 version_type=sunos
11530 need_lib_prefix=no
11531 need_version=no
11532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11535 dynamic_linker='NetBSD (a.out) ld.so'
11536 else
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 dynamic_linker='NetBSD ld.elf_so'
11540 fi
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=yes
11543 hardcode_into_libs=yes
11544 ;;
11545
11546newsos6)
11547 version_type=linux
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes
11551 ;;
11552
11553nto-qnx)
11554 version_type=linux
11555 need_lib_prefix=no
11556 need_version=no
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558 soname_spec='${libname}${release}${shared_ext}$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 ;;
11562
11563openbsd*)
11564 version_type=sunos
11565 need_lib_prefix=no
11566 need_version=no
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11571 case $host_os in
11572 openbsd2.[89] | openbsd2.[89].*)
11573 shlibpath_overrides_runpath=no
11574 ;;
11575 *)
11576 shlibpath_overrides_runpath=yes
11577 ;;
11578 esac
11579 else
11580 shlibpath_overrides_runpath=yes
11581 fi
11582 ;;
11583
11584os2*)
11585 libname_spec='$name'
11586 shrext=".dll"
11587 need_lib_prefix=no
11588 library_names_spec='$libname${shared_ext} $libname.a'
11589 dynamic_linker='OS/2 ld.exe'
11590 shlibpath_var=LIBPATH
11591 ;;
11592
11593osf3* | osf4* | osf5*)
11594 version_type=osf
11595 need_lib_prefix=no
11596 need_version=no
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11602 ;;
11603
11604sco3.2v5*)
11605 version_type=osf
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 ;;
11610
11611solaris*)
11612 version_type=linux
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 # ldd complains unless libraries are executable
11621 postinstall_cmds='chmod +x $lib'
11622 ;;
11623
11624sunos4*)
11625 version_type=sunos
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 if test "$with_gnu_ld" = yes; then
11631 need_lib_prefix=no
11632 fi
11633 need_version=yes
11634 ;;
11635
11636sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11637 version_type=linux
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 case $host_vendor in
11642 sni)
11643 shlibpath_overrides_runpath=no
11644 need_lib_prefix=no
11645 export_dynamic_flag_spec='${wl}-Blargedynsym'
11646 runpath_var=LD_RUN_PATH
11647 ;;
11648 siemens)
11649 need_lib_prefix=no
11650 ;;
11651 motorola)
11652 need_lib_prefix=no
11653 need_version=no
11654 shlibpath_overrides_runpath=no
11655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11656 ;;
11657 esac
11658 ;;
11659
11660sysv4*MP*)
11661 if test -d /usr/nec ;then
11662 version_type=linux
11663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11664 soname_spec='$libname${shared_ext}.$major'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 fi
11667 ;;
11668
11669uts4*)
11670 version_type=linux
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 ;;
11675
11676*)
11677 dynamic_linker=no
11678 ;;
11679esac
11680echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11681echo "${ECHO_T}$dynamic_linker" >&6
11682test "$dynamic_linker" = no && can_build_shared=no
11683
11684if test "x$enable_dlopen" != xyes; then
11685 enable_dlopen=unknown
11686 enable_dlopen_self=unknown
11687 enable_dlopen_self_static=unknown
11688else
11689 lt_cv_dlopen=no
11690 lt_cv_dlopen_libs=
11691
11692 case $host_os in
11693 beos*)
11694 lt_cv_dlopen="load_add_on"
11695 lt_cv_dlopen_libs=
11696 lt_cv_dlopen_self=yes
11697 ;;
11698
11699 mingw* | pw32*)
11700 lt_cv_dlopen="LoadLibrary"
11701 lt_cv_dlopen_libs=
11702 ;;
11703
11704 cygwin*)
11705 lt_cv_dlopen="dlopen"
11706 lt_cv_dlopen_libs=
11707 ;;
11708
11709 darwin*)
11710 # if libdl is installed we need to link against it
11711 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11712echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11713if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 ac_check_lib_save_LIBS=$LIBS
11717LIBS="-ldl $LIBS"
11718cat >conftest.$ac_ext <<_ACEOF
11719#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011725
11726/* Override any gcc2 internal prototype to avoid an error. */
11727#ifdef __cplusplus
11728extern "C"
11729#endif
11730/* We use char because int might match the return type of a gcc2
11731 builtin and then its argument prototype would still apply. */
11732char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011733int
11734main ()
11735{
11736dlopen ();
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext conftest$ac_exeext
11742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11743 (eval $ac_link) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -s conftest$ac_exeext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11750 ac_status=$?
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_cv_lib_dl_dlopen=yes
11754else
11755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011756sed 's/^/| /' conftest.$ac_ext >&5
11757
John Criswell47fdd832003-07-14 16:52:07 +000011758ac_cv_lib_dl_dlopen=no
11759fi
11760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_check_lib_save_LIBS
11762fi
11763echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11765if test $ac_cv_lib_dl_dlopen = yes; then
11766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11767else
11768
11769 lt_cv_dlopen="dyld"
11770 lt_cv_dlopen_libs=
11771 lt_cv_dlopen_self=yes
11772
11773fi
11774
11775 ;;
11776
11777 *)
11778 echo "$as_me:$LINENO: checking for shl_load" >&5
11779echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11780if test "${ac_cv_func_shl_load+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783 cat >conftest.$ac_ext <<_ACEOF
11784#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011785/* confdefs.h. */
11786_ACEOF
11787cat confdefs.h >>conftest.$ac_ext
11788cat >>conftest.$ac_ext <<_ACEOF
11789/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011790/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011791 which can conflict with char shl_load (); below.
11792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793 <limits.h> exists even on freestanding compilers. */
11794#ifdef __STDC__
11795# include <limits.h>
11796#else
11797# include <assert.h>
11798#endif
John Criswell47fdd832003-07-14 16:52:07 +000011799/* Override any gcc2 internal prototype to avoid an error. */
11800#ifdef __cplusplus
11801extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011802{
John Criswell47fdd832003-07-14 16:52:07 +000011803#endif
11804/* We use char because int might match the return type of a gcc2
11805 builtin and then its argument prototype would still apply. */
11806char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011807/* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810#if defined (__stub_shl_load) || defined (__stub___shl_load)
11811choke me
11812#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011813char (*f) () = shl_load;
11814#endif
11815#ifdef __cplusplus
11816}
John Criswell47fdd832003-07-14 16:52:07 +000011817#endif
11818
John Criswell0c38eaf2003-09-10 15:17:25 +000011819int
11820main ()
11821{
11822return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext conftest$ac_exeext
11828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_func_shl_load=yes
11840else
11841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011842sed 's/^/| /' conftest.$ac_ext >&5
11843
John Criswell47fdd832003-07-14 16:52:07 +000011844ac_cv_func_shl_load=no
11845fi
11846rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11847fi
11848echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11849echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11850if test $ac_cv_func_shl_load = yes; then
11851 lt_cv_dlopen="shl_load"
11852else
11853 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11854echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11855if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 ac_check_lib_save_LIBS=$LIBS
11859LIBS="-ldld $LIBS"
11860cat >conftest.$ac_ext <<_ACEOF
11861#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011862/* confdefs.h. */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011867
11868/* Override any gcc2 internal prototype to avoid an error. */
11869#ifdef __cplusplus
11870extern "C"
11871#endif
11872/* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011875int
11876main ()
11877{
11878shl_load ();
11879 ;
11880 return 0;
11881}
11882_ACEOF
11883rm -f conftest.$ac_objext conftest$ac_exeext
11884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_lib_dld_shl_load=yes
11896else
11897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011898sed 's/^/| /' conftest.$ac_ext >&5
11899
John Criswell47fdd832003-07-14 16:52:07 +000011900ac_cv_lib_dld_shl_load=no
11901fi
11902rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11903LIBS=$ac_check_lib_save_LIBS
11904fi
11905echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11906echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11907if test $ac_cv_lib_dld_shl_load = yes; then
11908 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11909else
11910 echo "$as_me:$LINENO: checking for dlopen" >&5
11911echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11912if test "${ac_cv_func_dlopen+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914else
11915 cat >conftest.$ac_ext <<_ACEOF
11916#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011922/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011923 which can conflict with char dlopen (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11926#ifdef __STDC__
11927# include <limits.h>
11928#else
11929# include <assert.h>
11930#endif
John Criswell47fdd832003-07-14 16:52:07 +000011931/* Override any gcc2 internal prototype to avoid an error. */
11932#ifdef __cplusplus
11933extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011934{
John Criswell47fdd832003-07-14 16:52:07 +000011935#endif
11936/* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined (__stub_dlopen) || defined (__stub___dlopen)
11943choke me
11944#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011945char (*f) () = dlopen;
11946#endif
11947#ifdef __cplusplus
11948}
John Criswell47fdd832003-07-14 16:52:07 +000011949#endif
11950
John Criswell0c38eaf2003-09-10 15:17:25 +000011951int
11952main ()
11953{
11954return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011955 ;
11956 return 0;
11957}
11958_ACEOF
11959rm -f conftest.$ac_objext conftest$ac_exeext
11960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_cv_func_dlopen=yes
11972else
11973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011974sed 's/^/| /' conftest.$ac_ext >&5
11975
John Criswell47fdd832003-07-14 16:52:07 +000011976ac_cv_func_dlopen=no
11977fi
11978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979fi
11980echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11981echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11982if test $ac_cv_func_dlopen = yes; then
11983 lt_cv_dlopen="dlopen"
11984else
11985 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11986echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11987if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 ac_check_lib_save_LIBS=$LIBS
11991LIBS="-ldl $LIBS"
11992cat >conftest.$ac_ext <<_ACEOF
11993#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011994/* confdefs.h. */
11995_ACEOF
11996cat confdefs.h >>conftest.$ac_ext
11997cat >>conftest.$ac_ext <<_ACEOF
11998/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011999
12000/* Override any gcc2 internal prototype to avoid an error. */
12001#ifdef __cplusplus
12002extern "C"
12003#endif
12004/* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012007int
12008main ()
12009{
12010dlopen ();
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017 (eval $ac_link) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -s conftest$ac_exeext'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_cv_lib_dl_dlopen=yes
12028else
12029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012030sed 's/^/| /' conftest.$ac_ext >&5
12031
John Criswell47fdd832003-07-14 16:52:07 +000012032ac_cv_lib_dl_dlopen=no
12033fi
12034rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12035LIBS=$ac_check_lib_save_LIBS
12036fi
12037echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12038echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12039if test $ac_cv_lib_dl_dlopen = yes; then
12040 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12041else
12042 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12043echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12044if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 ac_check_lib_save_LIBS=$LIBS
12048LIBS="-lsvld $LIBS"
12049cat >conftest.$ac_ext <<_ACEOF
12050#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012056
12057/* Override any gcc2 internal prototype to avoid an error. */
12058#ifdef __cplusplus
12059extern "C"
12060#endif
12061/* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12063char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012064int
12065main ()
12066{
12067dlopen ();
12068 ;
12069 return 0;
12070}
12071_ACEOF
12072rm -f conftest.$ac_objext conftest$ac_exeext
12073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12074 (eval $ac_link) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -s conftest$ac_exeext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12081 ac_status=$?
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_lib_svld_dlopen=yes
12085else
12086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012087sed 's/^/| /' conftest.$ac_ext >&5
12088
John Criswell47fdd832003-07-14 16:52:07 +000012089ac_cv_lib_svld_dlopen=no
12090fi
12091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12092LIBS=$ac_check_lib_save_LIBS
12093fi
12094echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12095echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12096if test $ac_cv_lib_svld_dlopen = yes; then
12097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12098else
12099 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12100echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12101if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 ac_check_lib_save_LIBS=$LIBS
12105LIBS="-ldld $LIBS"
12106cat >conftest.$ac_ext <<_ACEOF
12107#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012113
12114/* Override any gcc2 internal prototype to avoid an error. */
12115#ifdef __cplusplus
12116extern "C"
12117#endif
12118/* We use char because int might match the return type of a gcc2
12119 builtin and then its argument prototype would still apply. */
12120char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012121int
12122main ()
12123{
12124dld_link ();
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext conftest$ac_exeext
12130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 ac_cv_lib_dld_dld_link=yes
12142else
12143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012144sed 's/^/| /' conftest.$ac_ext >&5
12145
John Criswell47fdd832003-07-14 16:52:07 +000012146ac_cv_lib_dld_dld_link=no
12147fi
12148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149LIBS=$ac_check_lib_save_LIBS
12150fi
12151echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12152echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12153if test $ac_cv_lib_dld_dld_link = yes; then
12154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12155fi
12156
12157
12158fi
12159
12160
12161fi
12162
12163
12164fi
12165
12166
12167fi
12168
12169
12170fi
12171
12172 ;;
12173 esac
12174
12175 if test "x$lt_cv_dlopen" != xno; then
12176 enable_dlopen=yes
12177 else
12178 enable_dlopen=no
12179 fi
12180
12181 case $lt_cv_dlopen in
12182 dlopen)
12183 save_CPPFLAGS="$CPPFLAGS"
12184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12185
12186 save_LDFLAGS="$LDFLAGS"
12187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12188
12189 save_LIBS="$LIBS"
12190 LIBS="$lt_cv_dlopen_libs $LIBS"
12191
12192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12194if test "${lt_cv_dlopen_self+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 if test "$cross_compiling" = yes; then :
12198 lt_cv_dlopen_self=cross
12199else
12200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12201 lt_status=$lt_dlunknown
12202 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +000012203#line 12203 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012204#include "confdefs.h"
12205
12206#if HAVE_DLFCN_H
12207#include <dlfcn.h>
12208#endif
12209
12210#include <stdio.h>
12211
12212#ifdef RTLD_GLOBAL
12213# define LT_DLGLOBAL RTLD_GLOBAL
12214#else
12215# ifdef DL_GLOBAL
12216# define LT_DLGLOBAL DL_GLOBAL
12217# else
12218# define LT_DLGLOBAL 0
12219# endif
12220#endif
12221
12222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12223 find out it does not work in some platform. */
12224#ifndef LT_DLLAZY_OR_NOW
12225# ifdef RTLD_LAZY
12226# define LT_DLLAZY_OR_NOW RTLD_LAZY
12227# else
12228# ifdef DL_LAZY
12229# define LT_DLLAZY_OR_NOW DL_LAZY
12230# else
12231# ifdef RTLD_NOW
12232# define LT_DLLAZY_OR_NOW RTLD_NOW
12233# else
12234# ifdef DL_NOW
12235# define LT_DLLAZY_OR_NOW DL_NOW
12236# else
12237# define LT_DLLAZY_OR_NOW 0
12238# endif
12239# endif
12240# endif
12241# endif
12242#endif
12243
12244#ifdef __cplusplus
12245extern "C" void exit (int);
12246#endif
12247
12248void fnord() { int i=42;}
12249int main ()
12250{
12251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12252 int status = $lt_dlunknown;
12253
12254 if (self)
12255 {
12256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12258 /* dlclose (self); */
12259 }
12260
12261 exit (status);
12262}
12263EOF
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12269 (./conftest; exit; ) 2>/dev/null
12270 lt_status=$?
12271 case x$lt_status in
12272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12275 esac
12276 else :
12277 # compilation failed
12278 lt_cv_dlopen_self=no
12279 fi
12280fi
12281rm -fr conftest*
12282
12283
12284fi
12285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12286echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12287
12288 if test "x$lt_cv_dlopen_self" = xyes; then
12289 LDFLAGS="$LDFLAGS $link_static_flag"
12290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12292if test "${lt_cv_dlopen_self_static+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295 if test "$cross_compiling" = yes; then :
12296 lt_cv_dlopen_self_static=cross
12297else
12298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12299 lt_status=$lt_dlunknown
12300 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +000012301#line 12301 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012302#include "confdefs.h"
12303
12304#if HAVE_DLFCN_H
12305#include <dlfcn.h>
12306#endif
12307
12308#include <stdio.h>
12309
12310#ifdef RTLD_GLOBAL
12311# define LT_DLGLOBAL RTLD_GLOBAL
12312#else
12313# ifdef DL_GLOBAL
12314# define LT_DLGLOBAL DL_GLOBAL
12315# else
12316# define LT_DLGLOBAL 0
12317# endif
12318#endif
12319
12320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12321 find out it does not work in some platform. */
12322#ifndef LT_DLLAZY_OR_NOW
12323# ifdef RTLD_LAZY
12324# define LT_DLLAZY_OR_NOW RTLD_LAZY
12325# else
12326# ifdef DL_LAZY
12327# define LT_DLLAZY_OR_NOW DL_LAZY
12328# else
12329# ifdef RTLD_NOW
12330# define LT_DLLAZY_OR_NOW RTLD_NOW
12331# else
12332# ifdef DL_NOW
12333# define LT_DLLAZY_OR_NOW DL_NOW
12334# else
12335# define LT_DLLAZY_OR_NOW 0
12336# endif
12337# endif
12338# endif
12339# endif
12340#endif
12341
12342#ifdef __cplusplus
12343extern "C" void exit (int);
12344#endif
12345
12346void fnord() { int i=42;}
12347int main ()
12348{
12349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12350 int status = $lt_dlunknown;
12351
12352 if (self)
12353 {
12354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12356 /* dlclose (self); */
12357 }
12358
12359 exit (status);
12360}
12361EOF
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12364 ac_status=$?
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12367 (./conftest; exit; ) 2>/dev/null
12368 lt_status=$?
12369 case x$lt_status in
12370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12373 esac
12374 else :
12375 # compilation failed
12376 lt_cv_dlopen_self_static=no
12377 fi
12378fi
12379rm -fr conftest*
12380
12381
12382fi
12383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12385 fi
12386
12387 CPPFLAGS="$save_CPPFLAGS"
12388 LDFLAGS="$save_LDFLAGS"
12389 LIBS="$save_LIBS"
12390 ;;
12391 esac
12392
12393 case $lt_cv_dlopen_self in
12394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12395 *) enable_dlopen_self=unknown ;;
12396 esac
12397
12398 case $lt_cv_dlopen_self_static in
12399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12400 *) enable_dlopen_self_static=unknown ;;
12401 esac
12402fi
12403
12404
12405# The else clause should only fire when bootstrapping the
12406# libtool distribution, otherwise you forgot to ship ltmain.sh
12407# with your package, and you will get complaints that there are
12408# no rules to generate ltmain.sh.
12409if test -f "$ltmain"; then
12410 # See if we are running on zsh, and set the options which allow our commands through
12411 # without removal of \ escapes.
12412 if test -n "${ZSH_VERSION+set}" ; then
12413 setopt NO_GLOB_SUBST
12414 fi
12415 # Now quote all the things that may contain metacharacters while being
12416 # careful not to overquote the AC_SUBSTed values. We take copies of the
12417 # variables and quote the copies for generation of the libtool script.
12418 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12421 deplibs_check_method reload_flag reload_cmds need_locks \
12422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12423 lt_cv_sys_global_symbol_to_c_name_address \
12424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12425 old_postinstall_cmds old_postuninstall_cmds \
12426 compiler_CXX \
12427 CC_CXX \
12428 LD_CXX \
12429 lt_prog_compiler_wl_CXX \
12430 lt_prog_compiler_pic_CXX \
12431 lt_prog_compiler_static_CXX \
12432 lt_prog_compiler_no_builtin_flag_CXX \
12433 export_dynamic_flag_spec_CXX \
12434 thread_safe_flag_spec_CXX \
12435 whole_archive_flag_spec_CXX \
12436 enable_shared_with_static_runtimes_CXX \
12437 old_archive_cmds_CXX \
12438 old_archive_from_new_cmds_CXX \
12439 predep_objects_CXX \
12440 postdep_objects_CXX \
12441 predeps_CXX \
12442 postdeps_CXX \
12443 compiler_lib_search_path_CXX \
12444 archive_cmds_CXX \
12445 archive_expsym_cmds_CXX \
12446 postinstall_cmds_CXX \
12447 postuninstall_cmds_CXX \
12448 old_archive_from_expsyms_cmds_CXX \
12449 allow_undefined_flag_CXX \
12450 no_undefined_flag_CXX \
12451 export_symbols_cmds_CXX \
12452 hardcode_libdir_flag_spec_CXX \
12453 hardcode_libdir_flag_spec_ld_CXX \
12454 hardcode_libdir_separator_CXX \
12455 hardcode_automatic_CXX \
12456 module_cmds_CXX \
12457 module_expsym_cmds_CXX \
12458 lt_cv_prog_compiler_c_o_CXX \
12459 exclude_expsyms_CXX \
12460 include_expsyms_CXX; do
12461
12462 case $var in
12463 old_archive_cmds_CXX | \
12464 old_archive_from_new_cmds_CXX | \
12465 archive_cmds_CXX | \
12466 archive_expsym_cmds_CXX | \
12467 module_cmds_CXX | \
12468 module_expsym_cmds_CXX | \
12469 old_archive_from_expsyms_cmds_CXX | \
12470 export_symbols_cmds_CXX | \
12471 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12472 postinstall_cmds | postuninstall_cmds | \
12473 old_postinstall_cmds | old_postuninstall_cmds | \
12474 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12475 # Double-quote double-evaled strings.
12476 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12477 ;;
12478 *)
12479 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12480 ;;
12481 esac
12482 done
12483
12484 case $lt_echo in
12485 *'\$0 --fallback-echo"')
12486 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12487 ;;
12488 esac
12489
12490cfgfile="$ofile"
12491
12492 cat <<__EOF__ >> "$cfgfile"
12493# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12494
12495# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12496
12497# Shell to use when invoking shell scripts.
12498SHELL=$lt_SHELL
12499
12500# Whether or not to build shared libraries.
12501build_libtool_libs=$enable_shared
12502
12503# Whether or not to build static libraries.
12504build_old_libs=$enable_static
12505
12506# Whether or not to add -lc for building shared libraries.
12507build_libtool_need_lc=$archive_cmds_need_lc_CXX
12508
12509# Whether or not to disallow shared libs when runtime libs are static
12510allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12511
12512# Whether or not to optimize for fast installation.
12513fast_install=$enable_fast_install
12514
12515# The host system.
12516host_alias=$host_alias
12517host=$host
12518
12519# An echo program that does not interpret backslashes.
12520echo=$lt_echo
12521
12522# The archiver.
12523AR=$lt_AR
12524AR_FLAGS=$lt_AR_FLAGS
12525
12526# A C compiler.
12527LTCC=$lt_LTCC
12528
12529# A language-specific compiler.
12530CC=$lt_compiler_CXX
12531
12532# Is the compiler the GNU C compiler?
12533with_gcc=$GCC_CXX
12534
12535# An ERE matcher.
12536EGREP=$lt_EGREP
12537
12538# The linker used to build libraries.
12539LD=$lt_LD_CXX
12540
12541# Whether we need hard or soft links.
12542LN_S=$lt_LN_S
12543
12544# A BSD-compatible nm program.
12545NM=$lt_NM
12546
12547# A symbol stripping program
12548STRIP=$STRIP
12549
12550# Used to examine libraries when file_magic_cmd begins "file"
12551MAGIC_CMD=$MAGIC_CMD
12552
12553# Used on cygwin: DLL creation program.
12554DLLTOOL="$DLLTOOL"
12555
12556# Used on cygwin: object dumper.
12557OBJDUMP="$OBJDUMP"
12558
12559# Used on cygwin: assembler.
12560AS="$AS"
12561
12562# The name of the directory that contains temporary libtool files.
12563objdir=$objdir
12564
12565# How to create reloadable object files.
12566reload_flag=$lt_reload_flag
12567reload_cmds=$lt_reload_cmds
12568
12569# How to pass a linker flag through the compiler.
12570wl=$lt_lt_prog_compiler_wl_CXX
12571
12572# Object file suffix (normally "o").
12573objext="$ac_objext"
12574
12575# Old archive suffix (normally "a").
12576libext="$libext"
12577
12578# Shared library suffix (normally ".so").
12579shrext='$shrext'
12580
12581# Executable file suffix (normally "").
12582exeext="$exeext"
12583
12584# Additional compiler flags for building library objects.
12585pic_flag=$lt_lt_prog_compiler_pic_CXX
12586pic_mode=$pic_mode
12587
12588# What is the maximum length of a command?
12589max_cmd_len=$lt_cv_sys_max_cmd_len
12590
12591# Does compiler simultaneously support -c and -o options?
12592compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12593
12594# Must we lock files when doing compilation ?
12595need_locks=$lt_need_locks
12596
12597# Do we need the lib prefix for modules?
12598need_lib_prefix=$need_lib_prefix
12599
12600# Do we need a version for libraries?
12601need_version=$need_version
12602
12603# Whether dlopen is supported.
12604dlopen_support=$enable_dlopen
12605
12606# Whether dlopen of programs is supported.
12607dlopen_self=$enable_dlopen_self
12608
12609# Whether dlopen of statically linked programs is supported.
12610dlopen_self_static=$enable_dlopen_self_static
12611
12612# Compiler flag to prevent dynamic linking.
12613link_static_flag=$lt_lt_prog_compiler_static_CXX
12614
12615# Compiler flag to turn off builtin functions.
12616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12617
12618# Compiler flag to allow reflexive dlopens.
12619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12620
12621# Compiler flag to generate shared objects directly from archives.
12622whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12623
12624# Compiler flag to generate thread-safe objects.
12625thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12626
12627# Library versioning type.
12628version_type=$version_type
12629
12630# Format of library name prefix.
12631libname_spec=$lt_libname_spec
12632
12633# List of archive names. First name is the real one, the rest are links.
12634# The last name is the one that the linker finds with -lNAME.
12635library_names_spec=$lt_library_names_spec
12636
12637# The coded name of the library, if different from the real name.
12638soname_spec=$lt_soname_spec
12639
12640# Commands used to build and install an old-style archive.
12641RANLIB=$lt_RANLIB
12642old_archive_cmds=$lt_old_archive_cmds_CXX
12643old_postinstall_cmds=$lt_old_postinstall_cmds
12644old_postuninstall_cmds=$lt_old_postuninstall_cmds
12645
12646# Create an old-style archive from a shared archive.
12647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12648
12649# Create a temporary old-style archive to link instead of a shared archive.
12650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12651
12652# Commands used to build and install a shared archive.
12653archive_cmds=$lt_archive_cmds_CXX
12654archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12655postinstall_cmds=$lt_postinstall_cmds
12656postuninstall_cmds=$lt_postuninstall_cmds
12657
12658# Commands used to build a loadable module (assumed same as above if empty)
12659module_cmds=$lt_module_cmds_CXX
12660module_expsym_cmds=$lt_module_expsym_cmds_CXX
12661
12662# Commands to strip libraries.
12663old_striplib=$lt_old_striplib
12664striplib=$lt_striplib
12665
12666# Dependencies to place before the objects being linked to create a
12667# shared library.
12668predep_objects=$lt_predep_objects_CXX
12669
12670# Dependencies to place after the objects being linked to create a
12671# shared library.
12672postdep_objects=$lt_postdep_objects_CXX
12673
12674# Dependencies to place before the objects being linked to create a
12675# shared library.
12676predeps=$lt_predeps_CXX
12677
12678# Dependencies to place after the objects being linked to create a
12679# shared library.
12680postdeps=$lt_postdeps_CXX
12681
12682# The library search path used internally by the compiler when linking
12683# a shared library.
12684compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12685
12686# Method to check whether dependent libraries are shared objects.
12687deplibs_check_method=$lt_deplibs_check_method
12688
12689# Command to use when deplibs_check_method == file_magic.
12690file_magic_cmd=$lt_file_magic_cmd
12691
12692# Flag that allows shared libraries with undefined symbols to be built.
12693allow_undefined_flag=$lt_allow_undefined_flag_CXX
12694
12695# Flag that forces no undefined symbols.
12696no_undefined_flag=$lt_no_undefined_flag_CXX
12697
12698# Commands used to finish a libtool library installation in a directory.
12699finish_cmds=$lt_finish_cmds
12700
12701# Same as above, but a single script fragment to be evaled but not shown.
12702finish_eval=$lt_finish_eval
12703
12704# Take the output of nm and produce a listing of raw symbols and C names.
12705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12706
12707# Transform the output of nm in a proper C declaration
12708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12709
12710# Transform the output of nm in a C name address pair
12711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12712
12713# This is the shared library runtime path variable.
12714runpath_var=$runpath_var
12715
12716# This is the shared library path variable.
12717shlibpath_var=$shlibpath_var
12718
12719# Is shlibpath searched before the hard-coded library search path?
12720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12721
12722# How to hardcode a shared library path into an executable.
12723hardcode_action=$hardcode_action_CXX
12724
12725# Whether we should hardcode library paths into libraries.
12726hardcode_into_libs=$hardcode_into_libs
12727
12728# Flag to hardcode \$libdir into a binary during linking.
12729# This must work even if \$libdir does not exist.
12730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12731
12732# If ld is used when linking, flag to hardcode \$libdir into
12733# a binary during linking. This must work even if \$libdir does
12734# not exist.
12735hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12736
12737# Whether we need a single -rpath flag with a separated argument.
12738hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12739
12740# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12741# resulting binary.
12742hardcode_direct=$hardcode_direct_CXX
12743
12744# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12745# resulting binary.
12746hardcode_minus_L=$hardcode_minus_L_CXX
12747
12748# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12749# the resulting binary.
12750hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12751
12752# Set to yes if building a shared library automatically hardcodes DIR into the library
12753# and all subsequent libraries and executables linked against it.
12754hardcode_automatic=$hardcode_automatic_CXX
12755
12756# Variables whose values should be saved in libtool wrapper scripts and
12757# restored at relink time.
12758variables_saved_for_relink="$variables_saved_for_relink"
12759
12760# Whether libtool must link a program against all its dependency libraries.
12761link_all_deplibs=$link_all_deplibs_CXX
12762
12763# Compile-time system search path for libraries
12764sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12765
12766# Run-time system search path for libraries
12767sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12768
12769# Fix the shell variable \$srcfile for the compiler.
12770fix_srcfile_path="$fix_srcfile_path_CXX"
12771
12772# Set to yes if exported symbols are required.
12773always_export_symbols=$always_export_symbols_CXX
12774
12775# The commands to list exported symbols.
12776export_symbols_cmds=$lt_export_symbols_cmds_CXX
12777
12778# The commands to extract the exported symbol list from a shared archive.
12779extract_expsyms_cmds=$lt_extract_expsyms_cmds
12780
12781# Symbols that should not be listed in the preloaded symbols.
12782exclude_expsyms=$lt_exclude_expsyms_CXX
12783
12784# Symbols that must always be exported.
12785include_expsyms=$lt_include_expsyms_CXX
12786
12787# ### END LIBTOOL TAG CONFIG: $tagname
12788
12789__EOF__
12790
12791
12792else
12793 # If there is no Makefile yet, we rely on a make rule to execute
12794 # `config.status --recheck' to rerun these tests and create the
12795 # libtool script then.
12796 test -f Makefile && make "$ltmain"
12797fi
12798
12799
12800ac_ext=c
12801ac_cpp='$CPP $CPPFLAGS'
12802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804ac_compiler_gnu=$ac_cv_c_compiler_gnu
12805
12806CC=$lt_save_CC
12807LDCXX=$LD
12808LD=$lt_save_LD
12809GCC=$lt_save_GCC
12810with_gnu_ldcxx=$with_gnu_ld
12811with_gnu_ld=$lt_save_with_gnu_ld
12812lt_cv_path_LDCXX=$lt_cv_path_LD
12813lt_cv_path_LD=$lt_save_path_LD
12814lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12815lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12816
12817 else
12818 tagname=""
12819 fi
12820 ;;
12821
12822 F77)
12823 if test -n "$F77" && test "X$F77" != "Xno"; then
12824
12825ac_ext=f
12826ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12827ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12829
12830
12831archive_cmds_need_lc_F77=no
12832allow_undefined_flag_F77=
12833always_export_symbols_F77=no
12834archive_expsym_cmds_F77=
12835export_dynamic_flag_spec_F77=
12836hardcode_direct_F77=no
12837hardcode_libdir_flag_spec_F77=
12838hardcode_libdir_flag_spec_ld_F77=
12839hardcode_libdir_separator_F77=
12840hardcode_minus_L_F77=no
12841hardcode_automatic_F77=no
12842module_cmds_F77=
12843module_expsym_cmds_F77=
12844link_all_deplibs_F77=unknown
12845old_archive_cmds_F77=$old_archive_cmds
12846no_undefined_flag_F77=
12847whole_archive_flag_spec_F77=
12848enable_shared_with_static_runtimes_F77=no
12849
12850# Source file extension for f77 test sources.
12851ac_ext=f
12852
12853# Object file extension for compiled f77 test sources.
12854objext=o
12855objext_F77=$objext
12856
12857# Code to be used in simple compile tests
12858lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12859
12860# Code to be used in simple link tests
12861lt_simple_link_test_code=" program t\n end\n"
12862
12863# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12864
12865# If no C compiler was specified, use CC.
12866LTCC=${LTCC-"$CC"}
12867
12868# Allow CC to be a program name with arguments.
12869compiler=$CC
12870
12871
12872# Allow CC to be a program name with arguments.
12873lt_save_CC="$CC"
12874CC=${F77-"f77"}
12875compiler=$CC
12876compiler_F77=$CC
12877cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12878
12879echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12880echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12881echo "$as_me:$LINENO: result: $can_build_shared" >&5
12882echo "${ECHO_T}$can_build_shared" >&6
12883
12884echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12885echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12886test "$can_build_shared" = "no" && enable_shared=no
12887
12888# On AIX, shared libraries and static libraries use the same namespace, and
12889# are all built from PIC.
12890case "$host_os" in
12891aix3*)
12892 test "$enable_shared" = yes && enable_static=no
12893 if test -n "$RANLIB"; then
12894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12895 postinstall_cmds='$RANLIB $lib'
12896 fi
12897 ;;
12898aix4*)
12899 test "$enable_shared" = yes && enable_static=no
12900 ;;
12901esac
12902echo "$as_me:$LINENO: result: $enable_shared" >&5
12903echo "${ECHO_T}$enable_shared" >&6
12904
12905echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12906echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12907# Make sure either enable_shared or enable_static is yes.
12908test "$enable_shared" = yes || enable_static=yes
12909echo "$as_me:$LINENO: result: $enable_static" >&5
12910echo "${ECHO_T}$enable_static" >&6
12911
12912test "$ld_shlibs_F77" = no && can_build_shared=no
12913
12914GCC_F77="$G77"
12915LD_F77="$LD"
12916
12917lt_prog_compiler_wl_F77=
12918lt_prog_compiler_pic_F77=
12919lt_prog_compiler_static_F77=
12920
12921echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12922echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12923
12924 if test "$GCC" = yes; then
12925 lt_prog_compiler_wl_F77='-Wl,'
12926 lt_prog_compiler_static_F77='-static'
12927
12928 case $host_os in
12929 aix*)
12930 # All AIX code is PIC.
12931 if test "$host_cpu" = ia64; then
12932 # AIX 5 now supports IA64 processor
12933 lt_prog_compiler_static_F77='-Bstatic'
12934 fi
12935 ;;
12936
12937 amigaos*)
12938 # FIXME: we need at least 68020 code to build shared libraries, but
12939 # adding the `-m68020' flag to GCC prevents building anything better,
12940 # like `-m68040'.
12941 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12942 ;;
12943
12944 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12945 # PIC is the default for these OSes.
12946 ;;
12947
12948 mingw* | pw32* | os2*)
12949 # This hack is so that the source file can tell whether it is being
12950 # built for inclusion in a dll (and should export symbols for example).
12951 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12952 ;;
12953
12954 darwin* | rhapsody*)
12955 # PIC is the default on this platform
12956 # Common symbols not allowed in MH_DYLIB files
12957 lt_prog_compiler_pic_F77='-fno-common'
12958 ;;
12959
12960 msdosdjgpp*)
12961 # Just because we use GCC doesn't mean we suddenly get shared libraries
12962 # on systems that don't support them.
12963 lt_prog_compiler_can_build_shared_F77=no
12964 enable_shared=no
12965 ;;
12966
12967 sysv4*MP*)
12968 if test -d /usr/nec; then
12969 lt_prog_compiler_pic_F77=-Kconform_pic
12970 fi
12971 ;;
12972
12973 hpux*)
12974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12975 # not for PA HP-UX.
12976 case "$host_cpu" in
12977 hppa*64*|ia64*)
12978 # +Z the default
12979 ;;
12980 *)
12981 lt_prog_compiler_pic_F77='-fPIC'
12982 ;;
12983 esac
12984 ;;
12985
12986 *)
12987 lt_prog_compiler_pic_F77='-fPIC'
12988 ;;
12989 esac
12990 else
12991 # PORTME Check for flag to pass linker flags through the system compiler.
12992 case $host_os in
12993 aix*)
12994 lt_prog_compiler_wl_F77='-Wl,'
12995 if test "$host_cpu" = ia64; then
12996 # AIX 5 now supports IA64 processor
12997 lt_prog_compiler_static_F77='-Bstatic'
12998 else
12999 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13000 fi
13001 ;;
13002
13003 mingw* | pw32* | os2*)
13004 # This hack is so that the source file can tell whether it is being
13005 # built for inclusion in a dll (and should export symbols for example).
13006 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13007 ;;
13008
13009 hpux9* | hpux10* | hpux11*)
13010 lt_prog_compiler_wl_F77='-Wl,'
13011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13012 # not for PA HP-UX.
13013 case "$host_cpu" in
13014 hppa*64*|ia64*)
13015 # +Z the default
13016 ;;
13017 *)
13018 lt_prog_compiler_pic_F77='+Z'
13019 ;;
13020 esac
13021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13022 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13023 ;;
13024
13025 irix5* | irix6* | nonstopux*)
13026 lt_prog_compiler_wl_F77='-Wl,'
13027 # PIC (with -KPIC) is the default.
13028 lt_prog_compiler_static_F77='-non_shared'
13029 ;;
13030
13031 newsos6)
13032 lt_prog_compiler_pic_F77='-KPIC'
13033 lt_prog_compiler_static_F77='-Bstatic'
13034 ;;
13035
13036 linux*)
13037 case $CC in
13038 icc|ecc)
13039 lt_prog_compiler_wl_F77='-Wl,'
13040 lt_prog_compiler_pic_F77='-KPIC'
13041 lt_prog_compiler_static_F77='-static'
13042 ;;
13043 ccc)
13044 lt_prog_compiler_wl_F77='-Wl,'
13045 # All Alpha code is PIC.
13046 lt_prog_compiler_static_F77='-non_shared'
13047 ;;
13048 esac
13049 ;;
13050
13051 osf3* | osf4* | osf5*)
13052 lt_prog_compiler_wl_F77='-Wl,'
13053 # All OSF/1 code is PIC.
13054 lt_prog_compiler_static_F77='-non_shared'
13055 ;;
13056
13057 sco3.2v5*)
13058 lt_prog_compiler_pic_F77='-Kpic'
13059 lt_prog_compiler_static_F77='-dn'
13060 ;;
13061
13062 solaris*)
13063 lt_prog_compiler_wl_F77='-Wl,'
13064 lt_prog_compiler_pic_F77='-KPIC'
13065 lt_prog_compiler_static_F77='-Bstatic'
13066 ;;
13067
13068 sunos4*)
13069 lt_prog_compiler_wl_F77='-Qoption ld '
13070 lt_prog_compiler_pic_F77='-PIC'
13071 lt_prog_compiler_static_F77='-Bstatic'
13072 ;;
13073
13074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13075 lt_prog_compiler_wl_F77='-Wl,'
13076 lt_prog_compiler_pic_F77='-KPIC'
13077 lt_prog_compiler_static_F77='-Bstatic'
13078 ;;
13079
13080 sysv4*MP*)
13081 if test -d /usr/nec ;then
13082 lt_prog_compiler_pic_F77='-Kconform_pic'
13083 lt_prog_compiler_static_F77='-Bstatic'
13084 fi
13085 ;;
13086
13087 uts4*)
13088 lt_prog_compiler_pic_F77='-pic'
13089 lt_prog_compiler_static_F77='-Bstatic'
13090 ;;
13091
13092 *)
13093 lt_prog_compiler_can_build_shared_F77=no
13094 ;;
13095 esac
13096 fi
13097
13098echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13099echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13100
13101#
13102# Check to make sure the PIC flag actually works.
13103#
13104if test -n "$lt_prog_compiler_pic_F77"; then
13105 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13106echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13107if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else
13110 lt_prog_compiler_pic_works_F77=no
13111 ac_outfile=conftest.$ac_objext
13112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13113 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13114 # Insert the option either (1) after the last *FLAGS variable, or
13115 # (2) before a word containing "conftest.", or (3) at the end.
13116 # Note that $ac_compile itself does not contain backslashes and begins
13117 # with a dollar sign (not a hyphen), so the echo should work correctly.
13118 # The option is referenced via a variable to avoid confusing sed.
13119 lt_compile=`echo "$ac_compile" | $SED \
13120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13122 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000013123 (eval echo "\"\$as_me:13123: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013124 (eval "$lt_compile" 2>conftest.err)
13125 ac_status=$?
13126 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000013127 echo "$as_me:13127: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013128 if (exit $ac_status) && test -s "$ac_outfile"; then
13129 # The compiler can only warn and ignore the option if not recognized
13130 # So say no if there are warnings
13131 if test ! -s conftest.err; then
13132 lt_prog_compiler_pic_works_F77=yes
13133 fi
13134 fi
13135 $rm conftest*
13136
13137fi
13138echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13139echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13140
13141if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13142 case $lt_prog_compiler_pic_F77 in
13143 "" | " "*) ;;
13144 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13145 esac
13146else
13147 lt_prog_compiler_pic_F77=
13148 lt_prog_compiler_can_build_shared_F77=no
13149fi
13150
13151fi
13152case "$host_os" in
13153 # For platforms which do not support PIC, -DPIC is meaningless:
13154 *djgpp*)
13155 lt_prog_compiler_pic_F77=
13156 ;;
13157 *)
13158 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13159 ;;
13160esac
13161
13162echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13163echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13164if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166else
13167 lt_cv_prog_compiler_c_o_F77=no
13168 $rm -r conftest 2>/dev/null
13169 mkdir conftest
13170 cd conftest
13171 mkdir out
13172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13173
13174 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13175 # that will create temporary files in the current directory regardless of
13176 # the output directory. Thus, making CWD read-only will cause this test
13177 # to fail, enabling locking or at least warning the user not to do parallel
13178 # builds.
13179 chmod -w .
13180
13181 lt_compiler_flag="-o out/conftest2.$ac_objext"
13182 # Insert the option either (1) after the last *FLAGS variable, or
13183 # (2) before a word containing "conftest.", or (3) at the end.
13184 # Note that $ac_compile itself does not contain backslashes and begins
13185 # with a dollar sign (not a hyphen), so the echo should work correctly.
13186 lt_compile=`echo "$ac_compile" | $SED \
13187 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13189 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000013190 (eval echo "\"\$as_me:13190: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013191 (eval "$lt_compile" 2>out/conftest.err)
13192 ac_status=$?
13193 cat out/conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000013194 echo "$as_me:13194: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13196 then
13197 # The compiler can only warn and ignore the option if not recognized
13198 # So say no if there are warnings
13199 if test ! -s out/conftest.err; then
13200 lt_cv_prog_compiler_c_o_F77=yes
13201 fi
13202 fi
13203 chmod u+w .
13204 $rm conftest* out/*
13205 rmdir out
13206 cd ..
13207 rmdir conftest
13208 $rm conftest*
13209
13210fi
13211echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13212echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13213
13214
13215hard_links="nottested"
13216if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13217 # do not overwrite the value of need_locks provided by the user
13218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13219echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13220 hard_links=yes
13221 $rm conftest*
13222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13223 touch conftest.a
13224 ln conftest.a conftest.b 2>&5 || hard_links=no
13225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13226 echo "$as_me:$LINENO: result: $hard_links" >&5
13227echo "${ECHO_T}$hard_links" >&6
13228 if test "$hard_links" = no; then
13229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13230echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13231 need_locks=warn
13232 fi
13233else
13234 need_locks=no
13235fi
13236
13237echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13238echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13239
13240 runpath_var=
13241 allow_undefined_flag_F77=
13242 enable_shared_with_static_runtimes_F77=no
13243 archive_cmds_F77=
13244 archive_expsym_cmds_F77=
13245 old_archive_From_new_cmds_F77=
13246 old_archive_from_expsyms_cmds_F77=
13247 export_dynamic_flag_spec_F77=
13248 whole_archive_flag_spec_F77=
13249 thread_safe_flag_spec_F77=
13250 hardcode_libdir_flag_spec_F77=
13251 hardcode_libdir_flag_spec_ld_F77=
13252 hardcode_libdir_separator_F77=
13253 hardcode_direct_F77=no
13254 hardcode_minus_L_F77=no
13255 hardcode_shlibpath_var_F77=unsupported
13256 link_all_deplibs_F77=unknown
13257 hardcode_automatic_F77=no
13258 module_cmds_F77=
13259 module_expsym_cmds_F77=
13260 always_export_symbols_F77=no
13261 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13262 # include_expsyms should be a list of space-separated symbols to be *always*
13263 # included in the symbol list
13264 include_expsyms_F77=
13265 # exclude_expsyms can be an extended regexp of symbols to exclude
13266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13268 # as well as any symbol that contains `d'.
13269 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13271 # platforms (ab)use it in PIC code, but their linkers get confused if
13272 # the symbol is explicitly referenced. Since portable code cannot
13273 # rely on this symbol name, it's probably fine to never include it in
13274 # preloaded symbol tables.
13275 extract_expsyms_cmds=
13276
13277 case $host_os in
13278 cygwin* | mingw* | pw32*)
13279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13280 # When not using gcc, we currently assume that we are using
13281 # Microsoft Visual C++.
13282 if test "$GCC" != yes; then
13283 with_gnu_ld=no
13284 fi
13285 ;;
13286 openbsd*)
13287 with_gnu_ld=no
13288 ;;
13289 esac
13290
13291 ld_shlibs_F77=yes
13292 if test "$with_gnu_ld" = yes; then
13293 # If archive_cmds runs LD, not CC, wlarc should be empty
13294 wlarc='${wl}'
13295
13296 # See if GNU ld supports shared libraries.
13297 case $host_os in
13298 aix3* | aix4* | aix5*)
13299 # On AIX/PPC, the GNU linker is very broken
13300 if test "$host_cpu" != ia64; then
13301 ld_shlibs_F77=no
13302 cat <<EOF 1>&2
13303
13304*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13305*** to be unable to reliably create shared libraries on AIX.
13306*** Therefore, libtool is disabling shared libraries support. If you
13307*** really care for shared libraries, you may want to modify your PATH
13308*** so that a non-GNU linker is found, and then restart.
13309
13310EOF
13311 fi
13312 ;;
13313
13314 amigaos*)
13315 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)'
13316 hardcode_libdir_flag_spec_F77='-L$libdir'
13317 hardcode_minus_L_F77=yes
13318
13319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13320 # that the semantics of dynamic libraries on AmigaOS, at least up
13321 # to version 4, is to share data among multiple programs linked
13322 # with the same dynamic library. Since this doesn't match the
13323 # behavior of shared libraries on other platforms, we can't use
13324 # them.
13325 ld_shlibs_F77=no
13326 ;;
13327
13328 beos*)
13329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13330 allow_undefined_flag_F77=unsupported
13331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13332 # support --undefined. This deserves some investigation. FIXME
13333 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 else
13335 ld_shlibs_F77=no
13336 fi
13337 ;;
13338
13339 cygwin* | mingw* | pw32*)
13340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13341 # as there is no search path for DLLs.
13342 hardcode_libdir_flag_spec_F77='-L$libdir'
13343 allow_undefined_flag_F77=unsupported
13344 always_export_symbols_F77=no
13345 enable_shared_with_static_runtimes_F77=yes
13346 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13347
13348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13350 # If the export-symbols file already is a .def file (1st line
13351 # is EXPORTS), use it as is; otherwise, prepend...
13352 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13353 cp $export_symbols $output_objdir/$soname.def;
13354 else
13355 echo EXPORTS > $output_objdir/$soname.def;
13356 cat $export_symbols >> $output_objdir/$soname.def;
13357 fi~
13358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359 else
13360 ld_shlibs=no
13361 fi
13362 ;;
13363
13364 netbsd*)
13365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13366 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13367 wlarc=
13368 else
13369 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371 fi
13372 ;;
13373
13374 solaris* | sysv5*)
13375 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13376 ld_shlibs_F77=no
13377 cat <<EOF 1>&2
13378
13379*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13380*** create shared libraries on Solaris systems. Therefore, libtool
13381*** is disabling shared libraries support. We urge you to upgrade GNU
13382*** binutils to release 2.9.1 or newer. Another option is to modify
13383*** your PATH or compiler configuration so that the native linker is
13384*** used, and then restart.
13385
13386EOF
13387 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13388 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13389 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390 else
13391 ld_shlibs_F77=no
13392 fi
13393 ;;
13394
13395 sunos4*)
13396 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13397 wlarc=
13398 hardcode_direct_F77=yes
13399 hardcode_shlibpath_var_F77=no
13400 ;;
13401
13402 *)
13403 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13404 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13405 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13406 else
13407 ld_shlibs_F77=no
13408 fi
13409 ;;
13410 esac
13411
13412 if test "$ld_shlibs_F77" = yes; then
13413 runpath_var=LD_RUN_PATH
13414 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13415 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13416 # ancient GNU ld didn't support --whole-archive et. al.
13417 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13418 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13419 else
13420 whole_archive_flag_spec_F77=
13421 fi
13422 fi
13423 else
13424 # PORTME fill in a description of your system's linker (not GNU ld)
13425 case $host_os in
13426 aix3*)
13427 allow_undefined_flag_F77=unsupported
13428 always_export_symbols_F77=yes
13429 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'
13430 # Note: this linker hardcodes the directories in LIBPATH if there
13431 # are no directories specified by -L.
13432 hardcode_minus_L_F77=yes
13433 if test "$GCC" = yes && test -z "$link_static_flag"; then
13434 # Neither direct hardcoding nor static linking is supported with a
13435 # broken collect2.
13436 hardcode_direct_F77=unsupported
13437 fi
13438 ;;
13439
13440 aix4* | aix5*)
13441 if test "$host_cpu" = ia64; then
13442 # On IA64, the linker does run time linking by default, so we don't
13443 # have to do anything special.
13444 aix_use_runtimelinking=no
13445 exp_sym_flag='-Bexport'
13446 no_entry_flag=""
13447 else
13448 # If we're using GNU nm, then we don't want the "-C" option.
13449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13450 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13451 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'
13452 else
13453 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'
13454 fi
13455 aix_use_runtimelinking=no
13456
13457 # Test if we are trying to use run time linking or normal
13458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13459 # need to do runtime linking.
13460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13461 for ld_flag in $LDFLAGS; do
13462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13463 aix_use_runtimelinking=yes
13464 break
13465 fi
13466 done
13467 esac
13468
13469 exp_sym_flag='-bexport'
13470 no_entry_flag='-bnoentry'
13471 fi
13472
13473 # When large executables or shared objects are built, AIX ld can
13474 # have problems creating the table of contents. If linking a library
13475 # or program results in "error TOC overflow" add -mminimal-toc to
13476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13478
13479 archive_cmds_F77=''
13480 hardcode_direct_F77=yes
13481 hardcode_libdir_separator_F77=':'
13482 link_all_deplibs_F77=yes
13483
13484 if test "$GCC" = yes; then
13485 case $host_os in aix4.012|aix4.012.*)
13486 # We only want to do this on AIX 4.2 and lower, the check
13487 # below for broken collect2 doesn't work under 4.3+
13488 collect2name=`${CC} -print-prog-name=collect2`
13489 if test -f "$collect2name" && \
13490 strings "$collect2name" | grep resolve_lib_name >/dev/null
13491 then
13492 # We have reworked collect2
13493 hardcode_direct_F77=yes
13494 else
13495 # We have old collect2
13496 hardcode_direct_F77=unsupported
13497 # It fails to find uninstalled libraries when the uninstalled
13498 # path is not listed in the libpath. Setting hardcode_minus_L
13499 # to unsupported forces relinking
13500 hardcode_minus_L_F77=yes
13501 hardcode_libdir_flag_spec_F77='-L$libdir'
13502 hardcode_libdir_separator_F77=
13503 fi
13504 esac
13505 shared_flag='-shared'
13506 else
13507 # not using gcc
13508 if test "$host_cpu" = ia64; then
13509 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13510 # chokes on -Wl,-G. The following line is correct:
13511 shared_flag='-G'
13512 else
13513 if test "$aix_use_runtimelinking" = yes; then
13514 shared_flag='${wl}-G'
13515 else
13516 shared_flag='${wl}-bM:SRE'
13517 fi
13518 fi
13519 fi
13520
13521 # It seems that -bexpall does not export symbols beginning with
13522 # underscore (_), so it is better to generate a list of symbols to export.
13523 always_export_symbols_F77=yes
13524 if test "$aix_use_runtimelinking" = yes; then
13525 # Warning - without using the other runtime loading flags (-brtl),
13526 # -berok will link without error, but may produce a broken library.
13527 allow_undefined_flag_F77='-berok'
13528 # Determine the default libpath from the value encoded in an empty executable.
13529 cat >conftest.$ac_ext <<_ACEOF
13530 program main
13531
13532 end
13533_ACEOF
13534rm -f conftest.$ac_objext conftest$ac_exeext
13535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13536 (eval $ac_link) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } &&
13540 { ac_try='test -s conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546
13547aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13548}'`
13549# Check for a 64-bit object if we didn't find anything.
13550if 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; }
13551}'`; fi
13552else
13553 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013554sed 's/^/| /' conftest.$ac_ext >&5
13555
John Criswell47fdd832003-07-14 16:52:07 +000013556fi
13557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13559
13560 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13561 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"
13562 else
13563 if test "$host_cpu" = ia64; then
13564 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13565 allow_undefined_flag_F77="-z nodefs"
13566 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"
13567 else
13568 # Determine the default libpath from the value encoded in an empty executable.
13569 cat >conftest.$ac_ext <<_ACEOF
13570 program main
13571
13572 end
13573_ACEOF
13574rm -f conftest.$ac_objext conftest$ac_exeext
13575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13576 (eval $ac_link) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -s conftest$ac_exeext'
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; }; then
13586
13587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13588}'`
13589# Check for a 64-bit object if we didn't find anything.
13590if 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; }
13591}'`; fi
13592else
13593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013594sed 's/^/| /' conftest.$ac_ext >&5
13595
John Criswell47fdd832003-07-14 16:52:07 +000013596fi
13597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13599
13600 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13601 # Warning - without using the other run time loading flags,
13602 # -berok will link without error, but may produce a broken library.
13603 no_undefined_flag_F77=' ${wl}-bernotok'
13604 allow_undefined_flag_F77=' ${wl}-berok'
13605 # -bexpall does not export symbols beginning with underscore (_)
13606 always_export_symbols_F77=yes
13607 # Exported symbols can be pulled into shared objects from archives
13608 whole_archive_flag_spec_F77=' '
13609 archive_cmds_need_lc_F77=yes
13610 # This is similar to how AIX traditionally builds it's shared libraries.
13611 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'
13612 fi
13613 fi
13614 ;;
13615
13616 amigaos*)
13617 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)'
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_minus_L_F77=yes
13620 # see comment about different semantics on the GNU ld section
13621 ld_shlibs_F77=no
13622 ;;
13623
13624 bsdi4*)
13625 export_dynamic_flag_spec_F77=-rdynamic
13626 ;;
13627
13628 cygwin* | mingw* | pw32*)
13629 # When not using gcc, we currently assume that we are using
13630 # Microsoft Visual C++.
13631 # hardcode_libdir_flag_spec is actually meaningless, as there is
13632 # no search path for DLLs.
13633 hardcode_libdir_flag_spec_F77=' '
13634 allow_undefined_flag_F77=unsupported
13635 # Tell ltmain to make .lib files, not .a files.
13636 libext=lib
13637 # Tell ltmain to make .dll files, not .so files.
13638 shrext=".dll"
13639 # FIXME: Setting linknames here is a bad hack.
13640 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13641 # The linker will automatically build a .lib file if we build a DLL.
13642 old_archive_From_new_cmds_F77='true'
13643 # FIXME: Should let the user specify the lib program.
13644 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13645 fix_srcfile_path='`cygpath -w "$srcfile"`'
13646 enable_shared_with_static_runtimes_F77=yes
13647 ;;
13648
13649 darwin* | rhapsody*)
13650 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13651 archive_cmds_need_lc_F77=no
13652 case "$host_os" in
13653 rhapsody* | darwin1.[012])
13654 allow_undefined_flag_F77='-undefined suppress'
13655 ;;
13656 *) # Darwin 1.3 on
13657 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13658 ;;
13659 esac
13660 # FIXME: Relying on posixy $() will cause problems for
13661 # cross-compilation, but unfortunately the echo tests do not
13662 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13663 # `"' quotes if we put them in here... so don't!
13664 lt_int_apple_cc_single_mod=no
13665 output_verbose_link_cmd='echo'
13666 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13667 lt_int_apple_cc_single_mod=yes
13668 fi
13669 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13670 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13671 else
13672 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'
13673 fi
13674 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13676 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13677 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}'
13678 else
13679 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}'
13680 fi
13681 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}'
13682 hardcode_direct_F77=no
13683 hardcode_automatic_F77=yes
13684 hardcode_shlibpath_var_F77=unsupported
13685 whole_archive_flag_spec_F77='-all_load $convenience'
13686 link_all_deplibs_F77=yes
13687 fi
13688 ;;
13689
13690 dgux*)
13691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13692 hardcode_libdir_flag_spec_F77='-L$libdir'
13693 hardcode_shlibpath_var_F77=no
13694 ;;
13695
13696 freebsd1*)
13697 ld_shlibs_F77=no
13698 ;;
13699
13700 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13701 # support. Future versions do this automatically, but an explicit c++rt0.o
13702 # does not break anything, and helps significantly (at the cost of a little
13703 # extra space).
13704 freebsd2.2*)
13705 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13706 hardcode_libdir_flag_spec_F77='-R$libdir'
13707 hardcode_direct_F77=yes
13708 hardcode_shlibpath_var_F77=no
13709 ;;
13710
13711 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13712 freebsd2*)
13713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_direct_F77=yes
13715 hardcode_minus_L_F77=yes
13716 hardcode_shlibpath_var_F77=no
13717 ;;
13718
13719 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13720 freebsd*)
13721 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13722 hardcode_libdir_flag_spec_F77='-R$libdir'
13723 hardcode_direct_F77=yes
13724 hardcode_shlibpath_var_F77=no
13725 ;;
13726
13727 hpux9*)
13728 if test "$GCC" = yes; then
13729 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'
13730 else
13731 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'
13732 fi
13733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13734 hardcode_libdir_separator_F77=:
13735 hardcode_direct_F77=yes
13736
13737 # hardcode_minus_L: Not really in the search PATH,
13738 # but as the default location of the library.
13739 hardcode_minus_L_F77=yes
13740 export_dynamic_flag_spec_F77='${wl}-E'
13741 ;;
13742
13743 hpux10* | hpux11*)
13744 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13745 case "$host_cpu" in
13746 hppa*64*|ia64*)
13747 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13748 ;;
13749 *)
13750 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13751 ;;
13752 esac
13753 else
13754 case "$host_cpu" in
13755 hppa*64*|ia64*)
13756 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13757 ;;
13758 *)
13759 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13760 ;;
13761 esac
13762 fi
13763 if test "$with_gnu_ld" = no; then
13764 case "$host_cpu" in
13765 hppa*64*)
13766 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13767 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13768 hardcode_libdir_separator_F77=:
13769 hardcode_direct_F77=no
13770 hardcode_shlibpath_var_F77=no
13771 ;;
13772 ia64*)
13773 hardcode_libdir_flag_spec_F77='-L$libdir'
13774 hardcode_direct_F77=no
13775 hardcode_shlibpath_var_F77=no
13776
13777 # hardcode_minus_L: Not really in the search PATH,
13778 # but as the default location of the library.
13779 hardcode_minus_L_F77=yes
13780 ;;
13781 *)
13782 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13783 hardcode_libdir_separator_F77=:
13784 hardcode_direct_F77=yes
13785 export_dynamic_flag_spec_F77='${wl}-E'
13786
13787 # hardcode_minus_L: Not really in the search PATH,
13788 # but as the default location of the library.
13789 hardcode_minus_L_F77=yes
13790 ;;
13791 esac
13792 fi
13793 ;;
13794
13795 irix5* | irix6* | nonstopux*)
13796 if test "$GCC" = yes; then
13797 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'
13798 else
13799 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'
13800 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13801 fi
13802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_F77=:
13804 link_all_deplibs_F77=yes
13805 ;;
13806
13807 netbsd*)
13808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13810 else
13811 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13812 fi
13813 hardcode_libdir_flag_spec_F77='-R$libdir'
13814 hardcode_direct_F77=yes
13815 hardcode_shlibpath_var_F77=no
13816 ;;
13817
13818 newsos6)
13819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13820 hardcode_direct_F77=yes
13821 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13822 hardcode_libdir_separator_F77=:
13823 hardcode_shlibpath_var_F77=no
13824 ;;
13825
13826 openbsd*)
13827 hardcode_direct_F77=yes
13828 hardcode_shlibpath_var_F77=no
13829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13830 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13831 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13832 export_dynamic_flag_spec_F77='${wl}-E'
13833 else
13834 case $host_os in
13835 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13836 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_libdir_flag_spec_F77='-R$libdir'
13838 ;;
13839 *)
13840 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13841 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13842 ;;
13843 esac
13844 fi
13845 ;;
13846
13847 os2*)
13848 hardcode_libdir_flag_spec_F77='-L$libdir'
13849 hardcode_minus_L_F77=yes
13850 allow_undefined_flag_F77=unsupported
13851 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'
13852 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13853 ;;
13854
13855 osf3*)
13856 if test "$GCC" = yes; then
13857 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13858 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'
13859 else
13860 allow_undefined_flag_F77=' -expect_unresolved \*'
13861 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'
13862 fi
13863 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864 hardcode_libdir_separator_F77=:
13865 ;;
13866
13867 osf4* | osf5*) # as osf3* with the addition of -msym flag
13868 if test "$GCC" = yes; then
13869 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13870 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'
13871 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13872 else
13873 allow_undefined_flag_F77=' -expect_unresolved \*'
13874 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'
13875 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~
13876 $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'
13877
13878 # Both c and cxx compiler support -rpath directly
13879 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13880 fi
13881 hardcode_libdir_separator_F77=:
13882 ;;
13883
13884 sco3.2v5*)
13885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 hardcode_shlibpath_var_F77=no
13887 export_dynamic_flag_spec_F77='${wl}-Bexport'
13888 runpath_var=LD_RUN_PATH
13889 hardcode_runpath_var=yes
13890 ;;
13891
13892 solaris*)
13893 no_undefined_flag_F77=' -z text'
13894 if test "$GCC" = yes; then
13895 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13897 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13898 else
13899 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13901 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13902 fi
13903 hardcode_libdir_flag_spec_F77='-R$libdir'
13904 hardcode_shlibpath_var_F77=no
13905 case $host_os in
13906 solaris2.[0-5] | solaris2.[0-5].*) ;;
13907 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13908 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13909 esac
13910 link_all_deplibs_F77=yes
13911 ;;
13912
13913 sunos4*)
13914 if test "x$host_vendor" = xsequent; then
13915 # Use $CC to link under sequent, because it throws in some extra .o
13916 # files that make .init and .fini sections work.
13917 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13918 else
13919 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13920 fi
13921 hardcode_libdir_flag_spec_F77='-L$libdir'
13922 hardcode_direct_F77=yes
13923 hardcode_minus_L_F77=yes
13924 hardcode_shlibpath_var_F77=no
13925 ;;
13926
13927 sysv4)
13928 case $host_vendor in
13929 sni)
13930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931 hardcode_direct_F77=yes # is this really true???
13932 ;;
13933 siemens)
13934 ## LD is ld it makes a PLAMLIB
13935 ## CC just makes a GrossModule.
13936 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13937 reload_cmds_F77='$CC -r -o $output$reload_objs'
13938 hardcode_direct_F77=no
13939 ;;
13940 motorola)
13941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13943 ;;
13944 esac
13945 runpath_var='LD_RUN_PATH'
13946 hardcode_shlibpath_var_F77=no
13947 ;;
13948
13949 sysv4.3*)
13950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951 hardcode_shlibpath_var_F77=no
13952 export_dynamic_flag_spec_F77='-Bexport'
13953 ;;
13954
13955 sysv4*MP*)
13956 if test -d /usr/nec; then
13957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958 hardcode_shlibpath_var_F77=no
13959 runpath_var=LD_RUN_PATH
13960 hardcode_runpath_var=yes
13961 ld_shlibs_F77=yes
13962 fi
13963 ;;
13964
13965 sysv4.2uw2*)
13966 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13967 hardcode_direct_F77=yes
13968 hardcode_minus_L_F77=no
13969 hardcode_shlibpath_var_F77=no
13970 hardcode_runpath_var=yes
13971 runpath_var=LD_RUN_PATH
13972 ;;
13973
13974 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13975 no_undefined_flag_F77='${wl}-z ${wl}text'
13976 if test "$GCC" = yes; then
13977 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 else
13979 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13980 fi
13981 runpath_var='LD_RUN_PATH'
13982 hardcode_shlibpath_var_F77=no
13983 ;;
13984
13985 sysv5*)
13986 no_undefined_flag_F77=' -z text'
13987 # $CC -shared without GNU ld will not create a library from C++
13988 # object files and a static libstdc++, better avoid it by now
13989 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13990 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13992 hardcode_libdir_flag_spec_F77=
13993 hardcode_shlibpath_var_F77=no
13994 runpath_var='LD_RUN_PATH'
13995 ;;
13996
13997 uts4*)
13998 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13999 hardcode_libdir_flag_spec_F77='-L$libdir'
14000 hardcode_shlibpath_var_F77=no
14001 ;;
14002
14003 *)
14004 ld_shlibs_F77=no
14005 ;;
14006 esac
14007 fi
14008
14009echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14010echo "${ECHO_T}$ld_shlibs_F77" >&6
14011test "$ld_shlibs_F77" = no && can_build_shared=no
14012
14013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14014if test "$GCC" = yes; then
14015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14016fi
14017
14018#
14019# Do we need to explicitly link libc?
14020#
14021case "x$archive_cmds_need_lc_F77" in
14022x|xyes)
14023 # Assume -lc should be added
14024 archive_cmds_need_lc_F77=yes
14025
14026 if test "$enable_shared" = yes && test "$GCC" = yes; then
14027 case $archive_cmds_F77 in
14028 *'~'*)
14029 # FIXME: we may have to deal with multi-command sequences.
14030 ;;
14031 '$CC '*)
14032 # Test whether the compiler implicitly links with -lc since on some
14033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14034 # to ld, don't add -lc before -lgcc.
14035 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14036echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14037 $rm conftest*
14038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } 2>conftest.err; then
14045 soname=conftest
14046 lib=conftest
14047 libobjs=conftest.$ac_objext
14048 deplibs=
14049 wl=$lt_prog_compiler_wl_F77
14050 compiler_flags=-v
14051 linker_flags=-v
14052 verstring=
14053 output_objdir=.
14054 libname=conftest
14055 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14056 allow_undefined_flag_F77=
14057 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14058 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }
14062 then
14063 archive_cmds_need_lc_F77=no
14064 else
14065 archive_cmds_need_lc_F77=yes
14066 fi
14067 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14068 else
14069 cat conftest.err 1>&5
14070 fi
14071 $rm conftest*
14072 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14073echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14074 ;;
14075 esac
14076 fi
14077 ;;
14078esac
14079
14080echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14081echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14082hardcode_action_F77=
14083if test -n "$hardcode_libdir_flag_spec_F77" || \
14084 test -n "$runpath_var F77" || \
14085 test "X$hardcode_automatic_F77"="Xyes" ; then
14086
14087 # We can hardcode non-existant directories.
14088 if test "$hardcode_direct_F77" != no &&
14089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14090 # have to relink, otherwise we might link with an installed library
14091 # when we should be linking with a yet-to-be-installed one
14092 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14093 test "$hardcode_minus_L_F77" != no; then
14094 # Linking always hardcodes the temporary library directory.
14095 hardcode_action_F77=relink
14096 else
14097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14098 hardcode_action_F77=immediate
14099 fi
14100else
14101 # We cannot hardcode anything, or else we can only hardcode existing
14102 # directories.
14103 hardcode_action_F77=unsupported
14104fi
14105echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14106echo "${ECHO_T}$hardcode_action_F77" >&6
14107
14108if test "$hardcode_action_F77" = relink; then
14109 # Fast installation is not supported
14110 enable_fast_install=no
14111elif test "$shlibpath_overrides_runpath" = yes ||
14112 test "$enable_shared" = no; then
14113 # Fast installation is not necessary
14114 enable_fast_install=needless
14115fi
14116
14117striplib=
14118old_striplib=
14119echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14120echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14121if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14124 echo "$as_me:$LINENO: result: yes" >&5
14125echo "${ECHO_T}yes" >&6
14126else
14127# FIXME - insert some real tests, host_os isn't really good enough
14128 case $host_os in
14129 darwin*)
14130 if test -n "$STRIP" ; then
14131 striplib="$STRIP -x"
14132 echo "$as_me:$LINENO: result: yes" >&5
14133echo "${ECHO_T}yes" >&6
14134 else
14135 echo "$as_me:$LINENO: result: no" >&5
14136echo "${ECHO_T}no" >&6
14137fi
14138 ;;
14139 *)
14140 echo "$as_me:$LINENO: result: no" >&5
14141echo "${ECHO_T}no" >&6
14142 ;;
14143 esac
14144fi
14145
14146echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14147echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14148library_names_spec=
14149libname_spec='lib$name'
14150soname_spec=
14151shrext=".so"
14152postinstall_cmds=
14153postuninstall_cmds=
14154finish_cmds=
14155finish_eval=
14156shlibpath_var=
14157shlibpath_overrides_runpath=unknown
14158version_type=none
14159dynamic_linker="$host_os ld.so"
14160sys_lib_dlsearch_path_spec="/lib /usr/lib"
14161if test "$GCC" = yes; then
14162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14163 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14164 # if the path contains ";" then we assume it to be the separator
14165 # otherwise default to the standard path separator (i.e. ":") - it is
14166 # assumed that no part of a normal pathname contains ";" but that should
14167 # okay in the real world where ";" in dirpaths is itself problematic.
14168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14169 else
14170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14171 fi
14172else
14173 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14174fi
14175need_lib_prefix=unknown
14176hardcode_into_libs=no
14177
14178# when you set need_version to no, make sure it does not cause -set_version
14179# flags to be left without arguments
14180need_version=unknown
14181
14182case $host_os in
14183aix3*)
14184 version_type=linux
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14186 shlibpath_var=LIBPATH
14187
14188 # AIX 3 has no versioning support, so we append a major version to the name.
14189 soname_spec='${libname}${release}${shared_ext}$major'
14190 ;;
14191
14192aix4* | aix5*)
14193 version_type=linux
14194 need_lib_prefix=no
14195 need_version=no
14196 hardcode_into_libs=yes
14197 if test "$host_cpu" = ia64; then
14198 # AIX 5 supports IA64
14199 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 else
14202 # With GCC up to 2.95.x, collect2 would create an import file
14203 # for dependence libraries. The import file would start with
14204 # the line `#! .'. This would cause the generated library to
14205 # depend on `.', always an invalid library. This was fixed in
14206 # development snapshots of GCC prior to 3.0.
14207 case $host_os in
14208 aix4 | aix4.[01] | aix4.[01].*)
14209 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14210 echo ' yes '
14211 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14212 :
14213 else
14214 can_build_shared=no
14215 fi
14216 ;;
14217 esac
14218 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14219 # soname into executable. Probably we can add versioning support to
14220 # collect2, so additional links can be useful in future.
14221 if test "$aix_use_runtimelinking" = yes; then
14222 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14223 # instead of lib<name>.a to let people know that these are not
14224 # typical AIX shared libraries.
14225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14226 else
14227 # We preserve .a as extension for shared libraries through AIX4.2
14228 # and later when we are not doing run time linking.
14229 library_names_spec='${libname}${release}.a $libname.a'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 fi
14232 shlibpath_var=LIBPATH
14233 fi
14234 ;;
14235
14236amigaos*)
14237 library_names_spec='$libname.ixlibrary $libname.a'
14238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14239 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'
14240 ;;
14241
14242beos*)
14243 library_names_spec='${libname}${shared_ext}'
14244 dynamic_linker="$host_os ld.so"
14245 shlibpath_var=LIBRARY_PATH
14246 ;;
14247
14248bsdi4*)
14249 version_type=linux
14250 need_version=no
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14257 # the default ld.so.conf also contains /usr/contrib/lib and
14258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14259 # libtool to hard-code these into programs
14260 ;;
14261
14262cygwin* | mingw* | pw32*)
14263 version_type=windows
14264 shrext=".dll"
14265 need_version=no
14266 need_lib_prefix=no
14267
14268 case $GCC,$host_os in
14269 yes,cygwin* | yes,mingw* | yes,pw32*)
14270 library_names_spec='$libname.dll.a'
14271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272 postinstall_cmds='base_file=`basename \${file}`~
14273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14274 dldir=$destdir/`dirname \$dlpath`~
14275 test -d \$dldir || mkdir -p \$dldir~
14276 $install_prog $dir/$dlname \$dldir/$dlname'
14277 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14278 dlpath=$dir/\$dldll~
14279 $rm \$dlpath'
14280 shlibpath_overrides_runpath=yes
14281
14282 case $host_os in
14283 cygwin*)
14284 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14285 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14287 ;;
14288 mingw*)
14289 # MinGW DLLs use traditional 'lib' prefix
14290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14292 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14293 # It is most probably a Windows format PATH printed by
14294 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14295 # path with ; separators, and with drive letters. We can handle the
14296 # drive letters (cygwin fileutils understands them), so leave them,
14297 # especially as we might pass files found there to a mingw objdump,
14298 # which wouldn't understand a cygwinified path. Ahh.
14299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14300 else
14301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14302 fi
14303 ;;
14304 pw32*)
14305 # pw32 DLLs use 'pw' prefix rather than 'lib'
14306 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14307 ;;
14308 esac
14309 ;;
14310
14311 *)
14312 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14313 ;;
14314 esac
14315 dynamic_linker='Win32 ld.exe'
14316 # FIXME: first we should search . and the directory the executable is in
14317 shlibpath_var=PATH
14318 ;;
14319
14320darwin* | rhapsody*)
14321 dynamic_linker="$host_os dyld"
14322 version_type=darwin
14323 need_lib_prefix=no
14324 need_version=no
14325 # FIXME: Relying on posixy $() will cause problems for
14326 # cross-compilation, but unfortunately the echo tests do not
14327 # yet detect zsh echo's removal of \ escapes.
14328 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14329 soname_spec='${libname}${release}${major}$shared_ext'
14330 shlibpath_overrides_runpath=yes
14331 shlibpath_var=DYLD_LIBRARY_PATH
14332 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14333 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14334 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14335 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"`
14336 fi
14337 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14338 ;;
14339
14340dgux*)
14341 version_type=linux
14342 need_lib_prefix=no
14343 need_version=no
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 ;;
14348
14349freebsd1*)
14350 dynamic_linker=no
14351 ;;
14352
14353freebsd*)
14354 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14355 version_type=freebsd-$objformat
14356 case $version_type in
14357 freebsd-elf*)
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14359 need_version=no
14360 need_lib_prefix=no
14361 ;;
14362 freebsd-*)
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14364 need_version=yes
14365 ;;
14366 esac
14367 shlibpath_var=LD_LIBRARY_PATH
14368 case $host_os in
14369 freebsd2*)
14370 shlibpath_overrides_runpath=yes
14371 ;;
14372 freebsd3.01* | freebsdelf3.01*)
14373 shlibpath_overrides_runpath=yes
14374 hardcode_into_libs=yes
14375 ;;
14376 *) # from 3.2 on
14377 shlibpath_overrides_runpath=no
14378 hardcode_into_libs=yes
14379 ;;
14380 esac
14381 ;;
14382
14383gnu*)
14384 version_type=linux
14385 need_lib_prefix=no
14386 need_version=no
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 hardcode_into_libs=yes
14391 ;;
14392
14393hpux9* | hpux10* | hpux11*)
14394 # Give a soname corresponding to the major version so that dld.sl refuses to
14395 # link against other versions.
14396 version_type=sunos
14397 need_lib_prefix=no
14398 need_version=no
14399 case "$host_cpu" in
14400 ia64*)
14401 shrext='.so'
14402 hardcode_into_libs=yes
14403 dynamic_linker="$host_os dld.so"
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 if test "X$HPUX_IA64_MODE" = X32; then
14409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14410 else
14411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14412 fi
14413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14414 ;;
14415 hppa*64*)
14416 shrext='.sl'
14417 hardcode_into_libs=yes
14418 dynamic_linker="$host_os dld.sl"
14419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 soname_spec='${libname}${release}${shared_ext}$major'
14423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14425 ;;
14426 *)
14427 shrext='.sl'
14428 dynamic_linker="$host_os dld.sl"
14429 shlibpath_var=SHLIB_PATH
14430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 ;;
14434 esac
14435 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14436 postinstall_cmds='chmod 555 $lib'
14437 ;;
14438
14439irix5* | irix6* | nonstopux*)
14440 case $host_os in
14441 nonstopux*) version_type=nonstopux ;;
14442 *)
14443 if test "$lt_cv_prog_gnu_ld" = yes; then
14444 version_type=linux
14445 else
14446 version_type=irix
14447 fi ;;
14448 esac
14449 need_lib_prefix=no
14450 need_version=no
14451 soname_spec='${libname}${release}${shared_ext}$major'
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14453 case $host_os in
14454 irix5* | nonstopux*)
14455 libsuff= shlibsuff=
14456 ;;
14457 *)
14458 case $LD in # libtool.m4 will add one of these switches to LD
14459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14460 libsuff= shlibsuff= libmagic=32-bit;;
14461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14462 libsuff=32 shlibsuff=N32 libmagic=N32;;
14463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14464 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14465 *) libsuff= shlibsuff= libmagic=never-match;;
14466 esac
14467 ;;
14468 esac
14469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14470 shlibpath_overrides_runpath=no
14471 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14472 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14473 hardcode_into_libs=yes
14474 ;;
14475
14476# No shared lib support for Linux oldld, aout, or coff.
14477linux*oldld* | linux*aout* | linux*coff*)
14478 dynamic_linker=no
14479 ;;
14480
14481# This must be Linux ELF.
14482linux*)
14483 version_type=linux
14484 need_lib_prefix=no
14485 need_version=no
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=no
14491 # This implies no fast_install, which is unacceptable.
14492 # Some rework will be needed to allow for fast_install
14493 # before this can be enabled.
14494 hardcode_into_libs=yes
14495
14496 # We used to test for /lib/ld.so.1 and disable shared libraries on
14497 # powerpc, because MkLinux only supported shared libraries with the
14498 # GNU dynamic linker. Since this was broken with cross compilers,
14499 # most powerpc-linux boxes support dynamic linking these days and
14500 # people can always --disable-shared, the test was removed, and we
14501 # assume the GNU/Linux dynamic linker is in use.
14502 dynamic_linker='GNU/Linux ld.so'
14503 ;;
14504
14505netbsd*)
14506 version_type=sunos
14507 need_lib_prefix=no
14508 need_version=no
14509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14512 dynamic_linker='NetBSD (a.out) ld.so'
14513 else
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 dynamic_linker='NetBSD ld.elf_so'
14517 fi
14518 shlibpath_var=LD_LIBRARY_PATH
14519 shlibpath_overrides_runpath=yes
14520 hardcode_into_libs=yes
14521 ;;
14522
14523newsos6)
14524 version_type=linux
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14528 ;;
14529
14530nto-qnx)
14531 version_type=linux
14532 need_lib_prefix=no
14533 need_version=no
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 ;;
14539
14540openbsd*)
14541 version_type=sunos
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14548 case $host_os in
14549 openbsd2.[89] | openbsd2.[89].*)
14550 shlibpath_overrides_runpath=no
14551 ;;
14552 *)
14553 shlibpath_overrides_runpath=yes
14554 ;;
14555 esac
14556 else
14557 shlibpath_overrides_runpath=yes
14558 fi
14559 ;;
14560
14561os2*)
14562 libname_spec='$name'
14563 shrext=".dll"
14564 need_lib_prefix=no
14565 library_names_spec='$libname${shared_ext} $libname.a'
14566 dynamic_linker='OS/2 ld.exe'
14567 shlibpath_var=LIBPATH
14568 ;;
14569
14570osf3* | osf4* | osf5*)
14571 version_type=osf
14572 need_lib_prefix=no
14573 need_version=no
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14579 ;;
14580
14581sco3.2v5*)
14582 version_type=osf
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 ;;
14587
14588solaris*)
14589 version_type=linux
14590 need_lib_prefix=no
14591 need_version=no
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596 hardcode_into_libs=yes
14597 # ldd complains unless libraries are executable
14598 postinstall_cmds='chmod +x $lib'
14599 ;;
14600
14601sunos4*)
14602 version_type=sunos
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes
14607 if test "$with_gnu_ld" = yes; then
14608 need_lib_prefix=no
14609 fi
14610 need_version=yes
14611 ;;
14612
14613sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14614 version_type=linux
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 case $host_vendor in
14619 sni)
14620 shlibpath_overrides_runpath=no
14621 need_lib_prefix=no
14622 export_dynamic_flag_spec='${wl}-Blargedynsym'
14623 runpath_var=LD_RUN_PATH
14624 ;;
14625 siemens)
14626 need_lib_prefix=no
14627 ;;
14628 motorola)
14629 need_lib_prefix=no
14630 need_version=no
14631 shlibpath_overrides_runpath=no
14632 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14633 ;;
14634 esac
14635 ;;
14636
14637sysv4*MP*)
14638 if test -d /usr/nec ;then
14639 version_type=linux
14640 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14641 soname_spec='$libname${shared_ext}.$major'
14642 shlibpath_var=LD_LIBRARY_PATH
14643 fi
14644 ;;
14645
14646uts4*)
14647 version_type=linux
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14651 ;;
14652
14653*)
14654 dynamic_linker=no
14655 ;;
14656esac
14657echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14658echo "${ECHO_T}$dynamic_linker" >&6
14659test "$dynamic_linker" = no && can_build_shared=no
14660
14661
14662# The else clause should only fire when bootstrapping the
14663# libtool distribution, otherwise you forgot to ship ltmain.sh
14664# with your package, and you will get complaints that there are
14665# no rules to generate ltmain.sh.
14666if test -f "$ltmain"; then
14667 # See if we are running on zsh, and set the options which allow our commands through
14668 # without removal of \ escapes.
14669 if test -n "${ZSH_VERSION+set}" ; then
14670 setopt NO_GLOB_SUBST
14671 fi
14672 # Now quote all the things that may contain metacharacters while being
14673 # careful not to overquote the AC_SUBSTed values. We take copies of the
14674 # variables and quote the copies for generation of the libtool script.
14675 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14678 deplibs_check_method reload_flag reload_cmds need_locks \
14679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14680 lt_cv_sys_global_symbol_to_c_name_address \
14681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14682 old_postinstall_cmds old_postuninstall_cmds \
14683 compiler_F77 \
14684 CC_F77 \
14685 LD_F77 \
14686 lt_prog_compiler_wl_F77 \
14687 lt_prog_compiler_pic_F77 \
14688 lt_prog_compiler_static_F77 \
14689 lt_prog_compiler_no_builtin_flag_F77 \
14690 export_dynamic_flag_spec_F77 \
14691 thread_safe_flag_spec_F77 \
14692 whole_archive_flag_spec_F77 \
14693 enable_shared_with_static_runtimes_F77 \
14694 old_archive_cmds_F77 \
14695 old_archive_from_new_cmds_F77 \
14696 predep_objects_F77 \
14697 postdep_objects_F77 \
14698 predeps_F77 \
14699 postdeps_F77 \
14700 compiler_lib_search_path_F77 \
14701 archive_cmds_F77 \
14702 archive_expsym_cmds_F77 \
14703 postinstall_cmds_F77 \
14704 postuninstall_cmds_F77 \
14705 old_archive_from_expsyms_cmds_F77 \
14706 allow_undefined_flag_F77 \
14707 no_undefined_flag_F77 \
14708 export_symbols_cmds_F77 \
14709 hardcode_libdir_flag_spec_F77 \
14710 hardcode_libdir_flag_spec_ld_F77 \
14711 hardcode_libdir_separator_F77 \
14712 hardcode_automatic_F77 \
14713 module_cmds_F77 \
14714 module_expsym_cmds_F77 \
14715 lt_cv_prog_compiler_c_o_F77 \
14716 exclude_expsyms_F77 \
14717 include_expsyms_F77; do
14718
14719 case $var in
14720 old_archive_cmds_F77 | \
14721 old_archive_from_new_cmds_F77 | \
14722 archive_cmds_F77 | \
14723 archive_expsym_cmds_F77 | \
14724 module_cmds_F77 | \
14725 module_expsym_cmds_F77 | \
14726 old_archive_from_expsyms_cmds_F77 | \
14727 export_symbols_cmds_F77 | \
14728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14729 postinstall_cmds | postuninstall_cmds | \
14730 old_postinstall_cmds | old_postuninstall_cmds | \
14731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14732 # Double-quote double-evaled strings.
14733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14734 ;;
14735 *)
14736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14737 ;;
14738 esac
14739 done
14740
14741 case $lt_echo in
14742 *'\$0 --fallback-echo"')
14743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14744 ;;
14745 esac
14746
14747cfgfile="$ofile"
14748
14749 cat <<__EOF__ >> "$cfgfile"
14750# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14751
14752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14753
14754# Shell to use when invoking shell scripts.
14755SHELL=$lt_SHELL
14756
14757# Whether or not to build shared libraries.
14758build_libtool_libs=$enable_shared
14759
14760# Whether or not to build static libraries.
14761build_old_libs=$enable_static
14762
14763# Whether or not to add -lc for building shared libraries.
14764build_libtool_need_lc=$archive_cmds_need_lc_F77
14765
14766# Whether or not to disallow shared libs when runtime libs are static
14767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14768
14769# Whether or not to optimize for fast installation.
14770fast_install=$enable_fast_install
14771
14772# The host system.
14773host_alias=$host_alias
14774host=$host
14775
14776# An echo program that does not interpret backslashes.
14777echo=$lt_echo
14778
14779# The archiver.
14780AR=$lt_AR
14781AR_FLAGS=$lt_AR_FLAGS
14782
14783# A C compiler.
14784LTCC=$lt_LTCC
14785
14786# A language-specific compiler.
14787CC=$lt_compiler_F77
14788
14789# Is the compiler the GNU C compiler?
14790with_gcc=$GCC_F77
14791
14792# An ERE matcher.
14793EGREP=$lt_EGREP
14794
14795# The linker used to build libraries.
14796LD=$lt_LD_F77
14797
14798# Whether we need hard or soft links.
14799LN_S=$lt_LN_S
14800
14801# A BSD-compatible nm program.
14802NM=$lt_NM
14803
14804# A symbol stripping program
14805STRIP=$STRIP
14806
14807# Used to examine libraries when file_magic_cmd begins "file"
14808MAGIC_CMD=$MAGIC_CMD
14809
14810# Used on cygwin: DLL creation program.
14811DLLTOOL="$DLLTOOL"
14812
14813# Used on cygwin: object dumper.
14814OBJDUMP="$OBJDUMP"
14815
14816# Used on cygwin: assembler.
14817AS="$AS"
14818
14819# The name of the directory that contains temporary libtool files.
14820objdir=$objdir
14821
14822# How to create reloadable object files.
14823reload_flag=$lt_reload_flag
14824reload_cmds=$lt_reload_cmds
14825
14826# How to pass a linker flag through the compiler.
14827wl=$lt_lt_prog_compiler_wl_F77
14828
14829# Object file suffix (normally "o").
14830objext="$ac_objext"
14831
14832# Old archive suffix (normally "a").
14833libext="$libext"
14834
14835# Shared library suffix (normally ".so").
14836shrext='$shrext'
14837
14838# Executable file suffix (normally "").
14839exeext="$exeext"
14840
14841# Additional compiler flags for building library objects.
14842pic_flag=$lt_lt_prog_compiler_pic_F77
14843pic_mode=$pic_mode
14844
14845# What is the maximum length of a command?
14846max_cmd_len=$lt_cv_sys_max_cmd_len
14847
14848# Does compiler simultaneously support -c and -o options?
14849compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14850
14851# Must we lock files when doing compilation ?
14852need_locks=$lt_need_locks
14853
14854# Do we need the lib prefix for modules?
14855need_lib_prefix=$need_lib_prefix
14856
14857# Do we need a version for libraries?
14858need_version=$need_version
14859
14860# Whether dlopen is supported.
14861dlopen_support=$enable_dlopen
14862
14863# Whether dlopen of programs is supported.
14864dlopen_self=$enable_dlopen_self
14865
14866# Whether dlopen of statically linked programs is supported.
14867dlopen_self_static=$enable_dlopen_self_static
14868
14869# Compiler flag to prevent dynamic linking.
14870link_static_flag=$lt_lt_prog_compiler_static_F77
14871
14872# Compiler flag to turn off builtin functions.
14873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14874
14875# Compiler flag to allow reflexive dlopens.
14876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14877
14878# Compiler flag to generate shared objects directly from archives.
14879whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14880
14881# Compiler flag to generate thread-safe objects.
14882thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14883
14884# Library versioning type.
14885version_type=$version_type
14886
14887# Format of library name prefix.
14888libname_spec=$lt_libname_spec
14889
14890# List of archive names. First name is the real one, the rest are links.
14891# The last name is the one that the linker finds with -lNAME.
14892library_names_spec=$lt_library_names_spec
14893
14894# The coded name of the library, if different from the real name.
14895soname_spec=$lt_soname_spec
14896
14897# Commands used to build and install an old-style archive.
14898RANLIB=$lt_RANLIB
14899old_archive_cmds=$lt_old_archive_cmds_F77
14900old_postinstall_cmds=$lt_old_postinstall_cmds
14901old_postuninstall_cmds=$lt_old_postuninstall_cmds
14902
14903# Create an old-style archive from a shared archive.
14904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14905
14906# Create a temporary old-style archive to link instead of a shared archive.
14907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14908
14909# Commands used to build and install a shared archive.
14910archive_cmds=$lt_archive_cmds_F77
14911archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14912postinstall_cmds=$lt_postinstall_cmds
14913postuninstall_cmds=$lt_postuninstall_cmds
14914
14915# Commands used to build a loadable module (assumed same as above if empty)
14916module_cmds=$lt_module_cmds_F77
14917module_expsym_cmds=$lt_module_expsym_cmds_F77
14918
14919# Commands to strip libraries.
14920old_striplib=$lt_old_striplib
14921striplib=$lt_striplib
14922
14923# Dependencies to place before the objects being linked to create a
14924# shared library.
14925predep_objects=$lt_predep_objects_F77
14926
14927# Dependencies to place after the objects being linked to create a
14928# shared library.
14929postdep_objects=$lt_postdep_objects_F77
14930
14931# Dependencies to place before the objects being linked to create a
14932# shared library.
14933predeps=$lt_predeps_F77
14934
14935# Dependencies to place after the objects being linked to create a
14936# shared library.
14937postdeps=$lt_postdeps_F77
14938
14939# The library search path used internally by the compiler when linking
14940# a shared library.
14941compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14942
14943# Method to check whether dependent libraries are shared objects.
14944deplibs_check_method=$lt_deplibs_check_method
14945
14946# Command to use when deplibs_check_method == file_magic.
14947file_magic_cmd=$lt_file_magic_cmd
14948
14949# Flag that allows shared libraries with undefined symbols to be built.
14950allow_undefined_flag=$lt_allow_undefined_flag_F77
14951
14952# Flag that forces no undefined symbols.
14953no_undefined_flag=$lt_no_undefined_flag_F77
14954
14955# Commands used to finish a libtool library installation in a directory.
14956finish_cmds=$lt_finish_cmds
14957
14958# Same as above, but a single script fragment to be evaled but not shown.
14959finish_eval=$lt_finish_eval
14960
14961# Take the output of nm and produce a listing of raw symbols and C names.
14962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14963
14964# Transform the output of nm in a proper C declaration
14965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14966
14967# Transform the output of nm in a C name address pair
14968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14969
14970# This is the shared library runtime path variable.
14971runpath_var=$runpath_var
14972
14973# This is the shared library path variable.
14974shlibpath_var=$shlibpath_var
14975
14976# Is shlibpath searched before the hard-coded library search path?
14977shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14978
14979# How to hardcode a shared library path into an executable.
14980hardcode_action=$hardcode_action_F77
14981
14982# Whether we should hardcode library paths into libraries.
14983hardcode_into_libs=$hardcode_into_libs
14984
14985# Flag to hardcode \$libdir into a binary during linking.
14986# This must work even if \$libdir does not exist.
14987hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14988
14989# If ld is used when linking, flag to hardcode \$libdir into
14990# a binary during linking. This must work even if \$libdir does
14991# not exist.
14992hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14993
14994# Whether we need a single -rpath flag with a separated argument.
14995hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14996
14997# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14998# resulting binary.
14999hardcode_direct=$hardcode_direct_F77
15000
15001# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15002# resulting binary.
15003hardcode_minus_L=$hardcode_minus_L_F77
15004
15005# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15006# the resulting binary.
15007hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15008
15009# Set to yes if building a shared library automatically hardcodes DIR into the library
15010# and all subsequent libraries and executables linked against it.
15011hardcode_automatic=$hardcode_automatic_F77
15012
15013# Variables whose values should be saved in libtool wrapper scripts and
15014# restored at relink time.
15015variables_saved_for_relink="$variables_saved_for_relink"
15016
15017# Whether libtool must link a program against all its dependency libraries.
15018link_all_deplibs=$link_all_deplibs_F77
15019
15020# Compile-time system search path for libraries
15021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15022
15023# Run-time system search path for libraries
15024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15025
15026# Fix the shell variable \$srcfile for the compiler.
15027fix_srcfile_path="$fix_srcfile_path_F77"
15028
15029# Set to yes if exported symbols are required.
15030always_export_symbols=$always_export_symbols_F77
15031
15032# The commands to list exported symbols.
15033export_symbols_cmds=$lt_export_symbols_cmds_F77
15034
15035# The commands to extract the exported symbol list from a shared archive.
15036extract_expsyms_cmds=$lt_extract_expsyms_cmds
15037
15038# Symbols that should not be listed in the preloaded symbols.
15039exclude_expsyms=$lt_exclude_expsyms_F77
15040
15041# Symbols that must always be exported.
15042include_expsyms=$lt_include_expsyms_F77
15043
15044# ### END LIBTOOL TAG CONFIG: $tagname
15045
15046__EOF__
15047
15048
15049else
15050 # If there is no Makefile yet, we rely on a make rule to execute
15051 # `config.status --recheck' to rerun these tests and create the
15052 # libtool script then.
15053 test -f Makefile && make "$ltmain"
15054fi
15055
15056
15057ac_ext=c
15058ac_cpp='$CPP $CPPFLAGS'
15059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061ac_compiler_gnu=$ac_cv_c_compiler_gnu
15062
15063CC="$lt_save_CC"
15064
15065 else
15066 tagname=""
15067 fi
15068 ;;
15069
15070 GCJ)
15071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15072
15073
15074
15075# Source file extension for Java test sources.
15076ac_ext=java
15077
15078# Object file extension for compiled Java test sources.
15079objext=o
15080objext_GCJ=$objext
15081
15082# Code to be used in simple compile tests
15083lt_simple_compile_test_code="class foo {}\n"
15084
15085# Code to be used in simple link tests
15086lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15087
15088# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15089
15090# If no C compiler was specified, use CC.
15091LTCC=${LTCC-"$CC"}
15092
15093# Allow CC to be a program name with arguments.
15094compiler=$CC
15095
15096
15097# Allow CC to be a program name with arguments.
15098lt_save_CC="$CC"
15099CC=${GCJ-"gcj"}
15100compiler=$CC
15101compiler_GCJ=$CC
15102
15103# GCJ did not exist at the time GCC didn't implicitly link libc in.
15104archive_cmds_need_lc_GCJ=no
15105
15106## CAVEAT EMPTOR:
15107## There is no encapsulation within the following macros, do not change
15108## the running order or otherwise move them around unless you know exactly
15109## what you are doing...
15110
15111lt_prog_compiler_no_builtin_flag_GCJ=
15112
15113if test "$GCC" = yes; then
15114 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15115
15116 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15117echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15118if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120else
15121 lt_cv_prog_compiler_rtti_exceptions=no
15122 ac_outfile=conftest.$ac_objext
15123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15124 lt_compiler_flag="-fno-rtti -fno-exceptions"
15125 # Insert the option either (1) after the last *FLAGS variable, or
15126 # (2) before a word containing "conftest.", or (3) at the end.
15127 # Note that $ac_compile itself does not contain backslashes and begins
15128 # with a dollar sign (not a hyphen), so the echo should work correctly.
15129 # The option is referenced via a variable to avoid confusing sed.
15130 lt_compile=`echo "$ac_compile" | $SED \
15131 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000015134 (eval echo "\"\$as_me:15134: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015135 (eval "$lt_compile" 2>conftest.err)
15136 ac_status=$?
15137 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000015138 echo "$as_me:15138: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015139 if (exit $ac_status) && test -s "$ac_outfile"; then
15140 # The compiler can only warn and ignore the option if not recognized
15141 # So say no if there are warnings
15142 if test ! -s conftest.err; then
15143 lt_cv_prog_compiler_rtti_exceptions=yes
15144 fi
15145 fi
15146 $rm conftest*
15147
15148fi
15149echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15150echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15151
15152if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15153 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15154else
15155 :
15156fi
15157
15158fi
15159
15160lt_prog_compiler_wl_GCJ=
15161lt_prog_compiler_pic_GCJ=
15162lt_prog_compiler_static_GCJ=
15163
15164echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15165echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15166
15167 if test "$GCC" = yes; then
15168 lt_prog_compiler_wl_GCJ='-Wl,'
15169 lt_prog_compiler_static_GCJ='-static'
15170
15171 case $host_os in
15172 aix*)
15173 # All AIX code is PIC.
15174 if test "$host_cpu" = ia64; then
15175 # AIX 5 now supports IA64 processor
15176 lt_prog_compiler_static_GCJ='-Bstatic'
15177 fi
15178 ;;
15179
15180 amigaos*)
15181 # FIXME: we need at least 68020 code to build shared libraries, but
15182 # adding the `-m68020' flag to GCC prevents building anything better,
15183 # like `-m68040'.
15184 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15185 ;;
15186
15187 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15188 # PIC is the default for these OSes.
15189 ;;
15190
15191 mingw* | pw32* | os2*)
15192 # This hack is so that the source file can tell whether it is being
15193 # built for inclusion in a dll (and should export symbols for example).
15194 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15195 ;;
15196
15197 darwin* | rhapsody*)
15198 # PIC is the default on this platform
15199 # Common symbols not allowed in MH_DYLIB files
15200 lt_prog_compiler_pic_GCJ='-fno-common'
15201 ;;
15202
15203 msdosdjgpp*)
15204 # Just because we use GCC doesn't mean we suddenly get shared libraries
15205 # on systems that don't support them.
15206 lt_prog_compiler_can_build_shared_GCJ=no
15207 enable_shared=no
15208 ;;
15209
15210 sysv4*MP*)
15211 if test -d /usr/nec; then
15212 lt_prog_compiler_pic_GCJ=-Kconform_pic
15213 fi
15214 ;;
15215
15216 hpux*)
15217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15218 # not for PA HP-UX.
15219 case "$host_cpu" in
15220 hppa*64*|ia64*)
15221 # +Z the default
15222 ;;
15223 *)
15224 lt_prog_compiler_pic_GCJ='-fPIC'
15225 ;;
15226 esac
15227 ;;
15228
15229 *)
15230 lt_prog_compiler_pic_GCJ='-fPIC'
15231 ;;
15232 esac
15233 else
15234 # PORTME Check for flag to pass linker flags through the system compiler.
15235 case $host_os in
15236 aix*)
15237 lt_prog_compiler_wl_GCJ='-Wl,'
15238 if test "$host_cpu" = ia64; then
15239 # AIX 5 now supports IA64 processor
15240 lt_prog_compiler_static_GCJ='-Bstatic'
15241 else
15242 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15243 fi
15244 ;;
15245
15246 mingw* | pw32* | os2*)
15247 # This hack is so that the source file can tell whether it is being
15248 # built for inclusion in a dll (and should export symbols for example).
15249 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15250 ;;
15251
15252 hpux9* | hpux10* | hpux11*)
15253 lt_prog_compiler_wl_GCJ='-Wl,'
15254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15255 # not for PA HP-UX.
15256 case "$host_cpu" in
15257 hppa*64*|ia64*)
15258 # +Z the default
15259 ;;
15260 *)
15261 lt_prog_compiler_pic_GCJ='+Z'
15262 ;;
15263 esac
15264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15265 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15266 ;;
15267
15268 irix5* | irix6* | nonstopux*)
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 # PIC (with -KPIC) is the default.
15271 lt_prog_compiler_static_GCJ='-non_shared'
15272 ;;
15273
15274 newsos6)
15275 lt_prog_compiler_pic_GCJ='-KPIC'
15276 lt_prog_compiler_static_GCJ='-Bstatic'
15277 ;;
15278
15279 linux*)
15280 case $CC in
15281 icc|ecc)
15282 lt_prog_compiler_wl_GCJ='-Wl,'
15283 lt_prog_compiler_pic_GCJ='-KPIC'
15284 lt_prog_compiler_static_GCJ='-static'
15285 ;;
15286 ccc)
15287 lt_prog_compiler_wl_GCJ='-Wl,'
15288 # All Alpha code is PIC.
15289 lt_prog_compiler_static_GCJ='-non_shared'
15290 ;;
15291 esac
15292 ;;
15293
15294 osf3* | osf4* | osf5*)
15295 lt_prog_compiler_wl_GCJ='-Wl,'
15296 # All OSF/1 code is PIC.
15297 lt_prog_compiler_static_GCJ='-non_shared'
15298 ;;
15299
15300 sco3.2v5*)
15301 lt_prog_compiler_pic_GCJ='-Kpic'
15302 lt_prog_compiler_static_GCJ='-dn'
15303 ;;
15304
15305 solaris*)
15306 lt_prog_compiler_wl_GCJ='-Wl,'
15307 lt_prog_compiler_pic_GCJ='-KPIC'
15308 lt_prog_compiler_static_GCJ='-Bstatic'
15309 ;;
15310
15311 sunos4*)
15312 lt_prog_compiler_wl_GCJ='-Qoption ld '
15313 lt_prog_compiler_pic_GCJ='-PIC'
15314 lt_prog_compiler_static_GCJ='-Bstatic'
15315 ;;
15316
15317 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15318 lt_prog_compiler_wl_GCJ='-Wl,'
15319 lt_prog_compiler_pic_GCJ='-KPIC'
15320 lt_prog_compiler_static_GCJ='-Bstatic'
15321 ;;
15322
15323 sysv4*MP*)
15324 if test -d /usr/nec ;then
15325 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15326 lt_prog_compiler_static_GCJ='-Bstatic'
15327 fi
15328 ;;
15329
15330 uts4*)
15331 lt_prog_compiler_pic_GCJ='-pic'
15332 lt_prog_compiler_static_GCJ='-Bstatic'
15333 ;;
15334
15335 *)
15336 lt_prog_compiler_can_build_shared_GCJ=no
15337 ;;
15338 esac
15339 fi
15340
15341echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15342echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15343
15344#
15345# Check to make sure the PIC flag actually works.
15346#
15347if test -n "$lt_prog_compiler_pic_GCJ"; then
15348 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15349echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15350if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352else
15353 lt_prog_compiler_pic_works_GCJ=no
15354 ac_outfile=conftest.$ac_objext
15355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15356 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15357 # Insert the option either (1) after the last *FLAGS variable, or
15358 # (2) before a word containing "conftest.", or (3) at the end.
15359 # Note that $ac_compile itself does not contain backslashes and begins
15360 # with a dollar sign (not a hyphen), so the echo should work correctly.
15361 # The option is referenced via a variable to avoid confusing sed.
15362 lt_compile=`echo "$ac_compile" | $SED \
15363 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000015366 (eval echo "\"\$as_me:15366: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015367 (eval "$lt_compile" 2>conftest.err)
15368 ac_status=$?
15369 cat conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000015370 echo "$as_me:15370: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015371 if (exit $ac_status) && test -s "$ac_outfile"; then
15372 # The compiler can only warn and ignore the option if not recognized
15373 # So say no if there are warnings
15374 if test ! -s conftest.err; then
15375 lt_prog_compiler_pic_works_GCJ=yes
15376 fi
15377 fi
15378 $rm conftest*
15379
15380fi
15381echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15382echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15383
15384if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15385 case $lt_prog_compiler_pic_GCJ in
15386 "" | " "*) ;;
15387 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15388 esac
15389else
15390 lt_prog_compiler_pic_GCJ=
15391 lt_prog_compiler_can_build_shared_GCJ=no
15392fi
15393
15394fi
15395case "$host_os" in
15396 # For platforms which do not support PIC, -DPIC is meaningless:
15397 *djgpp*)
15398 lt_prog_compiler_pic_GCJ=
15399 ;;
15400 *)
15401 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15402 ;;
15403esac
15404
15405echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15406echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15407if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409else
15410 lt_cv_prog_compiler_c_o_GCJ=no
15411 $rm -r conftest 2>/dev/null
15412 mkdir conftest
15413 cd conftest
15414 mkdir out
15415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15416
15417 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15418 # that will create temporary files in the current directory regardless of
15419 # the output directory. Thus, making CWD read-only will cause this test
15420 # to fail, enabling locking or at least warning the user not to do parallel
15421 # builds.
15422 chmod -w .
15423
15424 lt_compiler_flag="-o out/conftest2.$ac_objext"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 lt_compile=`echo "$ac_compile" | $SED \
15430 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15432 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke866f10c2003-11-24 02:54:57 +000015433 (eval echo "\"\$as_me:15433: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015434 (eval "$lt_compile" 2>out/conftest.err)
15435 ac_status=$?
15436 cat out/conftest.err >&5
Brian Gaeke866f10c2003-11-24 02:54:57 +000015437 echo "$as_me:15437: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015438 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15439 then
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings
15442 if test ! -s out/conftest.err; then
15443 lt_cv_prog_compiler_c_o_GCJ=yes
15444 fi
15445 fi
15446 chmod u+w .
15447 $rm conftest* out/*
15448 rmdir out
15449 cd ..
15450 rmdir conftest
15451 $rm conftest*
15452
15453fi
15454echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15455echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15456
15457
15458hard_links="nottested"
15459if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15460 # do not overwrite the value of need_locks provided by the user
15461 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15462echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15463 hard_links=yes
15464 $rm conftest*
15465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15466 touch conftest.a
15467 ln conftest.a conftest.b 2>&5 || hard_links=no
15468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15469 echo "$as_me:$LINENO: result: $hard_links" >&5
15470echo "${ECHO_T}$hard_links" >&6
15471 if test "$hard_links" = no; then
15472 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15473echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15474 need_locks=warn
15475 fi
15476else
15477 need_locks=no
15478fi
15479
15480echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15481echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15482
15483 runpath_var=
15484 allow_undefined_flag_GCJ=
15485 enable_shared_with_static_runtimes_GCJ=no
15486 archive_cmds_GCJ=
15487 archive_expsym_cmds_GCJ=
15488 old_archive_From_new_cmds_GCJ=
15489 old_archive_from_expsyms_cmds_GCJ=
15490 export_dynamic_flag_spec_GCJ=
15491 whole_archive_flag_spec_GCJ=
15492 thread_safe_flag_spec_GCJ=
15493 hardcode_libdir_flag_spec_GCJ=
15494 hardcode_libdir_flag_spec_ld_GCJ=
15495 hardcode_libdir_separator_GCJ=
15496 hardcode_direct_GCJ=no
15497 hardcode_minus_L_GCJ=no
15498 hardcode_shlibpath_var_GCJ=unsupported
15499 link_all_deplibs_GCJ=unknown
15500 hardcode_automatic_GCJ=no
15501 module_cmds_GCJ=
15502 module_expsym_cmds_GCJ=
15503 always_export_symbols_GCJ=no
15504 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15505 # include_expsyms should be a list of space-separated symbols to be *always*
15506 # included in the symbol list
15507 include_expsyms_GCJ=
15508 # exclude_expsyms can be an extended regexp of symbols to exclude
15509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15511 # as well as any symbol that contains `d'.
15512 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15514 # platforms (ab)use it in PIC code, but their linkers get confused if
15515 # the symbol is explicitly referenced. Since portable code cannot
15516 # rely on this symbol name, it's probably fine to never include it in
15517 # preloaded symbol tables.
15518 extract_expsyms_cmds=
15519
15520 case $host_os in
15521 cygwin* | mingw* | pw32*)
15522 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15523 # When not using gcc, we currently assume that we are using
15524 # Microsoft Visual C++.
15525 if test "$GCC" != yes; then
15526 with_gnu_ld=no
15527 fi
15528 ;;
15529 openbsd*)
15530 with_gnu_ld=no
15531 ;;
15532 esac
15533
15534 ld_shlibs_GCJ=yes
15535 if test "$with_gnu_ld" = yes; then
15536 # If archive_cmds runs LD, not CC, wlarc should be empty
15537 wlarc='${wl}'
15538
15539 # See if GNU ld supports shared libraries.
15540 case $host_os in
15541 aix3* | aix4* | aix5*)
15542 # On AIX/PPC, the GNU linker is very broken
15543 if test "$host_cpu" != ia64; then
15544 ld_shlibs_GCJ=no
15545 cat <<EOF 1>&2
15546
15547*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15548*** to be unable to reliably create shared libraries on AIX.
15549*** Therefore, libtool is disabling shared libraries support. If you
15550*** really care for shared libraries, you may want to modify your PATH
15551*** so that a non-GNU linker is found, and then restart.
15552
15553EOF
15554 fi
15555 ;;
15556
15557 amigaos*)
15558 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)'
15559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15560 hardcode_minus_L_GCJ=yes
15561
15562 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15563 # that the semantics of dynamic libraries on AmigaOS, at least up
15564 # to version 4, is to share data among multiple programs linked
15565 # with the same dynamic library. Since this doesn't match the
15566 # behavior of shared libraries on other platforms, we can't use
15567 # them.
15568 ld_shlibs_GCJ=no
15569 ;;
15570
15571 beos*)
15572 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15573 allow_undefined_flag_GCJ=unsupported
15574 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15575 # support --undefined. This deserves some investigation. FIXME
15576 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15577 else
15578 ld_shlibs_GCJ=no
15579 fi
15580 ;;
15581
15582 cygwin* | mingw* | pw32*)
15583 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15584 # as there is no search path for DLLs.
15585 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15586 allow_undefined_flag_GCJ=unsupported
15587 always_export_symbols_GCJ=no
15588 enable_shared_with_static_runtimes_GCJ=yes
15589 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15590
15591 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15592 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15593 # If the export-symbols file already is a .def file (1st line
15594 # is EXPORTS), use it as is; otherwise, prepend...
15595 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15596 cp $export_symbols $output_objdir/$soname.def;
15597 else
15598 echo EXPORTS > $output_objdir/$soname.def;
15599 cat $export_symbols >> $output_objdir/$soname.def;
15600 fi~
15601 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15602 else
15603 ld_shlibs=no
15604 fi
15605 ;;
15606
15607 netbsd*)
15608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15609 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15610 wlarc=
15611 else
15612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15614 fi
15615 ;;
15616
15617 solaris* | sysv5*)
15618 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15619 ld_shlibs_GCJ=no
15620 cat <<EOF 1>&2
15621
15622*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15623*** create shared libraries on Solaris systems. Therefore, libtool
15624*** is disabling shared libraries support. We urge you to upgrade GNU
15625*** binutils to release 2.9.1 or newer. Another option is to modify
15626*** your PATH or compiler configuration so that the native linker is
15627*** used, and then restart.
15628
15629EOF
15630 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15633 else
15634 ld_shlibs_GCJ=no
15635 fi
15636 ;;
15637
15638 sunos4*)
15639 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15640 wlarc=
15641 hardcode_direct_GCJ=yes
15642 hardcode_shlibpath_var_GCJ=no
15643 ;;
15644
15645 *)
15646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649 else
15650 ld_shlibs_GCJ=no
15651 fi
15652 ;;
15653 esac
15654
15655 if test "$ld_shlibs_GCJ" = yes; then
15656 runpath_var=LD_RUN_PATH
15657 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15658 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15659 # ancient GNU ld didn't support --whole-archive et. al.
15660 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15661 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15662 else
15663 whole_archive_flag_spec_GCJ=
15664 fi
15665 fi
15666 else
15667 # PORTME fill in a description of your system's linker (not GNU ld)
15668 case $host_os in
15669 aix3*)
15670 allow_undefined_flag_GCJ=unsupported
15671 always_export_symbols_GCJ=yes
15672 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'
15673 # Note: this linker hardcodes the directories in LIBPATH if there
15674 # are no directories specified by -L.
15675 hardcode_minus_L_GCJ=yes
15676 if test "$GCC" = yes && test -z "$link_static_flag"; then
15677 # Neither direct hardcoding nor static linking is supported with a
15678 # broken collect2.
15679 hardcode_direct_GCJ=unsupported
15680 fi
15681 ;;
15682
15683 aix4* | aix5*)
15684 if test "$host_cpu" = ia64; then
15685 # On IA64, the linker does run time linking by default, so we don't
15686 # have to do anything special.
15687 aix_use_runtimelinking=no
15688 exp_sym_flag='-Bexport'
15689 no_entry_flag=""
15690 else
15691 # If we're using GNU nm, then we don't want the "-C" option.
15692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15693 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15694 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'
15695 else
15696 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'
15697 fi
15698 aix_use_runtimelinking=no
15699
15700 # Test if we are trying to use run time linking or normal
15701 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15702 # need to do runtime linking.
15703 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15704 for ld_flag in $LDFLAGS; do
15705 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15706 aix_use_runtimelinking=yes
15707 break
15708 fi
15709 done
15710 esac
15711
15712 exp_sym_flag='-bexport'
15713 no_entry_flag='-bnoentry'
15714 fi
15715
15716 # When large executables or shared objects are built, AIX ld can
15717 # have problems creating the table of contents. If linking a library
15718 # or program results in "error TOC overflow" add -mminimal-toc to
15719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15721
15722 archive_cmds_GCJ=''
15723 hardcode_direct_GCJ=yes
15724 hardcode_libdir_separator_GCJ=':'
15725 link_all_deplibs_GCJ=yes
15726
15727 if test "$GCC" = yes; then
15728 case $host_os in aix4.012|aix4.012.*)
15729 # We only want to do this on AIX 4.2 and lower, the check
15730 # below for broken collect2 doesn't work under 4.3+
15731 collect2name=`${CC} -print-prog-name=collect2`
15732 if test -f "$collect2name" && \
15733 strings "$collect2name" | grep resolve_lib_name >/dev/null
15734 then
15735 # We have reworked collect2
15736 hardcode_direct_GCJ=yes
15737 else
15738 # We have old collect2
15739 hardcode_direct_GCJ=unsupported
15740 # It fails to find uninstalled libraries when the uninstalled
15741 # path is not listed in the libpath. Setting hardcode_minus_L
15742 # to unsupported forces relinking
15743 hardcode_minus_L_GCJ=yes
15744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15745 hardcode_libdir_separator_GCJ=
15746 fi
15747 esac
15748 shared_flag='-shared'
15749 else
15750 # not using gcc
15751 if test "$host_cpu" = ia64; then
15752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15753 # chokes on -Wl,-G. The following line is correct:
15754 shared_flag='-G'
15755 else
15756 if test "$aix_use_runtimelinking" = yes; then
15757 shared_flag='${wl}-G'
15758 else
15759 shared_flag='${wl}-bM:SRE'
15760 fi
15761 fi
15762 fi
15763
15764 # It seems that -bexpall does not export symbols beginning with
15765 # underscore (_), so it is better to generate a list of symbols to export.
15766 always_export_symbols_GCJ=yes
15767 if test "$aix_use_runtimelinking" = yes; then
15768 # Warning - without using the other runtime loading flags (-brtl),
15769 # -berok will link without error, but may produce a broken library.
15770 allow_undefined_flag_GCJ='-berok'
15771 # Determine the default libpath from the value encoded in an empty executable.
15772 cat >conftest.$ac_ext <<_ACEOF
15773#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015774/* confdefs.h. */
15775_ACEOF
15776cat confdefs.h >>conftest.$ac_ext
15777cat >>conftest.$ac_ext <<_ACEOF
15778/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015779
John Criswell47fdd832003-07-14 16:52:07 +000015780int
15781main ()
15782{
15783
15784 ;
15785 return 0;
15786}
15787_ACEOF
15788rm -f conftest.$ac_objext conftest$ac_exeext
15789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800
15801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15802}'`
15803# Check for a 64-bit object if we didn't find anything.
15804if 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; }
15805}'`; fi
15806else
15807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015808sed 's/^/| /' conftest.$ac_ext >&5
15809
John Criswell47fdd832003-07-14 16:52:07 +000015810fi
15811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15813
15814 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15815 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"
15816 else
15817 if test "$host_cpu" = ia64; then
15818 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15819 allow_undefined_flag_GCJ="-z nodefs"
15820 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"
15821 else
15822 # Determine the default libpath from the value encoded in an empty executable.
15823 cat >conftest.$ac_ext <<_ACEOF
15824#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015825/* confdefs.h. */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015830
John Criswell47fdd832003-07-14 16:52:07 +000015831int
15832main ()
15833{
15834
15835 ;
15836 return 0;
15837}
15838_ACEOF
15839rm -f conftest.$ac_objext conftest$ac_exeext
15840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15841 (eval $ac_link) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851
15852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15853}'`
15854# Check for a 64-bit object if we didn't find anything.
15855if 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; }
15856}'`; fi
15857else
15858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015859sed 's/^/| /' conftest.$ac_ext >&5
15860
John Criswell47fdd832003-07-14 16:52:07 +000015861fi
15862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15863if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15864
15865 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15866 # Warning - without using the other run time loading flags,
15867 # -berok will link without error, but may produce a broken library.
15868 no_undefined_flag_GCJ=' ${wl}-bernotok'
15869 allow_undefined_flag_GCJ=' ${wl}-berok'
15870 # -bexpall does not export symbols beginning with underscore (_)
15871 always_export_symbols_GCJ=yes
15872 # Exported symbols can be pulled into shared objects from archives
15873 whole_archive_flag_spec_GCJ=' '
15874 archive_cmds_need_lc_GCJ=yes
15875 # This is similar to how AIX traditionally builds it's shared libraries.
15876 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'
15877 fi
15878 fi
15879 ;;
15880
15881 amigaos*)
15882 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)'
15883 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15884 hardcode_minus_L_GCJ=yes
15885 # see comment about different semantics on the GNU ld section
15886 ld_shlibs_GCJ=no
15887 ;;
15888
15889 bsdi4*)
15890 export_dynamic_flag_spec_GCJ=-rdynamic
15891 ;;
15892
15893 cygwin* | mingw* | pw32*)
15894 # When not using gcc, we currently assume that we are using
15895 # Microsoft Visual C++.
15896 # hardcode_libdir_flag_spec is actually meaningless, as there is
15897 # no search path for DLLs.
15898 hardcode_libdir_flag_spec_GCJ=' '
15899 allow_undefined_flag_GCJ=unsupported
15900 # Tell ltmain to make .lib files, not .a files.
15901 libext=lib
15902 # Tell ltmain to make .dll files, not .so files.
15903 shrext=".dll"
15904 # FIXME: Setting linknames here is a bad hack.
15905 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15906 # The linker will automatically build a .lib file if we build a DLL.
15907 old_archive_From_new_cmds_GCJ='true'
15908 # FIXME: Should let the user specify the lib program.
15909 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15910 fix_srcfile_path='`cygpath -w "$srcfile"`'
15911 enable_shared_with_static_runtimes_GCJ=yes
15912 ;;
15913
15914 darwin* | rhapsody*)
15915 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15916 archive_cmds_need_lc_GCJ=no
15917 case "$host_os" in
15918 rhapsody* | darwin1.[012])
15919 allow_undefined_flag_GCJ='-undefined suppress'
15920 ;;
15921 *) # Darwin 1.3 on
15922 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15923 ;;
15924 esac
15925 # FIXME: Relying on posixy $() will cause problems for
15926 # cross-compilation, but unfortunately the echo tests do not
15927 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15928 # `"' quotes if we put them in here... so don't!
15929 lt_int_apple_cc_single_mod=no
15930 output_verbose_link_cmd='echo'
15931 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15932 lt_int_apple_cc_single_mod=yes
15933 fi
15934 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15935 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15936 else
15937 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'
15938 fi
15939 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15940 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15941 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15942 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}'
15943 else
15944 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}'
15945 fi
15946 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}'
15947 hardcode_direct_GCJ=no
15948 hardcode_automatic_GCJ=yes
15949 hardcode_shlibpath_var_GCJ=unsupported
15950 whole_archive_flag_spec_GCJ='-all_load $convenience'
15951 link_all_deplibs_GCJ=yes
15952 fi
15953 ;;
15954
15955 dgux*)
15956 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15957 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15958 hardcode_shlibpath_var_GCJ=no
15959 ;;
15960
15961 freebsd1*)
15962 ld_shlibs_GCJ=no
15963 ;;
15964
15965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15966 # support. Future versions do this automatically, but an explicit c++rt0.o
15967 # does not break anything, and helps significantly (at the cost of a little
15968 # extra space).
15969 freebsd2.2*)
15970 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15971 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15972 hardcode_direct_GCJ=yes
15973 hardcode_shlibpath_var_GCJ=no
15974 ;;
15975
15976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15977 freebsd2*)
15978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15979 hardcode_direct_GCJ=yes
15980 hardcode_minus_L_GCJ=yes
15981 hardcode_shlibpath_var_GCJ=no
15982 ;;
15983
15984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15985 freebsd*)
15986 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15987 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15988 hardcode_direct_GCJ=yes
15989 hardcode_shlibpath_var_GCJ=no
15990 ;;
15991
15992 hpux9*)
15993 if test "$GCC" = yes; then
15994 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'
15995 else
15996 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'
15997 fi
15998 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15999 hardcode_libdir_separator_GCJ=:
16000 hardcode_direct_GCJ=yes
16001
16002 # hardcode_minus_L: Not really in the search PATH,
16003 # but as the default location of the library.
16004 hardcode_minus_L_GCJ=yes
16005 export_dynamic_flag_spec_GCJ='${wl}-E'
16006 ;;
16007
16008 hpux10* | hpux11*)
16009 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16010 case "$host_cpu" in
16011 hppa*64*|ia64*)
16012 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16013 ;;
16014 *)
16015 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16016 ;;
16017 esac
16018 else
16019 case "$host_cpu" in
16020 hppa*64*|ia64*)
16021 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16022 ;;
16023 *)
16024 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16025 ;;
16026 esac
16027 fi
16028 if test "$with_gnu_ld" = no; then
16029 case "$host_cpu" in
16030 hppa*64*)
16031 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16032 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16033 hardcode_libdir_separator_GCJ=:
16034 hardcode_direct_GCJ=no
16035 hardcode_shlibpath_var_GCJ=no
16036 ;;
16037 ia64*)
16038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16039 hardcode_direct_GCJ=no
16040 hardcode_shlibpath_var_GCJ=no
16041
16042 # hardcode_minus_L: Not really in the search PATH,
16043 # but as the default location of the library.
16044 hardcode_minus_L_GCJ=yes
16045 ;;
16046 *)
16047 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16048 hardcode_libdir_separator_GCJ=:
16049 hardcode_direct_GCJ=yes
16050 export_dynamic_flag_spec_GCJ='${wl}-E'
16051
16052 # hardcode_minus_L: Not really in the search PATH,
16053 # but as the default location of the library.
16054 hardcode_minus_L_GCJ=yes
16055 ;;
16056 esac
16057 fi
16058 ;;
16059
16060 irix5* | irix6* | nonstopux*)
16061 if test "$GCC" = yes; then
16062 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'
16063 else
16064 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'
16065 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16066 fi
16067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator_GCJ=:
16069 link_all_deplibs_GCJ=yes
16070 ;;
16071
16072 netbsd*)
16073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16074 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16075 else
16076 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16077 fi
16078 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16079 hardcode_direct_GCJ=yes
16080 hardcode_shlibpath_var_GCJ=no
16081 ;;
16082
16083 newsos6)
16084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 hardcode_direct_GCJ=yes
16086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16087 hardcode_libdir_separator_GCJ=:
16088 hardcode_shlibpath_var_GCJ=no
16089 ;;
16090
16091 openbsd*)
16092 hardcode_direct_GCJ=yes
16093 hardcode_shlibpath_var_GCJ=no
16094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16095 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16096 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16097 export_dynamic_flag_spec_GCJ='${wl}-E'
16098 else
16099 case $host_os in
16100 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16101 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16103 ;;
16104 *)
16105 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16106 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16107 ;;
16108 esac
16109 fi
16110 ;;
16111
16112 os2*)
16113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114 hardcode_minus_L_GCJ=yes
16115 allow_undefined_flag_GCJ=unsupported
16116 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'
16117 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16118 ;;
16119
16120 osf3*)
16121 if test "$GCC" = yes; then
16122 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16123 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'
16124 else
16125 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16126 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'
16127 fi
16128 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16129 hardcode_libdir_separator_GCJ=:
16130 ;;
16131
16132 osf4* | osf5*) # as osf3* with the addition of -msym flag
16133 if test "$GCC" = yes; then
16134 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16135 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'
16136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16137 else
16138 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16139 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'
16140 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~
16141 $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'
16142
16143 # Both c and cxx compiler support -rpath directly
16144 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16145 fi
16146 hardcode_libdir_separator_GCJ=:
16147 ;;
16148
16149 sco3.2v5*)
16150 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16151 hardcode_shlibpath_var_GCJ=no
16152 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16153 runpath_var=LD_RUN_PATH
16154 hardcode_runpath_var=yes
16155 ;;
16156
16157 solaris*)
16158 no_undefined_flag_GCJ=' -z text'
16159 if test "$GCC" = yes; then
16160 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16161 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16162 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16163 else
16164 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16167 fi
16168 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16169 hardcode_shlibpath_var_GCJ=no
16170 case $host_os in
16171 solaris2.[0-5] | solaris2.[0-5].*) ;;
16172 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16173 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16174 esac
16175 link_all_deplibs_GCJ=yes
16176 ;;
16177
16178 sunos4*)
16179 if test "x$host_vendor" = xsequent; then
16180 # Use $CC to link under sequent, because it throws in some extra .o
16181 # files that make .init and .fini sections work.
16182 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16183 else
16184 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16185 fi
16186 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16187 hardcode_direct_GCJ=yes
16188 hardcode_minus_L_GCJ=yes
16189 hardcode_shlibpath_var_GCJ=no
16190 ;;
16191
16192 sysv4)
16193 case $host_vendor in
16194 sni)
16195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_direct_GCJ=yes # is this really true???
16197 ;;
16198 siemens)
16199 ## LD is ld it makes a PLAMLIB
16200 ## CC just makes a GrossModule.
16201 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16202 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16203 hardcode_direct_GCJ=no
16204 ;;
16205 motorola)
16206 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16208 ;;
16209 esac
16210 runpath_var='LD_RUN_PATH'
16211 hardcode_shlibpath_var_GCJ=no
16212 ;;
16213
16214 sysv4.3*)
16215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var_GCJ=no
16217 export_dynamic_flag_spec_GCJ='-Bexport'
16218 ;;
16219
16220 sysv4*MP*)
16221 if test -d /usr/nec; then
16222 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223 hardcode_shlibpath_var_GCJ=no
16224 runpath_var=LD_RUN_PATH
16225 hardcode_runpath_var=yes
16226 ld_shlibs_GCJ=yes
16227 fi
16228 ;;
16229
16230 sysv4.2uw2*)
16231 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_direct_GCJ=yes
16233 hardcode_minus_L_GCJ=no
16234 hardcode_shlibpath_var_GCJ=no
16235 hardcode_runpath_var=yes
16236 runpath_var=LD_RUN_PATH
16237 ;;
16238
16239 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16240 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16241 if test "$GCC" = yes; then
16242 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16243 else
16244 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 fi
16246 runpath_var='LD_RUN_PATH'
16247 hardcode_shlibpath_var_GCJ=no
16248 ;;
16249
16250 sysv5*)
16251 no_undefined_flag_GCJ=' -z text'
16252 # $CC -shared without GNU ld will not create a library from C++
16253 # object files and a static libstdc++, better avoid it by now
16254 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16256 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16257 hardcode_libdir_flag_spec_GCJ=
16258 hardcode_shlibpath_var_GCJ=no
16259 runpath_var='LD_RUN_PATH'
16260 ;;
16261
16262 uts4*)
16263 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16265 hardcode_shlibpath_var_GCJ=no
16266 ;;
16267
16268 *)
16269 ld_shlibs_GCJ=no
16270 ;;
16271 esac
16272 fi
16273
16274echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16275echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16276test "$ld_shlibs_GCJ" = no && can_build_shared=no
16277
16278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16279if test "$GCC" = yes; then
16280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16281fi
16282
16283#
16284# Do we need to explicitly link libc?
16285#
16286case "x$archive_cmds_need_lc_GCJ" in
16287x|xyes)
16288 # Assume -lc should be added
16289 archive_cmds_need_lc_GCJ=yes
16290
16291 if test "$enable_shared" = yes && test "$GCC" = yes; then
16292 case $archive_cmds_GCJ in
16293 *'~'*)
16294 # FIXME: we may have to deal with multi-command sequences.
16295 ;;
16296 '$CC '*)
16297 # Test whether the compiler implicitly links with -lc since on some
16298 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16299 # to ld, don't add -lc before -lgcc.
16300 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16301echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16302 $rm conftest*
16303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16304
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>&5
16307 ac_status=$?
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } 2>conftest.err; then
16310 soname=conftest
16311 lib=conftest
16312 libobjs=conftest.$ac_objext
16313 deplibs=
16314 wl=$lt_prog_compiler_wl_GCJ
16315 compiler_flags=-v
16316 linker_flags=-v
16317 verstring=
16318 output_objdir=.
16319 libname=conftest
16320 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16321 allow_undefined_flag_GCJ=
16322 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16323 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }
16327 then
16328 archive_cmds_need_lc_GCJ=no
16329 else
16330 archive_cmds_need_lc_GCJ=yes
16331 fi
16332 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16333 else
16334 cat conftest.err 1>&5
16335 fi
16336 $rm conftest*
16337 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16338echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16339 ;;
16340 esac
16341 fi
16342 ;;
16343esac
16344
16345echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16346echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16347hardcode_action_GCJ=
16348if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16349 test -n "$runpath_var GCJ" || \
16350 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16351
16352 # We can hardcode non-existant directories.
16353 if test "$hardcode_direct_GCJ" != no &&
16354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16355 # have to relink, otherwise we might link with an installed library
16356 # when we should be linking with a yet-to-be-installed one
16357 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16358 test "$hardcode_minus_L_GCJ" != no; then
16359 # Linking always hardcodes the temporary library directory.
16360 hardcode_action_GCJ=relink
16361 else
16362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16363 hardcode_action_GCJ=immediate
16364 fi
16365else
16366 # We cannot hardcode anything, or else we can only hardcode existing
16367 # directories.
16368 hardcode_action_GCJ=unsupported
16369fi
16370echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16371echo "${ECHO_T}$hardcode_action_GCJ" >&6
16372
16373if test "$hardcode_action_GCJ" = relink; then
16374 # Fast installation is not supported
16375 enable_fast_install=no
16376elif test "$shlibpath_overrides_runpath" = yes ||
16377 test "$enable_shared" = no; then
16378 # Fast installation is not necessary
16379 enable_fast_install=needless
16380fi
16381
16382striplib=
16383old_striplib=
16384echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16385echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16386if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16389 echo "$as_me:$LINENO: result: yes" >&5
16390echo "${ECHO_T}yes" >&6
16391else
16392# FIXME - insert some real tests, host_os isn't really good enough
16393 case $host_os in
16394 darwin*)
16395 if test -n "$STRIP" ; then
16396 striplib="$STRIP -x"
16397 echo "$as_me:$LINENO: result: yes" >&5
16398echo "${ECHO_T}yes" >&6
16399 else
16400 echo "$as_me:$LINENO: result: no" >&5
16401echo "${ECHO_T}no" >&6
16402fi
16403 ;;
16404 *)
16405 echo "$as_me:$LINENO: result: no" >&5
16406echo "${ECHO_T}no" >&6
16407 ;;
16408 esac
16409fi
16410
16411echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16412echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16413library_names_spec=
16414libname_spec='lib$name'
16415soname_spec=
16416shrext=".so"
16417postinstall_cmds=
16418postuninstall_cmds=
16419finish_cmds=
16420finish_eval=
16421shlibpath_var=
16422shlibpath_overrides_runpath=unknown
16423version_type=none
16424dynamic_linker="$host_os ld.so"
16425sys_lib_dlsearch_path_spec="/lib /usr/lib"
16426if test "$GCC" = yes; then
16427 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16428 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16429 # if the path contains ";" then we assume it to be the separator
16430 # otherwise default to the standard path separator (i.e. ":") - it is
16431 # assumed that no part of a normal pathname contains ";" but that should
16432 # okay in the real world where ";" in dirpaths is itself problematic.
16433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434 else
16435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16436 fi
16437else
16438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16439fi
16440need_lib_prefix=unknown
16441hardcode_into_libs=no
16442
16443# when you set need_version to no, make sure it does not cause -set_version
16444# flags to be left without arguments
16445need_version=unknown
16446
16447case $host_os in
16448aix3*)
16449 version_type=linux
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16451 shlibpath_var=LIBPATH
16452
16453 # AIX 3 has no versioning support, so we append a major version to the name.
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 ;;
16456
16457aix4* | aix5*)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 hardcode_into_libs=yes
16462 if test "$host_cpu" = ia64; then
16463 # AIX 5 supports IA64
16464 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 else
16467 # With GCC up to 2.95.x, collect2 would create an import file
16468 # for dependence libraries. The import file would start with
16469 # the line `#! .'. This would cause the generated library to
16470 # depend on `.', always an invalid library. This was fixed in
16471 # development snapshots of GCC prior to 3.0.
16472 case $host_os in
16473 aix4 | aix4.[01] | aix4.[01].*)
16474 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16475 echo ' yes '
16476 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16477 :
16478 else
16479 can_build_shared=no
16480 fi
16481 ;;
16482 esac
16483 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16484 # soname into executable. Probably we can add versioning support to
16485 # collect2, so additional links can be useful in future.
16486 if test "$aix_use_runtimelinking" = yes; then
16487 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16488 # instead of lib<name>.a to let people know that these are not
16489 # typical AIX shared libraries.
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 else
16492 # We preserve .a as extension for shared libraries through AIX4.2
16493 # and later when we are not doing run time linking.
16494 library_names_spec='${libname}${release}.a $libname.a'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 fi
16497 shlibpath_var=LIBPATH
16498 fi
16499 ;;
16500
16501amigaos*)
16502 library_names_spec='$libname.ixlibrary $libname.a'
16503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16504 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'
16505 ;;
16506
16507beos*)
16508 library_names_spec='${libname}${shared_ext}'
16509 dynamic_linker="$host_os ld.so"
16510 shlibpath_var=LIBRARY_PATH
16511 ;;
16512
16513bsdi4*)
16514 version_type=linux
16515 need_version=no
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16521 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16522 # the default ld.so.conf also contains /usr/contrib/lib and
16523 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16524 # libtool to hard-code these into programs
16525 ;;
16526
16527cygwin* | mingw* | pw32*)
16528 version_type=windows
16529 shrext=".dll"
16530 need_version=no
16531 need_lib_prefix=no
16532
16533 case $GCC,$host_os in
16534 yes,cygwin* | yes,mingw* | yes,pw32*)
16535 library_names_spec='$libname.dll.a'
16536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16537 postinstall_cmds='base_file=`basename \${file}`~
16538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16539 dldir=$destdir/`dirname \$dlpath`~
16540 test -d \$dldir || mkdir -p \$dldir~
16541 $install_prog $dir/$dlname \$dldir/$dlname'
16542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16543 dlpath=$dir/\$dldll~
16544 $rm \$dlpath'
16545 shlibpath_overrides_runpath=yes
16546
16547 case $host_os in
16548 cygwin*)
16549 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16551 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16552 ;;
16553 mingw*)
16554 # MinGW DLLs use traditional 'lib' prefix
16555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16557 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16558 # It is most probably a Windows format PATH printed by
16559 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16560 # path with ; separators, and with drive letters. We can handle the
16561 # drive letters (cygwin fileutils understands them), so leave them,
16562 # especially as we might pass files found there to a mingw objdump,
16563 # which wouldn't understand a cygwinified path. Ahh.
16564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16565 else
16566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16567 fi
16568 ;;
16569 pw32*)
16570 # pw32 DLLs use 'pw' prefix rather than 'lib'
16571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16572 ;;
16573 esac
16574 ;;
16575
16576 *)
16577 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16578 ;;
16579 esac
16580 dynamic_linker='Win32 ld.exe'
16581 # FIXME: first we should search . and the directory the executable is in
16582 shlibpath_var=PATH
16583 ;;
16584
16585darwin* | rhapsody*)
16586 dynamic_linker="$host_os dyld"
16587 version_type=darwin
16588 need_lib_prefix=no
16589 need_version=no
16590 # FIXME: Relying on posixy $() will cause problems for
16591 # cross-compilation, but unfortunately the echo tests do not
16592 # yet detect zsh echo's removal of \ escapes.
16593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16594 soname_spec='${libname}${release}${major}$shared_ext'
16595 shlibpath_overrides_runpath=yes
16596 shlibpath_var=DYLD_LIBRARY_PATH
16597 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16599 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16600 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"`
16601 fi
16602 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16603 ;;
16604
16605dgux*)
16606 version_type=linux
16607 need_lib_prefix=no
16608 need_version=no
16609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16610 soname_spec='${libname}${release}${shared_ext}$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16612 ;;
16613
16614freebsd1*)
16615 dynamic_linker=no
16616 ;;
16617
16618freebsd*)
16619 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16620 version_type=freebsd-$objformat
16621 case $version_type in
16622 freebsd-elf*)
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16624 need_version=no
16625 need_lib_prefix=no
16626 ;;
16627 freebsd-*)
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16629 need_version=yes
16630 ;;
16631 esac
16632 shlibpath_var=LD_LIBRARY_PATH
16633 case $host_os in
16634 freebsd2*)
16635 shlibpath_overrides_runpath=yes
16636 ;;
16637 freebsd3.01* | freebsdelf3.01*)
16638 shlibpath_overrides_runpath=yes
16639 hardcode_into_libs=yes
16640 ;;
16641 *) # from 3.2 on
16642 shlibpath_overrides_runpath=no
16643 hardcode_into_libs=yes
16644 ;;
16645 esac
16646 ;;
16647
16648gnu*)
16649 version_type=linux
16650 need_lib_prefix=no
16651 need_version=no
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 hardcode_into_libs=yes
16656 ;;
16657
16658hpux9* | hpux10* | hpux11*)
16659 # Give a soname corresponding to the major version so that dld.sl refuses to
16660 # link against other versions.
16661 version_type=sunos
16662 need_lib_prefix=no
16663 need_version=no
16664 case "$host_cpu" in
16665 ia64*)
16666 shrext='.so'
16667 hardcode_into_libs=yes
16668 dynamic_linker="$host_os dld.so"
16669 shlibpath_var=LD_LIBRARY_PATH
16670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 if test "X$HPUX_IA64_MODE" = X32; then
16674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16675 else
16676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16677 fi
16678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16679 ;;
16680 hppa*64*)
16681 shrext='.sl'
16682 hardcode_into_libs=yes
16683 dynamic_linker="$host_os dld.sl"
16684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16690 ;;
16691 *)
16692 shrext='.sl'
16693 dynamic_linker="$host_os dld.sl"
16694 shlibpath_var=SHLIB_PATH
16695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 ;;
16699 esac
16700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16701 postinstall_cmds='chmod 555 $lib'
16702 ;;
16703
16704irix5* | irix6* | nonstopux*)
16705 case $host_os in
16706 nonstopux*) version_type=nonstopux ;;
16707 *)
16708 if test "$lt_cv_prog_gnu_ld" = yes; then
16709 version_type=linux
16710 else
16711 version_type=irix
16712 fi ;;
16713 esac
16714 need_lib_prefix=no
16715 need_version=no
16716 soname_spec='${libname}${release}${shared_ext}$major'
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16718 case $host_os in
16719 irix5* | nonstopux*)
16720 libsuff= shlibsuff=
16721 ;;
16722 *)
16723 case $LD in # libtool.m4 will add one of these switches to LD
16724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16725 libsuff= shlibsuff= libmagic=32-bit;;
16726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16727 libsuff=32 shlibsuff=N32 libmagic=N32;;
16728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16729 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16730 *) libsuff= shlibsuff= libmagic=never-match;;
16731 esac
16732 ;;
16733 esac
16734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16735 shlibpath_overrides_runpath=no
16736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16738 hardcode_into_libs=yes
16739 ;;
16740
16741# No shared lib support for Linux oldld, aout, or coff.
16742linux*oldld* | linux*aout* | linux*coff*)
16743 dynamic_linker=no
16744 ;;
16745
16746# This must be Linux ELF.
16747linux*)
16748 version_type=linux
16749 need_lib_prefix=no
16750 need_version=no
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 shlibpath_overrides_runpath=no
16756 # This implies no fast_install, which is unacceptable.
16757 # Some rework will be needed to allow for fast_install
16758 # before this can be enabled.
16759 hardcode_into_libs=yes
16760
16761 # We used to test for /lib/ld.so.1 and disable shared libraries on
16762 # powerpc, because MkLinux only supported shared libraries with the
16763 # GNU dynamic linker. Since this was broken with cross compilers,
16764 # most powerpc-linux boxes support dynamic linking these days and
16765 # people can always --disable-shared, the test was removed, and we
16766 # assume the GNU/Linux dynamic linker is in use.
16767 dynamic_linker='GNU/Linux ld.so'
16768 ;;
16769
16770netbsd*)
16771 version_type=sunos
16772 need_lib_prefix=no
16773 need_version=no
16774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16777 dynamic_linker='NetBSD (a.out) ld.so'
16778 else
16779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16780 soname_spec='${libname}${release}${shared_ext}$major'
16781 dynamic_linker='NetBSD ld.elf_so'
16782 fi
16783 shlibpath_var=LD_LIBRARY_PATH
16784 shlibpath_overrides_runpath=yes
16785 hardcode_into_libs=yes
16786 ;;
16787
16788newsos6)
16789 version_type=linux
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=yes
16793 ;;
16794
16795nto-qnx)
16796 version_type=linux
16797 need_lib_prefix=no
16798 need_version=no
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=yes
16803 ;;
16804
16805openbsd*)
16806 version_type=sunos
16807 need_lib_prefix=no
16808 need_version=no
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16813 case $host_os in
16814 openbsd2.[89] | openbsd2.[89].*)
16815 shlibpath_overrides_runpath=no
16816 ;;
16817 *)
16818 shlibpath_overrides_runpath=yes
16819 ;;
16820 esac
16821 else
16822 shlibpath_overrides_runpath=yes
16823 fi
16824 ;;
16825
16826os2*)
16827 libname_spec='$name'
16828 shrext=".dll"
16829 need_lib_prefix=no
16830 library_names_spec='$libname${shared_ext} $libname.a'
16831 dynamic_linker='OS/2 ld.exe'
16832 shlibpath_var=LIBPATH
16833 ;;
16834
16835osf3* | osf4* | osf5*)
16836 version_type=osf
16837 need_lib_prefix=no
16838 need_version=no
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 shlibpath_var=LD_LIBRARY_PATH
16842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16844 ;;
16845
16846sco3.2v5*)
16847 version_type=osf
16848 soname_spec='${libname}${release}${shared_ext}$major'
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 shlibpath_var=LD_LIBRARY_PATH
16851 ;;
16852
16853solaris*)
16854 version_type=linux
16855 need_lib_prefix=no
16856 need_version=no
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 soname_spec='${libname}${release}${shared_ext}$major'
16859 shlibpath_var=LD_LIBRARY_PATH
16860 shlibpath_overrides_runpath=yes
16861 hardcode_into_libs=yes
16862 # ldd complains unless libraries are executable
16863 postinstall_cmds='chmod +x $lib'
16864 ;;
16865
16866sunos4*)
16867 version_type=sunos
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 shlibpath_overrides_runpath=yes
16872 if test "$with_gnu_ld" = yes; then
16873 need_lib_prefix=no
16874 fi
16875 need_version=yes
16876 ;;
16877
16878sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16879 version_type=linux
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 case $host_vendor in
16884 sni)
16885 shlibpath_overrides_runpath=no
16886 need_lib_prefix=no
16887 export_dynamic_flag_spec='${wl}-Blargedynsym'
16888 runpath_var=LD_RUN_PATH
16889 ;;
16890 siemens)
16891 need_lib_prefix=no
16892 ;;
16893 motorola)
16894 need_lib_prefix=no
16895 need_version=no
16896 shlibpath_overrides_runpath=no
16897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16898 ;;
16899 esac
16900 ;;
16901
16902sysv4*MP*)
16903 if test -d /usr/nec ;then
16904 version_type=linux
16905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16906 soname_spec='$libname${shared_ext}.$major'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 fi
16909 ;;
16910
16911uts4*)
16912 version_type=linux
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 ;;
16917
16918*)
16919 dynamic_linker=no
16920 ;;
16921esac
16922echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16923echo "${ECHO_T}$dynamic_linker" >&6
16924test "$dynamic_linker" = no && can_build_shared=no
16925
16926if test "x$enable_dlopen" != xyes; then
16927 enable_dlopen=unknown
16928 enable_dlopen_self=unknown
16929 enable_dlopen_self_static=unknown
16930else
16931 lt_cv_dlopen=no
16932 lt_cv_dlopen_libs=
16933
16934 case $host_os in
16935 beos*)
16936 lt_cv_dlopen="load_add_on"
16937 lt_cv_dlopen_libs=
16938 lt_cv_dlopen_self=yes
16939 ;;
16940
16941 mingw* | pw32*)
16942 lt_cv_dlopen="LoadLibrary"
16943 lt_cv_dlopen_libs=
16944 ;;
16945
16946 cygwin*)
16947 lt_cv_dlopen="dlopen"
16948 lt_cv_dlopen_libs=
16949 ;;
16950
16951 darwin*)
16952 # if libdl is installed we need to link against it
16953 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16954echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16955if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16957else
16958 ac_check_lib_save_LIBS=$LIBS
16959LIBS="-ldl $LIBS"
16960cat >conftest.$ac_ext <<_ACEOF
16961#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016967
16968/* Override any gcc2 internal prototype to avoid an error. */
16969#ifdef __cplusplus
16970extern "C"
16971#endif
16972/* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16974char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016975int
16976main ()
16977{
16978dlopen ();
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983rm -f conftest.$ac_objext conftest$ac_exeext
16984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985 (eval $ac_link) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } &&
16989 { ac_try='test -s conftest$ac_exeext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 ac_cv_lib_dl_dlopen=yes
16996else
16997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016998sed 's/^/| /' conftest.$ac_ext >&5
16999
John Criswell47fdd832003-07-14 16:52:07 +000017000ac_cv_lib_dl_dlopen=no
17001fi
17002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17003LIBS=$ac_check_lib_save_LIBS
17004fi
17005echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17006echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17007if test $ac_cv_lib_dl_dlopen = yes; then
17008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17009else
17010
17011 lt_cv_dlopen="dyld"
17012 lt_cv_dlopen_libs=
17013 lt_cv_dlopen_self=yes
17014
17015fi
17016
17017 ;;
17018
17019 *)
17020 echo "$as_me:$LINENO: checking for shl_load" >&5
17021echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17022if test "${ac_cv_func_shl_load+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025 cat >conftest.$ac_ext <<_ACEOF
17026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017027/* confdefs.h. */
17028_ACEOF
17029cat confdefs.h >>conftest.$ac_ext
17030cat >>conftest.$ac_ext <<_ACEOF
17031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017032/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017033 which can conflict with char shl_load (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17036#ifdef __STDC__
17037# include <limits.h>
17038#else
17039# include <assert.h>
17040#endif
John Criswell47fdd832003-07-14 16:52:07 +000017041/* Override any gcc2 internal prototype to avoid an error. */
17042#ifdef __cplusplus
17043extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017044{
John Criswell47fdd832003-07-14 16:52:07 +000017045#endif
17046/* We use char because int might match the return type of a gcc2
17047 builtin and then its argument prototype would still apply. */
17048char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017049/* The GNU C library defines this for functions which it implements
17050 to always fail with ENOSYS. Some functions are actually named
17051 something starting with __ and the normal name is an alias. */
17052#if defined (__stub_shl_load) || defined (__stub___shl_load)
17053choke me
17054#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017055char (*f) () = shl_load;
17056#endif
17057#ifdef __cplusplus
17058}
John Criswell47fdd832003-07-14 16:52:07 +000017059#endif
17060
John Criswell0c38eaf2003-09-10 15:17:25 +000017061int
17062main ()
17063{
17064return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017065 ;
17066 return 0;
17067}
17068_ACEOF
17069rm -f conftest.$ac_objext conftest$ac_exeext
17070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071 (eval $ac_link) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_func_shl_load=yes
17082else
17083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017084sed 's/^/| /' conftest.$ac_ext >&5
17085
John Criswell47fdd832003-07-14 16:52:07 +000017086ac_cv_func_shl_load=no
17087fi
17088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17089fi
17090echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17091echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17092if test $ac_cv_func_shl_load = yes; then
17093 lt_cv_dlopen="shl_load"
17094else
17095 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17096echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17097if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17098 echo $ECHO_N "(cached) $ECHO_C" >&6
17099else
17100 ac_check_lib_save_LIBS=$LIBS
17101LIBS="-ldld $LIBS"
17102cat >conftest.$ac_ext <<_ACEOF
17103#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017104/* confdefs.h. */
17105_ACEOF
17106cat confdefs.h >>conftest.$ac_ext
17107cat >>conftest.$ac_ext <<_ACEOF
17108/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017109
17110/* Override any gcc2 internal prototype to avoid an error. */
17111#ifdef __cplusplus
17112extern "C"
17113#endif
17114/* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017117int
17118main ()
17119{
17120shl_load ();
17121 ;
17122 return 0;
17123}
17124_ACEOF
17125rm -f conftest.$ac_objext conftest$ac_exeext
17126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17127 (eval $ac_link) 2>&5
17128 ac_status=$?
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
17131 { ac_try='test -s conftest$ac_exeext'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; }; then
17137 ac_cv_lib_dld_shl_load=yes
17138else
17139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017140sed 's/^/| /' conftest.$ac_ext >&5
17141
John Criswell47fdd832003-07-14 16:52:07 +000017142ac_cv_lib_dld_shl_load=no
17143fi
17144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17145LIBS=$ac_check_lib_save_LIBS
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17148echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17149if test $ac_cv_lib_dld_shl_load = yes; then
17150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17151else
17152 echo "$as_me:$LINENO: checking for dlopen" >&5
17153echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17154if test "${ac_cv_func_dlopen+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 cat >conftest.$ac_ext <<_ACEOF
17158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017164/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017165 which can conflict with char dlopen (); below.
17166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17167 <limits.h> exists even on freestanding compilers. */
17168#ifdef __STDC__
17169# include <limits.h>
17170#else
17171# include <assert.h>
17172#endif
John Criswell47fdd832003-07-14 16:52:07 +000017173/* Override any gcc2 internal prototype to avoid an error. */
17174#ifdef __cplusplus
17175extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017176{
John Criswell47fdd832003-07-14 16:52:07 +000017177#endif
17178/* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017181/* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184#if defined (__stub_dlopen) || defined (__stub___dlopen)
17185choke me
17186#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017187char (*f) () = dlopen;
17188#endif
17189#ifdef __cplusplus
17190}
John Criswell47fdd832003-07-14 16:52:07 +000017191#endif
17192
John Criswell0c38eaf2003-09-10 15:17:25 +000017193int
17194main ()
17195{
17196return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017197 ;
17198 return 0;
17199}
17200_ACEOF
17201rm -f conftest.$ac_objext conftest$ac_exeext
17202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
17207 { ac_try='test -s conftest$ac_exeext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_func_dlopen=yes
17214else
17215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017216sed 's/^/| /' conftest.$ac_ext >&5
17217
John Criswell47fdd832003-07-14 16:52:07 +000017218ac_cv_func_dlopen=no
17219fi
17220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17221fi
17222echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17224if test $ac_cv_func_dlopen = yes; then
17225 lt_cv_dlopen="dlopen"
17226else
17227 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231else
17232 ac_check_lib_save_LIBS=$LIBS
17233LIBS="-ldl $LIBS"
17234cat >conftest.$ac_ext <<_ACEOF
17235#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017236/* confdefs.h. */
17237_ACEOF
17238cat confdefs.h >>conftest.$ac_ext
17239cat >>conftest.$ac_ext <<_ACEOF
17240/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017241
17242/* Override any gcc2 internal prototype to avoid an error. */
17243#ifdef __cplusplus
17244extern "C"
17245#endif
17246/* We use char because int might match the return type of a gcc2
17247 builtin and then its argument prototype would still apply. */
17248char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017249int
17250main ()
17251{
17252dlopen ();
17253 ;
17254 return 0;
17255}
17256_ACEOF
17257rm -f conftest.$ac_objext conftest$ac_exeext
17258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_lib_dl_dlopen=yes
17270else
17271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017272sed 's/^/| /' conftest.$ac_ext >&5
17273
John Criswell47fdd832003-07-14 16:52:07 +000017274ac_cv_lib_dl_dlopen=no
17275fi
17276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17277LIBS=$ac_check_lib_save_LIBS
17278fi
17279echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17280echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17281if test $ac_cv_lib_dl_dlopen = yes; then
17282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17283else
17284 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17285echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17286if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 ac_check_lib_save_LIBS=$LIBS
17290LIBS="-lsvld $LIBS"
17291cat >conftest.$ac_ext <<_ACEOF
17292#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017293/* confdefs.h. */
17294_ACEOF
17295cat confdefs.h >>conftest.$ac_ext
17296cat >>conftest.$ac_ext <<_ACEOF
17297/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017298
17299/* Override any gcc2 internal prototype to avoid an error. */
17300#ifdef __cplusplus
17301extern "C"
17302#endif
17303/* We use char because int might match the return type of a gcc2
17304 builtin and then its argument prototype would still apply. */
17305char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017306int
17307main ()
17308{
17309dlopen ();
17310 ;
17311 return 0;
17312}
17313_ACEOF
17314rm -f conftest.$ac_objext conftest$ac_exeext
17315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316 (eval $ac_link) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_lib_svld_dlopen=yes
17327else
17328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017329sed 's/^/| /' conftest.$ac_ext >&5
17330
John Criswell47fdd832003-07-14 16:52:07 +000017331ac_cv_lib_svld_dlopen=no
17332fi
17333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17334LIBS=$ac_check_lib_save_LIBS
17335fi
17336echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17337echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17338if test $ac_cv_lib_svld_dlopen = yes; then
17339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17340else
17341 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17342echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17343if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346 ac_check_lib_save_LIBS=$LIBS
17347LIBS="-ldld $LIBS"
17348cat >conftest.$ac_ext <<_ACEOF
17349#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017355
17356/* Override any gcc2 internal prototype to avoid an error. */
17357#ifdef __cplusplus
17358extern "C"
17359#endif
17360/* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17362char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017363int
17364main ()
17365{
17366dld_link ();
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371rm -f conftest.$ac_objext conftest$ac_exeext
17372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17373 (eval $ac_link) 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_cv_lib_dld_dld_link=yes
17384else
17385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017386sed 's/^/| /' conftest.$ac_ext >&5
17387
John Criswell47fdd832003-07-14 16:52:07 +000017388ac_cv_lib_dld_dld_link=no
17389fi
17390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17391LIBS=$ac_check_lib_save_LIBS
17392fi
17393echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17394echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17395if test $ac_cv_lib_dld_dld_link = yes; then
17396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17397fi
17398
17399
17400fi
17401
17402
17403fi
17404
17405
17406fi
17407
17408
17409fi
17410
17411
17412fi
17413
17414 ;;
17415 esac
17416
17417 if test "x$lt_cv_dlopen" != xno; then
17418 enable_dlopen=yes
17419 else
17420 enable_dlopen=no
17421 fi
17422
17423 case $lt_cv_dlopen in
17424 dlopen)
17425 save_CPPFLAGS="$CPPFLAGS"
17426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17427
17428 save_LDFLAGS="$LDFLAGS"
17429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17430
17431 save_LIBS="$LIBS"
17432 LIBS="$lt_cv_dlopen_libs $LIBS"
17433
17434 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17435echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17436if test "${lt_cv_dlopen_self+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17438else
17439 if test "$cross_compiling" = yes; then :
17440 lt_cv_dlopen_self=cross
17441else
17442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17443 lt_status=$lt_dlunknown
17444 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +000017445#line 17445 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017446#include "confdefs.h"
17447
17448#if HAVE_DLFCN_H
17449#include <dlfcn.h>
17450#endif
17451
17452#include <stdio.h>
17453
17454#ifdef RTLD_GLOBAL
17455# define LT_DLGLOBAL RTLD_GLOBAL
17456#else
17457# ifdef DL_GLOBAL
17458# define LT_DLGLOBAL DL_GLOBAL
17459# else
17460# define LT_DLGLOBAL 0
17461# endif
17462#endif
17463
17464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17465 find out it does not work in some platform. */
17466#ifndef LT_DLLAZY_OR_NOW
17467# ifdef RTLD_LAZY
17468# define LT_DLLAZY_OR_NOW RTLD_LAZY
17469# else
17470# ifdef DL_LAZY
17471# define LT_DLLAZY_OR_NOW DL_LAZY
17472# else
17473# ifdef RTLD_NOW
17474# define LT_DLLAZY_OR_NOW RTLD_NOW
17475# else
17476# ifdef DL_NOW
17477# define LT_DLLAZY_OR_NOW DL_NOW
17478# else
17479# define LT_DLLAZY_OR_NOW 0
17480# endif
17481# endif
17482# endif
17483# endif
17484#endif
17485
17486#ifdef __cplusplus
17487extern "C" void exit (int);
17488#endif
17489
17490void fnord() { int i=42;}
17491int main ()
17492{
17493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17494 int status = $lt_dlunknown;
17495
17496 if (self)
17497 {
17498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17499 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17500 /* dlclose (self); */
17501 }
17502
17503 exit (status);
17504}
17505EOF
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17511 (./conftest; exit; ) 2>/dev/null
17512 lt_status=$?
17513 case x$lt_status in
17514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17516 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17517 esac
17518 else :
17519 # compilation failed
17520 lt_cv_dlopen_self=no
17521 fi
17522fi
17523rm -fr conftest*
17524
17525
17526fi
17527echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17528echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17529
17530 if test "x$lt_cv_dlopen_self" = xyes; then
17531 LDFLAGS="$LDFLAGS $link_static_flag"
17532 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17533echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17534if test "${lt_cv_dlopen_self_static+set}" = set; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17536else
17537 if test "$cross_compiling" = yes; then :
17538 lt_cv_dlopen_self_static=cross
17539else
17540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17541 lt_status=$lt_dlunknown
17542 cat > conftest.$ac_ext <<EOF
Brian Gaeke866f10c2003-11-24 02:54:57 +000017543#line 17543 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017544#include "confdefs.h"
17545
17546#if HAVE_DLFCN_H
17547#include <dlfcn.h>
17548#endif
17549
17550#include <stdio.h>
17551
17552#ifdef RTLD_GLOBAL
17553# define LT_DLGLOBAL RTLD_GLOBAL
17554#else
17555# ifdef DL_GLOBAL
17556# define LT_DLGLOBAL DL_GLOBAL
17557# else
17558# define LT_DLGLOBAL 0
17559# endif
17560#endif
17561
17562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17563 find out it does not work in some platform. */
17564#ifndef LT_DLLAZY_OR_NOW
17565# ifdef RTLD_LAZY
17566# define LT_DLLAZY_OR_NOW RTLD_LAZY
17567# else
17568# ifdef DL_LAZY
17569# define LT_DLLAZY_OR_NOW DL_LAZY
17570# else
17571# ifdef RTLD_NOW
17572# define LT_DLLAZY_OR_NOW RTLD_NOW
17573# else
17574# ifdef DL_NOW
17575# define LT_DLLAZY_OR_NOW DL_NOW
17576# else
17577# define LT_DLLAZY_OR_NOW 0
17578# endif
17579# endif
17580# endif
17581# endif
17582#endif
17583
17584#ifdef __cplusplus
17585extern "C" void exit (int);
17586#endif
17587
17588void fnord() { int i=42;}
17589int main ()
17590{
17591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17592 int status = $lt_dlunknown;
17593
17594 if (self)
17595 {
17596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17598 /* dlclose (self); */
17599 }
17600
17601 exit (status);
17602}
17603EOF
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605 (eval $ac_link) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17609 (./conftest; exit; ) 2>/dev/null
17610 lt_status=$?
17611 case x$lt_status in
17612 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17613 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17614 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17615 esac
17616 else :
17617 # compilation failed
17618 lt_cv_dlopen_self_static=no
17619 fi
17620fi
17621rm -fr conftest*
17622
17623
17624fi
17625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17626echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17627 fi
17628
17629 CPPFLAGS="$save_CPPFLAGS"
17630 LDFLAGS="$save_LDFLAGS"
17631 LIBS="$save_LIBS"
17632 ;;
17633 esac
17634
17635 case $lt_cv_dlopen_self in
17636 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17637 *) enable_dlopen_self=unknown ;;
17638 esac
17639
17640 case $lt_cv_dlopen_self_static in
17641 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17642 *) enable_dlopen_self_static=unknown ;;
17643 esac
17644fi
17645
17646
17647# The else clause should only fire when bootstrapping the
17648# libtool distribution, otherwise you forgot to ship ltmain.sh
17649# with your package, and you will get complaints that there are
17650# no rules to generate ltmain.sh.
17651if test -f "$ltmain"; then
17652 # See if we are running on zsh, and set the options which allow our commands through
17653 # without removal of \ escapes.
17654 if test -n "${ZSH_VERSION+set}" ; then
17655 setopt NO_GLOB_SUBST
17656 fi
17657 # Now quote all the things that may contain metacharacters while being
17658 # careful not to overquote the AC_SUBSTed values. We take copies of the
17659 # variables and quote the copies for generation of the libtool script.
17660 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17663 deplibs_check_method reload_flag reload_cmds need_locks \
17664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17665 lt_cv_sys_global_symbol_to_c_name_address \
17666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17667 old_postinstall_cmds old_postuninstall_cmds \
17668 compiler_GCJ \
17669 CC_GCJ \
17670 LD_GCJ \
17671 lt_prog_compiler_wl_GCJ \
17672 lt_prog_compiler_pic_GCJ \
17673 lt_prog_compiler_static_GCJ \
17674 lt_prog_compiler_no_builtin_flag_GCJ \
17675 export_dynamic_flag_spec_GCJ \
17676 thread_safe_flag_spec_GCJ \
17677 whole_archive_flag_spec_GCJ \
17678 enable_shared_with_static_runtimes_GCJ \
17679 old_archive_cmds_GCJ \
17680 old_archive_from_new_cmds_GCJ \
17681 predep_objects_GCJ \
17682 postdep_objects_GCJ \
17683 predeps_GCJ \
17684 postdeps_GCJ \
17685 compiler_lib_search_path_GCJ \
17686 archive_cmds_GCJ \
17687 archive_expsym_cmds_GCJ \
17688 postinstall_cmds_GCJ \
17689 postuninstall_cmds_GCJ \
17690 old_archive_from_expsyms_cmds_GCJ \
17691 allow_undefined_flag_GCJ \
17692 no_undefined_flag_GCJ \
17693 export_symbols_cmds_GCJ \
17694 hardcode_libdir_flag_spec_GCJ \
17695 hardcode_libdir_flag_spec_ld_GCJ \
17696 hardcode_libdir_separator_GCJ \
17697 hardcode_automatic_GCJ \
17698 module_cmds_GCJ \
17699 module_expsym_cmds_GCJ \
17700 lt_cv_prog_compiler_c_o_GCJ \
17701 exclude_expsyms_GCJ \
17702 include_expsyms_GCJ; do
17703
17704 case $var in
17705 old_archive_cmds_GCJ | \
17706 old_archive_from_new_cmds_GCJ | \
17707 archive_cmds_GCJ | \
17708 archive_expsym_cmds_GCJ | \
17709 module_cmds_GCJ | \
17710 module_expsym_cmds_GCJ | \
17711 old_archive_from_expsyms_cmds_GCJ | \
17712 export_symbols_cmds_GCJ | \
17713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17714 postinstall_cmds | postuninstall_cmds | \
17715 old_postinstall_cmds | old_postuninstall_cmds | \
17716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17717 # Double-quote double-evaled strings.
17718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17719 ;;
17720 *)
17721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17722 ;;
17723 esac
17724 done
17725
17726 case $lt_echo in
17727 *'\$0 --fallback-echo"')
17728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17729 ;;
17730 esac
17731
17732cfgfile="$ofile"
17733
17734 cat <<__EOF__ >> "$cfgfile"
17735# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17736
17737# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17738
17739# Shell to use when invoking shell scripts.
17740SHELL=$lt_SHELL
17741
17742# Whether or not to build shared libraries.
17743build_libtool_libs=$enable_shared
17744
17745# Whether or not to build static libraries.
17746build_old_libs=$enable_static
17747
17748# Whether or not to add -lc for building shared libraries.
17749build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17750
17751# Whether or not to disallow shared libs when runtime libs are static
17752allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17753
17754# Whether or not to optimize for fast installation.
17755fast_install=$enable_fast_install
17756
17757# The host system.
17758host_alias=$host_alias
17759host=$host
17760
17761# An echo program that does not interpret backslashes.
17762echo=$lt_echo
17763
17764# The archiver.
17765AR=$lt_AR
17766AR_FLAGS=$lt_AR_FLAGS
17767
17768# A C compiler.
17769LTCC=$lt_LTCC
17770
17771# A language-specific compiler.
17772CC=$lt_compiler_GCJ
17773
17774# Is the compiler the GNU C compiler?
17775with_gcc=$GCC_GCJ
17776
17777# An ERE matcher.
17778EGREP=$lt_EGREP
17779
17780# The linker used to build libraries.
17781LD=$lt_LD_GCJ
17782
17783# Whether we need hard or soft links.
17784LN_S=$lt_LN_S
17785
17786# A BSD-compatible nm program.
17787NM=$lt_NM
17788
17789# A symbol stripping program
17790STRIP=$STRIP
17791
17792# Used to examine libraries when file_magic_cmd begins "file"
17793MAGIC_CMD=$MAGIC_CMD
17794
17795# Used on cygwin: DLL creation program.
17796DLLTOOL="$DLLTOOL"
17797
17798# Used on cygwin: object dumper.
17799OBJDUMP="$OBJDUMP"
17800
17801# Used on cygwin: assembler.
17802AS="$AS"
17803
17804# The name of the directory that contains temporary libtool files.
17805objdir=$objdir
17806
17807# How to create reloadable object files.
17808reload_flag=$lt_reload_flag
17809reload_cmds=$lt_reload_cmds
17810
17811# How to pass a linker flag through the compiler.
17812wl=$lt_lt_prog_compiler_wl_GCJ
17813
17814# Object file suffix (normally "o").
17815objext="$ac_objext"
17816
17817# Old archive suffix (normally "a").
17818libext="$libext"
17819
17820# Shared library suffix (normally ".so").
17821shrext='$shrext'
17822
17823# Executable file suffix (normally "").
17824exeext="$exeext"
17825
17826# Additional compiler flags for building library objects.
17827pic_flag=$lt_lt_prog_compiler_pic_GCJ
17828pic_mode=$pic_mode
17829
17830# What is the maximum length of a command?
17831max_cmd_len=$lt_cv_sys_max_cmd_len
17832
17833# Does compiler simultaneously support -c and -o options?
17834compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17835
17836# Must we lock files when doing compilation ?
17837need_locks=$lt_need_locks
17838
17839# Do we need the lib prefix for modules?
17840need_lib_prefix=$need_lib_prefix
17841
17842# Do we need a version for libraries?
17843need_version=$need_version
17844
17845# Whether dlopen is supported.
17846dlopen_support=$enable_dlopen
17847
17848# Whether dlopen of programs is supported.
17849dlopen_self=$enable_dlopen_self
17850
17851# Whether dlopen of statically linked programs is supported.
17852dlopen_self_static=$enable_dlopen_self_static
17853
17854# Compiler flag to prevent dynamic linking.
17855link_static_flag=$lt_lt_prog_compiler_static_GCJ
17856
17857# Compiler flag to turn off builtin functions.
17858no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17859
17860# Compiler flag to allow reflexive dlopens.
17861export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17862
17863# Compiler flag to generate shared objects directly from archives.
17864whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17865
17866# Compiler flag to generate thread-safe objects.
17867thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17868
17869# Library versioning type.
17870version_type=$version_type
17871
17872# Format of library name prefix.
17873libname_spec=$lt_libname_spec
17874
17875# List of archive names. First name is the real one, the rest are links.
17876# The last name is the one that the linker finds with -lNAME.
17877library_names_spec=$lt_library_names_spec
17878
17879# The coded name of the library, if different from the real name.
17880soname_spec=$lt_soname_spec
17881
17882# Commands used to build and install an old-style archive.
17883RANLIB=$lt_RANLIB
17884old_archive_cmds=$lt_old_archive_cmds_GCJ
17885old_postinstall_cmds=$lt_old_postinstall_cmds
17886old_postuninstall_cmds=$lt_old_postuninstall_cmds
17887
17888# Create an old-style archive from a shared archive.
17889old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17890
17891# Create a temporary old-style archive to link instead of a shared archive.
17892old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17893
17894# Commands used to build and install a shared archive.
17895archive_cmds=$lt_archive_cmds_GCJ
17896archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17897postinstall_cmds=$lt_postinstall_cmds
17898postuninstall_cmds=$lt_postuninstall_cmds
17899
17900# Commands used to build a loadable module (assumed same as above if empty)
17901module_cmds=$lt_module_cmds_GCJ
17902module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17903
17904# Commands to strip libraries.
17905old_striplib=$lt_old_striplib
17906striplib=$lt_striplib
17907
17908# Dependencies to place before the objects being linked to create a
17909# shared library.
17910predep_objects=$lt_predep_objects_GCJ
17911
17912# Dependencies to place after the objects being linked to create a
17913# shared library.
17914postdep_objects=$lt_postdep_objects_GCJ
17915
17916# Dependencies to place before the objects being linked to create a
17917# shared library.
17918predeps=$lt_predeps_GCJ
17919
17920# Dependencies to place after the objects being linked to create a
17921# shared library.
17922postdeps=$lt_postdeps_GCJ
17923
17924# The library search path used internally by the compiler when linking
17925# a shared library.
17926compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17927
17928# Method to check whether dependent libraries are shared objects.
17929deplibs_check_method=$lt_deplibs_check_method
17930
17931# Command to use when deplibs_check_method == file_magic.
17932file_magic_cmd=$lt_file_magic_cmd
17933
17934# Flag that allows shared libraries with undefined symbols to be built.
17935allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17936
17937# Flag that forces no undefined symbols.
17938no_undefined_flag=$lt_no_undefined_flag_GCJ
17939
17940# Commands used to finish a libtool library installation in a directory.
17941finish_cmds=$lt_finish_cmds
17942
17943# Same as above, but a single script fragment to be evaled but not shown.
17944finish_eval=$lt_finish_eval
17945
17946# Take the output of nm and produce a listing of raw symbols and C names.
17947global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17948
17949# Transform the output of nm in a proper C declaration
17950global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17951
17952# Transform the output of nm in a C name address pair
17953global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17954
17955# This is the shared library runtime path variable.
17956runpath_var=$runpath_var
17957
17958# This is the shared library path variable.
17959shlibpath_var=$shlibpath_var
17960
17961# Is shlibpath searched before the hard-coded library search path?
17962shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17963
17964# How to hardcode a shared library path into an executable.
17965hardcode_action=$hardcode_action_GCJ
17966
17967# Whether we should hardcode library paths into libraries.
17968hardcode_into_libs=$hardcode_into_libs
17969
17970# Flag to hardcode \$libdir into a binary during linking.
17971# This must work even if \$libdir does not exist.
17972hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17973
17974# If ld is used when linking, flag to hardcode \$libdir into
17975# a binary during linking. This must work even if \$libdir does
17976# not exist.
17977hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17978
17979# Whether we need a single -rpath flag with a separated argument.
17980hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17981
17982# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17983# resulting binary.
17984hardcode_direct=$hardcode_direct_GCJ
17985
17986# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17987# resulting binary.
17988hardcode_minus_L=$hardcode_minus_L_GCJ
17989
17990# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17991# the resulting binary.
17992hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17993
17994# Set to yes if building a shared library automatically hardcodes DIR into the library
17995# and all subsequent libraries and executables linked against it.
17996hardcode_automatic=$hardcode_automatic_GCJ
17997
17998# Variables whose values should be saved in libtool wrapper scripts and
17999# restored at relink time.
18000variables_saved_for_relink="$variables_saved_for_relink"
18001
18002# Whether libtool must link a program against all its dependency libraries.
18003link_all_deplibs=$link_all_deplibs_GCJ
18004
18005# Compile-time system search path for libraries
18006sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18007
18008# Run-time system search path for libraries
18009sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18010
18011# Fix the shell variable \$srcfile for the compiler.
18012fix_srcfile_path="$fix_srcfile_path_GCJ"
18013
18014# Set to yes if exported symbols are required.
18015always_export_symbols=$always_export_symbols_GCJ
18016
18017# The commands to list exported symbols.
18018export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18019
18020# The commands to extract the exported symbol list from a shared archive.
18021extract_expsyms_cmds=$lt_extract_expsyms_cmds
18022
18023# Symbols that should not be listed in the preloaded symbols.
18024exclude_expsyms=$lt_exclude_expsyms_GCJ
18025
18026# Symbols that must always be exported.
18027include_expsyms=$lt_include_expsyms_GCJ
18028
18029# ### END LIBTOOL TAG CONFIG: $tagname
18030
18031__EOF__
18032
18033
18034else
18035 # If there is no Makefile yet, we rely on a make rule to execute
18036 # `config.status --recheck' to rerun these tests and create the
18037 # libtool script then.
18038 test -f Makefile && make "$ltmain"
18039fi
18040
18041
18042ac_ext=c
18043ac_cpp='$CPP $CPPFLAGS'
18044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048CC="$lt_save_CC"
18049
18050 else
18051 tagname=""
18052 fi
18053 ;;
18054
18055 RC)
18056
18057
18058
18059# Source file extension for RC test sources.
18060ac_ext=rc
18061
18062# Object file extension for compiled RC test sources.
18063objext=o
18064objext_RC=$objext
18065
18066# Code to be used in simple compile tests
18067lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18068
18069# Code to be used in simple link tests
18070lt_simple_link_test_code="$lt_simple_compile_test_code"
18071
18072# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18073
18074# If no C compiler was specified, use CC.
18075LTCC=${LTCC-"$CC"}
18076
18077# Allow CC to be a program name with arguments.
18078compiler=$CC
18079
18080
18081# Allow CC to be a program name with arguments.
18082lt_save_CC="$CC"
18083CC=${RC-"windres"}
18084compiler=$CC
18085compiler_RC=$CC
18086lt_cv_prog_compiler_c_o_RC=yes
18087
18088# The else clause should only fire when bootstrapping the
18089# libtool distribution, otherwise you forgot to ship ltmain.sh
18090# with your package, and you will get complaints that there are
18091# no rules to generate ltmain.sh.
18092if test -f "$ltmain"; then
18093 # See if we are running on zsh, and set the options which allow our commands through
18094 # without removal of \ escapes.
18095 if test -n "${ZSH_VERSION+set}" ; then
18096 setopt NO_GLOB_SUBST
18097 fi
18098 # Now quote all the things that may contain metacharacters while being
18099 # careful not to overquote the AC_SUBSTed values. We take copies of the
18100 # variables and quote the copies for generation of the libtool script.
18101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18104 deplibs_check_method reload_flag reload_cmds need_locks \
18105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18106 lt_cv_sys_global_symbol_to_c_name_address \
18107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18108 old_postinstall_cmds old_postuninstall_cmds \
18109 compiler_RC \
18110 CC_RC \
18111 LD_RC \
18112 lt_prog_compiler_wl_RC \
18113 lt_prog_compiler_pic_RC \
18114 lt_prog_compiler_static_RC \
18115 lt_prog_compiler_no_builtin_flag_RC \
18116 export_dynamic_flag_spec_RC \
18117 thread_safe_flag_spec_RC \
18118 whole_archive_flag_spec_RC \
18119 enable_shared_with_static_runtimes_RC \
18120 old_archive_cmds_RC \
18121 old_archive_from_new_cmds_RC \
18122 predep_objects_RC \
18123 postdep_objects_RC \
18124 predeps_RC \
18125 postdeps_RC \
18126 compiler_lib_search_path_RC \
18127 archive_cmds_RC \
18128 archive_expsym_cmds_RC \
18129 postinstall_cmds_RC \
18130 postuninstall_cmds_RC \
18131 old_archive_from_expsyms_cmds_RC \
18132 allow_undefined_flag_RC \
18133 no_undefined_flag_RC \
18134 export_symbols_cmds_RC \
18135 hardcode_libdir_flag_spec_RC \
18136 hardcode_libdir_flag_spec_ld_RC \
18137 hardcode_libdir_separator_RC \
18138 hardcode_automatic_RC \
18139 module_cmds_RC \
18140 module_expsym_cmds_RC \
18141 lt_cv_prog_compiler_c_o_RC \
18142 exclude_expsyms_RC \
18143 include_expsyms_RC; do
18144
18145 case $var in
18146 old_archive_cmds_RC | \
18147 old_archive_from_new_cmds_RC | \
18148 archive_cmds_RC | \
18149 archive_expsym_cmds_RC | \
18150 module_cmds_RC | \
18151 module_expsym_cmds_RC | \
18152 old_archive_from_expsyms_cmds_RC | \
18153 export_symbols_cmds_RC | \
18154 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18155 postinstall_cmds | postuninstall_cmds | \
18156 old_postinstall_cmds | old_postuninstall_cmds | \
18157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18158 # Double-quote double-evaled strings.
18159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18160 ;;
18161 *)
18162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18163 ;;
18164 esac
18165 done
18166
18167 case $lt_echo in
18168 *'\$0 --fallback-echo"')
18169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18170 ;;
18171 esac
18172
18173cfgfile="$ofile"
18174
18175 cat <<__EOF__ >> "$cfgfile"
18176# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18177
18178# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18179
18180# Shell to use when invoking shell scripts.
18181SHELL=$lt_SHELL
18182
18183# Whether or not to build shared libraries.
18184build_libtool_libs=$enable_shared
18185
18186# Whether or not to build static libraries.
18187build_old_libs=$enable_static
18188
18189# Whether or not to add -lc for building shared libraries.
18190build_libtool_need_lc=$archive_cmds_need_lc_RC
18191
18192# Whether or not to disallow shared libs when runtime libs are static
18193allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18194
18195# Whether or not to optimize for fast installation.
18196fast_install=$enable_fast_install
18197
18198# The host system.
18199host_alias=$host_alias
18200host=$host
18201
18202# An echo program that does not interpret backslashes.
18203echo=$lt_echo
18204
18205# The archiver.
18206AR=$lt_AR
18207AR_FLAGS=$lt_AR_FLAGS
18208
18209# A C compiler.
18210LTCC=$lt_LTCC
18211
18212# A language-specific compiler.
18213CC=$lt_compiler_RC
18214
18215# Is the compiler the GNU C compiler?
18216with_gcc=$GCC_RC
18217
18218# An ERE matcher.
18219EGREP=$lt_EGREP
18220
18221# The linker used to build libraries.
18222LD=$lt_LD_RC
18223
18224# Whether we need hard or soft links.
18225LN_S=$lt_LN_S
18226
18227# A BSD-compatible nm program.
18228NM=$lt_NM
18229
18230# A symbol stripping program
18231STRIP=$STRIP
18232
18233# Used to examine libraries when file_magic_cmd begins "file"
18234MAGIC_CMD=$MAGIC_CMD
18235
18236# Used on cygwin: DLL creation program.
18237DLLTOOL="$DLLTOOL"
18238
18239# Used on cygwin: object dumper.
18240OBJDUMP="$OBJDUMP"
18241
18242# Used on cygwin: assembler.
18243AS="$AS"
18244
18245# The name of the directory that contains temporary libtool files.
18246objdir=$objdir
18247
18248# How to create reloadable object files.
18249reload_flag=$lt_reload_flag
18250reload_cmds=$lt_reload_cmds
18251
18252# How to pass a linker flag through the compiler.
18253wl=$lt_lt_prog_compiler_wl_RC
18254
18255# Object file suffix (normally "o").
18256objext="$ac_objext"
18257
18258# Old archive suffix (normally "a").
18259libext="$libext"
18260
18261# Shared library suffix (normally ".so").
18262shrext='$shrext'
18263
18264# Executable file suffix (normally "").
18265exeext="$exeext"
18266
18267# Additional compiler flags for building library objects.
18268pic_flag=$lt_lt_prog_compiler_pic_RC
18269pic_mode=$pic_mode
18270
18271# What is the maximum length of a command?
18272max_cmd_len=$lt_cv_sys_max_cmd_len
18273
18274# Does compiler simultaneously support -c and -o options?
18275compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18276
18277# Must we lock files when doing compilation ?
18278need_locks=$lt_need_locks
18279
18280# Do we need the lib prefix for modules?
18281need_lib_prefix=$need_lib_prefix
18282
18283# Do we need a version for libraries?
18284need_version=$need_version
18285
18286# Whether dlopen is supported.
18287dlopen_support=$enable_dlopen
18288
18289# Whether dlopen of programs is supported.
18290dlopen_self=$enable_dlopen_self
18291
18292# Whether dlopen of statically linked programs is supported.
18293dlopen_self_static=$enable_dlopen_self_static
18294
18295# Compiler flag to prevent dynamic linking.
18296link_static_flag=$lt_lt_prog_compiler_static_RC
18297
18298# Compiler flag to turn off builtin functions.
18299no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18300
18301# Compiler flag to allow reflexive dlopens.
18302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18303
18304# Compiler flag to generate shared objects directly from archives.
18305whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18306
18307# Compiler flag to generate thread-safe objects.
18308thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18309
18310# Library versioning type.
18311version_type=$version_type
18312
18313# Format of library name prefix.
18314libname_spec=$lt_libname_spec
18315
18316# List of archive names. First name is the real one, the rest are links.
18317# The last name is the one that the linker finds with -lNAME.
18318library_names_spec=$lt_library_names_spec
18319
18320# The coded name of the library, if different from the real name.
18321soname_spec=$lt_soname_spec
18322
18323# Commands used to build and install an old-style archive.
18324RANLIB=$lt_RANLIB
18325old_archive_cmds=$lt_old_archive_cmds_RC
18326old_postinstall_cmds=$lt_old_postinstall_cmds
18327old_postuninstall_cmds=$lt_old_postuninstall_cmds
18328
18329# Create an old-style archive from a shared archive.
18330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18331
18332# Create a temporary old-style archive to link instead of a shared archive.
18333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18334
18335# Commands used to build and install a shared archive.
18336archive_cmds=$lt_archive_cmds_RC
18337archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18338postinstall_cmds=$lt_postinstall_cmds
18339postuninstall_cmds=$lt_postuninstall_cmds
18340
18341# Commands used to build a loadable module (assumed same as above if empty)
18342module_cmds=$lt_module_cmds_RC
18343module_expsym_cmds=$lt_module_expsym_cmds_RC
18344
18345# Commands to strip libraries.
18346old_striplib=$lt_old_striplib
18347striplib=$lt_striplib
18348
18349# Dependencies to place before the objects being linked to create a
18350# shared library.
18351predep_objects=$lt_predep_objects_RC
18352
18353# Dependencies to place after the objects being linked to create a
18354# shared library.
18355postdep_objects=$lt_postdep_objects_RC
18356
18357# Dependencies to place before the objects being linked to create a
18358# shared library.
18359predeps=$lt_predeps_RC
18360
18361# Dependencies to place after the objects being linked to create a
18362# shared library.
18363postdeps=$lt_postdeps_RC
18364
18365# The library search path used internally by the compiler when linking
18366# a shared library.
18367compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18368
18369# Method to check whether dependent libraries are shared objects.
18370deplibs_check_method=$lt_deplibs_check_method
18371
18372# Command to use when deplibs_check_method == file_magic.
18373file_magic_cmd=$lt_file_magic_cmd
18374
18375# Flag that allows shared libraries with undefined symbols to be built.
18376allow_undefined_flag=$lt_allow_undefined_flag_RC
18377
18378# Flag that forces no undefined symbols.
18379no_undefined_flag=$lt_no_undefined_flag_RC
18380
18381# Commands used to finish a libtool library installation in a directory.
18382finish_cmds=$lt_finish_cmds
18383
18384# Same as above, but a single script fragment to be evaled but not shown.
18385finish_eval=$lt_finish_eval
18386
18387# Take the output of nm and produce a listing of raw symbols and C names.
18388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18389
18390# Transform the output of nm in a proper C declaration
18391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18392
18393# Transform the output of nm in a C name address pair
18394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18395
18396# This is the shared library runtime path variable.
18397runpath_var=$runpath_var
18398
18399# This is the shared library path variable.
18400shlibpath_var=$shlibpath_var
18401
18402# Is shlibpath searched before the hard-coded library search path?
18403shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18404
18405# How to hardcode a shared library path into an executable.
18406hardcode_action=$hardcode_action_RC
18407
18408# Whether we should hardcode library paths into libraries.
18409hardcode_into_libs=$hardcode_into_libs
18410
18411# Flag to hardcode \$libdir into a binary during linking.
18412# This must work even if \$libdir does not exist.
18413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18414
18415# If ld is used when linking, flag to hardcode \$libdir into
18416# a binary during linking. This must work even if \$libdir does
18417# not exist.
18418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18419
18420# Whether we need a single -rpath flag with a separated argument.
18421hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18422
18423# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18424# resulting binary.
18425hardcode_direct=$hardcode_direct_RC
18426
18427# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18428# resulting binary.
18429hardcode_minus_L=$hardcode_minus_L_RC
18430
18431# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18432# the resulting binary.
18433hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18434
18435# Set to yes if building a shared library automatically hardcodes DIR into the library
18436# and all subsequent libraries and executables linked against it.
18437hardcode_automatic=$hardcode_automatic_RC
18438
18439# Variables whose values should be saved in libtool wrapper scripts and
18440# restored at relink time.
18441variables_saved_for_relink="$variables_saved_for_relink"
18442
18443# Whether libtool must link a program against all its dependency libraries.
18444link_all_deplibs=$link_all_deplibs_RC
18445
18446# Compile-time system search path for libraries
18447sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18448
18449# Run-time system search path for libraries
18450sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18451
18452# Fix the shell variable \$srcfile for the compiler.
18453fix_srcfile_path="$fix_srcfile_path_RC"
18454
18455# Set to yes if exported symbols are required.
18456always_export_symbols=$always_export_symbols_RC
18457
18458# The commands to list exported symbols.
18459export_symbols_cmds=$lt_export_symbols_cmds_RC
18460
18461# The commands to extract the exported symbol list from a shared archive.
18462extract_expsyms_cmds=$lt_extract_expsyms_cmds
18463
18464# Symbols that should not be listed in the preloaded symbols.
18465exclude_expsyms=$lt_exclude_expsyms_RC
18466
18467# Symbols that must always be exported.
18468include_expsyms=$lt_include_expsyms_RC
18469
18470# ### END LIBTOOL TAG CONFIG: $tagname
18471
18472__EOF__
18473
18474
18475else
18476 # If there is no Makefile yet, we rely on a make rule to execute
18477 # `config.status --recheck' to rerun these tests and create the
18478 # libtool script then.
18479 test -f Makefile && make "$ltmain"
18480fi
18481
18482
18483ac_ext=c
18484ac_cpp='$CPP $CPPFLAGS'
18485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18487ac_compiler_gnu=$ac_cv_c_compiler_gnu
18488
18489CC="$lt_save_CC"
18490
18491 ;;
18492
18493 *)
18494 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18495echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18496 { (exit 1); exit 1; }; }
18497 ;;
18498 esac
18499
18500 # Append the new tag name to the list of available tags.
18501 if test -n "$tagname" ; then
18502 available_tags="$available_tags $tagname"
18503 fi
18504 fi
18505 done
18506 IFS="$lt_save_ifs"
18507
18508 # Now substitute the updated list of available tags.
18509 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18510 mv "${ofile}T" "$ofile"
18511 chmod +x "$ofile"
18512 else
18513 rm -f "${ofile}T"
18514 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18515echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18516 { (exit 1); exit 1; }; }
18517 fi
18518fi
John Criswell7a73b802003-06-30 21:59:07 +000018519
18520
18521
18522# This can be used to rebuild libtool when needed
18523LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18524
18525# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018526LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018527
18528# Prevent multiple expansion
18529
18530
18531
John Criswell47fdd832003-07-14 16:52:07 +000018532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
John Criswellde00db22003-08-25 16:49:54 +000018550# Extract the first word of "pwd", so it can be a program name with args.
18551set dummy pwd; ac_word=$2
18552echo "$as_me:$LINENO: checking for $ac_word" >&5
18553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18554if test "${ac_cv_path_RPWD+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18556else
18557 case $RPWD in
18558 [\\/]* | ?:[\\/]*)
18559 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18560 ;;
18561 *)
18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563for as_dir in $PATH
18564do
18565 IFS=$as_save_IFS
18566 test -z "$as_dir" && as_dir=.
18567 for ac_exec_ext in '' $ac_executable_extensions; do
18568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18571 break 2
18572 fi
18573done
18574done
18575
John Criswell39827c82003-09-23 15:28:52 +000018576 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018577 ;;
18578esac
18579fi
18580RPWD=$ac_cv_path_RPWD
18581
18582if test -n "$RPWD"; then
18583 echo "$as_me:$LINENO: result: $RPWD" >&5
18584echo "${ECHO_T}$RPWD" >&6
18585else
18586 echo "$as_me:$LINENO: result: no" >&5
18587echo "${ECHO_T}no" >&6
18588fi
18589
John Criswell39827c82003-09-23 15:28:52 +000018590if test ${RPWD} = "false"
18591then
18592 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18593echo "$as_me: error: pwd required but not found" >&2;}
18594 { (exit 1); exit 1; }; }
18595fi
18596
John Criswell7a73b802003-06-30 21:59:07 +000018597# Extract the first word of "ar", so it can be a program name with args.
18598set dummy ar; ac_word=$2
18599echo "$as_me:$LINENO: checking for $ac_word" >&5
18600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601if test "${ac_cv_path_AR+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604 case $AR in
18605 [\\/]* | ?:[\\/]*)
18606 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18607 ;;
18608 *)
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610for as_dir in $PATH
18611do
18612 IFS=$as_save_IFS
18613 test -z "$as_dir" && as_dir=.
18614 for ac_exec_ext in '' $ac_executable_extensions; do
18615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618 break 2
18619 fi
18620done
18621done
18622
John Criswell39827c82003-09-23 15:28:52 +000018623 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018624 ;;
18625esac
18626fi
18627AR=$ac_cv_path_AR
18628
18629if test -n "$AR"; then
18630 echo "$as_me:$LINENO: result: $AR" >&5
18631echo "${ECHO_T}$AR" >&6
18632else
18633 echo "$as_me:$LINENO: result: no" >&5
18634echo "${ECHO_T}no" >&6
18635fi
18636
John Criswell39827c82003-09-23 15:28:52 +000018637if test ${AR} = "false"
18638then
18639 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18640echo "$as_me: error: ar required but not found" >&2;}
18641 { (exit 1); exit 1; }; }
18642fi
18643
John Criswell7a73b802003-06-30 21:59:07 +000018644# Extract the first word of "sed", so it can be a program name with args.
18645set dummy sed; ac_word=$2
18646echo "$as_me:$LINENO: checking for $ac_word" >&5
18647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18648if test "${ac_cv_path_SED+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651 case $SED in
18652 [\\/]* | ?:[\\/]*)
18653 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18654 ;;
18655 *)
18656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657for as_dir in $PATH
18658do
18659 IFS=$as_save_IFS
18660 test -z "$as_dir" && as_dir=.
18661 for ac_exec_ext in '' $ac_executable_extensions; do
18662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18665 break 2
18666 fi
18667done
18668done
18669
John Criswell39827c82003-09-23 15:28:52 +000018670 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018671 ;;
18672esac
18673fi
18674SED=$ac_cv_path_SED
18675
18676if test -n "$SED"; then
18677 echo "$as_me:$LINENO: result: $SED" >&5
18678echo "${ECHO_T}$SED" >&6
18679else
18680 echo "$as_me:$LINENO: result: no" >&5
18681echo "${ECHO_T}no" >&6
18682fi
18683
John Criswell39827c82003-09-23 15:28:52 +000018684if test ${SED} = "false"
18685then
18686 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18687echo "$as_me: error: sed required but not found" >&2;}
18688 { (exit 1); exit 1; }; }
18689fi
18690
John Criswell7a73b802003-06-30 21:59:07 +000018691# Extract the first word of "rm", so it can be a program name with args.
18692set dummy rm; ac_word=$2
18693echo "$as_me:$LINENO: checking for $ac_word" >&5
18694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695if test "${ac_cv_path_RM+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 case $RM in
18699 [\\/]* | ?:[\\/]*)
18700 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18701 ;;
18702 *)
18703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704for as_dir in $PATH
18705do
18706 IFS=$as_save_IFS
18707 test -z "$as_dir" && as_dir=.
18708 for ac_exec_ext in '' $ac_executable_extensions; do
18709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712 break 2
18713 fi
18714done
18715done
18716
John Criswell39827c82003-09-23 15:28:52 +000018717 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018718 ;;
18719esac
18720fi
18721RM=$ac_cv_path_RM
18722
18723if test -n "$RM"; then
18724 echo "$as_me:$LINENO: result: $RM" >&5
18725echo "${ECHO_T}$RM" >&6
18726else
18727 echo "$as_me:$LINENO: result: no" >&5
18728echo "${ECHO_T}no" >&6
18729fi
18730
John Criswell39827c82003-09-23 15:28:52 +000018731if test ${RM} = "false"
18732then
18733 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18734echo "$as_me: error: rm required but not found" >&2;}
18735 { (exit 1); exit 1; }; }
18736fi
18737
John Criswell7a73b802003-06-30 21:59:07 +000018738# Extract the first word of "echo", so it can be a program name with args.
18739set dummy echo; ac_word=$2
18740echo "$as_me:$LINENO: checking for $ac_word" >&5
18741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742if test "${ac_cv_path_ECHO+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745 case $ECHO in
18746 [\\/]* | ?:[\\/]*)
18747 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18748 ;;
18749 *)
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751for as_dir in $PATH
18752do
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759 break 2
18760 fi
18761done
18762done
18763
John Criswell39827c82003-09-23 15:28:52 +000018764 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018765 ;;
18766esac
18767fi
18768ECHO=$ac_cv_path_ECHO
18769
18770if test -n "$ECHO"; then
18771 echo "$as_me:$LINENO: result: $ECHO" >&5
18772echo "${ECHO_T}$ECHO" >&6
18773else
18774 echo "$as_me:$LINENO: result: no" >&5
18775echo "${ECHO_T}no" >&6
18776fi
18777
John Criswell39827c82003-09-23 15:28:52 +000018778if test ${ECHO} = "false"
18779then
18780 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18781echo "$as_me: error: echo required but not found" >&2;}
18782 { (exit 1); exit 1; }; }
18783fi
18784
John Criswell7a73b802003-06-30 21:59:07 +000018785# Extract the first word of "mkdir", so it can be a program name with args.
18786set dummy mkdir; ac_word=$2
18787echo "$as_me:$LINENO: checking for $ac_word" >&5
18788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18789if test "${ac_cv_path_MKDIR+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18791else
18792 case $MKDIR in
18793 [\\/]* | ?:[\\/]*)
18794 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18795 ;;
18796 *)
18797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18798for as_dir in $PATH
18799do
18800 IFS=$as_save_IFS
18801 test -z "$as_dir" && as_dir=.
18802 for ac_exec_ext in '' $ac_executable_extensions; do
18803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18804 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18806 break 2
18807 fi
18808done
18809done
18810
John Criswell39827c82003-09-23 15:28:52 +000018811 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018812 ;;
18813esac
18814fi
18815MKDIR=$ac_cv_path_MKDIR
18816
18817if test -n "$MKDIR"; then
18818 echo "$as_me:$LINENO: result: $MKDIR" >&5
18819echo "${ECHO_T}$MKDIR" >&6
18820else
18821 echo "$as_me:$LINENO: result: no" >&5
18822echo "${ECHO_T}no" >&6
18823fi
18824
John Criswell39827c82003-09-23 15:28:52 +000018825if test ${MKDIR} = "false"
18826then
18827 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18828echo "$as_me: error: mkdir required but not found" >&2;}
18829 { (exit 1); exit 1; }; }
18830fi
18831
John Criswell7a73b802003-06-30 21:59:07 +000018832# Extract the first word of "date", so it can be a program name with args.
18833set dummy date; ac_word=$2
18834echo "$as_me:$LINENO: checking for $ac_word" >&5
18835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836if test "${ac_cv_path_DATE+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 case $DATE in
18840 [\\/]* | ?:[\\/]*)
18841 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18842 ;;
18843 *)
18844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845for as_dir in $PATH
18846do
18847 IFS=$as_save_IFS
18848 test -z "$as_dir" && as_dir=.
18849 for ac_exec_ext in '' $ac_executable_extensions; do
18850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853 break 2
18854 fi
18855done
18856done
18857
John Criswell39827c82003-09-23 15:28:52 +000018858 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018859 ;;
18860esac
18861fi
18862DATE=$ac_cv_path_DATE
18863
18864if test -n "$DATE"; then
18865 echo "$as_me:$LINENO: result: $DATE" >&5
18866echo "${ECHO_T}$DATE" >&6
18867else
18868 echo "$as_me:$LINENO: result: no" >&5
18869echo "${ECHO_T}no" >&6
18870fi
18871
John Criswell39827c82003-09-23 15:28:52 +000018872if test ${DATE} = "false"
18873then
18874 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18875echo "$as_me: error: date required but not found" >&2;}
18876 { (exit 1); exit 1; }; }
18877fi
18878
John Criswell7a73b802003-06-30 21:59:07 +000018879# Extract the first word of "mv", so it can be a program name with args.
18880set dummy mv; ac_word=$2
18881echo "$as_me:$LINENO: checking for $ac_word" >&5
18882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18883if test "${ac_cv_path_MV+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885else
18886 case $MV in
18887 [\\/]* | ?:[\\/]*)
18888 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18889 ;;
18890 *)
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892for as_dir in $PATH
18893do
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 break 2
18901 fi
18902done
18903done
18904
John Criswell39827c82003-09-23 15:28:52 +000018905 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018906 ;;
18907esac
18908fi
18909MV=$ac_cv_path_MV
18910
18911if test -n "$MV"; then
18912 echo "$as_me:$LINENO: result: $MV" >&5
18913echo "${ECHO_T}$MV" >&6
18914else
18915 echo "$as_me:$LINENO: result: no" >&5
18916echo "${ECHO_T}no" >&6
18917fi
18918
John Criswell39827c82003-09-23 15:28:52 +000018919if test ${MV} = "false"
18920then
18921 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18922echo "$as_me: error: mv required but not found" >&2;}
18923 { (exit 1); exit 1; }; }
18924fi
18925
John Criswell7a73b802003-06-30 21:59:07 +000018926# Extract the first word of "dot", so it can be a program name with args.
18927set dummy dot; ac_word=$2
18928echo "$as_me:$LINENO: checking for $ac_word" >&5
18929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18930if test "${ac_cv_path_DOT+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18932else
18933 case $DOT in
18934 [\\/]* | ?:[\\/]*)
18935 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18936 ;;
18937 *)
18938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18939for as_dir in $PATH
18940do
18941 IFS=$as_save_IFS
18942 test -z "$as_dir" && as_dir=.
18943 for ac_exec_ext in '' $ac_executable_extensions; do
18944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18945 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18947 break 2
18948 fi
18949done
18950done
18951
John Criswell39827c82003-09-23 15:28:52 +000018952 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018953 ;;
18954esac
18955fi
18956DOT=$ac_cv_path_DOT
18957
18958if test -n "$DOT"; then
18959 echo "$as_me:$LINENO: result: $DOT" >&5
18960echo "${ECHO_T}$DOT" >&6
18961else
18962 echo "$as_me:$LINENO: result: no" >&5
18963echo "${ECHO_T}no" >&6
18964fi
18965
John Criswell39827c82003-09-23 15:28:52 +000018966
John Criswell7a73b802003-06-30 21:59:07 +000018967# Extract the first word of "etags", so it can be a program name with args.
18968set dummy etags; ac_word=$2
18969echo "$as_me:$LINENO: checking for $ac_word" >&5
18970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18971if test "${ac_cv_path_ETAGS+set}" = set; then
18972 echo $ECHO_N "(cached) $ECHO_C" >&6
18973else
18974 case $ETAGS in
18975 [\\/]* | ?:[\\/]*)
18976 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18977 ;;
18978 *)
18979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980for as_dir in $PATH
18981do
18982 IFS=$as_save_IFS
18983 test -z "$as_dir" && as_dir=.
18984 for ac_exec_ext in '' $ac_executable_extensions; do
18985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18988 break 2
18989 fi
18990done
18991done
18992
John Criswell39827c82003-09-23 15:28:52 +000018993 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018994 ;;
18995esac
18996fi
18997ETAGS=$ac_cv_path_ETAGS
18998
18999if test -n "$ETAGS"; then
19000 echo "$as_me:$LINENO: result: $ETAGS" >&5
19001echo "${ECHO_T}$ETAGS" >&6
19002else
19003 echo "$as_me:$LINENO: result: no" >&5
19004echo "${ECHO_T}no" >&6
19005fi
19006
John Criswell39827c82003-09-23 15:28:52 +000019007
John Criswellde00db22003-08-25 16:49:54 +000019008# Extract the first word of "python", so it can be a program name with args.
19009set dummy python; ac_word=$2
19010echo "$as_me:$LINENO: checking for $ac_word" >&5
19011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19012if test "${ac_cv_path_PYTHON+set}" = set; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014else
19015 case $PYTHON in
19016 [\\/]* | ?:[\\/]*)
19017 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19018 ;;
19019 *)
19020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19021for as_dir in $PATH
19022do
19023 IFS=$as_save_IFS
19024 test -z "$as_dir" && as_dir=.
19025 for ac_exec_ext in '' $ac_executable_extensions; do
19026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19027 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19029 break 2
19030 fi
19031done
19032done
19033
John Criswell39827c82003-09-23 15:28:52 +000019034 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000019035 ;;
19036esac
19037fi
19038PYTHON=$ac_cv_path_PYTHON
19039
19040if test -n "$PYTHON"; then
19041 echo "$as_me:$LINENO: result: $PYTHON" >&5
19042echo "${ECHO_T}$PYTHON" >&6
19043else
19044 echo "$as_me:$LINENO: result: no" >&5
19045echo "${ECHO_T}no" >&6
19046fi
19047
John Criswell39827c82003-09-23 15:28:52 +000019048if test ${PYTHON} = "false"
19049then
John Criswell61095982003-09-23 20:46:32 +000019050 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19051echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019052fi
19053
John Criswellde00db22003-08-25 16:49:54 +000019054# Extract the first word of "qmtest", so it can be a program name with args.
19055set dummy qmtest; ac_word=$2
19056echo "$as_me:$LINENO: checking for $ac_word" >&5
19057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19058if test "${ac_cv_path_QMTEST+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 case $QMTEST in
19062 [\\/]* | ?:[\\/]*)
19063 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19064 ;;
19065 *)
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067for as_dir in $PATH
19068do
19069 IFS=$as_save_IFS
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 break 2
19076 fi
19077done
19078done
19079
John Criswell39827c82003-09-23 15:28:52 +000019080 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019081 ;;
19082esac
19083fi
19084QMTEST=$ac_cv_path_QMTEST
19085
19086if test -n "$QMTEST"; then
19087 echo "$as_me:$LINENO: result: $QMTEST" >&5
19088echo "${ECHO_T}$QMTEST" >&6
19089else
19090 echo "$as_me:$LINENO: result: no" >&5
19091echo "${ECHO_T}no" >&6
19092fi
19093
John Criswell39827c82003-09-23 15:28:52 +000019094if test ${QMTEST} = "false"
19095then
John Criswell61095982003-09-23 20:46:32 +000019096 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19097echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019098fi
John Criswellde00db22003-08-25 16:49:54 +000019099
19100pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19101pymajor=`echo $pyversion | cut -d. -f1`
19102pyminor=`echo $pyversion | cut -d. -f2`
19103
19104if test "$pymajor" -ge "2"
19105then
19106 if test "$pymajor" -eq "2"
19107 then
19108 if test "$pyminor" -lt "2"
19109 then
Brian Gaekef3b24102003-11-16 18:38:14 +000019110 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19111echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019112 fi
19113 fi
19114else
Brian Gaekef3b24102003-11-16 18:38:14 +000019115 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19116echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019117fi
John Criswell7a73b802003-06-30 21:59:07 +000019118
19119
19120
19121
19122
19123echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19124echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19125if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19127else
19128 ac_check_lib_save_LIBS=$LIBS
19129LIBS="-lelf $LIBS"
19130cat >conftest.$ac_ext <<_ACEOF
19131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019137
19138/* Override any gcc2 internal prototype to avoid an error. */
19139#ifdef __cplusplus
19140extern "C"
19141#endif
19142/* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19144char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019145int
19146main ()
19147{
19148elf_begin ();
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153rm -f conftest.$ac_objext conftest$ac_exeext
19154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19155 (eval $ac_link) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -s conftest$ac_exeext'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
19165 ac_cv_lib_elf_elf_begin=yes
19166else
19167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019168sed 's/^/| /' conftest.$ac_ext >&5
19169
John Criswell7a73b802003-06-30 21:59:07 +000019170ac_cv_lib_elf_elf_begin=no
19171fi
19172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19173LIBS=$ac_check_lib_save_LIBS
19174fi
19175echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19176echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19177if test $ac_cv_lib_elf_elf_begin = yes; then
19178 cat >>confdefs.h <<_ACEOF
19179#define HAVE_LIBELF 1
19180_ACEOF
19181
19182 LIBS="-lelf $LIBS"
19183
19184fi
19185
19186
19187echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19188echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19189if test "${ac_cv_search_dlopen+set}" = set; then
19190 echo $ECHO_N "(cached) $ECHO_C" >&6
19191else
19192 ac_func_search_save_LIBS=$LIBS
19193ac_cv_search_dlopen=no
19194cat >conftest.$ac_ext <<_ACEOF
19195#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019196/* confdefs.h. */
19197_ACEOF
19198cat confdefs.h >>conftest.$ac_ext
19199cat >>conftest.$ac_ext <<_ACEOF
19200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019201
19202/* Override any gcc2 internal prototype to avoid an error. */
19203#ifdef __cplusplus
19204extern "C"
19205#endif
19206/* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19208char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019209int
19210main ()
19211{
19212dlopen ();
19213 ;
19214 return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext conftest$ac_exeext
19218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_search_dlopen="none required"
19230else
19231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019232sed 's/^/| /' conftest.$ac_ext >&5
19233
John Criswell7a73b802003-06-30 21:59:07 +000019234fi
19235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19236if test "$ac_cv_search_dlopen" = no; then
19237 for ac_lib in dl; do
19238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19239 cat >conftest.$ac_ext <<_ACEOF
19240#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019246
19247/* Override any gcc2 internal prototype to avoid an error. */
19248#ifdef __cplusplus
19249extern "C"
19250#endif
19251/* We use char because int might match the return type of a gcc2
19252 builtin and then its argument prototype would still apply. */
19253char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019254int
19255main ()
19256{
19257dlopen ();
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262rm -f conftest.$ac_objext conftest$ac_exeext
19263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264 (eval $ac_link) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -s conftest$ac_exeext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 ac_cv_search_dlopen="-l$ac_lib"
19275break
19276else
19277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019278sed 's/^/| /' conftest.$ac_ext >&5
19279
John Criswell7a73b802003-06-30 21:59:07 +000019280fi
19281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19282 done
19283fi
19284LIBS=$ac_func_search_save_LIBS
19285fi
19286echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19287echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19288if test "$ac_cv_search_dlopen" != no; then
19289 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019290
19291cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019292#define HAVE_DLOPEN 1
19293_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019294
19295else
Brian Gaekec45be042003-10-07 06:01:34 +000019296 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19297echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019298fi
19299
19300
19301echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19302echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19303if test "${ac_cv_search_mallinfo+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305else
19306 ac_func_search_save_LIBS=$LIBS
19307ac_cv_search_mallinfo=no
19308cat >conftest.$ac_ext <<_ACEOF
19309#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
19314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019315
19316/* Override any gcc2 internal prototype to avoid an error. */
19317#ifdef __cplusplus
19318extern "C"
19319#endif
19320/* We use char because int might match the return type of a gcc2
19321 builtin and then its argument prototype would still apply. */
19322char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019323int
19324main ()
19325{
19326mallinfo ();
19327 ;
19328 return 0;
19329}
19330_ACEOF
19331rm -f conftest.$ac_objext conftest$ac_exeext
19332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19333 (eval $ac_link) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -s conftest$ac_exeext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_cv_search_mallinfo="none required"
19344else
19345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019346sed 's/^/| /' conftest.$ac_ext >&5
19347
John Criswell7a73b802003-06-30 21:59:07 +000019348fi
19349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19350if test "$ac_cv_search_mallinfo" = no; then
19351 for ac_lib in malloc; do
19352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019355/* confdefs.h. */
19356_ACEOF
19357cat confdefs.h >>conftest.$ac_ext
19358cat >>conftest.$ac_ext <<_ACEOF
19359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019360
19361/* Override any gcc2 internal prototype to avoid an error. */
19362#ifdef __cplusplus
19363extern "C"
19364#endif
19365/* We use char because int might match the return type of a gcc2
19366 builtin and then its argument prototype would still apply. */
19367char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019368int
19369main ()
19370{
19371mallinfo ();
19372 ;
19373 return 0;
19374}
19375_ACEOF
19376rm -f conftest.$ac_objext conftest$ac_exeext
19377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19378 (eval $ac_link) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_cv_search_mallinfo="-l$ac_lib"
19389break
19390else
19391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019392sed 's/^/| /' conftest.$ac_ext >&5
19393
John Criswell7a73b802003-06-30 21:59:07 +000019394fi
19395rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19396 done
19397fi
19398LIBS=$ac_func_search_save_LIBS
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19401echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19402if test "$ac_cv_search_mallinfo" != no; then
19403 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019404
19405cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019406#define HAVE_MALLINFO 1
19407_ACEOF
19408
19409fi
19410
19411
19412
19413echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19414echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19415if test "${ac_cv_header_stdc+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417else
19418 cat >conftest.$ac_ext <<_ACEOF
19419#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019425#include <stdlib.h>
19426#include <stdarg.h>
19427#include <string.h>
19428#include <float.h>
19429
John Criswell0c38eaf2003-09-10 15:17:25 +000019430int
19431main ()
19432{
19433
19434 ;
19435 return 0;
19436}
John Criswell7a73b802003-06-30 21:59:07 +000019437_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019438rm -f conftest.$ac_objext
19439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019441 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019443 (exit $ac_status); } &&
19444 { ac_try='test -s conftest.$ac_objext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019450 ac_cv_header_stdc=yes
19451else
19452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019456fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019457rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019458
19459if test $ac_cv_header_stdc = yes; then
19460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19461 cat >conftest.$ac_ext <<_ACEOF
19462#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019468#include <string.h>
19469
19470_ACEOF
19471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019472 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019473 :
19474else
19475 ac_cv_header_stdc=no
19476fi
19477rm -f conftest*
19478
19479fi
19480
19481if test $ac_cv_header_stdc = yes; then
19482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19483 cat >conftest.$ac_ext <<_ACEOF
19484#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019490#include <stdlib.h>
19491
19492_ACEOF
19493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019494 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019495 :
19496else
19497 ac_cv_header_stdc=no
19498fi
19499rm -f conftest*
19500
19501fi
19502
19503if test $ac_cv_header_stdc = yes; then
19504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19505 if test "$cross_compiling" = yes; then
19506 :
19507else
19508 cat >conftest.$ac_ext <<_ACEOF
19509#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019510/* confdefs.h. */
19511_ACEOF
19512cat confdefs.h >>conftest.$ac_ext
19513cat >>conftest.$ac_ext <<_ACEOF
19514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019515#include <ctype.h>
19516#if ((' ' & 0x0FF) == 0x020)
19517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19519#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019520# define ISLOWER(c) \
19521 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019522 || ('j' <= (c) && (c) <= 'r') \
19523 || ('s' <= (c) && (c) <= 'z'))
19524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19525#endif
19526
19527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19528int
19529main ()
19530{
19531 int i;
19532 for (i = 0; i < 256; i++)
19533 if (XOR (islower (i), ISLOWER (i))
19534 || toupper (i) != TOUPPER (i))
19535 exit(2);
19536 exit (0);
19537}
19538_ACEOF
19539rm -f conftest$ac_exeext
19540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19541 (eval $ac_link) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 :
19551else
19552 echo "$as_me: program exited with status $ac_status" >&5
19553echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019554sed 's/^/| /' conftest.$ac_ext >&5
19555
John Criswell7a73b802003-06-30 21:59:07 +000019556( exit $ac_status )
19557ac_cv_header_stdc=no
19558fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019559rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019560fi
19561fi
19562fi
19563echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19564echo "${ECHO_T}$ac_cv_header_stdc" >&6
19565if test $ac_cv_header_stdc = yes; then
19566
19567cat >>confdefs.h <<\_ACEOF
19568#define STDC_HEADERS 1
19569_ACEOF
19570
19571fi
19572
19573echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19574echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19575if test "${ac_cv_header_sys_wait_h+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577else
19578 cat >conftest.$ac_ext <<_ACEOF
19579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019585#include <sys/types.h>
19586#include <sys/wait.h>
19587#ifndef WEXITSTATUS
19588# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19589#endif
19590#ifndef WIFEXITED
19591# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19592#endif
19593
John Criswell7a73b802003-06-30 21:59:07 +000019594int
19595main ()
19596{
19597 int s;
19598 wait (&s);
19599 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19600 ;
19601 return 0;
19602}
19603_ACEOF
19604rm -f conftest.$ac_objext
19605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606 (eval $ac_compile) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_header_sys_wait_h=yes
19617else
19618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019619sed 's/^/| /' conftest.$ac_ext >&5
19620
John Criswell7a73b802003-06-30 21:59:07 +000019621ac_cv_header_sys_wait_h=no
19622fi
19623rm -f conftest.$ac_objext conftest.$ac_ext
19624fi
19625echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19626echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19627if test $ac_cv_header_sys_wait_h = yes; then
19628
19629cat >>confdefs.h <<\_ACEOF
19630#define HAVE_SYS_WAIT_H 1
19631_ACEOF
19632
19633fi
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19645do
19646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19647if eval "test \"\${$as_ac_Header+set}\" = set"; then
19648 echo "$as_me:$LINENO: checking for $ac_header" >&5
19649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19650if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652fi
19653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19655else
19656 # Is the header compilable?
19657echo "$as_me:$LINENO: checking $ac_header usability" >&5
19658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19659cat >conftest.$ac_ext <<_ACEOF
19660#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019666$ac_includes_default
19667#include <$ac_header>
19668_ACEOF
19669rm -f conftest.$ac_objext
19670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671 (eval $ac_compile) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -s conftest.$ac_objext'
19676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677 (eval $ac_try) 2>&5
19678 ac_status=$?
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); }; }; then
19681 ac_header_compiler=yes
19682else
19683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019684sed 's/^/| /' conftest.$ac_ext >&5
19685
John Criswell7a73b802003-06-30 21:59:07 +000019686ac_header_compiler=no
19687fi
19688rm -f conftest.$ac_objext conftest.$ac_ext
19689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19690echo "${ECHO_T}$ac_header_compiler" >&6
19691
19692# Is the header present?
19693echo "$as_me:$LINENO: checking $ac_header presence" >&5
19694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19695cat >conftest.$ac_ext <<_ACEOF
19696#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019697/* confdefs.h. */
19698_ACEOF
19699cat confdefs.h >>conftest.$ac_ext
19700cat >>conftest.$ac_ext <<_ACEOF
19701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019702#include <$ac_header>
19703_ACEOF
19704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19706 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019707 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019708 rm -f conftest.er1
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } >/dev/null; then
19712 if test -s conftest.err; then
19713 ac_cpp_err=$ac_c_preproc_warn_flag
19714 else
19715 ac_cpp_err=
19716 fi
19717else
19718 ac_cpp_err=yes
19719fi
19720if test -z "$ac_cpp_err"; then
19721 ac_header_preproc=yes
19722else
19723 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019724sed 's/^/| /' conftest.$ac_ext >&5
19725
John Criswell7a73b802003-06-30 21:59:07 +000019726 ac_header_preproc=no
19727fi
19728rm -f conftest.err conftest.$ac_ext
19729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19730echo "${ECHO_T}$ac_header_preproc" >&6
19731
19732# So? What about this header?
19733case $ac_header_compiler:$ac_header_preproc in
19734 yes:no )
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19739 (
19740 cat <<\_ASBOX
19741## ------------------------------------ ##
19742## Report this to bug-autoconf@gnu.org. ##
19743## ------------------------------------ ##
19744_ASBOX
19745 ) |
19746 sed "s/^/$as_me: WARNING: /" >&2
19747 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019748 no:yes )
19749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19755 (
19756 cat <<\_ASBOX
19757## ------------------------------------ ##
19758## Report this to bug-autoconf@gnu.org. ##
19759## ------------------------------------ ##
19760_ASBOX
19761 ) |
19762 sed "s/^/$as_me: WARNING: /" >&2
19763 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019764esac
19765echo "$as_me:$LINENO: checking for $ac_header" >&5
19766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19767if eval "test \"\${$as_ac_Header+set}\" = set"; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769else
19770 eval "$as_ac_Header=$ac_header_preproc"
19771fi
19772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19774
19775fi
19776if test `eval echo '${'$as_ac_Header'}'` = yes; then
19777 cat >>confdefs.h <<_ACEOF
19778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779_ACEOF
19780
19781fi
19782
19783done
19784
19785
19786
19787
19788
John Criswelle8a63eb2003-10-23 19:16:12 +000019789for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019790do
19791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19792if eval "test \"\${$as_ac_Header+set}\" = set"; then
19793 echo "$as_me:$LINENO: checking for $ac_header" >&5
19794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19795if eval "test \"\${$as_ac_Header+set}\" = set"; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797fi
19798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19800else
19801 # Is the header compilable?
19802echo "$as_me:$LINENO: checking $ac_header usability" >&5
19803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19804cat >conftest.$ac_ext <<_ACEOF
19805#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019811$ac_includes_default
19812#include <$ac_header>
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_header_compiler=yes
19827else
19828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019829sed 's/^/| /' conftest.$ac_ext >&5
19830
John Criswell7a73b802003-06-30 21:59:07 +000019831ac_header_compiler=no
19832fi
19833rm -f conftest.$ac_objext conftest.$ac_ext
19834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19835echo "${ECHO_T}$ac_header_compiler" >&6
19836
19837# Is the header present?
19838echo "$as_me:$LINENO: checking $ac_header presence" >&5
19839echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19840cat >conftest.$ac_ext <<_ACEOF
19841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019847#include <$ac_header>
19848_ACEOF
19849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19851 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019852 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } >/dev/null; then
19857 if test -s conftest.err; then
19858 ac_cpp_err=$ac_c_preproc_warn_flag
19859 else
19860 ac_cpp_err=
19861 fi
19862else
19863 ac_cpp_err=yes
19864fi
19865if test -z "$ac_cpp_err"; then
19866 ac_header_preproc=yes
19867else
19868 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019869sed 's/^/| /' conftest.$ac_ext >&5
19870
John Criswell7a73b802003-06-30 21:59:07 +000019871 ac_header_preproc=no
19872fi
19873rm -f conftest.err conftest.$ac_ext
19874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19875echo "${ECHO_T}$ac_header_preproc" >&6
19876
19877# So? What about this header?
19878case $ac_header_compiler:$ac_header_preproc in
19879 yes:no )
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19884 (
19885 cat <<\_ASBOX
19886## ------------------------------------ ##
19887## Report this to bug-autoconf@gnu.org. ##
19888## ------------------------------------ ##
19889_ASBOX
19890 ) |
19891 sed "s/^/$as_me: WARNING: /" >&2
19892 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019893 no:yes )
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19900 (
19901 cat <<\_ASBOX
19902## ------------------------------------ ##
19903## Report this to bug-autoconf@gnu.org. ##
19904## ------------------------------------ ##
19905_ASBOX
19906 ) |
19907 sed "s/^/$as_me: WARNING: /" >&2
19908 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019909esac
19910echo "$as_me:$LINENO: checking for $ac_header" >&5
19911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915 eval "$as_ac_Header=$ac_header_preproc"
19916fi
19917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19919
19920fi
19921if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924_ACEOF
19925
19926fi
19927
19928done
19929
19930
19931
19932
19933for ac_header in dlfcn.h link.h
19934do
19935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936if eval "test \"\${$as_ac_Header+set}\" = set"; then
19937 echo "$as_me:$LINENO: checking for $ac_header" >&5
19938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19939if eval "test \"\${$as_ac_Header+set}\" = set"; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941fi
19942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19944else
19945 # Is the header compilable?
19946echo "$as_me:$LINENO: checking $ac_header usability" >&5
19947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19948cat >conftest.$ac_ext <<_ACEOF
19949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019950/* confdefs.h. */
19951_ACEOF
19952cat confdefs.h >>conftest.$ac_ext
19953cat >>conftest.$ac_ext <<_ACEOF
19954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019955$ac_includes_default
19956#include <$ac_header>
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
19964 { ac_try='test -s conftest.$ac_objext'
19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966 (eval $ac_try) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; }; then
19970 ac_header_compiler=yes
19971else
19972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019973sed 's/^/| /' conftest.$ac_ext >&5
19974
John Criswell7a73b802003-06-30 21:59:07 +000019975ac_header_compiler=no
19976fi
19977rm -f conftest.$ac_objext conftest.$ac_ext
19978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19979echo "${ECHO_T}$ac_header_compiler" >&6
19980
19981# Is the header present?
19982echo "$as_me:$LINENO: checking $ac_header presence" >&5
19983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19984cat >conftest.$ac_ext <<_ACEOF
19985#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019986/* confdefs.h. */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019991#include <$ac_header>
19992_ACEOF
19993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19995 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019996 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } >/dev/null; then
20001 if test -s conftest.err; then
20002 ac_cpp_err=$ac_c_preproc_warn_flag
20003 else
20004 ac_cpp_err=
20005 fi
20006else
20007 ac_cpp_err=yes
20008fi
20009if test -z "$ac_cpp_err"; then
20010 ac_header_preproc=yes
20011else
20012 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020013sed 's/^/| /' conftest.$ac_ext >&5
20014
John Criswell7a73b802003-06-30 21:59:07 +000020015 ac_header_preproc=no
20016fi
20017rm -f conftest.err conftest.$ac_ext
20018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20019echo "${ECHO_T}$ac_header_preproc" >&6
20020
20021# So? What about this header?
20022case $ac_header_compiler:$ac_header_preproc in
20023 yes:no )
20024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20028 (
20029 cat <<\_ASBOX
20030## ------------------------------------ ##
20031## Report this to bug-autoconf@gnu.org. ##
20032## ------------------------------------ ##
20033_ASBOX
20034 ) |
20035 sed "s/^/$as_me: WARNING: /" >&2
20036 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020037 no:yes )
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20044 (
20045 cat <<\_ASBOX
20046## ------------------------------------ ##
20047## Report this to bug-autoconf@gnu.org. ##
20048## ------------------------------------ ##
20049_ASBOX
20050 ) |
20051 sed "s/^/$as_me: WARNING: /" >&2
20052 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020053esac
20054echo "$as_me:$LINENO: checking for $ac_header" >&5
20055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20056if eval "test \"\${$as_ac_Header+set}\" = set"; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20058else
20059 eval "$as_ac_Header=$ac_header_preproc"
20060fi
20061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20063
20064fi
20065if test `eval echo '${'$as_ac_Header'}'` = yes; then
20066 cat >>confdefs.h <<_ACEOF
20067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20068_ACEOF
20069
20070fi
20071
20072done
20073
20074
20075
John Criswell7a73b802003-06-30 21:59:07 +000020076echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20077echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20078if test "${ac_cv_c_const+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080else
20081 cat >conftest.$ac_ext <<_ACEOF
20082#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020083/* confdefs.h. */
20084_ACEOF
20085cat confdefs.h >>conftest.$ac_ext
20086cat >>conftest.$ac_ext <<_ACEOF
20087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020088
John Criswell7a73b802003-06-30 21:59:07 +000020089int
20090main ()
20091{
20092/* FIXME: Include the comments suggested by Paul. */
20093#ifndef __cplusplus
20094 /* Ultrix mips cc rejects this. */
20095 typedef int charset[2];
20096 const charset x;
20097 /* SunOS 4.1.1 cc rejects this. */
20098 char const *const *ccp;
20099 char **p;
20100 /* NEC SVR4.0.2 mips cc rejects this. */
20101 struct point {int x, y;};
20102 static struct point const zero = {0,0};
20103 /* AIX XL C 1.02.0.0 rejects this.
20104 It does not let you subtract one const X* pointer from another in
20105 an arm of an if-expression whose if-part is not a constant
20106 expression */
20107 const char *g = "string";
20108 ccp = &g + (g ? g-g : 0);
20109 /* HPUX 7.0 cc rejects these. */
20110 ++ccp;
20111 p = (char**) ccp;
20112 ccp = (char const *const *) p;
20113 { /* SCO 3.2v4 cc rejects this. */
20114 char *t;
20115 char const *s = 0 ? (char *) 0 : (char const *) 0;
20116
20117 *t++ = 0;
20118 }
20119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20120 int x[] = {25, 17};
20121 const int *foo = &x[0];
20122 ++foo;
20123 }
20124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20125 typedef const int *iptr;
20126 iptr p = 0;
20127 ++p;
20128 }
20129 { /* AIX XL C 1.02.0.0 rejects this saying
20130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20131 struct s { int j; const int *ap[3]; };
20132 struct s *b; b->j = 5;
20133 }
20134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20135 const int foo = 10;
20136 }
20137#endif
20138
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext
20144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20145 (eval $ac_compile) 2>&5
20146 ac_status=$?
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151 (eval $ac_try) 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_c_const=yes
20156else
20157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020158sed 's/^/| /' conftest.$ac_ext >&5
20159
John Criswell7a73b802003-06-30 21:59:07 +000020160ac_cv_c_const=no
20161fi
20162rm -f conftest.$ac_objext conftest.$ac_ext
20163fi
20164echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20165echo "${ECHO_T}$ac_cv_c_const" >&6
20166if test $ac_cv_c_const = no; then
20167
20168cat >>confdefs.h <<\_ACEOF
20169#define const
20170_ACEOF
20171
20172fi
20173
20174echo "$as_me:$LINENO: checking for inline" >&5
20175echo $ECHO_N "checking for inline... $ECHO_C" >&6
20176if test "${ac_cv_c_inline+set}" = set; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20178else
20179 ac_cv_c_inline=no
20180for ac_kw in inline __inline__ __inline; do
20181 cat >conftest.$ac_ext <<_ACEOF
20182#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020188#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020189typedef int foo_t;
20190static $ac_kw foo_t static_foo () {return 0; }
20191$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020192#endif
20193
20194_ACEOF
20195rm -f conftest.$ac_objext
20196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -s conftest.$ac_objext'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_c_inline=$ac_kw; break
20208else
20209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020210sed 's/^/| /' conftest.$ac_ext >&5
20211
John Criswell7a73b802003-06-30 21:59:07 +000020212fi
20213rm -f conftest.$ac_objext conftest.$ac_ext
20214done
20215
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20218echo "${ECHO_T}$ac_cv_c_inline" >&6
20219case $ac_cv_c_inline in
20220 inline | yes) ;;
20221 no)
20222cat >>confdefs.h <<\_ACEOF
20223#define inline
20224_ACEOF
20225 ;;
20226 *) cat >>confdefs.h <<_ACEOF
20227#define inline $ac_cv_c_inline
20228_ACEOF
20229 ;;
20230esac
20231
20232
20233echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20234echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20235if test "${ac_cv_c_bigendian+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237else
20238 # See if sys/param.h defines the BYTE_ORDER macro.
20239cat >conftest.$ac_ext <<_ACEOF
20240#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020241/* confdefs.h. */
20242_ACEOF
20243cat confdefs.h >>conftest.$ac_ext
20244cat >>conftest.$ac_ext <<_ACEOF
20245/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020246#include <sys/types.h>
20247#include <sys/param.h>
20248
John Criswell7a73b802003-06-30 21:59:07 +000020249int
20250main ()
20251{
20252#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20253 bogus endian macros
20254#endif
20255
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext
20261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20262 (eval $ac_compile) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -s conftest.$ac_objext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 # It does; now see whether it defined to BIG_ENDIAN or not.
20273cat >conftest.$ac_ext <<_ACEOF
20274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020280#include <sys/types.h>
20281#include <sys/param.h>
20282
John Criswell7a73b802003-06-30 21:59:07 +000020283int
20284main ()
20285{
20286#if BYTE_ORDER != BIG_ENDIAN
20287 not big endian
20288#endif
20289
20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext
20295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20296 (eval $ac_compile) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_c_bigendian=yes
20307else
20308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020309sed 's/^/| /' conftest.$ac_ext >&5
20310
John Criswell7a73b802003-06-30 21:59:07 +000020311ac_cv_c_bigendian=no
20312fi
20313rm -f conftest.$ac_objext conftest.$ac_ext
20314else
20315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020316sed 's/^/| /' conftest.$ac_ext >&5
20317
John Criswell7a73b802003-06-30 21:59:07 +000020318# It does not; compile a test program.
20319if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020320 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020321 ac_cv_c_bigendian=unknown
20322 cat >conftest.$ac_ext <<_ACEOF
20323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020329short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20330short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20331void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20332short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20333short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20334void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020335int
20336main ()
20337{
20338 _ascii (); _ebcdic ();
20339 ;
20340 return 0;
20341}
20342_ACEOF
20343rm -f conftest.$ac_objext
20344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345 (eval $ac_compile) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } &&
20349 { ac_try='test -s conftest.$ac_objext'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020355 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020356 ac_cv_c_bigendian=yes
20357fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020358if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020359 if test "$ac_cv_c_bigendian" = unknown; then
20360 ac_cv_c_bigendian=no
20361 else
20362 # finding both strings is unlikely to happen, but who knows?
20363 ac_cv_c_bigendian=unknown
20364 fi
20365fi
20366else
20367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020368sed 's/^/| /' conftest.$ac_ext >&5
20369
John Criswell7a73b802003-06-30 21:59:07 +000020370fi
20371rm -f conftest.$ac_objext conftest.$ac_ext
20372else
20373 cat >conftest.$ac_ext <<_ACEOF
20374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020380int
20381main ()
20382{
20383 /* Are we little or big endian? From Harbison&Steele. */
20384 union
20385 {
20386 long l;
20387 char c[sizeof (long)];
20388 } u;
20389 u.l = 1;
20390 exit (u.c[sizeof (long) - 1] == 1);
20391}
20392_ACEOF
20393rm -f conftest$ac_exeext
20394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20395 (eval $ac_link) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_c_bigendian=no
20405else
20406 echo "$as_me: program exited with status $ac_status" >&5
20407echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020408sed 's/^/| /' conftest.$ac_ext >&5
20409
John Criswell7a73b802003-06-30 21:59:07 +000020410( exit $ac_status )
20411ac_cv_c_bigendian=yes
20412fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020413rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020414fi
20415fi
20416rm -f conftest.$ac_objext conftest.$ac_ext
20417fi
20418echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20419echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20420case $ac_cv_c_bigendian in
20421 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020422
20423cat >>confdefs.h <<\_ACEOF
20424#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020425_ACEOF
20426 ;;
20427 no)
John Criswell5ab73462003-10-09 15:44:28 +000020428
20429cat >>confdefs.h <<\_ACEOF
20430#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020431_ACEOF
20432 ;;
20433 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020434 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020435presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020436echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020437presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20438 { (exit 1); exit 1; }; } ;;
20439esac
20440
20441
20442echo "$as_me:$LINENO: checking for pid_t" >&5
20443echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20444if test "${ac_cv_type_pid_t+set}" = set; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446else
20447 cat >conftest.$ac_ext <<_ACEOF
20448#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020454$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020455int
20456main ()
20457{
20458if ((pid_t *) 0)
20459 return 0;
20460if (sizeof (pid_t))
20461 return 0;
20462 ;
20463 return 0;
20464}
20465_ACEOF
20466rm -f conftest.$ac_objext
20467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20468 (eval $ac_compile) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } &&
20472 { ac_try='test -s conftest.$ac_objext'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 ac_cv_type_pid_t=yes
20479else
20480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020481sed 's/^/| /' conftest.$ac_ext >&5
20482
John Criswell7a73b802003-06-30 21:59:07 +000020483ac_cv_type_pid_t=no
20484fi
20485rm -f conftest.$ac_objext conftest.$ac_ext
20486fi
20487echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20488echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20489if test $ac_cv_type_pid_t = yes; then
20490 :
20491else
20492
20493cat >>confdefs.h <<_ACEOF
20494#define pid_t int
20495_ACEOF
20496
20497fi
20498
20499echo "$as_me:$LINENO: checking for size_t" >&5
20500echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20501if test "${ac_cv_type_size_t+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504 cat >conftest.$ac_ext <<_ACEOF
20505#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020506/* confdefs.h. */
20507_ACEOF
20508cat confdefs.h >>conftest.$ac_ext
20509cat >>conftest.$ac_ext <<_ACEOF
20510/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020511$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020512int
20513main ()
20514{
20515if ((size_t *) 0)
20516 return 0;
20517if (sizeof (size_t))
20518 return 0;
20519 ;
20520 return 0;
20521}
20522_ACEOF
20523rm -f conftest.$ac_objext
20524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525 (eval $ac_compile) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try='test -s conftest.$ac_objext'
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_cv_type_size_t=yes
20536else
20537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020538sed 's/^/| /' conftest.$ac_ext >&5
20539
John Criswell7a73b802003-06-30 21:59:07 +000020540ac_cv_type_size_t=no
20541fi
20542rm -f conftest.$ac_objext conftest.$ac_ext
20543fi
20544echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20545echo "${ECHO_T}$ac_cv_type_size_t" >&6
20546if test $ac_cv_type_size_t = yes; then
20547 :
20548else
20549
20550cat >>confdefs.h <<_ACEOF
20551#define size_t unsigned
20552_ACEOF
20553
20554fi
20555
20556echo "$as_me:$LINENO: checking for int64_t" >&5
20557echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20558if test "${ac_cv_type_int64_t+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561 cat >conftest.$ac_ext <<_ACEOF
20562#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020563/* confdefs.h. */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020568$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020569int
20570main ()
20571{
20572if ((int64_t *) 0)
20573 return 0;
20574if (sizeof (int64_t))
20575 return 0;
20576 ;
20577 return 0;
20578}
20579_ACEOF
20580rm -f conftest.$ac_objext
20581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20582 (eval $ac_compile) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); } &&
20586 { ac_try='test -s conftest.$ac_objext'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20592 ac_cv_type_int64_t=yes
20593else
20594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020595sed 's/^/| /' conftest.$ac_ext >&5
20596
John Criswell7a73b802003-06-30 21:59:07 +000020597ac_cv_type_int64_t=no
20598fi
20599rm -f conftest.$ac_objext conftest.$ac_ext
20600fi
20601echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20602echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20603if test $ac_cv_type_int64_t = yes; then
20604
20605cat >>confdefs.h <<_ACEOF
20606#define HAVE_INT64_T 1
20607_ACEOF
20608
20609
20610else
20611 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20612echo "$as_me: error: Type int64_t required but not found" >&2;}
20613 { (exit 1); exit 1; }; }
20614fi
20615
20616echo "$as_me:$LINENO: checking for uint64_t" >&5
20617echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20618if test "${ac_cv_type_uint64_t+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20620else
20621 cat >conftest.$ac_ext <<_ACEOF
20622#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
20627/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020628$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020629int
20630main ()
20631{
20632if ((uint64_t *) 0)
20633 return 0;
20634if (sizeof (uint64_t))
20635 return 0;
20636 ;
20637 return 0;
20638}
20639_ACEOF
20640rm -f conftest.$ac_objext
20641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20642 (eval $ac_compile) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -s conftest.$ac_objext'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_cv_type_uint64_t=yes
20653else
20654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020655sed 's/^/| /' conftest.$ac_ext >&5
20656
John Criswell7a73b802003-06-30 21:59:07 +000020657ac_cv_type_uint64_t=no
20658fi
20659rm -f conftest.$ac_objext conftest.$ac_ext
20660fi
20661echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20662echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20663if test $ac_cv_type_uint64_t = yes; then
20664
20665cat >>confdefs.h <<_ACEOF
20666#define HAVE_UINT64_T 1
20667_ACEOF
20668
20669
20670else
20671 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20672echo "$as_me: error: Type uint64_t required but not found" >&2;}
20673 { (exit 1); exit 1; }; }
20674fi
20675
20676echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20677echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20678if test "${ac_cv_header_time+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20680else
20681 cat >conftest.$ac_ext <<_ACEOF
20682#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020683/* confdefs.h. */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020688#include <sys/types.h>
20689#include <sys/time.h>
20690#include <time.h>
20691
John Criswell7a73b802003-06-30 21:59:07 +000020692int
20693main ()
20694{
20695if ((struct tm *) 0)
20696return 0;
20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703 (eval $ac_compile) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 ac_cv_header_time=yes
20714else
20715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020716sed 's/^/| /' conftest.$ac_ext >&5
20717
John Criswell7a73b802003-06-30 21:59:07 +000020718ac_cv_header_time=no
20719fi
20720rm -f conftest.$ac_objext conftest.$ac_ext
20721fi
20722echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20723echo "${ECHO_T}$ac_cv_header_time" >&6
20724if test $ac_cv_header_time = yes; then
20725
20726cat >>confdefs.h <<\_ACEOF
20727#define TIME_WITH_SYS_TIME 1
20728_ACEOF
20729
20730fi
20731
20732echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20733echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20734if test "${ac_cv_struct_tm+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737 cat >conftest.$ac_ext <<_ACEOF
20738#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020739/* confdefs.h. */
20740_ACEOF
20741cat confdefs.h >>conftest.$ac_ext
20742cat >>conftest.$ac_ext <<_ACEOF
20743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020744#include <sys/types.h>
20745#include <time.h>
20746
John Criswell7a73b802003-06-30 21:59:07 +000020747int
20748main ()
20749{
20750struct tm *tp; tp->tm_sec;
20751 ;
20752 return 0;
20753}
20754_ACEOF
20755rm -f conftest.$ac_objext
20756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757 (eval $ac_compile) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_cv_struct_tm=time.h
20768else
20769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020770sed 's/^/| /' conftest.$ac_ext >&5
20771
John Criswell7a73b802003-06-30 21:59:07 +000020772ac_cv_struct_tm=sys/time.h
20773fi
20774rm -f conftest.$ac_objext conftest.$ac_ext
20775fi
20776echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20777echo "${ECHO_T}$ac_cv_struct_tm" >&6
20778if test $ac_cv_struct_tm = sys/time.h; then
20779
20780cat >>confdefs.h <<\_ACEOF
20781#define TM_IN_SYS_TIME 1
20782_ACEOF
20783
20784fi
20785
20786
John Criswella0137d32003-10-13 16:22:01 +000020787
20788
20789
20790 ac_ext=c
20791ac_cpp='$CPP $CPPFLAGS'
20792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20794ac_compiler_gnu=$ac_cv_c_compiler_gnu
20795
20796 if test "$cross_compiling" = yes; then
20797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20798See \`config.log' for more details." >&5
20799echo "$as_me: error: cannot run test program while cross compiling
20800See \`config.log' for more details." >&2;}
20801 { (exit 1); exit 1; }; }
20802else
20803 cat >conftest.$ac_ext <<_ACEOF
20804#line $LINENO "configure"
20805/* confdefs.h. */
20806_ACEOF
20807cat confdefs.h >>conftest.$ac_ext
20808cat >>conftest.$ac_ext <<_ACEOF
20809/* end confdefs.h. */
20810#include <stdio.h>
20811 #include <stdlib.h>
20812int
20813main ()
20814{
20815
20816 volatile double A, B;
20817 char Buffer[100];
20818 A = 1;
20819 A /= 10.0;
20820 sprintf(Buffer, "%a", A);
20821 B = atof(Buffer);
20822 if (A != B)
20823 return (1);
20824 if (A != 0x1.999999999999ap-4)
20825 return (1);
20826 return (0);
20827 ;
20828 return 0;
20829}
20830_ACEOF
20831rm -f conftest$ac_exeext
20832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20833 (eval $ac_link) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 ac_c_printf_a=yes
20843else
20844 echo "$as_me: program exited with status $ac_status" >&5
20845echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848( exit $ac_status )
20849ac_c_printf_a=no
20850fi
20851rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852fi
20853 ac_ext=c
20854ac_cpp='$CPP $CPPFLAGS'
20855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858
20859 if test "$ac_c_printf_a" = "yes"; then
20860
20861cat >>confdefs.h <<\_ACEOF
20862#define HAVE_PRINTF_A 1
20863_ACEOF
20864
20865 fi
20866
20867
John Criswell7a73b802003-06-30 21:59:07 +000020868echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20869echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20870if test "${ac_cv_cxx_namespaces+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872else
20873
20874
20875 ac_ext=cc
20876ac_cpp='$CXXCPP $CPPFLAGS'
20877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20880
20881 cat >conftest.$ac_ext <<_ACEOF
20882#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020883/* confdefs.h. */
20884_ACEOF
20885cat confdefs.h >>conftest.$ac_ext
20886cat >>conftest.$ac_ext <<_ACEOF
20887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020888namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020889int
20890main ()
20891{
20892using namespace Outer::Inner; return i;
20893 ;
20894 return 0;
20895}
20896_ACEOF
20897rm -f conftest.$ac_objext
20898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20899 (eval $ac_compile) 2>&5
20900 ac_status=$?
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
20903 { ac_try='test -s conftest.$ac_objext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 ac_cv_cxx_namespaces=yes
20910else
20911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020912sed 's/^/| /' conftest.$ac_ext >&5
20913
John Criswell7a73b802003-06-30 21:59:07 +000020914ac_cv_cxx_namespaces=no
20915fi
20916rm -f conftest.$ac_objext conftest.$ac_ext
20917 ac_ext=c
20918ac_cpp='$CPP $CPPFLAGS'
20919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921ac_compiler_gnu=$ac_cv_c_compiler_gnu
20922
20923
20924fi
20925echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20926echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20927if test "$ac_cv_cxx_namespaces" = yes; then
20928
20929cat >>confdefs.h <<\_ACEOF
20930#define HAVE_NAMESPACES
20931_ACEOF
20932
20933fi
20934
Brian Gaeke90583492003-11-10 03:06:28 +000020935echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20936echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20937if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939else
20940
20941
20942
20943 ac_ext=cc
20944ac_cpp='$CXXCPP $CPPFLAGS'
20945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20948
20949 cat >conftest.$ac_ext <<_ACEOF
20950#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020956#include <ext/hash_map>
20957#ifdef HAVE_NAMESPACES
20958using namespace std;
20959#endif
John Criswell7a73b802003-06-30 21:59:07 +000020960int
20961main ()
20962{
Brian Gaeke90583492003-11-10 03:06:28 +000020963hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020964 ;
20965 return 0;
20966}
20967_ACEOF
20968rm -f conftest.$ac_objext
20969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20970 (eval $ac_compile) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -s conftest.$ac_objext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020980 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020981else
20982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020983sed 's/^/| /' conftest.$ac_ext >&5
20984
Brian Gaeke90583492003-11-10 03:06:28 +000020985ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020986fi
20987rm -f conftest.$ac_objext conftest.$ac_ext
20988 ac_ext=c
20989ac_cpp='$CPP $CPPFLAGS'
20990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_c_compiler_gnu
20993
John Criswell7a73b802003-06-30 21:59:07 +000020994fi
Brian Gaeke90583492003-11-10 03:06:28 +000020995echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20996echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20997 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020998
20999cat >>confdefs.h <<\_ACEOF
21000#define HAVE_STD_EXT_HASH_MAP
21001_ACEOF
21002
Brian Gaeke90583492003-11-10 03:06:28 +000021003 fi
21004 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21005echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21006if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21008else
21009
21010
21011
21012 ac_ext=cc
21013ac_cpp='$CXXCPP $CPPFLAGS'
21014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21017
21018 cat >conftest.$ac_ext <<_ACEOF
21019#line $LINENO "configure"
21020/* confdefs.h. */
21021_ACEOF
21022cat confdefs.h >>conftest.$ac_ext
21023cat >>conftest.$ac_ext <<_ACEOF
21024/* end confdefs.h. */
21025#include <ext/hash_map>
21026#ifdef HAVE_NAMESPACES
21027using namespace __gnu_cxx;
21028#endif
21029int
21030main ()
21031{
21032hash_map<int,int> t;
21033 ;
21034 return 0;
21035}
21036_ACEOF
21037rm -f conftest.$ac_objext
21038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039 (eval $ac_compile) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
21043 { ac_try='test -s conftest.$ac_objext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 ac_cv_cxx_have_gnu_ext_hash_map=yes
21050else
21051 echo "$as_me: failed program was:" >&5
21052sed 's/^/| /' conftest.$ac_ext >&5
21053
21054ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021055fi
Brian Gaeke90583492003-11-10 03:06:28 +000021056rm -f conftest.$ac_objext conftest.$ac_ext
21057 ac_ext=c
21058ac_cpp='$CPP $CPPFLAGS'
21059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063fi
21064echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21065echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21066 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021067
21068cat >>confdefs.h <<\_ACEOF
21069#define HAVE_GNU_EXT_HASH_MAP
21070_ACEOF
21071
Brian Gaeke90583492003-11-10 03:06:28 +000021072 fi
21073 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21074echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21075if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077else
John Criswell7a73b802003-06-30 21:59:07 +000021078
Brian Gaeke90583492003-11-10 03:06:28 +000021079
21080
21081 ac_ext=cc
21082ac_cpp='$CXXCPP $CPPFLAGS'
21083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21086
21087 cat >conftest.$ac_ext <<_ACEOF
21088#line $LINENO "configure"
21089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
21094#include <hash_map>
21095int
21096main ()
21097{
21098hash_map<int,int> t;
21099 ;
21100 return 0;
21101}
21102_ACEOF
21103rm -f conftest.$ac_objext
21104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105 (eval $ac_compile) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -s conftest.$ac_objext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_cxx_have_global_hash_map=yes
21116else
21117 echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120ac_cv_cxx_have_global_hash_map=no
21121fi
21122rm -f conftest.$ac_objext conftest.$ac_ext
21123 ac_ext=c
21124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129fi
21130echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21131echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21132 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21133
21134cat >>confdefs.h <<\_ACEOF
21135#define HAVE_GLOBAL_HASH_MAP
21136_ACEOF
21137
21138 fi
21139echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21140echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21141if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143else
21144
21145
21146
21147 ac_ext=cc
21148ac_cpp='$CXXCPP $CPPFLAGS'
21149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21152
21153 cat >conftest.$ac_ext <<_ACEOF
21154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021155/* confdefs.h. */
21156_ACEOF
21157cat confdefs.h >>conftest.$ac_ext
21158cat >>conftest.$ac_ext <<_ACEOF
21159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021160#include <ext/hash_set>
21161#ifdef HAVE_NAMESPACES
21162using namespace std;
21163#endif
John Criswell7a73b802003-06-30 21:59:07 +000021164int
21165main ()
21166{
Brian Gaeke90583492003-11-10 03:06:28 +000021167hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021168 ;
21169 return 0;
21170}
21171_ACEOF
21172rm -f conftest.$ac_objext
21173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21174 (eval $ac_compile) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } &&
21178 { ac_try='test -s conftest.$ac_objext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021184 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021185else
21186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021187sed 's/^/| /' conftest.$ac_ext >&5
21188
Brian Gaeke90583492003-11-10 03:06:28 +000021189ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021190fi
21191rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021192 ac_ext=c
21193ac_cpp='$CPP $CPPFLAGS'
21194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196ac_compiler_gnu=$ac_cv_c_compiler_gnu
21197
21198fi
21199echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21200echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21201 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21202
21203cat >>confdefs.h <<\_ACEOF
21204#define HAVE_STD_EXT_HASH_SET
21205_ACEOF
21206
21207 fi
21208 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21209echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21210if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212else
21213
21214
21215
21216 ac_ext=cc
21217ac_cpp='$CXXCPP $CPPFLAGS'
21218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
John Criswell7a73b802003-06-30 21:59:07 +000021222 cat >conftest.$ac_ext <<_ACEOF
21223#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021229#include <ext/hash_set>
21230#ifdef HAVE_NAMESPACES
21231using namespace __gnu_cxx;
21232#endif
John Criswell7a73b802003-06-30 21:59:07 +000021233int
21234main ()
21235{
Brian Gaeke90583492003-11-10 03:06:28 +000021236hash_set<int> t;
21237 ;
21238 return 0;
21239}
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21243 (eval $ac_compile) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
21247 { ac_try='test -s conftest.$ac_objext'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; }; then
21253 ac_cv_cxx_have_gnu_ext_hash_set=yes
21254else
21255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
21258ac_cv_cxx_have_gnu_ext_hash_set=no
21259fi
21260rm -f conftest.$ac_objext conftest.$ac_ext
21261 ac_ext=c
21262ac_cpp='$CPP $CPPFLAGS'
21263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265ac_compiler_gnu=$ac_cv_c_compiler_gnu
21266
21267fi
21268echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21269echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21270 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21271
21272cat >>confdefs.h <<\_ACEOF
21273#define HAVE_GNU_EXT_HASH_SET
21274_ACEOF
21275
21276 fi
21277 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21278echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21279if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281else
21282
21283
21284
21285 ac_ext=cc
21286ac_cpp='$CXXCPP $CPPFLAGS'
21287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21290
21291 cat >conftest.$ac_ext <<_ACEOF
21292#line $LINENO "configure"
21293/* confdefs.h. */
21294_ACEOF
21295cat confdefs.h >>conftest.$ac_ext
21296cat >>conftest.$ac_ext <<_ACEOF
21297/* end confdefs.h. */
21298#include <hash_set>
21299int
21300main ()
21301{
John Criswell7a73b802003-06-30 21:59:07 +000021302hash_set<int> t; return 0;
21303 ;
21304 return 0;
21305}
21306_ACEOF
21307rm -f conftest.$ac_objext
21308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21309 (eval $ac_compile) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021319 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021320else
21321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021322sed 's/^/| /' conftest.$ac_ext >&5
21323
Brian Gaeke90583492003-11-10 03:06:28 +000021324ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021325fi
21326rm -f conftest.$ac_objext conftest.$ac_ext
21327 ac_ext=c
21328ac_cpp='$CPP $CPPFLAGS'
21329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332
John Criswell7a73b802003-06-30 21:59:07 +000021333fi
Brian Gaeke90583492003-11-10 03:06:28 +000021334echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21335echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21336 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021337
21338cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021339#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000021340_ACEOF
21341
Brian Gaeke90583492003-11-10 03:06:28 +000021342 fi
John Criswell7a73b802003-06-30 21:59:07 +000021343echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21344echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21345if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347else
21348
21349
21350
21351 ac_ext=cc
21352ac_cpp='$CXXCPP $CPPFLAGS'
21353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21356
21357 cat >conftest.$ac_ext <<_ACEOF
21358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021359/* confdefs.h. */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021364#include <ext/slist>
21365#ifdef HAVE_NAMESPACES
21366using namespace std;
21367#endif
John Criswell7a73b802003-06-30 21:59:07 +000021368int
21369main ()
21370{
21371slist<int> s; return 0;
21372 ;
21373 return 0;
21374}
21375_ACEOF
21376rm -f conftest.$ac_objext
21377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21378 (eval $ac_compile) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -s conftest.$ac_objext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 ac_cv_cxx_have_ext_slist=std
21389else
21390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021391sed 's/^/| /' conftest.$ac_ext >&5
21392
John Criswell7a73b802003-06-30 21:59:07 +000021393ac_cv_cxx_have_ext_slist=no
21394fi
21395rm -f conftest.$ac_objext conftest.$ac_ext
21396 cat >conftest.$ac_ext <<_ACEOF
21397#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021398/* confdefs.h. */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021403#include <ext/slist>
21404#ifdef HAVE_NAMESPACES
21405using namespace __gnu_cxx;
21406#endif
John Criswell7a73b802003-06-30 21:59:07 +000021407int
21408main ()
21409{
21410slist<int> s; return 0;
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21417 (eval $ac_compile) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
21421 { ac_try='test -s conftest.$ac_objext'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; }; then
21427 ac_cv_cxx_have_ext_slist=gnu
21428else
21429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021430sed 's/^/| /' conftest.$ac_ext >&5
21431
John Criswell7a73b802003-06-30 21:59:07 +000021432ac_cv_cxx_have_ext_slist=no
21433fi
21434rm -f conftest.$ac_objext conftest.$ac_ext
21435
21436 ac_ext=c
21437ac_cpp='$CPP $CPPFLAGS'
21438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441
21442
21443fi
21444echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21445echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21446if test "$ac_cv_cxx_have_ext_slist" = std; then
21447
21448cat >>confdefs.h <<\_ACEOF
21449#define HAVE_EXT_SLIST std
21450_ACEOF
21451
21452fi
21453if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21454
21455cat >>confdefs.h <<\_ACEOF
21456#define HAVE_EXT_SLIST gnu
21457_ACEOF
21458
21459fi
21460
21461echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21462echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21463if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21465else
21466
21467
21468
21469 ac_ext=cc
21470ac_cpp='$CXXCPP $CPPFLAGS'
21471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21474
21475 cat >conftest.$ac_ext <<_ACEOF
21476#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021477/* confdefs.h. */
21478_ACEOF
21479cat confdefs.h >>conftest.$ac_ext
21480cat >>conftest.$ac_ext <<_ACEOF
21481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021482#include <iterator>
21483#ifdef HAVE_NAMESPACES
21484using namespace std;
21485#endif
John Criswell7a73b802003-06-30 21:59:07 +000021486int
21487main ()
21488{
21489iterator<int,int,int> t; return 0;
21490 ;
21491 return 0;
21492}
21493_ACEOF
21494rm -f conftest.$ac_objext
21495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496 (eval $ac_compile) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_cxx_have_std_iterator=yes
21507else
21508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021509sed 's/^/| /' conftest.$ac_ext >&5
21510
John Criswell7a73b802003-06-30 21:59:07 +000021511ac_cv_cxx_have_std_iterator=no
21512fi
21513rm -f conftest.$ac_objext conftest.$ac_ext
21514 ac_ext=c
21515ac_cpp='$CPP $CPPFLAGS'
21516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518ac_compiler_gnu=$ac_cv_c_compiler_gnu
21519
21520
21521fi
21522echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21523echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21524if test "$ac_cv_cxx_have_std_iterator" = yes; then
21525
21526cat >>confdefs.h <<\_ACEOF
21527#define HAVE_STD_ITERATOR
21528_ACEOF
21529
21530fi
21531
21532echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21533echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21534if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536else
21537
21538
21539
21540 ac_ext=cc
21541ac_cpp='$CXXCPP $CPPFLAGS'
21542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21545
21546 cat >conftest.$ac_ext <<_ACEOF
21547#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021548/* confdefs.h. */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021553#include <iterator>
21554#ifdef HAVE_NAMESPACES
21555using namespace std;
21556#endif
John Criswell7a73b802003-06-30 21:59:07 +000021557int
21558main ()
21559{
John Criswellc78022e2003-07-29 19:11:58 +000021560bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021561 ;
21562 return 0;
21563}
21564_ACEOF
21565rm -f conftest.$ac_objext
21566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567 (eval $ac_compile) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
21571 { ac_try='test -s conftest.$ac_objext'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_cxx_have_bi_iterator=yes
21578else
21579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021580sed 's/^/| /' conftest.$ac_ext >&5
21581
John Criswell7a73b802003-06-30 21:59:07 +000021582ac_cv_cxx_have_bi_iterator=no
21583fi
21584rm -f conftest.$ac_objext conftest.$ac_ext
21585 ac_ext=c
21586ac_cpp='$CPP $CPPFLAGS'
21587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589ac_compiler_gnu=$ac_cv_c_compiler_gnu
21590
21591
21592fi
21593echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21594echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21595if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21596
21597cat >>confdefs.h <<\_ACEOF
21598#define HAVE_BI_ITERATOR
21599_ACEOF
21600
21601fi
21602
21603echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21604echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21605if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607else
21608
21609
21610
21611 ac_ext=cc
21612ac_cpp='$CXXCPP $CPPFLAGS'
21613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21616
21617 cat >conftest.$ac_ext <<_ACEOF
21618#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021624#include <iterator>
21625#ifdef HAVE_NAMESPACES
21626using namespace std;
21627#endif
John Criswell7a73b802003-06-30 21:59:07 +000021628int
21629main ()
21630{
John Criswellc78022e2003-07-29 19:11:58 +000021631forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021632 ;
21633 return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
21642 { ac_try='test -s conftest.$ac_objext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_cv_cxx_have_fwd_iterator=yes
21649else
21650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021651sed 's/^/| /' conftest.$ac_ext >&5
21652
John Criswell7a73b802003-06-30 21:59:07 +000021653ac_cv_cxx_have_fwd_iterator=no
21654fi
21655rm -f conftest.$ac_objext conftest.$ac_ext
21656 ac_ext=c
21657ac_cpp='$CPP $CPPFLAGS'
21658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21660ac_compiler_gnu=$ac_cv_c_compiler_gnu
21661
21662
21663fi
21664echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21665echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21666if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21667
21668cat >>confdefs.h <<\_ACEOF
21669#define HAVE_FWD_ITERATOR
21670_ACEOF
21671
21672fi
21673
21674
21675# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21676# for constant arguments. Useless!
21677echo "$as_me:$LINENO: checking for working alloca.h" >&5
21678echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21679if test "${ac_cv_working_alloca_h+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21681else
21682 cat >conftest.$ac_ext <<_ACEOF
21683#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021689#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021690int
21691main ()
21692{
21693char *p = (char *) alloca (2 * sizeof (int));
21694 ;
21695 return 0;
21696}
21697_ACEOF
21698rm -f conftest.$ac_objext conftest$ac_exeext
21699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21700 (eval $ac_link) 2>&5
21701 ac_status=$?
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
21704 { ac_try='test -s conftest$ac_exeext'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_working_alloca_h=yes
21711else
21712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021713sed 's/^/| /' conftest.$ac_ext >&5
21714
John Criswell7a73b802003-06-30 21:59:07 +000021715ac_cv_working_alloca_h=no
21716fi
21717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21718fi
21719echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21720echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21721if test $ac_cv_working_alloca_h = yes; then
21722
21723cat >>confdefs.h <<\_ACEOF
21724#define HAVE_ALLOCA_H 1
21725_ACEOF
21726
21727fi
21728
21729echo "$as_me:$LINENO: checking for alloca" >&5
21730echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21731if test "${ac_cv_func_alloca_works+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733else
21734 cat >conftest.$ac_ext <<_ACEOF
21735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021741#ifdef __GNUC__
21742# define alloca __builtin_alloca
21743#else
21744# ifdef _MSC_VER
21745# include <malloc.h>
21746# define alloca _alloca
21747# else
21748# if HAVE_ALLOCA_H
21749# include <alloca.h>
21750# else
21751# ifdef _AIX
21752 #pragma alloca
21753# else
21754# ifndef alloca /* predefined by HP cc +Olibcalls */
21755char *alloca ();
21756# endif
21757# endif
21758# endif
21759# endif
21760#endif
21761
John Criswell7a73b802003-06-30 21:59:07 +000021762int
21763main ()
21764{
21765char *p = (char *) alloca (1);
21766 ;
21767 return 0;
21768}
21769_ACEOF
21770rm -f conftest.$ac_objext conftest$ac_exeext
21771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21772 (eval $ac_link) 2>&5
21773 ac_status=$?
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } &&
21776 { ac_try='test -s conftest$ac_exeext'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 ac_cv_func_alloca_works=yes
21783else
21784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021785sed 's/^/| /' conftest.$ac_ext >&5
21786
John Criswell7a73b802003-06-30 21:59:07 +000021787ac_cv_func_alloca_works=no
21788fi
21789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21790fi
21791echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21792echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21793
21794if test $ac_cv_func_alloca_works = yes; then
21795
21796cat >>confdefs.h <<\_ACEOF
21797#define HAVE_ALLOCA 1
21798_ACEOF
21799
21800else
21801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21802# that cause trouble. Some versions do not even contain alloca or
21803# contain a buggy version. If you still want to use their alloca,
21804# use ar to extract alloca.o from them instead of compiling alloca.c.
21805
21806ALLOCA=alloca.$ac_objext
21807
21808cat >>confdefs.h <<\_ACEOF
21809#define C_ALLOCA 1
21810_ACEOF
21811
21812
21813echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21814echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21815if test "${ac_cv_os_cray+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21817else
21818 cat >conftest.$ac_ext <<_ACEOF
21819#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021820/* confdefs.h. */
21821_ACEOF
21822cat confdefs.h >>conftest.$ac_ext
21823cat >>conftest.$ac_ext <<_ACEOF
21824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021825#if defined(CRAY) && ! defined(CRAY2)
21826webecray
21827#else
21828wenotbecray
21829#endif
21830
21831_ACEOF
21832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021833 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021834 ac_cv_os_cray=yes
21835else
21836 ac_cv_os_cray=no
21837fi
21838rm -f conftest*
21839
21840fi
21841echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21842echo "${ECHO_T}$ac_cv_os_cray" >&6
21843if test $ac_cv_os_cray = yes; then
21844 for ac_func in _getb67 GETB67 getb67; do
21845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21846echo "$as_me:$LINENO: checking for $ac_func" >&5
21847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21848if eval "test \"\${$as_ac_var+set}\" = set"; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850else
21851 cat >conftest.$ac_ext <<_ACEOF
21852#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021858/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021859 which can conflict with char $ac_func (); below.
21860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21861 <limits.h> exists even on freestanding compilers. */
21862#ifdef __STDC__
21863# include <limits.h>
21864#else
21865# include <assert.h>
21866#endif
John Criswell7a73b802003-06-30 21:59:07 +000021867/* Override any gcc2 internal prototype to avoid an error. */
21868#ifdef __cplusplus
21869extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021870{
John Criswell7a73b802003-06-30 21:59:07 +000021871#endif
21872/* We use char because int might match the return type of a gcc2
21873 builtin and then its argument prototype would still apply. */
21874char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021875/* The GNU C library defines this for functions which it implements
21876 to always fail with ENOSYS. Some functions are actually named
21877 something starting with __ and the normal name is an alias. */
21878#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21879choke me
21880#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021881char (*f) () = $ac_func;
21882#endif
21883#ifdef __cplusplus
21884}
John Criswell7a73b802003-06-30 21:59:07 +000021885#endif
21886
John Criswell0c38eaf2003-09-10 15:17:25 +000021887int
21888main ()
21889{
21890return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021891 ;
21892 return 0;
21893}
21894_ACEOF
21895rm -f conftest.$ac_objext conftest$ac_exeext
21896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21897 (eval $ac_link) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -s conftest$ac_exeext'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 eval "$as_ac_var=yes"
21908else
21909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021910sed 's/^/| /' conftest.$ac_ext >&5
21911
John Criswell7a73b802003-06-30 21:59:07 +000021912eval "$as_ac_var=no"
21913fi
21914rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21915fi
21916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21917echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21918if test `eval echo '${'$as_ac_var'}'` = yes; then
21919
21920cat >>confdefs.h <<_ACEOF
21921#define CRAY_STACKSEG_END $ac_func
21922_ACEOF
21923
21924 break
21925fi
21926
21927 done
21928fi
21929
21930echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21931echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21932if test "${ac_cv_c_stack_direction+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934else
21935 if test "$cross_compiling" = yes; then
21936 ac_cv_c_stack_direction=0
21937else
21938 cat >conftest.$ac_ext <<_ACEOF
21939#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021945int
21946find_stack_direction ()
21947{
21948 static char *addr = 0;
21949 auto char dummy;
21950 if (addr == 0)
21951 {
21952 addr = &dummy;
21953 return find_stack_direction ();
21954 }
21955 else
21956 return (&dummy > addr) ? 1 : -1;
21957}
21958
21959int
21960main ()
21961{
21962 exit (find_stack_direction () < 0);
21963}
21964_ACEOF
21965rm -f conftest$ac_exeext
21966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21967 (eval $ac_link) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_cv_c_stack_direction=1
21977else
21978 echo "$as_me: program exited with status $ac_status" >&5
21979echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021980sed 's/^/| /' conftest.$ac_ext >&5
21981
John Criswell7a73b802003-06-30 21:59:07 +000021982( exit $ac_status )
21983ac_cv_c_stack_direction=-1
21984fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021985rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021986fi
21987fi
21988echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21989echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21990
21991cat >>confdefs.h <<_ACEOF
21992#define STACK_DIRECTION $ac_cv_c_stack_direction
21993_ACEOF
21994
21995
21996fi
21997
21998if test $ac_cv_c_compiler_gnu = yes; then
21999 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22000echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22001if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004 ac_pattern="Autoconf.*'x'"
22005 cat >conftest.$ac_ext <<_ACEOF
22006#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022012#include <sgtty.h>
22013Autoconf TIOCGETP
22014_ACEOF
22015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022016 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022017 ac_cv_prog_gcc_traditional=yes
22018else
22019 ac_cv_prog_gcc_traditional=no
22020fi
22021rm -f conftest*
22022
22023
22024 if test $ac_cv_prog_gcc_traditional = no; then
22025 cat >conftest.$ac_ext <<_ACEOF
22026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022027/* confdefs.h. */
22028_ACEOF
22029cat confdefs.h >>conftest.$ac_ext
22030cat >>conftest.$ac_ext <<_ACEOF
22031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022032#include <termio.h>
22033Autoconf TCGETA
22034_ACEOF
22035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022036 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022037 ac_cv_prog_gcc_traditional=yes
22038fi
22039rm -f conftest*
22040
22041 fi
22042fi
22043echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22044echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22045 if test $ac_cv_prog_gcc_traditional = yes; then
22046 CC="$CC -traditional"
22047 fi
22048fi
22049
22050echo "$as_me:$LINENO: checking for working memcmp" >&5
22051echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22052if test "${ac_cv_func_memcmp_working+set}" = set; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 if test "$cross_compiling" = yes; then
22056 ac_cv_func_memcmp_working=no
22057else
22058 cat >conftest.$ac_ext <<_ACEOF
22059#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022060/* confdefs.h. */
22061_ACEOF
22062cat confdefs.h >>conftest.$ac_ext
22063cat >>conftest.$ac_ext <<_ACEOF
22064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022065
John Criswell7a73b802003-06-30 21:59:07 +000022066int
22067main ()
22068{
22069
22070 /* Some versions of memcmp are not 8-bit clean. */
22071 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22072 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22073 exit (1);
22074
22075 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22076 or more and with at least one buffer not starting on a 4-byte boundary.
22077 William Lewis provided this test program. */
22078 {
22079 char foo[21];
22080 char bar[21];
22081 int i;
22082 for (i = 0; i < 4; i++)
22083 {
22084 char *a = foo + i;
22085 char *b = bar + i;
22086 strcpy (a, "--------01111111");
22087 strcpy (b, "--------10000000");
22088 if (memcmp (a, b, 16) >= 0)
22089 exit (1);
22090 }
22091 exit (0);
22092 }
22093
22094 ;
22095 return 0;
22096}
22097_ACEOF
22098rm -f conftest$ac_exeext
22099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22100 (eval $ac_link) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105 (eval $ac_try) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; }; then
22109 ac_cv_func_memcmp_working=yes
22110else
22111 echo "$as_me: program exited with status $ac_status" >&5
22112echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022113sed 's/^/| /' conftest.$ac_ext >&5
22114
John Criswell7a73b802003-06-30 21:59:07 +000022115( exit $ac_status )
22116ac_cv_func_memcmp_working=no
22117fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022118rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022119fi
22120fi
22121echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22122echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22123test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22124
22125
22126
22127for ac_header in stdlib.h unistd.h
22128do
22129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22130if eval "test \"\${$as_ac_Header+set}\" = set"; then
22131 echo "$as_me:$LINENO: checking for $ac_header" >&5
22132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22133if eval "test \"\${$as_ac_Header+set}\" = set"; then
22134 echo $ECHO_N "(cached) $ECHO_C" >&6
22135fi
22136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22138else
22139 # Is the header compilable?
22140echo "$as_me:$LINENO: checking $ac_header usability" >&5
22141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22142cat >conftest.$ac_ext <<_ACEOF
22143#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022149$ac_includes_default
22150#include <$ac_header>
22151_ACEOF
22152rm -f conftest.$ac_objext
22153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154 (eval $ac_compile) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } &&
22158 { ac_try='test -s conftest.$ac_objext'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ac_header_compiler=yes
22165else
22166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022167sed 's/^/| /' conftest.$ac_ext >&5
22168
John Criswell7a73b802003-06-30 21:59:07 +000022169ac_header_compiler=no
22170fi
22171rm -f conftest.$ac_objext conftest.$ac_ext
22172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22173echo "${ECHO_T}$ac_header_compiler" >&6
22174
22175# Is the header present?
22176echo "$as_me:$LINENO: checking $ac_header presence" >&5
22177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22178cat >conftest.$ac_ext <<_ACEOF
22179#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022180/* confdefs.h. */
22181_ACEOF
22182cat confdefs.h >>conftest.$ac_ext
22183cat >>conftest.$ac_ext <<_ACEOF
22184/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022185#include <$ac_header>
22186_ACEOF
22187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22189 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022190 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } >/dev/null; then
22195 if test -s conftest.err; then
22196 ac_cpp_err=$ac_c_preproc_warn_flag
22197 else
22198 ac_cpp_err=
22199 fi
22200else
22201 ac_cpp_err=yes
22202fi
22203if test -z "$ac_cpp_err"; then
22204 ac_header_preproc=yes
22205else
22206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022207sed 's/^/| /' conftest.$ac_ext >&5
22208
John Criswell7a73b802003-06-30 21:59:07 +000022209 ac_header_preproc=no
22210fi
22211rm -f conftest.err conftest.$ac_ext
22212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22213echo "${ECHO_T}$ac_header_preproc" >&6
22214
22215# So? What about this header?
22216case $ac_header_compiler:$ac_header_preproc in
22217 yes:no )
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22222 (
22223 cat <<\_ASBOX
22224## ------------------------------------ ##
22225## Report this to bug-autoconf@gnu.org. ##
22226## ------------------------------------ ##
22227_ASBOX
22228 ) |
22229 sed "s/^/$as_me: WARNING: /" >&2
22230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022231 no:yes )
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238 (
22239 cat <<\_ASBOX
22240## ------------------------------------ ##
22241## Report this to bug-autoconf@gnu.org. ##
22242## ------------------------------------ ##
22243_ASBOX
22244 ) |
22245 sed "s/^/$as_me: WARNING: /" >&2
22246 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022247esac
22248echo "$as_me:$LINENO: checking for $ac_header" >&5
22249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22250if eval "test \"\${$as_ac_Header+set}\" = set"; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252else
22253 eval "$as_ac_Header=$ac_header_preproc"
22254fi
22255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22257
22258fi
22259if test `eval echo '${'$as_ac_Header'}'` = yes; then
22260 cat >>confdefs.h <<_ACEOF
22261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22262_ACEOF
22263
22264fi
22265
22266done
22267
22268
22269for ac_func in getpagesize
22270do
22271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22272echo "$as_me:$LINENO: checking for $ac_func" >&5
22273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22274if eval "test \"\${$as_ac_var+set}\" = set"; then
22275 echo $ECHO_N "(cached) $ECHO_C" >&6
22276else
22277 cat >conftest.$ac_ext <<_ACEOF
22278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022279/* confdefs.h. */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022284/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022285 which can conflict with char $ac_func (); below.
22286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22287 <limits.h> exists even on freestanding compilers. */
22288#ifdef __STDC__
22289# include <limits.h>
22290#else
22291# include <assert.h>
22292#endif
John Criswell7a73b802003-06-30 21:59:07 +000022293/* Override any gcc2 internal prototype to avoid an error. */
22294#ifdef __cplusplus
22295extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022296{
John Criswell7a73b802003-06-30 21:59:07 +000022297#endif
22298/* We use char because int might match the return type of a gcc2
22299 builtin and then its argument prototype would still apply. */
22300char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022301/* The GNU C library defines this for functions which it implements
22302 to always fail with ENOSYS. Some functions are actually named
22303 something starting with __ and the normal name is an alias. */
22304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22305choke me
22306#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022307char (*f) () = $ac_func;
22308#endif
22309#ifdef __cplusplus
22310}
John Criswell7a73b802003-06-30 21:59:07 +000022311#endif
22312
John Criswell0c38eaf2003-09-10 15:17:25 +000022313int
22314main ()
22315{
22316return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022317 ;
22318 return 0;
22319}
22320_ACEOF
22321rm -f conftest.$ac_objext conftest$ac_exeext
22322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22323 (eval $ac_link) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -s conftest$ac_exeext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 eval "$as_ac_var=yes"
22334else
22335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022336sed 's/^/| /' conftest.$ac_ext >&5
22337
John Criswell7a73b802003-06-30 21:59:07 +000022338eval "$as_ac_var=no"
22339fi
22340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22341fi
22342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22343echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22344if test `eval echo '${'$as_ac_var'}'` = yes; then
22345 cat >>confdefs.h <<_ACEOF
22346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22347_ACEOF
22348
22349fi
22350done
22351
22352echo "$as_me:$LINENO: checking for working mmap" >&5
22353echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22354if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357 if test "$cross_compiling" = yes; then
22358 ac_cv_func_mmap_fixed_mapped=no
22359else
22360 cat >conftest.$ac_ext <<_ACEOF
22361#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022367$ac_includes_default
22368/* malloc might have been renamed as rpl_malloc. */
22369#undef malloc
22370
22371/* Thanks to Mike Haertel and Jim Avera for this test.
22372 Here is a matrix of mmap possibilities:
22373 mmap private not fixed
22374 mmap private fixed at somewhere currently unmapped
22375 mmap private fixed at somewhere already mapped
22376 mmap shared not fixed
22377 mmap shared fixed at somewhere currently unmapped
22378 mmap shared fixed at somewhere already mapped
22379 For private mappings, we should verify that changes cannot be read()
22380 back from the file, nor mmap's back from the file at a different
22381 address. (There have been systems where private was not correctly
22382 implemented like the infamous i386 svr4.0, and systems where the
22383 VM page cache was not coherent with the file system buffer cache
22384 like early versions of FreeBSD and possibly contemporary NetBSD.)
22385 For shared mappings, we should conversely verify that changes get
22386 propagated back to all the places they're supposed to be.
22387
22388 Grep wants private fixed already mapped.
22389 The main things grep needs to know about mmap are:
22390 * does it exist and is it safe to write into the mmap'd area
22391 * how to use it (BSD variants) */
22392
22393#include <fcntl.h>
22394#include <sys/mman.h>
22395
22396#if !STDC_HEADERS && !HAVE_STDLIB_H
22397char *malloc ();
22398#endif
22399
22400/* This mess was copied from the GNU getpagesize.h. */
22401#if !HAVE_GETPAGESIZE
22402/* Assume that all systems that can run configure have sys/param.h. */
22403# if !HAVE_SYS_PARAM_H
22404# define HAVE_SYS_PARAM_H 1
22405# endif
22406
22407# ifdef _SC_PAGESIZE
22408# define getpagesize() sysconf(_SC_PAGESIZE)
22409# else /* no _SC_PAGESIZE */
22410# if HAVE_SYS_PARAM_H
22411# include <sys/param.h>
22412# ifdef EXEC_PAGESIZE
22413# define getpagesize() EXEC_PAGESIZE
22414# else /* no EXEC_PAGESIZE */
22415# ifdef NBPG
22416# define getpagesize() NBPG * CLSIZE
22417# ifndef CLSIZE
22418# define CLSIZE 1
22419# endif /* no CLSIZE */
22420# else /* no NBPG */
22421# ifdef NBPC
22422# define getpagesize() NBPC
22423# else /* no NBPC */
22424# ifdef PAGESIZE
22425# define getpagesize() PAGESIZE
22426# endif /* PAGESIZE */
22427# endif /* no NBPC */
22428# endif /* no NBPG */
22429# endif /* no EXEC_PAGESIZE */
22430# else /* no HAVE_SYS_PARAM_H */
22431# define getpagesize() 8192 /* punt totally */
22432# endif /* no HAVE_SYS_PARAM_H */
22433# endif /* no _SC_PAGESIZE */
22434
22435#endif /* no HAVE_GETPAGESIZE */
22436
22437int
22438main ()
22439{
22440 char *data, *data2, *data3;
22441 int i, pagesize;
22442 int fd;
22443
22444 pagesize = getpagesize ();
22445
22446 /* First, make a file with some known garbage in it. */
22447 data = (char *) malloc (pagesize);
22448 if (!data)
22449 exit (1);
22450 for (i = 0; i < pagesize; ++i)
22451 *(data + i) = rand ();
22452 umask (0);
22453 fd = creat ("conftest.mmap", 0600);
22454 if (fd < 0)
22455 exit (1);
22456 if (write (fd, data, pagesize) != pagesize)
22457 exit (1);
22458 close (fd);
22459
22460 /* Next, try to mmap the file at a fixed address which already has
22461 something else allocated at it. If we can, also make sure that
22462 we see the same garbage. */
22463 fd = open ("conftest.mmap", O_RDWR);
22464 if (fd < 0)
22465 exit (1);
22466 data2 = (char *) malloc (2 * pagesize);
22467 if (!data2)
22468 exit (1);
22469 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22472 exit (1);
22473 for (i = 0; i < pagesize; ++i)
22474 if (*(data + i) != *(data2 + i))
22475 exit (1);
22476
22477 /* Finally, make sure that changes to the mapped area do not
22478 percolate back to the file as seen by read(). (This is a bug on
22479 some variants of i386 svr4.0.) */
22480 for (i = 0; i < pagesize; ++i)
22481 *(data2 + i) = *(data2 + i) + 1;
22482 data3 = (char *) malloc (pagesize);
22483 if (!data3)
22484 exit (1);
22485 if (read (fd, data3, pagesize) != pagesize)
22486 exit (1);
22487 for (i = 0; i < pagesize; ++i)
22488 if (*(data + i) != *(data3 + i))
22489 exit (1);
22490 close (fd);
22491 exit (0);
22492}
22493_ACEOF
22494rm -f conftest$ac_exeext
22495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22496 (eval $ac_link) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 ac_cv_func_mmap_fixed_mapped=yes
22506else
22507 echo "$as_me: program exited with status $ac_status" >&5
22508echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022509sed 's/^/| /' conftest.$ac_ext >&5
22510
John Criswell7a73b802003-06-30 21:59:07 +000022511( exit $ac_status )
22512ac_cv_func_mmap_fixed_mapped=no
22513fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022514rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022515fi
22516fi
22517echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22518echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22519if test $ac_cv_func_mmap_fixed_mapped = yes; then
22520
22521cat >>confdefs.h <<\_ACEOF
22522#define HAVE_MMAP 1
22523_ACEOF
22524
22525fi
22526rm -f conftest.mmap
22527
22528echo "$as_me:$LINENO: checking for mmap of files" >&5
22529echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22530if test "${ac_cv_func_mmap_file+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532else
22533
22534
22535 ac_ext=c
22536ac_cpp='$CPP $CPPFLAGS'
22537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22539ac_compiler_gnu=$ac_cv_c_compiler_gnu
22540
22541 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22543See \`config.log' for more details." >&5
22544echo "$as_me: error: cannot run test program while cross compiling
22545See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022546 { (exit 1); exit 1; }; }
22547else
22548 cat >conftest.$ac_ext <<_ACEOF
22549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022550/* confdefs.h. */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022555
John Criswell7a73b802003-06-30 21:59:07 +000022556#ifdef HAVE_SYS_TYPES_H
22557#include <sys/types.h>
22558#endif
22559
John Criswell5ab73462003-10-09 15:44:28 +000022560#ifdef HAVE_SYS_MMAN_H
22561#include <sys/mman.h>
22562#endif
22563
John Criswell7a73b802003-06-30 21:59:07 +000022564#ifdef HAVE_FCNTL_H
22565#include <fcntl.h>
22566#endif
22567
22568 int fd;
22569 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022570 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000022571_ACEOF
22572rm -f conftest$ac_exeext
22573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574 (eval $ac_link) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ac_cv_func_mmap_file=yes
22584else
22585 echo "$as_me: program exited with status $ac_status" >&5
22586echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022587sed 's/^/| /' conftest.$ac_ext >&5
22588
John Criswell7a73b802003-06-30 21:59:07 +000022589( exit $ac_status )
22590ac_cv_func_mmap_file=no
22591fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022592rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022593fi
22594 ac_ext=c
22595ac_cpp='$CPP $CPPFLAGS'
22596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598ac_compiler_gnu=$ac_cv_c_compiler_gnu
22599
22600
22601fi
22602echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22603echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22604if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022605
22606cat >>confdefs.h <<\_ACEOF
22607#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022608_ACEOF
22609
22610 MMAP_FILE=yes
22611
22612fi
22613
22614if test ${ac_cv_func_mmap_file} = "no"
22615then
22616 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22617echo "$as_me: error: mmap() of files required but not found" >&2;}
22618 { (exit 1); exit 1; }; }
22619fi
22620echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22621echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22622if test "${ac_cv_header_mmap_anon+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624else
22625
22626
22627 ac_ext=c
22628ac_cpp='$CPP $CPPFLAGS'
22629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631ac_compiler_gnu=$ac_cv_c_compiler_gnu
22632
22633 cat >conftest.$ac_ext <<_ACEOF
22634#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022635/* confdefs.h. */
22636_ACEOF
22637cat confdefs.h >>conftest.$ac_ext
22638cat >>conftest.$ac_ext <<_ACEOF
22639/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022640#include <sys/mman.h>
22641 #include <unistd.h>
22642 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022643int
22644main ()
22645{
22646mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22647 ;
22648 return 0;
22649}
22650_ACEOF
22651rm -f conftest.$ac_objext
22652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22653 (eval $ac_compile) 2>&5
22654 ac_status=$?
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
22657 { ac_try='test -s conftest.$ac_objext'
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; }; then
22663 ac_cv_header_mmap_anon=yes
22664else
22665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022666sed 's/^/| /' conftest.$ac_ext >&5
22667
John Criswell7a73b802003-06-30 21:59:07 +000022668ac_cv_header_mmap_anon=no
22669fi
22670rm -f conftest.$ac_objext conftest.$ac_ext
22671 ac_ext=c
22672ac_cpp='$CPP $CPPFLAGS'
22673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22675ac_compiler_gnu=$ac_cv_c_compiler_gnu
22676
22677
22678fi
22679echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22680echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22681if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022682
22683cat >>confdefs.h <<\_ACEOF
22684#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022685_ACEOF
22686
22687fi
22688
22689echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22690echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22691if test "${ac_cv_type_signal+set}" = set; then
22692 echo $ECHO_N "(cached) $ECHO_C" >&6
22693else
22694 cat >conftest.$ac_ext <<_ACEOF
22695#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022696/* confdefs.h. */
22697_ACEOF
22698cat confdefs.h >>conftest.$ac_ext
22699cat >>conftest.$ac_ext <<_ACEOF
22700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022701#include <sys/types.h>
22702#include <signal.h>
22703#ifdef signal
22704# undef signal
22705#endif
22706#ifdef __cplusplus
22707extern "C" void (*signal (int, void (*)(int)))(int);
22708#else
22709void (*signal ()) ();
22710#endif
22711
John Criswell7a73b802003-06-30 21:59:07 +000022712int
22713main ()
22714{
22715int i;
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720rm -f conftest.$ac_objext
22721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22722 (eval $ac_compile) 2>&5
22723 ac_status=$?
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } &&
22726 { ac_try='test -s conftest.$ac_objext'
22727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728 (eval $ac_try) 2>&5
22729 ac_status=$?
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); }; }; then
22732 ac_cv_type_signal=void
22733else
22734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022735sed 's/^/| /' conftest.$ac_ext >&5
22736
John Criswell7a73b802003-06-30 21:59:07 +000022737ac_cv_type_signal=int
22738fi
22739rm -f conftest.$ac_objext conftest.$ac_ext
22740fi
22741echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22742echo "${ECHO_T}$ac_cv_type_signal" >&6
22743
22744cat >>confdefs.h <<_ACEOF
22745#define RETSIGTYPE $ac_cv_type_signal
22746_ACEOF
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
Brian Gaekec45be042003-10-07 06:01:34 +000022758
22759
John Criswella0137d32003-10-13 16:22:01 +000022760for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022761do
22762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22763echo "$as_me:$LINENO: checking for $ac_func" >&5
22764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22765if eval "test \"\${$as_ac_var+set}\" = set"; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22767else
22768 cat >conftest.$ac_ext <<_ACEOF
22769#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022770/* confdefs.h. */
22771_ACEOF
22772cat confdefs.h >>conftest.$ac_ext
22773cat >>conftest.$ac_ext <<_ACEOF
22774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022775/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022776 which can conflict with char $ac_func (); below.
22777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22778 <limits.h> exists even on freestanding compilers. */
22779#ifdef __STDC__
22780# include <limits.h>
22781#else
22782# include <assert.h>
22783#endif
John Criswell7a73b802003-06-30 21:59:07 +000022784/* Override any gcc2 internal prototype to avoid an error. */
22785#ifdef __cplusplus
22786extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022787{
John Criswell7a73b802003-06-30 21:59:07 +000022788#endif
22789/* We use char because int might match the return type of a gcc2
22790 builtin and then its argument prototype would still apply. */
22791char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022792/* The GNU C library defines this for functions which it implements
22793 to always fail with ENOSYS. Some functions are actually named
22794 something starting with __ and the normal name is an alias. */
22795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22796choke me
22797#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022798char (*f) () = $ac_func;
22799#endif
22800#ifdef __cplusplus
22801}
John Criswell7a73b802003-06-30 21:59:07 +000022802#endif
22803
John Criswell0c38eaf2003-09-10 15:17:25 +000022804int
22805main ()
22806{
22807return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022808 ;
22809 return 0;
22810}
22811_ACEOF
22812rm -f conftest.$ac_objext conftest$ac_exeext
22813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22814 (eval $ac_link) 2>&5
22815 ac_status=$?
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } &&
22818 { ac_try='test -s conftest$ac_exeext'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22821 ac_status=$?
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 eval "$as_ac_var=yes"
22825else
22826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022827sed 's/^/| /' conftest.$ac_ext >&5
22828
John Criswell7a73b802003-06-30 21:59:07 +000022829eval "$as_ac_var=no"
22830fi
22831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22832fi
22833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22835if test `eval echo '${'$as_ac_var'}'` = yes; then
22836 cat >>confdefs.h <<_ACEOF
22837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22838_ACEOF
22839
22840fi
22841done
22842
22843
22844
22845echo "$as_me:$LINENO: checking for mmap" >&5
22846echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22847if test "${ac_cv_func_mmap+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22849else
22850 cat >conftest.$ac_ext <<_ACEOF
22851#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022852/* confdefs.h. */
22853_ACEOF
22854cat confdefs.h >>conftest.$ac_ext
22855cat >>conftest.$ac_ext <<_ACEOF
22856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022857/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022858 which can conflict with char mmap (); below.
22859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22860 <limits.h> exists even on freestanding compilers. */
22861#ifdef __STDC__
22862# include <limits.h>
22863#else
22864# include <assert.h>
22865#endif
John Criswell7a73b802003-06-30 21:59:07 +000022866/* Override any gcc2 internal prototype to avoid an error. */
22867#ifdef __cplusplus
22868extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022869{
John Criswell7a73b802003-06-30 21:59:07 +000022870#endif
22871/* We use char because int might match the return type of a gcc2
22872 builtin and then its argument prototype would still apply. */
22873char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022874/* The GNU C library defines this for functions which it implements
22875 to always fail with ENOSYS. Some functions are actually named
22876 something starting with __ and the normal name is an alias. */
22877#if defined (__stub_mmap) || defined (__stub___mmap)
22878choke me
22879#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022880char (*f) () = mmap;
22881#endif
22882#ifdef __cplusplus
22883}
John Criswell7a73b802003-06-30 21:59:07 +000022884#endif
22885
John Criswell0c38eaf2003-09-10 15:17:25 +000022886int
22887main ()
22888{
22889return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022890 ;
22891 return 0;
22892}
22893_ACEOF
22894rm -f conftest.$ac_objext conftest$ac_exeext
22895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22896 (eval $ac_link) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } &&
22900 { ac_try='test -s conftest$ac_exeext'
22901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22902 (eval $ac_try) 2>&5
22903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; }; then
22906 ac_cv_func_mmap=yes
22907else
22908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022909sed 's/^/| /' conftest.$ac_ext >&5
22910
John Criswell7a73b802003-06-30 21:59:07 +000022911ac_cv_func_mmap=no
22912fi
22913rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22914fi
22915echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22916echo "${ECHO_T}$ac_cv_func_mmap" >&6
22917if test $ac_cv_func_mmap = yes; then
22918 :
22919else
22920 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22921echo "$as_me: error: Function mmap() required but not found" >&2;}
22922 { (exit 1); exit 1; }; }
22923fi
22924
22925echo "$as_me:$LINENO: checking for mprotect" >&5
22926echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22927if test "${ac_cv_func_mprotect+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930 cat >conftest.$ac_ext <<_ACEOF
22931#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022932/* confdefs.h. */
22933_ACEOF
22934cat confdefs.h >>conftest.$ac_ext
22935cat >>conftest.$ac_ext <<_ACEOF
22936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022937/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022938 which can conflict with char mprotect (); below.
22939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940 <limits.h> exists even on freestanding compilers. */
22941#ifdef __STDC__
22942# include <limits.h>
22943#else
22944# include <assert.h>
22945#endif
John Criswell7a73b802003-06-30 21:59:07 +000022946/* Override any gcc2 internal prototype to avoid an error. */
22947#ifdef __cplusplus
22948extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022949{
John Criswell7a73b802003-06-30 21:59:07 +000022950#endif
22951/* We use char because int might match the return type of a gcc2
22952 builtin and then its argument prototype would still apply. */
22953char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022954/* The GNU C library defines this for functions which it implements
22955 to always fail with ENOSYS. Some functions are actually named
22956 something starting with __ and the normal name is an alias. */
22957#if defined (__stub_mprotect) || defined (__stub___mprotect)
22958choke me
22959#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022960char (*f) () = mprotect;
22961#endif
22962#ifdef __cplusplus
22963}
John Criswell7a73b802003-06-30 21:59:07 +000022964#endif
22965
John Criswell0c38eaf2003-09-10 15:17:25 +000022966int
22967main ()
22968{
22969return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022970 ;
22971 return 0;
22972}
22973_ACEOF
22974rm -f conftest.$ac_objext conftest$ac_exeext
22975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976 (eval $ac_link) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -s conftest$ac_exeext'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
22986 ac_cv_func_mprotect=yes
22987else
22988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022989sed 's/^/| /' conftest.$ac_ext >&5
22990
John Criswell7a73b802003-06-30 21:59:07 +000022991ac_cv_func_mprotect=no
22992fi
22993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22994fi
22995echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22996echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22997if test $ac_cv_func_mprotect = yes; then
22998 :
22999else
23000 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23001echo "$as_me: error: Function mprotect() required but not found" >&2;}
23002 { (exit 1); exit 1; }; }
23003fi
23004
23005
John Criswellb13092b2003-07-22 21:00:24 +000023006
John Criswellcb7a1eb2003-11-17 19:46:02 +000023007
23008
23009 ac_ext=c
23010ac_cpp='$CPP $CPPFLAGS'
23011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23013ac_compiler_gnu=$ac_cv_c_compiler_gnu
23014
Brian Gaekef91a15c2003-11-18 06:20:41 +000023015 oldcflags="$CFLAGS"
23016 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023017 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023018int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023019_ACEOF
23020rm -f conftest.$ac_objext conftest$ac_exeext
23021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23022 (eval $ac_link) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } &&
23026 { ac_try='test -s conftest$ac_exeext'
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
23032 ac_cv_link_use_r=yes
23033else
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
Brian Gaekef91a15c2003-11-18 06:20:41 +000023037ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023038fi
23039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023040 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023041 ac_ext=c
23042ac_cpp='$CPP $CPPFLAGS'
23043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23045ac_compiler_gnu=$ac_cv_c_compiler_gnu
23046
Brian Gaekef91a15c2003-11-18 06:20:41 +000023047 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023048 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023049
23050cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023051#define HAVE_LINK_R 1
23052_ACEOF
23053
23054 fi
23055
23056
23057
John Criswell7a73b802003-06-30 21:59:07 +000023058# Check whether --enable-purify or --disable-purify was given.
23059if test "${enable_purify+set}" = set; then
23060 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000023061
23062else
John Criswellb13092b2003-07-22 21:00:24 +000023063 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000023064fi;
John Criswellb13092b2003-07-22 21:00:24 +000023065if test ${enableval} = "no"
23066then
23067 ENABLE_PURIFY=
23068
23069else
23070 ENABLE_PURIFY=ENABLE_PURIFY=1
23071
23072fi
23073
John Criswell7a73b802003-06-30 21:59:07 +000023074# Check whether --enable-optimized or --disable-optimized was given.
23075if test "${enable_optimized+set}" = set; then
23076 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023077
23078else
John Criswellb13092b2003-07-22 21:00:24 +000023079 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023080fi;
John Criswellb13092b2003-07-22 21:00:24 +000023081if test ${enableval} = "no"
23082then
23083 ENABLE_OPTIMIZED=
23084
23085else
23086 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23087
23088fi
23089
John Criswell55126592003-10-07 21:57:39 +000023090# Check whether --enable-spec2000 or --disable-spec2000 was given.
23091if test "${enable_spec2000+set}" = set; then
23092 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000023093
23094else
John Criswellb13092b2003-07-22 21:00:24 +000023095 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023096fi;
John Criswellb13092b2003-07-22 21:00:24 +000023097if test ${enableval} = "no"
23098then
John Criswell55126592003-10-07 21:57:39 +000023099 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23100 then
23101 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000023102
John Criswell55126592003-10-07 21:57:39 +000023103 USE_SPEC=USE_SPEC=1
23104
23105 else
23106 USE_SPEC=
23107
23108
23109 fi
John Criswellb13092b2003-07-22 21:00:24 +000023110else
John Criswell55126592003-10-07 21:57:39 +000023111 if test ${enableval} = ""
23112 then
23113 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23114
23115 else
23116 SPEC_ROOT=${enableval}
23117
23118 fi
John Criswellb13092b2003-07-22 21:00:24 +000023119 USE_SPEC=USE_SPEC=1
23120
23121fi
23122
John Criswell7a73b802003-06-30 21:59:07 +000023123# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23124if test "${enable_precompiled_bytecode+set}" = set; then
23125 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023126
23127else
John Criswellb13092b2003-07-22 21:00:24 +000023128 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023129fi;
John Criswellb13092b2003-07-22 21:00:24 +000023130if test ${enableval} = "no"
23131then
23132 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023133
John Criswellb13092b2003-07-22 21:00:24 +000023134else
23135 UPB=USE_PRECOMPILED_BYTECODE=1
23136
23137fi
John Criswellf02dbf02003-07-22 20:07:49 +000023138
23139
23140# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23141if test "${enable_llc_diffs+set}" = set; then
23142 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023143
23144else
John Criswellb13092b2003-07-22 21:00:24 +000023145 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023146fi;
John Criswellb13092b2003-07-22 21:00:24 +000023147if test ${enableval} = "no"
23148then
23149 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023150
John Criswellb13092b2003-07-22 21:00:24 +000023151else
23152 DISABLE_LLC_DIFFS=
23153
23154fi
23155
23156# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023157if test "${enable_jit+set}" = set; then
23158 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023159
23160else
John Criswellc78022e2003-07-29 19:11:58 +000023161 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023162fi;
John Criswellb13092b2003-07-22 21:00:24 +000023163
23164if test ${enableval} = "no"
23165then
23166 JIT=
23167
23168else
John Criswellc78022e2003-07-29 19:11:58 +000023169 case $target in
23170 *i*86*)
23171 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023172
John Criswellc78022e2003-07-29 19:11:58 +000023173 ;;
23174 *sparc*)
23175 JIT=TARGET_HAS_JIT=1
23176
23177 ;;
23178 *)
23179 JIT=
23180
23181 ;;
23182 esac
John Criswellb13092b2003-07-22 21:00:24 +000023183fi
John Criswell7a73b802003-06-30 21:59:07 +000023184
23185
John Criswellc78022e2003-07-29 19:11:58 +000023186
John Criswell7a73b802003-06-30 21:59:07 +000023187# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23188if test "${with_llvmgccdir+set}" = set; then
23189 withval="$with_llvmgccdir"
23190 LLVMGCCDIR=$withval
23191
23192fi;
23193
Brian Gaekef3b24102003-11-16 18:38:14 +000023194echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23195echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23196LLVM_GCC_CHECK=no
23197if test -d "$LLVMGCCDIR"
23198then
23199 if test -x "$LLVMGCCDIR/bin/gcc"
23200 then
23201 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23202 fi
23203fi
23204llvmgccwarn=no
23205echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23206echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23207if test "$LLVM_GCC_CHECK" = "no"
23208then
23209 llvmgccwarn=yes
23210fi
23211
23212echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23213echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23214LLVM_GCC_SANE=no
23215if test -x "$LLVM_GCC_CHECK"
23216then
23217 cp /dev/null conftest.c
23218 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23219 if test $? -eq 0
23220 then
23221 LLVM_GCC_SANE=yes
23222 fi
23223 rm conftest.c
23224fi
23225echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23226echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23227if test "$LLVM_GCC_SANE" = "no"
23228then
23229 llvmgccwarn=yes
23230fi
23231
John Criswellc78022e2003-07-29 19:11:58 +000023232
John Criswell7a73b802003-06-30 21:59:07 +000023233# Check whether --with-bcrepos or --without-bcrepos was given.
23234if test "${with_bcrepos+set}" = set; then
23235 withval="$with_bcrepos"
23236 BCR=$withval
23237
23238else
23239 BCR=/home/vadve/lattner/LLVMPrograms
23240
23241fi;
23242
John Criswellc78022e2003-07-29 19:11:58 +000023243
John Criswell7a73b802003-06-30 21:59:07 +000023244# Check whether --with-papi or --without-papi was given.
23245if test "${with_papi+set}" = set; then
23246 withval="$with_papi"
23247 PAPIDIR=$withval
23248
23249else
John Criswellde00db22003-08-25 16:49:54 +000023250 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023251
23252fi;
23253
John Criswell7a73b802003-06-30 21:59:07 +000023254
23255# Check whether --with-purify or --without-purify was given.
23256if test "${with_purify+set}" = set; then
23257 withval="$with_purify"
23258 PURIFY=$withval
23259
23260fi;
23261
John Criswellde00db22003-08-25 16:49:54 +000023262
John Criswell0c38eaf2003-09-10 15:17:25 +000023263 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000023264cat >confcache <<\_ACEOF
23265# This file is a shell script that caches the results of configure
23266# tests run on this system so they can be shared between configure
23267# scripts and configure runs, see configure's option --config-cache.
23268# It is not useful on other systems. If it contains results you don't
23269# want to keep, you may remove or edit it.
23270#
23271# config.status only pays attention to the cache file if you give it
23272# the --recheck option to rerun configure.
23273#
John Criswell0c38eaf2003-09-10 15:17:25 +000023274# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023275# loading this file, other *unset* `ac_cv_foo' will be assigned the
23276# following values.
23277
23278_ACEOF
23279
23280# The following way of writing the cache mishandles newlines in values,
23281# but we know of no workaround that is simple, portable, and efficient.
23282# So, don't put newlines in cache variables' values.
23283# Ultrix sh set writes to stderr and can't be redirected directly,
23284# and sets the high bit in the cache file unless we assign to the vars.
23285{
23286 (set) 2>&1 |
23287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23288 *ac_space=\ *)
23289 # `set' does not quote correctly, so add quotes (double-quote
23290 # substitution turns \\\\ into \\, and sed turns \\ into \).
23291 sed -n \
23292 "s/'/'\\\\''/g;
23293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23294 ;;
23295 *)
23296 # `set' quotes correctly as required by POSIX, so do not add quotes.
23297 sed -n \
23298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23299 ;;
23300 esac;
23301} |
23302 sed '
23303 t clear
23304 : clear
23305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23306 t end
23307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23308 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023309if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023310 if test -w $cache_file; then
23311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23312 cat confcache >$cache_file
23313 else
23314 echo "not updating unwritable cache $cache_file"
23315 fi
23316fi
23317rm -f confcache
23318
23319test "x$prefix" = xNONE && prefix=$ac_default_prefix
23320# Let make expand exec_prefix.
23321test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23322
23323# VPATH may cause trouble with some makes, so we remove $(srcdir),
23324# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23325# trailing colons and then remove the whole line if VPATH becomes empty
23326# (actually we leave an empty line to preserve line numbers).
23327if test "x$srcdir" = x.; then
23328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23329s/:*\$(srcdir):*/:/;
23330s/:*\${srcdir}:*/:/;
23331s/:*@srcdir@:*/:/;
23332s/^\([^=]*=[ ]*\):*/\1/;
23333s/:*$//;
23334s/^[^=]*=[ ]*$//;
23335}'
23336fi
23337
23338DEFS=-DHAVE_CONFIG_H
23339
John Criswell0c38eaf2003-09-10 15:17:25 +000023340ac_libobjs=
23341ac_ltlibobjs=
23342for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23343 # 1. Remove the extension, and $U if already installed.
23344 ac_i=`echo "$ac_i" |
23345 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23346 # 2. Add them.
23347 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23348 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23349done
23350LIBOBJS=$ac_libobjs
23351
23352LTLIBOBJS=$ac_ltlibobjs
23353
23354
John Criswell7a73b802003-06-30 21:59:07 +000023355
23356: ${CONFIG_STATUS=./config.status}
23357ac_clean_files_save=$ac_clean_files
23358ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23359{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23360echo "$as_me: creating $CONFIG_STATUS" >&6;}
23361cat >$CONFIG_STATUS <<_ACEOF
23362#! $SHELL
23363# Generated by $as_me.
23364# Run this file to recreate the current configuration.
23365# Compiler output produced by configure, useful for debugging
23366# configure, is in config.log if it exists.
23367
23368debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023369ac_cs_recheck=false
23370ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023371SHELL=\${CONFIG_SHELL-$SHELL}
23372_ACEOF
23373
23374cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023375## --------------------- ##
23376## M4sh Initialization. ##
23377## --------------------- ##
23378
23379# Be Bourne compatible
23380if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23381 emulate sh
23382 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023383 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23384 # is contrary to our usage. Disable this feature.
23385 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023386elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23387 set -o posix
23388fi
23389
John Criswell7a73b802003-06-30 21:59:07 +000023390# Support unset when possible.
23391if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23392 as_unset=unset
23393else
23394 as_unset=false
23395fi
23396
John Criswell0c38eaf2003-09-10 15:17:25 +000023397
23398# Work around bugs in pre-3.0 UWIN ksh.
23399$as_unset ENV MAIL MAILPATH
23400PS1='$ '
23401PS2='> '
23402PS4='+ '
23403
23404# NLS nuisances.
23405for as_var in \
23406 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23407 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23408 LC_TELEPHONE LC_TIME
23409do
23410 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23411 eval $as_var=C; export $as_var
23412 else
23413 $as_unset $as_var
23414 fi
23415done
23416
23417# Required to use basename.
23418if expr a : '\(a\)' >/dev/null 2>&1; then
23419 as_expr=expr
23420else
23421 as_expr=false
23422fi
23423
23424if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23425 as_basename=basename
23426else
23427 as_basename=false
23428fi
John Criswell7a73b802003-06-30 21:59:07 +000023429
23430
23431# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023432as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023433$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23434 X"$0" : 'X\(//\)$' \| \
23435 X"$0" : 'X\(/\)$' \| \
23436 . : '\(.\)' 2>/dev/null ||
23437echo X/"$0" |
23438 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23439 /^X\/\(\/\/\)$/{ s//\1/; q; }
23440 /^X\/\(\/\).*/{ s//\1/; q; }
23441 s/.*/./; q'`
23442
John Criswell0c38eaf2003-09-10 15:17:25 +000023443
John Criswell7a73b802003-06-30 21:59:07 +000023444# PATH needs CR, and LINENO needs CR and PATH.
23445# Avoid depending upon Character Ranges.
23446as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23447as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23448as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23449as_cr_digits='0123456789'
23450as_cr_alnum=$as_cr_Letters$as_cr_digits
23451
23452# The user is always right.
23453if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023454 echo "#! /bin/sh" >conf$$.sh
23455 echo "exit 0" >>conf$$.sh
23456 chmod +x conf$$.sh
23457 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023458 PATH_SEPARATOR=';'
23459 else
23460 PATH_SEPARATOR=:
23461 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023462 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023463fi
23464
23465
23466 as_lineno_1=$LINENO
23467 as_lineno_2=$LINENO
23468 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23469 test "x$as_lineno_1" != "x$as_lineno_2" &&
23470 test "x$as_lineno_3" = "x$as_lineno_2" || {
23471 # Find who we are. Look in the path if we contain no path at all
23472 # relative or not.
23473 case $0 in
23474 *[\\/]* ) as_myself=$0 ;;
23475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23476for as_dir in $PATH
23477do
23478 IFS=$as_save_IFS
23479 test -z "$as_dir" && as_dir=.
23480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23481done
23482
23483 ;;
23484 esac
23485 # We did not find ourselves, most probably we were run as `sh COMMAND'
23486 # in which case we are not to be found in the path.
23487 if test "x$as_myself" = x; then
23488 as_myself=$0
23489 fi
23490 if test ! -f "$as_myself"; then
23491 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23492echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23493 { (exit 1); exit 1; }; }
23494 fi
23495 case $CONFIG_SHELL in
23496 '')
23497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23499do
23500 IFS=$as_save_IFS
23501 test -z "$as_dir" && as_dir=.
23502 for as_base in sh bash ksh sh5; do
23503 case $as_dir in
23504 /*)
23505 if ("$as_dir/$as_base" -c '
23506 as_lineno_1=$LINENO
23507 as_lineno_2=$LINENO
23508 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23509 test "x$as_lineno_1" != "x$as_lineno_2" &&
23510 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023511 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23512 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023513 CONFIG_SHELL=$as_dir/$as_base
23514 export CONFIG_SHELL
23515 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23516 fi;;
23517 esac
23518 done
23519done
23520;;
23521 esac
23522
23523 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23524 # uniformly replaced by the line number. The first 'sed' inserts a
23525 # line-number line before each line; the second 'sed' does the real
23526 # work. The second script uses 'N' to pair each line-number line
23527 # with the numbered line, and appends trailing '-' during
23528 # substitution so that $LINENO is not a special case at line end.
23529 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23530 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23531 sed '=' <$as_myself |
23532 sed '
23533 N
23534 s,$,-,
23535 : loop
23536 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23537 t loop
23538 s,-$,,
23539 s,^['$as_cr_digits']*\n,,
23540 ' >$as_me.lineno &&
23541 chmod +x $as_me.lineno ||
23542 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23543echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23544 { (exit 1); exit 1; }; }
23545
23546 # Don't try to exec as it changes $[0], causing all sort of problems
23547 # (the dirname of $[0] is not the place where we might find the
23548 # original and so on. Autoconf is especially sensible to this).
23549 . ./$as_me.lineno
23550 # Exit status is that of the last command.
23551 exit
23552}
23553
23554
23555case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23556 *c*,-n*) ECHO_N= ECHO_C='
23557' ECHO_T=' ' ;;
23558 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23559 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23560esac
23561
23562if expr a : '\(a\)' >/dev/null 2>&1; then
23563 as_expr=expr
23564else
23565 as_expr=false
23566fi
23567
23568rm -f conf$$ conf$$.exe conf$$.file
23569echo >conf$$.file
23570if ln -s conf$$.file conf$$ 2>/dev/null; then
23571 # We could just check for DJGPP; but this test a) works b) is more generic
23572 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23573 if test -f conf$$.exe; then
23574 # Don't use ln at all; we don't have any links
23575 as_ln_s='cp -p'
23576 else
23577 as_ln_s='ln -s'
23578 fi
23579elif ln conf$$.file conf$$ 2>/dev/null; then
23580 as_ln_s=ln
23581else
23582 as_ln_s='cp -p'
23583fi
23584rm -f conf$$ conf$$.exe conf$$.file
23585
John Criswell0c38eaf2003-09-10 15:17:25 +000023586if mkdir -p . 2>/dev/null; then
23587 as_mkdir_p=:
23588else
23589 as_mkdir_p=false
23590fi
23591
John Criswell7a73b802003-06-30 21:59:07 +000023592as_executable_p="test -f"
23593
23594# Sed expression to map a string onto a valid CPP name.
23595as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23596
23597# Sed expression to map a string onto a valid variable name.
23598as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23599
23600
23601# IFS
23602# We need space, tab and new line, in precisely that order.
23603as_nl='
23604'
23605IFS=" $as_nl"
23606
23607# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023608$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023609
23610exec 6>&1
23611
23612# Open the log real soon, to keep \$[0] and so on meaningful, and to
23613# report actual input values of CONFIG_FILES etc. instead of their
23614# values after options handling. Logging --version etc. is OK.
23615exec 5>>config.log
23616{
23617 echo
23618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23619## Running $as_me. ##
23620_ASBOX
23621} >&5
23622cat >&5 <<_CSEOF
23623
23624This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023625generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023626
23627 CONFIG_FILES = $CONFIG_FILES
23628 CONFIG_HEADERS = $CONFIG_HEADERS
23629 CONFIG_LINKS = $CONFIG_LINKS
23630 CONFIG_COMMANDS = $CONFIG_COMMANDS
23631 $ $0 $@
23632
23633_CSEOF
23634echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23635echo >&5
23636_ACEOF
23637
23638# Files that config.status was made for.
23639if test -n "$ac_config_files"; then
23640 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23641fi
23642
23643if test -n "$ac_config_headers"; then
23644 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23645fi
23646
23647if test -n "$ac_config_links"; then
23648 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23649fi
23650
23651if test -n "$ac_config_commands"; then
23652 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23653fi
23654
23655cat >>$CONFIG_STATUS <<\_ACEOF
23656
23657ac_cs_usage="\
23658\`$as_me' instantiates files from templates according to the
23659current configuration.
23660
23661Usage: $0 [OPTIONS] [FILE]...
23662
23663 -h, --help print this help, then exit
23664 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023665 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023666 -d, --debug don't remove temporary files
23667 --recheck update $as_me by reconfiguring in the same conditions
23668 --file=FILE[:TEMPLATE]
23669 instantiate the configuration file FILE
23670 --header=FILE[:TEMPLATE]
23671 instantiate the configuration header FILE
23672
23673Configuration files:
23674$config_files
23675
23676Configuration headers:
23677$config_headers
23678
John Criswellc764fbc2003-09-06 15:17:13 +000023679Configuration commands:
23680$config_commands
23681
John Criswell7a73b802003-06-30 21:59:07 +000023682Report bugs to <bug-autoconf@gnu.org>."
23683_ACEOF
23684
23685cat >>$CONFIG_STATUS <<_ACEOF
23686ac_cs_version="\\
23687[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023688configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023689 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23690
23691Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23692Free Software Foundation, Inc.
23693This config.status script is free software; the Free Software Foundation
23694gives unlimited permission to copy, distribute and modify it."
23695srcdir=$srcdir
23696INSTALL="$INSTALL"
23697_ACEOF
23698
23699cat >>$CONFIG_STATUS <<\_ACEOF
23700# If no file are specified by the user, then we need to provide default
23701# value. By we need to know if files were specified by the user.
23702ac_need_defaults=:
23703while test $# != 0
23704do
23705 case $1 in
23706 --*=*)
23707 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23708 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023709 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023710 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023711 -*)
23712 ac_option=$1
23713 ac_optarg=$2
23714 ac_shift=shift
23715 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023716 *) # This is not an option, so the user has probably given explicit
23717 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023718 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023719 ac_need_defaults=false;;
23720 esac
23721
John Criswell0c38eaf2003-09-10 15:17:25 +000023722 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023723 # Handling of the options.
23724_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023725cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23727 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023728 --version | --vers* | -V )
23729 echo "$ac_cs_version"; exit 0 ;;
23730 --he | --h)
23731 # Conflict between --help and --header
23732 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23733Try \`$0 --help' for more information." >&5
23734echo "$as_me: error: ambiguous option: $1
23735Try \`$0 --help' for more information." >&2;}
23736 { (exit 1); exit 1; }; };;
23737 --help | --hel | -h )
23738 echo "$ac_cs_usage"; exit 0 ;;
23739 --debug | --d* | -d )
23740 debug=: ;;
23741 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023742 $ac_shift
23743 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023744 ac_need_defaults=false;;
23745 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023746 $ac_shift
23747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023748 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23751 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023752
23753 # This is an error.
23754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23755Try \`$0 --help' for more information." >&5
23756echo "$as_me: error: unrecognized option: $1
23757Try \`$0 --help' for more information." >&2;}
23758 { (exit 1); exit 1; }; } ;;
23759
23760 *) ac_config_targets="$ac_config_targets $1" ;;
23761
23762 esac
23763 shift
23764done
23765
John Criswell0c38eaf2003-09-10 15:17:25 +000023766ac_configure_extra_args=
23767
23768if $ac_cs_silent; then
23769 exec 6>/dev/null
23770 ac_configure_extra_args="$ac_configure_extra_args --silent"
23771fi
23772
23773_ACEOF
23774cat >>$CONFIG_STATUS <<_ACEOF
23775if \$ac_cs_recheck; then
23776 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23777 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23778fi
23779
John Criswell7a73b802003-06-30 21:59:07 +000023780_ACEOF
23781
John Criswellc764fbc2003-09-06 15:17:13 +000023782cat >>$CONFIG_STATUS <<_ACEOF
23783#
23784# INIT-COMMANDS section.
23785#
John Criswell7a73b802003-06-30 21:59:07 +000023786
John Criswellc764fbc2003-09-06 15:17:13 +000023787${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23788${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23789${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23790${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23791${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23792${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23793${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23794${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23795${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23796${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23797${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23798${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23799${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23800${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23801${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23802${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23803${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023804${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23805${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23806${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23807${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23808${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023809${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023810${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23811${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23812${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23813${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23814${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23815${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23816${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23817${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23818${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23819${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23820${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23821${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23822${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23823${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23824${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023825${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023826${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23827${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23828${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23829${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023830${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023831${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023832${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23833${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023834${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23835${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023836${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023837${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23838${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023839${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23840${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023841${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23842${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23843${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23844${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23845${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23846${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23847${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23848${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23849${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23850${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23851${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23852${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23853${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23854${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23855${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23856${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23857${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23858${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023859${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023860${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023861${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023862${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23863${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23864${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23865${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23866${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23867${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23868${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23869${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23870${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23871${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023872${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23873${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023874${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23875${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23876${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23877${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23878${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23879${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23880${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023881${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23882${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023883${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23884${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023885${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23886${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023887${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23888${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23889${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23890${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23891${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23892${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23893${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23894${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23895${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23896${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23897${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23898${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23899${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23900${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23901${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswell48e3cb92003-09-12 16:31:43 +000023902${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23903${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23904${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23905${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23906${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23907${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23908${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23909${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23910${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23911${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23912${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23913${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23914${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23915${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23916${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23917${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23918${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23919${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23920${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23921${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23922${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23923${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023924${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023925${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23926${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23927${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23928${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23929${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23930${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023931${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023932${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023933${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23934${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023935${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23936${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23937${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23938${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23939${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23940${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023941${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023942${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023943${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023944${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023945${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23946${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023947${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023948${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23949${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023950${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023951${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23952${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23953${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023954${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023955${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023956${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023957${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023958${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023959${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023960${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023961${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023962${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023963${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023964${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23965${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23966${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23967${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023968${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023969${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23970${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23971${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23972${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
Brian Gaeke866f10c2003-11-24 02:54:57 +000023973${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/Makefile`
23974${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/Makefile`
23975${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/compiler/Makefile`
23976${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/lib/runtime/Makefile`
23977${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/Makefile`
23978${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/tools/stkrc/Makefile`
23979${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/test/Makefile`
23980${srcdir}/autoconf/mkinstalldirs `dirname projects/Stacker/samples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023981
23982_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023983
23984
23985
23986cat >>$CONFIG_STATUS <<\_ACEOF
23987for ac_config_target in $ac_config_targets
23988do
23989 case "$ac_config_target" in
23990 # Handling of arguments.
23991 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023992 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23993 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23994 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23995 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23996 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23997 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23998 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23999 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
24000 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
24001 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
24002 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
24003 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
24004 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
24005 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
24006 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
24007 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
24008 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024009 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
24010 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
24011 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
24012 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
24013 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024014 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024015 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
24016 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
24017 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
24018 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
24019 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
24020 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
24021 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
24022 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
24023 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
24024 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
24025 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
24026 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24027 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
24028 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
24029 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024030 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024031 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
24032 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
24033 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
24034 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024035 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024036 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024037 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
24038 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024039 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
24040 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024041 "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024042 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24043 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024044 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24045 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024046 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24047 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24048 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24049 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24050 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
24051 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24052 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24053 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24054 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24055 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24056 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24057 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24058 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24059 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24060 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24061 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
24062 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24063 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024064 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024065 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000024066 "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024067 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
24068 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
24069 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
24070 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
24071 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
24072 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
24073 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
24074 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
24075 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
24076 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
John Criswell987e49c2003-10-10 01:11:54 +000024077 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
24078 "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024079 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
24080 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
24081 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
24082 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
24083 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
24084 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24085 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024086 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
24087 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000024088 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
24089 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024090 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
24091 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024092 "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
24093 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
24094 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24095 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24096 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24097 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24098 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24099 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24100 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24101 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24102 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24103 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24104 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24105 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24106 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024107 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
24108 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
24109 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
24110 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
24111 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
24112 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
24113 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
24114 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
24115 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
24116 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
24117 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
24118 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
24119 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
24120 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
24121 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
24122 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
24123 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
24124 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
24125 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
24126 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
24127 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
24128 "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 +000024129 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024130 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
24131 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
24132 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
24133 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
24134 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
24135 "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 +000024136 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024137 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024138 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24139 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024140 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24141 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24142 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24143 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24144 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24145 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024146 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024147 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000024148 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000024149 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000024150 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24151 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024152 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024153 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24154 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024155 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024156 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24157 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24158 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024159 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024160 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024161 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024162 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024163 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024164 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024165 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024166 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024167 "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024168 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024169 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24170 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24171 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24172 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024173 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024174 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24175 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24176 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24177 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
Brian Gaeke866f10c2003-11-24 02:54:57 +000024178 "projects/Stacker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/Makefile" ;;
24179 "projects/Stacker/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/Makefile" ;;
24180 "projects/Stacker/lib/compiler/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/compiler/Makefile" ;;
24181 "projects/Stacker/lib/runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/lib/runtime/Makefile" ;;
24182 "projects/Stacker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/Makefile" ;;
24183 "projects/Stacker/tools/stkrc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/tools/stkrc/Makefile" ;;
24184 "projects/Stacker/test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/test/Makefile" ;;
24185 "projects/Stacker/samples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Stacker/samples/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024186 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24187 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24188echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24189 { (exit 1); exit 1; }; };;
24190 esac
24191done
24192
24193# If the user did not use the arguments to specify the items to instantiate,
24194# then the envvar interface is used. Set only those that are not.
24195# We use the long form for the default assignment because of an extremely
24196# bizarre bug on SunOS 4.1.3.
24197if $ac_need_defaults; then
24198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000024200 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024201fi
24202
John Criswell0c38eaf2003-09-10 15:17:25 +000024203# Have a temporary directory for convenience. Make it in the build tree
24204# simply because there is no reason to put it here, and in addition,
24205# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024206# Create a temporary directory, and hook for its removal unless debugging.
24207$debug ||
24208{
24209 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24210 trap '{ (exit 1); exit 1; }' 1 2 13 15
24211}
24212
24213# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024214
John Criswell7a73b802003-06-30 21:59:07 +000024215{
John Criswell0c38eaf2003-09-10 15:17:25 +000024216 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024217 test -n "$tmp" && test -d "$tmp"
24218} ||
24219{
John Criswell0c38eaf2003-09-10 15:17:25 +000024220 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024221 (umask 077 && mkdir $tmp)
24222} ||
24223{
John Criswell0c38eaf2003-09-10 15:17:25 +000024224 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024225 { (exit 1); exit 1; }
24226}
24227
24228_ACEOF
24229
24230cat >>$CONFIG_STATUS <<_ACEOF
24231
24232#
24233# CONFIG_FILES section.
24234#
24235
24236# No need to generate the scripts if there are no CONFIG_FILES.
24237# This happens for instance when ./config.status config.h
24238if test -n "\$CONFIG_FILES"; then
24239 # Protect against being on the right side of a sed subst in config.status.
24240 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24241 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24242s,@SHELL@,$SHELL,;t t
24243s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24244s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24245s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24246s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24247s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24248s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24249s,@exec_prefix@,$exec_prefix,;t t
24250s,@prefix@,$prefix,;t t
24251s,@program_transform_name@,$program_transform_name,;t t
24252s,@bindir@,$bindir,;t t
24253s,@sbindir@,$sbindir,;t t
24254s,@libexecdir@,$libexecdir,;t t
24255s,@datadir@,$datadir,;t t
24256s,@sysconfdir@,$sysconfdir,;t t
24257s,@sharedstatedir@,$sharedstatedir,;t t
24258s,@localstatedir@,$localstatedir,;t t
24259s,@libdir@,$libdir,;t t
24260s,@includedir@,$includedir,;t t
24261s,@oldincludedir@,$oldincludedir,;t t
24262s,@infodir@,$infodir,;t t
24263s,@mandir@,$mandir,;t t
24264s,@build_alias@,$build_alias,;t t
24265s,@host_alias@,$host_alias,;t t
24266s,@target_alias@,$target_alias,;t t
24267s,@DEFS@,$DEFS,;t t
24268s,@ECHO_C@,$ECHO_C,;t t
24269s,@ECHO_N@,$ECHO_N,;t t
24270s,@ECHO_T@,$ECHO_T,;t t
24271s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024272s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024273s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24274s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24275s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24276s,@build@,$build,;t t
24277s,@build_cpu@,$build_cpu,;t t
24278s,@build_vendor@,$build_vendor,;t t
24279s,@build_os@,$build_os,;t t
24280s,@host@,$host,;t t
24281s,@host_cpu@,$host_cpu,;t t
24282s,@host_vendor@,$host_vendor,;t t
24283s,@host_os@,$host_os,;t t
24284s,@target@,$target,;t t
24285s,@target_cpu@,$target_cpu,;t t
24286s,@target_vendor@,$target_vendor,;t t
24287s,@target_os@,$target_os,;t t
24288s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024289s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024290s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024291s,@CXX@,$CXX,;t t
24292s,@CXXFLAGS@,$CXXFLAGS,;t t
24293s,@LDFLAGS@,$LDFLAGS,;t t
24294s,@CPPFLAGS@,$CPPFLAGS,;t t
24295s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24296s,@EXEEXT@,$EXEEXT,;t t
24297s,@OBJEXT@,$OBJEXT,;t t
24298s,@CC@,$CC,;t t
24299s,@CFLAGS@,$CFLAGS,;t t
24300s,@ac_ct_CC@,$ac_ct_CC,;t t
24301s,@CPP@,$CPP,;t t
24302s,@ifGNUmake@,$ifGNUmake,;t t
24303s,@LEX@,$LEX,;t t
24304s,@LEXLIB@,$LEXLIB,;t t
24305s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24306s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024307s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024308s,@LN_S@,$LN_S,;t t
24309s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024310s,@AR@,$AR,;t t
24311s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024312s,@RANLIB@,$RANLIB,;t t
24313s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24314s,@STRIP@,$STRIP,;t t
24315s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024316s,@CXXCPP@,$CXXCPP,;t t
24317s,@F77@,$F77,;t t
24318s,@FFLAGS@,$FFLAGS,;t t
24319s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024320s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000024321s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024322s,@SED@,$SED,;t t
24323s,@RM@,$RM,;t t
24324s,@MKDIR@,$MKDIR,;t t
24325s,@DATE@,$DATE,;t t
24326s,@MV@,$MV,;t t
24327s,@DOT@,$DOT,;t t
24328s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024329s,@PYTHON@,$PYTHON,;t t
24330s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024331s,@ALLOCA@,$ALLOCA,;t t
24332s,@LIBOBJS@,$LIBOBJS,;t t
24333s,@MMAP_FILE@,$MMAP_FILE,;t t
24334s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024335s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000024336s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024337s,@USE_SPEC@,$USE_SPEC,;t t
24338s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024339s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024340s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024341s,@BCR@,$BCR,;t t
24342s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000024343s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024344s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024345CEOF
24346
24347_ACEOF
24348
24349 cat >>$CONFIG_STATUS <<\_ACEOF
24350 # Split the substitutions into bite-sized pieces for seds with
24351 # small command number limits, like on Digital OSF/1 and HP-UX.
24352 ac_max_sed_lines=48
24353 ac_sed_frag=1 # Number of current file.
24354 ac_beg=1 # First line for current file.
24355 ac_end=$ac_max_sed_lines # Line after last line for current file.
24356 ac_more_lines=:
24357 ac_sed_cmds=
24358 while $ac_more_lines; do
24359 if test $ac_beg -gt 1; then
24360 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24361 else
24362 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24363 fi
24364 if test ! -s $tmp/subs.frag; then
24365 ac_more_lines=false
24366 else
24367 # The purpose of the label and of the branching condition is to
24368 # speed up the sed processing (if there are no `@' at all, there
24369 # is no need to browse any of the substitutions).
24370 # These are the two extra sed commands mentioned above.
24371 (echo ':t
24372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24373 if test -z "$ac_sed_cmds"; then
24374 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24375 else
24376 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24377 fi
24378 ac_sed_frag=`expr $ac_sed_frag + 1`
24379 ac_beg=$ac_end
24380 ac_end=`expr $ac_end + $ac_max_sed_lines`
24381 fi
24382 done
24383 if test -z "$ac_sed_cmds"; then
24384 ac_sed_cmds=cat
24385 fi
24386fi # test -n "$CONFIG_FILES"
24387
24388_ACEOF
24389cat >>$CONFIG_STATUS <<\_ACEOF
24390for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24391 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24392 case $ac_file in
24393 - | *:- | *:-:* ) # input from stdin
24394 cat >$tmp/stdin
24395 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24396 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24397 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24399 * ) ac_file_in=$ac_file.in ;;
24400 esac
24401
24402 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405 X"$ac_file" : 'X\(//\)[^/]' \| \
24406 X"$ac_file" : 'X\(//\)$' \| \
24407 X"$ac_file" : 'X\(/\)' \| \
24408 . : '\(.\)' 2>/dev/null ||
24409echo X"$ac_file" |
24410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24412 /^X\(\/\/\)$/{ s//\1/; q; }
24413 /^X\(\/\).*/{ s//\1/; q; }
24414 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024415 { if $as_mkdir_p; then
24416 mkdir -p "$ac_dir"
24417 else
24418 as_dir="$ac_dir"
24419 as_dirs=
24420 while test ! -d "$as_dir"; do
24421 as_dirs="$as_dir $as_dirs"
24422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$as_dir" : 'X\(//\)[^/]' \| \
24425 X"$as_dir" : 'X\(//\)$' \| \
24426 X"$as_dir" : 'X\(/\)' \| \
24427 . : '\(.\)' 2>/dev/null ||
24428echo X"$as_dir" |
24429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24431 /^X\(\/\/\)$/{ s//\1/; q; }
24432 /^X\(\/\).*/{ s//\1/; q; }
24433 s/.*/./; q'`
24434 done
24435 test ! -n "$as_dirs" || mkdir $as_dirs
24436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24437echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24438 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024439
24440 ac_builddir=.
24441
24442if test "$ac_dir" != .; then
24443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24444 # A "../" for each directory in $ac_dir_suffix.
24445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24446else
24447 ac_dir_suffix= ac_top_builddir=
24448fi
24449
24450case $srcdir in
24451 .) # No --srcdir option. We are building in place.
24452 ac_srcdir=.
24453 if test -z "$ac_top_builddir"; then
24454 ac_top_srcdir=.
24455 else
24456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24457 fi ;;
24458 [\\/]* | ?:[\\/]* ) # Absolute path.
24459 ac_srcdir=$srcdir$ac_dir_suffix;
24460 ac_top_srcdir=$srcdir ;;
24461 *) # Relative path.
24462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24464esac
24465# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24466# absolute.
24467ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024468ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024469ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24470ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24471
24472
24473 case $INSTALL in
24474 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24475 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24476 esac
24477
24478 if test x"$ac_file" != x-; then
24479 { echo "$as_me:$LINENO: creating $ac_file" >&5
24480echo "$as_me: creating $ac_file" >&6;}
24481 rm -f "$ac_file"
24482 fi
24483 # Let's still pretend it is `configure' which instantiates (i.e., don't
24484 # use $as_me), people would be surprised to read:
24485 # /* config.h. Generated by config.status. */
24486 if test x"$ac_file" = x-; then
24487 configure_input=
24488 else
24489 configure_input="$ac_file. "
24490 fi
24491 configure_input=$configure_input"Generated from `echo $ac_file_in |
24492 sed 's,.*/,,'` by configure."
24493
24494 # First look for the input files in the build tree, otherwise in the
24495 # src tree.
24496 ac_file_inputs=`IFS=:
24497 for f in $ac_file_in; do
24498 case $f in
24499 -) echo $tmp/stdin ;;
24500 [\\/$]*)
24501 # Absolute (can't be DOS-style, as IFS=:)
24502 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24503echo "$as_me: error: cannot find input file: $f" >&2;}
24504 { (exit 1); exit 1; }; }
24505 echo $f;;
24506 *) # Relative
24507 if test -f "$f"; then
24508 # Build tree
24509 echo $f
24510 elif test -f "$srcdir/$f"; then
24511 # Source tree
24512 echo $srcdir/$f
24513 else
24514 # /dev/null tree
24515 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24516echo "$as_me: error: cannot find input file: $f" >&2;}
24517 { (exit 1); exit 1; }; }
24518 fi;;
24519 esac
24520 done` || { (exit 1); exit 1; }
24521_ACEOF
24522cat >>$CONFIG_STATUS <<_ACEOF
24523 sed "$ac_vpsub
24524$extrasub
24525_ACEOF
24526cat >>$CONFIG_STATUS <<\_ACEOF
24527:t
24528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24529s,@configure_input@,$configure_input,;t t
24530s,@srcdir@,$ac_srcdir,;t t
24531s,@abs_srcdir@,$ac_abs_srcdir,;t t
24532s,@top_srcdir@,$ac_top_srcdir,;t t
24533s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24534s,@builddir@,$ac_builddir,;t t
24535s,@abs_builddir@,$ac_abs_builddir,;t t
24536s,@top_builddir@,$ac_top_builddir,;t t
24537s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24538s,@INSTALL@,$ac_INSTALL,;t t
24539" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24540 rm -f $tmp/stdin
24541 if test x"$ac_file" != x-; then
24542 mv $tmp/out $ac_file
24543 else
24544 cat $tmp/out
24545 rm -f $tmp/out
24546 fi
24547
24548done
24549_ACEOF
24550cat >>$CONFIG_STATUS <<\_ACEOF
24551
24552#
24553# CONFIG_HEADER section.
24554#
24555
24556# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24557# NAME is the cpp macro being defined and VALUE is the value it is being given.
24558#
24559# ac_d sets the value in "#define NAME VALUE" lines.
24560ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24561ac_dB='[ ].*$,\1#\2'
24562ac_dC=' '
24563ac_dD=',;t'
24564# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24565ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24566ac_uB='$,\1#\2define\3'
24567ac_uC=' '
24568ac_uD=',;t'
24569
24570for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24572 case $ac_file in
24573 - | *:- | *:-:* ) # input from stdin
24574 cat >$tmp/stdin
24575 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24577 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24579 * ) ac_file_in=$ac_file.in ;;
24580 esac
24581
24582 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24583echo "$as_me: creating $ac_file" >&6;}
24584
24585 # First look for the input files in the build tree, otherwise in the
24586 # src tree.
24587 ac_file_inputs=`IFS=:
24588 for f in $ac_file_in; do
24589 case $f in
24590 -) echo $tmp/stdin ;;
24591 [\\/$]*)
24592 # Absolute (can't be DOS-style, as IFS=:)
24593 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24594echo "$as_me: error: cannot find input file: $f" >&2;}
24595 { (exit 1); exit 1; }; }
24596 echo $f;;
24597 *) # Relative
24598 if test -f "$f"; then
24599 # Build tree
24600 echo $f
24601 elif test -f "$srcdir/$f"; then
24602 # Source tree
24603 echo $srcdir/$f
24604 else
24605 # /dev/null tree
24606 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24607echo "$as_me: error: cannot find input file: $f" >&2;}
24608 { (exit 1); exit 1; }; }
24609 fi;;
24610 esac
24611 done` || { (exit 1); exit 1; }
24612 # Remove the trailing spaces.
24613 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24614
24615_ACEOF
24616
24617# Transform confdefs.h into two sed scripts, `conftest.defines' and
24618# `conftest.undefs', that substitutes the proper values into
24619# config.h.in to produce config.h. The first handles `#define'
24620# templates, and the second `#undef' templates.
24621# And first: Protect against being on the right side of a sed subst in
24622# config.status. Protect against being in an unquoted here document
24623# in config.status.
24624rm -f conftest.defines conftest.undefs
24625# Using a here document instead of a string reduces the quoting nightmare.
24626# Putting comments in sed scripts is not portable.
24627#
24628# `end' is used to avoid that the second main sed command (meant for
24629# 0-ary CPP macros) applies to n-ary macro definitions.
24630# See the Autoconf documentation for `clear'.
24631cat >confdef2sed.sed <<\_ACEOF
24632s/[\\&,]/\\&/g
24633s,[\\$`],\\&,g
24634t clear
24635: clear
24636s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24637t end
24638s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24639: end
24640_ACEOF
24641# If some macros were called several times there might be several times
24642# the same #defines, which is useless. Nevertheless, we may not want to
24643# sort them, since we want the *last* AC-DEFINE to be honored.
24644uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24645sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24646rm -f confdef2sed.sed
24647
24648# This sed command replaces #undef with comments. This is necessary, for
24649# example, in the case of _POSIX_SOURCE, which is predefined and required
24650# on some systems where configure will not decide to define it.
24651cat >>conftest.undefs <<\_ACEOF
24652s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24653_ACEOF
24654
24655# Break up conftest.defines because some shells have a limit on the size
24656# of here documents, and old seds have small limits too (100 cmds).
24657echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024658echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024659echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24660echo ' :' >>$CONFIG_STATUS
24661rm -f conftest.tail
24662while grep . conftest.defines >/dev/null
24663do
24664 # Write a limited-size here document to $tmp/defines.sed.
24665 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24666 # Speed up: don't consider the non `#define' lines.
24667 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24668 # Work around the forget-to-reset-the-flag bug.
24669 echo 't clr' >>$CONFIG_STATUS
24670 echo ': clr' >>$CONFIG_STATUS
24671 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24672 echo 'CEOF
24673 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24674 rm -f $tmp/in
24675 mv $tmp/out $tmp/in
24676' >>$CONFIG_STATUS
24677 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24678 rm -f conftest.defines
24679 mv conftest.tail conftest.defines
24680done
24681rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024682echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024683echo >>$CONFIG_STATUS
24684
24685# Break up conftest.undefs because some shells have a limit on the size
24686# of here documents, and old seds have small limits too (100 cmds).
24687echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24688rm -f conftest.tail
24689while grep . conftest.undefs >/dev/null
24690do
24691 # Write a limited-size here document to $tmp/undefs.sed.
24692 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24693 # Speed up: don't consider the non `#undef'
24694 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24695 # Work around the forget-to-reset-the-flag bug.
24696 echo 't clr' >>$CONFIG_STATUS
24697 echo ': clr' >>$CONFIG_STATUS
24698 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24699 echo 'CEOF
24700 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24701 rm -f $tmp/in
24702 mv $tmp/out $tmp/in
24703' >>$CONFIG_STATUS
24704 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24705 rm -f conftest.undefs
24706 mv conftest.tail conftest.undefs
24707done
24708rm -f conftest.undefs
24709
24710cat >>$CONFIG_STATUS <<\_ACEOF
24711 # Let's still pretend it is `configure' which instantiates (i.e., don't
24712 # use $as_me), people would be surprised to read:
24713 # /* config.h. Generated by config.status. */
24714 if test x"$ac_file" = x-; then
24715 echo "/* Generated by configure. */" >$tmp/config.h
24716 else
24717 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24718 fi
24719 cat $tmp/in >>$tmp/config.h
24720 rm -f $tmp/in
24721 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024722 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024723 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24724echo "$as_me: $ac_file is unchanged" >&6;}
24725 else
24726 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24727$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24728 X"$ac_file" : 'X\(//\)[^/]' \| \
24729 X"$ac_file" : 'X\(//\)$' \| \
24730 X"$ac_file" : 'X\(/\)' \| \
24731 . : '\(.\)' 2>/dev/null ||
24732echo X"$ac_file" |
24733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24735 /^X\(\/\/\)$/{ s//\1/; q; }
24736 /^X\(\/\).*/{ s//\1/; q; }
24737 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024738 { if $as_mkdir_p; then
24739 mkdir -p "$ac_dir"
24740 else
24741 as_dir="$ac_dir"
24742 as_dirs=
24743 while test ! -d "$as_dir"; do
24744 as_dirs="$as_dir $as_dirs"
24745 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24746$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24747 X"$as_dir" : 'X\(//\)[^/]' \| \
24748 X"$as_dir" : 'X\(//\)$' \| \
24749 X"$as_dir" : 'X\(/\)' \| \
24750 . : '\(.\)' 2>/dev/null ||
24751echo X"$as_dir" |
24752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24754 /^X\(\/\/\)$/{ s//\1/; q; }
24755 /^X\(\/\).*/{ s//\1/; q; }
24756 s/.*/./; q'`
24757 done
24758 test ! -n "$as_dirs" || mkdir $as_dirs
24759 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24760echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24761 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024762
24763 rm -f $ac_file
24764 mv $tmp/config.h $ac_file
24765 fi
24766 else
24767 cat $tmp/config.h
24768 rm -f $tmp/config.h
24769 fi
24770done
24771_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024772cat >>$CONFIG_STATUS <<\_ACEOF
24773
24774#
24775# CONFIG_COMMANDS section.
24776#
24777for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24778 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24779 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24780 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24781$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782 X"$ac_dest" : 'X\(//\)[^/]' \| \
24783 X"$ac_dest" : 'X\(//\)$' \| \
24784 X"$ac_dest" : 'X\(/\)' \| \
24785 . : '\(.\)' 2>/dev/null ||
24786echo X"$ac_dest" |
24787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24789 /^X\(\/\/\)$/{ s//\1/; q; }
24790 /^X\(\/\).*/{ s//\1/; q; }
24791 s/.*/./; q'`
24792 ac_builddir=.
24793
24794if test "$ac_dir" != .; then
24795 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24796 # A "../" for each directory in $ac_dir_suffix.
24797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24798else
24799 ac_dir_suffix= ac_top_builddir=
24800fi
24801
24802case $srcdir in
24803 .) # No --srcdir option. We are building in place.
24804 ac_srcdir=.
24805 if test -z "$ac_top_builddir"; then
24806 ac_top_srcdir=.
24807 else
24808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24809 fi ;;
24810 [\\/]* | ?:[\\/]* ) # Absolute path.
24811 ac_srcdir=$srcdir$ac_dir_suffix;
24812 ac_top_srcdir=$srcdir ;;
24813 *) # Relative path.
24814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24816esac
24817# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24818# absolute.
24819ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024820ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024821ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24822ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24823
24824
24825 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24826echo "$as_me: executing $ac_dest commands" >&6;}
24827 case $ac_dest in
24828 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24829 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24830 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24831 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24832 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24833 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24834 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24835 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24836 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24837 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24838 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24839 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24840 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24841 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24842 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24843 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24844 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 +000024845 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24846 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24847 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24848 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24849 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024850 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024851 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24852 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24853 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24854 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24855 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24856 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24857 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24858 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24859 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24860 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24861 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24862 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24863 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24864 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24865 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 +000024866 runtime/GCCLibraries/libcurses/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libcurses/Makefile runtime/GCCLibraries/libcurses/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024867 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24868 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24869 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24870 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 +000024871 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 +000024872 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 +000024873 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24874 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 +000024875 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24876 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024877 runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024878 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24879 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024880 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24881 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024882 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24883 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24884 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24885 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24886 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24887 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24888 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24889 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24890 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24891 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24892 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24893 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24894 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24895 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24896 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24897 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24898 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24899 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 +000024900 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 +000024901 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 ;;
John Criswell5ab73462003-10-09 15:44:28 +000024902 test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024903 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 ;;
24904 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 ;;
24905 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 ;;
24906 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 ;;
24907 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 ;;
24908 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 ;;
24909 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 ;;
24910 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 ;;
24911 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 ;;
24912 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 ;;
John Criswell987e49c2003-10-10 01:11:54 +000024913 test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24914 test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024915 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 ;;
24916 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 ;;
24917 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 ;;
24918 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 ;;
24919 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24920 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24921 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 +000024922 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24923 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 +000024924 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 ;;
24925 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 +000024926 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24927 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 ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024928 test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/Makefile ;;
24929 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile ;;
24930 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
24931 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
24932 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
24933 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
24934 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
24935 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
24936 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
24937 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
24938 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
24939 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
24940 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
24941 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
24942 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024943 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 ;;
24944 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 ;;
24945 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 ;;
24946 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 ;;
24947 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 ;;
24948 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 ;;
24949 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 ;;
24950 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 ;;
24951 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 ;;
24952 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 ;;
24953 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 ;;
24954 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 ;;
24955 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 ;;
24956 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 ;;
24957 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 ;;
24958 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 ;;
24959 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 ;;
24960 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 ;;
24961 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 ;;
24962 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 ;;
24963 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 ;;
24964 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 +000024965 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 +000024966 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 ;;
24967 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 ;;
24968 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 ;;
24969 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 ;;
24970 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 ;;
24971 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 +000024972 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 +000024973 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 +000024974 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24975 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 +000024976 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24977 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24978 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 ;;
24979 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 ;;
24980 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 ;;
24981 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 +000024982 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 +000024983 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 +000024984 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 Criswell67181ca2003-09-26 14:53:17 +000024985 test/Programs/SingleSource/Regression/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/Makefile test/Programs/SingleSource/Regression/Makefile ;;
John Criswell68886d42003-09-26 19:51:42 +000024986 test/Programs/SingleSource/Regression/C/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C/Makefile test/Programs/SingleSource/Regression/C/Makefile ;;
24987 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024988 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024989 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24990 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024991 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024992 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24993 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24994 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024995 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024996 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024997 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024998 tools/llvm-ar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-ar/Makefile tools/llvm-ar/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024999 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025000 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000025001 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000025002 tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000025003 tools/llvm-prof/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-prof/Makefile tools/llvm-prof/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000025004 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025005 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25006 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
25007 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
25008 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025009 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025010 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
25011 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
25012 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
25013 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
Brian Gaeke866f10c2003-11-24 02:54:57 +000025014 projects/Stacker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/Makefile projects/Stacker/Makefile ;;
25015 projects/Stacker/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/Makefile projects/Stacker/lib/Makefile ;;
25016 projects/Stacker/lib/compiler/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/compiler/Makefile projects/Stacker/lib/compiler/Makefile ;;
25017 projects/Stacker/lib/runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/lib/runtime/Makefile projects/Stacker/lib/runtime/Makefile ;;
25018 projects/Stacker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/Makefile projects/Stacker/tools/Makefile ;;
25019 projects/Stacker/tools/stkrc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/tools/stkrc/Makefile projects/Stacker/tools/stkrc/Makefile ;;
25020 projects/Stacker/test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/test/Makefile projects/Stacker/test/Makefile ;;
25021 projects/Stacker/samples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Stacker/samples/Makefile projects/Stacker/samples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025022 esac
25023done
25024_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025025
25026cat >>$CONFIG_STATUS <<\_ACEOF
25027
25028{ (exit 0); exit 0; }
25029_ACEOF
25030chmod +x $CONFIG_STATUS
25031ac_clean_files=$ac_clean_files_save
25032
25033
25034# configure is writing to config.log, and then calls config.status.
25035# config.status does its own redirection, appending to config.log.
25036# Unfortunately, on DOS this fails, as config.log is still kept open
25037# by configure, so config.status won't be able to write to it; its
25038# output is simply discarded. So we exec the FD to /dev/null,
25039# effectively closing config.log, so it can be properly (re)opened and
25040# appended to by config.status. When coming back to configure, we
25041# need to make the FD available again.
25042if test "$no_create" != yes; then
25043 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025044 ac_config_status_args=
25045 test "$silent" = yes &&
25046 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025047 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025049 exec 5>>config.log
25050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25051 # would make configure fail if this is the last instruction.
25052 $ac_cs_success || { (exit 1); exit 1; }
25053fi
25054
John Criswell12399a12003-09-30 15:55:44 +000025055#
25056# CONFIG_SUBDIRS section.
25057#
25058if test "$no_recursion" != yes; then
25059
25060 # Remove --cache-file and --srcdir arguments so they do not pile up.
25061 ac_sub_configure_args=
25062 ac_prev=
25063 for ac_arg in $ac_configure_args; do
25064 if test -n "$ac_prev"; then
25065 ac_prev=
25066 continue
25067 fi
25068 case $ac_arg in
25069 -cache-file | --cache-file | --cache-fil | --cache-fi \
25070 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25071 ac_prev=cache_file ;;
25072 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25073 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25074 | --c=*)
25075 ;;
25076 --config-cache | -C)
25077 ;;
25078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25079 ac_prev=srcdir ;;
25080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25081 ;;
25082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25083 ac_prev=prefix ;;
25084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25085 ;;
25086 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25087 esac
25088 done
25089
25090 # Always prepend --prefix to ensure using the same prefix
25091 # in subdir configurations.
25092 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25093
25094 ac_popdir=`pwd`
25095 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25096
25097 # Do not complain, so a configure script can configure whichever
25098 # parts of a large source tree are present.
25099 test -d $srcdir/$ac_dir || continue
25100
25101 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25102echo "$as_me: configuring in $ac_dir" >&6;}
25103 { if $as_mkdir_p; then
25104 mkdir -p "$ac_dir"
25105 else
25106 as_dir="$ac_dir"
25107 as_dirs=
25108 while test ! -d "$as_dir"; do
25109 as_dirs="$as_dir $as_dirs"
25110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25111$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25112 X"$as_dir" : 'X\(//\)[^/]' \| \
25113 X"$as_dir" : 'X\(//\)$' \| \
25114 X"$as_dir" : 'X\(/\)' \| \
25115 . : '\(.\)' 2>/dev/null ||
25116echo X"$as_dir" |
25117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25119 /^X\(\/\/\)$/{ s//\1/; q; }
25120 /^X\(\/\).*/{ s//\1/; q; }
25121 s/.*/./; q'`
25122 done
25123 test ! -n "$as_dirs" || mkdir $as_dirs
25124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25125echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25126 { (exit 1); exit 1; }; }; }
25127
25128 ac_builddir=.
25129
25130if test "$ac_dir" != .; then
25131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25132 # A "../" for each directory in $ac_dir_suffix.
25133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25134else
25135 ac_dir_suffix= ac_top_builddir=
25136fi
25137
25138case $srcdir in
25139 .) # No --srcdir option. We are building in place.
25140 ac_srcdir=.
25141 if test -z "$ac_top_builddir"; then
25142 ac_top_srcdir=.
25143 else
25144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25145 fi ;;
25146 [\\/]* | ?:[\\/]* ) # Absolute path.
25147 ac_srcdir=$srcdir$ac_dir_suffix;
25148 ac_top_srcdir=$srcdir ;;
25149 *) # Relative path.
25150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25152esac
25153# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25154# absolute.
25155ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25156ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25157ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25158ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25159
25160
25161 cd $ac_dir
25162
25163 # Check for guested configure; otherwise get Cygnus style configure.
25164 if test -f $ac_srcdir/configure.gnu; then
25165 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25166 elif test -f $ac_srcdir/configure; then
25167 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25168 elif test -f $ac_srcdir/configure.in; then
25169 ac_sub_configure=$ac_configure
25170 else
25171 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25172echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25173 ac_sub_configure=
25174 fi
25175
25176 # The recursion is here.
25177 if test -n "$ac_sub_configure"; then
25178 # Make the cache file name correct relative to the subdirectory.
25179 case $cache_file in
25180 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25181 *) # Relative path.
25182 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25183 esac
25184
25185 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25186echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25187 # The eval makes quoting arguments work.
25188 eval $ac_sub_configure $ac_sub_configure_args \
25189 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25190 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25191echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25192 { (exit 1); exit 1; }; }
25193 fi
25194
25195 cd $ac_popdir
25196 done
25197fi
25198
Brian Gaekef3b24102003-11-16 18:38:14 +000025199
25200if test $llvmgccwarn = yes
25201then
25202 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25203echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25204 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25205echo "$as_me: WARNING: ***** appear to be working." >&2;}
25206 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25207echo "$as_me: WARNING: ***** " >&2;}
25208 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25209echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25210 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25211echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25212 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25213echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25214fi