blob: 4f70a4cc015719924549c46eb3bc7793095220cb [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
John Criswell392aaa32003-07-22 19:18:09 +00002108
2109
John Criswell7a73b802003-06-30 21:59:07 +00002110# Find a good install program. We prefer a C program (faster),
2111# so one script is as good as another. But avoid the broken or
2112# incompatible versions:
2113# SysV /etc/install, /usr/sbin/install
2114# SunOS /usr/etc/install
2115# IRIX /sbin/install
2116# AIX /bin/install
2117# AmigaOS /C/install, which installs bootblocks on floppy discs
2118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2121# ./install, which can be erroneously created by make from ./install.sh.
2122echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2123echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2124if test -z "$INSTALL"; then
2125if test "${ac_cv_path_install+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129for as_dir in $PATH
2130do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 # Account for people who put trailing slashes in PATH elements.
2134case $as_dir/ in
2135 ./ | .// | /cC/* | \
2136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2137 /usr/ucb/* ) ;;
2138 *)
2139 # OSF1 and SCO ODT 3.0 have their own names for install.
2140 # Don't use installbsd from OSF since it installs stuff as root
2141 # by default.
2142 for ac_prog in ginstall scoinst install; do
2143 for ac_exec_ext in '' $ac_executable_extensions; do
2144 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2145 if test $ac_prog = install &&
2146 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147 # AIX install. It has an incompatible calling convention.
2148 :
2149 elif test $ac_prog = install &&
2150 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2151 # program-specific install script used by HP pwplus--don't use.
2152 :
2153 else
2154 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2155 break 3
2156 fi
2157 fi
2158 done
2159 done
2160 ;;
2161esac
2162done
2163
2164
2165fi
2166 if test "${ac_cv_path_install+set}" = set; then
2167 INSTALL=$ac_cv_path_install
2168 else
2169 # As a last resort, use the slow shell script. We don't cache a
2170 # path for INSTALL within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the path is relative.
2173 INSTALL=$ac_install_sh
2174 fi
2175fi
2176echo "$as_me:$LINENO: result: $INSTALL" >&5
2177echo "${ECHO_T}$INSTALL" >&6
2178
2179# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2180# It thinks the first close brace ends the variable substitution.
2181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2182
2183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2184
2185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2186
2187
2188# Make sure we can run config.sub.
2189$ac_config_sub sun4 >/dev/null 2>&1 ||
2190 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2191echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2192 { (exit 1); exit 1; }; }
2193
2194echo "$as_me:$LINENO: checking build system type" >&5
2195echo $ECHO_N "checking build system type... $ECHO_C" >&6
2196if test "${ac_cv_build+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 ac_cv_build_alias=$build_alias
2200test -z "$ac_cv_build_alias" &&
2201 ac_cv_build_alias=`$ac_config_guess`
2202test -z "$ac_cv_build_alias" &&
2203 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205 { (exit 1); exit 1; }; }
2206ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2207 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2208echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213echo "${ECHO_T}$ac_cv_build" >&6
2214build=$ac_cv_build
2215build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2216build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2217build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2218
2219
2220echo "$as_me:$LINENO: checking host system type" >&5
2221echo $ECHO_N "checking host system type... $ECHO_C" >&6
2222if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225 ac_cv_host_alias=$host_alias
2226test -z "$ac_cv_host_alias" &&
2227 ac_cv_host_alias=$ac_cv_build_alias
2228ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2230echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2232
2233fi
2234echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235echo "${ECHO_T}$ac_cv_host" >&6
2236host=$ac_cv_host
2237host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2238host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2239host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2240
2241
2242echo "$as_me:$LINENO: checking target system type" >&5
2243echo $ECHO_N "checking target system type... $ECHO_C" >&6
2244if test "${ac_cv_target+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247 ac_cv_target_alias=$target_alias
2248test "x$ac_cv_target_alias" = "x" &&
2249 ac_cv_target_alias=$ac_cv_host_alias
2250ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2251 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2252echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2253 { (exit 1); exit 1; }; }
2254
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2257echo "${ECHO_T}$ac_cv_target" >&6
2258target=$ac_cv_target
2259target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2260target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2261target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2262
2263
2264# The aliases save the names the user supplied, while $host etc.
2265# will get canonicalized.
2266test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
2269 program_prefix=${target_alias}-
2270
2271case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002272 *-*-linux*)
2273 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00002274
Brian Gaekef3b24102003-11-16 18:38:14 +00002275 if test -d /home/vadve/lattner/local/x86/llvm-gcc
2276 then
2277 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002278
Brian Gaekef3b24102003-11-16 18:38:14 +00002279 fi
John Criswell7a73b802003-06-30 21:59:07 +00002280 ;;
2281
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002282 *-*-solaris*)
2283 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00002284
Brian Gaekef3b24102003-11-16 18:38:14 +00002285 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
2286 then
2287 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002288
Brian Gaekef3b24102003-11-16 18:38:14 +00002289 fi
John Criswell7a73b802003-06-30 21:59:07 +00002290 ;;
2291
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002292 *-*-darwin*)
2293 OS=Darwin
2294
2295 ;;
2296
John Criswell7a73b802003-06-30 21:59:07 +00002297 *) OS=Unknown
2298
2299 ;;
2300esac
2301
2302case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002303 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00002304
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002305 ;;
John Criswell7a73b802003-06-30 21:59:07 +00002306esac
2307
John Criswell76595452003-07-01 22:07:39 +00002308case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002309 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00002310
2311 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002312 sparc*-*) ARCH=Sparc
2313
2314 ;;
2315 powerpc*-*) ARCH=PowerPC
2316
2317 ;;
2318 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00002319
2320 ;;
2321esac
2322
John Criswell7a73b802003-06-30 21:59:07 +00002323
2324ac_ext=cc
2325ac_cpp='$CXXCPP $CPPFLAGS'
2326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2329if test -n "$ac_tool_prefix"; then
2330 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2331 do
2332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2334echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336if test "${ac_cv_prog_CXX+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339 if test -n "$CXX"; then
2340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353done
2354done
2355
2356fi
2357fi
2358CXX=$ac_cv_prog_CXX
2359if test -n "$CXX"; then
2360 echo "$as_me:$LINENO: result: $CXX" >&5
2361echo "${ECHO_T}$CXX" >&6
2362else
2363 echo "$as_me:$LINENO: result: no" >&5
2364echo "${ECHO_T}no" >&6
2365fi
2366
2367 test -n "$CXX" && break
2368 done
2369fi
2370if test -z "$CXX"; then
2371 ac_ct_CXX=$CXX
2372 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2373do
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375set dummy $ac_prog; ac_word=$2
2376echo "$as_me:$LINENO: checking for $ac_word" >&5
2377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381 if test -n "$ac_ct_CXX"; then
2382 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2383else
2384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_ac_ct_CXX="$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395done
2396done
2397
2398fi
2399fi
2400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2401if test -n "$ac_ct_CXX"; then
2402 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2403echo "${ECHO_T}$ac_ct_CXX" >&6
2404else
2405 echo "$as_me:$LINENO: result: no" >&5
2406echo "${ECHO_T}no" >&6
2407fi
2408
2409 test -n "$ac_ct_CXX" && break
2410done
2411test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2412
2413 CXX=$ac_ct_CXX
2414fi
2415
2416
2417# Provide some information about the compiler.
2418echo "$as_me:$LINENO:" \
2419 "checking for C++ compiler version" >&5
2420ac_compiler=`set X $ac_compile; echo $2`
2421{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422 (eval $ac_compiler --version </dev/null >&5) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427 (eval $ac_compiler -v </dev/null >&5) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432 (eval $ac_compiler -V </dev/null >&5) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2436
2437cat >conftest.$ac_ext <<_ACEOF
2438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002444
John Criswell7a73b802003-06-30 21:59:07 +00002445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002454ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002455# Try to create an executable without -o first, disregard a.out.
2456# It will help us diagnose broken compilers, and finding out an intuition
2457# of exeext.
2458echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2459echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2460ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2461if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2462 (eval $ac_link_default) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; then
2466 # Find the output, starting from the most likely. This scheme is
2467# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2468# resort.
2469
2470# Be careful to initialize this variable, since it used to be cached.
2471# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2472ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002473# b.out is created by i960 compilers.
2474for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2475do
2476 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002477 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2479 ;;
2480 conftest.$ac_ext )
2481 # This is the source file.
2482 ;;
2483 [ab].out )
2484 # We found the default executable, but exeext='' is most
2485 # certainly right.
2486 break;;
2487 *.* )
2488 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489 # FIXME: I believe we export ac_cv_exeext for Libtool,
2490 # but it would be cool to find out if it's true. Does anybody
2491 # maintain Libtool? --akim.
2492 export ac_cv_exeext
2493 break;;
2494 * )
2495 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002496 esac
2497done
2498else
2499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: C++ compiler cannot create executables
2505See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002506 { (exit 77); exit 77; }; }
2507fi
2508
2509ac_exeext=$ac_cv_exeext
2510echo "$as_me:$LINENO: result: $ac_file" >&5
2511echo "${ECHO_T}$ac_file" >&6
2512
2513# Check the compiler produces executables we can run. If not, either
2514# the compiler is broken, or we cross compile.
2515echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2516echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2517# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2518# If not cross compiling, check that we can run a simple program.
2519if test "$cross_compiling" != yes; then
2520 if { ac_try='./$ac_file'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 (eval $ac_try) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 cross_compiling=no
2527 else
2528 if test "$cross_compiling" = maybe; then
2529 cross_compiling=yes
2530 else
2531 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002532If you meant to cross compile, use \`--host'.
2533See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002534echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002535If you meant to cross compile, use \`--host'.
2536See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002537 { (exit 1); exit 1; }; }
2538 fi
2539 fi
2540fi
2541echo "$as_me:$LINENO: result: yes" >&5
2542echo "${ECHO_T}yes" >&6
2543
John Criswell0c38eaf2003-09-10 15:17:25 +00002544rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002545ac_clean_files=$ac_clean_files_save
2546# Check the compiler produces executables we can run. If not, either
2547# the compiler is broken, or we cross compile.
2548echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2549echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2550echo "$as_me:$LINENO: result: $cross_compiling" >&5
2551echo "${ECHO_T}$cross_compiling" >&6
2552
2553echo "$as_me:$LINENO: checking for suffix of executables" >&5
2554echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2556 (eval $ac_link) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; then
2560 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2561# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2562# work properly (i.e., refer to `conftest.exe'), while it won't with
2563# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002564for ac_file in conftest.exe conftest conftest.*; do
2565 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002566 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002568 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2569 export ac_cv_exeext
2570 break;;
2571 * ) break;;
2572 esac
2573done
2574else
John Criswell0c38eaf2003-09-10 15:17:25 +00002575 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2578See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002579 { (exit 1); exit 1; }; }
2580fi
2581
2582rm -f conftest$ac_cv_exeext
2583echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2584echo "${ECHO_T}$ac_cv_exeext" >&6
2585
2586rm -f conftest.$ac_ext
2587EXEEXT=$ac_cv_exeext
2588ac_exeext=$EXEEXT
2589echo "$as_me:$LINENO: checking for suffix of object files" >&5
2590echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2591if test "${ac_cv_objext+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2593else
2594 cat >conftest.$ac_ext <<_ACEOF
2595#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.o conftest.obj
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; then
2616 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2617 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2620 break;;
2621 esac
2622done
2623else
2624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2628See \`config.log' for more details." >&5
2629echo "$as_me: error: cannot compute suffix of object files: cannot compile
2630See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002631 { (exit 1); exit 1; }; }
2632fi
2633
2634rm -f conftest.$ac_cv_objext conftest.$ac_ext
2635fi
2636echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2637echo "${ECHO_T}$ac_cv_objext" >&6
2638OBJEXT=$ac_cv_objext
2639ac_objext=$OBJEXT
2640echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2641echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2642if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 cat >conftest.$ac_ext <<_ACEOF
2646#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002652
John Criswell7a73b802003-06-30 21:59:07 +00002653int
2654main ()
2655{
2656#ifndef __GNUC__
2657 choke me
2658#endif
2659
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_compiler_gnu=yes
2677else
2678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002679sed 's/^/| /' conftest.$ac_ext >&5
2680
John Criswell7a73b802003-06-30 21:59:07 +00002681ac_compiler_gnu=no
2682fi
2683rm -f conftest.$ac_objext conftest.$ac_ext
2684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2685
2686fi
2687echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2688echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2689GXX=`test $ac_compiler_gnu = yes && echo yes`
2690ac_test_CXXFLAGS=${CXXFLAGS+set}
2691ac_save_CXXFLAGS=$CXXFLAGS
2692CXXFLAGS="-g"
2693echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2694echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2695if test "${ac_cv_prog_cxx_g+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 cat >conftest.$ac_ext <<_ACEOF
2699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002705
John Criswell7a73b802003-06-30 21:59:07 +00002706int
2707main ()
2708{
2709
2710 ;
2711 return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -s conftest.$ac_objext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 (eval $ac_try) 2>&5
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2726 ac_cv_prog_cxx_g=yes
2727else
2728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002729sed 's/^/| /' conftest.$ac_ext >&5
2730
John Criswell7a73b802003-06-30 21:59:07 +00002731ac_cv_prog_cxx_g=no
2732fi
2733rm -f conftest.$ac_objext conftest.$ac_ext
2734fi
2735echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2736echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2737if test "$ac_test_CXXFLAGS" = set; then
2738 CXXFLAGS=$ac_save_CXXFLAGS
2739elif test $ac_cv_prog_cxx_g = yes; then
2740 if test "$GXX" = yes; then
2741 CXXFLAGS="-g -O2"
2742 else
2743 CXXFLAGS="-g"
2744 fi
2745else
2746 if test "$GXX" = yes; then
2747 CXXFLAGS="-O2"
2748 else
2749 CXXFLAGS=
2750 fi
2751fi
2752for ac_declaration in \
2753 ''\
2754 '#include <stdlib.h>' \
2755 'extern "C" void std::exit (int) throw (); using std::exit;' \
2756 'extern "C" void std::exit (int); using std::exit;' \
2757 'extern "C" void exit (int) throw ();' \
2758 'extern "C" void exit (int);' \
2759 'void exit (int);'
2760do
2761 cat >conftest.$ac_ext <<_ACEOF
2762#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002768#include <stdlib.h>
2769$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002770int
2771main ()
2772{
2773exit (42);
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778rm -f conftest.$ac_objext
2779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 (eval $ac_try) 2>&5
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 :
2791else
2792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002793sed 's/^/| /' conftest.$ac_ext >&5
2794
John Criswell7a73b802003-06-30 21:59:07 +00002795continue
2796fi
2797rm -f conftest.$ac_objext conftest.$ac_ext
2798 cat >conftest.$ac_ext <<_ACEOF
2799#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002800/* confdefs.h. */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002805$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002806int
2807main ()
2808{
2809exit (42);
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816 (eval $ac_compile) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -s conftest.$ac_objext'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; }; then
2826 break
2827else
2828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002829sed 's/^/| /' conftest.$ac_ext >&5
2830
John Criswell7a73b802003-06-30 21:59:07 +00002831fi
2832rm -f conftest.$ac_objext conftest.$ac_ext
2833done
2834rm -f conftest*
2835if test -n "$ac_declaration"; then
2836 echo '#ifdef __cplusplus' >>confdefs.h
2837 echo $ac_declaration >>confdefs.h
2838 echo '#endif' >>confdefs.h
2839fi
2840
2841ac_ext=c
2842ac_cpp='$CPP $CPPFLAGS'
2843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846
2847ac_ext=c
2848ac_cpp='$CPP $CPPFLAGS'
2849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852if test -n "$ac_tool_prefix"; then
2853 for ac_prog in gcc
2854 do
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857echo "$as_me:$LINENO: checking for $ac_word" >&5
2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859if test "${ac_cv_prog_CC+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876done
2877done
2878
2879fi
2880fi
2881CC=$ac_cv_prog_CC
2882if test -n "$CC"; then
2883 echo "$as_me:$LINENO: result: $CC" >&5
2884echo "${ECHO_T}$CC" >&6
2885else
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888fi
2889
2890 test -n "$CC" && break
2891 done
2892fi
2893if test -z "$CC"; then
2894 ac_ct_CC=$CC
2895 for ac_prog in gcc
2896do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898set dummy $ac_prog; ac_word=$2
2899echo "$as_me:$LINENO: checking for $ac_word" >&5
2900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2901if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903else
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_ac_ct_CC="$ac_prog"
2915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918done
2919done
2920
2921fi
2922fi
2923ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924if test -n "$ac_ct_CC"; then
2925 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2926echo "${ECHO_T}$ac_ct_CC" >&6
2927else
2928 echo "$as_me:$LINENO: result: no" >&5
2929echo "${ECHO_T}no" >&6
2930fi
2931
2932 test -n "$ac_ct_CC" && break
2933done
2934
2935 CC=$ac_ct_CC
2936fi
2937
2938
John Criswell0c38eaf2003-09-10 15:17:25 +00002939test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2940See \`config.log' for more details." >&5
2941echo "$as_me: error: no acceptable C compiler found in \$PATH
2942See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002943 { (exit 1); exit 1; }; }
2944
2945# Provide some information about the compiler.
2946echo "$as_me:$LINENO:" \
2947 "checking for C compiler version" >&5
2948ac_compiler=`set X $ac_compile; echo $2`
2949{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2950 (eval $ac_compiler --version </dev/null >&5) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }
2954{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2955 (eval $ac_compiler -v </dev/null >&5) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }
2959{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2960 (eval $ac_compiler -V </dev/null >&5) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }
2964
2965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2967if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 cat >conftest.$ac_ext <<_ACEOF
2971#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002972/* confdefs.h. */
2973_ACEOF
2974cat confdefs.h >>conftest.$ac_ext
2975cat >>conftest.$ac_ext <<_ACEOF
2976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002977
John Criswell7a73b802003-06-30 21:59:07 +00002978int
2979main ()
2980{
2981#ifndef __GNUC__
2982 choke me
2983#endif
2984
2985 ;
2986 return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext
2990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2991 (eval $ac_compile) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_compiler_gnu=yes
3002else
3003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003004sed 's/^/| /' conftest.$ac_ext >&5
3005
John Criswell7a73b802003-06-30 21:59:07 +00003006ac_compiler_gnu=no
3007fi
3008rm -f conftest.$ac_objext conftest.$ac_ext
3009ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010
3011fi
3012echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3013echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3014GCC=`test $ac_compiler_gnu = yes && echo yes`
3015ac_test_CFLAGS=${CFLAGS+set}
3016ac_save_CFLAGS=$CFLAGS
3017CFLAGS="-g"
3018echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3020if test "${ac_cv_prog_cc_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 cat >conftest.$ac_ext <<_ACEOF
3024#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cc_g=yes
3052else
3053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003054sed 's/^/| /' conftest.$ac_ext >&5
3055
John Criswell7a73b802003-06-30 21:59:07 +00003056ac_cv_prog_cc_g=no
3057fi
3058rm -f conftest.$ac_objext conftest.$ac_ext
3059fi
3060echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3061echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3062if test "$ac_test_CFLAGS" = set; then
3063 CFLAGS=$ac_save_CFLAGS
3064elif test $ac_cv_prog_cc_g = yes; then
3065 if test "$GCC" = yes; then
3066 CFLAGS="-g -O2"
3067 else
3068 CFLAGS="-g"
3069 fi
3070else
3071 if test "$GCC" = yes; then
3072 CFLAGS="-O2"
3073 else
3074 CFLAGS=
3075 fi
3076fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003077echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3078echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3079if test "${ac_cv_prog_cc_stdc+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 ac_cv_prog_cc_stdc=no
3083ac_save_CC=$CC
3084cat >conftest.$ac_ext <<_ACEOF
3085#line $LINENO "configure"
3086/* confdefs.h. */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h. */
3091#include <stdarg.h>
3092#include <stdio.h>
3093#include <sys/types.h>
3094#include <sys/stat.h>
3095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096struct buf { int x; };
3097FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098static char *e (p, i)
3099 char **p;
3100 int i;
3101{
3102 return p[i];
3103}
3104static char *f (char * (*g) (char **, int), char **p, ...)
3105{
3106 char *s;
3107 va_list v;
3108 va_start (v,p);
3109 s = g (p, va_arg (v,int));
3110 va_end (v);
3111 return s;
3112}
3113int test (int i, double x);
3114struct s1 {int (*f) (int a);};
3115struct s2 {int (*f) (double a);};
3116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3117int argc;
3118char **argv;
3119int
3120main ()
3121{
3122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127# Don't try gcc -ansi; that turns off useful extensions and
3128# breaks some systems' header files.
3129# AIX -qlanglvl=ansi
3130# Ultrix and OSF/1 -std1
3131# HP-UX 10.20 and later -Ae
3132# HP-UX older versions -Aa -D_HPUX_SOURCE
3133# SVR4 -Xc -D__EXTENSIONS__
3134for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3135do
3136 CC="$ac_save_CC $ac_arg"
3137 rm -f conftest.$ac_objext
3138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_prog_cc_stdc=$ac_arg
3150break
3151else
3152 echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155fi
3156rm -f conftest.$ac_objext
3157done
3158rm -f conftest.$ac_ext conftest.$ac_objext
3159CC=$ac_save_CC
3160
3161fi
3162
3163case "x$ac_cv_prog_cc_stdc" in
3164 x|xno)
3165 echo "$as_me:$LINENO: result: none needed" >&5
3166echo "${ECHO_T}none needed" >&6 ;;
3167 *)
3168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3169echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3170 CC="$CC $ac_cv_prog_cc_stdc" ;;
3171esac
3172
John Criswell7a73b802003-06-30 21:59:07 +00003173# Some people use a C++ compiler to compile C. Since we use `exit',
3174# in C++ we need to declare it. In case someone uses the same compiler
3175# for both compiling C and C++ we need to have the C++ compiler decide
3176# the declaration of exit, since it's the most demanding environment.
3177cat >conftest.$ac_ext <<_ACEOF
3178#ifndef __cplusplus
3179 choke me
3180#endif
3181_ACEOF
3182rm -f conftest.$ac_objext
3183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3184 (eval $ac_compile) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 for ac_declaration in \
3195 ''\
3196 '#include <stdlib.h>' \
3197 'extern "C" void std::exit (int) throw (); using std::exit;' \
3198 'extern "C" void std::exit (int); using std::exit;' \
3199 'extern "C" void exit (int) throw ();' \
3200 'extern "C" void exit (int);' \
3201 'void exit (int);'
3202do
3203 cat >conftest.$ac_ext <<_ACEOF
3204#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003210#include <stdlib.h>
3211$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003212int
3213main ()
3214{
3215exit (42);
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext
3221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 :
3233else
3234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003235sed 's/^/| /' conftest.$ac_ext >&5
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237continue
3238fi
3239rm -f conftest.$ac_objext conftest.$ac_ext
3240 cat >conftest.$ac_ext <<_ACEOF
3241#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003247$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003248int
3249main ()
3250{
3251exit (42);
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -s conftest.$ac_objext'
3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
3268 break
3269else
3270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003271sed 's/^/| /' conftest.$ac_ext >&5
3272
John Criswell7a73b802003-06-30 21:59:07 +00003273fi
3274rm -f conftest.$ac_objext conftest.$ac_ext
3275done
3276rm -f conftest*
3277if test -n "$ac_declaration"; then
3278 echo '#ifdef __cplusplus' >>confdefs.h
3279 echo $ac_declaration >>confdefs.h
3280 echo '#endif' >>confdefs.h
3281fi
3282
3283else
3284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003285sed 's/^/| /' conftest.$ac_ext >&5
3286
John Criswell7a73b802003-06-30 21:59:07 +00003287fi
3288rm -f conftest.$ac_objext conftest.$ac_ext
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3302# On Suns, sometimes $CPP names a directory.
3303if test -n "$CPP" && test -d "$CPP"; then
3304 CPP=
3305fi
3306if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312 do
3313 ac_preproc_ok=false
3314for ac_c_preproc_warn_flag in '' yes
3315do
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003320 # On the NeXT, cc -E runs the code through the compiler's parser,
3321 # not just through cpp. "Syntax error" is here to catch this case.
3322 cat >conftest.$ac_ext <<_ACEOF
3323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
3329#ifdef __STDC__
3330# include <limits.h>
3331#else
3332# include <assert.h>
3333#endif
John Criswell7a73b802003-06-30 21:59:07 +00003334 Syntax error
3335_ACEOF
3336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3338 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003339 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } >/dev/null; then
3344 if test -s conftest.err; then
3345 ac_cpp_err=$ac_c_preproc_warn_flag
3346 else
3347 ac_cpp_err=
3348 fi
3349else
3350 ac_cpp_err=yes
3351fi
3352if test -z "$ac_cpp_err"; then
3353 :
3354else
3355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003356sed 's/^/| /' conftest.$ac_ext >&5
3357
John Criswell7a73b802003-06-30 21:59:07 +00003358 # Broken: fails on valid input.
3359continue
3360fi
3361rm -f conftest.err conftest.$ac_ext
3362
3363 # OK, works on sane cases. Now check whether non-existent headers
3364 # can be detected and how.
3365 cat >conftest.$ac_ext <<_ACEOF
3366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003372#include <ac_nonexistent.h>
3373_ACEOF
3374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3376 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003377 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 else
3385 ac_cpp_err=
3386 fi
3387else
3388 ac_cpp_err=yes
3389fi
3390if test -z "$ac_cpp_err"; then
3391 # Broken: success on invalid input.
3392continue
3393else
3394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003395sed 's/^/| /' conftest.$ac_ext >&5
3396
John Criswell7a73b802003-06-30 21:59:07 +00003397 # Passes both tests.
3398ac_preproc_ok=:
3399break
3400fi
3401rm -f conftest.err conftest.$ac_ext
3402
3403done
3404# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405rm -f conftest.err conftest.$ac_ext
3406if $ac_preproc_ok; then
3407 break
3408fi
3409
3410 done
3411 ac_cv_prog_CPP=$CPP
3412
3413fi
3414 CPP=$ac_cv_prog_CPP
3415else
3416 ac_cv_prog_CPP=$CPP
3417fi
3418echo "$as_me:$LINENO: result: $CPP" >&5
3419echo "${ECHO_T}$CPP" >&6
3420ac_preproc_ok=false
3421for ac_c_preproc_warn_flag in '' yes
3422do
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.$ac_ext <<_ACEOF
3430#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#ifdef __STDC__
3437# include <limits.h>
3438#else
3439# include <assert.h>
3440#endif
John Criswell7a73b802003-06-30 21:59:07 +00003441 Syntax error
3442_ACEOF
3443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3445 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003446 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 else
3454 ac_cpp_err=
3455 fi
3456else
3457 ac_cpp_err=yes
3458fi
3459if test -z "$ac_cpp_err"; then
3460 :
3461else
3462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003463sed 's/^/| /' conftest.$ac_ext >&5
3464
John Criswell7a73b802003-06-30 21:59:07 +00003465 # Broken: fails on valid input.
3466continue
3467fi
3468rm -f conftest.err conftest.$ac_ext
3469
3470 # OK, works on sane cases. Now check whether non-existent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003474/* confdefs.h. */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003479#include <ac_nonexistent.h>
3480_ACEOF
3481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003484 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 else
3492 ac_cpp_err=
3493 fi
3494else
3495 ac_cpp_err=yes
3496fi
3497if test -z "$ac_cpp_err"; then
3498 # Broken: success on invalid input.
3499continue
3500else
3501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003502sed 's/^/| /' conftest.$ac_ext >&5
3503
John Criswell7a73b802003-06-30 21:59:07 +00003504 # Passes both tests.
3505ac_preproc_ok=:
3506break
3507fi
3508rm -f conftest.err conftest.$ac_ext
3509
3510done
3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512rm -f conftest.err conftest.$ac_ext
3513if $ac_preproc_ok; then
3514 :
3515else
John Criswell0c38eaf2003-09-10 15:17:25 +00003516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517See \`config.log' for more details." >&5
3518echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003520 { (exit 1); exit 1; }; }
3521fi
3522
3523ac_ext=c
3524ac_cpp='$CPP $CPPFLAGS'
3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529
3530if test "$GCC" != "yes"
3531then
3532 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3533echo "$as_me: error: gcc required but not found" >&2;}
3534 { (exit 1); exit 1; }; }
3535fi
3536
3537if test "$GXX" != "yes"
3538then
3539 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3540echo "$as_me: error: g++ required but not found" >&2;}
3541 { (exit 1); exit 1; }; }
3542fi
3543
John Criswellde00db22003-08-25 16:49:54 +00003544gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3545if test "$gccmajor" -lt "3"
3546then
3547 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3548echo "$as_me: error: gcc 3.x required" >&2;}
3549 { (exit 1); exit 1; }; }
3550fi
3551
John Criswell7a73b802003-06-30 21:59:07 +00003552 echo "$as_me:$LINENO: checking for GNU make" >&5
3553echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3554if test "${_cv_gnu_make_command+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 _cv_gnu_make_command='' ;
3558 for a in "$MAKE" make gmake gnumake ; do
3559 if test -z "$a" ; then continue ; fi ;
3560 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3561 _cv_gnu_make_command=$a ;
3562 break;
3563 fi
3564 done ;
3565
3566fi
3567echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3568echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3569 if test "x$_cv_gnu_make_command" != "x" ; then
3570 ifGNUmake='' ;
3571 else
3572 ifGNUmake='#' ;
3573 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3574echo "${ECHO_T}\"Not found\"" >&6;
3575 fi
3576
3577
3578if test -z "$_cv_gnu_make_command"
3579then
3580 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3581echo "$as_me: error: GNU Make required but not found" >&2;}
3582 { (exit 1); exit 1; }; }
3583fi
3584
3585
3586echo "$as_me:$LINENO: checking " >&5
3587echo $ECHO_N "checking ... $ECHO_C" >&6
3588if test "${ac_cv_has_flex+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 for ac_prog in flex lex
3592do
3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3594set dummy $ac_prog; ac_word=$2
3595echo "$as_me:$LINENO: checking for $ac_word" >&5
3596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597if test "${ac_cv_prog_LEX+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600 if test -n "$LEX"; then
3601 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3602else
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_LEX="$ac_prog"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3613 fi
3614done
3615done
3616
3617fi
3618fi
3619LEX=$ac_cv_prog_LEX
3620if test -n "$LEX"; then
3621 echo "$as_me:$LINENO: result: $LEX" >&5
3622echo "${ECHO_T}$LEX" >&6
3623else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626fi
3627
3628 test -n "$LEX" && break
3629done
3630test -n "$LEX" || LEX=":"
3631
3632if test -z "$LEXLIB"
3633then
3634 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3635echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3636if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638else
3639 ac_check_lib_save_LIBS=$LIBS
3640LIBS="-lfl $LIBS"
3641cat >conftest.$ac_ext <<_ACEOF
3642#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003643/* confdefs.h. */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003648
3649/* Override any gcc2 internal prototype to avoid an error. */
3650#ifdef __cplusplus
3651extern "C"
3652#endif
3653/* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003656int
3657main ()
3658{
3659yywrap ();
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext conftest$ac_exeext
3665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 (eval $ac_link) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_lib_fl_yywrap=yes
3677else
3678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003679sed 's/^/| /' conftest.$ac_ext >&5
3680
John Criswell7a73b802003-06-30 21:59:07 +00003681ac_cv_lib_fl_yywrap=no
3682fi
3683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684LIBS=$ac_check_lib_save_LIBS
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3687echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3688if test $ac_cv_lib_fl_yywrap = yes; then
3689 LEXLIB="-lfl"
3690else
3691 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3692echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3693if test "${ac_cv_lib_l_yywrap+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696 ac_check_lib_save_LIBS=$LIBS
3697LIBS="-ll $LIBS"
3698cat >conftest.$ac_ext <<_ACEOF
3699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003700/* confdefs.h. */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003705
3706/* Override any gcc2 internal prototype to avoid an error. */
3707#ifdef __cplusplus
3708extern "C"
3709#endif
3710/* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3712char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003713int
3714main ()
3715{
3716yywrap ();
3717 ;
3718 return 0;
3719}
3720_ACEOF
3721rm -f conftest.$ac_objext conftest$ac_exeext
3722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3723 (eval $ac_link) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); } &&
3727 { ac_try='test -s conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 ac_cv_lib_l_yywrap=yes
3734else
3735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003736sed 's/^/| /' conftest.$ac_ext >&5
3737
John Criswell7a73b802003-06-30 21:59:07 +00003738ac_cv_lib_l_yywrap=no
3739fi
3740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3741LIBS=$ac_check_lib_save_LIBS
3742fi
3743echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3744echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3745if test $ac_cv_lib_l_yywrap = yes; then
3746 LEXLIB="-ll"
3747fi
3748
3749fi
3750
3751fi
3752
3753if test "x$LEX" != "x:"; then
3754 echo "$as_me:$LINENO: checking lex output file root" >&5
3755echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3756if test "${ac_cv_prog_lex_root+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 # The minimal lex program is just a single line: %%. But some broken lexes
3760# (Solaris, I think it was) want two %% lines, so accommodate them.
3761cat >conftest.l <<_ACEOF
3762%%
3763%%
3764_ACEOF
3765{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3766 (eval $LEX conftest.l) 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }
3770if test -f lex.yy.c; then
3771 ac_cv_prog_lex_root=lex.yy
3772elif test -f lexyy.c; then
3773 ac_cv_prog_lex_root=lexyy
3774else
3775 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3776echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3777 { (exit 1); exit 1; }; }
3778fi
3779fi
3780echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3781echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3782rm -f conftest.l
3783LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3784
3785echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3786echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3787if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 # POSIX says lex can declare yytext either as a pointer or an array; the
3791# default is implementation-dependent. Figure out which it is, since
3792# not all implementations provide the %pointer and %array declarations.
3793ac_cv_prog_lex_yytext_pointer=no
3794echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3795ac_save_LIBS=$LIBS
3796LIBS="$LIBS $LEXLIB"
3797cat >conftest.$ac_ext <<_ACEOF
3798`cat $LEX_OUTPUT_ROOT.c`
3799_ACEOF
3800rm -f conftest.$ac_objext conftest$ac_exeext
3801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -s conftest$ac_exeext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 (eval $ac_try) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_prog_lex_yytext_pointer=yes
3813else
3814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003815sed 's/^/| /' conftest.$ac_ext >&5
3816
John Criswell7a73b802003-06-30 21:59:07 +00003817fi
3818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3819LIBS=$ac_save_LIBS
3820rm -f "${LEX_OUTPUT_ROOT}.c"
3821
3822fi
3823echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3824echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3825if test $ac_cv_prog_lex_yytext_pointer = yes; then
3826
3827cat >>confdefs.h <<\_ACEOF
3828#define YYTEXT_POINTER 1
3829_ACEOF
3830
3831fi
3832
3833fi
3834
3835fi
3836echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3837echo "${ECHO_T}$ac_cv_has_flex" >&6
3838if test "$LEX" != "flex"; then
3839 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3840echo "$as_me: error: flex not found but required" >&2;}
3841 { (exit 1); exit 1; }; }
3842fi
3843
3844echo "$as_me:$LINENO: checking " >&5
3845echo $ECHO_N "checking ... $ECHO_C" >&6
3846if test "${ac_cv_has_bison+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 for ac_prog in 'bison -y' byacc
3850do
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852set dummy $ac_prog; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_YACC+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 if test -n "$YACC"; then
3859 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_YACC="$ac_prog"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873done
3874
3875fi
3876fi
3877YACC=$ac_cv_prog_YACC
3878if test -n "$YACC"; then
3879 echo "$as_me:$LINENO: result: $YACC" >&5
3880echo "${ECHO_T}$YACC" >&6
3881else
3882 echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884fi
3885
3886 test -n "$YACC" && break
3887done
3888test -n "$YACC" || YACC="yacc"
3889
3890
3891fi
3892echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3893echo "${ECHO_T}$ac_cv_has_bison" >&6
3894if test "$YACC" != "bison -y"; then
3895 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3896echo "$as_me: error: bison not found but required" >&2;}
3897 { (exit 1); exit 1; }; }
3898else
3899 YACC=bison
3900
3901fi
3902
3903
3904# Check whether --enable-shared or --disable-shared was given.
3905if test "${enable_shared+set}" = set; then
3906 enableval="$enable_shared"
3907 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003908 case $enableval in
3909 yes) enable_shared=yes ;;
3910 no) enable_shared=no ;;
3911 *)
3912 enable_shared=no
3913 # Look at the argument we got. We use all the common list separators.
3914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3915 for pkg in $enableval; do
3916 IFS="$lt_save_ifs"
3917 if test "X$pkg" = "X$p"; then
3918 enable_shared=yes
3919 fi
3920 done
3921 IFS="$lt_save_ifs"
3922 ;;
3923 esac
John Criswell7a73b802003-06-30 21:59:07 +00003924else
3925 enable_shared=yes
3926fi;
John Criswell47fdd832003-07-14 16:52:07 +00003927
John Criswell7a73b802003-06-30 21:59:07 +00003928# Check whether --enable-static or --disable-static was given.
3929if test "${enable_static+set}" = set; then
3930 enableval="$enable_static"
3931 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003932 case $enableval in
3933 yes) enable_static=yes ;;
3934 no) enable_static=no ;;
3935 *)
3936 enable_static=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_static=yes
3943 fi
3944 done
3945 IFS="$lt_save_ifs"
3946 ;;
3947 esac
John Criswell7a73b802003-06-30 21:59:07 +00003948else
3949 enable_static=yes
3950fi;
John Criswell47fdd832003-07-14 16:52:07 +00003951
John Criswell7a73b802003-06-30 21:59:07 +00003952# Check whether --enable-fast-install or --disable-fast-install was given.
3953if test "${enable_fast_install+set}" = set; then
3954 enableval="$enable_fast_install"
3955 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003956 case $enableval in
3957 yes) enable_fast_install=yes ;;
3958 no) enable_fast_install=no ;;
3959 *)
3960 enable_fast_install=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_fast_install=yes
3967 fi
3968 done
3969 IFS="$lt_save_ifs"
3970 ;;
3971 esac
John Criswell7a73b802003-06-30 21:59:07 +00003972else
3973 enable_fast_install=yes
3974fi;
John Criswell47fdd832003-07-14 16:52:07 +00003975
3976echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3977echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3978if test "${lt_cv_path_SED+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981 # Loop through the user's path and test for sed and gsed.
3982# Then use that list of sed's as ones to test for truncation.
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for lt_ac_prog in sed gsed; do
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3991 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3992 fi
3993 done
3994 done
3995done
3996lt_ac_max=0
3997lt_ac_count=0
3998# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3999# along with /bin/sed that truncates output.
4000for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4001 test ! -f $lt_ac_sed && break
4002 cat /dev/null > conftest.in
4003 lt_ac_count=0
4004 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4005 # Check for GNU sed and select it if it is found.
4006 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4007 lt_cv_path_SED=$lt_ac_sed
4008 break
4009 fi
4010 while true; do
4011 cat conftest.in conftest.in >conftest.tmp
4012 mv conftest.tmp conftest.in
4013 cp conftest.in conftest.nl
4014 echo >>conftest.nl
4015 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4016 cmp -s conftest.out conftest.nl || break
4017 # 10000 chars as input seems more than enough
4018 test $lt_ac_count -gt 10 && break
4019 lt_ac_count=`expr $lt_ac_count + 1`
4020 if test $lt_ac_count -gt $lt_ac_max; then
4021 lt_ac_max=$lt_ac_count
4022 lt_cv_path_SED=$lt_ac_sed
4023 fi
4024 done
4025done
4026SED=$lt_cv_path_SED
4027
John Criswell7a73b802003-06-30 21:59:07 +00004028fi
4029
John Criswell47fdd832003-07-14 16:52:07 +00004030echo "$as_me:$LINENO: result: $SED" >&5
4031echo "${ECHO_T}$SED" >&6
4032
4033echo "$as_me:$LINENO: checking for egrep" >&5
4034echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4035if test "${ac_cv_prog_egrep+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4039 then ac_cv_prog_egrep='grep -E'
4040 else ac_cv_prog_egrep='egrep'
4041 fi
4042fi
4043echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4044echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4045 EGREP=$ac_cv_prog_egrep
4046
4047
John Criswell7a73b802003-06-30 21:59:07 +00004048
4049# Check whether --with-gnu-ld or --without-gnu-ld was given.
4050if test "${with_gnu_ld+set}" = set; then
4051 withval="$with_gnu_ld"
4052 test "$withval" = no || with_gnu_ld=yes
4053else
4054 with_gnu_ld=no
4055fi;
4056ac_prog=ld
4057if test "$GCC" = yes; then
4058 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004059 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4060echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004061 case $host in
4062 *-*-mingw*)
4063 # gcc leaves a trailing carriage return which upsets mingw
4064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4065 *)
4066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4067 esac
4068 case $ac_prog in
4069 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004070 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004071 re_direlt='/[^/][^/]*/\.\./'
4072 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004076 done
4077 test -z "$LD" && LD="$ac_prog"
4078 ;;
4079 "")
4080 # If it fails, then pretend we aren't using GCC.
4081 ac_prog=ld
4082 ;;
4083 *)
4084 # If it is relative, then search for the first ld in PATH.
4085 with_gnu_ld=unknown
4086 ;;
4087 esac
4088elif test "$with_gnu_ld" = yes; then
4089 echo "$as_me:$LINENO: checking for GNU ld" >&5
4090echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4091else
4092 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4093echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4094fi
4095if test "${lt_cv_path_LD+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004100 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004101 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004102 test -z "$ac_dir" && ac_dir=.
4103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4104 lt_cv_path_LD="$ac_dir/$ac_prog"
4105 # Check to see if the program is GNU ld. I'd rather use --version,
4106 # but apparently some GNU ld's only accept -v.
4107 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4109 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004110 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004111 ;;
4112 *)
John Criswell7a73b802003-06-30 21:59:07 +00004113 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004114 ;;
4115 esac
John Criswell7a73b802003-06-30 21:59:07 +00004116 fi
4117 done
John Criswell47fdd832003-07-14 16:52:07 +00004118 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004119else
4120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4121fi
4122fi
4123
4124LD="$lt_cv_path_LD"
4125if test -n "$LD"; then
4126 echo "$as_me:$LINENO: result: $LD" >&5
4127echo "${ECHO_T}$LD" >&6
4128else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131fi
4132test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4133echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4134 { (exit 1); exit 1; }; }
4135echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4136echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4137if test "${lt_cv_prog_gnu_ld+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004141case `"$LD" -v 2>&1 </dev/null` in
4142*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004143 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004144 ;;
4145*)
John Criswell7a73b802003-06-30 21:59:07 +00004146 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004147 ;;
4148esac
John Criswell7a73b802003-06-30 21:59:07 +00004149fi
4150echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4151echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4152with_gnu_ld=$lt_cv_prog_gnu_ld
4153
4154
4155echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4156echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4157if test "${lt_cv_ld_reload_flag+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else
4160 lt_cv_ld_reload_flag='-r'
4161fi
4162echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4163echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4164reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004165case $reload_flag in
4166"" | " "*) ;;
4167*) reload_flag=" $reload_flag" ;;
4168esac
4169reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004170
4171echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4172echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4173if test "${lt_cv_path_NM+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 if test -n "$NM"; then
4177 # Let the user override the test.
4178 lt_cv_path_NM="$NM"
4179else
John Criswell47fdd832003-07-14 16:52:07 +00004180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004181 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004182 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004183 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004184 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4185 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004186 # Check to see if the nm accepts a BSD-compat flag.
4187 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4188 # nm: unknown option "B" ignored
4189 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004190 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4191 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004192 lt_cv_path_NM="$tmp_nm -B"
4193 break
John Criswell47fdd832003-07-14 16:52:07 +00004194 ;;
4195 *)
4196 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4197 */dev/null*)
4198 lt_cv_path_NM="$tmp_nm -p"
4199 break
4200 ;;
4201 *)
4202 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4203 continue # so that we can try to find one that supports BSD flags
4204 ;;
4205 esac
4206 esac
John Criswell7a73b802003-06-30 21:59:07 +00004207 fi
4208 done
John Criswell47fdd832003-07-14 16:52:07 +00004209 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004210 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4211fi
4212fi
John Criswell47fdd832003-07-14 16:52:07 +00004213echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4214echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004215NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004216
4217echo "$as_me:$LINENO: checking whether ln -s works" >&5
4218echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4219LN_S=$as_ln_s
4220if test "$LN_S" = "ln -s"; then
4221 echo "$as_me:$LINENO: result: yes" >&5
4222echo "${ECHO_T}yes" >&6
4223else
4224 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4225echo "${ECHO_T}no, using $LN_S" >&6
4226fi
4227
John Criswell47fdd832003-07-14 16:52:07 +00004228echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4229echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004230if test "${lt_cv_deplibs_check_method+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233 lt_cv_file_magic_cmd='$MAGIC_CMD'
4234lt_cv_file_magic_test_file=
4235lt_cv_deplibs_check_method='unknown'
4236# Need to set the preceding variable on all platforms that support
4237# interlibrary dependencies.
4238# 'none' -- dependencies not supported.
4239# `unknown' -- same as none, but documents that we really don't know.
4240# 'pass_all' -- all dependencies passed with no checks.
4241# 'test_compile' -- check by making test program.
4242# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004243# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004244# If you have `file' or equivalent on your system and you're not sure
4245# whether `pass_all' will *always* work, you probably want this one.
4246
4247case $host_os in
4248aix4* | aix5*)
4249 lt_cv_deplibs_check_method=pass_all
4250 ;;
4251
4252beos*)
4253 lt_cv_deplibs_check_method=pass_all
4254 ;;
4255
4256bsdi4*)
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4258 lt_cv_file_magic_cmd='/usr/bin/file -L'
4259 lt_cv_file_magic_test_file=/shlib/libc.so
4260 ;;
4261
4262cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004263 # win32_libid is a shell function defined in ltmain.sh
4264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4265 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004266 ;;
4267
4268darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004269 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004270 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4271 lt_cv_file_magic_cmd='/usr/bin/file -L'
4272 case "$host_os" in
4273 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004274 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004275 ;;
4276 *) # Darwin 1.3 on
4277 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4278 ;;
4279 esac
John Criswell47fdd832003-07-14 16:52:07 +00004280 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004281 ;;
4282
4283freebsd*)
4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4285 case $host_cpu in
4286 i*86 )
4287 # Not sure whether the presence of OpenBSD here was a mistake.
4288 # Let's accept both of them until this is cleared up.
4289 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4290 lt_cv_file_magic_cmd=/usr/bin/file
4291 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4292 ;;
4293 esac
4294 else
4295 lt_cv_deplibs_check_method=pass_all
4296 fi
4297 ;;
4298
4299gnu*)
4300 lt_cv_deplibs_check_method=pass_all
4301 ;;
4302
John Criswell47fdd832003-07-14 16:52:07 +00004303hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004304 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004305 case "$host_cpu" in
4306 ia64*)
4307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4308 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4309 ;;
4310 hppa*64*)
4311 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]'
4312 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4313 ;;
4314 *)
4315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4316 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4317 ;;
4318 esac
John Criswell7a73b802003-06-30 21:59:07 +00004319 ;;
4320
John Criswell47fdd832003-07-14 16:52:07 +00004321irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004322 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004323 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004324 # this will be overridden with pass_all, but let us keep it just in case
4325 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4326 ;;
4327 *)
4328 case $LD in
4329 *-32|*"-32 ") libmagic=32-bit;;
4330 *-n32|*"-n32 ") libmagic=N32;;
4331 *-64|*"-64 ") libmagic=64-bit;;
4332 *) libmagic=never-match;;
4333 esac
4334 # this will be overridden with pass_all, but let us keep it just in case
4335 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4336 ;;
4337 esac
4338 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004343linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004344 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004345 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004346 lt_cv_deplibs_check_method=pass_all ;;
4347 *)
4348 # glibc up to 2.1.1 does not perform some relocations on ARM
4349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4350 esac
4351 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4352 ;;
4353
4354netbsd*)
4355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004357 else
John Criswell47fdd832003-07-14 16:52:07 +00004358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004359 fi
4360 ;;
4361
4362newos6*)
4363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4364 lt_cv_file_magic_cmd=/usr/bin/file
4365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4366 ;;
4367
John Criswell47fdd832003-07-14 16:52:07 +00004368nto-qnx)
4369 lt_cv_deplibs_check_method=unknown
4370 ;;
4371
John Criswell7a73b802003-06-30 21:59:07 +00004372openbsd*)
4373 lt_cv_file_magic_cmd=/usr/bin/file
4374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4377 else
4378 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4379 fi
4380 ;;
4381
4382osf3* | osf4* | osf5*)
4383 # this will be overridden with pass_all, but let us keep it just in case
4384 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4385 lt_cv_file_magic_test_file=/shlib/libc.so
4386 lt_cv_deplibs_check_method=pass_all
4387 ;;
4388
4389sco3.2v5*)
4390 lt_cv_deplibs_check_method=pass_all
4391 ;;
4392
4393solaris*)
4394 lt_cv_deplibs_check_method=pass_all
4395 lt_cv_file_magic_test_file=/lib/libc.so
4396 ;;
4397
John Criswell7a73b802003-06-30 21:59:07 +00004398sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4399 case $host_vendor in
4400 motorola)
4401 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]'
4402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4403 ;;
4404 ncr)
4405 lt_cv_deplibs_check_method=pass_all
4406 ;;
4407 sequent)
4408 lt_cv_file_magic_cmd='/bin/file'
4409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4410 ;;
4411 sni)
4412 lt_cv_file_magic_cmd='/bin/file'
4413 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4414 lt_cv_file_magic_test_file=/lib/libc.so
4415 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004416 siemens)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004419 esac
4420 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004421
4422sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4423 lt_cv_deplibs_check_method=pass_all
4424 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004425esac
4426
4427fi
4428echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430file_magic_cmd=$lt_cv_file_magic_cmd
4431deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004432test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004433
4434
4435
4436
John Criswell47fdd832003-07-14 16:52:07 +00004437# If no C compiler was specified, use CC.
4438LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004439
John Criswell47fdd832003-07-14 16:52:07 +00004440# Allow CC to be a program name with arguments.
4441compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004442
John Criswell47fdd832003-07-14 16:52:07 +00004443# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4444if test "${enable_libtool_lock+set}" = set; then
4445 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004446
John Criswell47fdd832003-07-14 16:52:07 +00004447fi;
4448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004449
John Criswell47fdd832003-07-14 16:52:07 +00004450# Some flags need to be propagated to the compiler or linker for good
4451# libtool support.
4452case $host in
4453ia64-*-hpux*)
4454 # Find out which ABI we are using.
4455 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004461 case `/usr/bin/file conftest.$ac_objext` in
4462 *ELF-32*)
4463 HPUX_IA64_MODE="32"
4464 ;;
4465 *ELF-64*)
4466 HPUX_IA64_MODE="64"
4467 ;;
4468 esac
4469 fi
4470 rm -rf conftest*
4471 ;;
4472*-*-irix6*)
4473 # Find out which ABI we are using.
Brian Gaeke7fe1d162003-11-17 00:31:43 +00004474 echo '#line 4474 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004479 (exit $ac_status); }; then
4480 if test "$lt_cv_prog_gnu_ld" = yes; then
4481 case `/usr/bin/file conftest.$ac_objext` in
4482 *32-bit*)
4483 LD="${LD-ld} -melf32bsmip"
4484 ;;
4485 *N32*)
4486 LD="${LD-ld} -melf32bmipn32"
4487 ;;
4488 *64-bit*)
4489 LD="${LD-ld} -melf64bmip"
4490 ;;
4491 esac
4492 else
4493 case `/usr/bin/file conftest.$ac_objext` in
4494 *32-bit*)
4495 LD="${LD-ld} -32"
4496 ;;
4497 *N32*)
4498 LD="${LD-ld} -n32"
4499 ;;
4500 *64-bit*)
4501 LD="${LD-ld} -64"
4502 ;;
4503 esac
4504 fi
4505 fi
4506 rm -rf conftest*
4507 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004508
John Criswell47fdd832003-07-14 16:52:07 +00004509x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4510 # Find out which ABI we are using.
4511 echo 'int i;' > conftest.$ac_ext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; then
4517 case "`/usr/bin/file conftest.o`" in
4518 *32-bit*)
4519 case $host in
4520 x86_64-*linux*)
4521 LD="${LD-ld} -m elf_i386"
4522 ;;
4523 ppc64-*linux*)
4524 LD="${LD-ld} -m elf32ppclinux"
4525 ;;
4526 s390x-*linux*)
4527 LD="${LD-ld} -m elf_s390"
4528 ;;
4529 sparc64-*linux*)
4530 LD="${LD-ld} -m elf32_sparc"
4531 ;;
4532 esac
4533 ;;
4534 *64-bit*)
4535 case $host in
4536 x86_64-*linux*)
4537 LD="${LD-ld} -m elf_x86_64"
4538 ;;
4539 ppc*-*linux*|powerpc*-*linux*)
4540 LD="${LD-ld} -m elf64ppc"
4541 ;;
4542 s390*-*linux*)
4543 LD="${LD-ld} -m elf64_s390"
4544 ;;
4545 sparc*-*linux*)
4546 LD="${LD-ld} -m elf64_sparc"
4547 ;;
4548 esac
4549 ;;
4550 esac
4551 fi
4552 rm -rf conftest*
4553 ;;
4554
4555*-*-sco3.2v5*)
4556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4557 SAVE_CFLAGS="$CFLAGS"
4558 CFLAGS="$CFLAGS -belf"
4559 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4560echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4561if test "${lt_cv_cc_needs_belf+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 ac_ext=c
4565ac_cpp='$CPP $CPPFLAGS'
4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568ac_compiler_gnu=$ac_cv_c_compiler_gnu
4569
4570 cat >conftest.$ac_ext <<_ACEOF
4571#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004572/* confdefs.h. */
4573_ACEOF
4574cat confdefs.h >>conftest.$ac_ext
4575cat >>conftest.$ac_ext <<_ACEOF
4576/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004577
John Criswell47fdd832003-07-14 16:52:07 +00004578int
4579main ()
John Criswell7a73b802003-06-30 21:59:07 +00004580{
John Criswell7a73b802003-06-30 21:59:07 +00004581
John Criswell47fdd832003-07-14 16:52:07 +00004582 ;
4583 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004584}
John Criswell47fdd832003-07-14 16:52:07 +00004585_ACEOF
4586rm -f conftest.$ac_objext conftest$ac_exeext
4587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004588 (eval $ac_link) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004591 (exit $ac_status); } &&
4592 { ac_try='test -s conftest$ac_exeext'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; }; then
4598 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004599else
John Criswell47fdd832003-07-14 16:52:07 +00004600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004601sed 's/^/| /' conftest.$ac_ext >&5
4602
John Criswell47fdd832003-07-14 16:52:07 +00004603lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004604fi
John Criswell47fdd832003-07-14 16:52:07 +00004605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4606 ac_ext=c
4607ac_cpp='$CPP $CPPFLAGS'
4608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611
John Criswell7a73b802003-06-30 21:59:07 +00004612fi
John Criswell47fdd832003-07-14 16:52:07 +00004613echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4614echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4617 CFLAGS="$SAVE_CFLAGS"
4618 fi
4619 ;;
4620
4621esac
4622
4623need_locks="$enable_libtool_lock"
4624
John Criswell7a73b802003-06-30 21:59:07 +00004625
4626
4627echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4628echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4629if test "${ac_cv_header_stdc+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 cat >conftest.$ac_ext <<_ACEOF
4633#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004634/* confdefs.h. */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004639#include <stdlib.h>
4640#include <stdarg.h>
4641#include <string.h>
4642#include <float.h>
4643
John Criswell0c38eaf2003-09-10 15:17:25 +00004644int
4645main ()
4646{
4647
4648 ;
4649 return 0;
4650}
John Criswell7a73b802003-06-30 21:59:07 +00004651_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004655 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004664 ac_cv_header_stdc=yes
4665else
4666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004670fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004671rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004672
4673if test $ac_cv_header_stdc = yes; then
4674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4675 cat >conftest.$ac_ext <<_ACEOF
4676#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004677/* confdefs.h. */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004682#include <string.h>
4683
4684_ACEOF
4685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004686 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004687 :
4688else
4689 ac_cv_header_stdc=no
4690fi
4691rm -f conftest*
4692
4693fi
4694
4695if test $ac_cv_header_stdc = yes; then
4696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4697 cat >conftest.$ac_ext <<_ACEOF
4698#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004704#include <stdlib.h>
4705
4706_ACEOF
4707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004708 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004709 :
4710else
4711 ac_cv_header_stdc=no
4712fi
4713rm -f conftest*
4714
4715fi
4716
4717if test $ac_cv_header_stdc = yes; then
4718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719 if test "$cross_compiling" = yes; then
4720 :
4721else
4722 cat >conftest.$ac_ext <<_ACEOF
4723#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004729#include <ctype.h>
4730#if ((' ' & 0x0FF) == 0x020)
4731# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4733#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004734# define ISLOWER(c) \
4735 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004736 || ('j' <= (c) && (c) <= 'r') \
4737 || ('s' <= (c) && (c) <= 'z'))
4738# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4739#endif
4740
4741#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4742int
4743main ()
4744{
4745 int i;
4746 for (i = 0; i < 256; i++)
4747 if (XOR (islower (i), ISLOWER (i))
4748 || toupper (i) != TOUPPER (i))
4749 exit(2);
4750 exit (0);
4751}
4752_ACEOF
4753rm -f conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 :
4765else
4766 echo "$as_me: program exited with status $ac_status" >&5
4767echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004768sed 's/^/| /' conftest.$ac_ext >&5
4769
John Criswell7a73b802003-06-30 21:59:07 +00004770( exit $ac_status )
4771ac_cv_header_stdc=no
4772fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004773rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004774fi
4775fi
4776fi
4777echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4778echo "${ECHO_T}$ac_cv_header_stdc" >&6
4779if test $ac_cv_header_stdc = yes; then
4780
4781cat >>confdefs.h <<\_ACEOF
4782#define STDC_HEADERS 1
4783_ACEOF
4784
4785fi
4786
4787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4798 inttypes.h stdint.h unistd.h
4799do
4800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4801echo "$as_me:$LINENO: checking for $ac_header" >&5
4802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4803if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806 cat >conftest.$ac_ext <<_ACEOF
4807#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004813$ac_includes_default
4814
4815#include <$ac_header>
4816_ACEOF
4817rm -f conftest.$ac_objext
4818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 eval "$as_ac_Header=yes"
4830else
4831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004832sed 's/^/| /' conftest.$ac_ext >&5
4833
John Criswell7a73b802003-06-30 21:59:07 +00004834eval "$as_ac_Header=no"
4835fi
4836rm -f conftest.$ac_objext conftest.$ac_ext
4837fi
4838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4840if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841 cat >>confdefs.h <<_ACEOF
4842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843_ACEOF
4844
4845fi
4846
4847done
4848
4849
4850
4851for ac_header in dlfcn.h
4852do
4853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855 echo "$as_me:$LINENO: checking for $ac_header" >&5
4856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859fi
4860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862else
4863 # Is the header compilable?
4864echo "$as_me:$LINENO: checking $ac_header usability" >&5
4865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4866cat >conftest.$ac_ext <<_ACEOF
4867#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004873$ac_includes_default
4874#include <$ac_header>
4875_ACEOF
4876rm -f conftest.$ac_objext
4877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
4882 { ac_try='test -s conftest.$ac_objext'
4883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 (eval $ac_try) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; }; then
4888 ac_header_compiler=yes
4889else
4890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004891sed 's/^/| /' conftest.$ac_ext >&5
4892
John Criswell7a73b802003-06-30 21:59:07 +00004893ac_header_compiler=no
4894fi
4895rm -f conftest.$ac_objext conftest.$ac_ext
4896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899# Is the header present?
4900echo "$as_me:$LINENO: checking $ac_header presence" >&5
4901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4902cat >conftest.$ac_ext <<_ACEOF
4903#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004909#include <$ac_header>
4910_ACEOF
4911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004914 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev/null; then
4919 if test -s conftest.err; then
4920 ac_cpp_err=$ac_c_preproc_warn_flag
4921 else
4922 ac_cpp_err=
4923 fi
4924else
4925 ac_cpp_err=yes
4926fi
4927if test -z "$ac_cpp_err"; then
4928 ac_header_preproc=yes
4929else
4930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004931sed 's/^/| /' conftest.$ac_ext >&5
4932
John Criswell7a73b802003-06-30 21:59:07 +00004933 ac_header_preproc=no
4934fi
4935rm -f conftest.err conftest.$ac_ext
4936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939# So? What about this header?
4940case $ac_header_compiler:$ac_header_preproc in
4941 yes:no )
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4946 (
4947 cat <<\_ASBOX
4948## ------------------------------------ ##
4949## Report this to bug-autoconf@gnu.org. ##
4950## ------------------------------------ ##
4951_ASBOX
4952 ) |
4953 sed "s/^/$as_me: WARNING: /" >&2
4954 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004955 no:yes )
4956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4962 (
4963 cat <<\_ASBOX
4964## ------------------------------------ ##
4965## Report this to bug-autoconf@gnu.org. ##
4966## ------------------------------------ ##
4967_ASBOX
4968 ) |
4969 sed "s/^/$as_me: WARNING: /" >&2
4970 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004971esac
4972echo "$as_me:$LINENO: checking for $ac_header" >&5
4973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4974if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977 eval "$as_ac_Header=$ac_header_preproc"
4978fi
4979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4981
4982fi
4983if test `eval echo '${'$as_ac_Header'}'` = yes; then
4984 cat >>confdefs.h <<_ACEOF
4985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986_ACEOF
4987
4988fi
4989
4990done
4991
John Criswell47fdd832003-07-14 16:52:07 +00004992ac_ext=cc
4993ac_cpp='$CXXCPP $CPPFLAGS'
4994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4998echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4999if test -z "$CXXCPP"; then
5000 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
John Criswell47fdd832003-07-14 16:52:07 +00005003 # Double quotes because CXXCPP needs to be expanded
5004 for CXXCPP in "$CXX -E" "/lib/cpp"
5005 do
5006 ac_preproc_ok=false
5007for ac_cxx_preproc_warn_flag in '' yes
5008do
5009 # Use a header file that comes with gcc, so configuring glibc
5010 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005013 # On the NeXT, cc -E runs the code through the compiler's parser,
5014 # not just through cpp. "Syntax error" is here to catch this case.
5015 cat >conftest.$ac_ext <<_ACEOF
5016#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005017/* confdefs.h. */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h. */
5022#ifdef __STDC__
5023# include <limits.h>
5024#else
5025# include <assert.h>
5026#endif
John Criswell47fdd832003-07-14 16:52:07 +00005027 Syntax error
5028_ACEOF
5029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5031 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005032 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null; then
5037 if test -s conftest.err; then
5038 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00005039 else
John Criswell47fdd832003-07-14 16:52:07 +00005040 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00005041 fi
John Criswell47fdd832003-07-14 16:52:07 +00005042else
5043 ac_cpp_err=yes
5044fi
5045if test -z "$ac_cpp_err"; then
5046 :
5047else
5048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005049sed 's/^/| /' conftest.$ac_ext >&5
5050
John Criswell47fdd832003-07-14 16:52:07 +00005051 # Broken: fails on valid input.
5052continue
5053fi
5054rm -f conftest.err conftest.$ac_ext
5055
5056 # OK, works on sane cases. Now check whether non-existent headers
5057 # can be detected and how.
5058 cat >conftest.$ac_ext <<_ACEOF
5059#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005065#include <ac_nonexistent.h>
5066_ACEOF
5067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 else
5078 ac_cpp_err=
5079 fi
5080else
5081 ac_cpp_err=yes
5082fi
5083if test -z "$ac_cpp_err"; then
5084 # Broken: success on invalid input.
5085continue
5086else
5087 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005088sed 's/^/| /' conftest.$ac_ext >&5
5089
John Criswell47fdd832003-07-14 16:52:07 +00005090 # Passes both tests.
5091ac_preproc_ok=:
5092break
5093fi
5094rm -f conftest.err conftest.$ac_ext
5095
5096done
5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098rm -f conftest.err conftest.$ac_ext
5099if $ac_preproc_ok; then
5100 break
John Criswell7a73b802003-06-30 21:59:07 +00005101fi
5102
John Criswell47fdd832003-07-14 16:52:07 +00005103 done
5104 ac_cv_prog_CXXCPP=$CXXCPP
5105
5106fi
5107 CXXCPP=$ac_cv_prog_CXXCPP
5108else
5109 ac_cv_prog_CXXCPP=$CXXCPP
5110fi
5111echo "$as_me:$LINENO: result: $CXXCPP" >&5
5112echo "${ECHO_T}$CXXCPP" >&6
5113ac_preproc_ok=false
5114for ac_cxx_preproc_warn_flag in '' yes
5115do
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat >conftest.$ac_ext <<_ACEOF
5123#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#ifdef __STDC__
5130# include <limits.h>
5131#else
5132# include <assert.h>
5133#endif
John Criswell47fdd832003-07-14 16:52:07 +00005134 Syntax error
5135_ACEOF
5136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5138 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005139 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } >/dev/null; then
5144 if test -s conftest.err; then
5145 ac_cpp_err=$ac_cxx_preproc_warn_flag
5146 else
5147 ac_cpp_err=
5148 fi
5149else
5150 ac_cpp_err=yes
5151fi
5152if test -z "$ac_cpp_err"; then
5153 :
5154else
5155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005156sed 's/^/| /' conftest.$ac_ext >&5
5157
John Criswell47fdd832003-07-14 16:52:07 +00005158 # Broken: fails on valid input.
5159continue
5160fi
5161rm -f conftest.err conftest.$ac_ext
5162
5163 # OK, works on sane cases. Now check whether non-existent headers
5164 # can be detected and how.
5165 cat >conftest.$ac_ext <<_ACEOF
5166#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005172#include <ac_nonexistent.h>
5173_ACEOF
5174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5176 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005177 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } >/dev/null; then
5182 if test -s conftest.err; then
5183 ac_cpp_err=$ac_cxx_preproc_warn_flag
5184 else
5185 ac_cpp_err=
5186 fi
5187else
5188 ac_cpp_err=yes
5189fi
5190if test -z "$ac_cpp_err"; then
5191 # Broken: success on invalid input.
5192continue
5193else
5194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005195sed 's/^/| /' conftest.$ac_ext >&5
5196
John Criswell47fdd832003-07-14 16:52:07 +00005197 # Passes both tests.
5198ac_preproc_ok=:
5199break
5200fi
5201rm -f conftest.err conftest.$ac_ext
5202
5203done
5204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205rm -f conftest.err conftest.$ac_ext
5206if $ac_preproc_ok; then
5207 :
5208else
John Criswell0c38eaf2003-09-10 15:17:25 +00005209 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5210See \`config.log' for more details." >&5
5211echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5212See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005213 { (exit 1); exit 1; }; }
5214fi
5215
5216ac_ext=cc
5217ac_cpp='$CXXCPP $CPPFLAGS'
5218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5221
5222
5223ac_ext=f
5224ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5225ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5227if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005228 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 +00005229 do
5230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_F77+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 if test -n "$F77"; then
5238 ac_cv_prog_F77="$F77" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253
5254fi
5255fi
5256F77=$ac_cv_prog_F77
5257if test -n "$F77"; then
5258 echo "$as_me:$LINENO: result: $F77" >&5
5259echo "${ECHO_T}$F77" >&6
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265 test -n "$F77" && break
5266 done
5267fi
5268if test -z "$F77"; then
5269 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005270 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 +00005271do
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273set dummy $ac_prog; ac_word=$2
5274echo "$as_me:$LINENO: checking for $ac_word" >&5
5275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278else
5279 if test -n "$ac_ct_F77"; then
5280 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5281else
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_ac_ct_F77="$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293done
5294done
5295
5296fi
5297fi
5298ac_ct_F77=$ac_cv_prog_ac_ct_F77
5299if test -n "$ac_ct_F77"; then
5300 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5301echo "${ECHO_T}$ac_ct_F77" >&6
5302else
5303 echo "$as_me:$LINENO: result: no" >&5
5304echo "${ECHO_T}no" >&6
5305fi
5306
5307 test -n "$ac_ct_F77" && break
5308done
5309
5310 F77=$ac_ct_F77
5311fi
5312
5313
5314# Provide some information about the compiler.
Brian Gaeke7fe1d162003-11-17 00:31:43 +00005315echo "$as_me:5315:" \
John Criswell47fdd832003-07-14 16:52:07 +00005316 "checking for Fortran 77 compiler version" >&5
5317ac_compiler=`set X $ac_compile; echo $2`
5318{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5319 (eval $ac_compiler --version </dev/null >&5) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }
5323{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5324 (eval $ac_compiler -v </dev/null >&5) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }
5328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5329 (eval $ac_compiler -V </dev/null >&5) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5333
5334# If we don't use `.F' as extension, the preprocessor is not run on the
5335# input file.
5336ac_save_ext=$ac_ext
5337ac_ext=F
5338echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5339echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5340if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 program main
5345#ifndef __GNUC__
5346 choke me
5347#endif
5348
5349 end
5350_ACEOF
5351rm -f conftest.$ac_objext
5352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -s conftest.$ac_objext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 ac_compiler_gnu=yes
5364else
5365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005366sed 's/^/| /' conftest.$ac_ext >&5
5367
John Criswell47fdd832003-07-14 16:52:07 +00005368ac_compiler_gnu=no
5369fi
5370rm -f conftest.$ac_objext conftest.$ac_ext
5371ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5372
5373fi
5374echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5375echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5376ac_ext=$ac_save_ext
5377G77=`test $ac_compiler_gnu = yes && echo yes`
5378ac_test_FFLAGS=${FFLAGS+set}
5379ac_save_FFLAGS=$FFLAGS
5380FFLAGS=
5381echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5382echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5383if test "${ac_cv_prog_f77_g+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 FFLAGS=-g
5387cat >conftest.$ac_ext <<_ACEOF
5388 program main
5389
5390 end
5391_ACEOF
5392rm -f conftest.$ac_objext
5393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -s conftest.$ac_objext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_prog_f77_g=yes
5405else
5406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005407sed 's/^/| /' conftest.$ac_ext >&5
5408
John Criswell47fdd832003-07-14 16:52:07 +00005409ac_cv_prog_f77_g=no
5410fi
5411rm -f conftest.$ac_objext conftest.$ac_ext
5412
5413fi
5414echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5415echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5416if test "$ac_test_FFLAGS" = set; then
5417 FFLAGS=$ac_save_FFLAGS
5418elif test $ac_cv_prog_f77_g = yes; then
5419 if test "$G77" = yes; then
5420 FFLAGS="-g -O2"
5421 else
5422 FFLAGS="-g"
5423 fi
5424else
5425 if test "$G77" = yes; then
5426 FFLAGS="-O2"
5427 else
5428 FFLAGS=
5429 fi
5430fi
5431ac_ext=c
5432ac_cpp='$CPP $CPPFLAGS'
5433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437
5438
5439# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5440
5441# find the maximum length of command line arguments
5442echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5443echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5444if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 i=0
5448 testring="ABCD"
5449
5450 case $build_os in
5451 msdosdjgpp*)
5452 # On DJGPP, this test can blow up pretty badly due to problems in libc
5453 # (any single argument exceeding 2000 bytes causes a buffer overrun
5454 # during glob expansion). Even if it were fixed, the result of this
5455 # check would be larger than it should be.
5456 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5457 ;;
5458
5459 gnu*)
5460 # Under GNU Hurd, this test is not required because there is
5461 # no limit to the length of command line arguments.
5462 # Libtool will interpret -1 as no limit whatsoever
5463 lt_cv_sys_max_cmd_len=-1;
5464 ;;
5465
5466 cygwin* | mingw*)
5467 # On Win9x/ME, this test blows up -- it succeeds, but takes
5468 # about 5 minutes as the teststring grows exponentially.
5469 # Worse, since 9x/ME are not pre-emptively multitasking,
5470 # you end up with a "frozen" computer, even though with patience
5471 # the test eventually succeeds (with a max line length of 256k).
5472 # Instead, let's just punt: use the minimum linelength reported by
5473 # all of the supported platforms: 8192 (on NT/2K/XP).
5474 lt_cv_sys_max_cmd_len=8192;
5475 ;;
5476
5477 *)
5478 # If test is not a shell built-in, we'll probably end up computing a
5479 # maximum length that is only half of the actual maximum length, but
5480 # we can't tell.
5481 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5482 = "XX$testring") >/dev/null 2>&1 &&
5483 new_result=`expr "X$testring" : ".*" 2>&1` &&
5484 lt_cv_sys_max_cmd_len=$new_result &&
5485 test $i != 17 # 1/2 MB should be enough
5486 do
5487 i=`expr $i + 1`
5488 testring=$testring$testring
5489 done
5490 testring=
5491 # Add a significant safety factor because C++ compilers can tack on massive
5492 # amounts of additional arguments before passing them to the linker.
5493 # It appears as though 1/2 is a usable value.
5494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5495 ;;
5496 esac
5497
5498fi
5499
5500if test -n $lt_cv_sys_max_cmd_len ; then
5501 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5502echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5503else
5504 echo "$as_me:$LINENO: result: none" >&5
5505echo "${ECHO_T}none" >&6
5506fi
5507
5508
5509
5510
5511# Check for command to grab the raw symbol name followed by C symbol from nm.
5512echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5513echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5514if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516else
5517
5518# These are sane defaults that work on at least a few old systems.
5519# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5520
5521# Character class describing NM global symbol codes.
5522symcode='[BCDEGRST]'
5523
5524# Regexp to match symbols that can be accessed directly from C.
5525sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5526
5527# Transform the above into a raw symbol and a C symbol.
5528symxfrm='\1 \2\3 \3'
5529
5530# Transform an extracted symbol line into a proper C declaration
5531lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5532
5533# Transform an extracted symbol line into symbol name and symbol address
5534lt_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'"
5535
5536# Define system-specific variables.
5537case $host_os in
5538aix*)
5539 symcode='[BCDT]'
5540 ;;
5541cygwin* | mingw* | pw32*)
5542 symcode='[ABCDGISTW]'
5543 ;;
5544hpux*) # Its linker distinguishes data from code symbols
5545 if test "$host_cpu" = ia64; then
5546 symcode='[ABCDEGRST]'
5547 fi
5548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5549 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'"
5550 ;;
5551irix* | nonstopux*)
5552 symcode='[BCDEGRST]'
5553 ;;
5554osf*)
5555 symcode='[BCDEGQRST]'
5556 ;;
5557solaris* | sysv5*)
5558 symcode='[BDT]'
5559 ;;
5560sysv4)
5561 symcode='[DFNSTU]'
5562 ;;
5563esac
5564
5565# Handle CRLF in mingw tool chain
5566opt_cr=
5567case $build_os in
5568mingw*)
5569 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5570 ;;
5571esac
5572
5573# If we're using GNU nm, then use its standard symbol codes.
5574case `$NM -V 2>&1` in
5575*GNU* | *'with BFD'*)
5576 symcode='[ABCDGISTW]' ;;
5577esac
5578
5579# Try without a prefix undercore, then with it.
5580for ac_symprfx in "" "_"; do
5581
5582 # Write the raw and C identifiers.
5583 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5584
5585 # Check to see that the pipe works correctly.
5586 pipe_works=no
5587
5588 rm -f conftest*
5589 cat > conftest.$ac_ext <<EOF
5590#ifdef __cplusplus
5591extern "C" {
5592#endif
5593char nm_test_var;
5594void nm_test_func(){}
5595#ifdef __cplusplus
5596}
5597#endif
5598int main(){nm_test_var='a';nm_test_func();return(0);}
5599EOF
5600
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; then
5606 # Now try to grab the symbols.
5607 nlist=conftest.nm
5608 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5609 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && test -s "$nlist"; then
5613 # Try sorting and uniquifying the output.
5614 if sort "$nlist" | uniq > "$nlist"T; then
5615 mv -f "$nlist"T "$nlist"
5616 else
5617 rm -f "$nlist"T
5618 fi
5619
5620 # Make sure that we snagged all the symbols we need.
5621 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5622 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5623 cat <<EOF > conftest.$ac_ext
5624#ifdef __cplusplus
5625extern "C" {
5626#endif
5627
5628EOF
5629 # Now generate the symbol file.
5630 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5631
5632 cat <<EOF >> conftest.$ac_ext
5633#if defined (__STDC__) && __STDC__
5634# define lt_ptr_t void *
5635#else
5636# define lt_ptr_t char *
5637# define const
5638#endif
5639
5640/* The mapping between symbol names and symbols. */
5641const struct {
5642 const char *name;
5643 lt_ptr_t address;
5644}
5645lt_preloaded_symbols[] =
5646{
5647EOF
5648 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5649 cat <<\EOF >> conftest.$ac_ext
5650 {0, (lt_ptr_t) 0}
5651};
5652
5653#ifdef __cplusplus
5654}
5655#endif
5656EOF
5657 # Now try linking the two files.
5658 mv conftest.$ac_objext conftstm.$ac_objext
5659 lt_save_LIBS="$LIBS"
5660 lt_save_CFLAGS="$CFLAGS"
5661 LIBS="conftstm.$ac_objext"
5662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5668 pipe_works=yes
5669 fi
5670 LIBS="$lt_save_LIBS"
5671 CFLAGS="$lt_save_CFLAGS"
5672 else
5673 echo "cannot find nm_test_func in $nlist" >&5
5674 fi
5675 else
5676 echo "cannot find nm_test_var in $nlist" >&5
5677 fi
5678 else
5679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5680 fi
5681 else
5682 echo "$progname: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 fi
5685 rm -f conftest* conftst*
5686
5687 # Do not use the global_symbol_pipe unless it works.
5688 if test "$pipe_works" = yes; then
5689 break
5690 else
5691 lt_cv_sys_global_symbol_pipe=
5692 fi
5693done
5694
5695fi
5696
5697if test -z "$lt_cv_sys_global_symbol_pipe"; then
5698 lt_cv_sys_global_symbol_to_cdecl=
5699fi
5700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5701 echo "$as_me:$LINENO: result: failed" >&5
5702echo "${ECHO_T}failed" >&6
5703else
5704 echo "$as_me:$LINENO: result: ok" >&5
5705echo "${ECHO_T}ok" >&6
5706fi
5707
5708echo "$as_me:$LINENO: checking for objdir" >&5
5709echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5710if test "${lt_cv_objdir+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713 rm -f .libs 2>/dev/null
5714mkdir .libs 2>/dev/null
5715if test -d .libs; then
5716 lt_cv_objdir=.libs
5717else
5718 # MS-DOS does not allow filenames that begin with a dot.
5719 lt_cv_objdir=_libs
5720fi
5721rmdir .libs 2>/dev/null
5722fi
5723echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5724echo "${ECHO_T}$lt_cv_objdir" >&6
5725objdir=$lt_cv_objdir
5726
5727
5728
5729
5730
5731case $host_os in
5732aix3*)
5733 # AIX sometimes has problems with the GCC collect2 program. For some
5734 # reason, if we set the COLLECT_NAMES environment variable, the problems
5735 # vanish in a puff of smoke.
5736 if test "X${COLLECT_NAMES+set}" != Xset; then
5737 COLLECT_NAMES=
5738 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005739 fi
5740 ;;
5741esac
5742
John Criswell47fdd832003-07-14 16:52:07 +00005743# Sed substitution that helps us do robust quoting. It backslashifies
5744# metacharacters that are still active within double-quoted strings.
5745Xsed='sed -e s/^X//'
5746sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5747
5748# Same as above, but do not quote variable references.
5749double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5750
5751# Sed substitution to delay expansion of an escaped shell variable in a
5752# double_quote_subst'ed string.
5753delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5754
5755# Sed substitution to avoid accidental globbing in evaled expressions
5756no_glob_subst='s/\*/\\\*/g'
5757
5758# Constants:
5759rm="rm -f"
5760
5761# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005762default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005763can_build_shared=yes
5764
5765# All known linkers require a `.a' archive for static linking (except M$VC,
5766# which needs '.lib').
5767libext=a
5768ltmain="$ac_aux_dir/ltmain.sh"
5769ofile="$default_ofile"
5770with_gnu_ld="$lt_cv_prog_gnu_ld"
5771
5772if test -n "$ac_tool_prefix"; then
5773 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5774set dummy ${ac_tool_prefix}ar; ac_word=$2
5775echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777if test "${ac_cv_prog_AR+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 if test -n "$AR"; then
5781 ac_cv_prog_AR="$AR" # Let the user override the test.
5782else
5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_AR="${ac_tool_prefix}ar"
5791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794done
5795done
5796
5797fi
5798fi
5799AR=$ac_cv_prog_AR
5800if test -n "$AR"; then
5801 echo "$as_me:$LINENO: result: $AR" >&5
5802echo "${ECHO_T}$AR" >&6
5803else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807
5808fi
5809if test -z "$ac_cv_prog_AR"; then
5810 ac_ct_AR=$AR
5811 # Extract the first word of "ar", so it can be a program name with args.
5812set dummy ar; ac_word=$2
5813echo "$as_me:$LINENO: checking for $ac_word" >&5
5814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5815if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 if test -n "$ac_ct_AR"; then
5819 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5820else
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_ac_ct_AR="ar"
5829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832done
5833done
5834
5835 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5836fi
5837fi
5838ac_ct_AR=$ac_cv_prog_ac_ct_AR
5839if test -n "$ac_ct_AR"; then
5840 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5841echo "${ECHO_T}$ac_ct_AR" >&6
5842else
5843 echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845fi
5846
5847 AR=$ac_ct_AR
5848else
5849 AR="$ac_cv_prog_AR"
5850fi
5851
John Criswell7a73b802003-06-30 21:59:07 +00005852if test -n "$ac_tool_prefix"; then
5853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5854set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5855echo "$as_me:$LINENO: checking for $ac_word" >&5
5856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5857if test "${ac_cv_prog_RANLIB+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860 if test -n "$RANLIB"; then
5861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875done
5876
5877fi
5878fi
5879RANLIB=$ac_cv_prog_RANLIB
5880if test -n "$RANLIB"; then
5881 echo "$as_me:$LINENO: result: $RANLIB" >&5
5882echo "${ECHO_T}$RANLIB" >&6
5883else
5884 echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886fi
5887
5888fi
5889if test -z "$ac_cv_prog_RANLIB"; then
5890 ac_ct_RANLIB=$RANLIB
5891 # Extract the first word of "ranlib", so it can be a program name with args.
5892set dummy ranlib; ac_word=$2
5893echo "$as_me:$LINENO: checking for $ac_word" >&5
5894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897else
5898 if test -n "$ac_ct_RANLIB"; then
5899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5900else
5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902for as_dir in $PATH
5903do
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_ac_ct_RANLIB="ranlib"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913done
5914
5915 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5916fi
5917fi
5918ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5919if test -n "$ac_ct_RANLIB"; then
5920 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5921echo "${ECHO_T}$ac_ct_RANLIB" >&6
5922else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925fi
5926
5927 RANLIB=$ac_ct_RANLIB
5928else
5929 RANLIB="$ac_cv_prog_RANLIB"
5930fi
5931
5932if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5934set dummy ${ac_tool_prefix}strip; ac_word=$2
5935echo "$as_me:$LINENO: checking for $ac_word" >&5
5936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937if test "${ac_cv_prog_STRIP+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940 if test -n "$STRIP"; then
5941 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955done
5956
5957fi
5958fi
5959STRIP=$ac_cv_prog_STRIP
5960if test -n "$STRIP"; then
5961 echo "$as_me:$LINENO: result: $STRIP" >&5
5962echo "${ECHO_T}$STRIP" >&6
5963else
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966fi
5967
5968fi
5969if test -z "$ac_cv_prog_STRIP"; then
5970 ac_ct_STRIP=$STRIP
5971 # Extract the first word of "strip", so it can be a program name with args.
5972set dummy strip; ac_word=$2
5973echo "$as_me:$LINENO: checking for $ac_word" >&5
5974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978 if test -n "$ac_ct_STRIP"; then
5979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5980else
5981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_ac_ct_STRIP="strip"
5989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 break 2
5991 fi
5992done
5993done
5994
5995 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5996fi
5997fi
5998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5999if test -n "$ac_ct_STRIP"; then
6000 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6001echo "${ECHO_T}$ac_ct_STRIP" >&6
6002else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005fi
6006
6007 STRIP=$ac_ct_STRIP
6008else
6009 STRIP="$ac_cv_prog_STRIP"
6010fi
6011
6012
John Criswell7a73b802003-06-30 21:59:07 +00006013old_CC="$CC"
6014old_CFLAGS="$CFLAGS"
6015
6016# Set sane defaults for various variables
6017test -z "$AR" && AR=ar
6018test -z "$AR_FLAGS" && AR_FLAGS=cru
6019test -z "$AS" && AS=as
6020test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00006021test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00006022test -z "$DLLTOOL" && DLLTOOL=dlltool
6023test -z "$LD" && LD=ld
6024test -z "$LN_S" && LN_S="ln -s"
6025test -z "$MAGIC_CMD" && MAGIC_CMD=file
6026test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00006027test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00006028test -z "$OBJDUMP" && OBJDUMP=objdump
6029test -z "$RANLIB" && RANLIB=:
6030test -z "$STRIP" && STRIP=:
6031test -z "$ac_objext" && ac_objext=o
6032
John Criswell7a73b802003-06-30 21:59:07 +00006033# Determine commands to create old-style static archives.
6034old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6035old_postinstall_cmds='chmod 644 $oldlib'
6036old_postuninstall_cmds=
6037
6038if test -n "$RANLIB"; then
6039 case $host_os in
6040 openbsd*)
6041 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6042 ;;
6043 *)
6044 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6045 ;;
6046 esac
6047 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6048fi
6049
John Criswell47fdd832003-07-14 16:52:07 +00006050# Only perform the check for file, if the check method requires it
6051case $deplibs_check_method in
6052file_magic*)
6053 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6054 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6055echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6056if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006058else
John Criswell47fdd832003-07-14 16:52:07 +00006059 case $MAGIC_CMD in
6060[\\/*] | ?:[\\/]*)
6061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6062 ;;
6063*)
6064 lt_save_MAGIC_CMD="$MAGIC_CMD"
6065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6067 for ac_dir in $ac_dummy; do
6068 IFS="$lt_save_ifs"
6069 test -z "$ac_dir" && ac_dir=.
6070 if test -f $ac_dir/${ac_tool_prefix}file; then
6071 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6072 if test -n "$file_magic_test_file"; then
6073 case $deplibs_check_method in
6074 "file_magic "*)
6075 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6078 $EGREP "$file_magic_regex" > /dev/null; then
6079 :
6080 else
6081 cat <<EOF 1>&2
6082
6083*** Warning: the command libtool uses to detect shared libraries,
6084*** $file_magic_cmd, produces output that libtool cannot recognize.
6085*** The result is that libtool may fail to recognize shared libraries
6086*** as such. This will affect the creation of libtool libraries that
6087*** depend on shared libraries, but programs linked with such libtool
6088*** libraries will work regardless of this problem. Nevertheless, you
6089*** may want to report the problem to your system manager and/or to
6090*** bug-libtool@gnu.org
6091
6092EOF
6093 fi ;;
6094 esac
6095 fi
6096 break
6097 fi
6098 done
6099 IFS="$lt_save_ifs"
6100 MAGIC_CMD="$lt_save_MAGIC_CMD"
6101 ;;
6102esac
John Criswell7a73b802003-06-30 21:59:07 +00006103fi
John Criswell7a73b802003-06-30 21:59:07 +00006104
John Criswell47fdd832003-07-14 16:52:07 +00006105MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6106if test -n "$MAGIC_CMD"; then
6107 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6108echo "${ECHO_T}$MAGIC_CMD" >&6
6109else
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
6112fi
John Criswell7a73b802003-06-30 21:59:07 +00006113
John Criswell47fdd832003-07-14 16:52:07 +00006114if test -z "$lt_cv_path_MAGIC_CMD"; then
6115 if test -n "$ac_tool_prefix"; then
6116 echo "$as_me:$LINENO: checking for file" >&5
6117echo $ECHO_N "checking for file... $ECHO_C" >&6
6118if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121 case $MAGIC_CMD in
6122[\\/*] | ?:[\\/]*)
6123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6124 ;;
6125*)
6126 lt_save_MAGIC_CMD="$MAGIC_CMD"
6127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6129 for ac_dir in $ac_dummy; do
6130 IFS="$lt_save_ifs"
6131 test -z "$ac_dir" && ac_dir=.
6132 if test -f $ac_dir/file; then
6133 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6134 if test -n "$file_magic_test_file"; then
6135 case $deplibs_check_method in
6136 "file_magic "*)
6137 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6140 $EGREP "$file_magic_regex" > /dev/null; then
6141 :
6142 else
6143 cat <<EOF 1>&2
6144
6145*** Warning: the command libtool uses to detect shared libraries,
6146*** $file_magic_cmd, produces output that libtool cannot recognize.
6147*** The result is that libtool may fail to recognize shared libraries
6148*** as such. This will affect the creation of libtool libraries that
6149*** depend on shared libraries, but programs linked with such libtool
6150*** libraries will work regardless of this problem. Nevertheless, you
6151*** may want to report the problem to your system manager and/or to
6152*** bug-libtool@gnu.org
6153
6154EOF
6155 fi ;;
6156 esac
6157 fi
6158 break
6159 fi
6160 done
6161 IFS="$lt_save_ifs"
6162 MAGIC_CMD="$lt_save_MAGIC_CMD"
6163 ;;
6164esac
6165fi
6166
6167MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6168if test -n "$MAGIC_CMD"; then
6169 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6170echo "${ECHO_T}$MAGIC_CMD" >&6
6171else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174fi
6175
6176 else
6177 MAGIC_CMD=:
6178 fi
6179fi
6180
6181 fi
6182 ;;
6183esac
6184
6185enable_dlopen=no
6186enable_win32_dll=no
6187
6188# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6189if test "${enable_libtool_lock+set}" = set; then
6190 enableval="$enable_libtool_lock"
6191
6192fi;
6193test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6194
John Criswell7a73b802003-06-30 21:59:07 +00006195
6196# Check whether --with-pic or --without-pic was given.
6197if test "${with_pic+set}" = set; then
6198 withval="$with_pic"
6199 pic_mode="$withval"
6200else
6201 pic_mode=default
6202fi;
6203test -z "$pic_mode" && pic_mode=default
6204
John Criswell47fdd832003-07-14 16:52:07 +00006205# Use C for the default configuration in the libtool script
6206tagname=
6207lt_save_CC="$CC"
6208ac_ext=c
6209ac_cpp='$CPP $CPPFLAGS'
6210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214
6215# Source file extension for C test sources.
6216ac_ext=c
6217
6218# Object file extension for compiled C test sources.
6219objext=o
6220objext=$objext
6221
6222# Code to be used in simple compile tests
6223lt_simple_compile_test_code="int some_variable = 0;\n"
6224
6225# Code to be used in simple link tests
6226lt_simple_link_test_code='int main(){return(0);}\n'
6227
6228
6229# If no C compiler was specified, use CC.
6230LTCC=${LTCC-"$CC"}
6231
6232# Allow CC to be a program name with arguments.
6233compiler=$CC
6234
6235
6236#
6237# Check for any special shared library compilation flags.
6238#
6239lt_prog_cc_shlib=
6240if test "$GCC" = no; then
6241 case $host_os in
6242 sco3.2v5*)
6243 lt_prog_cc_shlib='-belf'
6244 ;;
6245 esac
6246fi
6247if test -n "$lt_prog_cc_shlib"; then
6248 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6249echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6250 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6251 else
6252 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6253echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6254 lt_cv_prog_cc_can_build_shared=no
6255 fi
6256fi
6257
6258
6259#
6260# Check to make sure the static flag actually works.
6261#
6262echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6263echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6264if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
John Criswell47fdd832003-07-14 16:52:07 +00006267 lt_prog_compiler_static_works=no
6268 save_LDFLAGS="$LDFLAGS"
6269 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6270 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6272 # The compiler can only warn and ignore the option if not recognized
6273 # So say no if there are warnings
6274 if test -s conftest.err; then
6275 # Append any errors to the config.log.
6276 cat conftest.err 1>&5
6277 else
6278 lt_prog_compiler_static_works=yes
6279 fi
6280 fi
6281 $rm conftest*
6282 LDFLAGS="$save_LDFLAGS"
6283
6284fi
6285echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6286echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6287
6288if test x"$lt_prog_compiler_static_works" = xyes; then
6289 :
6290else
6291 lt_prog_compiler_static=
6292fi
6293
6294
6295
6296## CAVEAT EMPTOR:
6297## There is no encapsulation within the following macros, do not change
6298## the running order or otherwise move them around unless you know exactly
6299## what you are doing...
6300
6301lt_prog_compiler_no_builtin_flag=
6302
6303if test "$GCC" = yes; then
6304 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6305
6306 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6307echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6308if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311 lt_cv_prog_compiler_rtti_exceptions=no
6312 ac_outfile=conftest.$ac_objext
6313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6314 lt_compiler_flag="-fno-rtti -fno-exceptions"
6315 # Insert the option either (1) after the last *FLAGS variable, or
6316 # (2) before a word containing "conftest.", or (3) at the end.
6317 # Note that $ac_compile itself does not contain backslashes and begins
6318 # with a dollar sign (not a hyphen), so the echo should work correctly.
6319 # The option is referenced via a variable to avoid confusing sed.
6320 lt_compile=`echo "$ac_compile" | $SED \
6321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6323 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006324 (eval echo "\"\$as_me:6324: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006325 (eval "$lt_compile" 2>conftest.err)
6326 ac_status=$?
6327 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006328 echo "$as_me:6328: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006329 if (exit $ac_status) && test -s "$ac_outfile"; then
6330 # The compiler can only warn and ignore the option if not recognized
6331 # So say no if there are warnings
6332 if test ! -s conftest.err; then
6333 lt_cv_prog_compiler_rtti_exceptions=yes
6334 fi
6335 fi
6336 $rm conftest*
6337
6338fi
6339echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6340echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6341
6342if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6343 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6344else
6345 :
6346fi
6347
6348fi
6349
6350lt_prog_compiler_wl=
6351lt_prog_compiler_pic=
6352lt_prog_compiler_static=
6353
6354echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006356
6357 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_wl='-Wl,'
6359 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006360
6361 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006362 aix*)
6363 # All AIX code is PIC.
6364 if test "$host_cpu" = ia64; then
6365 # AIX 5 now supports IA64 processor
6366 lt_prog_compiler_static='-Bstatic'
6367 fi
John Criswell7a73b802003-06-30 21:59:07 +00006368 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006369
John Criswell7a73b802003-06-30 21:59:07 +00006370 amigaos*)
6371 # FIXME: we need at least 68020 code to build shared libraries, but
6372 # adding the `-m68020' flag to GCC prevents building anything better,
6373 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006374 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006375 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006376
6377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006378 # PIC is the default for these OSes.
6379 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006380
6381 mingw* | pw32* | os2*)
6382 # This hack is so that the source file can tell whether it is being
6383 # built for inclusion in a dll (and should export symbols for example).
6384 lt_prog_compiler_pic='-DDLL_EXPORT'
6385 ;;
6386
John Criswell7a73b802003-06-30 21:59:07 +00006387 darwin* | rhapsody*)
6388 # PIC is the default on this platform
6389 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006390 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006391 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006392
6393 msdosdjgpp*)
6394 # Just because we use GCC doesn't mean we suddenly get shared libraries
6395 # on systems that don't support them.
6396 lt_prog_compiler_can_build_shared=no
6397 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006398 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006399
John Criswell7a73b802003-06-30 21:59:07 +00006400 sysv4*MP*)
6401 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006402 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006403 fi
6404 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006405
6406 hpux*)
6407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6408 # not for PA HP-UX.
6409 case "$host_cpu" in
6410 hppa*64*|ia64*)
6411 # +Z the default
6412 ;;
6413 *)
6414 lt_prog_compiler_pic='-fPIC'
6415 ;;
6416 esac
6417 ;;
6418
John Criswell7a73b802003-06-30 21:59:07 +00006419 *)
John Criswell47fdd832003-07-14 16:52:07 +00006420 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422 esac
6423 else
John Criswell47fdd832003-07-14 16:52:07 +00006424 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006425 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006426 aix*)
6427 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006428 if test "$host_cpu" = ia64; then
6429 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006431 else
John Criswell47fdd832003-07-14 16:52:07 +00006432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006433 fi
6434 ;;
6435
John Criswell47fdd832003-07-14 16:52:07 +00006436 mingw* | pw32* | os2*)
6437 # This hack is so that the source file can tell whether it is being
6438 # built for inclusion in a dll (and should export symbols for example).
6439 lt_prog_compiler_pic='-DDLL_EXPORT'
6440 ;;
6441
John Criswell7a73b802003-06-30 21:59:07 +00006442 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006443 lt_prog_compiler_wl='-Wl,'
6444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6445 # not for PA HP-UX.
6446 case "$host_cpu" in
6447 hppa*64*|ia64*)
6448 # +Z the default
6449 ;;
6450 *)
6451 lt_prog_compiler_pic='+Z'
6452 ;;
6453 esac
6454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6455 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006456 ;;
6457
John Criswell47fdd832003-07-14 16:52:07 +00006458 irix5* | irix6* | nonstopux*)
6459 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006460 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006461 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006462 ;;
6463
6464 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006465 lt_prog_compiler_pic='-KPIC'
6466 lt_prog_compiler_static='-Bstatic'
6467 ;;
6468
6469 linux*)
6470 case $CC in
6471 icc|ecc)
6472 lt_prog_compiler_wl='-Wl,'
6473 lt_prog_compiler_pic='-KPIC'
6474 lt_prog_compiler_static='-static'
6475 ;;
6476 ccc)
6477 lt_prog_compiler_wl='-Wl,'
6478 # All Alpha code is PIC.
6479 lt_prog_compiler_static='-non_shared'
6480 ;;
6481 esac
John Criswell7a73b802003-06-30 21:59:07 +00006482 ;;
6483
6484 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006485 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006486 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006487 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006488 ;;
6489
6490 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006491 lt_prog_compiler_pic='-Kpic'
6492 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006493 ;;
6494
6495 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006496 lt_prog_compiler_wl='-Wl,'
6497 lt_prog_compiler_pic='-KPIC'
6498 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006499 ;;
6500
6501 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006502 lt_prog_compiler_wl='-Qoption ld '
6503 lt_prog_compiler_pic='-PIC'
6504 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006505 ;;
6506
6507 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006508 lt_prog_compiler_wl='-Wl,'
6509 lt_prog_compiler_pic='-KPIC'
6510 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006511 ;;
6512
6513 sysv4*MP*)
6514 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006515 lt_prog_compiler_pic='-Kconform_pic'
6516 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006517 fi
6518 ;;
6519
John Criswell47fdd832003-07-14 16:52:07 +00006520 uts4*)
6521 lt_prog_compiler_pic='-pic'
6522 lt_prog_compiler_static='-Bstatic'
6523 ;;
6524
John Criswell7a73b802003-06-30 21:59:07 +00006525 *)
John Criswell47fdd832003-07-14 16:52:07 +00006526 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006527 ;;
6528 esac
6529 fi
6530
John Criswell47fdd832003-07-14 16:52:07 +00006531echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6532echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006533
John Criswell47fdd832003-07-14 16:52:07 +00006534#
6535# Check to make sure the PIC flag actually works.
6536#
6537if test -n "$lt_prog_compiler_pic"; then
6538 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6539echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6540if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
John Criswell47fdd832003-07-14 16:52:07 +00006543 lt_prog_compiler_pic_works=no
6544 ac_outfile=conftest.$ac_objext
6545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6546 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6547 # Insert the option either (1) after the last *FLAGS variable, or
6548 # (2) before a word containing "conftest.", or (3) at the end.
6549 # Note that $ac_compile itself does not contain backslashes and begins
6550 # with a dollar sign (not a hyphen), so the echo should work correctly.
6551 # The option is referenced via a variable to avoid confusing sed.
6552 lt_compile=`echo "$ac_compile" | $SED \
6553 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6555 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006556 (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006557 (eval "$lt_compile" 2>conftest.err)
6558 ac_status=$?
6559 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006560 echo "$as_me:6560: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006561 if (exit $ac_status) && test -s "$ac_outfile"; then
6562 # The compiler can only warn and ignore the option if not recognized
6563 # So say no if there are warnings
6564 if test ! -s conftest.err; then
6565 lt_prog_compiler_pic_works=yes
6566 fi
6567 fi
6568 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006569
John Criswell47fdd832003-07-14 16:52:07 +00006570fi
6571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6572echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006573
John Criswell47fdd832003-07-14 16:52:07 +00006574if test x"$lt_prog_compiler_pic_works" = xyes; then
6575 case $lt_prog_compiler_pic in
6576 "" | " "*) ;;
6577 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6578 esac
John Criswell7a73b802003-06-30 21:59:07 +00006579else
John Criswell47fdd832003-07-14 16:52:07 +00006580 lt_prog_compiler_pic=
6581 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006582fi
6583
John Criswell7a73b802003-06-30 21:59:07 +00006584fi
John Criswell47fdd832003-07-14 16:52:07 +00006585case "$host_os" in
6586 # For platforms which do not support PIC, -DPIC is meaningless:
6587 *djgpp*)
6588 lt_prog_compiler_pic=
6589 ;;
6590 *)
6591 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6592 ;;
6593esac
John Criswell7a73b802003-06-30 21:59:07 +00006594
John Criswell7a73b802003-06-30 21:59:07 +00006595echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006597if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
John Criswell47fdd832003-07-14 16:52:07 +00006600 lt_cv_prog_compiler_c_o=no
6601 $rm -r conftest 2>/dev/null
6602 mkdir conftest
6603 cd conftest
6604 mkdir out
6605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006606
John Criswell47fdd832003-07-14 16:52:07 +00006607 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6608 # that will create temporary files in the current directory regardless of
6609 # the output directory. Thus, making CWD read-only will cause this test
6610 # to fail, enabling locking or at least warning the user not to do parallel
6611 # builds.
6612 chmod -w .
6613
6614 lt_compiler_flag="-o out/conftest2.$ac_objext"
6615 # Insert the option either (1) after the last *FLAGS variable, or
6616 # (2) before a word containing "conftest.", or (3) at the end.
6617 # Note that $ac_compile itself does not contain backslashes and begins
6618 # with a dollar sign (not a hyphen), so the echo should work correctly.
6619 lt_compile=`echo "$ac_compile" | $SED \
6620 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6622 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006623 (eval echo "\"\$as_me:6623: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006624 (eval "$lt_compile" 2>out/conftest.err)
6625 ac_status=$?
6626 cat out/conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +00006627 echo "$as_me:6627: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6629 then
6630 # The compiler can only warn and ignore the option if not recognized
6631 # So say no if there are warnings
6632 if test ! -s out/conftest.err; then
6633 lt_cv_prog_compiler_c_o=yes
6634 fi
6635 fi
6636 chmod u+w .
6637 $rm conftest* out/*
6638 rmdir out
6639 cd ..
6640 rmdir conftest
6641 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006642
6643fi
John Criswell47fdd832003-07-14 16:52:07 +00006644echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6645echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006646
John Criswell7a73b802003-06-30 21:59:07 +00006647
John Criswell7a73b802003-06-30 21:59:07 +00006648hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006649if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006650 # do not overwrite the value of need_locks provided by the user
6651 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6652echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6653 hard_links=yes
6654 $rm conftest*
6655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6656 touch conftest.a
6657 ln conftest.a conftest.b 2>&5 || hard_links=no
6658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6659 echo "$as_me:$LINENO: result: $hard_links" >&5
6660echo "${ECHO_T}$hard_links" >&6
6661 if test "$hard_links" = no; then
6662 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6663echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6664 need_locks=warn
6665 fi
6666else
6667 need_locks=no
6668fi
John Criswell7a73b802003-06-30 21:59:07 +00006669
John Criswell47fdd832003-07-14 16:52:07 +00006670echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6671echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6672
6673 runpath_var=
6674 allow_undefined_flag=
6675 enable_shared_with_static_runtimes=no
6676 archive_cmds=
6677 archive_expsym_cmds=
6678 old_archive_From_new_cmds=
6679 old_archive_from_expsyms_cmds=
6680 export_dynamic_flag_spec=
6681 whole_archive_flag_spec=
6682 thread_safe_flag_spec=
6683 hardcode_libdir_flag_spec=
6684 hardcode_libdir_flag_spec_ld=
6685 hardcode_libdir_separator=
6686 hardcode_direct=no
6687 hardcode_minus_L=no
6688 hardcode_shlibpath_var=unsupported
6689 link_all_deplibs=unknown
6690 hardcode_automatic=no
6691 module_cmds=
6692 module_expsym_cmds=
6693 always_export_symbols=no
6694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6695 # include_expsyms should be a list of space-separated symbols to be *always*
6696 # included in the symbol list
6697 include_expsyms=
6698 # exclude_expsyms can be an extended regexp of symbols to exclude
6699 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6701 # as well as any symbol that contains `d'.
6702 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6704 # platforms (ab)use it in PIC code, but their linkers get confused if
6705 # the symbol is explicitly referenced. Since portable code cannot
6706 # rely on this symbol name, it's probably fine to never include it in
6707 # preloaded symbol tables.
6708 extract_expsyms_cmds=
6709
6710 case $host_os in
6711 cygwin* | mingw* | pw32*)
6712 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6713 # When not using gcc, we currently assume that we are using
6714 # Microsoft Visual C++.
6715 if test "$GCC" != yes; then
6716 with_gnu_ld=no
6717 fi
6718 ;;
6719 openbsd*)
6720 with_gnu_ld=no
6721 ;;
6722 esac
6723
6724 ld_shlibs=yes
6725 if test "$with_gnu_ld" = yes; then
6726 # If archive_cmds runs LD, not CC, wlarc should be empty
6727 wlarc='${wl}'
6728
6729 # See if GNU ld supports shared libraries.
6730 case $host_os in
6731 aix3* | aix4* | aix5*)
6732 # On AIX/PPC, the GNU linker is very broken
6733 if test "$host_cpu" != ia64; then
6734 ld_shlibs=no
6735 cat <<EOF 1>&2
6736
6737*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6738*** to be unable to reliably create shared libraries on AIX.
6739*** Therefore, libtool is disabling shared libraries support. If you
6740*** really care for shared libraries, you may want to modify your PATH
6741*** so that a non-GNU linker is found, and then restart.
6742
6743EOF
6744 fi
6745 ;;
6746
6747 amigaos*)
6748 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)'
6749 hardcode_libdir_flag_spec='-L$libdir'
6750 hardcode_minus_L=yes
6751
6752 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6753 # that the semantics of dynamic libraries on AmigaOS, at least up
6754 # to version 4, is to share data among multiple programs linked
6755 # with the same dynamic library. Since this doesn't match the
6756 # behavior of shared libraries on other platforms, we can't use
6757 # them.
6758 ld_shlibs=no
6759 ;;
6760
6761 beos*)
6762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6763 allow_undefined_flag=unsupported
6764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6765 # support --undefined. This deserves some investigation. FIXME
6766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6767 else
6768 ld_shlibs=no
6769 fi
6770 ;;
6771
6772 cygwin* | mingw* | pw32*)
6773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6774 # as there is no search path for DLLs.
6775 hardcode_libdir_flag_spec='-L$libdir'
6776 allow_undefined_flag=unsupported
6777 always_export_symbols=no
6778 enable_shared_with_static_runtimes=yes
6779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6780
6781 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6783 # If the export-symbols file already is a .def file (1st line
6784 # is EXPORTS), use it as is; otherwise, prepend...
6785 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6786 cp $export_symbols $output_objdir/$soname.def;
6787 else
6788 echo EXPORTS > $output_objdir/$soname.def;
6789 cat $export_symbols >> $output_objdir/$soname.def;
6790 fi~
6791 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6792 else
6793 ld_shlibs=no
6794 fi
6795 ;;
6796
6797 netbsd*)
6798 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6800 wlarc=
6801 else
6802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804 fi
6805 ;;
6806
6807 solaris* | sysv5*)
6808 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6809 ld_shlibs=no
6810 cat <<EOF 1>&2
6811
6812*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6813*** create shared libraries on Solaris systems. Therefore, libtool
6814*** is disabling shared libraries support. We urge you to upgrade GNU
6815*** binutils to release 2.9.1 or newer. Another option is to modify
6816*** your PATH or compiler configuration so that the native linker is
6817*** used, and then restart.
6818
6819EOF
6820 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6823 else
6824 ld_shlibs=no
6825 fi
6826 ;;
6827
6828 sunos4*)
6829 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6830 wlarc=
6831 hardcode_direct=yes
6832 hardcode_shlibpath_var=no
6833 ;;
6834
6835 *)
6836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6839 else
6840 ld_shlibs=no
6841 fi
6842 ;;
6843 esac
6844
6845 if test "$ld_shlibs" = yes; then
6846 runpath_var=LD_RUN_PATH
6847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6848 export_dynamic_flag_spec='${wl}--export-dynamic'
6849 # ancient GNU ld didn't support --whole-archive et. al.
6850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852 else
6853 whole_archive_flag_spec=
6854 fi
6855 fi
6856 else
6857 # PORTME fill in a description of your system's linker (not GNU ld)
6858 case $host_os in
6859 aix3*)
6860 allow_undefined_flag=unsupported
6861 always_export_symbols=yes
6862 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'
6863 # Note: this linker hardcodes the directories in LIBPATH if there
6864 # are no directories specified by -L.
6865 hardcode_minus_L=yes
6866 if test "$GCC" = yes && test -z "$link_static_flag"; then
6867 # Neither direct hardcoding nor static linking is supported with a
6868 # broken collect2.
6869 hardcode_direct=unsupported
6870 fi
6871 ;;
6872
6873 aix4* | aix5*)
6874 if test "$host_cpu" = ia64; then
6875 # On IA64, the linker does run time linking by default, so we don't
6876 # have to do anything special.
6877 aix_use_runtimelinking=no
6878 exp_sym_flag='-Bexport'
6879 no_entry_flag=""
6880 else
6881 # If we're using GNU nm, then we don't want the "-C" option.
6882 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6884 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'
6885 else
6886 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'
6887 fi
6888 aix_use_runtimelinking=no
6889
6890 # Test if we are trying to use run time linking or normal
6891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6892 # need to do runtime linking.
6893 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6894 for ld_flag in $LDFLAGS; do
6895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6896 aix_use_runtimelinking=yes
6897 break
6898 fi
6899 done
6900 esac
6901
6902 exp_sym_flag='-bexport'
6903 no_entry_flag='-bnoentry'
6904 fi
6905
6906 # When large executables or shared objects are built, AIX ld can
6907 # have problems creating the table of contents. If linking a library
6908 # or program results in "error TOC overflow" add -mminimal-toc to
6909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6911
6912 archive_cmds=''
6913 hardcode_direct=yes
6914 hardcode_libdir_separator=':'
6915 link_all_deplibs=yes
6916
6917 if test "$GCC" = yes; then
6918 case $host_os in aix4.012|aix4.012.*)
6919 # We only want to do this on AIX 4.2 and lower, the check
6920 # below for broken collect2 doesn't work under 4.3+
6921 collect2name=`${CC} -print-prog-name=collect2`
6922 if test -f "$collect2name" && \
6923 strings "$collect2name" | grep resolve_lib_name >/dev/null
6924 then
6925 # We have reworked collect2
6926 hardcode_direct=yes
6927 else
6928 # We have old collect2
6929 hardcode_direct=unsupported
6930 # It fails to find uninstalled libraries when the uninstalled
6931 # path is not listed in the libpath. Setting hardcode_minus_L
6932 # to unsupported forces relinking
6933 hardcode_minus_L=yes
6934 hardcode_libdir_flag_spec='-L$libdir'
6935 hardcode_libdir_separator=
6936 fi
6937 esac
6938 shared_flag='-shared'
6939 else
6940 # not using gcc
6941 if test "$host_cpu" = ia64; then
6942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6943 # chokes on -Wl,-G. The following line is correct:
6944 shared_flag='-G'
6945 else
6946 if test "$aix_use_runtimelinking" = yes; then
6947 shared_flag='${wl}-G'
6948 else
6949 shared_flag='${wl}-bM:SRE'
6950 fi
6951 fi
6952 fi
6953
6954 # It seems that -bexpall does not export symbols beginning with
6955 # underscore (_), so it is better to generate a list of symbols to export.
6956 always_export_symbols=yes
6957 if test "$aix_use_runtimelinking" = yes; then
6958 # Warning - without using the other runtime loading flags (-brtl),
6959 # -berok will link without error, but may produce a broken library.
6960 allow_undefined_flag='-berok'
6961 # Determine the default libpath from the value encoded in an empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006963#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006969
John Criswell7a73b802003-06-30 21:59:07 +00006970int
6971main ()
6972{
John Criswell47fdd832003-07-14 16:52:07 +00006973
John Criswell7a73b802003-06-30 21:59:07 +00006974 ;
6975 return 0;
6976}
6977_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006978rm -f conftest.$ac_objext conftest$ac_exeext
6979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006984 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006990
John Criswell47fdd832003-07-14 16:52:07 +00006991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6992}'`
6993# Check for a 64-bit object if we didn't find anything.
6994if 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; }
6995}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006996else
6997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006998sed 's/^/| /' conftest.$ac_ext >&5
6999
John Criswell7a73b802003-06-30 21:59:07 +00007000fi
John Criswell47fdd832003-07-14 16:52:07 +00007001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007003
John Criswell47fdd832003-07-14 16:52:07 +00007004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7005 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"
7006 else
7007 if test "$host_cpu" = ia64; then
7008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7009 allow_undefined_flag="-z nodefs"
7010 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"
7011 else
7012 # Determine the default libpath from the value encoded in an empty executable.
7013 cat >conftest.$ac_ext <<_ACEOF
7014#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007015/* confdefs.h. */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007020
John Criswell47fdd832003-07-14 16:52:07 +00007021int
7022main ()
7023{
John Criswell7a73b802003-06-30 21:59:07 +00007024
John Criswell47fdd832003-07-14 16:52:07 +00007025 ;
7026 return 0;
7027}
7028_ACEOF
7029rm -f conftest.$ac_objext conftest$ac_exeext
7030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00007041
John Criswell47fdd832003-07-14 16:52:07 +00007042aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7043}'`
7044# Check for a 64-bit object if we didn't find anything.
7045if 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; }
7046}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007047else
John Criswell47fdd832003-07-14 16:52:07 +00007048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007049sed 's/^/| /' conftest.$ac_ext >&5
7050
John Criswell47fdd832003-07-14 16:52:07 +00007051fi
7052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7053if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007054
John Criswell47fdd832003-07-14 16:52:07 +00007055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7056 # Warning - without using the other run time loading flags,
7057 # -berok will link without error, but may produce a broken library.
7058 no_undefined_flag=' ${wl}-bernotok'
7059 allow_undefined_flag=' ${wl}-berok'
7060 # -bexpall does not export symbols beginning with underscore (_)
7061 always_export_symbols=yes
7062 # Exported symbols can be pulled into shared objects from archives
7063 whole_archive_flag_spec=' '
7064 archive_cmds_need_lc=yes
7065 # This is similar to how AIX traditionally builds it's shared libraries.
7066 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 +00007067 fi
7068 fi
John Criswell7a73b802003-06-30 21:59:07 +00007069 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007070
7071 amigaos*)
7072 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)'
7073 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_minus_L=yes
7075 # see comment about different semantics on the GNU ld section
7076 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007077 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007078
John Criswell47fdd832003-07-14 16:52:07 +00007079 bsdi4*)
7080 export_dynamic_flag_spec=-rdynamic
7081 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007082
John Criswell47fdd832003-07-14 16:52:07 +00007083 cygwin* | mingw* | pw32*)
7084 # When not using gcc, we currently assume that we are using
7085 # Microsoft Visual C++.
7086 # hardcode_libdir_flag_spec is actually meaningless, as there is
7087 # no search path for DLLs.
7088 hardcode_libdir_flag_spec=' '
7089 allow_undefined_flag=unsupported
7090 # Tell ltmain to make .lib files, not .a files.
7091 libext=lib
7092 # Tell ltmain to make .dll files, not .so files.
7093 shrext=".dll"
7094 # FIXME: Setting linknames here is a bad hack.
7095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7096 # The linker will automatically build a .lib file if we build a DLL.
7097 old_archive_From_new_cmds='true'
7098 # FIXME: Should let the user specify the lib program.
7099 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7100 fix_srcfile_path='`cygpath -w "$srcfile"`'
7101 enable_shared_with_static_runtimes=yes
7102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007103
John Criswell47fdd832003-07-14 16:52:07 +00007104 darwin* | rhapsody*)
7105 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7106 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007107 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007108 rhapsody* | darwin1.[012])
7109 allow_undefined_flag='-undefined suppress'
7110 ;;
7111 *) # Darwin 1.3 on
7112 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007113 ;;
7114 esac
John Criswell47fdd832003-07-14 16:52:07 +00007115 # FIXME: Relying on posixy $() will cause problems for
7116 # cross-compilation, but unfortunately the echo tests do not
7117 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7118 # `"' quotes if we put them in here... so don't!
7119 lt_int_apple_cc_single_mod=no
7120 output_verbose_link_cmd='echo'
7121 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7122 lt_int_apple_cc_single_mod=yes
7123 fi
7124 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7125 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7126 else
7127 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'
7128 fi
7129 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7130 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7132 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}'
7133 else
7134 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}'
7135 fi
7136 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}'
7137 hardcode_direct=no
7138 hardcode_automatic=yes
7139 hardcode_shlibpath_var=unsupported
7140 whole_archive_flag_spec='-all_load $convenience'
7141 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007142 fi
John Criswell47fdd832003-07-14 16:52:07 +00007143 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007144
John Criswell47fdd832003-07-14 16:52:07 +00007145 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007147 hardcode_libdir_flag_spec='-L$libdir'
7148 hardcode_shlibpath_var=no
7149 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007150
John Criswell47fdd832003-07-14 16:52:07 +00007151 freebsd1*)
7152 ld_shlibs=no
7153 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007154
John Criswell47fdd832003-07-14 16:52:07 +00007155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7156 # support. Future versions do this automatically, but an explicit c++rt0.o
7157 # does not break anything, and helps significantly (at the cost of a little
7158 # extra space).
7159 freebsd2.2*)
7160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7161 hardcode_libdir_flag_spec='-R$libdir'
7162 hardcode_direct=yes
7163 hardcode_shlibpath_var=no
7164 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007165
John Criswell47fdd832003-07-14 16:52:07 +00007166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7167 freebsd2*)
7168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7169 hardcode_direct=yes
7170 hardcode_minus_L=yes
7171 hardcode_shlibpath_var=no
7172 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007173
John Criswell47fdd832003-07-14 16:52:07 +00007174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7175 freebsd*)
7176 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7177 hardcode_libdir_flag_spec='-R$libdir'
7178 hardcode_direct=yes
7179 hardcode_shlibpath_var=no
7180 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007181
John Criswell47fdd832003-07-14 16:52:07 +00007182 hpux9*)
7183 if test "$GCC" = yes; then
7184 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'
7185 else
7186 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'
7187 fi
7188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7189 hardcode_libdir_separator=:
7190 hardcode_direct=yes
7191
7192 # hardcode_minus_L: Not really in the search PATH,
7193 # but as the default location of the library.
7194 hardcode_minus_L=yes
7195 export_dynamic_flag_spec='${wl}-E'
7196 ;;
7197
7198 hpux10* | hpux11*)
7199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7200 case "$host_cpu" in
7201 hppa*64*|ia64*)
7202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203 ;;
7204 *)
7205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7206 ;;
7207 esac
7208 else
7209 case "$host_cpu" in
7210 hppa*64*|ia64*)
7211 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7212 ;;
7213 *)
7214 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7215 ;;
7216 esac
7217 fi
7218 if test "$with_gnu_ld" = no; then
7219 case "$host_cpu" in
7220 hppa*64*)
7221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7222 hardcode_libdir_flag_spec_ld='+b $libdir'
7223 hardcode_libdir_separator=:
7224 hardcode_direct=no
7225 hardcode_shlibpath_var=no
7226 ;;
7227 ia64*)
7228 hardcode_libdir_flag_spec='-L$libdir'
7229 hardcode_direct=no
7230 hardcode_shlibpath_var=no
7231
7232 # hardcode_minus_L: Not really in the search PATH,
7233 # but as the default location of the library.
7234 hardcode_minus_L=yes
7235 ;;
7236 *)
7237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7238 hardcode_libdir_separator=:
7239 hardcode_direct=yes
7240 export_dynamic_flag_spec='${wl}-E'
7241
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7245 ;;
7246 esac
7247 fi
7248 ;;
7249
7250 irix5* | irix6* | nonstopux*)
7251 if test "$GCC" = yes; then
7252 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'
7253 else
7254 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'
7255 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7256 fi
7257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7258 hardcode_libdir_separator=:
7259 link_all_deplibs=yes
7260 ;;
7261
7262 netbsd*)
7263 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7265 else
7266 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7267 fi
7268 hardcode_libdir_flag_spec='-R$libdir'
7269 hardcode_direct=yes
7270 hardcode_shlibpath_var=no
7271 ;;
7272
7273 newsos6)
7274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7275 hardcode_direct=yes
7276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7277 hardcode_libdir_separator=:
7278 hardcode_shlibpath_var=no
7279 ;;
7280
7281 openbsd*)
7282 hardcode_direct=yes
7283 hardcode_shlibpath_var=no
7284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7287 export_dynamic_flag_spec='${wl}-E'
7288 else
7289 case $host_os in
7290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_libdir_flag_spec='-R$libdir'
7293 ;;
7294 *)
7295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7297 ;;
7298 esac
7299 fi
7300 ;;
7301
7302 os2*)
7303 hardcode_libdir_flag_spec='-L$libdir'
7304 hardcode_minus_L=yes
7305 allow_undefined_flag=unsupported
7306 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'
7307 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7308 ;;
7309
7310 osf3*)
7311 if test "$GCC" = yes; then
7312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7313 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'
7314 else
7315 allow_undefined_flag=' -expect_unresolved \*'
7316 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'
7317 fi
7318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7319 hardcode_libdir_separator=:
7320 ;;
7321
7322 osf4* | osf5*) # as osf3* with the addition of -msym flag
7323 if test "$GCC" = yes; then
7324 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7325 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'
7326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7327 else
7328 allow_undefined_flag=' -expect_unresolved \*'
7329 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'
7330 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7331 $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'
7332
7333 # Both c and cxx compiler support -rpath directly
7334 hardcode_libdir_flag_spec='-rpath $libdir'
7335 fi
7336 hardcode_libdir_separator=:
7337 ;;
7338
7339 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007342 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007343 runpath_var=LD_RUN_PATH
7344 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007345 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007346
John Criswell47fdd832003-07-14 16:52:07 +00007347 solaris*)
7348 no_undefined_flag=' -z text'
7349 if test "$GCC" = yes; then
7350 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7351 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7352 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7353 else
7354 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7356 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7357 fi
7358 hardcode_libdir_flag_spec='-R$libdir'
7359 hardcode_shlibpath_var=no
7360 case $host_os in
7361 solaris2.[0-5] | solaris2.[0-5].*) ;;
7362 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7364 esac
7365 link_all_deplibs=yes
7366 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007367
John Criswell47fdd832003-07-14 16:52:07 +00007368 sunos4*)
7369 if test "x$host_vendor" = xsequent; then
7370 # Use $CC to link under sequent, because it throws in some extra .o
7371 # files that make .init and .fini sections work.
7372 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7373 else
7374 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7375 fi
7376 hardcode_libdir_flag_spec='-L$libdir'
7377 hardcode_direct=yes
7378 hardcode_minus_L=yes
7379 hardcode_shlibpath_var=no
7380 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007381
John Criswell47fdd832003-07-14 16:52:07 +00007382 sysv4)
7383 case $host_vendor in
7384 sni)
7385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7386 hardcode_direct=yes # is this really true???
7387 ;;
7388 siemens)
7389 ## LD is ld it makes a PLAMLIB
7390 ## CC just makes a GrossModule.
7391 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7392 reload_cmds='$CC -r -o $output$reload_objs'
7393 hardcode_direct=no
7394 ;;
7395 motorola)
7396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7397 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7398 ;;
7399 esac
7400 runpath_var='LD_RUN_PATH'
7401 hardcode_shlibpath_var=no
7402 ;;
7403
7404 sysv4.3*)
7405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 hardcode_shlibpath_var=no
7407 export_dynamic_flag_spec='-Bexport'
7408 ;;
7409
7410 sysv4*MP*)
7411 if test -d /usr/nec; then
7412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413 hardcode_shlibpath_var=no
7414 runpath_var=LD_RUN_PATH
7415 hardcode_runpath_var=yes
7416 ld_shlibs=yes
7417 fi
7418 ;;
7419
7420 sysv4.2uw2*)
7421 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_direct=yes
7423 hardcode_minus_L=no
7424 hardcode_shlibpath_var=no
7425 hardcode_runpath_var=yes
7426 runpath_var=LD_RUN_PATH
7427 ;;
7428
7429 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7430 no_undefined_flag='${wl}-z ${wl}text'
7431 if test "$GCC" = yes; then
7432 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7433 else
7434 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7435 fi
7436 runpath_var='LD_RUN_PATH'
7437 hardcode_shlibpath_var=no
7438 ;;
7439
7440 sysv5*)
7441 no_undefined_flag=' -z text'
7442 # $CC -shared without GNU ld will not create a library from C++
7443 # object files and a static libstdc++, better avoid it by now
7444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7447 hardcode_libdir_flag_spec=
7448 hardcode_shlibpath_var=no
7449 runpath_var='LD_RUN_PATH'
7450 ;;
7451
7452 uts4*)
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_libdir_flag_spec='-L$libdir'
7455 hardcode_shlibpath_var=no
7456 ;;
7457
7458 *)
7459 ld_shlibs=no
7460 ;;
7461 esac
7462 fi
7463
John Criswell7a73b802003-06-30 21:59:07 +00007464echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7465echo "${ECHO_T}$ld_shlibs" >&6
7466test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007467
John Criswell47fdd832003-07-14 16:52:07 +00007468variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7469if test "$GCC" = yes; then
7470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7471fi
7472
7473#
7474# Do we need to explicitly link libc?
7475#
7476case "x$archive_cmds_need_lc" in
7477x|xyes)
7478 # Assume -lc should be added
7479 archive_cmds_need_lc=yes
7480
7481 if test "$enable_shared" = yes && test "$GCC" = yes; then
7482 case $archive_cmds in
7483 *'~'*)
7484 # FIXME: we may have to deal with multi-command sequences.
7485 ;;
7486 '$CC '*)
7487 # Test whether the compiler implicitly links with -lc since on some
7488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7489 # to ld, don't add -lc before -lgcc.
7490 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7491echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7492 $rm conftest*
7493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7494
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } 2>conftest.err; then
7500 soname=conftest
7501 lib=conftest
7502 libobjs=conftest.$ac_objext
7503 deplibs=
7504 wl=$lt_prog_compiler_wl
7505 compiler_flags=-v
7506 linker_flags=-v
7507 verstring=
7508 output_objdir=.
7509 libname=conftest
7510 lt_save_allow_undefined_flag=$allow_undefined_flag
7511 allow_undefined_flag=
7512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7513 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }
7517 then
7518 archive_cmds_need_lc=no
7519 else
7520 archive_cmds_need_lc=yes
7521 fi
7522 allow_undefined_flag=$lt_save_allow_undefined_flag
7523 else
7524 cat conftest.err 1>&5
7525 fi
7526 $rm conftest*
7527 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7528echo "${ECHO_T}$archive_cmds_need_lc" >&6
7529 ;;
7530 esac
7531 fi
7532 ;;
7533esac
7534
John Criswell7a73b802003-06-30 21:59:07 +00007535echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7536echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7537hardcode_action=
7538if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007539 test -n "$runpath_var " || \
7540 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007541
7542 # We can hardcode non-existant directories.
7543 if test "$hardcode_direct" != no &&
7544 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7545 # have to relink, otherwise we might link with an installed library
7546 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007547 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007548 test "$hardcode_minus_L" != no; then
7549 # Linking always hardcodes the temporary library directory.
7550 hardcode_action=relink
7551 else
7552 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7553 hardcode_action=immediate
7554 fi
7555else
7556 # We cannot hardcode anything, or else we can only hardcode existing
7557 # directories.
7558 hardcode_action=unsupported
7559fi
7560echo "$as_me:$LINENO: result: $hardcode_action" >&5
7561echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007562
John Criswell47fdd832003-07-14 16:52:07 +00007563if test "$hardcode_action" = relink; then
7564 # Fast installation is not supported
7565 enable_fast_install=no
7566elif test "$shlibpath_overrides_runpath" = yes ||
7567 test "$enable_shared" = no; then
7568 # Fast installation is not necessary
7569 enable_fast_install=needless
7570fi
7571
John Criswell7a73b802003-06-30 21:59:07 +00007572striplib=
7573old_striplib=
7574echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7575echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7576if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7578 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7579 echo "$as_me:$LINENO: result: yes" >&5
7580echo "${ECHO_T}yes" >&6
7581else
John Criswell47fdd832003-07-14 16:52:07 +00007582# FIXME - insert some real tests, host_os isn't really good enough
7583 case $host_os in
7584 darwin*)
7585 if test -n "$STRIP" ; then
7586 striplib="$STRIP -x"
7587 echo "$as_me:$LINENO: result: yes" >&5
7588echo "${ECHO_T}yes" >&6
7589 else
John Criswell7a73b802003-06-30 21:59:07 +00007590 echo "$as_me:$LINENO: result: no" >&5
7591echo "${ECHO_T}no" >&6
7592fi
John Criswell47fdd832003-07-14 16:52:07 +00007593 ;;
7594 *)
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 ;;
7598 esac
7599fi
John Criswell7a73b802003-06-30 21:59:07 +00007600
John Criswell7a73b802003-06-30 21:59:07 +00007601echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7602echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7603library_names_spec=
7604libname_spec='lib$name'
7605soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007606shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007607postinstall_cmds=
7608postuninstall_cmds=
7609finish_cmds=
7610finish_eval=
7611shlibpath_var=
7612shlibpath_overrides_runpath=unknown
7613version_type=none
7614dynamic_linker="$host_os ld.so"
7615sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007616if test "$GCC" = yes; then
7617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7618 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7619 # if the path contains ";" then we assume it to be the separator
7620 # otherwise default to the standard path separator (i.e. ":") - it is
7621 # assumed that no part of a normal pathname contains ";" but that should
7622 # okay in the real world where ";" in dirpaths is itself problematic.
7623 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7624 else
7625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7626 fi
7627else
7628 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7629fi
7630need_lib_prefix=unknown
7631hardcode_into_libs=no
7632
7633# when you set need_version to no, make sure it does not cause -set_version
7634# flags to be left without arguments
7635need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007636
7637case $host_os in
7638aix3*)
7639 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007640 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007641 shlibpath_var=LIBPATH
7642
John Criswell47fdd832003-07-14 16:52:07 +00007643 # AIX 3 has no versioning support, so we append a major version to the name.
7644 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007645 ;;
7646
7647aix4* | aix5*)
7648 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007649 need_lib_prefix=no
7650 need_version=no
7651 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007652 if test "$host_cpu" = ia64; then
7653 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007654 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007655 shlibpath_var=LD_LIBRARY_PATH
7656 else
7657 # With GCC up to 2.95.x, collect2 would create an import file
7658 # for dependence libraries. The import file would start with
7659 # the line `#! .'. This would cause the generated library to
7660 # depend on `.', always an invalid library. This was fixed in
7661 # development snapshots of GCC prior to 3.0.
7662 case $host_os in
7663 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007664 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7665 echo ' yes '
7666 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7667 :
7668 else
7669 can_build_shared=no
7670 fi
7671 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007672 esac
John Criswell47fdd832003-07-14 16:52:07 +00007673 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7674 # soname into executable. Probably we can add versioning support to
7675 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007676 if test "$aix_use_runtimelinking" = yes; then
7677 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7678 # instead of lib<name>.a to let people know that these are not
7679 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007681 else
7682 # We preserve .a as extension for shared libraries through AIX4.2
7683 # and later when we are not doing run time linking.
7684 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007685 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007686 fi
7687 shlibpath_var=LIBPATH
7688 fi
7689 ;;
7690
7691amigaos*)
7692 library_names_spec='$libname.ixlibrary $libname.a'
7693 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7694 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'
7695 ;;
7696
7697beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007698 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007699 dynamic_linker="$host_os ld.so"
7700 shlibpath_var=LIBRARY_PATH
7701 ;;
7702
7703bsdi4*)
7704 version_type=linux
7705 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7707 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7709 shlibpath_var=LD_LIBRARY_PATH
7710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007712 # the default ld.so.conf also contains /usr/contrib/lib and
7713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7714 # libtool to hard-code these into programs
7715 ;;
7716
7717cygwin* | mingw* | pw32*)
7718 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007719 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007720 need_version=no
7721 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007722
John Criswell7a73b802003-06-30 21:59:07 +00007723 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007724 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007725 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7727 postinstall_cmds='base_file=`basename \${file}`~
7728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007729 dldir=$destdir/`dirname \$dlpath`~
7730 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007731 $install_prog $dir/$dlname \$dldir/$dlname'
7732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007733 dlpath=$dir/\$dldll~
7734 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007735 shlibpath_overrides_runpath=yes
7736
7737 case $host_os in
7738 cygwin*)
7739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7741 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7742 ;;
7743 mingw*)
7744 # MinGW DLLs use traditional 'lib' prefix
7745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7748 # It is most probably a Windows format PATH printed by
7749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7750 # path with ; separators, and with drive letters. We can handle the
7751 # drive letters (cygwin fileutils understands them), so leave them,
7752 # especially as we might pass files found there to a mingw objdump,
7753 # which wouldn't understand a cygwinified path. Ahh.
7754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7755 else
7756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7757 fi
7758 ;;
7759 pw32*)
7760 # pw32 DLLs use 'pw' prefix rather than 'lib'
7761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7762 ;;
7763 esac
John Criswell7a73b802003-06-30 21:59:07 +00007764 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007765
John Criswell7a73b802003-06-30 21:59:07 +00007766 *)
John Criswell47fdd832003-07-14 16:52:07 +00007767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007768 ;;
7769 esac
7770 dynamic_linker='Win32 ld.exe'
7771 # FIXME: first we should search . and the directory the executable is in
7772 shlibpath_var=PATH
7773 ;;
7774
7775darwin* | rhapsody*)
7776 dynamic_linker="$host_os dyld"
7777 version_type=darwin
7778 need_lib_prefix=no
7779 need_version=no
7780 # FIXME: Relying on posixy $() will cause problems for
7781 # cross-compilation, but unfortunately the echo tests do not
7782 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007783 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7784 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007785 shlibpath_overrides_runpath=yes
7786 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007787 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7788 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7789 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7790 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"`
7791 fi
7792 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7793 ;;
7794
7795dgux*)
7796 version_type=linux
7797 need_lib_prefix=no
7798 need_version=no
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7800 soname_spec='${libname}${release}${shared_ext}$major'
7801 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007802 ;;
7803
7804freebsd1*)
7805 dynamic_linker=no
7806 ;;
7807
7808freebsd*)
7809 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7810 version_type=freebsd-$objformat
7811 case $version_type in
7812 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007814 need_version=no
7815 need_lib_prefix=no
7816 ;;
7817 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007819 need_version=yes
7820 ;;
7821 esac
7822 shlibpath_var=LD_LIBRARY_PATH
7823 case $host_os in
7824 freebsd2*)
7825 shlibpath_overrides_runpath=yes
7826 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007827 freebsd3.01* | freebsdelf3.01*)
7828 shlibpath_overrides_runpath=yes
7829 hardcode_into_libs=yes
7830 ;;
7831 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007832 shlibpath_overrides_runpath=no
7833 hardcode_into_libs=yes
7834 ;;
7835 esac
7836 ;;
7837
7838gnu*)
7839 version_type=linux
7840 need_lib_prefix=no
7841 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7843 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007844 shlibpath_var=LD_LIBRARY_PATH
7845 hardcode_into_libs=yes
7846 ;;
7847
7848hpux9* | hpux10* | hpux11*)
7849 # Give a soname corresponding to the major version so that dld.sl refuses to
7850 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007851 version_type=sunos
7852 need_lib_prefix=no
7853 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007854 case "$host_cpu" in
7855 ia64*)
7856 shrext='.so'
7857 hardcode_into_libs=yes
7858 dynamic_linker="$host_os dld.so"
7859 shlibpath_var=LD_LIBRARY_PATH
7860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 if test "X$HPUX_IA64_MODE" = X32; then
7864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7865 else
7866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7867 fi
7868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7869 ;;
7870 hppa*64*)
7871 shrext='.sl'
7872 hardcode_into_libs=yes
7873 dynamic_linker="$host_os dld.sl"
7874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877 soname_spec='${libname}${release}${shared_ext}$major'
7878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7880 ;;
7881 *)
7882 shrext='.sl'
7883 dynamic_linker="$host_os dld.sl"
7884 shlibpath_var=SHLIB_PATH
7885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7887 soname_spec='${libname}${release}${shared_ext}$major'
7888 ;;
7889 esac
John Criswell7a73b802003-06-30 21:59:07 +00007890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7891 postinstall_cmds='chmod 555 $lib'
7892 ;;
7893
John Criswell47fdd832003-07-14 16:52:07 +00007894irix5* | irix6* | nonstopux*)
7895 case $host_os in
7896 nonstopux*) version_type=nonstopux ;;
7897 *)
7898 if test "$lt_cv_prog_gnu_ld" = yes; then
7899 version_type=linux
7900 else
7901 version_type=irix
7902 fi ;;
7903 esac
John Criswell7a73b802003-06-30 21:59:07 +00007904 need_lib_prefix=no
7905 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007906 soname_spec='${libname}${release}${shared_ext}$major'
7907 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 +00007908 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007909 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007910 libsuff= shlibsuff=
7911 ;;
7912 *)
7913 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7915 libsuff= shlibsuff= libmagic=32-bit;;
7916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7917 libsuff=32 shlibsuff=N32 libmagic=N32;;
7918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007920 *) libsuff= shlibsuff= libmagic=never-match;;
7921 esac
7922 ;;
7923 esac
7924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7925 shlibpath_overrides_runpath=no
7926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007928 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007929 ;;
7930
7931# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007932linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007933 dynamic_linker=no
7934 ;;
7935
7936# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007937linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007938 version_type=linux
7939 need_lib_prefix=no
7940 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7942 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7944 shlibpath_var=LD_LIBRARY_PATH
7945 shlibpath_overrides_runpath=no
7946 # This implies no fast_install, which is unacceptable.
7947 # Some rework will be needed to allow for fast_install
7948 # before this can be enabled.
7949 hardcode_into_libs=yes
7950
7951 # We used to test for /lib/ld.so.1 and disable shared libraries on
7952 # powerpc, because MkLinux only supported shared libraries with the
7953 # GNU dynamic linker. Since this was broken with cross compilers,
7954 # most powerpc-linux boxes support dynamic linking these days and
7955 # people can always --disable-shared, the test was removed, and we
7956 # assume the GNU/Linux dynamic linker is in use.
7957 dynamic_linker='GNU/Linux ld.so'
7958 ;;
7959
7960netbsd*)
7961 version_type=sunos
7962 need_lib_prefix=no
7963 need_version=no
7964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967 dynamic_linker='NetBSD (a.out) ld.so'
7968 else
John Criswell47fdd832003-07-14 16:52:07 +00007969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7970 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007971 dynamic_linker='NetBSD ld.elf_so'
7972 fi
7973 shlibpath_var=LD_LIBRARY_PATH
7974 shlibpath_overrides_runpath=yes
7975 hardcode_into_libs=yes
7976 ;;
7977
7978newsos6)
7979 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 shlibpath_var=LD_LIBRARY_PATH
7982 shlibpath_overrides_runpath=yes
7983 ;;
7984
7985nto-qnx)
7986 version_type=linux
7987 need_lib_prefix=no
7988 need_version=no
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007991 shlibpath_var=LD_LIBRARY_PATH
7992 shlibpath_overrides_runpath=yes
7993 ;;
7994
7995openbsd*)
7996 version_type=sunos
7997 need_lib_prefix=no
7998 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8001 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00008002 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 +00008003 case $host_os in
8004 openbsd2.[89] | openbsd2.[89].*)
8005 shlibpath_overrides_runpath=no
8006 ;;
8007 *)
8008 shlibpath_overrides_runpath=yes
8009 ;;
8010 esac
John Criswell7a73b802003-06-30 21:59:07 +00008011 else
8012 shlibpath_overrides_runpath=yes
8013 fi
John Criswell7a73b802003-06-30 21:59:07 +00008014 ;;
8015
8016os2*)
8017 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00008018 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00008019 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00008020 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00008021 dynamic_linker='OS/2 ld.exe'
8022 shlibpath_var=LIBPATH
8023 ;;
8024
8025osf3* | osf4* | osf5*)
8026 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008027 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008028 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008029 soname_spec='${libname}${release}${shared_ext}$major'
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008031 shlibpath_var=LD_LIBRARY_PATH
8032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8034 ;;
8035
8036sco3.2v5*)
8037 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00008038 soname_spec='${libname}${release}${shared_ext}$major'
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00008040 shlibpath_var=LD_LIBRARY_PATH
8041 ;;
8042
8043solaris*)
8044 version_type=linux
8045 need_lib_prefix=no
8046 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008049 shlibpath_var=LD_LIBRARY_PATH
8050 shlibpath_overrides_runpath=yes
8051 hardcode_into_libs=yes
8052 # ldd complains unless libraries are executable
8053 postinstall_cmds='chmod +x $lib'
8054 ;;
8055
8056sunos4*)
8057 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008059 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8060 shlibpath_var=LD_LIBRARY_PATH
8061 shlibpath_overrides_runpath=yes
8062 if test "$with_gnu_ld" = yes; then
8063 need_lib_prefix=no
8064 fi
8065 need_version=yes
8066 ;;
8067
8068sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8069 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008072 shlibpath_var=LD_LIBRARY_PATH
8073 case $host_vendor in
8074 sni)
8075 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008076 need_lib_prefix=no
8077 export_dynamic_flag_spec='${wl}-Blargedynsym'
8078 runpath_var=LD_RUN_PATH
8079 ;;
8080 siemens)
8081 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008082 ;;
8083 motorola)
8084 need_lib_prefix=no
8085 need_version=no
8086 shlibpath_overrides_runpath=no
8087 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8088 ;;
8089 esac
8090 ;;
8091
John Criswell7a73b802003-06-30 21:59:07 +00008092sysv4*MP*)
8093 if test -d /usr/nec ;then
8094 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008095 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8096 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008097 shlibpath_var=LD_LIBRARY_PATH
8098 fi
8099 ;;
8100
John Criswell47fdd832003-07-14 16:52:07 +00008101uts4*)
8102 version_type=linux
8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104 soname_spec='${libname}${release}${shared_ext}$major'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 ;;
8107
John Criswell7a73b802003-06-30 21:59:07 +00008108*)
8109 dynamic_linker=no
8110 ;;
8111esac
8112echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8113echo "${ECHO_T}$dynamic_linker" >&6
8114test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008115
8116if test "x$enable_dlopen" != xyes; then
8117 enable_dlopen=unknown
8118 enable_dlopen_self=unknown
8119 enable_dlopen_self_static=unknown
8120else
8121 lt_cv_dlopen=no
8122 lt_cv_dlopen_libs=
8123
8124 case $host_os in
8125 beos*)
8126 lt_cv_dlopen="load_add_on"
8127 lt_cv_dlopen_libs=
8128 lt_cv_dlopen_self=yes
8129 ;;
8130
John Criswell47fdd832003-07-14 16:52:07 +00008131 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008132 lt_cv_dlopen="LoadLibrary"
8133 lt_cv_dlopen_libs=
8134 ;;
8135
John Criswell47fdd832003-07-14 16:52:07 +00008136 cygwin*)
8137 lt_cv_dlopen="dlopen"
8138 lt_cv_dlopen_libs=
8139 ;;
8140
8141 darwin*)
8142 # if libdl is installed we need to link against it
8143 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 ac_check_lib_save_LIBS=$LIBS
8149LIBS="-ldl $LIBS"
8150cat >conftest.$ac_ext <<_ACEOF
8151#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008152/* confdefs.h. */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008157
8158/* Override any gcc2 internal prototype to avoid an error. */
8159#ifdef __cplusplus
8160extern "C"
8161#endif
8162/* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8164char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008165int
8166main ()
8167{
8168dlopen ();
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext conftest$ac_exeext
8174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 (eval $ac_try) 2>&5
8182 ac_status=$?
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; }; then
8185 ac_cv_lib_dl_dlopen=yes
8186else
8187 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008188sed 's/^/| /' conftest.$ac_ext >&5
8189
John Criswell47fdd832003-07-14 16:52:07 +00008190ac_cv_lib_dl_dlopen=no
8191fi
8192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8193LIBS=$ac_check_lib_save_LIBS
8194fi
8195echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8196echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8197if test $ac_cv_lib_dl_dlopen = yes; then
8198 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8199else
8200
8201 lt_cv_dlopen="dyld"
8202 lt_cv_dlopen_libs=
8203 lt_cv_dlopen_self=yes
8204
8205fi
8206
8207 ;;
8208
John Criswell7a73b802003-06-30 21:59:07 +00008209 *)
8210 echo "$as_me:$LINENO: checking for shl_load" >&5
8211echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8212if test "${ac_cv_func_shl_load+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215 cat >conftest.$ac_ext <<_ACEOF
8216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008217/* confdefs.h. */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008222/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008223 which can conflict with char shl_load (); below.
8224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8225 <limits.h> exists even on freestanding compilers. */
8226#ifdef __STDC__
8227# include <limits.h>
8228#else
8229# include <assert.h>
8230#endif
John Criswell7a73b802003-06-30 21:59:07 +00008231/* Override any gcc2 internal prototype to avoid an error. */
8232#ifdef __cplusplus
8233extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008234{
John Criswell7a73b802003-06-30 21:59:07 +00008235#endif
8236/* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8238char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008239/* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242#if defined (__stub_shl_load) || defined (__stub___shl_load)
8243choke me
8244#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008245char (*f) () = shl_load;
8246#endif
8247#ifdef __cplusplus
8248}
John Criswell7a73b802003-06-30 21:59:07 +00008249#endif
8250
John Criswell0c38eaf2003-09-10 15:17:25 +00008251int
8252main ()
8253{
8254return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008255 ;
8256 return 0;
8257}
8258_ACEOF
8259rm -f conftest.$ac_objext conftest$ac_exeext
8260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_func_shl_load=yes
8272else
8273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008274sed 's/^/| /' conftest.$ac_ext >&5
8275
John Criswell7a73b802003-06-30 21:59:07 +00008276ac_cv_func_shl_load=no
8277fi
8278rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8279fi
8280echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8281echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8282if test $ac_cv_func_shl_load = yes; then
8283 lt_cv_dlopen="shl_load"
8284else
8285 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8286echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8287if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289else
8290 ac_check_lib_save_LIBS=$LIBS
8291LIBS="-ldld $LIBS"
8292cat >conftest.$ac_ext <<_ACEOF
8293#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008299
8300/* Override any gcc2 internal prototype to avoid an error. */
8301#ifdef __cplusplus
8302extern "C"
8303#endif
8304/* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8306char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008307int
8308main ()
8309{
8310shl_load ();
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315rm -f conftest.$ac_objext conftest$ac_exeext
8316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -s conftest$ac_exeext'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 (eval $ac_try) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 ac_cv_lib_dld_shl_load=yes
8328else
8329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008330sed 's/^/| /' conftest.$ac_ext >&5
8331
John Criswell7a73b802003-06-30 21:59:07 +00008332ac_cv_lib_dld_shl_load=no
8333fi
8334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8335LIBS=$ac_check_lib_save_LIBS
8336fi
8337echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8338echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8339if test $ac_cv_lib_dld_shl_load = yes; then
8340 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8341else
8342 echo "$as_me:$LINENO: checking for dlopen" >&5
8343echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8344if test "${ac_cv_func_dlopen+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 cat >conftest.$ac_ext <<_ACEOF
8348#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008349/* confdefs.h. */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008354/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008355 which can conflict with char dlopen (); below.
8356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8357 <limits.h> exists even on freestanding compilers. */
8358#ifdef __STDC__
8359# include <limits.h>
8360#else
8361# include <assert.h>
8362#endif
John Criswell7a73b802003-06-30 21:59:07 +00008363/* Override any gcc2 internal prototype to avoid an error. */
8364#ifdef __cplusplus
8365extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008366{
John Criswell7a73b802003-06-30 21:59:07 +00008367#endif
8368/* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8370char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008371/* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374#if defined (__stub_dlopen) || defined (__stub___dlopen)
8375choke me
8376#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008377char (*f) () = dlopen;
8378#endif
8379#ifdef __cplusplus
8380}
John Criswell7a73b802003-06-30 21:59:07 +00008381#endif
8382
John Criswell0c38eaf2003-09-10 15:17:25 +00008383int
8384main ()
8385{
8386return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393 (eval $ac_link) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_func_dlopen=yes
8404else
8405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008406sed 's/^/| /' conftest.$ac_ext >&5
8407
John Criswell7a73b802003-06-30 21:59:07 +00008408ac_cv_func_dlopen=no
8409fi
8410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8411fi
8412echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8413echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8414if test $ac_cv_func_dlopen = yes; then
8415 lt_cv_dlopen="dlopen"
8416else
8417 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8418echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8419if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421else
8422 ac_check_lib_save_LIBS=$LIBS
8423LIBS="-ldl $LIBS"
8424cat >conftest.$ac_ext <<_ACEOF
8425#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008426/* confdefs.h. */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
8430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008431
8432/* Override any gcc2 internal prototype to avoid an error. */
8433#ifdef __cplusplus
8434extern "C"
8435#endif
8436/* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8438char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008439int
8440main ()
8441{
8442dlopen ();
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext conftest$ac_exeext
8448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_dl_dlopen=yes
8460else
8461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008462sed 's/^/| /' conftest.$ac_ext >&5
8463
John Criswell7a73b802003-06-30 21:59:07 +00008464ac_cv_lib_dl_dlopen=no
8465fi
8466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467LIBS=$ac_check_lib_save_LIBS
8468fi
8469echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8470echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8471if test $ac_cv_lib_dl_dlopen = yes; then
8472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8473else
8474 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8475echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8476if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478else
8479 ac_check_lib_save_LIBS=$LIBS
8480LIBS="-lsvld $LIBS"
8481cat >conftest.$ac_ext <<_ACEOF
8482#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008488
8489/* Override any gcc2 internal prototype to avoid an error. */
8490#ifdef __cplusplus
8491extern "C"
8492#endif
8493/* We use char because int might match the return type of a gcc2
8494 builtin and then its argument prototype would still apply. */
8495char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008496int
8497main ()
8498{
8499dlopen ();
8500 ;
8501 return 0;
8502}
8503_ACEOF
8504rm -f conftest.$ac_objext conftest$ac_exeext
8505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8506 (eval $ac_link) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -s conftest$ac_exeext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_lib_svld_dlopen=yes
8517else
8518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008519sed 's/^/| /' conftest.$ac_ext >&5
8520
John Criswell7a73b802003-06-30 21:59:07 +00008521ac_cv_lib_svld_dlopen=no
8522fi
8523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8524LIBS=$ac_check_lib_save_LIBS
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8527echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8528if test $ac_cv_lib_svld_dlopen = yes; then
8529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8530else
8531 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8532echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8533if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536 ac_check_lib_save_LIBS=$LIBS
8537LIBS="-ldld $LIBS"
8538cat >conftest.$ac_ext <<_ACEOF
8539#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008540/* confdefs.h. */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008545
8546/* Override any gcc2 internal prototype to avoid an error. */
8547#ifdef __cplusplus
8548extern "C"
8549#endif
8550/* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8552char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008553int
8554main ()
8555{
8556dld_link ();
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext conftest$ac_exeext
8562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_lib_dld_dld_link=yes
8574else
8575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008576sed 's/^/| /' conftest.$ac_ext >&5
8577
John Criswell7a73b802003-06-30 21:59:07 +00008578ac_cv_lib_dld_dld_link=no
8579fi
8580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581LIBS=$ac_check_lib_save_LIBS
8582fi
8583echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8585if test $ac_cv_lib_dld_dld_link = yes; then
8586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8587fi
8588
8589
8590fi
8591
8592
8593fi
8594
8595
8596fi
8597
8598
8599fi
8600
8601
8602fi
8603
8604 ;;
8605 esac
8606
8607 if test "x$lt_cv_dlopen" != xno; then
8608 enable_dlopen=yes
8609 else
8610 enable_dlopen=no
8611 fi
8612
8613 case $lt_cv_dlopen in
8614 dlopen)
8615 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008617
8618 save_LDFLAGS="$LDFLAGS"
8619 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8620
8621 save_LIBS="$LIBS"
8622 LIBS="$lt_cv_dlopen_libs $LIBS"
8623
8624 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8625echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8626if test "${lt_cv_dlopen_self+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629 if test "$cross_compiling" = yes; then :
8630 lt_cv_dlopen_self=cross
8631else
John Criswell47fdd832003-07-14 16:52:07 +00008632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008633 lt_status=$lt_dlunknown
8634 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +00008635#line 8635 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008636#include "confdefs.h"
8637
8638#if HAVE_DLFCN_H
8639#include <dlfcn.h>
8640#endif
8641
8642#include <stdio.h>
8643
8644#ifdef RTLD_GLOBAL
8645# define LT_DLGLOBAL RTLD_GLOBAL
8646#else
8647# ifdef DL_GLOBAL
8648# define LT_DLGLOBAL DL_GLOBAL
8649# else
8650# define LT_DLGLOBAL 0
8651# endif
8652#endif
8653
8654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8655 find out it does not work in some platform. */
8656#ifndef LT_DLLAZY_OR_NOW
8657# ifdef RTLD_LAZY
8658# define LT_DLLAZY_OR_NOW RTLD_LAZY
8659# else
8660# ifdef DL_LAZY
8661# define LT_DLLAZY_OR_NOW DL_LAZY
8662# else
8663# ifdef RTLD_NOW
8664# define LT_DLLAZY_OR_NOW RTLD_NOW
8665# else
8666# ifdef DL_NOW
8667# define LT_DLLAZY_OR_NOW DL_NOW
8668# else
8669# define LT_DLLAZY_OR_NOW 0
8670# endif
8671# endif
8672# endif
8673# endif
8674#endif
8675
8676#ifdef __cplusplus
8677extern "C" void exit (int);
8678#endif
8679
8680void fnord() { int i=42;}
8681int main ()
8682{
8683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8684 int status = $lt_dlunknown;
8685
8686 if (self)
8687 {
8688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8690 /* dlclose (self); */
8691 }
8692
8693 exit (status);
8694}
8695EOF
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8701 (./conftest; exit; ) 2>/dev/null
8702 lt_status=$?
8703 case x$lt_status in
8704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8706 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8707 esac
8708 else :
8709 # compilation failed
8710 lt_cv_dlopen_self=no
8711 fi
8712fi
8713rm -fr conftest*
8714
8715
8716fi
8717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8718echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8719
8720 if test "x$lt_cv_dlopen_self" = xyes; then
8721 LDFLAGS="$LDFLAGS $link_static_flag"
8722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8723echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8724if test "${lt_cv_dlopen_self_static+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726else
8727 if test "$cross_compiling" = yes; then :
8728 lt_cv_dlopen_self_static=cross
8729else
John Criswell47fdd832003-07-14 16:52:07 +00008730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008731 lt_status=$lt_dlunknown
8732 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +00008733#line 8733 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008734#include "confdefs.h"
8735
8736#if HAVE_DLFCN_H
8737#include <dlfcn.h>
8738#endif
8739
8740#include <stdio.h>
8741
8742#ifdef RTLD_GLOBAL
8743# define LT_DLGLOBAL RTLD_GLOBAL
8744#else
8745# ifdef DL_GLOBAL
8746# define LT_DLGLOBAL DL_GLOBAL
8747# else
8748# define LT_DLGLOBAL 0
8749# endif
8750#endif
8751
8752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8753 find out it does not work in some platform. */
8754#ifndef LT_DLLAZY_OR_NOW
8755# ifdef RTLD_LAZY
8756# define LT_DLLAZY_OR_NOW RTLD_LAZY
8757# else
8758# ifdef DL_LAZY
8759# define LT_DLLAZY_OR_NOW DL_LAZY
8760# else
8761# ifdef RTLD_NOW
8762# define LT_DLLAZY_OR_NOW RTLD_NOW
8763# else
8764# ifdef DL_NOW
8765# define LT_DLLAZY_OR_NOW DL_NOW
8766# else
8767# define LT_DLLAZY_OR_NOW 0
8768# endif
8769# endif
8770# endif
8771# endif
8772#endif
8773
8774#ifdef __cplusplus
8775extern "C" void exit (int);
8776#endif
8777
8778void fnord() { int i=42;}
8779int main ()
8780{
8781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8782 int status = $lt_dlunknown;
8783
8784 if (self)
8785 {
8786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8788 /* dlclose (self); */
8789 }
8790
8791 exit (status);
8792}
8793EOF
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8799 (./conftest; exit; ) 2>/dev/null
8800 lt_status=$?
8801 case x$lt_status in
8802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8804 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8805 esac
8806 else :
8807 # compilation failed
8808 lt_cv_dlopen_self_static=no
8809 fi
8810fi
8811rm -fr conftest*
8812
8813
8814fi
8815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8816echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8817 fi
8818
8819 CPPFLAGS="$save_CPPFLAGS"
8820 LDFLAGS="$save_LDFLAGS"
8821 LIBS="$save_LIBS"
8822 ;;
8823 esac
8824
8825 case $lt_cv_dlopen_self in
8826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8827 *) enable_dlopen_self=unknown ;;
8828 esac
8829
8830 case $lt_cv_dlopen_self_static in
8831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8832 *) enable_dlopen_self_static=unknown ;;
8833 esac
8834fi
8835
8836
John Criswell47fdd832003-07-14 16:52:07 +00008837# Report which librarie types wil actually be built
8838echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8839echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8840echo "$as_me:$LINENO: result: $can_build_shared" >&5
8841echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008842
John Criswell47fdd832003-07-14 16:52:07 +00008843echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8844echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8845test "$can_build_shared" = "no" && enable_shared=no
8846
8847# On AIX, shared libraries and static libraries use the same namespace, and
8848# are all built from PIC.
8849case "$host_os" in
8850aix3*)
8851 test "$enable_shared" = yes && enable_static=no
8852 if test -n "$RANLIB"; then
8853 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8854 postinstall_cmds='$RANLIB $lib'
8855 fi
8856 ;;
8857
8858aix4*)
8859 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8860 test "$enable_shared" = yes && enable_static=no
8861 fi
8862 ;;
8863 darwin* | rhapsody*)
8864 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8865 archive_cmds_need_lc=no
8866 case "$host_os" in
8867 rhapsody* | darwin1.[012])
8868 allow_undefined_flag='-undefined suppress'
8869 ;;
8870 *) # Darwin 1.3 on
8871 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8872 ;;
8873 esac
8874 # FIXME: Relying on posixy $() will cause problems for
8875 # cross-compilation, but unfortunately the echo tests do not
8876 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8877 # `"' quotes if we put them in here... so don't!
8878 output_verbose_link_cmd='echo'
8879 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8880 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8881 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8882 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}'
8883 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}'
8884 hardcode_direct=no
8885 hardcode_automatic=yes
8886 hardcode_shlibpath_var=unsupported
8887 whole_archive_flag_spec='-all_load $convenience'
8888 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008889 fi
John Criswell7a73b802003-06-30 21:59:07 +00008890 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008891esac
8892echo "$as_me:$LINENO: result: $enable_shared" >&5
8893echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008894
John Criswell47fdd832003-07-14 16:52:07 +00008895echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8896echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8897# Make sure either enable_shared or enable_static is yes.
8898test "$enable_shared" = yes || enable_static=yes
8899echo "$as_me:$LINENO: result: $enable_static" >&5
8900echo "${ECHO_T}$enable_static" >&6
8901
8902# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008903# libtool distribution, otherwise you forgot to ship ltmain.sh
8904# with your package, and you will get complaints that there are
8905# no rules to generate ltmain.sh.
8906if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008907 # See if we are running on zsh, and set the options which allow our commands through
8908 # without removal of \ escapes.
8909 if test -n "${ZSH_VERSION+set}" ; then
8910 setopt NO_GLOB_SUBST
8911 fi
John Criswell7a73b802003-06-30 21:59:07 +00008912 # Now quote all the things that may contain metacharacters while being
8913 # careful not to overquote the AC_SUBSTed values. We take copies of the
8914 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8916 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8917 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8918 deplibs_check_method reload_flag reload_cmds need_locks \
8919 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8920 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008921 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008922 old_postinstall_cmds old_postuninstall_cmds \
8923 compiler \
8924 CC \
8925 LD \
8926 lt_prog_compiler_wl \
8927 lt_prog_compiler_pic \
8928 lt_prog_compiler_static \
8929 lt_prog_compiler_no_builtin_flag \
8930 export_dynamic_flag_spec \
8931 thread_safe_flag_spec \
8932 whole_archive_flag_spec \
8933 enable_shared_with_static_runtimes \
8934 old_archive_cmds \
8935 old_archive_from_new_cmds \
8936 predep_objects \
8937 postdep_objects \
8938 predeps \
8939 postdeps \
8940 compiler_lib_search_path \
8941 archive_cmds \
8942 archive_expsym_cmds \
8943 postinstall_cmds \
8944 postuninstall_cmds \
8945 old_archive_from_expsyms_cmds \
8946 allow_undefined_flag \
8947 no_undefined_flag \
8948 export_symbols_cmds \
8949 hardcode_libdir_flag_spec \
8950 hardcode_libdir_flag_spec_ld \
8951 hardcode_libdir_separator \
8952 hardcode_automatic \
8953 module_cmds \
8954 module_expsym_cmds \
8955 lt_cv_prog_compiler_c_o \
8956 exclude_expsyms \
8957 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008958
8959 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008960 old_archive_cmds | \
8961 old_archive_from_new_cmds | \
8962 archive_cmds | \
8963 archive_expsym_cmds | \
8964 module_cmds | \
8965 module_expsym_cmds | \
8966 old_archive_from_expsyms_cmds | \
8967 export_symbols_cmds | \
8968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008969 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008970 old_postinstall_cmds | old_postuninstall_cmds | \
8971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008972 # Double-quote double-evaled strings.
8973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8974 ;;
8975 *)
8976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8977 ;;
8978 esac
8979 done
8980
John Criswell47fdd832003-07-14 16:52:07 +00008981 case $lt_echo in
8982 *'\$0 --fallback-echo"')
8983 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8984 ;;
8985 esac
8986
8987cfgfile="${ofile}T"
8988 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8989 $rm -f "$cfgfile"
8990 { echo "$as_me:$LINENO: creating $ofile" >&5
8991echo "$as_me: creating $ofile" >&6;}
8992
8993 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008994#! $SHELL
8995
John Criswell47fdd832003-07-14 16:52:07 +00008996# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008997# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8998# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8999#
John Criswell47fdd832003-07-14 16:52:07 +00009000# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9001# Free Software Foundation, Inc.
9002#
9003# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00009004# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9005#
9006# This program is free software; you can redistribute it and/or modify
9007# it under the terms of the GNU General Public License as published by
9008# the Free Software Foundation; either version 2 of the License, or
9009# (at your option) any later version.
9010#
9011# This program is distributed in the hope that it will be useful, but
9012# WITHOUT ANY WARRANTY; without even the implied warranty of
9013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9014# General Public License for more details.
9015#
9016# You should have received a copy of the GNU General Public License
9017# along with this program; if not, write to the Free Software
9018# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9019#
9020# As a special exception to the GNU General Public License, if you
9021# distribute this file as part of a program that contains a
9022# configuration script generated by Autoconf, you may include it under
9023# the same distribution terms that you use for the rest of that program.
9024
John Criswell47fdd832003-07-14 16:52:07 +00009025# A sed program that does not truncate output.
9026SED=$lt_SED
9027
John Criswell7a73b802003-06-30 21:59:07 +00009028# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00009029Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00009030
9031# The HP-UX ksh and POSIX shell print the target directory to stdout
9032# if CDPATH is set.
9033if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9034
John Criswell47fdd832003-07-14 16:52:07 +00009035# The names of the tagged configurations supported by this script.
9036available_tags=
9037
John Criswell7a73b802003-06-30 21:59:07 +00009038# ### BEGIN LIBTOOL CONFIG
9039
9040# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9041
9042# Shell to use when invoking shell scripts.
9043SHELL=$lt_SHELL
9044
9045# Whether or not to build shared libraries.
9046build_libtool_libs=$enable_shared
9047
9048# Whether or not to build static libraries.
9049build_old_libs=$enable_static
9050
9051# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009052build_libtool_need_lc=$archive_cmds_need_lc
9053
9054# Whether or not to disallow shared libs when runtime libs are static
9055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009056
9057# Whether or not to optimize for fast installation.
9058fast_install=$enable_fast_install
9059
9060# The host system.
9061host_alias=$host_alias
9062host=$host
9063
9064# An echo program that does not interpret backslashes.
9065echo=$lt_echo
9066
9067# The archiver.
9068AR=$lt_AR
9069AR_FLAGS=$lt_AR_FLAGS
9070
John Criswell47fdd832003-07-14 16:52:07 +00009071# A C compiler.
9072LTCC=$lt_LTCC
9073
9074# A language-specific compiler.
9075CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009076
9077# Is the compiler the GNU C compiler?
9078with_gcc=$GCC
9079
John Criswell47fdd832003-07-14 16:52:07 +00009080# An ERE matcher.
9081EGREP=$lt_EGREP
9082
John Criswell7a73b802003-06-30 21:59:07 +00009083# The linker used to build libraries.
9084LD=$lt_LD
9085
9086# Whether we need hard or soft links.
9087LN_S=$lt_LN_S
9088
9089# A BSD-compatible nm program.
9090NM=$lt_NM
9091
9092# A symbol stripping program
9093STRIP=$STRIP
9094
9095# Used to examine libraries when file_magic_cmd begins "file"
9096MAGIC_CMD=$MAGIC_CMD
9097
9098# Used on cygwin: DLL creation program.
9099DLLTOOL="$DLLTOOL"
9100
9101# Used on cygwin: object dumper.
9102OBJDUMP="$OBJDUMP"
9103
9104# Used on cygwin: assembler.
9105AS="$AS"
9106
9107# The name of the directory that contains temporary libtool files.
9108objdir=$objdir
9109
9110# How to create reloadable object files.
9111reload_flag=$lt_reload_flag
9112reload_cmds=$lt_reload_cmds
9113
9114# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009115wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009116
9117# Object file suffix (normally "o").
9118objext="$ac_objext"
9119
9120# Old archive suffix (normally "a").
9121libext="$libext"
9122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Shared library suffix (normally ".so").
9124shrext='$shrext'
9125
John Criswell7a73b802003-06-30 21:59:07 +00009126# Executable file suffix (normally "").
9127exeext="$exeext"
9128
9129# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009130pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009131pic_mode=$pic_mode
9132
John Criswell47fdd832003-07-14 16:52:07 +00009133# What is the maximum length of a command?
9134max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009135
John Criswell47fdd832003-07-14 16:52:07 +00009136# Does compiler simultaneously support -c and -o options?
9137compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009138
9139# Must we lock files when doing compilation ?
9140need_locks=$lt_need_locks
9141
9142# Do we need the lib prefix for modules?
9143need_lib_prefix=$need_lib_prefix
9144
9145# Do we need a version for libraries?
9146need_version=$need_version
9147
9148# Whether dlopen is supported.
9149dlopen_support=$enable_dlopen
9150
9151# Whether dlopen of programs is supported.
9152dlopen_self=$enable_dlopen_self
9153
9154# Whether dlopen of statically linked programs is supported.
9155dlopen_self_static=$enable_dlopen_self_static
9156
9157# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009158link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009159
9160# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009162
9163# Compiler flag to allow reflexive dlopens.
9164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9165
9166# Compiler flag to generate shared objects directly from archives.
9167whole_archive_flag_spec=$lt_whole_archive_flag_spec
9168
9169# Compiler flag to generate thread-safe objects.
9170thread_safe_flag_spec=$lt_thread_safe_flag_spec
9171
9172# Library versioning type.
9173version_type=$version_type
9174
9175# Format of library name prefix.
9176libname_spec=$lt_libname_spec
9177
9178# List of archive names. First name is the real one, the rest are links.
9179# The last name is the one that the linker finds with -lNAME.
9180library_names_spec=$lt_library_names_spec
9181
9182# The coded name of the library, if different from the real name.
9183soname_spec=$lt_soname_spec
9184
9185# Commands used to build and install an old-style archive.
9186RANLIB=$lt_RANLIB
9187old_archive_cmds=$lt_old_archive_cmds
9188old_postinstall_cmds=$lt_old_postinstall_cmds
9189old_postuninstall_cmds=$lt_old_postuninstall_cmds
9190
9191# Create an old-style archive from a shared archive.
9192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9193
9194# Create a temporary old-style archive to link instead of a shared archive.
9195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9196
9197# Commands used to build and install a shared archive.
9198archive_cmds=$lt_archive_cmds
9199archive_expsym_cmds=$lt_archive_expsym_cmds
9200postinstall_cmds=$lt_postinstall_cmds
9201postuninstall_cmds=$lt_postuninstall_cmds
9202
John Criswell47fdd832003-07-14 16:52:07 +00009203# Commands used to build a loadable module (assumed same as above if empty)
9204module_cmds=$lt_module_cmds
9205module_expsym_cmds=$lt_module_expsym_cmds
9206
John Criswell7a73b802003-06-30 21:59:07 +00009207# Commands to strip libraries.
9208old_striplib=$lt_old_striplib
9209striplib=$lt_striplib
9210
John Criswell47fdd832003-07-14 16:52:07 +00009211# Dependencies to place before the objects being linked to create a
9212# shared library.
9213predep_objects=$lt_predep_objects
9214
9215# Dependencies to place after the objects being linked to create a
9216# shared library.
9217postdep_objects=$lt_postdep_objects
9218
9219# Dependencies to place before the objects being linked to create a
9220# shared library.
9221predeps=$lt_predeps
9222
9223# Dependencies to place after the objects being linked to create a
9224# shared library.
9225postdeps=$lt_postdeps
9226
9227# The library search path used internally by the compiler when linking
9228# a shared library.
9229compiler_lib_search_path=$lt_compiler_lib_search_path
9230
John Criswell7a73b802003-06-30 21:59:07 +00009231# Method to check whether dependent libraries are shared objects.
9232deplibs_check_method=$lt_deplibs_check_method
9233
9234# Command to use when deplibs_check_method == file_magic.
9235file_magic_cmd=$lt_file_magic_cmd
9236
9237# Flag that allows shared libraries with undefined symbols to be built.
9238allow_undefined_flag=$lt_allow_undefined_flag
9239
9240# Flag that forces no undefined symbols.
9241no_undefined_flag=$lt_no_undefined_flag
9242
9243# Commands used to finish a libtool library installation in a directory.
9244finish_cmds=$lt_finish_cmds
9245
9246# Same as above, but a single script fragment to be evaled but not shown.
9247finish_eval=$lt_finish_eval
9248
9249# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009250global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009251
9252# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009253global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009254
9255# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009256global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009257
9258# This is the shared library runtime path variable.
9259runpath_var=$runpath_var
9260
9261# This is the shared library path variable.
9262shlibpath_var=$shlibpath_var
9263
9264# Is shlibpath searched before the hard-coded library search path?
9265shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9266
9267# How to hardcode a shared library path into an executable.
9268hardcode_action=$hardcode_action
9269
9270# Whether we should hardcode library paths into libraries.
9271hardcode_into_libs=$hardcode_into_libs
9272
9273# Flag to hardcode \$libdir into a binary during linking.
9274# This must work even if \$libdir does not exist.
9275hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9276
John Criswell47fdd832003-07-14 16:52:07 +00009277# If ld is used when linking, flag to hardcode \$libdir into
9278# a binary during linking. This must work even if \$libdir does
9279# not exist.
9280hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9281
John Criswell7a73b802003-06-30 21:59:07 +00009282# Whether we need a single -rpath flag with a separated argument.
9283hardcode_libdir_separator=$lt_hardcode_libdir_separator
9284
John Criswell47fdd832003-07-14 16:52:07 +00009285# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009286# resulting binary.
9287hardcode_direct=$hardcode_direct
9288
9289# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9290# resulting binary.
9291hardcode_minus_L=$hardcode_minus_L
9292
9293# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9294# the resulting binary.
9295hardcode_shlibpath_var=$hardcode_shlibpath_var
9296
John Criswell47fdd832003-07-14 16:52:07 +00009297# Set to yes if building a shared library automatically hardcodes DIR into the library
9298# and all subsequent libraries and executables linked against it.
9299hardcode_automatic=$hardcode_automatic
9300
John Criswell7a73b802003-06-30 21:59:07 +00009301# Variables whose values should be saved in libtool wrapper scripts and
9302# restored at relink time.
9303variables_saved_for_relink="$variables_saved_for_relink"
9304
9305# Whether libtool must link a program against all its dependency libraries.
9306link_all_deplibs=$link_all_deplibs
9307
9308# Compile-time system search path for libraries
9309sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9310
9311# Run-time system search path for libraries
9312sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9313
9314# Fix the shell variable \$srcfile for the compiler.
9315fix_srcfile_path="$fix_srcfile_path"
9316
9317# Set to yes if exported symbols are required.
9318always_export_symbols=$always_export_symbols
9319
9320# The commands to list exported symbols.
9321export_symbols_cmds=$lt_export_symbols_cmds
9322
9323# The commands to extract the exported symbol list from a shared archive.
9324extract_expsyms_cmds=$lt_extract_expsyms_cmds
9325
9326# Symbols that should not be listed in the preloaded symbols.
9327exclude_expsyms=$lt_exclude_expsyms
9328
9329# Symbols that must always be exported.
9330include_expsyms=$lt_include_expsyms
9331
9332# ### END LIBTOOL CONFIG
9333
9334__EOF__
9335
John Criswell47fdd832003-07-14 16:52:07 +00009336
John Criswell7a73b802003-06-30 21:59:07 +00009337 case $host_os in
9338 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009339 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009340
9341# AIX sometimes has problems with the GCC collect2 program. For some
9342# reason, if we set the COLLECT_NAMES environment variable, the problems
9343# vanish in a puff of smoke.
9344if test "X${COLLECT_NAMES+set}" != Xset; then
9345 COLLECT_NAMES=
9346 export COLLECT_NAMES
9347fi
9348EOF
9349 ;;
9350 esac
9351
John Criswell7a73b802003-06-30 21:59:07 +00009352 # We use sed instead of cat because bash on DJGPP gets confused if
9353 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9354 # text mode, it properly converts lines to CR/LF. This bash problem
9355 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009356 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009357
John Criswell47fdd832003-07-14 16:52:07 +00009358 mv -f "$cfgfile" "$ofile" || \
9359 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009360 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009361
9362else
9363 # If there is no Makefile yet, we rely on a make rule to execute
9364 # `config.status --recheck' to rerun these tests and create the
9365 # libtool script then.
9366 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009367fi
John Criswell7a73b802003-06-30 21:59:07 +00009368
9369
John Criswell47fdd832003-07-14 16:52:07 +00009370ac_ext=c
9371ac_cpp='$CPP $CPPFLAGS'
9372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374ac_compiler_gnu=$ac_cv_c_compiler_gnu
9375
9376CC="$lt_save_CC"
9377
9378
9379# Check whether --with-tags or --without-tags was given.
9380if test "${with_tags+set}" = set; then
9381 withval="$with_tags"
9382 tagnames="$withval"
9383fi;
9384
9385if test -f "$ltmain" && test -n "$tagnames"; then
9386 if test ! -f "${ofile}"; then
9387 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9388echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9389 fi
9390
9391 if test -z "$LTCC"; then
9392 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9393 if test -z "$LTCC"; then
9394 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9395echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9396 else
9397 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9398echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9399 fi
9400 fi
9401
9402 # Extract list of available tagged configurations in $ofile.
9403 # Note that this assumes the entire list is on one line.
9404 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9405
9406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9407 for tagname in $tagnames; do
9408 IFS="$lt_save_ifs"
9409 # Check whether tagname contains only valid characters
9410 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9411 "") ;;
9412 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9413echo "$as_me: error: invalid tag name: $tagname" >&2;}
9414 { (exit 1); exit 1; }; }
9415 ;;
9416 esac
9417
9418 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9419 then
9420 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9421echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9422 { (exit 1); exit 1; }; }
9423 fi
9424
9425 # Update the list of available tags.
9426 if test -n "$tagname"; then
9427 echo appending configuration tag \"$tagname\" to $ofile
9428
9429 case $tagname in
9430 CXX)
9431 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9432 ac_ext=cc
9433ac_cpp='$CXXCPP $CPPFLAGS'
9434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9437
9438
9439
9440
9441archive_cmds_need_lc_CXX=no
9442allow_undefined_flag_CXX=
9443always_export_symbols_CXX=no
9444archive_expsym_cmds_CXX=
9445export_dynamic_flag_spec_CXX=
9446hardcode_direct_CXX=no
9447hardcode_libdir_flag_spec_CXX=
9448hardcode_libdir_flag_spec_ld_CXX=
9449hardcode_libdir_separator_CXX=
9450hardcode_minus_L_CXX=no
9451hardcode_automatic_CXX=no
9452module_cmds_CXX=
9453module_expsym_cmds_CXX=
9454link_all_deplibs_CXX=unknown
9455old_archive_cmds_CXX=$old_archive_cmds
9456no_undefined_flag_CXX=
9457whole_archive_flag_spec_CXX=
9458enable_shared_with_static_runtimes_CXX=no
9459
9460# Dependencies to place before and after the object being linked:
9461predep_objects_CXX=
9462postdep_objects_CXX=
9463predeps_CXX=
9464postdeps_CXX=
9465compiler_lib_search_path_CXX=
9466
9467# Source file extension for C++ test sources.
9468ac_ext=cc
9469
9470# Object file extension for compiled C++ test sources.
9471objext=o
9472objext_CXX=$objext
9473
9474# Code to be used in simple compile tests
9475lt_simple_compile_test_code="int some_variable = 0;\n"
9476
9477# Code to be used in simple link tests
9478lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9479
9480# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9481
9482# If no C compiler was specified, use CC.
9483LTCC=${LTCC-"$CC"}
9484
9485# Allow CC to be a program name with arguments.
9486compiler=$CC
9487
9488
9489# Allow CC to be a program name with arguments.
9490lt_save_CC=$CC
9491lt_save_LD=$LD
9492lt_save_GCC=$GCC
9493GCC=$GXX
9494lt_save_with_gnu_ld=$with_gnu_ld
9495lt_save_path_LD=$lt_cv_path_LD
9496if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9497 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9498else
9499 unset lt_cv_prog_gnu_ld
9500fi
9501if test -n "${lt_cv_path_LDCXX+set}"; then
9502 lt_cv_path_LD=$lt_cv_path_LDCXX
9503else
9504 unset lt_cv_path_LD
9505fi
9506test -z "${LDCXX+set}" || LD=$LDCXX
9507CC=${CXX-"c++"}
9508compiler=$CC
9509compiler_CXX=$CC
9510cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9511
9512# We don't want -fno-exception wen compiling C++ code, so set the
9513# no_builtin_flag separately
9514if test "$GXX" = yes; then
9515 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9516else
9517 lt_prog_compiler_no_builtin_flag_CXX=
9518fi
9519
9520if test "$GXX" = yes; then
9521 # Set up default GNU C++ configuration
9522
9523
9524# Check whether --with-gnu-ld or --without-gnu-ld was given.
9525if test "${with_gnu_ld+set}" = set; then
9526 withval="$with_gnu_ld"
9527 test "$withval" = no || with_gnu_ld=yes
9528else
9529 with_gnu_ld=no
9530fi;
9531ac_prog=ld
9532if test "$GCC" = yes; then
9533 # Check if gcc -print-prog-name=ld gives a path.
9534 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9535echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9536 case $host in
9537 *-*-mingw*)
9538 # gcc leaves a trailing carriage return which upsets mingw
9539 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9540 *)
9541 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9542 esac
9543 case $ac_prog in
9544 # Accept absolute paths.
9545 [\\/]* | ?:[\\/]*)
9546 re_direlt='/[^/][^/]*/\.\./'
9547 # Canonicalize the path of ld
9548 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9549 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9550 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9551 done
9552 test -z "$LD" && LD="$ac_prog"
9553 ;;
9554 "")
9555 # If it fails, then pretend we aren't using GCC.
9556 ac_prog=ld
9557 ;;
9558 *)
9559 # If it is relative, then search for the first ld in PATH.
9560 with_gnu_ld=unknown
9561 ;;
9562 esac
9563elif test "$with_gnu_ld" = yes; then
9564 echo "$as_me:$LINENO: checking for GNU ld" >&5
9565echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9566else
9567 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9568echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9569fi
9570if test "${lt_cv_path_LD+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573 if test -z "$LD"; then
9574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9575 for ac_dir in $PATH; do
9576 IFS="$lt_save_ifs"
9577 test -z "$ac_dir" && ac_dir=.
9578 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9579 lt_cv_path_LD="$ac_dir/$ac_prog"
9580 # Check to see if the program is GNU ld. I'd rather use --version,
9581 # but apparently some GNU ld's only accept -v.
9582 # Break only if it was the GNU/non-GNU ld that we prefer.
9583 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9584 *GNU* | *'with BFD'*)
9585 test "$with_gnu_ld" != no && break
9586 ;;
9587 *)
9588 test "$with_gnu_ld" != yes && break
9589 ;;
9590 esac
9591 fi
9592 done
9593 IFS="$lt_save_ifs"
9594else
9595 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9596fi
9597fi
9598
9599LD="$lt_cv_path_LD"
9600if test -n "$LD"; then
9601 echo "$as_me:$LINENO: result: $LD" >&5
9602echo "${ECHO_T}$LD" >&6
9603else
9604 echo "$as_me:$LINENO: result: no" >&5
9605echo "${ECHO_T}no" >&6
9606fi
9607test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9608echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9609 { (exit 1); exit 1; }; }
9610echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9611echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9612if test "${lt_cv_prog_gnu_ld+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614else
9615 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9616case `"$LD" -v 2>&1 </dev/null` in
9617*GNU* | *'with BFD'*)
9618 lt_cv_prog_gnu_ld=yes
9619 ;;
9620*)
9621 lt_cv_prog_gnu_ld=no
9622 ;;
9623esac
9624fi
9625echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9626echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9627with_gnu_ld=$lt_cv_prog_gnu_ld
9628
9629
9630
9631 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9632 # archiving commands below assume that GNU ld is being used.
9633 if test "$with_gnu_ld" = yes; then
9634 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 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'
9636
9637 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9638 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9639
9640 # If archive_cmds runs LD, not CC, wlarc should be empty
9641 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9642 # investigate it a little bit more. (MM)
9643 wlarc='${wl}'
9644
9645 # ancient GNU ld didn't support --whole-archive et. al.
9646 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9647 grep 'no-whole-archive' > /dev/null; then
9648 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9649 else
9650 whole_archive_flag_spec_CXX=
9651 fi
9652 else
9653 with_gnu_ld=no
9654 wlarc=
9655
9656 # A generic and very simple default shared library creation
9657 # command for GNU C++ for the case where it uses the native
9658 # linker, instead of GNU ld. If possible, this setting should
9659 # overridden to take advantage of the native linker features on
9660 # the platform it is being used on.
9661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9662 fi
9663
9664 # Commands to make compiler produce verbose output that lists
9665 # what "hidden" libraries, object files and flags are used when
9666 # linking a shared library.
9667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9668
9669else
9670 GXX=no
9671 with_gnu_ld=no
9672 wlarc=
9673fi
9674
9675# PORTME: fill in a description of your system's C++ link characteristics
9676echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9677echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9678ld_shlibs_CXX=yes
9679case $host_os in
9680 aix3*)
9681 # FIXME: insert proper C++ library support
9682 ld_shlibs_CXX=no
9683 ;;
9684 aix4* | aix5*)
9685 if test "$host_cpu" = ia64; then
9686 # On IA64, the linker does run time linking by default, so we don't
9687 # have to do anything special.
9688 aix_use_runtimelinking=no
9689 exp_sym_flag='-Bexport'
9690 no_entry_flag=""
9691 else
9692 aix_use_runtimelinking=no
9693
9694 # Test if we are trying to use run time linking or normal
9695 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9696 # need to do runtime linking.
9697 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9698 for ld_flag in $LDFLAGS; do
9699 case $ld_flag in
9700 *-brtl*)
9701 aix_use_runtimelinking=yes
9702 break
9703 ;;
9704 esac
9705 done
9706 esac
9707
9708 exp_sym_flag='-bexport'
9709 no_entry_flag='-bnoentry'
9710 fi
9711
9712 # When large executables or shared objects are built, AIX ld can
9713 # have problems creating the table of contents. If linking a library
9714 # or program results in "error TOC overflow" add -mminimal-toc to
9715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9717
9718 archive_cmds_CXX=''
9719 hardcode_direct_CXX=yes
9720 hardcode_libdir_separator_CXX=':'
9721 link_all_deplibs_CXX=yes
9722
9723 if test "$GXX" = yes; then
9724 case $host_os in aix4.012|aix4.012.*)
9725 # We only want to do this on AIX 4.2 and lower, the check
9726 # below for broken collect2 doesn't work under 4.3+
9727 collect2name=`${CC} -print-prog-name=collect2`
9728 if test -f "$collect2name" && \
9729 strings "$collect2name" | grep resolve_lib_name >/dev/null
9730 then
9731 # We have reworked collect2
9732 hardcode_direct_CXX=yes
9733 else
9734 # We have old collect2
9735 hardcode_direct_CXX=unsupported
9736 # It fails to find uninstalled libraries when the uninstalled
9737 # path is not listed in the libpath. Setting hardcode_minus_L
9738 # to unsupported forces relinking
9739 hardcode_minus_L_CXX=yes
9740 hardcode_libdir_flag_spec_CXX='-L$libdir'
9741 hardcode_libdir_separator_CXX=
9742 fi
9743 esac
9744 shared_flag='-shared'
9745 else
9746 # not using gcc
9747 if test "$host_cpu" = ia64; then
9748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9749 # chokes on -Wl,-G. The following line is correct:
9750 shared_flag='-G'
9751 else
9752 if test "$aix_use_runtimelinking" = yes; then
9753 shared_flag='${wl}-G'
9754 else
9755 shared_flag='${wl}-bM:SRE'
9756 fi
9757 fi
9758 fi
9759
9760 # It seems that -bexpall does not export symbols beginning with
9761 # underscore (_), so it is better to generate a list of symbols to export.
9762 always_export_symbols_CXX=yes
9763 if test "$aix_use_runtimelinking" = yes; then
9764 # Warning - without using the other runtime loading flags (-brtl),
9765 # -berok will link without error, but may produce a broken library.
9766 allow_undefined_flag_CXX='-berok'
9767 # Determine the default libpath from the value encoded in an empty executable.
9768 cat >conftest.$ac_ext <<_ACEOF
9769#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
9774/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009775
John Criswell47fdd832003-07-14 16:52:07 +00009776int
9777main ()
9778{
9779
9780 ;
9781 return 0;
9782}
9783_ACEOF
9784rm -f conftest.$ac_objext conftest$ac_exeext
9785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>&5
9787 ac_status=$?
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -s conftest$ac_exeext'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; }; then
9796
9797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9798}'`
9799# Check for a 64-bit object if we didn't find anything.
9800if 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; }
9801}'`; fi
9802else
9803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009804sed 's/^/| /' conftest.$ac_ext >&5
9805
John Criswell47fdd832003-07-14 16:52:07 +00009806fi
9807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9808if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9809
9810 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9811
9812 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"
9813 else
9814 if test "$host_cpu" = ia64; then
9815 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9816 allow_undefined_flag_CXX="-z nodefs"
9817 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"
9818 else
9819 # Determine the default libpath from the value encoded in an empty executable.
9820 cat >conftest.$ac_ext <<_ACEOF
9821#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009822/* confdefs.h. */
9823_ACEOF
9824cat confdefs.h >>conftest.$ac_ext
9825cat >>conftest.$ac_ext <<_ACEOF
9826/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009827
John Criswell47fdd832003-07-14 16:52:07 +00009828int
9829main ()
9830{
9831
9832 ;
9833 return 0;
9834}
9835_ACEOF
9836rm -f conftest.$ac_objext conftest$ac_exeext
9837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838 (eval $ac_link) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848
9849aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9850}'`
9851# Check for a 64-bit object if we didn't find anything.
9852if 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; }
9853}'`; fi
9854else
9855 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009856sed 's/^/| /' conftest.$ac_ext >&5
9857
John Criswell47fdd832003-07-14 16:52:07 +00009858fi
9859rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9860if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9861
9862 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9863 # Warning - without using the other run time loading flags,
9864 # -berok will link without error, but may produce a broken library.
9865 no_undefined_flag_CXX=' ${wl}-bernotok'
9866 allow_undefined_flag_CXX=' ${wl}-berok'
9867 # -bexpall does not export symbols beginning with underscore (_)
9868 always_export_symbols_CXX=yes
9869 # Exported symbols can be pulled into shared objects from archives
9870 whole_archive_flag_spec_CXX=' '
9871 archive_cmds_need_lc_CXX=yes
9872 # This is similar to how AIX traditionally builds it's shared libraries.
9873 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'
9874 fi
9875 fi
9876 ;;
9877 chorus*)
9878 case $cc_basename in
9879 *)
9880 # FIXME: insert proper C++ library support
9881 ld_shlibs_CXX=no
9882 ;;
9883 esac
9884 ;;
9885
9886 cygwin* | mingw* | pw32*)
9887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9888 # as there is no search path for DLLs.
9889 hardcode_libdir_flag_spec_CXX='-L$libdir'
9890 allow_undefined_flag_CXX=unsupported
9891 always_export_symbols_CXX=no
9892 enable_shared_with_static_runtimes_CXX=yes
9893
9894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9895 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'
9896 # If the export-symbols file already is a .def file (1st line
9897 # is EXPORTS), use it as is; otherwise, prepend...
9898 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9899 cp $export_symbols $output_objdir/$soname.def;
9900 else
9901 echo EXPORTS > $output_objdir/$soname.def;
9902 cat $export_symbols >> $output_objdir/$soname.def;
9903 fi~
9904 $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'
9905 else
9906 ld_shlibs_CXX=no
9907 fi
9908 ;;
9909
9910 darwin* | rhapsody*)
9911 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9912 archive_cmds_need_lc_CXX=no
9913 case "$host_os" in
9914 rhapsody* | darwin1.[012])
9915 allow_undefined_flag_CXX='-undefined suppress'
9916 ;;
9917 *) # Darwin 1.3 on
9918 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9919 ;;
9920 esac
9921 lt_int_apple_cc_single_mod=no
9922 output_verbose_link_cmd='echo'
9923 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9924 lt_int_apple_cc_single_mod=yes
9925 fi
9926 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9927 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9928 else
9929 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'
9930 fi
9931 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9932
9933 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9934 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9935 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}'
9936 else
9937 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}'
9938 fi
9939 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}'
9940 hardcode_direct_CXX=no
9941 hardcode_automatic_CXX=yes
9942 hardcode_shlibpath_var_CXX=unsupported
9943 whole_archive_flag_spec_CXX='-all_load $convenience'
9944 link_all_deplibs_CXX=yes
9945 fi
9946 ;;
9947
9948 dgux*)
9949 case $cc_basename in
9950 ec++)
9951 # FIXME: insert proper C++ library support
9952 ld_shlibs_CXX=no
9953 ;;
9954 ghcx)
9955 # Green Hills C++ Compiler
9956 # FIXME: insert proper C++ library support
9957 ld_shlibs_CXX=no
9958 ;;
9959 *)
9960 # FIXME: insert proper C++ library support
9961 ld_shlibs_CXX=no
9962 ;;
9963 esac
9964 ;;
9965 freebsd12*)
9966 # C++ shared libraries reported to be fairly broken before switch to ELF
9967 ld_shlibs_CXX=no
9968 ;;
9969 freebsd-elf*)
9970 archive_cmds_need_lc_CXX=no
9971 ;;
9972 freebsd*)
9973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9974 # conventions
9975 ld_shlibs_CXX=yes
9976 ;;
9977 gnu*)
9978 ;;
9979 hpux9*)
9980 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9981 hardcode_libdir_separator_CXX=:
9982 export_dynamic_flag_spec_CXX='${wl}-E'
9983 hardcode_direct_CXX=yes
9984 hardcode_minus_L_CXX=yes # Not in the search PATH,
9985 # but as the default
9986 # location of the library.
9987
9988 case $cc_basename in
9989 CC)
9990 # FIXME: insert proper C++ library support
9991 ld_shlibs_CXX=no
9992 ;;
9993 aCC)
9994 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'
9995 # Commands to make compiler produce verbose output that lists
9996 # what "hidden" libraries, object files and flags are used when
9997 # linking a shared library.
9998 #
9999 # There doesn't appear to be a way to prevent this compiler from
10000 # explicitly linking system object files so we need to strip them
10001 # from the output so that they don't get included in the library
10002 # dependencies.
10003 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'
10004 ;;
10005 *)
10006 if test "$GXX" = yes; then
10007 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'
10008 else
10009 # FIXME: insert proper C++ library support
10010 ld_shlibs_CXX=no
10011 fi
10012 ;;
10013 esac
10014 ;;
10015 hpux10*|hpux11*)
10016 if test $with_gnu_ld = no; then
10017 case "$host_cpu" in
10018 hppa*64*)
10019 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10020 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10021 hardcode_libdir_separator_CXX=:
10022 ;;
10023 ia64*)
10024 hardcode_libdir_flag_spec_CXX='-L$libdir'
10025 ;;
10026 *)
10027 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10028 hardcode_libdir_separator_CXX=:
10029 export_dynamic_flag_spec_CXX='${wl}-E'
10030 ;;
10031 esac
10032 fi
10033 case "$host_cpu" in
10034 hppa*64*)
10035 hardcode_direct_CXX=no
10036 hardcode_shlibpath_var_CXX=no
10037 ;;
10038 ia64*)
10039 hardcode_direct_CXX=no
10040 hardcode_shlibpath_var_CXX=no
10041 hardcode_minus_L_CXX=yes # Not in the search PATH,
10042 # but as the default
10043 # location of the library.
10044 ;;
10045 *)
10046 hardcode_direct_CXX=yes
10047 hardcode_minus_L_CXX=yes # Not in the search PATH,
10048 # but as the default
10049 # location of the library.
10050 ;;
10051 esac
10052
10053 case $cc_basename in
10054 CC)
10055 # FIXME: insert proper C++ library support
10056 ld_shlibs_CXX=no
10057 ;;
10058 aCC)
10059 case "$host_cpu" in
10060 hppa*64*|ia64*)
10061 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10062 ;;
10063 *)
10064 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10065 ;;
10066 esac
10067 # Commands to make compiler produce verbose output that lists
10068 # what "hidden" libraries, object files and flags are used when
10069 # linking a shared library.
10070 #
10071 # There doesn't appear to be a way to prevent this compiler from
10072 # explicitly linking system object files so we need to strip them
10073 # from the output so that they don't get included in the library
10074 # dependencies.
10075 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'
10076 ;;
10077 *)
10078 if test "$GXX" = yes; then
10079 if test $with_gnu_ld = no; then
10080 case "$host_cpu" in
10081 ia64*|hppa*64*)
10082 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10083 ;;
10084 *)
10085 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'
10086 ;;
10087 esac
10088 fi
10089 else
10090 # FIXME: insert proper C++ library support
10091 ld_shlibs_CXX=no
10092 fi
10093 ;;
10094 esac
10095 ;;
10096 irix5* | irix6*)
10097 case $cc_basename in
10098 CC)
10099 # SGI C++
10100 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'
10101
10102 # Archives containing C++ object files must be created using
10103 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10104 # necessary to make sure instantiated templates are included
10105 # in the archive.
10106 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10107 ;;
10108 *)
10109 if test "$GXX" = yes; then
10110 if test "$with_gnu_ld" = no; then
10111 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'
10112 else
10113 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'
10114 fi
10115 fi
10116 link_all_deplibs_CXX=yes
10117 ;;
10118 esac
10119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator_CXX=:
10121 ;;
10122 linux*)
10123 case $cc_basename in
10124 KCC)
10125 # Kuck and Associates, Inc. (KAI) C++ Compiler
10126
10127 # KCC will only create a shared library if the output file
10128 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10129 # to its proper name (with version) after linking.
10130 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'
10131 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'
10132 # Commands to make compiler produce verbose output that lists
10133 # what "hidden" libraries, object files and flags are used when
10134 # linking a shared library.
10135 #
10136 # There doesn't appear to be a way to prevent this compiler from
10137 # explicitly linking system object files so we need to strip them
10138 # from the output so that they don't get included in the library
10139 # dependencies.
10140 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'
10141
10142 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10143 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10144
10145 # Archives containing C++ object files must be created using
10146 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10147 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10148 ;;
10149 icpc)
10150 # Intel C++
10151 with_gnu_ld=yes
10152 archive_cmds_need_lc_CXX=no
10153 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154 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'
10155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10157 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10158 ;;
10159 cxx)
10160 # Compaq C++
10161 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10162 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'
10163
10164 runpath_var=LD_RUN_PATH
10165 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10166 hardcode_libdir_separator_CXX=:
10167
10168 # Commands to make compiler produce verbose output that lists
10169 # what "hidden" libraries, object files and flags are used when
10170 # linking a shared library.
10171 #
10172 # There doesn't appear to be a way to prevent this compiler from
10173 # explicitly linking system object files so we need to strip them
10174 # from the output so that they don't get included in the library
10175 # dependencies.
10176 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'
10177 ;;
10178 esac
10179 ;;
10180 lynxos*)
10181 # FIXME: insert proper C++ library support
10182 ld_shlibs_CXX=no
10183 ;;
10184 m88k*)
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10187 ;;
10188 mvs*)
10189 case $cc_basename in
10190 cxx)
10191 # FIXME: insert proper C++ library support
10192 ld_shlibs_CXX=no
10193 ;;
10194 *)
10195 # FIXME: insert proper C++ library support
10196 ld_shlibs_CXX=no
10197 ;;
10198 esac
10199 ;;
10200 netbsd*)
10201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10202 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10203 wlarc=
10204 hardcode_libdir_flag_spec_CXX='-R$libdir'
10205 hardcode_direct_CXX=yes
10206 hardcode_shlibpath_var_CXX=no
10207 fi
10208 # Workaround some broken pre-1.5 toolchains
10209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10210 ;;
10211 osf3*)
10212 case $cc_basename in
10213 KCC)
10214 # Kuck and Associates, Inc. (KAI) C++ Compiler
10215
10216 # KCC will only create a shared library if the output file
10217 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10218 # to its proper name (with version) after linking.
10219 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'
10220
10221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10222 hardcode_libdir_separator_CXX=:
10223
10224 # Archives containing C++ object files must be created using
10225 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10226 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10227
10228 ;;
10229 RCC)
10230 # Rational C++ 2.4.1
10231 # FIXME: insert proper C++ library support
10232 ld_shlibs_CXX=no
10233 ;;
10234 cxx)
10235 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10236 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'
10237
10238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10239 hardcode_libdir_separator_CXX=:
10240
10241 # Commands to make compiler produce verbose output that lists
10242 # what "hidden" libraries, object files and flags are used when
10243 # linking a shared library.
10244 #
10245 # There doesn't appear to be a way to prevent this compiler from
10246 # explicitly linking system object files so we need to strip them
10247 # from the output so that they don't get included in the library
10248 # dependencies.
10249 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'
10250 ;;
10251 *)
10252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10253 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10254 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'
10255
10256 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10257 hardcode_libdir_separator_CXX=:
10258
10259 # Commands to make compiler produce verbose output that lists
10260 # what "hidden" libraries, object files and flags are used when
10261 # linking a shared library.
10262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10263
10264 else
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 fi
10268 ;;
10269 esac
10270 ;;
10271 osf4* | osf5*)
10272 case $cc_basename in
10273 KCC)
10274 # Kuck and Associates, Inc. (KAI) C++ Compiler
10275
10276 # KCC will only create a shared library if the output file
10277 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10278 # to its proper name (with version) after linking.
10279 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'
10280
10281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10282 hardcode_libdir_separator_CXX=:
10283
10284 # Archives containing C++ object files must be created using
10285 # the KAI C++ compiler.
10286 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10287 ;;
10288 RCC)
10289 # Rational C++ 2.4.1
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 ;;
10293 cxx)
10294 allow_undefined_flag_CXX=' -expect_unresolved \*'
10295 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'
10296 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10297 echo "-hidden">> $lib.exp~
10298 $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~
10299 $rm $lib.exp'
10300
10301 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10302 hardcode_libdir_separator_CXX=:
10303
10304 # Commands to make compiler produce verbose output that lists
10305 # what "hidden" libraries, object files and flags are used when
10306 # linking a shared library.
10307 #
10308 # There doesn't appear to be a way to prevent this compiler from
10309 # explicitly linking system object files so we need to strip them
10310 # from the output so that they don't get included in the library
10311 # dependencies.
10312 output_verbose_link_cmd='templist=`$CC -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'
10313 ;;
10314 *)
10315 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10316 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10317 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'
10318
10319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10320 hardcode_libdir_separator_CXX=:
10321
10322 # Commands to make compiler produce verbose output that lists
10323 # what "hidden" libraries, object files and flags are used when
10324 # linking a shared library.
10325 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10326
10327 else
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 fi
10331 ;;
10332 esac
10333 ;;
10334 psos*)
10335 # FIXME: insert proper C++ library support
10336 ld_shlibs_CXX=no
10337 ;;
10338 sco*)
10339 archive_cmds_need_lc_CXX=no
10340 case $cc_basename in
10341 CC)
10342 # FIXME: insert proper C++ library support
10343 ld_shlibs_CXX=no
10344 ;;
10345 *)
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10348 ;;
10349 esac
10350 ;;
10351 sunos4*)
10352 case $cc_basename in
10353 CC)
10354 # Sun C++ 4.x
10355 # FIXME: insert proper C++ library support
10356 ld_shlibs_CXX=no
10357 ;;
10358 lcc)
10359 # Lucid
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 *)
10364 # FIXME: insert proper C++ library support
10365 ld_shlibs_CXX=no
10366 ;;
10367 esac
10368 ;;
10369 solaris*)
10370 case $cc_basename in
10371 CC)
10372 # Sun C++ 4.2, 5.x and Centerline C++
10373 no_undefined_flag_CXX=' -zdefs'
10374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10375 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376 $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'
10377
10378 hardcode_libdir_flag_spec_CXX='-R$libdir'
10379 hardcode_shlibpath_var_CXX=no
10380 case $host_os in
10381 solaris2.0-5 | solaris2.0-5.*) ;;
10382 *)
10383 # The C++ compiler is used as linker so we must use $wl
10384 # flag to pass the commands to the underlying system
10385 # linker.
10386 # Supported since Solaris 2.6 (maybe 2.5.1?)
10387 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388 ;;
10389 esac
10390 link_all_deplibs_CXX=yes
10391
10392 # Commands to make compiler produce verbose output that lists
10393 # what "hidden" libraries, object files and flags are used when
10394 # linking a shared library.
10395 #
10396 # There doesn't appear to be a way to prevent this compiler from
10397 # explicitly linking system object files so we need to strip them
10398 # from the output so that they don't get included in the library
10399 # dependencies.
10400 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'
10401
10402 # Archives containing C++ object files must be created using
10403 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10404 # necessary to make sure instantiated templates are included
10405 # in the archive.
10406 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10407 ;;
10408 gcx)
10409 # Green Hills C++ Compiler
10410 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10411
10412 # The C++ compiler must be used to create the archive.
10413 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10414 ;;
10415 *)
10416 # GNU C++ compiler with Solaris linker
10417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10418 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10419 if $CC --version | grep -v '^2\.7' > /dev/null; then
10420 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10421 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10422 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10423
10424 # Commands to make compiler produce verbose output that lists
10425 # what "hidden" libraries, object files and flags are used when
10426 # linking a shared library.
10427 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10428 else
10429 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10430 # platform.
10431 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10432 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10434
10435 # Commands to make compiler produce verbose output that lists
10436 # what "hidden" libraries, object files and flags are used when
10437 # linking a shared library.
10438 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10439 fi
10440
10441 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10442 fi
10443 ;;
10444 esac
10445 ;;
10446 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10447 archive_cmds_need_lc_CXX=no
10448 ;;
10449 tandem*)
10450 case $cc_basename in
10451 NCC)
10452 # NonStop-UX NCC 3.20
10453 # FIXME: insert proper C++ library support
10454 ld_shlibs_CXX=no
10455 ;;
10456 *)
10457 # FIXME: insert proper C++ library support
10458 ld_shlibs_CXX=no
10459 ;;
10460 esac
10461 ;;
10462 vxworks*)
10463 # FIXME: insert proper C++ library support
10464 ld_shlibs_CXX=no
10465 ;;
10466 *)
10467 # FIXME: insert proper C++ library support
10468 ld_shlibs_CXX=no
10469 ;;
10470esac
10471echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10472echo "${ECHO_T}$ld_shlibs_CXX" >&6
10473test "$ld_shlibs_CXX" = no && can_build_shared=no
10474
10475GCC_CXX="$GXX"
10476LD_CXX="$LD"
10477
10478## CAVEAT EMPTOR:
10479## There is no encapsulation within the following macros, do not change
10480## the running order or otherwise move them around unless you know exactly
10481## what you are doing...
10482
10483cat > conftest.$ac_ext <<EOF
10484class Foo
10485{
10486public:
10487 Foo (void) { a = 0; }
10488private:
10489 int a;
10490};
10491EOF
10492
10493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10494 (eval $ac_compile) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; then
10498 # Parse the compiler output and extract the necessary
10499 # objects, libraries and library flags.
10500
10501 # Sentinel used to keep track of whether or not we are before
10502 # the conftest object file.
10503 pre_test_object_deps_done=no
10504
10505 # The `*' in the case matches for architectures that use `case' in
10506 # $output_verbose_cmd can trigger glob expansion during the loop
10507 # eval without this substitution.
10508 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10509
10510 for p in `eval $output_verbose_link_cmd`; do
10511 case $p in
10512
10513 -L* | -R* | -l*)
10514 # Some compilers place space between "-{L,R}" and the path.
10515 # Remove the space.
10516 if test $p = "-L" \
10517 || test $p = "-R"; then
10518 prev=$p
10519 continue
10520 else
10521 prev=
10522 fi
10523
10524 if test "$pre_test_object_deps_done" = no; then
10525 case $p in
10526 -L* | -R*)
10527 # Internal compiler library paths should come after those
10528 # provided the user. The postdeps already come after the
10529 # user supplied libs so there is no need to process them.
10530 if test -z "$compiler_lib_search_path_CXX"; then
10531 compiler_lib_search_path_CXX="${prev}${p}"
10532 else
10533 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10534 fi
10535 ;;
10536 # The "-l" case would never come before the object being
10537 # linked, so don't bother handling this case.
10538 esac
10539 else
10540 if test -z "$postdeps_CXX"; then
10541 postdeps_CXX="${prev}${p}"
10542 else
10543 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10544 fi
10545 fi
10546 ;;
10547
10548 *.$objext)
10549 # This assumes that the test object file only shows up
10550 # once in the compiler output.
10551 if test "$p" = "conftest.$objext"; then
10552 pre_test_object_deps_done=yes
10553 continue
10554 fi
10555
10556 if test "$pre_test_object_deps_done" = no; then
10557 if test -z "$predep_objects_CXX"; then
10558 predep_objects_CXX="$p"
10559 else
10560 predep_objects_CXX="$predep_objects_CXX $p"
10561 fi
10562 else
10563 if test -z "$postdep_objects_CXX"; then
10564 postdep_objects_CXX="$p"
10565 else
10566 postdep_objects_CXX="$postdep_objects_CXX $p"
10567 fi
10568 fi
10569 ;;
10570
10571 *) ;; # Ignore the rest.
10572
10573 esac
10574 done
10575
10576 # Clean up.
10577 rm -f a.out a.exe
10578else
10579 echo "libtool.m4: error: problem compiling CXX test program"
10580fi
10581
10582$rm -f confest.$objext
10583
10584case " $postdeps_CXX " in
10585*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10586esac
10587
10588lt_prog_compiler_wl_CXX=
10589lt_prog_compiler_pic_CXX=
10590lt_prog_compiler_static_CXX=
10591
10592echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10594
10595 # C++ specific cases for pic, static, wl, etc.
10596 if test "$GXX" = yes; then
10597 lt_prog_compiler_wl_CXX='-Wl,'
10598 lt_prog_compiler_static_CXX='-static'
10599
10600 case $host_os in
10601 aix*)
10602 # All AIX code is PIC.
10603 if test "$host_cpu" = ia64; then
10604 # AIX 5 now supports IA64 processor
10605 lt_prog_compiler_static_CXX='-Bstatic'
10606 fi
10607 ;;
10608 amigaos*)
10609 # FIXME: we need at least 68020 code to build shared libraries, but
10610 # adding the `-m68020' flag to GCC prevents building anything better,
10611 # like `-m68040'.
10612 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10613 ;;
10614 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10615 # PIC is the default for these OSes.
10616 ;;
10617 mingw* | os2* | pw32*)
10618 # This hack is so that the source file can tell whether it is being
10619 # built for inclusion in a dll (and should export symbols for example).
10620 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10621 ;;
10622 darwin* | rhapsody*)
10623 # PIC is the default on this platform
10624 # Common symbols not allowed in MH_DYLIB files
10625 lt_prog_compiler_pic_CXX='-fno-common'
10626 ;;
10627 *djgpp*)
10628 # DJGPP does not support shared libraries at all
10629 lt_prog_compiler_pic_CXX=
10630 ;;
10631 sysv4*MP*)
10632 if test -d /usr/nec; then
10633 lt_prog_compiler_pic_CXX=-Kconform_pic
10634 fi
10635 ;;
10636 hpux*)
10637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10638 # not for PA HP-UX.
10639 case "$host_cpu" in
10640 hppa*64*|ia64*)
10641 ;;
10642 *)
10643 lt_prog_compiler_pic_CXX='-fPIC'
10644 ;;
10645 esac
10646 ;;
10647 *)
10648 lt_prog_compiler_pic_CXX='-fPIC'
10649 ;;
10650 esac
10651 else
10652 case $host_os in
10653 aix4* | aix5*)
10654 # All AIX code is PIC.
10655 if test "$host_cpu" = ia64; then
10656 # AIX 5 now supports IA64 processor
10657 lt_prog_compiler_static_CXX='-Bstatic'
10658 else
10659 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10660 fi
10661 ;;
10662 chorus*)
10663 case $cc_basename in
10664 cxch68)
10665 # Green Hills C++ Compiler
10666 # _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"
10667 ;;
10668 esac
10669 ;;
10670 dgux*)
10671 case $cc_basename in
10672 ec++)
10673 lt_prog_compiler_pic_CXX='-KPIC'
10674 ;;
10675 ghcx)
10676 # Green Hills C++ Compiler
10677 lt_prog_compiler_pic_CXX='-pic'
10678 ;;
10679 *)
10680 ;;
10681 esac
10682 ;;
10683 freebsd*)
10684 # FreeBSD uses GNU C++
10685 ;;
10686 hpux9* | hpux10* | hpux11*)
10687 case $cc_basename in
10688 CC)
10689 lt_prog_compiler_wl_CXX='-Wl,'
10690 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10691 if test "$host_cpu" != ia64; then
10692 lt_prog_compiler_pic_CXX='+Z'
10693 fi
10694 ;;
10695 aCC)
10696 lt_prog_compiler_wl_CXX='-Wl,'
10697 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10698 case "$host_cpu" in
10699 hppa*64*|ia64*)
10700 # +Z the default
10701 ;;
10702 *)
10703 lt_prog_compiler_pic_CXX='+Z'
10704 ;;
10705 esac
10706 ;;
10707 *)
10708 ;;
10709 esac
10710 ;;
10711 irix5* | irix6* | nonstopux*)
10712 case $cc_basename in
10713 CC)
10714 lt_prog_compiler_wl_CXX='-Wl,'
10715 lt_prog_compiler_static_CXX='-non_shared'
10716 # CC pic flag -KPIC is the default.
10717 ;;
10718 *)
10719 ;;
10720 esac
10721 ;;
10722 linux*)
10723 case $cc_basename in
10724 KCC)
10725 # KAI C++ Compiler
10726 lt_prog_compiler_wl_CXX='--backend -Wl,'
10727 lt_prog_compiler_pic_CXX='-fPIC'
10728 ;;
10729 icpc)
10730 # Intel C++
10731 lt_prog_compiler_wl_CXX='-Wl,'
10732 lt_prog_compiler_pic_CXX='-KPIC'
10733 lt_prog_compiler_static_CXX='-static'
10734 ;;
10735 cxx)
10736 # Compaq C++
10737 # Make sure the PIC flag is empty. It appears that all Alpha
10738 # Linux and Compaq Tru64 Unix objects are PIC.
10739 lt_prog_compiler_pic_CXX=
10740 lt_prog_compiler_static_CXX='-non_shared'
10741 ;;
10742 *)
10743 ;;
10744 esac
10745 ;;
10746 lynxos*)
10747 ;;
10748 m88k*)
10749 ;;
10750 mvs*)
10751 case $cc_basename in
10752 cxx)
10753 lt_prog_compiler_pic_CXX='-W c,exportall'
10754 ;;
10755 *)
10756 ;;
10757 esac
10758 ;;
10759 netbsd*)
10760 ;;
10761 osf3* | osf4* | osf5*)
10762 case $cc_basename in
10763 KCC)
10764 lt_prog_compiler_wl_CXX='--backend -Wl,'
10765 ;;
10766 RCC)
10767 # Rational C++ 2.4.1
10768 lt_prog_compiler_pic_CXX='-pic'
10769 ;;
10770 cxx)
10771 # Digital/Compaq C++
10772 lt_prog_compiler_wl_CXX='-Wl,'
10773 # Make sure the PIC flag is empty. It appears that all Alpha
10774 # Linux and Compaq Tru64 Unix objects are PIC.
10775 lt_prog_compiler_pic_CXX=
10776 lt_prog_compiler_static_CXX='-non_shared'
10777 ;;
10778 *)
10779 ;;
10780 esac
10781 ;;
10782 psos*)
10783 ;;
10784 sco*)
10785 case $cc_basename in
10786 CC)
10787 lt_prog_compiler_pic_CXX='-fPIC'
10788 ;;
10789 *)
10790 ;;
10791 esac
10792 ;;
10793 solaris*)
10794 case $cc_basename in
10795 CC)
10796 # Sun C++ 4.2, 5.x and Centerline C++
10797 lt_prog_compiler_pic_CXX='-KPIC'
10798 lt_prog_compiler_static_CXX='-Bstatic'
10799 lt_prog_compiler_wl_CXX='-Qoption ld '
10800 ;;
10801 gcx)
10802 # Green Hills C++ Compiler
10803 lt_prog_compiler_pic_CXX='-PIC'
10804 ;;
10805 *)
10806 ;;
10807 esac
10808 ;;
10809 sunos4*)
10810 case $cc_basename in
10811 CC)
10812 # Sun C++ 4.x
10813 lt_prog_compiler_pic_CXX='-pic'
10814 lt_prog_compiler_static_CXX='-Bstatic'
10815 ;;
10816 lcc)
10817 # Lucid
10818 lt_prog_compiler_pic_CXX='-pic'
10819 ;;
10820 *)
10821 ;;
10822 esac
10823 ;;
10824 tandem*)
10825 case $cc_basename in
10826 NCC)
10827 # NonStop-UX NCC 3.20
10828 lt_prog_compiler_pic_CXX='-KPIC'
10829 ;;
10830 *)
10831 ;;
10832 esac
10833 ;;
10834 unixware*)
10835 ;;
10836 vxworks*)
10837 ;;
10838 *)
10839 lt_prog_compiler_can_build_shared_CXX=no
10840 ;;
10841 esac
10842 fi
10843
10844echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10845echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10846
10847#
10848# Check to make sure the PIC flag actually works.
10849#
10850if test -n "$lt_prog_compiler_pic_CXX"; then
10851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10852echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10853if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 lt_prog_compiler_pic_works_CXX=no
10857 ac_outfile=conftest.$ac_objext
10858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10859 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10860 # Insert the option either (1) after the last *FLAGS variable, or
10861 # (2) before a word containing "conftest.", or (3) at the end.
10862 # Note that $ac_compile itself does not contain backslashes and begins
10863 # with a dollar sign (not a hyphen), so the echo should work correctly.
10864 # The option is referenced via a variable to avoid confusing sed.
10865 lt_compile=`echo "$ac_compile" | $SED \
10866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000010869 (eval echo "\"\$as_me:10869: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010870 (eval "$lt_compile" 2>conftest.err)
10871 ac_status=$?
10872 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000010873 echo "$as_me:10873: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010874 if (exit $ac_status) && test -s "$ac_outfile"; then
10875 # The compiler can only warn and ignore the option if not recognized
10876 # So say no if there are warnings
10877 if test ! -s conftest.err; then
10878 lt_prog_compiler_pic_works_CXX=yes
10879 fi
10880 fi
10881 $rm conftest*
10882
10883fi
10884echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10885echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10886
10887if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10888 case $lt_prog_compiler_pic_CXX in
10889 "" | " "*) ;;
10890 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10891 esac
10892else
10893 lt_prog_compiler_pic_CXX=
10894 lt_prog_compiler_can_build_shared_CXX=no
10895fi
10896
10897fi
10898case "$host_os" in
10899 # For platforms which do not support PIC, -DPIC is meaningless:
10900 *djgpp*)
10901 lt_prog_compiler_pic_CXX=
10902 ;;
10903 *)
10904 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10905 ;;
10906esac
10907
10908echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10910if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10912else
10913 lt_cv_prog_compiler_c_o_CXX=no
10914 $rm -r conftest 2>/dev/null
10915 mkdir conftest
10916 cd conftest
10917 mkdir out
10918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10921 # that will create temporary files in the current directory regardless of
10922 # the output directory. Thus, making CWD read-only will cause this test
10923 # to fail, enabling locking or at least warning the user not to do parallel
10924 # builds.
10925 chmod -w .
10926
10927 lt_compiler_flag="-o out/conftest2.$ac_objext"
10928 # Insert the option either (1) after the last *FLAGS variable, or
10929 # (2) before a word containing "conftest.", or (3) at the end.
10930 # Note that $ac_compile itself does not contain backslashes and begins
10931 # with a dollar sign (not a hyphen), so the echo should work correctly.
10932 lt_compile=`echo "$ac_compile" | $SED \
10933 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10935 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000010936 (eval echo "\"\$as_me:10936: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010937 (eval "$lt_compile" 2>out/conftest.err)
10938 ac_status=$?
10939 cat out/conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000010940 echo "$as_me:10940: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10942 then
10943 # The compiler can only warn and ignore the option if not recognized
10944 # So say no if there are warnings
10945 if test ! -s out/conftest.err; then
10946 lt_cv_prog_compiler_c_o_CXX=yes
10947 fi
10948 fi
10949 chmod u+w .
10950 $rm conftest* out/*
10951 rmdir out
10952 cd ..
10953 rmdir conftest
10954 $rm conftest*
10955
10956fi
10957echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10958echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10959
10960
10961hard_links="nottested"
10962if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10963 # do not overwrite the value of need_locks provided by the user
10964 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10965echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10966 hard_links=yes
10967 $rm conftest*
10968 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10969 touch conftest.a
10970 ln conftest.a conftest.b 2>&5 || hard_links=no
10971 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10972 echo "$as_me:$LINENO: result: $hard_links" >&5
10973echo "${ECHO_T}$hard_links" >&6
10974 if test "$hard_links" = no; then
10975 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10976echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10977 need_locks=warn
10978 fi
10979else
10980 need_locks=no
10981fi
10982
10983echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10985
10986 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10987 case $host_os in
10988 aix4* | aix5*)
10989 # If we're using GNU nm, then we don't want the "-C" option.
10990 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10991 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10992 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'
10993 else
10994 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'
10995 fi
10996 ;;
10997 pw32*)
10998 export_symbols_cmds_CXX="$ltdll_cmds"
10999 ;;
11000 cygwin* | mingw*)
11001 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11002 ;;
11003 *)
11004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11005 ;;
11006 esac
11007
11008echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11009echo "${ECHO_T}$ld_shlibs_CXX" >&6
11010test "$ld_shlibs_CXX" = no && can_build_shared=no
11011
11012variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11013if test "$GCC" = yes; then
11014 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11015fi
11016
11017#
11018# Do we need to explicitly link libc?
11019#
11020case "x$archive_cmds_need_lc_CXX" in
11021x|xyes)
11022 # Assume -lc should be added
11023 archive_cmds_need_lc_CXX=yes
11024
11025 if test "$enable_shared" = yes && test "$GCC" = yes; then
11026 case $archive_cmds_CXX in
11027 *'~'*)
11028 # FIXME: we may have to deal with multi-command sequences.
11029 ;;
11030 '$CC '*)
11031 # Test whether the compiler implicitly links with -lc since on some
11032 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11033 # to ld, don't add -lc before -lgcc.
11034 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11035echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11036 $rm conftest*
11037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11038
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } 2>conftest.err; then
11044 soname=conftest
11045 lib=conftest
11046 libobjs=conftest.$ac_objext
11047 deplibs=
11048 wl=$lt_prog_compiler_wl_CXX
11049 compiler_flags=-v
11050 linker_flags=-v
11051 verstring=
11052 output_objdir=.
11053 libname=conftest
11054 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11055 allow_undefined_flag_CXX=
11056 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11057 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }
11061 then
11062 archive_cmds_need_lc_CXX=no
11063 else
11064 archive_cmds_need_lc_CXX=yes
11065 fi
11066 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11067 else
11068 cat conftest.err 1>&5
11069 fi
11070 $rm conftest*
11071 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11072echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11073 ;;
11074 esac
11075 fi
11076 ;;
11077esac
11078
11079echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11080echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11081hardcode_action_CXX=
11082if test -n "$hardcode_libdir_flag_spec_CXX" || \
11083 test -n "$runpath_var CXX" || \
11084 test "X$hardcode_automatic_CXX"="Xyes" ; then
11085
11086 # We can hardcode non-existant directories.
11087 if test "$hardcode_direct_CXX" != no &&
11088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11089 # have to relink, otherwise we might link with an installed library
11090 # when we should be linking with a yet-to-be-installed one
11091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11092 test "$hardcode_minus_L_CXX" != no; then
11093 # Linking always hardcodes the temporary library directory.
11094 hardcode_action_CXX=relink
11095 else
11096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11097 hardcode_action_CXX=immediate
11098 fi
11099else
11100 # We cannot hardcode anything, or else we can only hardcode existing
11101 # directories.
11102 hardcode_action_CXX=unsupported
11103fi
11104echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11105echo "${ECHO_T}$hardcode_action_CXX" >&6
11106
11107if test "$hardcode_action_CXX" = relink; then
11108 # Fast installation is not supported
11109 enable_fast_install=no
11110elif test "$shlibpath_overrides_runpath" = yes ||
11111 test "$enable_shared" = no; then
11112 # Fast installation is not necessary
11113 enable_fast_install=needless
11114fi
11115
11116striplib=
11117old_striplib=
11118echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11119echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11120if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11122 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11123 echo "$as_me:$LINENO: result: yes" >&5
11124echo "${ECHO_T}yes" >&6
11125else
11126# FIXME - insert some real tests, host_os isn't really good enough
11127 case $host_os in
11128 darwin*)
11129 if test -n "$STRIP" ; then
11130 striplib="$STRIP -x"
11131 echo "$as_me:$LINENO: result: yes" >&5
11132echo "${ECHO_T}yes" >&6
11133 else
11134 echo "$as_me:$LINENO: result: no" >&5
11135echo "${ECHO_T}no" >&6
11136fi
11137 ;;
11138 *)
11139 echo "$as_me:$LINENO: result: no" >&5
11140echo "${ECHO_T}no" >&6
11141 ;;
11142 esac
11143fi
11144
11145echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11146echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11147library_names_spec=
11148libname_spec='lib$name'
11149soname_spec=
11150shrext=".so"
11151postinstall_cmds=
11152postuninstall_cmds=
11153finish_cmds=
11154finish_eval=
11155shlibpath_var=
11156shlibpath_overrides_runpath=unknown
11157version_type=none
11158dynamic_linker="$host_os ld.so"
11159sys_lib_dlsearch_path_spec="/lib /usr/lib"
11160if test "$GCC" = yes; then
11161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11162 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11163 # if the path contains ";" then we assume it to be the separator
11164 # otherwise default to the standard path separator (i.e. ":") - it is
11165 # assumed that no part of a normal pathname contains ";" but that should
11166 # okay in the real world where ";" in dirpaths is itself problematic.
11167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11168 else
11169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11170 fi
11171else
11172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11173fi
11174need_lib_prefix=unknown
11175hardcode_into_libs=no
11176
11177# when you set need_version to no, make sure it does not cause -set_version
11178# flags to be left without arguments
11179need_version=unknown
11180
11181case $host_os in
11182aix3*)
11183 version_type=linux
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11185 shlibpath_var=LIBPATH
11186
11187 # AIX 3 has no versioning support, so we append a major version to the name.
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 ;;
11190
11191aix4* | aix5*)
11192 version_type=linux
11193 need_lib_prefix=no
11194 need_version=no
11195 hardcode_into_libs=yes
11196 if test "$host_cpu" = ia64; then
11197 # AIX 5 supports IA64
11198 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 else
11201 # With GCC up to 2.95.x, collect2 would create an import file
11202 # for dependence libraries. The import file would start with
11203 # the line `#! .'. This would cause the generated library to
11204 # depend on `.', always an invalid library. This was fixed in
11205 # development snapshots of GCC prior to 3.0.
11206 case $host_os in
11207 aix4 | aix4.[01] | aix4.[01].*)
11208 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11209 echo ' yes '
11210 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11211 :
11212 else
11213 can_build_shared=no
11214 fi
11215 ;;
11216 esac
11217 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11218 # soname into executable. Probably we can add versioning support to
11219 # collect2, so additional links can be useful in future.
11220 if test "$aix_use_runtimelinking" = yes; then
11221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11222 # instead of lib<name>.a to let people know that these are not
11223 # typical AIX shared libraries.
11224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225 else
11226 # We preserve .a as extension for shared libraries through AIX4.2
11227 # and later when we are not doing run time linking.
11228 library_names_spec='${libname}${release}.a $libname.a'
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 fi
11231 shlibpath_var=LIBPATH
11232 fi
11233 ;;
11234
11235amigaos*)
11236 library_names_spec='$libname.ixlibrary $libname.a'
11237 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11238 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'
11239 ;;
11240
11241beos*)
11242 library_names_spec='${libname}${shared_ext}'
11243 dynamic_linker="$host_os ld.so"
11244 shlibpath_var=LIBRARY_PATH
11245 ;;
11246
11247bsdi4*)
11248 version_type=linux
11249 need_version=no
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11255 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11256 # the default ld.so.conf also contains /usr/contrib/lib and
11257 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11258 # libtool to hard-code these into programs
11259 ;;
11260
11261cygwin* | mingw* | pw32*)
11262 version_type=windows
11263 shrext=".dll"
11264 need_version=no
11265 need_lib_prefix=no
11266
11267 case $GCC,$host_os in
11268 yes,cygwin* | yes,mingw* | yes,pw32*)
11269 library_names_spec='$libname.dll.a'
11270 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11271 postinstall_cmds='base_file=`basename \${file}`~
11272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11273 dldir=$destdir/`dirname \$dlpath`~
11274 test -d \$dldir || mkdir -p \$dldir~
11275 $install_prog $dir/$dlname \$dldir/$dlname'
11276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11277 dlpath=$dir/\$dldll~
11278 $rm \$dlpath'
11279 shlibpath_overrides_runpath=yes
11280
11281 case $host_os in
11282 cygwin*)
11283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11285 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11286 ;;
11287 mingw*)
11288 # MinGW DLLs use traditional 'lib' prefix
11289 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11291 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11292 # It is most probably a Windows format PATH printed by
11293 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11294 # path with ; separators, and with drive letters. We can handle the
11295 # drive letters (cygwin fileutils understands them), so leave them,
11296 # especially as we might pass files found there to a mingw objdump,
11297 # which wouldn't understand a cygwinified path. Ahh.
11298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11299 else
11300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11301 fi
11302 ;;
11303 pw32*)
11304 # pw32 DLLs use 'pw' prefix rather than 'lib'
11305 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11306 ;;
11307 esac
11308 ;;
11309
11310 *)
11311 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11312 ;;
11313 esac
11314 dynamic_linker='Win32 ld.exe'
11315 # FIXME: first we should search . and the directory the executable is in
11316 shlibpath_var=PATH
11317 ;;
11318
11319darwin* | rhapsody*)
11320 dynamic_linker="$host_os dyld"
11321 version_type=darwin
11322 need_lib_prefix=no
11323 need_version=no
11324 # FIXME: Relying on posixy $() will cause problems for
11325 # cross-compilation, but unfortunately the echo tests do not
11326 # yet detect zsh echo's removal of \ escapes.
11327 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11328 soname_spec='${libname}${release}${major}$shared_ext'
11329 shlibpath_overrides_runpath=yes
11330 shlibpath_var=DYLD_LIBRARY_PATH
11331 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11332 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11333 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11334 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"`
11335 fi
11336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11337 ;;
11338
11339dgux*)
11340 version_type=linux
11341 need_lib_prefix=no
11342 need_version=no
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 shlibpath_var=LD_LIBRARY_PATH
11346 ;;
11347
11348freebsd1*)
11349 dynamic_linker=no
11350 ;;
11351
11352freebsd*)
11353 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11354 version_type=freebsd-$objformat
11355 case $version_type in
11356 freebsd-elf*)
11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11358 need_version=no
11359 need_lib_prefix=no
11360 ;;
11361 freebsd-*)
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11363 need_version=yes
11364 ;;
11365 esac
11366 shlibpath_var=LD_LIBRARY_PATH
11367 case $host_os in
11368 freebsd2*)
11369 shlibpath_overrides_runpath=yes
11370 ;;
11371 freebsd3.01* | freebsdelf3.01*)
11372 shlibpath_overrides_runpath=yes
11373 hardcode_into_libs=yes
11374 ;;
11375 *) # from 3.2 on
11376 shlibpath_overrides_runpath=no
11377 hardcode_into_libs=yes
11378 ;;
11379 esac
11380 ;;
11381
11382gnu*)
11383 version_type=linux
11384 need_lib_prefix=no
11385 need_version=no
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11387 soname_spec='${libname}${release}${shared_ext}$major'
11388 shlibpath_var=LD_LIBRARY_PATH
11389 hardcode_into_libs=yes
11390 ;;
11391
11392hpux9* | hpux10* | hpux11*)
11393 # Give a soname corresponding to the major version so that dld.sl refuses to
11394 # link against other versions.
11395 version_type=sunos
11396 need_lib_prefix=no
11397 need_version=no
11398 case "$host_cpu" in
11399 ia64*)
11400 shrext='.so'
11401 hardcode_into_libs=yes
11402 dynamic_linker="$host_os dld.so"
11403 shlibpath_var=LD_LIBRARY_PATH
11404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11407 if test "X$HPUX_IA64_MODE" = X32; then
11408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11409 else
11410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11411 fi
11412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11413 ;;
11414 hppa*64*)
11415 shrext='.sl'
11416 hardcode_into_libs=yes
11417 dynamic_linker="$host_os dld.sl"
11418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11424 ;;
11425 *)
11426 shrext='.sl'
11427 dynamic_linker="$host_os dld.sl"
11428 shlibpath_var=SHLIB_PATH
11429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 ;;
11433 esac
11434 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11435 postinstall_cmds='chmod 555 $lib'
11436 ;;
11437
11438irix5* | irix6* | nonstopux*)
11439 case $host_os in
11440 nonstopux*) version_type=nonstopux ;;
11441 *)
11442 if test "$lt_cv_prog_gnu_ld" = yes; then
11443 version_type=linux
11444 else
11445 version_type=irix
11446 fi ;;
11447 esac
11448 need_lib_prefix=no
11449 need_version=no
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11452 case $host_os in
11453 irix5* | nonstopux*)
11454 libsuff= shlibsuff=
11455 ;;
11456 *)
11457 case $LD in # libtool.m4 will add one of these switches to LD
11458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11459 libsuff= shlibsuff= libmagic=32-bit;;
11460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11461 libsuff=32 shlibsuff=N32 libmagic=N32;;
11462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11464 *) libsuff= shlibsuff= libmagic=never-match;;
11465 esac
11466 ;;
11467 esac
11468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11469 shlibpath_overrides_runpath=no
11470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11472 hardcode_into_libs=yes
11473 ;;
11474
11475# No shared lib support for Linux oldld, aout, or coff.
11476linux*oldld* | linux*aout* | linux*coff*)
11477 dynamic_linker=no
11478 ;;
11479
11480# This must be Linux ELF.
11481linux*)
11482 version_type=linux
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=no
11490 # This implies no fast_install, which is unacceptable.
11491 # Some rework will be needed to allow for fast_install
11492 # before this can be enabled.
11493 hardcode_into_libs=yes
11494
11495 # We used to test for /lib/ld.so.1 and disable shared libraries on
11496 # powerpc, because MkLinux only supported shared libraries with the
11497 # GNU dynamic linker. Since this was broken with cross compilers,
11498 # most powerpc-linux boxes support dynamic linking these days and
11499 # people can always --disable-shared, the test was removed, and we
11500 # assume the GNU/Linux dynamic linker is in use.
11501 dynamic_linker='GNU/Linux ld.so'
11502 ;;
11503
11504netbsd*)
11505 version_type=sunos
11506 need_lib_prefix=no
11507 need_version=no
11508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11511 dynamic_linker='NetBSD (a.out) ld.so'
11512 else
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 dynamic_linker='NetBSD ld.elf_so'
11516 fi
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11519 hardcode_into_libs=yes
11520 ;;
11521
11522newsos6)
11523 version_type=linux
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11527 ;;
11528
11529nto-qnx)
11530 version_type=linux
11531 need_lib_prefix=no
11532 need_version=no
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 ;;
11538
11539openbsd*)
11540 version_type=sunos
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11547 case $host_os in
11548 openbsd2.[89] | openbsd2.[89].*)
11549 shlibpath_overrides_runpath=no
11550 ;;
11551 *)
11552 shlibpath_overrides_runpath=yes
11553 ;;
11554 esac
11555 else
11556 shlibpath_overrides_runpath=yes
11557 fi
11558 ;;
11559
11560os2*)
11561 libname_spec='$name'
11562 shrext=".dll"
11563 need_lib_prefix=no
11564 library_names_spec='$libname${shared_ext} $libname.a'
11565 dynamic_linker='OS/2 ld.exe'
11566 shlibpath_var=LIBPATH
11567 ;;
11568
11569osf3* | osf4* | osf5*)
11570 version_type=osf
11571 need_lib_prefix=no
11572 need_version=no
11573 soname_spec='${libname}${release}${shared_ext}$major'
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11577 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11578 ;;
11579
11580sco3.2v5*)
11581 version_type=osf
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 ;;
11586
11587solaris*)
11588 version_type=linux
11589 need_lib_prefix=no
11590 need_version=no
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 shlibpath_overrides_runpath=yes
11595 hardcode_into_libs=yes
11596 # ldd complains unless libraries are executable
11597 postinstall_cmds='chmod +x $lib'
11598 ;;
11599
11600sunos4*)
11601 version_type=sunos
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 shlibpath_overrides_runpath=yes
11606 if test "$with_gnu_ld" = yes; then
11607 need_lib_prefix=no
11608 fi
11609 need_version=yes
11610 ;;
11611
11612sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11613 version_type=linux
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 case $host_vendor in
11618 sni)
11619 shlibpath_overrides_runpath=no
11620 need_lib_prefix=no
11621 export_dynamic_flag_spec='${wl}-Blargedynsym'
11622 runpath_var=LD_RUN_PATH
11623 ;;
11624 siemens)
11625 need_lib_prefix=no
11626 ;;
11627 motorola)
11628 need_lib_prefix=no
11629 need_version=no
11630 shlibpath_overrides_runpath=no
11631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11632 ;;
11633 esac
11634 ;;
11635
11636sysv4*MP*)
11637 if test -d /usr/nec ;then
11638 version_type=linux
11639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11640 soname_spec='$libname${shared_ext}.$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 fi
11643 ;;
11644
11645uts4*)
11646 version_type=linux
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 ;;
11651
11652*)
11653 dynamic_linker=no
11654 ;;
11655esac
11656echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11657echo "${ECHO_T}$dynamic_linker" >&6
11658test "$dynamic_linker" = no && can_build_shared=no
11659
11660if test "x$enable_dlopen" != xyes; then
11661 enable_dlopen=unknown
11662 enable_dlopen_self=unknown
11663 enable_dlopen_self_static=unknown
11664else
11665 lt_cv_dlopen=no
11666 lt_cv_dlopen_libs=
11667
11668 case $host_os in
11669 beos*)
11670 lt_cv_dlopen="load_add_on"
11671 lt_cv_dlopen_libs=
11672 lt_cv_dlopen_self=yes
11673 ;;
11674
11675 mingw* | pw32*)
11676 lt_cv_dlopen="LoadLibrary"
11677 lt_cv_dlopen_libs=
11678 ;;
11679
11680 cygwin*)
11681 lt_cv_dlopen="dlopen"
11682 lt_cv_dlopen_libs=
11683 ;;
11684
11685 darwin*)
11686 # if libdl is installed we need to link against it
11687 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11688echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11689if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 ac_check_lib_save_LIBS=$LIBS
11693LIBS="-ldl $LIBS"
11694cat >conftest.$ac_ext <<_ACEOF
11695#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011701
11702/* Override any gcc2 internal prototype to avoid an error. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706/* We use char because int might match the return type of a gcc2
11707 builtin and then its argument prototype would still apply. */
11708char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011709int
11710main ()
11711{
11712dlopen ();
11713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_dl_dlopen=yes
11730else
11731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011732sed 's/^/| /' conftest.$ac_ext >&5
11733
John Criswell47fdd832003-07-14 16:52:07 +000011734ac_cv_lib_dl_dlopen=no
11735fi
11736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11737LIBS=$ac_check_lib_save_LIBS
11738fi
11739echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11740echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11741if test $ac_cv_lib_dl_dlopen = yes; then
11742 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11743else
11744
11745 lt_cv_dlopen="dyld"
11746 lt_cv_dlopen_libs=
11747 lt_cv_dlopen_self=yes
11748
11749fi
11750
11751 ;;
11752
11753 *)
11754 echo "$as_me:$LINENO: checking for shl_load" >&5
11755echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11756if test "${ac_cv_func_shl_load+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759 cat >conftest.$ac_ext <<_ACEOF
11760#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011761/* confdefs.h. */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011766/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011767 which can conflict with char shl_load (); below.
11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769 <limits.h> exists even on freestanding compilers. */
11770#ifdef __STDC__
11771# include <limits.h>
11772#else
11773# include <assert.h>
11774#endif
John Criswell47fdd832003-07-14 16:52:07 +000011775/* Override any gcc2 internal prototype to avoid an error. */
11776#ifdef __cplusplus
11777extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011778{
John Criswell47fdd832003-07-14 16:52:07 +000011779#endif
11780/* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11782char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011783/* The GNU C library defines this for functions which it implements
11784 to always fail with ENOSYS. Some functions are actually named
11785 something starting with __ and the normal name is an alias. */
11786#if defined (__stub_shl_load) || defined (__stub___shl_load)
11787choke me
11788#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011789char (*f) () = shl_load;
11790#endif
11791#ifdef __cplusplus
11792}
John Criswell47fdd832003-07-14 16:52:07 +000011793#endif
11794
John Criswell0c38eaf2003-09-10 15:17:25 +000011795int
11796main ()
11797{
11798return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011799 ;
11800 return 0;
11801}
11802_ACEOF
11803rm -f conftest.$ac_objext conftest$ac_exeext
11804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11805 (eval $ac_link) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 ac_cv_func_shl_load=yes
11816else
11817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011818sed 's/^/| /' conftest.$ac_ext >&5
11819
John Criswell47fdd832003-07-14 16:52:07 +000011820ac_cv_func_shl_load=no
11821fi
11822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11823fi
11824echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11825echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11826if test $ac_cv_func_shl_load = yes; then
11827 lt_cv_dlopen="shl_load"
11828else
11829 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11830echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11831if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 ac_check_lib_save_LIBS=$LIBS
11835LIBS="-ldld $LIBS"
11836cat >conftest.$ac_ext <<_ACEOF
11837#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011838/* confdefs.h. */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011843
11844/* Override any gcc2 internal prototype to avoid an error. */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848/* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011851int
11852main ()
11853{
11854shl_load ();
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11861 (eval $ac_link) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_cv_lib_dld_shl_load=yes
11872else
11873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011874sed 's/^/| /' conftest.$ac_ext >&5
11875
John Criswell47fdd832003-07-14 16:52:07 +000011876ac_cv_lib_dld_shl_load=no
11877fi
11878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879LIBS=$ac_check_lib_save_LIBS
11880fi
11881echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11883if test $ac_cv_lib_dld_shl_load = yes; then
11884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11885else
11886 echo "$as_me:$LINENO: checking for dlopen" >&5
11887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11888if test "${ac_cv_func_dlopen+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11890else
11891 cat >conftest.$ac_ext <<_ACEOF
11892#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011898/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011899 which can conflict with char dlopen (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11902#ifdef __STDC__
11903# include <limits.h>
11904#else
11905# include <assert.h>
11906#endif
John Criswell47fdd832003-07-14 16:52:07 +000011907/* Override any gcc2 internal prototype to avoid an error. */
11908#ifdef __cplusplus
11909extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011910{
John Criswell47fdd832003-07-14 16:52:07 +000011911#endif
11912/* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011915/* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918#if defined (__stub_dlopen) || defined (__stub___dlopen)
11919choke me
11920#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011921char (*f) () = dlopen;
11922#endif
11923#ifdef __cplusplus
11924}
John Criswell47fdd832003-07-14 16:52:07 +000011925#endif
11926
John Criswell0c38eaf2003-09-10 15:17:25 +000011927int
11928main ()
11929{
11930return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -s conftest$ac_exeext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 ac_cv_func_dlopen=yes
11948else
11949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011950sed 's/^/| /' conftest.$ac_ext >&5
11951
John Criswell47fdd832003-07-14 16:52:07 +000011952ac_cv_func_dlopen=no
11953fi
11954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11957echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11958if test $ac_cv_func_dlopen = yes; then
11959 lt_cv_dlopen="dlopen"
11960else
11961 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11962echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11963if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 ac_check_lib_save_LIBS=$LIBS
11967LIBS="-ldl $LIBS"
11968cat >conftest.$ac_ext <<_ACEOF
11969#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011975
11976/* Override any gcc2 internal prototype to avoid an error. */
11977#ifdef __cplusplus
11978extern "C"
11979#endif
11980/* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11982char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011983int
11984main ()
11985{
11986dlopen ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
11992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest$ac_exeext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12000 ac_status=$?
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_lib_dl_dlopen=yes
12004else
12005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012006sed 's/^/| /' conftest.$ac_ext >&5
12007
John Criswell47fdd832003-07-14 16:52:07 +000012008ac_cv_lib_dl_dlopen=no
12009fi
12010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12011LIBS=$ac_check_lib_save_LIBS
12012fi
12013echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12014echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12015if test $ac_cv_lib_dl_dlopen = yes; then
12016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12017else
12018 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12019echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12020if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 ac_check_lib_save_LIBS=$LIBS
12024LIBS="-lsvld $LIBS"
12025cat >conftest.$ac_ext <<_ACEOF
12026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012032
12033/* Override any gcc2 internal prototype to avoid an error. */
12034#ifdef __cplusplus
12035extern "C"
12036#endif
12037/* We use char because int might match the return type of a gcc2
12038 builtin and then its argument prototype would still apply. */
12039char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012040int
12041main ()
12042{
12043dlopen ();
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_lib_svld_dlopen=yes
12061else
12062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012063sed 's/^/| /' conftest.$ac_ext >&5
12064
John Criswell47fdd832003-07-14 16:52:07 +000012065ac_cv_lib_svld_dlopen=no
12066fi
12067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068LIBS=$ac_check_lib_save_LIBS
12069fi
12070echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12071echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12072if test $ac_cv_lib_svld_dlopen = yes; then
12073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12074else
12075 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12076echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12077if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079else
12080 ac_check_lib_save_LIBS=$LIBS
12081LIBS="-ldld $LIBS"
12082cat >conftest.$ac_ext <<_ACEOF
12083#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012089
12090/* Override any gcc2 internal prototype to avoid an error. */
12091#ifdef __cplusplus
12092extern "C"
12093#endif
12094/* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12096char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012097int
12098main ()
12099{
12100dld_link ();
12101 ;
12102 return 0;
12103}
12104_ACEOF
12105rm -f conftest.$ac_objext conftest$ac_exeext
12106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107 (eval $ac_link) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_dld_dld_link=yes
12118else
12119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012120sed 's/^/| /' conftest.$ac_ext >&5
12121
John Criswell47fdd832003-07-14 16:52:07 +000012122ac_cv_lib_dld_dld_link=no
12123fi
12124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125LIBS=$ac_check_lib_save_LIBS
12126fi
12127echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12128echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12129if test $ac_cv_lib_dld_dld_link = yes; then
12130 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12131fi
12132
12133
12134fi
12135
12136
12137fi
12138
12139
12140fi
12141
12142
12143fi
12144
12145
12146fi
12147
12148 ;;
12149 esac
12150
12151 if test "x$lt_cv_dlopen" != xno; then
12152 enable_dlopen=yes
12153 else
12154 enable_dlopen=no
12155 fi
12156
12157 case $lt_cv_dlopen in
12158 dlopen)
12159 save_CPPFLAGS="$CPPFLAGS"
12160 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12161
12162 save_LDFLAGS="$LDFLAGS"
12163 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12164
12165 save_LIBS="$LIBS"
12166 LIBS="$lt_cv_dlopen_libs $LIBS"
12167
12168 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12169echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12170if test "${lt_cv_dlopen_self+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 if test "$cross_compiling" = yes; then :
12174 lt_cv_dlopen_self=cross
12175else
12176 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12177 lt_status=$lt_dlunknown
12178 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +000012179#line 12179 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012180#include "confdefs.h"
12181
12182#if HAVE_DLFCN_H
12183#include <dlfcn.h>
12184#endif
12185
12186#include <stdio.h>
12187
12188#ifdef RTLD_GLOBAL
12189# define LT_DLGLOBAL RTLD_GLOBAL
12190#else
12191# ifdef DL_GLOBAL
12192# define LT_DLGLOBAL DL_GLOBAL
12193# else
12194# define LT_DLGLOBAL 0
12195# endif
12196#endif
12197
12198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12199 find out it does not work in some platform. */
12200#ifndef LT_DLLAZY_OR_NOW
12201# ifdef RTLD_LAZY
12202# define LT_DLLAZY_OR_NOW RTLD_LAZY
12203# else
12204# ifdef DL_LAZY
12205# define LT_DLLAZY_OR_NOW DL_LAZY
12206# else
12207# ifdef RTLD_NOW
12208# define LT_DLLAZY_OR_NOW RTLD_NOW
12209# else
12210# ifdef DL_NOW
12211# define LT_DLLAZY_OR_NOW DL_NOW
12212# else
12213# define LT_DLLAZY_OR_NOW 0
12214# endif
12215# endif
12216# endif
12217# endif
12218#endif
12219
12220#ifdef __cplusplus
12221extern "C" void exit (int);
12222#endif
12223
12224void fnord() { int i=42;}
12225int main ()
12226{
12227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12228 int status = $lt_dlunknown;
12229
12230 if (self)
12231 {
12232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12233 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12234 /* dlclose (self); */
12235 }
12236
12237 exit (status);
12238}
12239EOF
12240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241 (eval $ac_link) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12245 (./conftest; exit; ) 2>/dev/null
12246 lt_status=$?
12247 case x$lt_status in
12248 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12249 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12250 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12251 esac
12252 else :
12253 # compilation failed
12254 lt_cv_dlopen_self=no
12255 fi
12256fi
12257rm -fr conftest*
12258
12259
12260fi
12261echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12262echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12263
12264 if test "x$lt_cv_dlopen_self" = xyes; then
12265 LDFLAGS="$LDFLAGS $link_static_flag"
12266 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12267echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12268if test "${lt_cv_dlopen_self_static+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 if test "$cross_compiling" = yes; then :
12272 lt_cv_dlopen_self_static=cross
12273else
12274 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12275 lt_status=$lt_dlunknown
12276 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +000012277#line 12277 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012278#include "confdefs.h"
12279
12280#if HAVE_DLFCN_H
12281#include <dlfcn.h>
12282#endif
12283
12284#include <stdio.h>
12285
12286#ifdef RTLD_GLOBAL
12287# define LT_DLGLOBAL RTLD_GLOBAL
12288#else
12289# ifdef DL_GLOBAL
12290# define LT_DLGLOBAL DL_GLOBAL
12291# else
12292# define LT_DLGLOBAL 0
12293# endif
12294#endif
12295
12296/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12297 find out it does not work in some platform. */
12298#ifndef LT_DLLAZY_OR_NOW
12299# ifdef RTLD_LAZY
12300# define LT_DLLAZY_OR_NOW RTLD_LAZY
12301# else
12302# ifdef DL_LAZY
12303# define LT_DLLAZY_OR_NOW DL_LAZY
12304# else
12305# ifdef RTLD_NOW
12306# define LT_DLLAZY_OR_NOW RTLD_NOW
12307# else
12308# ifdef DL_NOW
12309# define LT_DLLAZY_OR_NOW DL_NOW
12310# else
12311# define LT_DLLAZY_OR_NOW 0
12312# endif
12313# endif
12314# endif
12315# endif
12316#endif
12317
12318#ifdef __cplusplus
12319extern "C" void exit (int);
12320#endif
12321
12322void fnord() { int i=42;}
12323int main ()
12324{
12325 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12326 int status = $lt_dlunknown;
12327
12328 if (self)
12329 {
12330 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12331 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12332 /* dlclose (self); */
12333 }
12334
12335 exit (status);
12336}
12337EOF
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12343 (./conftest; exit; ) 2>/dev/null
12344 lt_status=$?
12345 case x$lt_status in
12346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12348 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12349 esac
12350 else :
12351 # compilation failed
12352 lt_cv_dlopen_self_static=no
12353 fi
12354fi
12355rm -fr conftest*
12356
12357
12358fi
12359echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12361 fi
12362
12363 CPPFLAGS="$save_CPPFLAGS"
12364 LDFLAGS="$save_LDFLAGS"
12365 LIBS="$save_LIBS"
12366 ;;
12367 esac
12368
12369 case $lt_cv_dlopen_self in
12370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12371 *) enable_dlopen_self=unknown ;;
12372 esac
12373
12374 case $lt_cv_dlopen_self_static in
12375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12376 *) enable_dlopen_self_static=unknown ;;
12377 esac
12378fi
12379
12380
12381# The else clause should only fire when bootstrapping the
12382# libtool distribution, otherwise you forgot to ship ltmain.sh
12383# with your package, and you will get complaints that there are
12384# no rules to generate ltmain.sh.
12385if test -f "$ltmain"; then
12386 # See if we are running on zsh, and set the options which allow our commands through
12387 # without removal of \ escapes.
12388 if test -n "${ZSH_VERSION+set}" ; then
12389 setopt NO_GLOB_SUBST
12390 fi
12391 # Now quote all the things that may contain metacharacters while being
12392 # careful not to overquote the AC_SUBSTed values. We take copies of the
12393 # variables and quote the copies for generation of the libtool script.
12394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12397 deplibs_check_method reload_flag reload_cmds need_locks \
12398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12399 lt_cv_sys_global_symbol_to_c_name_address \
12400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12401 old_postinstall_cmds old_postuninstall_cmds \
12402 compiler_CXX \
12403 CC_CXX \
12404 LD_CXX \
12405 lt_prog_compiler_wl_CXX \
12406 lt_prog_compiler_pic_CXX \
12407 lt_prog_compiler_static_CXX \
12408 lt_prog_compiler_no_builtin_flag_CXX \
12409 export_dynamic_flag_spec_CXX \
12410 thread_safe_flag_spec_CXX \
12411 whole_archive_flag_spec_CXX \
12412 enable_shared_with_static_runtimes_CXX \
12413 old_archive_cmds_CXX \
12414 old_archive_from_new_cmds_CXX \
12415 predep_objects_CXX \
12416 postdep_objects_CXX \
12417 predeps_CXX \
12418 postdeps_CXX \
12419 compiler_lib_search_path_CXX \
12420 archive_cmds_CXX \
12421 archive_expsym_cmds_CXX \
12422 postinstall_cmds_CXX \
12423 postuninstall_cmds_CXX \
12424 old_archive_from_expsyms_cmds_CXX \
12425 allow_undefined_flag_CXX \
12426 no_undefined_flag_CXX \
12427 export_symbols_cmds_CXX \
12428 hardcode_libdir_flag_spec_CXX \
12429 hardcode_libdir_flag_spec_ld_CXX \
12430 hardcode_libdir_separator_CXX \
12431 hardcode_automatic_CXX \
12432 module_cmds_CXX \
12433 module_expsym_cmds_CXX \
12434 lt_cv_prog_compiler_c_o_CXX \
12435 exclude_expsyms_CXX \
12436 include_expsyms_CXX; do
12437
12438 case $var in
12439 old_archive_cmds_CXX | \
12440 old_archive_from_new_cmds_CXX | \
12441 archive_cmds_CXX | \
12442 archive_expsym_cmds_CXX | \
12443 module_cmds_CXX | \
12444 module_expsym_cmds_CXX | \
12445 old_archive_from_expsyms_cmds_CXX | \
12446 export_symbols_cmds_CXX | \
12447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12448 postinstall_cmds | postuninstall_cmds | \
12449 old_postinstall_cmds | old_postuninstall_cmds | \
12450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12451 # Double-quote double-evaled strings.
12452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12453 ;;
12454 *)
12455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12456 ;;
12457 esac
12458 done
12459
12460 case $lt_echo in
12461 *'\$0 --fallback-echo"')
12462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12463 ;;
12464 esac
12465
12466cfgfile="$ofile"
12467
12468 cat <<__EOF__ >> "$cfgfile"
12469# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12470
12471# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12472
12473# Shell to use when invoking shell scripts.
12474SHELL=$lt_SHELL
12475
12476# Whether or not to build shared libraries.
12477build_libtool_libs=$enable_shared
12478
12479# Whether or not to build static libraries.
12480build_old_libs=$enable_static
12481
12482# Whether or not to add -lc for building shared libraries.
12483build_libtool_need_lc=$archive_cmds_need_lc_CXX
12484
12485# Whether or not to disallow shared libs when runtime libs are static
12486allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12487
12488# Whether or not to optimize for fast installation.
12489fast_install=$enable_fast_install
12490
12491# The host system.
12492host_alias=$host_alias
12493host=$host
12494
12495# An echo program that does not interpret backslashes.
12496echo=$lt_echo
12497
12498# The archiver.
12499AR=$lt_AR
12500AR_FLAGS=$lt_AR_FLAGS
12501
12502# A C compiler.
12503LTCC=$lt_LTCC
12504
12505# A language-specific compiler.
12506CC=$lt_compiler_CXX
12507
12508# Is the compiler the GNU C compiler?
12509with_gcc=$GCC_CXX
12510
12511# An ERE matcher.
12512EGREP=$lt_EGREP
12513
12514# The linker used to build libraries.
12515LD=$lt_LD_CXX
12516
12517# Whether we need hard or soft links.
12518LN_S=$lt_LN_S
12519
12520# A BSD-compatible nm program.
12521NM=$lt_NM
12522
12523# A symbol stripping program
12524STRIP=$STRIP
12525
12526# Used to examine libraries when file_magic_cmd begins "file"
12527MAGIC_CMD=$MAGIC_CMD
12528
12529# Used on cygwin: DLL creation program.
12530DLLTOOL="$DLLTOOL"
12531
12532# Used on cygwin: object dumper.
12533OBJDUMP="$OBJDUMP"
12534
12535# Used on cygwin: assembler.
12536AS="$AS"
12537
12538# The name of the directory that contains temporary libtool files.
12539objdir=$objdir
12540
12541# How to create reloadable object files.
12542reload_flag=$lt_reload_flag
12543reload_cmds=$lt_reload_cmds
12544
12545# How to pass a linker flag through the compiler.
12546wl=$lt_lt_prog_compiler_wl_CXX
12547
12548# Object file suffix (normally "o").
12549objext="$ac_objext"
12550
12551# Old archive suffix (normally "a").
12552libext="$libext"
12553
12554# Shared library suffix (normally ".so").
12555shrext='$shrext'
12556
12557# Executable file suffix (normally "").
12558exeext="$exeext"
12559
12560# Additional compiler flags for building library objects.
12561pic_flag=$lt_lt_prog_compiler_pic_CXX
12562pic_mode=$pic_mode
12563
12564# What is the maximum length of a command?
12565max_cmd_len=$lt_cv_sys_max_cmd_len
12566
12567# Does compiler simultaneously support -c and -o options?
12568compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12569
12570# Must we lock files when doing compilation ?
12571need_locks=$lt_need_locks
12572
12573# Do we need the lib prefix for modules?
12574need_lib_prefix=$need_lib_prefix
12575
12576# Do we need a version for libraries?
12577need_version=$need_version
12578
12579# Whether dlopen is supported.
12580dlopen_support=$enable_dlopen
12581
12582# Whether dlopen of programs is supported.
12583dlopen_self=$enable_dlopen_self
12584
12585# Whether dlopen of statically linked programs is supported.
12586dlopen_self_static=$enable_dlopen_self_static
12587
12588# Compiler flag to prevent dynamic linking.
12589link_static_flag=$lt_lt_prog_compiler_static_CXX
12590
12591# Compiler flag to turn off builtin functions.
12592no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12593
12594# Compiler flag to allow reflexive dlopens.
12595export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12596
12597# Compiler flag to generate shared objects directly from archives.
12598whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12599
12600# Compiler flag to generate thread-safe objects.
12601thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12602
12603# Library versioning type.
12604version_type=$version_type
12605
12606# Format of library name prefix.
12607libname_spec=$lt_libname_spec
12608
12609# List of archive names. First name is the real one, the rest are links.
12610# The last name is the one that the linker finds with -lNAME.
12611library_names_spec=$lt_library_names_spec
12612
12613# The coded name of the library, if different from the real name.
12614soname_spec=$lt_soname_spec
12615
12616# Commands used to build and install an old-style archive.
12617RANLIB=$lt_RANLIB
12618old_archive_cmds=$lt_old_archive_cmds_CXX
12619old_postinstall_cmds=$lt_old_postinstall_cmds
12620old_postuninstall_cmds=$lt_old_postuninstall_cmds
12621
12622# Create an old-style archive from a shared archive.
12623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12624
12625# Create a temporary old-style archive to link instead of a shared archive.
12626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12627
12628# Commands used to build and install a shared archive.
12629archive_cmds=$lt_archive_cmds_CXX
12630archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12631postinstall_cmds=$lt_postinstall_cmds
12632postuninstall_cmds=$lt_postuninstall_cmds
12633
12634# Commands used to build a loadable module (assumed same as above if empty)
12635module_cmds=$lt_module_cmds_CXX
12636module_expsym_cmds=$lt_module_expsym_cmds_CXX
12637
12638# Commands to strip libraries.
12639old_striplib=$lt_old_striplib
12640striplib=$lt_striplib
12641
12642# Dependencies to place before the objects being linked to create a
12643# shared library.
12644predep_objects=$lt_predep_objects_CXX
12645
12646# Dependencies to place after the objects being linked to create a
12647# shared library.
12648postdep_objects=$lt_postdep_objects_CXX
12649
12650# Dependencies to place before the objects being linked to create a
12651# shared library.
12652predeps=$lt_predeps_CXX
12653
12654# Dependencies to place after the objects being linked to create a
12655# shared library.
12656postdeps=$lt_postdeps_CXX
12657
12658# The library search path used internally by the compiler when linking
12659# a shared library.
12660compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12661
12662# Method to check whether dependent libraries are shared objects.
12663deplibs_check_method=$lt_deplibs_check_method
12664
12665# Command to use when deplibs_check_method == file_magic.
12666file_magic_cmd=$lt_file_magic_cmd
12667
12668# Flag that allows shared libraries with undefined symbols to be built.
12669allow_undefined_flag=$lt_allow_undefined_flag_CXX
12670
12671# Flag that forces no undefined symbols.
12672no_undefined_flag=$lt_no_undefined_flag_CXX
12673
12674# Commands used to finish a libtool library installation in a directory.
12675finish_cmds=$lt_finish_cmds
12676
12677# Same as above, but a single script fragment to be evaled but not shown.
12678finish_eval=$lt_finish_eval
12679
12680# Take the output of nm and produce a listing of raw symbols and C names.
12681global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12682
12683# Transform the output of nm in a proper C declaration
12684global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12685
12686# Transform the output of nm in a C name address pair
12687global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12688
12689# This is the shared library runtime path variable.
12690runpath_var=$runpath_var
12691
12692# This is the shared library path variable.
12693shlibpath_var=$shlibpath_var
12694
12695# Is shlibpath searched before the hard-coded library search path?
12696shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12697
12698# How to hardcode a shared library path into an executable.
12699hardcode_action=$hardcode_action_CXX
12700
12701# Whether we should hardcode library paths into libraries.
12702hardcode_into_libs=$hardcode_into_libs
12703
12704# Flag to hardcode \$libdir into a binary during linking.
12705# This must work even if \$libdir does not exist.
12706hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12707
12708# If ld is used when linking, flag to hardcode \$libdir into
12709# a binary during linking. This must work even if \$libdir does
12710# not exist.
12711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12712
12713# Whether we need a single -rpath flag with a separated argument.
12714hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12715
12716# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12717# resulting binary.
12718hardcode_direct=$hardcode_direct_CXX
12719
12720# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12721# resulting binary.
12722hardcode_minus_L=$hardcode_minus_L_CXX
12723
12724# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12725# the resulting binary.
12726hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12727
12728# Set to yes if building a shared library automatically hardcodes DIR into the library
12729# and all subsequent libraries and executables linked against it.
12730hardcode_automatic=$hardcode_automatic_CXX
12731
12732# Variables whose values should be saved in libtool wrapper scripts and
12733# restored at relink time.
12734variables_saved_for_relink="$variables_saved_for_relink"
12735
12736# Whether libtool must link a program against all its dependency libraries.
12737link_all_deplibs=$link_all_deplibs_CXX
12738
12739# Compile-time system search path for libraries
12740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12741
12742# Run-time system search path for libraries
12743sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12744
12745# Fix the shell variable \$srcfile for the compiler.
12746fix_srcfile_path="$fix_srcfile_path_CXX"
12747
12748# Set to yes if exported symbols are required.
12749always_export_symbols=$always_export_symbols_CXX
12750
12751# The commands to list exported symbols.
12752export_symbols_cmds=$lt_export_symbols_cmds_CXX
12753
12754# The commands to extract the exported symbol list from a shared archive.
12755extract_expsyms_cmds=$lt_extract_expsyms_cmds
12756
12757# Symbols that should not be listed in the preloaded symbols.
12758exclude_expsyms=$lt_exclude_expsyms_CXX
12759
12760# Symbols that must always be exported.
12761include_expsyms=$lt_include_expsyms_CXX
12762
12763# ### END LIBTOOL TAG CONFIG: $tagname
12764
12765__EOF__
12766
12767
12768else
12769 # If there is no Makefile yet, we rely on a make rule to execute
12770 # `config.status --recheck' to rerun these tests and create the
12771 # libtool script then.
12772 test -f Makefile && make "$ltmain"
12773fi
12774
12775
12776ac_ext=c
12777ac_cpp='$CPP $CPPFLAGS'
12778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780ac_compiler_gnu=$ac_cv_c_compiler_gnu
12781
12782CC=$lt_save_CC
12783LDCXX=$LD
12784LD=$lt_save_LD
12785GCC=$lt_save_GCC
12786with_gnu_ldcxx=$with_gnu_ld
12787with_gnu_ld=$lt_save_with_gnu_ld
12788lt_cv_path_LDCXX=$lt_cv_path_LD
12789lt_cv_path_LD=$lt_save_path_LD
12790lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12791lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12792
12793 else
12794 tagname=""
12795 fi
12796 ;;
12797
12798 F77)
12799 if test -n "$F77" && test "X$F77" != "Xno"; then
12800
12801ac_ext=f
12802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12805
12806
12807archive_cmds_need_lc_F77=no
12808allow_undefined_flag_F77=
12809always_export_symbols_F77=no
12810archive_expsym_cmds_F77=
12811export_dynamic_flag_spec_F77=
12812hardcode_direct_F77=no
12813hardcode_libdir_flag_spec_F77=
12814hardcode_libdir_flag_spec_ld_F77=
12815hardcode_libdir_separator_F77=
12816hardcode_minus_L_F77=no
12817hardcode_automatic_F77=no
12818module_cmds_F77=
12819module_expsym_cmds_F77=
12820link_all_deplibs_F77=unknown
12821old_archive_cmds_F77=$old_archive_cmds
12822no_undefined_flag_F77=
12823whole_archive_flag_spec_F77=
12824enable_shared_with_static_runtimes_F77=no
12825
12826# Source file extension for f77 test sources.
12827ac_ext=f
12828
12829# Object file extension for compiled f77 test sources.
12830objext=o
12831objext_F77=$objext
12832
12833# Code to be used in simple compile tests
12834lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12835
12836# Code to be used in simple link tests
12837lt_simple_link_test_code=" program t\n end\n"
12838
12839# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12840
12841# If no C compiler was specified, use CC.
12842LTCC=${LTCC-"$CC"}
12843
12844# Allow CC to be a program name with arguments.
12845compiler=$CC
12846
12847
12848# Allow CC to be a program name with arguments.
12849lt_save_CC="$CC"
12850CC=${F77-"f77"}
12851compiler=$CC
12852compiler_F77=$CC
12853cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12854
12855echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12856echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12857echo "$as_me:$LINENO: result: $can_build_shared" >&5
12858echo "${ECHO_T}$can_build_shared" >&6
12859
12860echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12861echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12862test "$can_build_shared" = "no" && enable_shared=no
12863
12864# On AIX, shared libraries and static libraries use the same namespace, and
12865# are all built from PIC.
12866case "$host_os" in
12867aix3*)
12868 test "$enable_shared" = yes && enable_static=no
12869 if test -n "$RANLIB"; then
12870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12871 postinstall_cmds='$RANLIB $lib'
12872 fi
12873 ;;
12874aix4*)
12875 test "$enable_shared" = yes && enable_static=no
12876 ;;
12877esac
12878echo "$as_me:$LINENO: result: $enable_shared" >&5
12879echo "${ECHO_T}$enable_shared" >&6
12880
12881echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12882echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12883# Make sure either enable_shared or enable_static is yes.
12884test "$enable_shared" = yes || enable_static=yes
12885echo "$as_me:$LINENO: result: $enable_static" >&5
12886echo "${ECHO_T}$enable_static" >&6
12887
12888test "$ld_shlibs_F77" = no && can_build_shared=no
12889
12890GCC_F77="$G77"
12891LD_F77="$LD"
12892
12893lt_prog_compiler_wl_F77=
12894lt_prog_compiler_pic_F77=
12895lt_prog_compiler_static_F77=
12896
12897echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12898echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12899
12900 if test "$GCC" = yes; then
12901 lt_prog_compiler_wl_F77='-Wl,'
12902 lt_prog_compiler_static_F77='-static'
12903
12904 case $host_os in
12905 aix*)
12906 # All AIX code is PIC.
12907 if test "$host_cpu" = ia64; then
12908 # AIX 5 now supports IA64 processor
12909 lt_prog_compiler_static_F77='-Bstatic'
12910 fi
12911 ;;
12912
12913 amigaos*)
12914 # FIXME: we need at least 68020 code to build shared libraries, but
12915 # adding the `-m68020' flag to GCC prevents building anything better,
12916 # like `-m68040'.
12917 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12918 ;;
12919
12920 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12921 # PIC is the default for these OSes.
12922 ;;
12923
12924 mingw* | pw32* | os2*)
12925 # This hack is so that the source file can tell whether it is being
12926 # built for inclusion in a dll (and should export symbols for example).
12927 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12928 ;;
12929
12930 darwin* | rhapsody*)
12931 # PIC is the default on this platform
12932 # Common symbols not allowed in MH_DYLIB files
12933 lt_prog_compiler_pic_F77='-fno-common'
12934 ;;
12935
12936 msdosdjgpp*)
12937 # Just because we use GCC doesn't mean we suddenly get shared libraries
12938 # on systems that don't support them.
12939 lt_prog_compiler_can_build_shared_F77=no
12940 enable_shared=no
12941 ;;
12942
12943 sysv4*MP*)
12944 if test -d /usr/nec; then
12945 lt_prog_compiler_pic_F77=-Kconform_pic
12946 fi
12947 ;;
12948
12949 hpux*)
12950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12951 # not for PA HP-UX.
12952 case "$host_cpu" in
12953 hppa*64*|ia64*)
12954 # +Z the default
12955 ;;
12956 *)
12957 lt_prog_compiler_pic_F77='-fPIC'
12958 ;;
12959 esac
12960 ;;
12961
12962 *)
12963 lt_prog_compiler_pic_F77='-fPIC'
12964 ;;
12965 esac
12966 else
12967 # PORTME Check for flag to pass linker flags through the system compiler.
12968 case $host_os in
12969 aix*)
12970 lt_prog_compiler_wl_F77='-Wl,'
12971 if test "$host_cpu" = ia64; then
12972 # AIX 5 now supports IA64 processor
12973 lt_prog_compiler_static_F77='-Bstatic'
12974 else
12975 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12976 fi
12977 ;;
12978
12979 mingw* | pw32* | os2*)
12980 # This hack is so that the source file can tell whether it is being
12981 # built for inclusion in a dll (and should export symbols for example).
12982 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12983 ;;
12984
12985 hpux9* | hpux10* | hpux11*)
12986 lt_prog_compiler_wl_F77='-Wl,'
12987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12988 # not for PA HP-UX.
12989 case "$host_cpu" in
12990 hppa*64*|ia64*)
12991 # +Z the default
12992 ;;
12993 *)
12994 lt_prog_compiler_pic_F77='+Z'
12995 ;;
12996 esac
12997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12998 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12999 ;;
13000
13001 irix5* | irix6* | nonstopux*)
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 # PIC (with -KPIC) is the default.
13004 lt_prog_compiler_static_F77='-non_shared'
13005 ;;
13006
13007 newsos6)
13008 lt_prog_compiler_pic_F77='-KPIC'
13009 lt_prog_compiler_static_F77='-Bstatic'
13010 ;;
13011
13012 linux*)
13013 case $CC in
13014 icc|ecc)
13015 lt_prog_compiler_wl_F77='-Wl,'
13016 lt_prog_compiler_pic_F77='-KPIC'
13017 lt_prog_compiler_static_F77='-static'
13018 ;;
13019 ccc)
13020 lt_prog_compiler_wl_F77='-Wl,'
13021 # All Alpha code is PIC.
13022 lt_prog_compiler_static_F77='-non_shared'
13023 ;;
13024 esac
13025 ;;
13026
13027 osf3* | osf4* | osf5*)
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 # All OSF/1 code is PIC.
13030 lt_prog_compiler_static_F77='-non_shared'
13031 ;;
13032
13033 sco3.2v5*)
13034 lt_prog_compiler_pic_F77='-Kpic'
13035 lt_prog_compiler_static_F77='-dn'
13036 ;;
13037
13038 solaris*)
13039 lt_prog_compiler_wl_F77='-Wl,'
13040 lt_prog_compiler_pic_F77='-KPIC'
13041 lt_prog_compiler_static_F77='-Bstatic'
13042 ;;
13043
13044 sunos4*)
13045 lt_prog_compiler_wl_F77='-Qoption ld '
13046 lt_prog_compiler_pic_F77='-PIC'
13047 lt_prog_compiler_static_F77='-Bstatic'
13048 ;;
13049
13050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13051 lt_prog_compiler_wl_F77='-Wl,'
13052 lt_prog_compiler_pic_F77='-KPIC'
13053 lt_prog_compiler_static_F77='-Bstatic'
13054 ;;
13055
13056 sysv4*MP*)
13057 if test -d /usr/nec ;then
13058 lt_prog_compiler_pic_F77='-Kconform_pic'
13059 lt_prog_compiler_static_F77='-Bstatic'
13060 fi
13061 ;;
13062
13063 uts4*)
13064 lt_prog_compiler_pic_F77='-pic'
13065 lt_prog_compiler_static_F77='-Bstatic'
13066 ;;
13067
13068 *)
13069 lt_prog_compiler_can_build_shared_F77=no
13070 ;;
13071 esac
13072 fi
13073
13074echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13075echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13076
13077#
13078# Check to make sure the PIC flag actually works.
13079#
13080if test -n "$lt_prog_compiler_pic_F77"; then
13081 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13082echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13083if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 lt_prog_compiler_pic_works_F77=no
13087 ac_outfile=conftest.$ac_objext
13088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13089 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13090 # Insert the option either (1) after the last *FLAGS variable, or
13091 # (2) before a word containing "conftest.", or (3) at the end.
13092 # Note that $ac_compile itself does not contain backslashes and begins
13093 # with a dollar sign (not a hyphen), so the echo should work correctly.
13094 # The option is referenced via a variable to avoid confusing sed.
13095 lt_compile=`echo "$ac_compile" | $SED \
13096 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13098 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000013099 (eval echo "\"\$as_me:13099: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013100 (eval "$lt_compile" 2>conftest.err)
13101 ac_status=$?
13102 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000013103 echo "$as_me:13103: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013104 if (exit $ac_status) && test -s "$ac_outfile"; then
13105 # The compiler can only warn and ignore the option if not recognized
13106 # So say no if there are warnings
13107 if test ! -s conftest.err; then
13108 lt_prog_compiler_pic_works_F77=yes
13109 fi
13110 fi
13111 $rm conftest*
13112
13113fi
13114echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13115echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13116
13117if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13118 case $lt_prog_compiler_pic_F77 in
13119 "" | " "*) ;;
13120 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13121 esac
13122else
13123 lt_prog_compiler_pic_F77=
13124 lt_prog_compiler_can_build_shared_F77=no
13125fi
13126
13127fi
13128case "$host_os" in
13129 # For platforms which do not support PIC, -DPIC is meaningless:
13130 *djgpp*)
13131 lt_prog_compiler_pic_F77=
13132 ;;
13133 *)
13134 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13135 ;;
13136esac
13137
13138echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13139echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13140if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142else
13143 lt_cv_prog_compiler_c_o_F77=no
13144 $rm -r conftest 2>/dev/null
13145 mkdir conftest
13146 cd conftest
13147 mkdir out
13148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13149
13150 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13151 # that will create temporary files in the current directory regardless of
13152 # the output directory. Thus, making CWD read-only will cause this test
13153 # to fail, enabling locking or at least warning the user not to do parallel
13154 # builds.
13155 chmod -w .
13156
13157 lt_compiler_flag="-o out/conftest2.$ac_objext"
13158 # Insert the option either (1) after the last *FLAGS variable, or
13159 # (2) before a word containing "conftest.", or (3) at the end.
13160 # Note that $ac_compile itself does not contain backslashes and begins
13161 # with a dollar sign (not a hyphen), so the echo should work correctly.
13162 lt_compile=`echo "$ac_compile" | $SED \
13163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13165 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000013166 (eval echo "\"\$as_me:13166: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013167 (eval "$lt_compile" 2>out/conftest.err)
13168 ac_status=$?
13169 cat out/conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000013170 echo "$as_me:13170: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13172 then
13173 # The compiler can only warn and ignore the option if not recognized
13174 # So say no if there are warnings
13175 if test ! -s out/conftest.err; then
13176 lt_cv_prog_compiler_c_o_F77=yes
13177 fi
13178 fi
13179 chmod u+w .
13180 $rm conftest* out/*
13181 rmdir out
13182 cd ..
13183 rmdir conftest
13184 $rm conftest*
13185
13186fi
13187echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13188echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13189
13190
13191hard_links="nottested"
13192if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13193 # do not overwrite the value of need_locks provided by the user
13194 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13195echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13196 hard_links=yes
13197 $rm conftest*
13198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13199 touch conftest.a
13200 ln conftest.a conftest.b 2>&5 || hard_links=no
13201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13202 echo "$as_me:$LINENO: result: $hard_links" >&5
13203echo "${ECHO_T}$hard_links" >&6
13204 if test "$hard_links" = no; then
13205 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13206echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13207 need_locks=warn
13208 fi
13209else
13210 need_locks=no
13211fi
13212
13213echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13214echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13215
13216 runpath_var=
13217 allow_undefined_flag_F77=
13218 enable_shared_with_static_runtimes_F77=no
13219 archive_cmds_F77=
13220 archive_expsym_cmds_F77=
13221 old_archive_From_new_cmds_F77=
13222 old_archive_from_expsyms_cmds_F77=
13223 export_dynamic_flag_spec_F77=
13224 whole_archive_flag_spec_F77=
13225 thread_safe_flag_spec_F77=
13226 hardcode_libdir_flag_spec_F77=
13227 hardcode_libdir_flag_spec_ld_F77=
13228 hardcode_libdir_separator_F77=
13229 hardcode_direct_F77=no
13230 hardcode_minus_L_F77=no
13231 hardcode_shlibpath_var_F77=unsupported
13232 link_all_deplibs_F77=unknown
13233 hardcode_automatic_F77=no
13234 module_cmds_F77=
13235 module_expsym_cmds_F77=
13236 always_export_symbols_F77=no
13237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13238 # include_expsyms should be a list of space-separated symbols to be *always*
13239 # included in the symbol list
13240 include_expsyms_F77=
13241 # exclude_expsyms can be an extended regexp of symbols to exclude
13242 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13243 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13244 # as well as any symbol that contains `d'.
13245 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13247 # platforms (ab)use it in PIC code, but their linkers get confused if
13248 # the symbol is explicitly referenced. Since portable code cannot
13249 # rely on this symbol name, it's probably fine to never include it in
13250 # preloaded symbol tables.
13251 extract_expsyms_cmds=
13252
13253 case $host_os in
13254 cygwin* | mingw* | pw32*)
13255 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13256 # When not using gcc, we currently assume that we are using
13257 # Microsoft Visual C++.
13258 if test "$GCC" != yes; then
13259 with_gnu_ld=no
13260 fi
13261 ;;
13262 openbsd*)
13263 with_gnu_ld=no
13264 ;;
13265 esac
13266
13267 ld_shlibs_F77=yes
13268 if test "$with_gnu_ld" = yes; then
13269 # If archive_cmds runs LD, not CC, wlarc should be empty
13270 wlarc='${wl}'
13271
13272 # See if GNU ld supports shared libraries.
13273 case $host_os in
13274 aix3* | aix4* | aix5*)
13275 # On AIX/PPC, the GNU linker is very broken
13276 if test "$host_cpu" != ia64; then
13277 ld_shlibs_F77=no
13278 cat <<EOF 1>&2
13279
13280*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13281*** to be unable to reliably create shared libraries on AIX.
13282*** Therefore, libtool is disabling shared libraries support. If you
13283*** really care for shared libraries, you may want to modify your PATH
13284*** so that a non-GNU linker is found, and then restart.
13285
13286EOF
13287 fi
13288 ;;
13289
13290 amigaos*)
13291 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)'
13292 hardcode_libdir_flag_spec_F77='-L$libdir'
13293 hardcode_minus_L_F77=yes
13294
13295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13296 # that the semantics of dynamic libraries on AmigaOS, at least up
13297 # to version 4, is to share data among multiple programs linked
13298 # with the same dynamic library. Since this doesn't match the
13299 # behavior of shared libraries on other platforms, we can't use
13300 # them.
13301 ld_shlibs_F77=no
13302 ;;
13303
13304 beos*)
13305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13306 allow_undefined_flag_F77=unsupported
13307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13308 # support --undefined. This deserves some investigation. FIXME
13309 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13310 else
13311 ld_shlibs_F77=no
13312 fi
13313 ;;
13314
13315 cygwin* | mingw* | pw32*)
13316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13317 # as there is no search path for DLLs.
13318 hardcode_libdir_flag_spec_F77='-L$libdir'
13319 allow_undefined_flag_F77=unsupported
13320 always_export_symbols_F77=no
13321 enable_shared_with_static_runtimes_F77=yes
13322 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13323
13324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13325 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13326 # If the export-symbols file already is a .def file (1st line
13327 # is EXPORTS), use it as is; otherwise, prepend...
13328 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13329 cp $export_symbols $output_objdir/$soname.def;
13330 else
13331 echo EXPORTS > $output_objdir/$soname.def;
13332 cat $export_symbols >> $output_objdir/$soname.def;
13333 fi~
13334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13335 else
13336 ld_shlibs=no
13337 fi
13338 ;;
13339
13340 netbsd*)
13341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13342 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13343 wlarc=
13344 else
13345 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13346 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13347 fi
13348 ;;
13349
13350 solaris* | sysv5*)
13351 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13352 ld_shlibs_F77=no
13353 cat <<EOF 1>&2
13354
13355*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13356*** create shared libraries on Solaris systems. Therefore, libtool
13357*** is disabling shared libraries support. We urge you to upgrade GNU
13358*** binutils to release 2.9.1 or newer. Another option is to modify
13359*** your PATH or compiler configuration so that the native linker is
13360*** used, and then restart.
13361
13362EOF
13363 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13364 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366 else
13367 ld_shlibs_F77=no
13368 fi
13369 ;;
13370
13371 sunos4*)
13372 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13373 wlarc=
13374 hardcode_direct_F77=yes
13375 hardcode_shlibpath_var_F77=no
13376 ;;
13377
13378 *)
13379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13382 else
13383 ld_shlibs_F77=no
13384 fi
13385 ;;
13386 esac
13387
13388 if test "$ld_shlibs_F77" = yes; then
13389 runpath_var=LD_RUN_PATH
13390 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13391 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13392 # ancient GNU ld didn't support --whole-archive et. al.
13393 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13394 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13395 else
13396 whole_archive_flag_spec_F77=
13397 fi
13398 fi
13399 else
13400 # PORTME fill in a description of your system's linker (not GNU ld)
13401 case $host_os in
13402 aix3*)
13403 allow_undefined_flag_F77=unsupported
13404 always_export_symbols_F77=yes
13405 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'
13406 # Note: this linker hardcodes the directories in LIBPATH if there
13407 # are no directories specified by -L.
13408 hardcode_minus_L_F77=yes
13409 if test "$GCC" = yes && test -z "$link_static_flag"; then
13410 # Neither direct hardcoding nor static linking is supported with a
13411 # broken collect2.
13412 hardcode_direct_F77=unsupported
13413 fi
13414 ;;
13415
13416 aix4* | aix5*)
13417 if test "$host_cpu" = ia64; then
13418 # On IA64, the linker does run time linking by default, so we don't
13419 # have to do anything special.
13420 aix_use_runtimelinking=no
13421 exp_sym_flag='-Bexport'
13422 no_entry_flag=""
13423 else
13424 # If we're using GNU nm, then we don't want the "-C" option.
13425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13426 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13427 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'
13428 else
13429 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'
13430 fi
13431 aix_use_runtimelinking=no
13432
13433 # Test if we are trying to use run time linking or normal
13434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13435 # need to do runtime linking.
13436 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13437 for ld_flag in $LDFLAGS; do
13438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13439 aix_use_runtimelinking=yes
13440 break
13441 fi
13442 done
13443 esac
13444
13445 exp_sym_flag='-bexport'
13446 no_entry_flag='-bnoentry'
13447 fi
13448
13449 # When large executables or shared objects are built, AIX ld can
13450 # have problems creating the table of contents. If linking a library
13451 # or program results in "error TOC overflow" add -mminimal-toc to
13452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13454
13455 archive_cmds_F77=''
13456 hardcode_direct_F77=yes
13457 hardcode_libdir_separator_F77=':'
13458 link_all_deplibs_F77=yes
13459
13460 if test "$GCC" = yes; then
13461 case $host_os in aix4.012|aix4.012.*)
13462 # We only want to do this on AIX 4.2 and lower, the check
13463 # below for broken collect2 doesn't work under 4.3+
13464 collect2name=`${CC} -print-prog-name=collect2`
13465 if test -f "$collect2name" && \
13466 strings "$collect2name" | grep resolve_lib_name >/dev/null
13467 then
13468 # We have reworked collect2
13469 hardcode_direct_F77=yes
13470 else
13471 # We have old collect2
13472 hardcode_direct_F77=unsupported
13473 # It fails to find uninstalled libraries when the uninstalled
13474 # path is not listed in the libpath. Setting hardcode_minus_L
13475 # to unsupported forces relinking
13476 hardcode_minus_L_F77=yes
13477 hardcode_libdir_flag_spec_F77='-L$libdir'
13478 hardcode_libdir_separator_F77=
13479 fi
13480 esac
13481 shared_flag='-shared'
13482 else
13483 # not using gcc
13484 if test "$host_cpu" = ia64; then
13485 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13486 # chokes on -Wl,-G. The following line is correct:
13487 shared_flag='-G'
13488 else
13489 if test "$aix_use_runtimelinking" = yes; then
13490 shared_flag='${wl}-G'
13491 else
13492 shared_flag='${wl}-bM:SRE'
13493 fi
13494 fi
13495 fi
13496
13497 # It seems that -bexpall does not export symbols beginning with
13498 # underscore (_), so it is better to generate a list of symbols to export.
13499 always_export_symbols_F77=yes
13500 if test "$aix_use_runtimelinking" = yes; then
13501 # Warning - without using the other runtime loading flags (-brtl),
13502 # -berok will link without error, but may produce a broken library.
13503 allow_undefined_flag_F77='-berok'
13504 # Determine the default libpath from the value encoded in an empty executable.
13505 cat >conftest.$ac_ext <<_ACEOF
13506 program main
13507
13508 end
13509_ACEOF
13510rm -f conftest.$ac_objext conftest$ac_exeext
13511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } &&
13516 { ac_try='test -s conftest$ac_exeext'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522
13523aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13524}'`
13525# Check for a 64-bit object if we didn't find anything.
13526if 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; }
13527}'`; fi
13528else
13529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013530sed 's/^/| /' conftest.$ac_ext >&5
13531
John Criswell47fdd832003-07-14 16:52:07 +000013532fi
13533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13535
13536 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13537 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"
13538 else
13539 if test "$host_cpu" = ia64; then
13540 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13541 allow_undefined_flag_F77="-z nodefs"
13542 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"
13543 else
13544 # Determine the default libpath from the value encoded in an empty executable.
13545 cat >conftest.$ac_ext <<_ACEOF
13546 program main
13547
13548 end
13549_ACEOF
13550rm -f conftest.$ac_objext conftest$ac_exeext
13551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562
13563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13564}'`
13565# Check for a 64-bit object if we didn't find anything.
13566if 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; }
13567}'`; fi
13568else
13569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013570sed 's/^/| /' conftest.$ac_ext >&5
13571
John Criswell47fdd832003-07-14 16:52:07 +000013572fi
13573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13575
13576 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13577 # Warning - without using the other run time loading flags,
13578 # -berok will link without error, but may produce a broken library.
13579 no_undefined_flag_F77=' ${wl}-bernotok'
13580 allow_undefined_flag_F77=' ${wl}-berok'
13581 # -bexpall does not export symbols beginning with underscore (_)
13582 always_export_symbols_F77=yes
13583 # Exported symbols can be pulled into shared objects from archives
13584 whole_archive_flag_spec_F77=' '
13585 archive_cmds_need_lc_F77=yes
13586 # This is similar to how AIX traditionally builds it's shared libraries.
13587 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'
13588 fi
13589 fi
13590 ;;
13591
13592 amigaos*)
13593 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)'
13594 hardcode_libdir_flag_spec_F77='-L$libdir'
13595 hardcode_minus_L_F77=yes
13596 # see comment about different semantics on the GNU ld section
13597 ld_shlibs_F77=no
13598 ;;
13599
13600 bsdi4*)
13601 export_dynamic_flag_spec_F77=-rdynamic
13602 ;;
13603
13604 cygwin* | mingw* | pw32*)
13605 # When not using gcc, we currently assume that we are using
13606 # Microsoft Visual C++.
13607 # hardcode_libdir_flag_spec is actually meaningless, as there is
13608 # no search path for DLLs.
13609 hardcode_libdir_flag_spec_F77=' '
13610 allow_undefined_flag_F77=unsupported
13611 # Tell ltmain to make .lib files, not .a files.
13612 libext=lib
13613 # Tell ltmain to make .dll files, not .so files.
13614 shrext=".dll"
13615 # FIXME: Setting linknames here is a bad hack.
13616 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13617 # The linker will automatically build a .lib file if we build a DLL.
13618 old_archive_From_new_cmds_F77='true'
13619 # FIXME: Should let the user specify the lib program.
13620 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13621 fix_srcfile_path='`cygpath -w "$srcfile"`'
13622 enable_shared_with_static_runtimes_F77=yes
13623 ;;
13624
13625 darwin* | rhapsody*)
13626 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13627 archive_cmds_need_lc_F77=no
13628 case "$host_os" in
13629 rhapsody* | darwin1.[012])
13630 allow_undefined_flag_F77='-undefined suppress'
13631 ;;
13632 *) # Darwin 1.3 on
13633 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13634 ;;
13635 esac
13636 # FIXME: Relying on posixy $() will cause problems for
13637 # cross-compilation, but unfortunately the echo tests do not
13638 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13639 # `"' quotes if we put them in here... so don't!
13640 lt_int_apple_cc_single_mod=no
13641 output_verbose_link_cmd='echo'
13642 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13643 lt_int_apple_cc_single_mod=yes
13644 fi
13645 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13646 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13647 else
13648 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'
13649 fi
13650 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13652 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13653 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}'
13654 else
13655 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}'
13656 fi
13657 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}'
13658 hardcode_direct_F77=no
13659 hardcode_automatic_F77=yes
13660 hardcode_shlibpath_var_F77=unsupported
13661 whole_archive_flag_spec_F77='-all_load $convenience'
13662 link_all_deplibs_F77=yes
13663 fi
13664 ;;
13665
13666 dgux*)
13667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668 hardcode_libdir_flag_spec_F77='-L$libdir'
13669 hardcode_shlibpath_var_F77=no
13670 ;;
13671
13672 freebsd1*)
13673 ld_shlibs_F77=no
13674 ;;
13675
13676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13677 # support. Future versions do this automatically, but an explicit c++rt0.o
13678 # does not break anything, and helps significantly (at the cost of a little
13679 # extra space).
13680 freebsd2.2*)
13681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13682 hardcode_libdir_flag_spec_F77='-R$libdir'
13683 hardcode_direct_F77=yes
13684 hardcode_shlibpath_var_F77=no
13685 ;;
13686
13687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13688 freebsd2*)
13689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13690 hardcode_direct_F77=yes
13691 hardcode_minus_L_F77=yes
13692 hardcode_shlibpath_var_F77=no
13693 ;;
13694
13695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13696 freebsd*)
13697 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13698 hardcode_libdir_flag_spec_F77='-R$libdir'
13699 hardcode_direct_F77=yes
13700 hardcode_shlibpath_var_F77=no
13701 ;;
13702
13703 hpux9*)
13704 if test "$GCC" = yes; then
13705 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'
13706 else
13707 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'
13708 fi
13709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13710 hardcode_libdir_separator_F77=:
13711 hardcode_direct_F77=yes
13712
13713 # hardcode_minus_L: Not really in the search PATH,
13714 # but as the default location of the library.
13715 hardcode_minus_L_F77=yes
13716 export_dynamic_flag_spec_F77='${wl}-E'
13717 ;;
13718
13719 hpux10* | hpux11*)
13720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13721 case "$host_cpu" in
13722 hppa*64*|ia64*)
13723 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13724 ;;
13725 *)
13726 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13727 ;;
13728 esac
13729 else
13730 case "$host_cpu" in
13731 hppa*64*|ia64*)
13732 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13733 ;;
13734 *)
13735 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13736 ;;
13737 esac
13738 fi
13739 if test "$with_gnu_ld" = no; then
13740 case "$host_cpu" in
13741 hppa*64*)
13742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13743 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13744 hardcode_libdir_separator_F77=:
13745 hardcode_direct_F77=no
13746 hardcode_shlibpath_var_F77=no
13747 ;;
13748 ia64*)
13749 hardcode_libdir_flag_spec_F77='-L$libdir'
13750 hardcode_direct_F77=no
13751 hardcode_shlibpath_var_F77=no
13752
13753 # hardcode_minus_L: Not really in the search PATH,
13754 # but as the default location of the library.
13755 hardcode_minus_L_F77=yes
13756 ;;
13757 *)
13758 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13759 hardcode_libdir_separator_F77=:
13760 hardcode_direct_F77=yes
13761 export_dynamic_flag_spec_F77='${wl}-E'
13762
13763 # hardcode_minus_L: Not really in the search PATH,
13764 # but as the default location of the library.
13765 hardcode_minus_L_F77=yes
13766 ;;
13767 esac
13768 fi
13769 ;;
13770
13771 irix5* | irix6* | nonstopux*)
13772 if test "$GCC" = yes; then
13773 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'
13774 else
13775 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'
13776 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13777 fi
13778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_F77=:
13780 link_all_deplibs_F77=yes
13781 ;;
13782
13783 netbsd*)
13784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13785 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13786 else
13787 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13788 fi
13789 hardcode_libdir_flag_spec_F77='-R$libdir'
13790 hardcode_direct_F77=yes
13791 hardcode_shlibpath_var_F77=no
13792 ;;
13793
13794 newsos6)
13795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13796 hardcode_direct_F77=yes
13797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13798 hardcode_libdir_separator_F77=:
13799 hardcode_shlibpath_var_F77=no
13800 ;;
13801
13802 openbsd*)
13803 hardcode_direct_F77=yes
13804 hardcode_shlibpath_var_F77=no
13805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13806 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13807 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13808 export_dynamic_flag_spec_F77='${wl}-E'
13809 else
13810 case $host_os in
13811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13812 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_libdir_flag_spec_F77='-R$libdir'
13814 ;;
13815 *)
13816 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13817 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13818 ;;
13819 esac
13820 fi
13821 ;;
13822
13823 os2*)
13824 hardcode_libdir_flag_spec_F77='-L$libdir'
13825 hardcode_minus_L_F77=yes
13826 allow_undefined_flag_F77=unsupported
13827 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'
13828 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13829 ;;
13830
13831 osf3*)
13832 if test "$GCC" = yes; then
13833 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13834 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'
13835 else
13836 allow_undefined_flag_F77=' -expect_unresolved \*'
13837 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'
13838 fi
13839 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13840 hardcode_libdir_separator_F77=:
13841 ;;
13842
13843 osf4* | osf5*) # as osf3* with the addition of -msym flag
13844 if test "$GCC" = yes; then
13845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13846 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'
13847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13848 else
13849 allow_undefined_flag_F77=' -expect_unresolved \*'
13850 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'
13851 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~
13852 $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'
13853
13854 # Both c and cxx compiler support -rpath directly
13855 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13856 fi
13857 hardcode_libdir_separator_F77=:
13858 ;;
13859
13860 sco3.2v5*)
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_shlibpath_var_F77=no
13863 export_dynamic_flag_spec_F77='${wl}-Bexport'
13864 runpath_var=LD_RUN_PATH
13865 hardcode_runpath_var=yes
13866 ;;
13867
13868 solaris*)
13869 no_undefined_flag_F77=' -z text'
13870 if test "$GCC" = yes; then
13871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13873 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13874 else
13875 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13876 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13878 fi
13879 hardcode_libdir_flag_spec_F77='-R$libdir'
13880 hardcode_shlibpath_var_F77=no
13881 case $host_os in
13882 solaris2.[0-5] | solaris2.[0-5].*) ;;
13883 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13884 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13885 esac
13886 link_all_deplibs_F77=yes
13887 ;;
13888
13889 sunos4*)
13890 if test "x$host_vendor" = xsequent; then
13891 # Use $CC to link under sequent, because it throws in some extra .o
13892 # files that make .init and .fini sections work.
13893 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13894 else
13895 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13896 fi
13897 hardcode_libdir_flag_spec_F77='-L$libdir'
13898 hardcode_direct_F77=yes
13899 hardcode_minus_L_F77=yes
13900 hardcode_shlibpath_var_F77=no
13901 ;;
13902
13903 sysv4)
13904 case $host_vendor in
13905 sni)
13906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_direct_F77=yes # is this really true???
13908 ;;
13909 siemens)
13910 ## LD is ld it makes a PLAMLIB
13911 ## CC just makes a GrossModule.
13912 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13913 reload_cmds_F77='$CC -r -o $output$reload_objs'
13914 hardcode_direct_F77=no
13915 ;;
13916 motorola)
13917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13918 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13919 ;;
13920 esac
13921 runpath_var='LD_RUN_PATH'
13922 hardcode_shlibpath_var_F77=no
13923 ;;
13924
13925 sysv4.3*)
13926 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_shlibpath_var_F77=no
13928 export_dynamic_flag_spec_F77='-Bexport'
13929 ;;
13930
13931 sysv4*MP*)
13932 if test -d /usr/nec; then
13933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_shlibpath_var_F77=no
13935 runpath_var=LD_RUN_PATH
13936 hardcode_runpath_var=yes
13937 ld_shlibs_F77=yes
13938 fi
13939 ;;
13940
13941 sysv4.2uw2*)
13942 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13943 hardcode_direct_F77=yes
13944 hardcode_minus_L_F77=no
13945 hardcode_shlibpath_var_F77=no
13946 hardcode_runpath_var=yes
13947 runpath_var=LD_RUN_PATH
13948 ;;
13949
13950 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13951 no_undefined_flag_F77='${wl}-z ${wl}text'
13952 if test "$GCC" = yes; then
13953 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 else
13955 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956 fi
13957 runpath_var='LD_RUN_PATH'
13958 hardcode_shlibpath_var_F77=no
13959 ;;
13960
13961 sysv5*)
13962 no_undefined_flag_F77=' -z text'
13963 # $CC -shared without GNU ld will not create a library from C++
13964 # object files and a static libstdc++, better avoid it by now
13965 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13968 hardcode_libdir_flag_spec_F77=
13969 hardcode_shlibpath_var_F77=no
13970 runpath_var='LD_RUN_PATH'
13971 ;;
13972
13973 uts4*)
13974 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13975 hardcode_libdir_flag_spec_F77='-L$libdir'
13976 hardcode_shlibpath_var_F77=no
13977 ;;
13978
13979 *)
13980 ld_shlibs_F77=no
13981 ;;
13982 esac
13983 fi
13984
13985echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13986echo "${ECHO_T}$ld_shlibs_F77" >&6
13987test "$ld_shlibs_F77" = no && can_build_shared=no
13988
13989variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13990if test "$GCC" = yes; then
13991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13992fi
13993
13994#
13995# Do we need to explicitly link libc?
13996#
13997case "x$archive_cmds_need_lc_F77" in
13998x|xyes)
13999 # Assume -lc should be added
14000 archive_cmds_need_lc_F77=yes
14001
14002 if test "$enable_shared" = yes && test "$GCC" = yes; then
14003 case $archive_cmds_F77 in
14004 *'~'*)
14005 # FIXME: we may have to deal with multi-command sequences.
14006 ;;
14007 '$CC '*)
14008 # Test whether the compiler implicitly links with -lc since on some
14009 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14010 # to ld, don't add -lc before -lgcc.
14011 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14012echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14013 $rm conftest*
14014 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14015
14016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14017 (eval $ac_compile) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } 2>conftest.err; then
14021 soname=conftest
14022 lib=conftest
14023 libobjs=conftest.$ac_objext
14024 deplibs=
14025 wl=$lt_prog_compiler_wl_F77
14026 compiler_flags=-v
14027 linker_flags=-v
14028 verstring=
14029 output_objdir=.
14030 libname=conftest
14031 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14032 allow_undefined_flag_F77=
14033 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14034 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14035 ac_status=$?
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }
14038 then
14039 archive_cmds_need_lc_F77=no
14040 else
14041 archive_cmds_need_lc_F77=yes
14042 fi
14043 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14044 else
14045 cat conftest.err 1>&5
14046 fi
14047 $rm conftest*
14048 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14049echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14050 ;;
14051 esac
14052 fi
14053 ;;
14054esac
14055
14056echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14057echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14058hardcode_action_F77=
14059if test -n "$hardcode_libdir_flag_spec_F77" || \
14060 test -n "$runpath_var F77" || \
14061 test "X$hardcode_automatic_F77"="Xyes" ; then
14062
14063 # We can hardcode non-existant directories.
14064 if test "$hardcode_direct_F77" != no &&
14065 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14066 # have to relink, otherwise we might link with an installed library
14067 # when we should be linking with a yet-to-be-installed one
14068 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14069 test "$hardcode_minus_L_F77" != no; then
14070 # Linking always hardcodes the temporary library directory.
14071 hardcode_action_F77=relink
14072 else
14073 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14074 hardcode_action_F77=immediate
14075 fi
14076else
14077 # We cannot hardcode anything, or else we can only hardcode existing
14078 # directories.
14079 hardcode_action_F77=unsupported
14080fi
14081echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14082echo "${ECHO_T}$hardcode_action_F77" >&6
14083
14084if test "$hardcode_action_F77" = relink; then
14085 # Fast installation is not supported
14086 enable_fast_install=no
14087elif test "$shlibpath_overrides_runpath" = yes ||
14088 test "$enable_shared" = no; then
14089 # Fast installation is not necessary
14090 enable_fast_install=needless
14091fi
14092
14093striplib=
14094old_striplib=
14095echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14096echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14097if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14098 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14099 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14100 echo "$as_me:$LINENO: result: yes" >&5
14101echo "${ECHO_T}yes" >&6
14102else
14103# FIXME - insert some real tests, host_os isn't really good enough
14104 case $host_os in
14105 darwin*)
14106 if test -n "$STRIP" ; then
14107 striplib="$STRIP -x"
14108 echo "$as_me:$LINENO: result: yes" >&5
14109echo "${ECHO_T}yes" >&6
14110 else
14111 echo "$as_me:$LINENO: result: no" >&5
14112echo "${ECHO_T}no" >&6
14113fi
14114 ;;
14115 *)
14116 echo "$as_me:$LINENO: result: no" >&5
14117echo "${ECHO_T}no" >&6
14118 ;;
14119 esac
14120fi
14121
14122echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14123echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14124library_names_spec=
14125libname_spec='lib$name'
14126soname_spec=
14127shrext=".so"
14128postinstall_cmds=
14129postuninstall_cmds=
14130finish_cmds=
14131finish_eval=
14132shlibpath_var=
14133shlibpath_overrides_runpath=unknown
14134version_type=none
14135dynamic_linker="$host_os ld.so"
14136sys_lib_dlsearch_path_spec="/lib /usr/lib"
14137if test "$GCC" = yes; then
14138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14139 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14140 # if the path contains ";" then we assume it to be the separator
14141 # otherwise default to the standard path separator (i.e. ":") - it is
14142 # assumed that no part of a normal pathname contains ";" but that should
14143 # okay in the real world where ";" in dirpaths is itself problematic.
14144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14145 else
14146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14147 fi
14148else
14149 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14150fi
14151need_lib_prefix=unknown
14152hardcode_into_libs=no
14153
14154# when you set need_version to no, make sure it does not cause -set_version
14155# flags to be left without arguments
14156need_version=unknown
14157
14158case $host_os in
14159aix3*)
14160 version_type=linux
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14162 shlibpath_var=LIBPATH
14163
14164 # AIX 3 has no versioning support, so we append a major version to the name.
14165 soname_spec='${libname}${release}${shared_ext}$major'
14166 ;;
14167
14168aix4* | aix5*)
14169 version_type=linux
14170 need_lib_prefix=no
14171 need_version=no
14172 hardcode_into_libs=yes
14173 if test "$host_cpu" = ia64; then
14174 # AIX 5 supports IA64
14175 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14176 shlibpath_var=LD_LIBRARY_PATH
14177 else
14178 # With GCC up to 2.95.x, collect2 would create an import file
14179 # for dependence libraries. The import file would start with
14180 # the line `#! .'. This would cause the generated library to
14181 # depend on `.', always an invalid library. This was fixed in
14182 # development snapshots of GCC prior to 3.0.
14183 case $host_os in
14184 aix4 | aix4.[01] | aix4.[01].*)
14185 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14186 echo ' yes '
14187 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14188 :
14189 else
14190 can_build_shared=no
14191 fi
14192 ;;
14193 esac
14194 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14195 # soname into executable. Probably we can add versioning support to
14196 # collect2, so additional links can be useful in future.
14197 if test "$aix_use_runtimelinking" = yes; then
14198 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14199 # instead of lib<name>.a to let people know that these are not
14200 # typical AIX shared libraries.
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202 else
14203 # We preserve .a as extension for shared libraries through AIX4.2
14204 # and later when we are not doing run time linking.
14205 library_names_spec='${libname}${release}.a $libname.a'
14206 soname_spec='${libname}${release}${shared_ext}$major'
14207 fi
14208 shlibpath_var=LIBPATH
14209 fi
14210 ;;
14211
14212amigaos*)
14213 library_names_spec='$libname.ixlibrary $libname.a'
14214 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14215 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'
14216 ;;
14217
14218beos*)
14219 library_names_spec='${libname}${shared_ext}'
14220 dynamic_linker="$host_os ld.so"
14221 shlibpath_var=LIBRARY_PATH
14222 ;;
14223
14224bsdi4*)
14225 version_type=linux
14226 need_version=no
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14230 shlibpath_var=LD_LIBRARY_PATH
14231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14233 # the default ld.so.conf also contains /usr/contrib/lib and
14234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14235 # libtool to hard-code these into programs
14236 ;;
14237
14238cygwin* | mingw* | pw32*)
14239 version_type=windows
14240 shrext=".dll"
14241 need_version=no
14242 need_lib_prefix=no
14243
14244 case $GCC,$host_os in
14245 yes,cygwin* | yes,mingw* | yes,pw32*)
14246 library_names_spec='$libname.dll.a'
14247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14248 postinstall_cmds='base_file=`basename \${file}`~
14249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14250 dldir=$destdir/`dirname \$dlpath`~
14251 test -d \$dldir || mkdir -p \$dldir~
14252 $install_prog $dir/$dlname \$dldir/$dlname'
14253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14254 dlpath=$dir/\$dldll~
14255 $rm \$dlpath'
14256 shlibpath_overrides_runpath=yes
14257
14258 case $host_os in
14259 cygwin*)
14260 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14261 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14262 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14263 ;;
14264 mingw*)
14265 # MinGW DLLs use traditional 'lib' prefix
14266 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14268 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14269 # It is most probably a Windows format PATH printed by
14270 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14271 # path with ; separators, and with drive letters. We can handle the
14272 # drive letters (cygwin fileutils understands them), so leave them,
14273 # especially as we might pass files found there to a mingw objdump,
14274 # which wouldn't understand a cygwinified path. Ahh.
14275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14276 else
14277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14278 fi
14279 ;;
14280 pw32*)
14281 # pw32 DLLs use 'pw' prefix rather than 'lib'
14282 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14283 ;;
14284 esac
14285 ;;
14286
14287 *)
14288 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14289 ;;
14290 esac
14291 dynamic_linker='Win32 ld.exe'
14292 # FIXME: first we should search . and the directory the executable is in
14293 shlibpath_var=PATH
14294 ;;
14295
14296darwin* | rhapsody*)
14297 dynamic_linker="$host_os dyld"
14298 version_type=darwin
14299 need_lib_prefix=no
14300 need_version=no
14301 # FIXME: Relying on posixy $() will cause problems for
14302 # cross-compilation, but unfortunately the echo tests do not
14303 # yet detect zsh echo's removal of \ escapes.
14304 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14305 soname_spec='${libname}${release}${major}$shared_ext'
14306 shlibpath_overrides_runpath=yes
14307 shlibpath_var=DYLD_LIBRARY_PATH
14308 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14309 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14310 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14311 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"`
14312 fi
14313 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14314 ;;
14315
14316dgux*)
14317 version_type=linux
14318 need_lib_prefix=no
14319 need_version=no
14320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14321 soname_spec='${libname}${release}${shared_ext}$major'
14322 shlibpath_var=LD_LIBRARY_PATH
14323 ;;
14324
14325freebsd1*)
14326 dynamic_linker=no
14327 ;;
14328
14329freebsd*)
14330 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14331 version_type=freebsd-$objformat
14332 case $version_type in
14333 freebsd-elf*)
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 need_version=no
14336 need_lib_prefix=no
14337 ;;
14338 freebsd-*)
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14340 need_version=yes
14341 ;;
14342 esac
14343 shlibpath_var=LD_LIBRARY_PATH
14344 case $host_os in
14345 freebsd2*)
14346 shlibpath_overrides_runpath=yes
14347 ;;
14348 freebsd3.01* | freebsdelf3.01*)
14349 shlibpath_overrides_runpath=yes
14350 hardcode_into_libs=yes
14351 ;;
14352 *) # from 3.2 on
14353 shlibpath_overrides_runpath=no
14354 hardcode_into_libs=yes
14355 ;;
14356 esac
14357 ;;
14358
14359gnu*)
14360 version_type=linux
14361 need_lib_prefix=no
14362 need_version=no
14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 shlibpath_var=LD_LIBRARY_PATH
14366 hardcode_into_libs=yes
14367 ;;
14368
14369hpux9* | hpux10* | hpux11*)
14370 # Give a soname corresponding to the major version so that dld.sl refuses to
14371 # link against other versions.
14372 version_type=sunos
14373 need_lib_prefix=no
14374 need_version=no
14375 case "$host_cpu" in
14376 ia64*)
14377 shrext='.so'
14378 hardcode_into_libs=yes
14379 dynamic_linker="$host_os dld.so"
14380 shlibpath_var=LD_LIBRARY_PATH
14381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383 soname_spec='${libname}${release}${shared_ext}$major'
14384 if test "X$HPUX_IA64_MODE" = X32; then
14385 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14386 else
14387 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14388 fi
14389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14390 ;;
14391 hppa*64*)
14392 shrext='.sl'
14393 hardcode_into_libs=yes
14394 dynamic_linker="$host_os dld.sl"
14395 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 soname_spec='${libname}${release}${shared_ext}$major'
14399 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14401 ;;
14402 *)
14403 shrext='.sl'
14404 dynamic_linker="$host_os dld.sl"
14405 shlibpath_var=SHLIB_PATH
14406 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14408 soname_spec='${libname}${release}${shared_ext}$major'
14409 ;;
14410 esac
14411 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14412 postinstall_cmds='chmod 555 $lib'
14413 ;;
14414
14415irix5* | irix6* | nonstopux*)
14416 case $host_os in
14417 nonstopux*) version_type=nonstopux ;;
14418 *)
14419 if test "$lt_cv_prog_gnu_ld" = yes; then
14420 version_type=linux
14421 else
14422 version_type=irix
14423 fi ;;
14424 esac
14425 need_lib_prefix=no
14426 need_version=no
14427 soname_spec='${libname}${release}${shared_ext}$major'
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14429 case $host_os in
14430 irix5* | nonstopux*)
14431 libsuff= shlibsuff=
14432 ;;
14433 *)
14434 case $LD in # libtool.m4 will add one of these switches to LD
14435 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14436 libsuff= shlibsuff= libmagic=32-bit;;
14437 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14438 libsuff=32 shlibsuff=N32 libmagic=N32;;
14439 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14440 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14441 *) libsuff= shlibsuff= libmagic=never-match;;
14442 esac
14443 ;;
14444 esac
14445 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14446 shlibpath_overrides_runpath=no
14447 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14448 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14449 hardcode_into_libs=yes
14450 ;;
14451
14452# No shared lib support for Linux oldld, aout, or coff.
14453linux*oldld* | linux*aout* | linux*coff*)
14454 dynamic_linker=no
14455 ;;
14456
14457# This must be Linux ELF.
14458linux*)
14459 version_type=linux
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=no
14467 # This implies no fast_install, which is unacceptable.
14468 # Some rework will be needed to allow for fast_install
14469 # before this can be enabled.
14470 hardcode_into_libs=yes
14471
14472 # We used to test for /lib/ld.so.1 and disable shared libraries on
14473 # powerpc, because MkLinux only supported shared libraries with the
14474 # GNU dynamic linker. Since this was broken with cross compilers,
14475 # most powerpc-linux boxes support dynamic linking these days and
14476 # people can always --disable-shared, the test was removed, and we
14477 # assume the GNU/Linux dynamic linker is in use.
14478 dynamic_linker='GNU/Linux ld.so'
14479 ;;
14480
14481netbsd*)
14482 version_type=sunos
14483 need_lib_prefix=no
14484 need_version=no
14485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14488 dynamic_linker='NetBSD (a.out) ld.so'
14489 else
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14491 soname_spec='${libname}${release}${shared_ext}$major'
14492 dynamic_linker='NetBSD ld.elf_so'
14493 fi
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=yes
14496 hardcode_into_libs=yes
14497 ;;
14498
14499newsos6)
14500 version_type=linux
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes
14504 ;;
14505
14506nto-qnx)
14507 version_type=linux
14508 need_lib_prefix=no
14509 need_version=no
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 shlibpath_overrides_runpath=yes
14514 ;;
14515
14516openbsd*)
14517 version_type=sunos
14518 need_lib_prefix=no
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14524 case $host_os in
14525 openbsd2.[89] | openbsd2.[89].*)
14526 shlibpath_overrides_runpath=no
14527 ;;
14528 *)
14529 shlibpath_overrides_runpath=yes
14530 ;;
14531 esac
14532 else
14533 shlibpath_overrides_runpath=yes
14534 fi
14535 ;;
14536
14537os2*)
14538 libname_spec='$name'
14539 shrext=".dll"
14540 need_lib_prefix=no
14541 library_names_spec='$libname${shared_ext} $libname.a'
14542 dynamic_linker='OS/2 ld.exe'
14543 shlibpath_var=LIBPATH
14544 ;;
14545
14546osf3* | osf4* | osf5*)
14547 version_type=osf
14548 need_lib_prefix=no
14549 need_version=no
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14555 ;;
14556
14557sco3.2v5*)
14558 version_type=osf
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 ;;
14563
14564solaris*)
14565 version_type=linux
14566 need_lib_prefix=no
14567 need_version=no
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 shlibpath_overrides_runpath=yes
14572 hardcode_into_libs=yes
14573 # ldd complains unless libraries are executable
14574 postinstall_cmds='chmod +x $lib'
14575 ;;
14576
14577sunos4*)
14578 version_type=sunos
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=yes
14583 if test "$with_gnu_ld" = yes; then
14584 need_lib_prefix=no
14585 fi
14586 need_version=yes
14587 ;;
14588
14589sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14590 version_type=linux
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 case $host_vendor in
14595 sni)
14596 shlibpath_overrides_runpath=no
14597 need_lib_prefix=no
14598 export_dynamic_flag_spec='${wl}-Blargedynsym'
14599 runpath_var=LD_RUN_PATH
14600 ;;
14601 siemens)
14602 need_lib_prefix=no
14603 ;;
14604 motorola)
14605 need_lib_prefix=no
14606 need_version=no
14607 shlibpath_overrides_runpath=no
14608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14609 ;;
14610 esac
14611 ;;
14612
14613sysv4*MP*)
14614 if test -d /usr/nec ;then
14615 version_type=linux
14616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14617 soname_spec='$libname${shared_ext}.$major'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 fi
14620 ;;
14621
14622uts4*)
14623 version_type=linux
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 ;;
14628
14629*)
14630 dynamic_linker=no
14631 ;;
14632esac
14633echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14634echo "${ECHO_T}$dynamic_linker" >&6
14635test "$dynamic_linker" = no && can_build_shared=no
14636
14637
14638# The else clause should only fire when bootstrapping the
14639# libtool distribution, otherwise you forgot to ship ltmain.sh
14640# with your package, and you will get complaints that there are
14641# no rules to generate ltmain.sh.
14642if test -f "$ltmain"; then
14643 # See if we are running on zsh, and set the options which allow our commands through
14644 # without removal of \ escapes.
14645 if test -n "${ZSH_VERSION+set}" ; then
14646 setopt NO_GLOB_SUBST
14647 fi
14648 # Now quote all the things that may contain metacharacters while being
14649 # careful not to overquote the AC_SUBSTed values. We take copies of the
14650 # variables and quote the copies for generation of the libtool script.
14651 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14652 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14653 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14654 deplibs_check_method reload_flag reload_cmds need_locks \
14655 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14656 lt_cv_sys_global_symbol_to_c_name_address \
14657 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14658 old_postinstall_cmds old_postuninstall_cmds \
14659 compiler_F77 \
14660 CC_F77 \
14661 LD_F77 \
14662 lt_prog_compiler_wl_F77 \
14663 lt_prog_compiler_pic_F77 \
14664 lt_prog_compiler_static_F77 \
14665 lt_prog_compiler_no_builtin_flag_F77 \
14666 export_dynamic_flag_spec_F77 \
14667 thread_safe_flag_spec_F77 \
14668 whole_archive_flag_spec_F77 \
14669 enable_shared_with_static_runtimes_F77 \
14670 old_archive_cmds_F77 \
14671 old_archive_from_new_cmds_F77 \
14672 predep_objects_F77 \
14673 postdep_objects_F77 \
14674 predeps_F77 \
14675 postdeps_F77 \
14676 compiler_lib_search_path_F77 \
14677 archive_cmds_F77 \
14678 archive_expsym_cmds_F77 \
14679 postinstall_cmds_F77 \
14680 postuninstall_cmds_F77 \
14681 old_archive_from_expsyms_cmds_F77 \
14682 allow_undefined_flag_F77 \
14683 no_undefined_flag_F77 \
14684 export_symbols_cmds_F77 \
14685 hardcode_libdir_flag_spec_F77 \
14686 hardcode_libdir_flag_spec_ld_F77 \
14687 hardcode_libdir_separator_F77 \
14688 hardcode_automatic_F77 \
14689 module_cmds_F77 \
14690 module_expsym_cmds_F77 \
14691 lt_cv_prog_compiler_c_o_F77 \
14692 exclude_expsyms_F77 \
14693 include_expsyms_F77; do
14694
14695 case $var in
14696 old_archive_cmds_F77 | \
14697 old_archive_from_new_cmds_F77 | \
14698 archive_cmds_F77 | \
14699 archive_expsym_cmds_F77 | \
14700 module_cmds_F77 | \
14701 module_expsym_cmds_F77 | \
14702 old_archive_from_expsyms_cmds_F77 | \
14703 export_symbols_cmds_F77 | \
14704 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14705 postinstall_cmds | postuninstall_cmds | \
14706 old_postinstall_cmds | old_postuninstall_cmds | \
14707 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14708 # Double-quote double-evaled strings.
14709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14710 ;;
14711 *)
14712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14713 ;;
14714 esac
14715 done
14716
14717 case $lt_echo in
14718 *'\$0 --fallback-echo"')
14719 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14720 ;;
14721 esac
14722
14723cfgfile="$ofile"
14724
14725 cat <<__EOF__ >> "$cfgfile"
14726# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14727
14728# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14729
14730# Shell to use when invoking shell scripts.
14731SHELL=$lt_SHELL
14732
14733# Whether or not to build shared libraries.
14734build_libtool_libs=$enable_shared
14735
14736# Whether or not to build static libraries.
14737build_old_libs=$enable_static
14738
14739# Whether or not to add -lc for building shared libraries.
14740build_libtool_need_lc=$archive_cmds_need_lc_F77
14741
14742# Whether or not to disallow shared libs when runtime libs are static
14743allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14744
14745# Whether or not to optimize for fast installation.
14746fast_install=$enable_fast_install
14747
14748# The host system.
14749host_alias=$host_alias
14750host=$host
14751
14752# An echo program that does not interpret backslashes.
14753echo=$lt_echo
14754
14755# The archiver.
14756AR=$lt_AR
14757AR_FLAGS=$lt_AR_FLAGS
14758
14759# A C compiler.
14760LTCC=$lt_LTCC
14761
14762# A language-specific compiler.
14763CC=$lt_compiler_F77
14764
14765# Is the compiler the GNU C compiler?
14766with_gcc=$GCC_F77
14767
14768# An ERE matcher.
14769EGREP=$lt_EGREP
14770
14771# The linker used to build libraries.
14772LD=$lt_LD_F77
14773
14774# Whether we need hard or soft links.
14775LN_S=$lt_LN_S
14776
14777# A BSD-compatible nm program.
14778NM=$lt_NM
14779
14780# A symbol stripping program
14781STRIP=$STRIP
14782
14783# Used to examine libraries when file_magic_cmd begins "file"
14784MAGIC_CMD=$MAGIC_CMD
14785
14786# Used on cygwin: DLL creation program.
14787DLLTOOL="$DLLTOOL"
14788
14789# Used on cygwin: object dumper.
14790OBJDUMP="$OBJDUMP"
14791
14792# Used on cygwin: assembler.
14793AS="$AS"
14794
14795# The name of the directory that contains temporary libtool files.
14796objdir=$objdir
14797
14798# How to create reloadable object files.
14799reload_flag=$lt_reload_flag
14800reload_cmds=$lt_reload_cmds
14801
14802# How to pass a linker flag through the compiler.
14803wl=$lt_lt_prog_compiler_wl_F77
14804
14805# Object file suffix (normally "o").
14806objext="$ac_objext"
14807
14808# Old archive suffix (normally "a").
14809libext="$libext"
14810
14811# Shared library suffix (normally ".so").
14812shrext='$shrext'
14813
14814# Executable file suffix (normally "").
14815exeext="$exeext"
14816
14817# Additional compiler flags for building library objects.
14818pic_flag=$lt_lt_prog_compiler_pic_F77
14819pic_mode=$pic_mode
14820
14821# What is the maximum length of a command?
14822max_cmd_len=$lt_cv_sys_max_cmd_len
14823
14824# Does compiler simultaneously support -c and -o options?
14825compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14826
14827# Must we lock files when doing compilation ?
14828need_locks=$lt_need_locks
14829
14830# Do we need the lib prefix for modules?
14831need_lib_prefix=$need_lib_prefix
14832
14833# Do we need a version for libraries?
14834need_version=$need_version
14835
14836# Whether dlopen is supported.
14837dlopen_support=$enable_dlopen
14838
14839# Whether dlopen of programs is supported.
14840dlopen_self=$enable_dlopen_self
14841
14842# Whether dlopen of statically linked programs is supported.
14843dlopen_self_static=$enable_dlopen_self_static
14844
14845# Compiler flag to prevent dynamic linking.
14846link_static_flag=$lt_lt_prog_compiler_static_F77
14847
14848# Compiler flag to turn off builtin functions.
14849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14850
14851# Compiler flag to allow reflexive dlopens.
14852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14853
14854# Compiler flag to generate shared objects directly from archives.
14855whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14856
14857# Compiler flag to generate thread-safe objects.
14858thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14859
14860# Library versioning type.
14861version_type=$version_type
14862
14863# Format of library name prefix.
14864libname_spec=$lt_libname_spec
14865
14866# List of archive names. First name is the real one, the rest are links.
14867# The last name is the one that the linker finds with -lNAME.
14868library_names_spec=$lt_library_names_spec
14869
14870# The coded name of the library, if different from the real name.
14871soname_spec=$lt_soname_spec
14872
14873# Commands used to build and install an old-style archive.
14874RANLIB=$lt_RANLIB
14875old_archive_cmds=$lt_old_archive_cmds_F77
14876old_postinstall_cmds=$lt_old_postinstall_cmds
14877old_postuninstall_cmds=$lt_old_postuninstall_cmds
14878
14879# Create an old-style archive from a shared archive.
14880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14881
14882# Create a temporary old-style archive to link instead of a shared archive.
14883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14884
14885# Commands used to build and install a shared archive.
14886archive_cmds=$lt_archive_cmds_F77
14887archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14888postinstall_cmds=$lt_postinstall_cmds
14889postuninstall_cmds=$lt_postuninstall_cmds
14890
14891# Commands used to build a loadable module (assumed same as above if empty)
14892module_cmds=$lt_module_cmds_F77
14893module_expsym_cmds=$lt_module_expsym_cmds_F77
14894
14895# Commands to strip libraries.
14896old_striplib=$lt_old_striplib
14897striplib=$lt_striplib
14898
14899# Dependencies to place before the objects being linked to create a
14900# shared library.
14901predep_objects=$lt_predep_objects_F77
14902
14903# Dependencies to place after the objects being linked to create a
14904# shared library.
14905postdep_objects=$lt_postdep_objects_F77
14906
14907# Dependencies to place before the objects being linked to create a
14908# shared library.
14909predeps=$lt_predeps_F77
14910
14911# Dependencies to place after the objects being linked to create a
14912# shared library.
14913postdeps=$lt_postdeps_F77
14914
14915# The library search path used internally by the compiler when linking
14916# a shared library.
14917compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14918
14919# Method to check whether dependent libraries are shared objects.
14920deplibs_check_method=$lt_deplibs_check_method
14921
14922# Command to use when deplibs_check_method == file_magic.
14923file_magic_cmd=$lt_file_magic_cmd
14924
14925# Flag that allows shared libraries with undefined symbols to be built.
14926allow_undefined_flag=$lt_allow_undefined_flag_F77
14927
14928# Flag that forces no undefined symbols.
14929no_undefined_flag=$lt_no_undefined_flag_F77
14930
14931# Commands used to finish a libtool library installation in a directory.
14932finish_cmds=$lt_finish_cmds
14933
14934# Same as above, but a single script fragment to be evaled but not shown.
14935finish_eval=$lt_finish_eval
14936
14937# Take the output of nm and produce a listing of raw symbols and C names.
14938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14939
14940# Transform the output of nm in a proper C declaration
14941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14942
14943# Transform the output of nm in a C name address pair
14944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14945
14946# This is the shared library runtime path variable.
14947runpath_var=$runpath_var
14948
14949# This is the shared library path variable.
14950shlibpath_var=$shlibpath_var
14951
14952# Is shlibpath searched before the hard-coded library search path?
14953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14954
14955# How to hardcode a shared library path into an executable.
14956hardcode_action=$hardcode_action_F77
14957
14958# Whether we should hardcode library paths into libraries.
14959hardcode_into_libs=$hardcode_into_libs
14960
14961# Flag to hardcode \$libdir into a binary during linking.
14962# This must work even if \$libdir does not exist.
14963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14964
14965# If ld is used when linking, flag to hardcode \$libdir into
14966# a binary during linking. This must work even if \$libdir does
14967# not exist.
14968hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14969
14970# Whether we need a single -rpath flag with a separated argument.
14971hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14972
14973# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14974# resulting binary.
14975hardcode_direct=$hardcode_direct_F77
14976
14977# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14978# resulting binary.
14979hardcode_minus_L=$hardcode_minus_L_F77
14980
14981# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14982# the resulting binary.
14983hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14984
14985# Set to yes if building a shared library automatically hardcodes DIR into the library
14986# and all subsequent libraries and executables linked against it.
14987hardcode_automatic=$hardcode_automatic_F77
14988
14989# Variables whose values should be saved in libtool wrapper scripts and
14990# restored at relink time.
14991variables_saved_for_relink="$variables_saved_for_relink"
14992
14993# Whether libtool must link a program against all its dependency libraries.
14994link_all_deplibs=$link_all_deplibs_F77
14995
14996# Compile-time system search path for libraries
14997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14998
14999# Run-time system search path for libraries
15000sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15001
15002# Fix the shell variable \$srcfile for the compiler.
15003fix_srcfile_path="$fix_srcfile_path_F77"
15004
15005# Set to yes if exported symbols are required.
15006always_export_symbols=$always_export_symbols_F77
15007
15008# The commands to list exported symbols.
15009export_symbols_cmds=$lt_export_symbols_cmds_F77
15010
15011# The commands to extract the exported symbol list from a shared archive.
15012extract_expsyms_cmds=$lt_extract_expsyms_cmds
15013
15014# Symbols that should not be listed in the preloaded symbols.
15015exclude_expsyms=$lt_exclude_expsyms_F77
15016
15017# Symbols that must always be exported.
15018include_expsyms=$lt_include_expsyms_F77
15019
15020# ### END LIBTOOL TAG CONFIG: $tagname
15021
15022__EOF__
15023
15024
15025else
15026 # If there is no Makefile yet, we rely on a make rule to execute
15027 # `config.status --recheck' to rerun these tests and create the
15028 # libtool script then.
15029 test -f Makefile && make "$ltmain"
15030fi
15031
15032
15033ac_ext=c
15034ac_cpp='$CPP $CPPFLAGS'
15035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15037ac_compiler_gnu=$ac_cv_c_compiler_gnu
15038
15039CC="$lt_save_CC"
15040
15041 else
15042 tagname=""
15043 fi
15044 ;;
15045
15046 GCJ)
15047 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15048
15049
15050
15051# Source file extension for Java test sources.
15052ac_ext=java
15053
15054# Object file extension for compiled Java test sources.
15055objext=o
15056objext_GCJ=$objext
15057
15058# Code to be used in simple compile tests
15059lt_simple_compile_test_code="class foo {}\n"
15060
15061# Code to be used in simple link tests
15062lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15063
15064# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15065
15066# If no C compiler was specified, use CC.
15067LTCC=${LTCC-"$CC"}
15068
15069# Allow CC to be a program name with arguments.
15070compiler=$CC
15071
15072
15073# Allow CC to be a program name with arguments.
15074lt_save_CC="$CC"
15075CC=${GCJ-"gcj"}
15076compiler=$CC
15077compiler_GCJ=$CC
15078
15079# GCJ did not exist at the time GCC didn't implicitly link libc in.
15080archive_cmds_need_lc_GCJ=no
15081
15082## CAVEAT EMPTOR:
15083## There is no encapsulation within the following macros, do not change
15084## the running order or otherwise move them around unless you know exactly
15085## what you are doing...
15086
15087lt_prog_compiler_no_builtin_flag_GCJ=
15088
15089if test "$GCC" = yes; then
15090 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15091
15092 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15093echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15094if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096else
15097 lt_cv_prog_compiler_rtti_exceptions=no
15098 ac_outfile=conftest.$ac_objext
15099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15100 lt_compiler_flag="-fno-rtti -fno-exceptions"
15101 # Insert the option either (1) after the last *FLAGS variable, or
15102 # (2) before a word containing "conftest.", or (3) at the end.
15103 # Note that $ac_compile itself does not contain backslashes and begins
15104 # with a dollar sign (not a hyphen), so the echo should work correctly.
15105 # The option is referenced via a variable to avoid confusing sed.
15106 lt_compile=`echo "$ac_compile" | $SED \
15107 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15109 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015110 (eval echo "\"\$as_me:15110: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015111 (eval "$lt_compile" 2>conftest.err)
15112 ac_status=$?
15113 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015114 echo "$as_me:15114: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015115 if (exit $ac_status) && test -s "$ac_outfile"; then
15116 # The compiler can only warn and ignore the option if not recognized
15117 # So say no if there are warnings
15118 if test ! -s conftest.err; then
15119 lt_cv_prog_compiler_rtti_exceptions=yes
15120 fi
15121 fi
15122 $rm conftest*
15123
15124fi
15125echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15126echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15127
15128if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15129 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15130else
15131 :
15132fi
15133
15134fi
15135
15136lt_prog_compiler_wl_GCJ=
15137lt_prog_compiler_pic_GCJ=
15138lt_prog_compiler_static_GCJ=
15139
15140echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15142
15143 if test "$GCC" = yes; then
15144 lt_prog_compiler_wl_GCJ='-Wl,'
15145 lt_prog_compiler_static_GCJ='-static'
15146
15147 case $host_os in
15148 aix*)
15149 # All AIX code is PIC.
15150 if test "$host_cpu" = ia64; then
15151 # AIX 5 now supports IA64 processor
15152 lt_prog_compiler_static_GCJ='-Bstatic'
15153 fi
15154 ;;
15155
15156 amigaos*)
15157 # FIXME: we need at least 68020 code to build shared libraries, but
15158 # adding the `-m68020' flag to GCC prevents building anything better,
15159 # like `-m68040'.
15160 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15161 ;;
15162
15163 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15164 # PIC is the default for these OSes.
15165 ;;
15166
15167 mingw* | pw32* | os2*)
15168 # This hack is so that the source file can tell whether it is being
15169 # built for inclusion in a dll (and should export symbols for example).
15170 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15171 ;;
15172
15173 darwin* | rhapsody*)
15174 # PIC is the default on this platform
15175 # Common symbols not allowed in MH_DYLIB files
15176 lt_prog_compiler_pic_GCJ='-fno-common'
15177 ;;
15178
15179 msdosdjgpp*)
15180 # Just because we use GCC doesn't mean we suddenly get shared libraries
15181 # on systems that don't support them.
15182 lt_prog_compiler_can_build_shared_GCJ=no
15183 enable_shared=no
15184 ;;
15185
15186 sysv4*MP*)
15187 if test -d /usr/nec; then
15188 lt_prog_compiler_pic_GCJ=-Kconform_pic
15189 fi
15190 ;;
15191
15192 hpux*)
15193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15194 # not for PA HP-UX.
15195 case "$host_cpu" in
15196 hppa*64*|ia64*)
15197 # +Z the default
15198 ;;
15199 *)
15200 lt_prog_compiler_pic_GCJ='-fPIC'
15201 ;;
15202 esac
15203 ;;
15204
15205 *)
15206 lt_prog_compiler_pic_GCJ='-fPIC'
15207 ;;
15208 esac
15209 else
15210 # PORTME Check for flag to pass linker flags through the system compiler.
15211 case $host_os in
15212 aix*)
15213 lt_prog_compiler_wl_GCJ='-Wl,'
15214 if test "$host_cpu" = ia64; then
15215 # AIX 5 now supports IA64 processor
15216 lt_prog_compiler_static_GCJ='-Bstatic'
15217 else
15218 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15219 fi
15220 ;;
15221
15222 mingw* | pw32* | os2*)
15223 # This hack is so that the source file can tell whether it is being
15224 # built for inclusion in a dll (and should export symbols for example).
15225 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15226 ;;
15227
15228 hpux9* | hpux10* | hpux11*)
15229 lt_prog_compiler_wl_GCJ='-Wl,'
15230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15231 # not for PA HP-UX.
15232 case "$host_cpu" in
15233 hppa*64*|ia64*)
15234 # +Z the default
15235 ;;
15236 *)
15237 lt_prog_compiler_pic_GCJ='+Z'
15238 ;;
15239 esac
15240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15241 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15242 ;;
15243
15244 irix5* | irix6* | nonstopux*)
15245 lt_prog_compiler_wl_GCJ='-Wl,'
15246 # PIC (with -KPIC) is the default.
15247 lt_prog_compiler_static_GCJ='-non_shared'
15248 ;;
15249
15250 newsos6)
15251 lt_prog_compiler_pic_GCJ='-KPIC'
15252 lt_prog_compiler_static_GCJ='-Bstatic'
15253 ;;
15254
15255 linux*)
15256 case $CC in
15257 icc|ecc)
15258 lt_prog_compiler_wl_GCJ='-Wl,'
15259 lt_prog_compiler_pic_GCJ='-KPIC'
15260 lt_prog_compiler_static_GCJ='-static'
15261 ;;
15262 ccc)
15263 lt_prog_compiler_wl_GCJ='-Wl,'
15264 # All Alpha code is PIC.
15265 lt_prog_compiler_static_GCJ='-non_shared'
15266 ;;
15267 esac
15268 ;;
15269
15270 osf3* | osf4* | osf5*)
15271 lt_prog_compiler_wl_GCJ='-Wl,'
15272 # All OSF/1 code is PIC.
15273 lt_prog_compiler_static_GCJ='-non_shared'
15274 ;;
15275
15276 sco3.2v5*)
15277 lt_prog_compiler_pic_GCJ='-Kpic'
15278 lt_prog_compiler_static_GCJ='-dn'
15279 ;;
15280
15281 solaris*)
15282 lt_prog_compiler_wl_GCJ='-Wl,'
15283 lt_prog_compiler_pic_GCJ='-KPIC'
15284 lt_prog_compiler_static_GCJ='-Bstatic'
15285 ;;
15286
15287 sunos4*)
15288 lt_prog_compiler_wl_GCJ='-Qoption ld '
15289 lt_prog_compiler_pic_GCJ='-PIC'
15290 lt_prog_compiler_static_GCJ='-Bstatic'
15291 ;;
15292
15293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15294 lt_prog_compiler_wl_GCJ='-Wl,'
15295 lt_prog_compiler_pic_GCJ='-KPIC'
15296 lt_prog_compiler_static_GCJ='-Bstatic'
15297 ;;
15298
15299 sysv4*MP*)
15300 if test -d /usr/nec ;then
15301 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15302 lt_prog_compiler_static_GCJ='-Bstatic'
15303 fi
15304 ;;
15305
15306 uts4*)
15307 lt_prog_compiler_pic_GCJ='-pic'
15308 lt_prog_compiler_static_GCJ='-Bstatic'
15309 ;;
15310
15311 *)
15312 lt_prog_compiler_can_build_shared_GCJ=no
15313 ;;
15314 esac
15315 fi
15316
15317echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15318echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15319
15320#
15321# Check to make sure the PIC flag actually works.
15322#
15323if test -n "$lt_prog_compiler_pic_GCJ"; then
15324 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15325echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15326if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328else
15329 lt_prog_compiler_pic_works_GCJ=no
15330 ac_outfile=conftest.$ac_objext
15331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15332 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15333 # Insert the option either (1) after the last *FLAGS variable, or
15334 # (2) before a word containing "conftest.", or (3) at the end.
15335 # Note that $ac_compile itself does not contain backslashes and begins
15336 # with a dollar sign (not a hyphen), so the echo should work correctly.
15337 # The option is referenced via a variable to avoid confusing sed.
15338 lt_compile=`echo "$ac_compile" | $SED \
15339 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015342 (eval echo "\"\$as_me:15342: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015343 (eval "$lt_compile" 2>conftest.err)
15344 ac_status=$?
15345 cat conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015346 echo "$as_me:15346: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015347 if (exit $ac_status) && test -s "$ac_outfile"; then
15348 # The compiler can only warn and ignore the option if not recognized
15349 # So say no if there are warnings
15350 if test ! -s conftest.err; then
15351 lt_prog_compiler_pic_works_GCJ=yes
15352 fi
15353 fi
15354 $rm conftest*
15355
15356fi
15357echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15358echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15359
15360if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15361 case $lt_prog_compiler_pic_GCJ in
15362 "" | " "*) ;;
15363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15364 esac
15365else
15366 lt_prog_compiler_pic_GCJ=
15367 lt_prog_compiler_can_build_shared_GCJ=no
15368fi
15369
15370fi
15371case "$host_os" in
15372 # For platforms which do not support PIC, -DPIC is meaningless:
15373 *djgpp*)
15374 lt_prog_compiler_pic_GCJ=
15375 ;;
15376 *)
15377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15378 ;;
15379esac
15380
15381echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15382echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15383if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
15386 lt_cv_prog_compiler_c_o_GCJ=no
15387 $rm -r conftest 2>/dev/null
15388 mkdir conftest
15389 cd conftest
15390 mkdir out
15391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15392
15393 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15394 # that will create temporary files in the current directory regardless of
15395 # the output directory. Thus, making CWD read-only will cause this test
15396 # to fail, enabling locking or at least warning the user not to do parallel
15397 # builds.
15398 chmod -w .
15399
15400 lt_compiler_flag="-o out/conftest2.$ac_objext"
15401 # Insert the option either (1) after the last *FLAGS variable, or
15402 # (2) before a word containing "conftest.", or (3) at the end.
15403 # Note that $ac_compile itself does not contain backslashes and begins
15404 # with a dollar sign (not a hyphen), so the echo should work correctly.
15405 lt_compile=`echo "$ac_compile" | $SED \
15406 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15408 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015409 (eval echo "\"\$as_me:15409: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015410 (eval "$lt_compile" 2>out/conftest.err)
15411 ac_status=$?
15412 cat out/conftest.err >&5
Brian Gaeke7fe1d162003-11-17 00:31:43 +000015413 echo "$as_me:15413: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015414 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15415 then
15416 # The compiler can only warn and ignore the option if not recognized
15417 # So say no if there are warnings
15418 if test ! -s out/conftest.err; then
15419 lt_cv_prog_compiler_c_o_GCJ=yes
15420 fi
15421 fi
15422 chmod u+w .
15423 $rm conftest* out/*
15424 rmdir out
15425 cd ..
15426 rmdir conftest
15427 $rm conftest*
15428
15429fi
15430echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15432
15433
15434hard_links="nottested"
15435if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15436 # do not overwrite the value of need_locks provided by the user
15437 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15439 hard_links=yes
15440 $rm conftest*
15441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15442 touch conftest.a
15443 ln conftest.a conftest.b 2>&5 || hard_links=no
15444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15445 echo "$as_me:$LINENO: result: $hard_links" >&5
15446echo "${ECHO_T}$hard_links" >&6
15447 if test "$hard_links" = no; then
15448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15450 need_locks=warn
15451 fi
15452else
15453 need_locks=no
15454fi
15455
15456echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15458
15459 runpath_var=
15460 allow_undefined_flag_GCJ=
15461 enable_shared_with_static_runtimes_GCJ=no
15462 archive_cmds_GCJ=
15463 archive_expsym_cmds_GCJ=
15464 old_archive_From_new_cmds_GCJ=
15465 old_archive_from_expsyms_cmds_GCJ=
15466 export_dynamic_flag_spec_GCJ=
15467 whole_archive_flag_spec_GCJ=
15468 thread_safe_flag_spec_GCJ=
15469 hardcode_libdir_flag_spec_GCJ=
15470 hardcode_libdir_flag_spec_ld_GCJ=
15471 hardcode_libdir_separator_GCJ=
15472 hardcode_direct_GCJ=no
15473 hardcode_minus_L_GCJ=no
15474 hardcode_shlibpath_var_GCJ=unsupported
15475 link_all_deplibs_GCJ=unknown
15476 hardcode_automatic_GCJ=no
15477 module_cmds_GCJ=
15478 module_expsym_cmds_GCJ=
15479 always_export_symbols_GCJ=no
15480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15481 # include_expsyms should be a list of space-separated symbols to be *always*
15482 # included in the symbol list
15483 include_expsyms_GCJ=
15484 # exclude_expsyms can be an extended regexp of symbols to exclude
15485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15487 # as well as any symbol that contains `d'.
15488 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15490 # platforms (ab)use it in PIC code, but their linkers get confused if
15491 # the symbol is explicitly referenced. Since portable code cannot
15492 # rely on this symbol name, it's probably fine to never include it in
15493 # preloaded symbol tables.
15494 extract_expsyms_cmds=
15495
15496 case $host_os in
15497 cygwin* | mingw* | pw32*)
15498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15499 # When not using gcc, we currently assume that we are using
15500 # Microsoft Visual C++.
15501 if test "$GCC" != yes; then
15502 with_gnu_ld=no
15503 fi
15504 ;;
15505 openbsd*)
15506 with_gnu_ld=no
15507 ;;
15508 esac
15509
15510 ld_shlibs_GCJ=yes
15511 if test "$with_gnu_ld" = yes; then
15512 # If archive_cmds runs LD, not CC, wlarc should be empty
15513 wlarc='${wl}'
15514
15515 # See if GNU ld supports shared libraries.
15516 case $host_os in
15517 aix3* | aix4* | aix5*)
15518 # On AIX/PPC, the GNU linker is very broken
15519 if test "$host_cpu" != ia64; then
15520 ld_shlibs_GCJ=no
15521 cat <<EOF 1>&2
15522
15523*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15524*** to be unable to reliably create shared libraries on AIX.
15525*** Therefore, libtool is disabling shared libraries support. If you
15526*** really care for shared libraries, you may want to modify your PATH
15527*** so that a non-GNU linker is found, and then restart.
15528
15529EOF
15530 fi
15531 ;;
15532
15533 amigaos*)
15534 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)'
15535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15536 hardcode_minus_L_GCJ=yes
15537
15538 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15539 # that the semantics of dynamic libraries on AmigaOS, at least up
15540 # to version 4, is to share data among multiple programs linked
15541 # with the same dynamic library. Since this doesn't match the
15542 # behavior of shared libraries on other platforms, we can't use
15543 # them.
15544 ld_shlibs_GCJ=no
15545 ;;
15546
15547 beos*)
15548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15549 allow_undefined_flag_GCJ=unsupported
15550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15551 # support --undefined. This deserves some investigation. FIXME
15552 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 else
15554 ld_shlibs_GCJ=no
15555 fi
15556 ;;
15557
15558 cygwin* | mingw* | pw32*)
15559 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15560 # as there is no search path for DLLs.
15561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15562 allow_undefined_flag_GCJ=unsupported
15563 always_export_symbols_GCJ=no
15564 enable_shared_with_static_runtimes_GCJ=yes
15565 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15566
15567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15568 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15569 # If the export-symbols file already is a .def file (1st line
15570 # is EXPORTS), use it as is; otherwise, prepend...
15571 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15572 cp $export_symbols $output_objdir/$soname.def;
15573 else
15574 echo EXPORTS > $output_objdir/$soname.def;
15575 cat $export_symbols >> $output_objdir/$soname.def;
15576 fi~
15577 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15578 else
15579 ld_shlibs=no
15580 fi
15581 ;;
15582
15583 netbsd*)
15584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15586 wlarc=
15587 else
15588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15590 fi
15591 ;;
15592
15593 solaris* | sysv5*)
15594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15595 ld_shlibs_GCJ=no
15596 cat <<EOF 1>&2
15597
15598*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15599*** create shared libraries on Solaris systems. Therefore, libtool
15600*** is disabling shared libraries support. We urge you to upgrade GNU
15601*** binutils to release 2.9.1 or newer. Another option is to modify
15602*** your PATH or compiler configuration so that the native linker is
15603*** used, and then restart.
15604
15605EOF
15606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15609 else
15610 ld_shlibs_GCJ=no
15611 fi
15612 ;;
15613
15614 sunos4*)
15615 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15616 wlarc=
15617 hardcode_direct_GCJ=yes
15618 hardcode_shlibpath_var_GCJ=no
15619 ;;
15620
15621 *)
15622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15623 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15624 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15625 else
15626 ld_shlibs_GCJ=no
15627 fi
15628 ;;
15629 esac
15630
15631 if test "$ld_shlibs_GCJ" = yes; then
15632 runpath_var=LD_RUN_PATH
15633 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15634 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15635 # ancient GNU ld didn't support --whole-archive et. al.
15636 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15637 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15638 else
15639 whole_archive_flag_spec_GCJ=
15640 fi
15641 fi
15642 else
15643 # PORTME fill in a description of your system's linker (not GNU ld)
15644 case $host_os in
15645 aix3*)
15646 allow_undefined_flag_GCJ=unsupported
15647 always_export_symbols_GCJ=yes
15648 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'
15649 # Note: this linker hardcodes the directories in LIBPATH if there
15650 # are no directories specified by -L.
15651 hardcode_minus_L_GCJ=yes
15652 if test "$GCC" = yes && test -z "$link_static_flag"; then
15653 # Neither direct hardcoding nor static linking is supported with a
15654 # broken collect2.
15655 hardcode_direct_GCJ=unsupported
15656 fi
15657 ;;
15658
15659 aix4* | aix5*)
15660 if test "$host_cpu" = ia64; then
15661 # On IA64, the linker does run time linking by default, so we don't
15662 # have to do anything special.
15663 aix_use_runtimelinking=no
15664 exp_sym_flag='-Bexport'
15665 no_entry_flag=""
15666 else
15667 # If we're using GNU nm, then we don't want the "-C" option.
15668 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15669 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15670 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'
15671 else
15672 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'
15673 fi
15674 aix_use_runtimelinking=no
15675
15676 # Test if we are trying to use run time linking or normal
15677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15678 # need to do runtime linking.
15679 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15680 for ld_flag in $LDFLAGS; do
15681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15682 aix_use_runtimelinking=yes
15683 break
15684 fi
15685 done
15686 esac
15687
15688 exp_sym_flag='-bexport'
15689 no_entry_flag='-bnoentry'
15690 fi
15691
15692 # When large executables or shared objects are built, AIX ld can
15693 # have problems creating the table of contents. If linking a library
15694 # or program results in "error TOC overflow" add -mminimal-toc to
15695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15697
15698 archive_cmds_GCJ=''
15699 hardcode_direct_GCJ=yes
15700 hardcode_libdir_separator_GCJ=':'
15701 link_all_deplibs_GCJ=yes
15702
15703 if test "$GCC" = yes; then
15704 case $host_os in aix4.012|aix4.012.*)
15705 # We only want to do this on AIX 4.2 and lower, the check
15706 # below for broken collect2 doesn't work under 4.3+
15707 collect2name=`${CC} -print-prog-name=collect2`
15708 if test -f "$collect2name" && \
15709 strings "$collect2name" | grep resolve_lib_name >/dev/null
15710 then
15711 # We have reworked collect2
15712 hardcode_direct_GCJ=yes
15713 else
15714 # We have old collect2
15715 hardcode_direct_GCJ=unsupported
15716 # It fails to find uninstalled libraries when the uninstalled
15717 # path is not listed in the libpath. Setting hardcode_minus_L
15718 # to unsupported forces relinking
15719 hardcode_minus_L_GCJ=yes
15720 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15721 hardcode_libdir_separator_GCJ=
15722 fi
15723 esac
15724 shared_flag='-shared'
15725 else
15726 # not using gcc
15727 if test "$host_cpu" = ia64; then
15728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15729 # chokes on -Wl,-G. The following line is correct:
15730 shared_flag='-G'
15731 else
15732 if test "$aix_use_runtimelinking" = yes; then
15733 shared_flag='${wl}-G'
15734 else
15735 shared_flag='${wl}-bM:SRE'
15736 fi
15737 fi
15738 fi
15739
15740 # It seems that -bexpall does not export symbols beginning with
15741 # underscore (_), so it is better to generate a list of symbols to export.
15742 always_export_symbols_GCJ=yes
15743 if test "$aix_use_runtimelinking" = yes; then
15744 # Warning - without using the other runtime loading flags (-brtl),
15745 # -berok will link without error, but may produce a broken library.
15746 allow_undefined_flag_GCJ='-berok'
15747 # Determine the default libpath from the value encoded in an empty executable.
15748 cat >conftest.$ac_ext <<_ACEOF
15749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015755
John Criswell47fdd832003-07-14 16:52:07 +000015756int
15757main ()
15758{
15759
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -s conftest$ac_exeext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776
15777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15778}'`
15779# Check for a 64-bit object if we didn't find anything.
15780if 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; }
15781}'`; fi
15782else
15783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015784sed 's/^/| /' conftest.$ac_ext >&5
15785
John Criswell47fdd832003-07-14 16:52:07 +000015786fi
15787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15789
15790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15791 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"
15792 else
15793 if test "$host_cpu" = ia64; then
15794 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15795 allow_undefined_flag_GCJ="-z nodefs"
15796 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"
15797 else
15798 # Determine the default libpath from the value encoded in an empty executable.
15799 cat >conftest.$ac_ext <<_ACEOF
15800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015806
John Criswell47fdd832003-07-14 16:52:07 +000015807int
15808main ()
15809{
15810
15811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext conftest$ac_exeext
15816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15817 (eval $ac_link) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -s conftest$ac_exeext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827
15828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15829}'`
15830# Check for a 64-bit object if we didn't find anything.
15831if 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; }
15832}'`; fi
15833else
15834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015835sed 's/^/| /' conftest.$ac_ext >&5
15836
John Criswell47fdd832003-07-14 16:52:07 +000015837fi
15838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15839if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15840
15841 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15842 # Warning - without using the other run time loading flags,
15843 # -berok will link without error, but may produce a broken library.
15844 no_undefined_flag_GCJ=' ${wl}-bernotok'
15845 allow_undefined_flag_GCJ=' ${wl}-berok'
15846 # -bexpall does not export symbols beginning with underscore (_)
15847 always_export_symbols_GCJ=yes
15848 # Exported symbols can be pulled into shared objects from archives
15849 whole_archive_flag_spec_GCJ=' '
15850 archive_cmds_need_lc_GCJ=yes
15851 # This is similar to how AIX traditionally builds it's shared libraries.
15852 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'
15853 fi
15854 fi
15855 ;;
15856
15857 amigaos*)
15858 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)'
15859 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15860 hardcode_minus_L_GCJ=yes
15861 # see comment about different semantics on the GNU ld section
15862 ld_shlibs_GCJ=no
15863 ;;
15864
15865 bsdi4*)
15866 export_dynamic_flag_spec_GCJ=-rdynamic
15867 ;;
15868
15869 cygwin* | mingw* | pw32*)
15870 # When not using gcc, we currently assume that we are using
15871 # Microsoft Visual C++.
15872 # hardcode_libdir_flag_spec is actually meaningless, as there is
15873 # no search path for DLLs.
15874 hardcode_libdir_flag_spec_GCJ=' '
15875 allow_undefined_flag_GCJ=unsupported
15876 # Tell ltmain to make .lib files, not .a files.
15877 libext=lib
15878 # Tell ltmain to make .dll files, not .so files.
15879 shrext=".dll"
15880 # FIXME: Setting linknames here is a bad hack.
15881 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15882 # The linker will automatically build a .lib file if we build a DLL.
15883 old_archive_From_new_cmds_GCJ='true'
15884 # FIXME: Should let the user specify the lib program.
15885 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15886 fix_srcfile_path='`cygpath -w "$srcfile"`'
15887 enable_shared_with_static_runtimes_GCJ=yes
15888 ;;
15889
15890 darwin* | rhapsody*)
15891 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15892 archive_cmds_need_lc_GCJ=no
15893 case "$host_os" in
15894 rhapsody* | darwin1.[012])
15895 allow_undefined_flag_GCJ='-undefined suppress'
15896 ;;
15897 *) # Darwin 1.3 on
15898 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15899 ;;
15900 esac
15901 # FIXME: Relying on posixy $() will cause problems for
15902 # cross-compilation, but unfortunately the echo tests do not
15903 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15904 # `"' quotes if we put them in here... so don't!
15905 lt_int_apple_cc_single_mod=no
15906 output_verbose_link_cmd='echo'
15907 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15908 lt_int_apple_cc_single_mod=yes
15909 fi
15910 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15911 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15912 else
15913 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'
15914 fi
15915 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15917 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15918 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}'
15919 else
15920 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}'
15921 fi
15922 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}'
15923 hardcode_direct_GCJ=no
15924 hardcode_automatic_GCJ=yes
15925 hardcode_shlibpath_var_GCJ=unsupported
15926 whole_archive_flag_spec_GCJ='-all_load $convenience'
15927 link_all_deplibs_GCJ=yes
15928 fi
15929 ;;
15930
15931 dgux*)
15932 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15934 hardcode_shlibpath_var_GCJ=no
15935 ;;
15936
15937 freebsd1*)
15938 ld_shlibs_GCJ=no
15939 ;;
15940
15941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15942 # support. Future versions do this automatically, but an explicit c++rt0.o
15943 # does not break anything, and helps significantly (at the cost of a little
15944 # extra space).
15945 freebsd2.2*)
15946 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15947 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15948 hardcode_direct_GCJ=yes
15949 hardcode_shlibpath_var_GCJ=no
15950 ;;
15951
15952 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15953 freebsd2*)
15954 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15955 hardcode_direct_GCJ=yes
15956 hardcode_minus_L_GCJ=yes
15957 hardcode_shlibpath_var_GCJ=no
15958 ;;
15959
15960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15961 freebsd*)
15962 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15963 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15964 hardcode_direct_GCJ=yes
15965 hardcode_shlibpath_var_GCJ=no
15966 ;;
15967
15968 hpux9*)
15969 if test "$GCC" = yes; then
15970 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'
15971 else
15972 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'
15973 fi
15974 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15975 hardcode_libdir_separator_GCJ=:
15976 hardcode_direct_GCJ=yes
15977
15978 # hardcode_minus_L: Not really in the search PATH,
15979 # but as the default location of the library.
15980 hardcode_minus_L_GCJ=yes
15981 export_dynamic_flag_spec_GCJ='${wl}-E'
15982 ;;
15983
15984 hpux10* | hpux11*)
15985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15986 case "$host_cpu" in
15987 hppa*64*|ia64*)
15988 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15989 ;;
15990 *)
15991 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15992 ;;
15993 esac
15994 else
15995 case "$host_cpu" in
15996 hppa*64*|ia64*)
15997 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15998 ;;
15999 *)
16000 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16001 ;;
16002 esac
16003 fi
16004 if test "$with_gnu_ld" = no; then
16005 case "$host_cpu" in
16006 hppa*64*)
16007 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16008 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16009 hardcode_libdir_separator_GCJ=:
16010 hardcode_direct_GCJ=no
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013 ia64*)
16014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16015 hardcode_direct_GCJ=no
16016 hardcode_shlibpath_var_GCJ=no
16017
16018 # hardcode_minus_L: Not really in the search PATH,
16019 # but as the default location of the library.
16020 hardcode_minus_L_GCJ=yes
16021 ;;
16022 *)
16023 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16024 hardcode_libdir_separator_GCJ=:
16025 hardcode_direct_GCJ=yes
16026 export_dynamic_flag_spec_GCJ='${wl}-E'
16027
16028 # hardcode_minus_L: Not really in the search PATH,
16029 # but as the default location of the library.
16030 hardcode_minus_L_GCJ=yes
16031 ;;
16032 esac
16033 fi
16034 ;;
16035
16036 irix5* | irix6* | nonstopux*)
16037 if test "$GCC" = yes; then
16038 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'
16039 else
16040 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'
16041 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16042 fi
16043 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16044 hardcode_libdir_separator_GCJ=:
16045 link_all_deplibs_GCJ=yes
16046 ;;
16047
16048 netbsd*)
16049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16050 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16051 else
16052 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16053 fi
16054 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16055 hardcode_direct_GCJ=yes
16056 hardcode_shlibpath_var_GCJ=no
16057 ;;
16058
16059 newsos6)
16060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061 hardcode_direct_GCJ=yes
16062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16063 hardcode_libdir_separator_GCJ=:
16064 hardcode_shlibpath_var_GCJ=no
16065 ;;
16066
16067 openbsd*)
16068 hardcode_direct_GCJ=yes
16069 hardcode_shlibpath_var_GCJ=no
16070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16071 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16072 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec_GCJ='${wl}-E'
16074 else
16075 case $host_os in
16076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16077 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16079 ;;
16080 *)
16081 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16083 ;;
16084 esac
16085 fi
16086 ;;
16087
16088 os2*)
16089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090 hardcode_minus_L_GCJ=yes
16091 allow_undefined_flag_GCJ=unsupported
16092 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'
16093 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16094 ;;
16095
16096 osf3*)
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 else
16101 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16102 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'
16103 fi
16104 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator_GCJ=:
16106 ;;
16107
16108 osf4* | osf5*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16111 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'
16112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16113 else
16114 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16115 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'
16116 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~
16117 $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'
16118
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16121 fi
16122 hardcode_libdir_separator_GCJ=:
16123 ;;
16124
16125 sco3.2v5*)
16126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_shlibpath_var_GCJ=no
16128 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16129 runpath_var=LD_RUN_PATH
16130 hardcode_runpath_var=yes
16131 ;;
16132
16133 solaris*)
16134 no_undefined_flag_GCJ=' -z text'
16135 if test "$GCC" = yes; then
16136 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16138 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16139 else
16140 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16143 fi
16144 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16145 hardcode_shlibpath_var_GCJ=no
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
16148 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16149 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16150 esac
16151 link_all_deplibs_GCJ=yes
16152 ;;
16153
16154 sunos4*)
16155 if test "x$host_vendor" = xsequent; then
16156 # Use $CC to link under sequent, because it throws in some extra .o
16157 # files that make .init and .fini sections work.
16158 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16159 else
16160 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16161 fi
16162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16163 hardcode_direct_GCJ=yes
16164 hardcode_minus_L_GCJ=yes
16165 hardcode_shlibpath_var_GCJ=no
16166 ;;
16167
16168 sysv4)
16169 case $host_vendor in
16170 sni)
16171 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_direct_GCJ=yes # is this really true???
16173 ;;
16174 siemens)
16175 ## LD is ld it makes a PLAMLIB
16176 ## CC just makes a GrossModule.
16177 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16178 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16179 hardcode_direct_GCJ=no
16180 ;;
16181 motorola)
16182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16183 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16184 ;;
16185 esac
16186 runpath_var='LD_RUN_PATH'
16187 hardcode_shlibpath_var_GCJ=no
16188 ;;
16189
16190 sysv4.3*)
16191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_shlibpath_var_GCJ=no
16193 export_dynamic_flag_spec_GCJ='-Bexport'
16194 ;;
16195
16196 sysv4*MP*)
16197 if test -d /usr/nec; then
16198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199 hardcode_shlibpath_var_GCJ=no
16200 runpath_var=LD_RUN_PATH
16201 hardcode_runpath_var=yes
16202 ld_shlibs_GCJ=yes
16203 fi
16204 ;;
16205
16206 sysv4.2uw2*)
16207 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_direct_GCJ=yes
16209 hardcode_minus_L_GCJ=no
16210 hardcode_shlibpath_var_GCJ=no
16211 hardcode_runpath_var=yes
16212 runpath_var=LD_RUN_PATH
16213 ;;
16214
16215 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16216 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16217 if test "$GCC" = yes; then
16218 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 else
16220 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 fi
16222 runpath_var='LD_RUN_PATH'
16223 hardcode_shlibpath_var_GCJ=no
16224 ;;
16225
16226 sysv5*)
16227 no_undefined_flag_GCJ=' -z text'
16228 # $CC -shared without GNU ld will not create a library from C++
16229 # object files and a static libstdc++, better avoid it by now
16230 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16231 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16233 hardcode_libdir_flag_spec_GCJ=
16234 hardcode_shlibpath_var_GCJ=no
16235 runpath_var='LD_RUN_PATH'
16236 ;;
16237
16238 uts4*)
16239 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16241 hardcode_shlibpath_var_GCJ=no
16242 ;;
16243
16244 *)
16245 ld_shlibs_GCJ=no
16246 ;;
16247 esac
16248 fi
16249
16250echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16251echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16252test "$ld_shlibs_GCJ" = no && can_build_shared=no
16253
16254variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16255if test "$GCC" = yes; then
16256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16257fi
16258
16259#
16260# Do we need to explicitly link libc?
16261#
16262case "x$archive_cmds_need_lc_GCJ" in
16263x|xyes)
16264 # Assume -lc should be added
16265 archive_cmds_need_lc_GCJ=yes
16266
16267 if test "$enable_shared" = yes && test "$GCC" = yes; then
16268 case $archive_cmds_GCJ in
16269 *'~'*)
16270 # FIXME: we may have to deal with multi-command sequences.
16271 ;;
16272 '$CC '*)
16273 # Test whether the compiler implicitly links with -lc since on some
16274 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16275 # to ld, don't add -lc before -lgcc.
16276 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16277echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16278 $rm conftest*
16279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16280
16281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16282 (eval $ac_compile) 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } 2>conftest.err; then
16286 soname=conftest
16287 lib=conftest
16288 libobjs=conftest.$ac_objext
16289 deplibs=
16290 wl=$lt_prog_compiler_wl_GCJ
16291 compiler_flags=-v
16292 linker_flags=-v
16293 verstring=
16294 output_objdir=.
16295 libname=conftest
16296 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16297 allow_undefined_flag_GCJ=
16298 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16299 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }
16303 then
16304 archive_cmds_need_lc_GCJ=no
16305 else
16306 archive_cmds_need_lc_GCJ=yes
16307 fi
16308 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16309 else
16310 cat conftest.err 1>&5
16311 fi
16312 $rm conftest*
16313 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16314echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16315 ;;
16316 esac
16317 fi
16318 ;;
16319esac
16320
16321echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16322echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16323hardcode_action_GCJ=
16324if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16325 test -n "$runpath_var GCJ" || \
16326 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16327
16328 # We can hardcode non-existant directories.
16329 if test "$hardcode_direct_GCJ" != no &&
16330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16331 # have to relink, otherwise we might link with an installed library
16332 # when we should be linking with a yet-to-be-installed one
16333 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16334 test "$hardcode_minus_L_GCJ" != no; then
16335 # Linking always hardcodes the temporary library directory.
16336 hardcode_action_GCJ=relink
16337 else
16338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16339 hardcode_action_GCJ=immediate
16340 fi
16341else
16342 # We cannot hardcode anything, or else we can only hardcode existing
16343 # directories.
16344 hardcode_action_GCJ=unsupported
16345fi
16346echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16347echo "${ECHO_T}$hardcode_action_GCJ" >&6
16348
16349if test "$hardcode_action_GCJ" = relink; then
16350 # Fast installation is not supported
16351 enable_fast_install=no
16352elif test "$shlibpath_overrides_runpath" = yes ||
16353 test "$enable_shared" = no; then
16354 # Fast installation is not necessary
16355 enable_fast_install=needless
16356fi
16357
16358striplib=
16359old_striplib=
16360echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16361echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16362if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16365 echo "$as_me:$LINENO: result: yes" >&5
16366echo "${ECHO_T}yes" >&6
16367else
16368# FIXME - insert some real tests, host_os isn't really good enough
16369 case $host_os in
16370 darwin*)
16371 if test -n "$STRIP" ; then
16372 striplib="$STRIP -x"
16373 echo "$as_me:$LINENO: result: yes" >&5
16374echo "${ECHO_T}yes" >&6
16375 else
16376 echo "$as_me:$LINENO: result: no" >&5
16377echo "${ECHO_T}no" >&6
16378fi
16379 ;;
16380 *)
16381 echo "$as_me:$LINENO: result: no" >&5
16382echo "${ECHO_T}no" >&6
16383 ;;
16384 esac
16385fi
16386
16387echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16388echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16389library_names_spec=
16390libname_spec='lib$name'
16391soname_spec=
16392shrext=".so"
16393postinstall_cmds=
16394postuninstall_cmds=
16395finish_cmds=
16396finish_eval=
16397shlibpath_var=
16398shlibpath_overrides_runpath=unknown
16399version_type=none
16400dynamic_linker="$host_os ld.so"
16401sys_lib_dlsearch_path_spec="/lib /usr/lib"
16402if test "$GCC" = yes; then
16403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16404 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16405 # if the path contains ";" then we assume it to be the separator
16406 # otherwise default to the standard path separator (i.e. ":") - it is
16407 # assumed that no part of a normal pathname contains ";" but that should
16408 # okay in the real world where ";" in dirpaths is itself problematic.
16409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16410 else
16411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16412 fi
16413else
16414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16415fi
16416need_lib_prefix=unknown
16417hardcode_into_libs=no
16418
16419# when you set need_version to no, make sure it does not cause -set_version
16420# flags to be left without arguments
16421need_version=unknown
16422
16423case $host_os in
16424aix3*)
16425 version_type=linux
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16427 shlibpath_var=LIBPATH
16428
16429 # AIX 3 has no versioning support, so we append a major version to the name.
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 ;;
16432
16433aix4* | aix5*)
16434 version_type=linux
16435 need_lib_prefix=no
16436 need_version=no
16437 hardcode_into_libs=yes
16438 if test "$host_cpu" = ia64; then
16439 # AIX 5 supports IA64
16440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 else
16443 # With GCC up to 2.95.x, collect2 would create an import file
16444 # for dependence libraries. The import file would start with
16445 # the line `#! .'. This would cause the generated library to
16446 # depend on `.', always an invalid library. This was fixed in
16447 # development snapshots of GCC prior to 3.0.
16448 case $host_os in
16449 aix4 | aix4.[01] | aix4.[01].*)
16450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16451 echo ' yes '
16452 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16453 :
16454 else
16455 can_build_shared=no
16456 fi
16457 ;;
16458 esac
16459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16460 # soname into executable. Probably we can add versioning support to
16461 # collect2, so additional links can be useful in future.
16462 if test "$aix_use_runtimelinking" = yes; then
16463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16464 # instead of lib<name>.a to let people know that these are not
16465 # typical AIX shared libraries.
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467 else
16468 # We preserve .a as extension for shared libraries through AIX4.2
16469 # and later when we are not doing run time linking.
16470 library_names_spec='${libname}${release}.a $libname.a'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 fi
16473 shlibpath_var=LIBPATH
16474 fi
16475 ;;
16476
16477amigaos*)
16478 library_names_spec='$libname.ixlibrary $libname.a'
16479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16480 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'
16481 ;;
16482
16483beos*)
16484 library_names_spec='${libname}${shared_ext}'
16485 dynamic_linker="$host_os ld.so"
16486 shlibpath_var=LIBRARY_PATH
16487 ;;
16488
16489bsdi4*)
16490 version_type=linux
16491 need_version=no
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16498 # the default ld.so.conf also contains /usr/contrib/lib and
16499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16500 # libtool to hard-code these into programs
16501 ;;
16502
16503cygwin* | mingw* | pw32*)
16504 version_type=windows
16505 shrext=".dll"
16506 need_version=no
16507 need_lib_prefix=no
16508
16509 case $GCC,$host_os in
16510 yes,cygwin* | yes,mingw* | yes,pw32*)
16511 library_names_spec='$libname.dll.a'
16512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16513 postinstall_cmds='base_file=`basename \${file}`~
16514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16515 dldir=$destdir/`dirname \$dlpath`~
16516 test -d \$dldir || mkdir -p \$dldir~
16517 $install_prog $dir/$dlname \$dldir/$dlname'
16518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16519 dlpath=$dir/\$dldll~
16520 $rm \$dlpath'
16521 shlibpath_overrides_runpath=yes
16522
16523 case $host_os in
16524 cygwin*)
16525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16527 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16528 ;;
16529 mingw*)
16530 # MinGW DLLs use traditional 'lib' prefix
16531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16534 # It is most probably a Windows format PATH printed by
16535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16536 # path with ; separators, and with drive letters. We can handle the
16537 # drive letters (cygwin fileutils understands them), so leave them,
16538 # especially as we might pass files found there to a mingw objdump,
16539 # which wouldn't understand a cygwinified path. Ahh.
16540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16541 else
16542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16543 fi
16544 ;;
16545 pw32*)
16546 # pw32 DLLs use 'pw' prefix rather than 'lib'
16547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16548 ;;
16549 esac
16550 ;;
16551
16552 *)
16553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16554 ;;
16555 esac
16556 dynamic_linker='Win32 ld.exe'
16557 # FIXME: first we should search . and the directory the executable is in
16558 shlibpath_var=PATH
16559 ;;
16560
16561darwin* | rhapsody*)
16562 dynamic_linker="$host_os dyld"
16563 version_type=darwin
16564 need_lib_prefix=no
16565 need_version=no
16566 # FIXME: Relying on posixy $() will cause problems for
16567 # cross-compilation, but unfortunately the echo tests do not
16568 # yet detect zsh echo's removal of \ escapes.
16569 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16570 soname_spec='${libname}${release}${major}$shared_ext'
16571 shlibpath_overrides_runpath=yes
16572 shlibpath_var=DYLD_LIBRARY_PATH
16573 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16574 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16575 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16576 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"`
16577 fi
16578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16579 ;;
16580
16581dgux*)
16582 version_type=linux
16583 need_lib_prefix=no
16584 need_version=no
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 ;;
16589
16590freebsd1*)
16591 dynamic_linker=no
16592 ;;
16593
16594freebsd*)
16595 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16596 version_type=freebsd-$objformat
16597 case $version_type in
16598 freebsd-elf*)
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16600 need_version=no
16601 need_lib_prefix=no
16602 ;;
16603 freebsd-*)
16604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16605 need_version=yes
16606 ;;
16607 esac
16608 shlibpath_var=LD_LIBRARY_PATH
16609 case $host_os in
16610 freebsd2*)
16611 shlibpath_overrides_runpath=yes
16612 ;;
16613 freebsd3.01* | freebsdelf3.01*)
16614 shlibpath_overrides_runpath=yes
16615 hardcode_into_libs=yes
16616 ;;
16617 *) # from 3.2 on
16618 shlibpath_overrides_runpath=no
16619 hardcode_into_libs=yes
16620 ;;
16621 esac
16622 ;;
16623
16624gnu*)
16625 version_type=linux
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 hardcode_into_libs=yes
16632 ;;
16633
16634hpux9* | hpux10* | hpux11*)
16635 # Give a soname corresponding to the major version so that dld.sl refuses to
16636 # link against other versions.
16637 version_type=sunos
16638 need_lib_prefix=no
16639 need_version=no
16640 case "$host_cpu" in
16641 ia64*)
16642 shrext='.so'
16643 hardcode_into_libs=yes
16644 dynamic_linker="$host_os dld.so"
16645 shlibpath_var=LD_LIBRARY_PATH
16646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 if test "X$HPUX_IA64_MODE" = X32; then
16650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16651 else
16652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16653 fi
16654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16655 ;;
16656 hppa*64*)
16657 shrext='.sl'
16658 hardcode_into_libs=yes
16659 dynamic_linker="$host_os dld.sl"
16660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666 ;;
16667 *)
16668 shrext='.sl'
16669 dynamic_linker="$host_os dld.sl"
16670 shlibpath_var=SHLIB_PATH
16671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 ;;
16675 esac
16676 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16677 postinstall_cmds='chmod 555 $lib'
16678 ;;
16679
16680irix5* | irix6* | nonstopux*)
16681 case $host_os in
16682 nonstopux*) version_type=nonstopux ;;
16683 *)
16684 if test "$lt_cv_prog_gnu_ld" = yes; then
16685 version_type=linux
16686 else
16687 version_type=irix
16688 fi ;;
16689 esac
16690 need_lib_prefix=no
16691 need_version=no
16692 soname_spec='${libname}${release}${shared_ext}$major'
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16694 case $host_os in
16695 irix5* | nonstopux*)
16696 libsuff= shlibsuff=
16697 ;;
16698 *)
16699 case $LD in # libtool.m4 will add one of these switches to LD
16700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16701 libsuff= shlibsuff= libmagic=32-bit;;
16702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16703 libsuff=32 shlibsuff=N32 libmagic=N32;;
16704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16706 *) libsuff= shlibsuff= libmagic=never-match;;
16707 esac
16708 ;;
16709 esac
16710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16711 shlibpath_overrides_runpath=no
16712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16714 hardcode_into_libs=yes
16715 ;;
16716
16717# No shared lib support for Linux oldld, aout, or coff.
16718linux*oldld* | linux*aout* | linux*coff*)
16719 dynamic_linker=no
16720 ;;
16721
16722# This must be Linux ELF.
16723linux*)
16724 version_type=linux
16725 need_lib_prefix=no
16726 need_version=no
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
16729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 shlibpath_overrides_runpath=no
16732 # This implies no fast_install, which is unacceptable.
16733 # Some rework will be needed to allow for fast_install
16734 # before this can be enabled.
16735 hardcode_into_libs=yes
16736
16737 # We used to test for /lib/ld.so.1 and disable shared libraries on
16738 # powerpc, because MkLinux only supported shared libraries with the
16739 # GNU dynamic linker. Since this was broken with cross compilers,
16740 # most powerpc-linux boxes support dynamic linking these days and
16741 # people can always --disable-shared, the test was removed, and we
16742 # assume the GNU/Linux dynamic linker is in use.
16743 dynamic_linker='GNU/Linux ld.so'
16744 ;;
16745
16746netbsd*)
16747 version_type=sunos
16748 need_lib_prefix=no
16749 need_version=no
16750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16753 dynamic_linker='NetBSD (a.out) ld.so'
16754 else
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
16757 dynamic_linker='NetBSD ld.elf_so'
16758 fi
16759 shlibpath_var=LD_LIBRARY_PATH
16760 shlibpath_overrides_runpath=yes
16761 hardcode_into_libs=yes
16762 ;;
16763
16764newsos6)
16765 version_type=linux
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767 shlibpath_var=LD_LIBRARY_PATH
16768 shlibpath_overrides_runpath=yes
16769 ;;
16770
16771nto-qnx)
16772 version_type=linux
16773 need_lib_prefix=no
16774 need_version=no
16775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16776 soname_spec='${libname}${release}${shared_ext}$major'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=yes
16779 ;;
16780
16781openbsd*)
16782 version_type=sunos
16783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16789 case $host_os in
16790 openbsd2.[89] | openbsd2.[89].*)
16791 shlibpath_overrides_runpath=no
16792 ;;
16793 *)
16794 shlibpath_overrides_runpath=yes
16795 ;;
16796 esac
16797 else
16798 shlibpath_overrides_runpath=yes
16799 fi
16800 ;;
16801
16802os2*)
16803 libname_spec='$name'
16804 shrext=".dll"
16805 need_lib_prefix=no
16806 library_names_spec='$libname${shared_ext} $libname.a'
16807 dynamic_linker='OS/2 ld.exe'
16808 shlibpath_var=LIBPATH
16809 ;;
16810
16811osf3* | osf4* | osf5*)
16812 version_type=osf
16813 need_lib_prefix=no
16814 need_version=no
16815 soname_spec='${libname}${release}${shared_ext}$major'
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16819 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16820 ;;
16821
16822sco3.2v5*)
16823 version_type=osf
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 ;;
16828
16829solaris*)
16830 version_type=linux
16831 need_lib_prefix=no
16832 need_version=no
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834 soname_spec='${libname}${release}${shared_ext}$major'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 shlibpath_overrides_runpath=yes
16837 hardcode_into_libs=yes
16838 # ldd complains unless libraries are executable
16839 postinstall_cmds='chmod +x $lib'
16840 ;;
16841
16842sunos4*)
16843 version_type=sunos
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 shlibpath_overrides_runpath=yes
16848 if test "$with_gnu_ld" = yes; then
16849 need_lib_prefix=no
16850 fi
16851 need_version=yes
16852 ;;
16853
16854sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16855 version_type=linux
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16857 soname_spec='${libname}${release}${shared_ext}$major'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 case $host_vendor in
16860 sni)
16861 shlibpath_overrides_runpath=no
16862 need_lib_prefix=no
16863 export_dynamic_flag_spec='${wl}-Blargedynsym'
16864 runpath_var=LD_RUN_PATH
16865 ;;
16866 siemens)
16867 need_lib_prefix=no
16868 ;;
16869 motorola)
16870 need_lib_prefix=no
16871 need_version=no
16872 shlibpath_overrides_runpath=no
16873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16874 ;;
16875 esac
16876 ;;
16877
16878sysv4*MP*)
16879 if test -d /usr/nec ;then
16880 version_type=linux
16881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16882 soname_spec='$libname${shared_ext}.$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 fi
16885 ;;
16886
16887uts4*)
16888 version_type=linux
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 ;;
16893
16894*)
16895 dynamic_linker=no
16896 ;;
16897esac
16898echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16899echo "${ECHO_T}$dynamic_linker" >&6
16900test "$dynamic_linker" = no && can_build_shared=no
16901
16902if test "x$enable_dlopen" != xyes; then
16903 enable_dlopen=unknown
16904 enable_dlopen_self=unknown
16905 enable_dlopen_self_static=unknown
16906else
16907 lt_cv_dlopen=no
16908 lt_cv_dlopen_libs=
16909
16910 case $host_os in
16911 beos*)
16912 lt_cv_dlopen="load_add_on"
16913 lt_cv_dlopen_libs=
16914 lt_cv_dlopen_self=yes
16915 ;;
16916
16917 mingw* | pw32*)
16918 lt_cv_dlopen="LoadLibrary"
16919 lt_cv_dlopen_libs=
16920 ;;
16921
16922 cygwin*)
16923 lt_cv_dlopen="dlopen"
16924 lt_cv_dlopen_libs=
16925 ;;
16926
16927 darwin*)
16928 # if libdl is installed we need to link against it
16929 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933else
16934 ac_check_lib_save_LIBS=$LIBS
16935LIBS="-ldl $LIBS"
16936cat >conftest.$ac_ext <<_ACEOF
16937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016943
16944/* Override any gcc2 internal prototype to avoid an error. */
16945#ifdef __cplusplus
16946extern "C"
16947#endif
16948/* We use char because int might match the return type of a gcc2
16949 builtin and then its argument prototype would still apply. */
16950char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016951int
16952main ()
16953{
16954dlopen ();
16955 ;
16956 return 0;
16957}
16958_ACEOF
16959rm -f conftest.$ac_objext conftest$ac_exeext
16960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16961 (eval $ac_link) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } &&
16965 { ac_try='test -s conftest$ac_exeext'
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_cv_lib_dl_dlopen=yes
16972else
16973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016974sed 's/^/| /' conftest.$ac_ext >&5
16975
John Criswell47fdd832003-07-14 16:52:07 +000016976ac_cv_lib_dl_dlopen=no
16977fi
16978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16979LIBS=$ac_check_lib_save_LIBS
16980fi
16981echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16982echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16983if test $ac_cv_lib_dl_dlopen = yes; then
16984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16985else
16986
16987 lt_cv_dlopen="dyld"
16988 lt_cv_dlopen_libs=
16989 lt_cv_dlopen_self=yes
16990
16991fi
16992
16993 ;;
16994
16995 *)
16996 echo "$as_me:$LINENO: checking for shl_load" >&5
16997echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16998if test "${ac_cv_func_shl_load+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001 cat >conftest.$ac_ext <<_ACEOF
17002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017003/* confdefs.h. */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017008/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017009 which can conflict with char shl_load (); below.
17010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17011 <limits.h> exists even on freestanding compilers. */
17012#ifdef __STDC__
17013# include <limits.h>
17014#else
17015# include <assert.h>
17016#endif
John Criswell47fdd832003-07-14 16:52:07 +000017017/* Override any gcc2 internal prototype to avoid an error. */
17018#ifdef __cplusplus
17019extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017020{
John Criswell47fdd832003-07-14 16:52:07 +000017021#endif
17022/* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017025/* The GNU C library defines this for functions which it implements
17026 to always fail with ENOSYS. Some functions are actually named
17027 something starting with __ and the normal name is an alias. */
17028#if defined (__stub_shl_load) || defined (__stub___shl_load)
17029choke me
17030#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017031char (*f) () = shl_load;
17032#endif
17033#ifdef __cplusplus
17034}
John Criswell47fdd832003-07-14 16:52:07 +000017035#endif
17036
John Criswell0c38eaf2003-09-10 15:17:25 +000017037int
17038main ()
17039{
17040return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017041 ;
17042 return 0;
17043}
17044_ACEOF
17045rm -f conftest.$ac_objext conftest$ac_exeext
17046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17047 (eval $ac_link) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -s conftest$ac_exeext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_func_shl_load=yes
17058else
17059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017060sed 's/^/| /' conftest.$ac_ext >&5
17061
John Criswell47fdd832003-07-14 16:52:07 +000017062ac_cv_func_shl_load=no
17063fi
17064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17065fi
17066echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17067echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17068if test $ac_cv_func_shl_load = yes; then
17069 lt_cv_dlopen="shl_load"
17070else
17071 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17072echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17073if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17075else
17076 ac_check_lib_save_LIBS=$LIBS
17077LIBS="-ldld $LIBS"
17078cat >conftest.$ac_ext <<_ACEOF
17079#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017080/* confdefs.h. */
17081_ACEOF
17082cat confdefs.h >>conftest.$ac_ext
17083cat >>conftest.$ac_ext <<_ACEOF
17084/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017085
17086/* Override any gcc2 internal prototype to avoid an error. */
17087#ifdef __cplusplus
17088extern "C"
17089#endif
17090/* We use char because int might match the return type of a gcc2
17091 builtin and then its argument prototype would still apply. */
17092char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017093int
17094main ()
17095{
17096shl_load ();
17097 ;
17098 return 0;
17099}
17100_ACEOF
17101rm -f conftest.$ac_objext conftest$ac_exeext
17102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17103 (eval $ac_link) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_lib_dld_shl_load=yes
17114else
17115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017116sed 's/^/| /' conftest.$ac_ext >&5
17117
John Criswell47fdd832003-07-14 16:52:07 +000017118ac_cv_lib_dld_shl_load=no
17119fi
17120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17121LIBS=$ac_check_lib_save_LIBS
17122fi
17123echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17124echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17125if test $ac_cv_lib_dld_shl_load = yes; then
17126 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17127else
17128 echo "$as_me:$LINENO: checking for dlopen" >&5
17129echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17130if test "${ac_cv_func_dlopen+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132else
17133 cat >conftest.$ac_ext <<_ACEOF
17134#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017140/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017141 which can conflict with char dlopen (); below.
17142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17143 <limits.h> exists even on freestanding compilers. */
17144#ifdef __STDC__
17145# include <limits.h>
17146#else
17147# include <assert.h>
17148#endif
John Criswell47fdd832003-07-14 16:52:07 +000017149/* Override any gcc2 internal prototype to avoid an error. */
17150#ifdef __cplusplus
17151extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017152{
John Criswell47fdd832003-07-14 16:52:07 +000017153#endif
17154/* We use char because int might match the return type of a gcc2
17155 builtin and then its argument prototype would still apply. */
17156char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017157/* The GNU C library defines this for functions which it implements
17158 to always fail with ENOSYS. Some functions are actually named
17159 something starting with __ and the normal name is an alias. */
17160#if defined (__stub_dlopen) || defined (__stub___dlopen)
17161choke me
17162#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017163char (*f) () = dlopen;
17164#endif
17165#ifdef __cplusplus
17166}
John Criswell47fdd832003-07-14 16:52:07 +000017167#endif
17168
John Criswell0c38eaf2003-09-10 15:17:25 +000017169int
17170main ()
17171{
17172return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext conftest$ac_exeext
17178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179 (eval $ac_link) 2>&5
17180 ac_status=$?
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -s conftest$ac_exeext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17186 ac_status=$?
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 ac_cv_func_dlopen=yes
17190else
17191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017192sed 's/^/| /' conftest.$ac_ext >&5
17193
John Criswell47fdd832003-07-14 16:52:07 +000017194ac_cv_func_dlopen=no
17195fi
17196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17197fi
17198echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17199echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17200if test $ac_cv_func_dlopen = yes; then
17201 lt_cv_dlopen="dlopen"
17202else
17203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 ac_check_lib_save_LIBS=$LIBS
17209LIBS="-ldl $LIBS"
17210cat >conftest.$ac_ext <<_ACEOF
17211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017217
17218/* Override any gcc2 internal prototype to avoid an error. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222/* We use char because int might match the return type of a gcc2
17223 builtin and then its argument prototype would still apply. */
17224char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017225int
17226main ()
17227{
17228dlopen ();
17229 ;
17230 return 0;
17231}
17232_ACEOF
17233rm -f conftest.$ac_objext conftest$ac_exeext
17234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -s conftest$ac_exeext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ac_cv_lib_dl_dlopen=yes
17246else
17247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017248sed 's/^/| /' conftest.$ac_ext >&5
17249
John Criswell47fdd832003-07-14 16:52:07 +000017250ac_cv_lib_dl_dlopen=no
17251fi
17252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253LIBS=$ac_check_lib_save_LIBS
17254fi
17255echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17256echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17257if test $ac_cv_lib_dl_dlopen = yes; then
17258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17259else
17260 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17261echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17262if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 ac_check_lib_save_LIBS=$LIBS
17266LIBS="-lsvld $LIBS"
17267cat >conftest.$ac_ext <<_ACEOF
17268#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017274
17275/* Override any gcc2 internal prototype to avoid an error. */
17276#ifdef __cplusplus
17277extern "C"
17278#endif
17279/* We use char because int might match the return type of a gcc2
17280 builtin and then its argument prototype would still apply. */
17281char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017282int
17283main ()
17284{
17285dlopen ();
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext conftest$ac_exeext
17291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
17296 { ac_try='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_lib_svld_dlopen=yes
17303else
17304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017305sed 's/^/| /' conftest.$ac_ext >&5
17306
John Criswell47fdd832003-07-14 16:52:07 +000017307ac_cv_lib_svld_dlopen=no
17308fi
17309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17310LIBS=$ac_check_lib_save_LIBS
17311fi
17312echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17313echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17314if test $ac_cv_lib_svld_dlopen = yes; then
17315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17316else
17317 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17318echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17319if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
17322 ac_check_lib_save_LIBS=$LIBS
17323LIBS="-ldld $LIBS"
17324cat >conftest.$ac_ext <<_ACEOF
17325#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017331
17332/* Override any gcc2 internal prototype to avoid an error. */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336/* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017339int
17340main ()
17341{
17342dld_link ();
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
17348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17349 (eval $ac_link) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } &&
17353 { ac_try='test -s conftest$ac_exeext'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_cv_lib_dld_dld_link=yes
17360else
17361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017362sed 's/^/| /' conftest.$ac_ext >&5
17363
John Criswell47fdd832003-07-14 16:52:07 +000017364ac_cv_lib_dld_dld_link=no
17365fi
17366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17367LIBS=$ac_check_lib_save_LIBS
17368fi
17369echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17370echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17371if test $ac_cv_lib_dld_dld_link = yes; then
17372 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17373fi
17374
17375
17376fi
17377
17378
17379fi
17380
17381
17382fi
17383
17384
17385fi
17386
17387
17388fi
17389
17390 ;;
17391 esac
17392
17393 if test "x$lt_cv_dlopen" != xno; then
17394 enable_dlopen=yes
17395 else
17396 enable_dlopen=no
17397 fi
17398
17399 case $lt_cv_dlopen in
17400 dlopen)
17401 save_CPPFLAGS="$CPPFLAGS"
17402 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17403
17404 save_LDFLAGS="$LDFLAGS"
17405 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17406
17407 save_LIBS="$LIBS"
17408 LIBS="$lt_cv_dlopen_libs $LIBS"
17409
17410 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17411echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17412if test "${lt_cv_dlopen_self+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414else
17415 if test "$cross_compiling" = yes; then :
17416 lt_cv_dlopen_self=cross
17417else
17418 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17419 lt_status=$lt_dlunknown
17420 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +000017421#line 17421 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017422#include "confdefs.h"
17423
17424#if HAVE_DLFCN_H
17425#include <dlfcn.h>
17426#endif
17427
17428#include <stdio.h>
17429
17430#ifdef RTLD_GLOBAL
17431# define LT_DLGLOBAL RTLD_GLOBAL
17432#else
17433# ifdef DL_GLOBAL
17434# define LT_DLGLOBAL DL_GLOBAL
17435# else
17436# define LT_DLGLOBAL 0
17437# endif
17438#endif
17439
17440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17441 find out it does not work in some platform. */
17442#ifndef LT_DLLAZY_OR_NOW
17443# ifdef RTLD_LAZY
17444# define LT_DLLAZY_OR_NOW RTLD_LAZY
17445# else
17446# ifdef DL_LAZY
17447# define LT_DLLAZY_OR_NOW DL_LAZY
17448# else
17449# ifdef RTLD_NOW
17450# define LT_DLLAZY_OR_NOW RTLD_NOW
17451# else
17452# ifdef DL_NOW
17453# define LT_DLLAZY_OR_NOW DL_NOW
17454# else
17455# define LT_DLLAZY_OR_NOW 0
17456# endif
17457# endif
17458# endif
17459# endif
17460#endif
17461
17462#ifdef __cplusplus
17463extern "C" void exit (int);
17464#endif
17465
17466void fnord() { int i=42;}
17467int main ()
17468{
17469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17470 int status = $lt_dlunknown;
17471
17472 if (self)
17473 {
17474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17476 /* dlclose (self); */
17477 }
17478
17479 exit (status);
17480}
17481EOF
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17487 (./conftest; exit; ) 2>/dev/null
17488 lt_status=$?
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17492 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17493 esac
17494 else :
17495 # compilation failed
17496 lt_cv_dlopen_self=no
17497 fi
17498fi
17499rm -fr conftest*
17500
17501
17502fi
17503echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17504echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17505
17506 if test "x$lt_cv_dlopen_self" = xyes; then
17507 LDFLAGS="$LDFLAGS $link_static_flag"
17508 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17509echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17510if test "${lt_cv_dlopen_self_static+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17512else
17513 if test "$cross_compiling" = yes; then :
17514 lt_cv_dlopen_self_static=cross
17515else
17516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17517 lt_status=$lt_dlunknown
17518 cat > conftest.$ac_ext <<EOF
Brian Gaeke7fe1d162003-11-17 00:31:43 +000017519#line 17519 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017520#include "confdefs.h"
17521
17522#if HAVE_DLFCN_H
17523#include <dlfcn.h>
17524#endif
17525
17526#include <stdio.h>
17527
17528#ifdef RTLD_GLOBAL
17529# define LT_DLGLOBAL RTLD_GLOBAL
17530#else
17531# ifdef DL_GLOBAL
17532# define LT_DLGLOBAL DL_GLOBAL
17533# else
17534# define LT_DLGLOBAL 0
17535# endif
17536#endif
17537
17538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17539 find out it does not work in some platform. */
17540#ifndef LT_DLLAZY_OR_NOW
17541# ifdef RTLD_LAZY
17542# define LT_DLLAZY_OR_NOW RTLD_LAZY
17543# else
17544# ifdef DL_LAZY
17545# define LT_DLLAZY_OR_NOW DL_LAZY
17546# else
17547# ifdef RTLD_NOW
17548# define LT_DLLAZY_OR_NOW RTLD_NOW
17549# else
17550# ifdef DL_NOW
17551# define LT_DLLAZY_OR_NOW DL_NOW
17552# else
17553# define LT_DLLAZY_OR_NOW 0
17554# endif
17555# endif
17556# endif
17557# endif
17558#endif
17559
17560#ifdef __cplusplus
17561extern "C" void exit (int);
17562#endif
17563
17564void fnord() { int i=42;}
17565int main ()
17566{
17567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17568 int status = $lt_dlunknown;
17569
17570 if (self)
17571 {
17572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17574 /* dlclose (self); */
17575 }
17576
17577 exit (status);
17578}
17579EOF
17580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17585 (./conftest; exit; ) 2>/dev/null
17586 lt_status=$?
17587 case x$lt_status in
17588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17590 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17591 esac
17592 else :
17593 # compilation failed
17594 lt_cv_dlopen_self_static=no
17595 fi
17596fi
17597rm -fr conftest*
17598
17599
17600fi
17601echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17602echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17603 fi
17604
17605 CPPFLAGS="$save_CPPFLAGS"
17606 LDFLAGS="$save_LDFLAGS"
17607 LIBS="$save_LIBS"
17608 ;;
17609 esac
17610
17611 case $lt_cv_dlopen_self in
17612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17613 *) enable_dlopen_self=unknown ;;
17614 esac
17615
17616 case $lt_cv_dlopen_self_static in
17617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17618 *) enable_dlopen_self_static=unknown ;;
17619 esac
17620fi
17621
17622
17623# The else clause should only fire when bootstrapping the
17624# libtool distribution, otherwise you forgot to ship ltmain.sh
17625# with your package, and you will get complaints that there are
17626# no rules to generate ltmain.sh.
17627if test -f "$ltmain"; then
17628 # See if we are running on zsh, and set the options which allow our commands through
17629 # without removal of \ escapes.
17630 if test -n "${ZSH_VERSION+set}" ; then
17631 setopt NO_GLOB_SUBST
17632 fi
17633 # Now quote all the things that may contain metacharacters while being
17634 # careful not to overquote the AC_SUBSTed values. We take copies of the
17635 # variables and quote the copies for generation of the libtool script.
17636 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17639 deplibs_check_method reload_flag reload_cmds need_locks \
17640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17641 lt_cv_sys_global_symbol_to_c_name_address \
17642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17643 old_postinstall_cmds old_postuninstall_cmds \
17644 compiler_GCJ \
17645 CC_GCJ \
17646 LD_GCJ \
17647 lt_prog_compiler_wl_GCJ \
17648 lt_prog_compiler_pic_GCJ \
17649 lt_prog_compiler_static_GCJ \
17650 lt_prog_compiler_no_builtin_flag_GCJ \
17651 export_dynamic_flag_spec_GCJ \
17652 thread_safe_flag_spec_GCJ \
17653 whole_archive_flag_spec_GCJ \
17654 enable_shared_with_static_runtimes_GCJ \
17655 old_archive_cmds_GCJ \
17656 old_archive_from_new_cmds_GCJ \
17657 predep_objects_GCJ \
17658 postdep_objects_GCJ \
17659 predeps_GCJ \
17660 postdeps_GCJ \
17661 compiler_lib_search_path_GCJ \
17662 archive_cmds_GCJ \
17663 archive_expsym_cmds_GCJ \
17664 postinstall_cmds_GCJ \
17665 postuninstall_cmds_GCJ \
17666 old_archive_from_expsyms_cmds_GCJ \
17667 allow_undefined_flag_GCJ \
17668 no_undefined_flag_GCJ \
17669 export_symbols_cmds_GCJ \
17670 hardcode_libdir_flag_spec_GCJ \
17671 hardcode_libdir_flag_spec_ld_GCJ \
17672 hardcode_libdir_separator_GCJ \
17673 hardcode_automatic_GCJ \
17674 module_cmds_GCJ \
17675 module_expsym_cmds_GCJ \
17676 lt_cv_prog_compiler_c_o_GCJ \
17677 exclude_expsyms_GCJ \
17678 include_expsyms_GCJ; do
17679
17680 case $var in
17681 old_archive_cmds_GCJ | \
17682 old_archive_from_new_cmds_GCJ | \
17683 archive_cmds_GCJ | \
17684 archive_expsym_cmds_GCJ | \
17685 module_cmds_GCJ | \
17686 module_expsym_cmds_GCJ | \
17687 old_archive_from_expsyms_cmds_GCJ | \
17688 export_symbols_cmds_GCJ | \
17689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17690 postinstall_cmds | postuninstall_cmds | \
17691 old_postinstall_cmds | old_postuninstall_cmds | \
17692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17693 # Double-quote double-evaled strings.
17694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17695 ;;
17696 *)
17697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17698 ;;
17699 esac
17700 done
17701
17702 case $lt_echo in
17703 *'\$0 --fallback-echo"')
17704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17705 ;;
17706 esac
17707
17708cfgfile="$ofile"
17709
17710 cat <<__EOF__ >> "$cfgfile"
17711# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17712
17713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17714
17715# Shell to use when invoking shell scripts.
17716SHELL=$lt_SHELL
17717
17718# Whether or not to build shared libraries.
17719build_libtool_libs=$enable_shared
17720
17721# Whether or not to build static libraries.
17722build_old_libs=$enable_static
17723
17724# Whether or not to add -lc for building shared libraries.
17725build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17726
17727# Whether or not to disallow shared libs when runtime libs are static
17728allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17729
17730# Whether or not to optimize for fast installation.
17731fast_install=$enable_fast_install
17732
17733# The host system.
17734host_alias=$host_alias
17735host=$host
17736
17737# An echo program that does not interpret backslashes.
17738echo=$lt_echo
17739
17740# The archiver.
17741AR=$lt_AR
17742AR_FLAGS=$lt_AR_FLAGS
17743
17744# A C compiler.
17745LTCC=$lt_LTCC
17746
17747# A language-specific compiler.
17748CC=$lt_compiler_GCJ
17749
17750# Is the compiler the GNU C compiler?
17751with_gcc=$GCC_GCJ
17752
17753# An ERE matcher.
17754EGREP=$lt_EGREP
17755
17756# The linker used to build libraries.
17757LD=$lt_LD_GCJ
17758
17759# Whether we need hard or soft links.
17760LN_S=$lt_LN_S
17761
17762# A BSD-compatible nm program.
17763NM=$lt_NM
17764
17765# A symbol stripping program
17766STRIP=$STRIP
17767
17768# Used to examine libraries when file_magic_cmd begins "file"
17769MAGIC_CMD=$MAGIC_CMD
17770
17771# Used on cygwin: DLL creation program.
17772DLLTOOL="$DLLTOOL"
17773
17774# Used on cygwin: object dumper.
17775OBJDUMP="$OBJDUMP"
17776
17777# Used on cygwin: assembler.
17778AS="$AS"
17779
17780# The name of the directory that contains temporary libtool files.
17781objdir=$objdir
17782
17783# How to create reloadable object files.
17784reload_flag=$lt_reload_flag
17785reload_cmds=$lt_reload_cmds
17786
17787# How to pass a linker flag through the compiler.
17788wl=$lt_lt_prog_compiler_wl_GCJ
17789
17790# Object file suffix (normally "o").
17791objext="$ac_objext"
17792
17793# Old archive suffix (normally "a").
17794libext="$libext"
17795
17796# Shared library suffix (normally ".so").
17797shrext='$shrext'
17798
17799# Executable file suffix (normally "").
17800exeext="$exeext"
17801
17802# Additional compiler flags for building library objects.
17803pic_flag=$lt_lt_prog_compiler_pic_GCJ
17804pic_mode=$pic_mode
17805
17806# What is the maximum length of a command?
17807max_cmd_len=$lt_cv_sys_max_cmd_len
17808
17809# Does compiler simultaneously support -c and -o options?
17810compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17811
17812# Must we lock files when doing compilation ?
17813need_locks=$lt_need_locks
17814
17815# Do we need the lib prefix for modules?
17816need_lib_prefix=$need_lib_prefix
17817
17818# Do we need a version for libraries?
17819need_version=$need_version
17820
17821# Whether dlopen is supported.
17822dlopen_support=$enable_dlopen
17823
17824# Whether dlopen of programs is supported.
17825dlopen_self=$enable_dlopen_self
17826
17827# Whether dlopen of statically linked programs is supported.
17828dlopen_self_static=$enable_dlopen_self_static
17829
17830# Compiler flag to prevent dynamic linking.
17831link_static_flag=$lt_lt_prog_compiler_static_GCJ
17832
17833# Compiler flag to turn off builtin functions.
17834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17835
17836# Compiler flag to allow reflexive dlopens.
17837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17838
17839# Compiler flag to generate shared objects directly from archives.
17840whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17841
17842# Compiler flag to generate thread-safe objects.
17843thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17844
17845# Library versioning type.
17846version_type=$version_type
17847
17848# Format of library name prefix.
17849libname_spec=$lt_libname_spec
17850
17851# List of archive names. First name is the real one, the rest are links.
17852# The last name is the one that the linker finds with -lNAME.
17853library_names_spec=$lt_library_names_spec
17854
17855# The coded name of the library, if different from the real name.
17856soname_spec=$lt_soname_spec
17857
17858# Commands used to build and install an old-style archive.
17859RANLIB=$lt_RANLIB
17860old_archive_cmds=$lt_old_archive_cmds_GCJ
17861old_postinstall_cmds=$lt_old_postinstall_cmds
17862old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864# Create an old-style archive from a shared archive.
17865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17866
17867# Create a temporary old-style archive to link instead of a shared archive.
17868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17869
17870# Commands used to build and install a shared archive.
17871archive_cmds=$lt_archive_cmds_GCJ
17872archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17873postinstall_cmds=$lt_postinstall_cmds
17874postuninstall_cmds=$lt_postuninstall_cmds
17875
17876# Commands used to build a loadable module (assumed same as above if empty)
17877module_cmds=$lt_module_cmds_GCJ
17878module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17879
17880# Commands to strip libraries.
17881old_striplib=$lt_old_striplib
17882striplib=$lt_striplib
17883
17884# Dependencies to place before the objects being linked to create a
17885# shared library.
17886predep_objects=$lt_predep_objects_GCJ
17887
17888# Dependencies to place after the objects being linked to create a
17889# shared library.
17890postdep_objects=$lt_postdep_objects_GCJ
17891
17892# Dependencies to place before the objects being linked to create a
17893# shared library.
17894predeps=$lt_predeps_GCJ
17895
17896# Dependencies to place after the objects being linked to create a
17897# shared library.
17898postdeps=$lt_postdeps_GCJ
17899
17900# The library search path used internally by the compiler when linking
17901# a shared library.
17902compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17903
17904# Method to check whether dependent libraries are shared objects.
17905deplibs_check_method=$lt_deplibs_check_method
17906
17907# Command to use when deplibs_check_method == file_magic.
17908file_magic_cmd=$lt_file_magic_cmd
17909
17910# Flag that allows shared libraries with undefined symbols to be built.
17911allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17912
17913# Flag that forces no undefined symbols.
17914no_undefined_flag=$lt_no_undefined_flag_GCJ
17915
17916# Commands used to finish a libtool library installation in a directory.
17917finish_cmds=$lt_finish_cmds
17918
17919# Same as above, but a single script fragment to be evaled but not shown.
17920finish_eval=$lt_finish_eval
17921
17922# Take the output of nm and produce a listing of raw symbols and C names.
17923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17924
17925# Transform the output of nm in a proper C declaration
17926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17927
17928# Transform the output of nm in a C name address pair
17929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17930
17931# This is the shared library runtime path variable.
17932runpath_var=$runpath_var
17933
17934# This is the shared library path variable.
17935shlibpath_var=$shlibpath_var
17936
17937# Is shlibpath searched before the hard-coded library search path?
17938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940# How to hardcode a shared library path into an executable.
17941hardcode_action=$hardcode_action_GCJ
17942
17943# Whether we should hardcode library paths into libraries.
17944hardcode_into_libs=$hardcode_into_libs
17945
17946# Flag to hardcode \$libdir into a binary during linking.
17947# This must work even if \$libdir does not exist.
17948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17949
17950# If ld is used when linking, flag to hardcode \$libdir into
17951# a binary during linking. This must work even if \$libdir does
17952# not exist.
17953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17954
17955# Whether we need a single -rpath flag with a separated argument.
17956hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17957
17958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959# resulting binary.
17960hardcode_direct=$hardcode_direct_GCJ
17961
17962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963# resulting binary.
17964hardcode_minus_L=$hardcode_minus_L_GCJ
17965
17966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967# the resulting binary.
17968hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17969
17970# Set to yes if building a shared library automatically hardcodes DIR into the library
17971# and all subsequent libraries and executables linked against it.
17972hardcode_automatic=$hardcode_automatic_GCJ
17973
17974# Variables whose values should be saved in libtool wrapper scripts and
17975# restored at relink time.
17976variables_saved_for_relink="$variables_saved_for_relink"
17977
17978# Whether libtool must link a program against all its dependency libraries.
17979link_all_deplibs=$link_all_deplibs_GCJ
17980
17981# Compile-time system search path for libraries
17982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984# Run-time system search path for libraries
17985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987# Fix the shell variable \$srcfile for the compiler.
17988fix_srcfile_path="$fix_srcfile_path_GCJ"
17989
17990# Set to yes if exported symbols are required.
17991always_export_symbols=$always_export_symbols_GCJ
17992
17993# The commands to list exported symbols.
17994export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17995
17996# The commands to extract the exported symbol list from a shared archive.
17997extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999# Symbols that should not be listed in the preloaded symbols.
18000exclude_expsyms=$lt_exclude_expsyms_GCJ
18001
18002# Symbols that must always be exported.
18003include_expsyms=$lt_include_expsyms_GCJ
18004
18005# ### END LIBTOOL TAG CONFIG: $tagname
18006
18007__EOF__
18008
18009
18010else
18011 # If there is no Makefile yet, we rely on a make rule to execute
18012 # `config.status --recheck' to rerun these tests and create the
18013 # libtool script then.
18014 test -f Makefile && make "$ltmain"
18015fi
18016
18017
18018ac_ext=c
18019ac_cpp='$CPP $CPPFLAGS'
18020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18022ac_compiler_gnu=$ac_cv_c_compiler_gnu
18023
18024CC="$lt_save_CC"
18025
18026 else
18027 tagname=""
18028 fi
18029 ;;
18030
18031 RC)
18032
18033
18034
18035# Source file extension for RC test sources.
18036ac_ext=rc
18037
18038# Object file extension for compiled RC test sources.
18039objext=o
18040objext_RC=$objext
18041
18042# Code to be used in simple compile tests
18043lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18044
18045# Code to be used in simple link tests
18046lt_simple_link_test_code="$lt_simple_compile_test_code"
18047
18048# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18049
18050# If no C compiler was specified, use CC.
18051LTCC=${LTCC-"$CC"}
18052
18053# Allow CC to be a program name with arguments.
18054compiler=$CC
18055
18056
18057# Allow CC to be a program name with arguments.
18058lt_save_CC="$CC"
18059CC=${RC-"windres"}
18060compiler=$CC
18061compiler_RC=$CC
18062lt_cv_prog_compiler_c_o_RC=yes
18063
18064# The else clause should only fire when bootstrapping the
18065# libtool distribution, otherwise you forgot to ship ltmain.sh
18066# with your package, and you will get complaints that there are
18067# no rules to generate ltmain.sh.
18068if test -f "$ltmain"; then
18069 # See if we are running on zsh, and set the options which allow our commands through
18070 # without removal of \ escapes.
18071 if test -n "${ZSH_VERSION+set}" ; then
18072 setopt NO_GLOB_SUBST
18073 fi
18074 # Now quote all the things that may contain metacharacters while being
18075 # careful not to overquote the AC_SUBSTed values. We take copies of the
18076 # variables and quote the copies for generation of the libtool script.
18077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18080 deplibs_check_method reload_flag reload_cmds need_locks \
18081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18082 lt_cv_sys_global_symbol_to_c_name_address \
18083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18084 old_postinstall_cmds old_postuninstall_cmds \
18085 compiler_RC \
18086 CC_RC \
18087 LD_RC \
18088 lt_prog_compiler_wl_RC \
18089 lt_prog_compiler_pic_RC \
18090 lt_prog_compiler_static_RC \
18091 lt_prog_compiler_no_builtin_flag_RC \
18092 export_dynamic_flag_spec_RC \
18093 thread_safe_flag_spec_RC \
18094 whole_archive_flag_spec_RC \
18095 enable_shared_with_static_runtimes_RC \
18096 old_archive_cmds_RC \
18097 old_archive_from_new_cmds_RC \
18098 predep_objects_RC \
18099 postdep_objects_RC \
18100 predeps_RC \
18101 postdeps_RC \
18102 compiler_lib_search_path_RC \
18103 archive_cmds_RC \
18104 archive_expsym_cmds_RC \
18105 postinstall_cmds_RC \
18106 postuninstall_cmds_RC \
18107 old_archive_from_expsyms_cmds_RC \
18108 allow_undefined_flag_RC \
18109 no_undefined_flag_RC \
18110 export_symbols_cmds_RC \
18111 hardcode_libdir_flag_spec_RC \
18112 hardcode_libdir_flag_spec_ld_RC \
18113 hardcode_libdir_separator_RC \
18114 hardcode_automatic_RC \
18115 module_cmds_RC \
18116 module_expsym_cmds_RC \
18117 lt_cv_prog_compiler_c_o_RC \
18118 exclude_expsyms_RC \
18119 include_expsyms_RC; do
18120
18121 case $var in
18122 old_archive_cmds_RC | \
18123 old_archive_from_new_cmds_RC | \
18124 archive_cmds_RC | \
18125 archive_expsym_cmds_RC | \
18126 module_cmds_RC | \
18127 module_expsym_cmds_RC | \
18128 old_archive_from_expsyms_cmds_RC | \
18129 export_symbols_cmds_RC | \
18130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18131 postinstall_cmds | postuninstall_cmds | \
18132 old_postinstall_cmds | old_postuninstall_cmds | \
18133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18134 # Double-quote double-evaled strings.
18135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18136 ;;
18137 *)
18138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18139 ;;
18140 esac
18141 done
18142
18143 case $lt_echo in
18144 *'\$0 --fallback-echo"')
18145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18146 ;;
18147 esac
18148
18149cfgfile="$ofile"
18150
18151 cat <<__EOF__ >> "$cfgfile"
18152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18153
18154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18155
18156# Shell to use when invoking shell scripts.
18157SHELL=$lt_SHELL
18158
18159# Whether or not to build shared libraries.
18160build_libtool_libs=$enable_shared
18161
18162# Whether or not to build static libraries.
18163build_old_libs=$enable_static
18164
18165# Whether or not to add -lc for building shared libraries.
18166build_libtool_need_lc=$archive_cmds_need_lc_RC
18167
18168# Whether or not to disallow shared libs when runtime libs are static
18169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18170
18171# Whether or not to optimize for fast installation.
18172fast_install=$enable_fast_install
18173
18174# The host system.
18175host_alias=$host_alias
18176host=$host
18177
18178# An echo program that does not interpret backslashes.
18179echo=$lt_echo
18180
18181# The archiver.
18182AR=$lt_AR
18183AR_FLAGS=$lt_AR_FLAGS
18184
18185# A C compiler.
18186LTCC=$lt_LTCC
18187
18188# A language-specific compiler.
18189CC=$lt_compiler_RC
18190
18191# Is the compiler the GNU C compiler?
18192with_gcc=$GCC_RC
18193
18194# An ERE matcher.
18195EGREP=$lt_EGREP
18196
18197# The linker used to build libraries.
18198LD=$lt_LD_RC
18199
18200# Whether we need hard or soft links.
18201LN_S=$lt_LN_S
18202
18203# A BSD-compatible nm program.
18204NM=$lt_NM
18205
18206# A symbol stripping program
18207STRIP=$STRIP
18208
18209# Used to examine libraries when file_magic_cmd begins "file"
18210MAGIC_CMD=$MAGIC_CMD
18211
18212# Used on cygwin: DLL creation program.
18213DLLTOOL="$DLLTOOL"
18214
18215# Used on cygwin: object dumper.
18216OBJDUMP="$OBJDUMP"
18217
18218# Used on cygwin: assembler.
18219AS="$AS"
18220
18221# The name of the directory that contains temporary libtool files.
18222objdir=$objdir
18223
18224# How to create reloadable object files.
18225reload_flag=$lt_reload_flag
18226reload_cmds=$lt_reload_cmds
18227
18228# How to pass a linker flag through the compiler.
18229wl=$lt_lt_prog_compiler_wl_RC
18230
18231# Object file suffix (normally "o").
18232objext="$ac_objext"
18233
18234# Old archive suffix (normally "a").
18235libext="$libext"
18236
18237# Shared library suffix (normally ".so").
18238shrext='$shrext'
18239
18240# Executable file suffix (normally "").
18241exeext="$exeext"
18242
18243# Additional compiler flags for building library objects.
18244pic_flag=$lt_lt_prog_compiler_pic_RC
18245pic_mode=$pic_mode
18246
18247# What is the maximum length of a command?
18248max_cmd_len=$lt_cv_sys_max_cmd_len
18249
18250# Does compiler simultaneously support -c and -o options?
18251compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18252
18253# Must we lock files when doing compilation ?
18254need_locks=$lt_need_locks
18255
18256# Do we need the lib prefix for modules?
18257need_lib_prefix=$need_lib_prefix
18258
18259# Do we need a version for libraries?
18260need_version=$need_version
18261
18262# Whether dlopen is supported.
18263dlopen_support=$enable_dlopen
18264
18265# Whether dlopen of programs is supported.
18266dlopen_self=$enable_dlopen_self
18267
18268# Whether dlopen of statically linked programs is supported.
18269dlopen_self_static=$enable_dlopen_self_static
18270
18271# Compiler flag to prevent dynamic linking.
18272link_static_flag=$lt_lt_prog_compiler_static_RC
18273
18274# Compiler flag to turn off builtin functions.
18275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18276
18277# Compiler flag to allow reflexive dlopens.
18278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18279
18280# Compiler flag to generate shared objects directly from archives.
18281whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18282
18283# Compiler flag to generate thread-safe objects.
18284thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18285
18286# Library versioning type.
18287version_type=$version_type
18288
18289# Format of library name prefix.
18290libname_spec=$lt_libname_spec
18291
18292# List of archive names. First name is the real one, the rest are links.
18293# The last name is the one that the linker finds with -lNAME.
18294library_names_spec=$lt_library_names_spec
18295
18296# The coded name of the library, if different from the real name.
18297soname_spec=$lt_soname_spec
18298
18299# Commands used to build and install an old-style archive.
18300RANLIB=$lt_RANLIB
18301old_archive_cmds=$lt_old_archive_cmds_RC
18302old_postinstall_cmds=$lt_old_postinstall_cmds
18303old_postuninstall_cmds=$lt_old_postuninstall_cmds
18304
18305# Create an old-style archive from a shared archive.
18306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18307
18308# Create a temporary old-style archive to link instead of a shared archive.
18309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18310
18311# Commands used to build and install a shared archive.
18312archive_cmds=$lt_archive_cmds_RC
18313archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18314postinstall_cmds=$lt_postinstall_cmds
18315postuninstall_cmds=$lt_postuninstall_cmds
18316
18317# Commands used to build a loadable module (assumed same as above if empty)
18318module_cmds=$lt_module_cmds_RC
18319module_expsym_cmds=$lt_module_expsym_cmds_RC
18320
18321# Commands to strip libraries.
18322old_striplib=$lt_old_striplib
18323striplib=$lt_striplib
18324
18325# Dependencies to place before the objects being linked to create a
18326# shared library.
18327predep_objects=$lt_predep_objects_RC
18328
18329# Dependencies to place after the objects being linked to create a
18330# shared library.
18331postdep_objects=$lt_postdep_objects_RC
18332
18333# Dependencies to place before the objects being linked to create a
18334# shared library.
18335predeps=$lt_predeps_RC
18336
18337# Dependencies to place after the objects being linked to create a
18338# shared library.
18339postdeps=$lt_postdeps_RC
18340
18341# The library search path used internally by the compiler when linking
18342# a shared library.
18343compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18344
18345# Method to check whether dependent libraries are shared objects.
18346deplibs_check_method=$lt_deplibs_check_method
18347
18348# Command to use when deplibs_check_method == file_magic.
18349file_magic_cmd=$lt_file_magic_cmd
18350
18351# Flag that allows shared libraries with undefined symbols to be built.
18352allow_undefined_flag=$lt_allow_undefined_flag_RC
18353
18354# Flag that forces no undefined symbols.
18355no_undefined_flag=$lt_no_undefined_flag_RC
18356
18357# Commands used to finish a libtool library installation in a directory.
18358finish_cmds=$lt_finish_cmds
18359
18360# Same as above, but a single script fragment to be evaled but not shown.
18361finish_eval=$lt_finish_eval
18362
18363# Take the output of nm and produce a listing of raw symbols and C names.
18364global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18365
18366# Transform the output of nm in a proper C declaration
18367global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18368
18369# Transform the output of nm in a C name address pair
18370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18371
18372# This is the shared library runtime path variable.
18373runpath_var=$runpath_var
18374
18375# This is the shared library path variable.
18376shlibpath_var=$shlibpath_var
18377
18378# Is shlibpath searched before the hard-coded library search path?
18379shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18380
18381# How to hardcode a shared library path into an executable.
18382hardcode_action=$hardcode_action_RC
18383
18384# Whether we should hardcode library paths into libraries.
18385hardcode_into_libs=$hardcode_into_libs
18386
18387# Flag to hardcode \$libdir into a binary during linking.
18388# This must work even if \$libdir does not exist.
18389hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18390
18391# If ld is used when linking, flag to hardcode \$libdir into
18392# a binary during linking. This must work even if \$libdir does
18393# not exist.
18394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18395
18396# Whether we need a single -rpath flag with a separated argument.
18397hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18398
18399# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18400# resulting binary.
18401hardcode_direct=$hardcode_direct_RC
18402
18403# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18404# resulting binary.
18405hardcode_minus_L=$hardcode_minus_L_RC
18406
18407# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18408# the resulting binary.
18409hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18410
18411# Set to yes if building a shared library automatically hardcodes DIR into the library
18412# and all subsequent libraries and executables linked against it.
18413hardcode_automatic=$hardcode_automatic_RC
18414
18415# Variables whose values should be saved in libtool wrapper scripts and
18416# restored at relink time.
18417variables_saved_for_relink="$variables_saved_for_relink"
18418
18419# Whether libtool must link a program against all its dependency libraries.
18420link_all_deplibs=$link_all_deplibs_RC
18421
18422# Compile-time system search path for libraries
18423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18424
18425# Run-time system search path for libraries
18426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18427
18428# Fix the shell variable \$srcfile for the compiler.
18429fix_srcfile_path="$fix_srcfile_path_RC"
18430
18431# Set to yes if exported symbols are required.
18432always_export_symbols=$always_export_symbols_RC
18433
18434# The commands to list exported symbols.
18435export_symbols_cmds=$lt_export_symbols_cmds_RC
18436
18437# The commands to extract the exported symbol list from a shared archive.
18438extract_expsyms_cmds=$lt_extract_expsyms_cmds
18439
18440# Symbols that should not be listed in the preloaded symbols.
18441exclude_expsyms=$lt_exclude_expsyms_RC
18442
18443# Symbols that must always be exported.
18444include_expsyms=$lt_include_expsyms_RC
18445
18446# ### END LIBTOOL TAG CONFIG: $tagname
18447
18448__EOF__
18449
18450
18451else
18452 # If there is no Makefile yet, we rely on a make rule to execute
18453 # `config.status --recheck' to rerun these tests and create the
18454 # libtool script then.
18455 test -f Makefile && make "$ltmain"
18456fi
18457
18458
18459ac_ext=c
18460ac_cpp='$CPP $CPPFLAGS'
18461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463ac_compiler_gnu=$ac_cv_c_compiler_gnu
18464
18465CC="$lt_save_CC"
18466
18467 ;;
18468
18469 *)
18470 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18471echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18472 { (exit 1); exit 1; }; }
18473 ;;
18474 esac
18475
18476 # Append the new tag name to the list of available tags.
18477 if test -n "$tagname" ; then
18478 available_tags="$available_tags $tagname"
18479 fi
18480 fi
18481 done
18482 IFS="$lt_save_ifs"
18483
18484 # Now substitute the updated list of available tags.
18485 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18486 mv "${ofile}T" "$ofile"
18487 chmod +x "$ofile"
18488 else
18489 rm -f "${ofile}T"
18490 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18491echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18492 { (exit 1); exit 1; }; }
18493 fi
18494fi
John Criswell7a73b802003-06-30 21:59:07 +000018495
18496
18497
18498# This can be used to rebuild libtool when needed
18499LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18500
18501# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018502LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018503
18504# Prevent multiple expansion
18505
18506
18507
John Criswell47fdd832003-07-14 16:52:07 +000018508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
John Criswellde00db22003-08-25 16:49:54 +000018526# Extract the first word of "pwd", so it can be a program name with args.
18527set dummy pwd; ac_word=$2
18528echo "$as_me:$LINENO: checking for $ac_word" >&5
18529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18530if test "${ac_cv_path_RPWD+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18532else
18533 case $RPWD in
18534 [\\/]* | ?:[\\/]*)
18535 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18536 ;;
18537 *)
18538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539for as_dir in $PATH
18540do
18541 IFS=$as_save_IFS
18542 test -z "$as_dir" && as_dir=.
18543 for ac_exec_ext in '' $ac_executable_extensions; do
18544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18545 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18547 break 2
18548 fi
18549done
18550done
18551
John Criswell39827c82003-09-23 15:28:52 +000018552 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018553 ;;
18554esac
18555fi
18556RPWD=$ac_cv_path_RPWD
18557
18558if test -n "$RPWD"; then
18559 echo "$as_me:$LINENO: result: $RPWD" >&5
18560echo "${ECHO_T}$RPWD" >&6
18561else
18562 echo "$as_me:$LINENO: result: no" >&5
18563echo "${ECHO_T}no" >&6
18564fi
18565
John Criswell39827c82003-09-23 15:28:52 +000018566if test ${RPWD} = "false"
18567then
18568 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18569echo "$as_me: error: pwd required but not found" >&2;}
18570 { (exit 1); exit 1; }; }
18571fi
18572
John Criswell7a73b802003-06-30 21:59:07 +000018573# Extract the first word of "ar", so it can be a program name with args.
18574set dummy ar; ac_word=$2
18575echo "$as_me:$LINENO: checking for $ac_word" >&5
18576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18577if test "${ac_cv_path_AR+set}" = set; then
18578 echo $ECHO_N "(cached) $ECHO_C" >&6
18579else
18580 case $AR in
18581 [\\/]* | ?:[\\/]*)
18582 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18583 ;;
18584 *)
18585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18586for as_dir in $PATH
18587do
18588 IFS=$as_save_IFS
18589 test -z "$as_dir" && as_dir=.
18590 for ac_exec_ext in '' $ac_executable_extensions; do
18591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18592 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18594 break 2
18595 fi
18596done
18597done
18598
John Criswell39827c82003-09-23 15:28:52 +000018599 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018600 ;;
18601esac
18602fi
18603AR=$ac_cv_path_AR
18604
18605if test -n "$AR"; then
18606 echo "$as_me:$LINENO: result: $AR" >&5
18607echo "${ECHO_T}$AR" >&6
18608else
18609 echo "$as_me:$LINENO: result: no" >&5
18610echo "${ECHO_T}no" >&6
18611fi
18612
John Criswell39827c82003-09-23 15:28:52 +000018613if test ${AR} = "false"
18614then
18615 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18616echo "$as_me: error: ar required but not found" >&2;}
18617 { (exit 1); exit 1; }; }
18618fi
18619
John Criswell7a73b802003-06-30 21:59:07 +000018620# Extract the first word of "sed", so it can be a program name with args.
18621set dummy sed; ac_word=$2
18622echo "$as_me:$LINENO: checking for $ac_word" >&5
18623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18624if test "${ac_cv_path_SED+set}" = set; then
18625 echo $ECHO_N "(cached) $ECHO_C" >&6
18626else
18627 case $SED in
18628 [\\/]* | ?:[\\/]*)
18629 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18630 ;;
18631 *)
18632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18633for as_dir in $PATH
18634do
18635 IFS=$as_save_IFS
18636 test -z "$as_dir" && as_dir=.
18637 for ac_exec_ext in '' $ac_executable_extensions; do
18638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18639 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18641 break 2
18642 fi
18643done
18644done
18645
John Criswell39827c82003-09-23 15:28:52 +000018646 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018647 ;;
18648esac
18649fi
18650SED=$ac_cv_path_SED
18651
18652if test -n "$SED"; then
18653 echo "$as_me:$LINENO: result: $SED" >&5
18654echo "${ECHO_T}$SED" >&6
18655else
18656 echo "$as_me:$LINENO: result: no" >&5
18657echo "${ECHO_T}no" >&6
18658fi
18659
John Criswell39827c82003-09-23 15:28:52 +000018660if test ${SED} = "false"
18661then
18662 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18663echo "$as_me: error: sed required but not found" >&2;}
18664 { (exit 1); exit 1; }; }
18665fi
18666
John Criswell7a73b802003-06-30 21:59:07 +000018667# Extract the first word of "rm", so it can be a program name with args.
18668set dummy rm; ac_word=$2
18669echo "$as_me:$LINENO: checking for $ac_word" >&5
18670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18671if test "${ac_cv_path_RM+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18673else
18674 case $RM in
18675 [\\/]* | ?:[\\/]*)
18676 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18677 ;;
18678 *)
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680for as_dir in $PATH
18681do
18682 IFS=$as_save_IFS
18683 test -z "$as_dir" && as_dir=.
18684 for ac_exec_ext in '' $ac_executable_extensions; do
18685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18686 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18688 break 2
18689 fi
18690done
18691done
18692
John Criswell39827c82003-09-23 15:28:52 +000018693 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018694 ;;
18695esac
18696fi
18697RM=$ac_cv_path_RM
18698
18699if test -n "$RM"; then
18700 echo "$as_me:$LINENO: result: $RM" >&5
18701echo "${ECHO_T}$RM" >&6
18702else
18703 echo "$as_me:$LINENO: result: no" >&5
18704echo "${ECHO_T}no" >&6
18705fi
18706
John Criswell39827c82003-09-23 15:28:52 +000018707if test ${RM} = "false"
18708then
18709 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18710echo "$as_me: error: rm required but not found" >&2;}
18711 { (exit 1); exit 1; }; }
18712fi
18713
John Criswell7a73b802003-06-30 21:59:07 +000018714# Extract the first word of "echo", so it can be a program name with args.
18715set dummy echo; ac_word=$2
18716echo "$as_me:$LINENO: checking for $ac_word" >&5
18717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18718if test "${ac_cv_path_ECHO+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 case $ECHO in
18722 [\\/]* | ?:[\\/]*)
18723 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18724 ;;
18725 *)
18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18727for as_dir in $PATH
18728do
18729 IFS=$as_save_IFS
18730 test -z "$as_dir" && as_dir=.
18731 for ac_exec_ext in '' $ac_executable_extensions; do
18732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18733 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18735 break 2
18736 fi
18737done
18738done
18739
John Criswell39827c82003-09-23 15:28:52 +000018740 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018741 ;;
18742esac
18743fi
18744ECHO=$ac_cv_path_ECHO
18745
18746if test -n "$ECHO"; then
18747 echo "$as_me:$LINENO: result: $ECHO" >&5
18748echo "${ECHO_T}$ECHO" >&6
18749else
18750 echo "$as_me:$LINENO: result: no" >&5
18751echo "${ECHO_T}no" >&6
18752fi
18753
John Criswell39827c82003-09-23 15:28:52 +000018754if test ${ECHO} = "false"
18755then
18756 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18757echo "$as_me: error: echo required but not found" >&2;}
18758 { (exit 1); exit 1; }; }
18759fi
18760
John Criswell7a73b802003-06-30 21:59:07 +000018761# Extract the first word of "mkdir", so it can be a program name with args.
18762set dummy mkdir; ac_word=$2
18763echo "$as_me:$LINENO: checking for $ac_word" >&5
18764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18765if test "${ac_cv_path_MKDIR+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768 case $MKDIR in
18769 [\\/]* | ?:[\\/]*)
18770 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18771 ;;
18772 *)
18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18774for as_dir in $PATH
18775do
18776 IFS=$as_save_IFS
18777 test -z "$as_dir" && as_dir=.
18778 for ac_exec_ext in '' $ac_executable_extensions; do
18779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18780 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18782 break 2
18783 fi
18784done
18785done
18786
John Criswell39827c82003-09-23 15:28:52 +000018787 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018788 ;;
18789esac
18790fi
18791MKDIR=$ac_cv_path_MKDIR
18792
18793if test -n "$MKDIR"; then
18794 echo "$as_me:$LINENO: result: $MKDIR" >&5
18795echo "${ECHO_T}$MKDIR" >&6
18796else
18797 echo "$as_me:$LINENO: result: no" >&5
18798echo "${ECHO_T}no" >&6
18799fi
18800
John Criswell39827c82003-09-23 15:28:52 +000018801if test ${MKDIR} = "false"
18802then
18803 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18804echo "$as_me: error: mkdir required but not found" >&2;}
18805 { (exit 1); exit 1; }; }
18806fi
18807
John Criswell7a73b802003-06-30 21:59:07 +000018808# Extract the first word of "date", so it can be a program name with args.
18809set dummy date; ac_word=$2
18810echo "$as_me:$LINENO: checking for $ac_word" >&5
18811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18812if test "${ac_cv_path_DATE+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18814else
18815 case $DATE in
18816 [\\/]* | ?:[\\/]*)
18817 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18818 ;;
18819 *)
18820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18821for as_dir in $PATH
18822do
18823 IFS=$as_save_IFS
18824 test -z "$as_dir" && as_dir=.
18825 for ac_exec_ext in '' $ac_executable_extensions; do
18826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18827 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18829 break 2
18830 fi
18831done
18832done
18833
John Criswell39827c82003-09-23 15:28:52 +000018834 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018835 ;;
18836esac
18837fi
18838DATE=$ac_cv_path_DATE
18839
18840if test -n "$DATE"; then
18841 echo "$as_me:$LINENO: result: $DATE" >&5
18842echo "${ECHO_T}$DATE" >&6
18843else
18844 echo "$as_me:$LINENO: result: no" >&5
18845echo "${ECHO_T}no" >&6
18846fi
18847
John Criswell39827c82003-09-23 15:28:52 +000018848if test ${DATE} = "false"
18849then
18850 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18851echo "$as_me: error: date required but not found" >&2;}
18852 { (exit 1); exit 1; }; }
18853fi
18854
John Criswell7a73b802003-06-30 21:59:07 +000018855# Extract the first word of "mv", so it can be a program name with args.
18856set dummy mv; ac_word=$2
18857echo "$as_me:$LINENO: checking for $ac_word" >&5
18858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18859if test "${ac_cv_path_MV+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18861else
18862 case $MV in
18863 [\\/]* | ?:[\\/]*)
18864 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18865 ;;
18866 *)
18867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18868for as_dir in $PATH
18869do
18870 IFS=$as_save_IFS
18871 test -z "$as_dir" && as_dir=.
18872 for ac_exec_ext in '' $ac_executable_extensions; do
18873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18874 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18876 break 2
18877 fi
18878done
18879done
18880
John Criswell39827c82003-09-23 15:28:52 +000018881 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018882 ;;
18883esac
18884fi
18885MV=$ac_cv_path_MV
18886
18887if test -n "$MV"; then
18888 echo "$as_me:$LINENO: result: $MV" >&5
18889echo "${ECHO_T}$MV" >&6
18890else
18891 echo "$as_me:$LINENO: result: no" >&5
18892echo "${ECHO_T}no" >&6
18893fi
18894
John Criswell39827c82003-09-23 15:28:52 +000018895if test ${MV} = "false"
18896then
18897 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18898echo "$as_me: error: mv required but not found" >&2;}
18899 { (exit 1); exit 1; }; }
18900fi
18901
John Criswell7a73b802003-06-30 21:59:07 +000018902# Extract the first word of "dot", so it can be a program name with args.
18903set dummy dot; ac_word=$2
18904echo "$as_me:$LINENO: checking for $ac_word" >&5
18905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18906if test "${ac_cv_path_DOT+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 case $DOT in
18910 [\\/]* | ?:[\\/]*)
18911 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18912 ;;
18913 *)
18914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18915for as_dir in $PATH
18916do
18917 IFS=$as_save_IFS
18918 test -z "$as_dir" && as_dir=.
18919 for ac_exec_ext in '' $ac_executable_extensions; do
18920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18921 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18923 break 2
18924 fi
18925done
18926done
18927
John Criswell39827c82003-09-23 15:28:52 +000018928 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018929 ;;
18930esac
18931fi
18932DOT=$ac_cv_path_DOT
18933
18934if test -n "$DOT"; then
18935 echo "$as_me:$LINENO: result: $DOT" >&5
18936echo "${ECHO_T}$DOT" >&6
18937else
18938 echo "$as_me:$LINENO: result: no" >&5
18939echo "${ECHO_T}no" >&6
18940fi
18941
John Criswell39827c82003-09-23 15:28:52 +000018942
John Criswell7a73b802003-06-30 21:59:07 +000018943# Extract the first word of "etags", so it can be a program name with args.
18944set dummy etags; ac_word=$2
18945echo "$as_me:$LINENO: checking for $ac_word" >&5
18946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18947if test "${ac_cv_path_ETAGS+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950 case $ETAGS in
18951 [\\/]* | ?:[\\/]*)
18952 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18953 ;;
18954 *)
18955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18956for as_dir in $PATH
18957do
18958 IFS=$as_save_IFS
18959 test -z "$as_dir" && as_dir=.
18960 for ac_exec_ext in '' $ac_executable_extensions; do
18961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18962 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18964 break 2
18965 fi
18966done
18967done
18968
John Criswell39827c82003-09-23 15:28:52 +000018969 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018970 ;;
18971esac
18972fi
18973ETAGS=$ac_cv_path_ETAGS
18974
18975if test -n "$ETAGS"; then
18976 echo "$as_me:$LINENO: result: $ETAGS" >&5
18977echo "${ECHO_T}$ETAGS" >&6
18978else
18979 echo "$as_me:$LINENO: result: no" >&5
18980echo "${ECHO_T}no" >&6
18981fi
18982
John Criswell39827c82003-09-23 15:28:52 +000018983
John Criswellde00db22003-08-25 16:49:54 +000018984# Extract the first word of "python", so it can be a program name with args.
18985set dummy python; ac_word=$2
18986echo "$as_me:$LINENO: checking for $ac_word" >&5
18987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18988if test "${ac_cv_path_PYTHON+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 case $PYTHON in
18992 [\\/]* | ?:[\\/]*)
18993 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18994 ;;
18995 *)
18996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997for as_dir in $PATH
18998do
18999 IFS=$as_save_IFS
19000 test -z "$as_dir" && as_dir=.
19001 for ac_exec_ext in '' $ac_executable_extensions; do
19002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19003 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19005 break 2
19006 fi
19007done
19008done
19009
John Criswell39827c82003-09-23 15:28:52 +000019010 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000019011 ;;
19012esac
19013fi
19014PYTHON=$ac_cv_path_PYTHON
19015
19016if test -n "$PYTHON"; then
19017 echo "$as_me:$LINENO: result: $PYTHON" >&5
19018echo "${ECHO_T}$PYTHON" >&6
19019else
19020 echo "$as_me:$LINENO: result: no" >&5
19021echo "${ECHO_T}no" >&6
19022fi
19023
John Criswell39827c82003-09-23 15:28:52 +000019024if test ${PYTHON} = "false"
19025then
John Criswell61095982003-09-23 20:46:32 +000019026 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19027echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019028fi
19029
John Criswellde00db22003-08-25 16:49:54 +000019030# Extract the first word of "qmtest", so it can be a program name with args.
19031set dummy qmtest; ac_word=$2
19032echo "$as_me:$LINENO: checking for $ac_word" >&5
19033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19034if test "${ac_cv_path_QMTEST+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036else
19037 case $QMTEST in
19038 [\\/]* | ?:[\\/]*)
19039 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19040 ;;
19041 *)
19042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19043for as_dir in $PATH
19044do
19045 IFS=$as_save_IFS
19046 test -z "$as_dir" && as_dir=.
19047 for ac_exec_ext in '' $ac_executable_extensions; do
19048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19049 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19051 break 2
19052 fi
19053done
19054done
19055
John Criswell39827c82003-09-23 15:28:52 +000019056 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019057 ;;
19058esac
19059fi
19060QMTEST=$ac_cv_path_QMTEST
19061
19062if test -n "$QMTEST"; then
19063 echo "$as_me:$LINENO: result: $QMTEST" >&5
19064echo "${ECHO_T}$QMTEST" >&6
19065else
19066 echo "$as_me:$LINENO: result: no" >&5
19067echo "${ECHO_T}no" >&6
19068fi
19069
John Criswell39827c82003-09-23 15:28:52 +000019070if test ${QMTEST} = "false"
19071then
John Criswell61095982003-09-23 20:46:32 +000019072 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19073echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019074fi
John Criswellde00db22003-08-25 16:49:54 +000019075
19076pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19077pymajor=`echo $pyversion | cut -d. -f1`
19078pyminor=`echo $pyversion | cut -d. -f2`
19079
19080if test "$pymajor" -ge "2"
19081then
19082 if test "$pymajor" -eq "2"
19083 then
19084 if test "$pyminor" -lt "2"
19085 then
Brian Gaekef3b24102003-11-16 18:38:14 +000019086 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19087echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019088 fi
19089 fi
19090else
Brian Gaekef3b24102003-11-16 18:38:14 +000019091 { echo "$as_me:$LINENO: WARNING: Python 2.2 or greater required for qmtest" >&5
19092echo "$as_me: WARNING: Python 2.2 or greater required for qmtest" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019093fi
John Criswell7a73b802003-06-30 21:59:07 +000019094
19095
19096
19097
19098
19099echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19100echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19101if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19102 echo $ECHO_N "(cached) $ECHO_C" >&6
19103else
19104 ac_check_lib_save_LIBS=$LIBS
19105LIBS="-lelf $LIBS"
19106cat >conftest.$ac_ext <<_ACEOF
19107#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019113
19114/* Override any gcc2 internal prototype to avoid an error. */
19115#ifdef __cplusplus
19116extern "C"
19117#endif
19118/* We use char because int might match the return type of a gcc2
19119 builtin and then its argument prototype would still apply. */
19120char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019121int
19122main ()
19123{
19124elf_begin ();
19125 ;
19126 return 0;
19127}
19128_ACEOF
19129rm -f conftest.$ac_objext conftest$ac_exeext
19130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19131 (eval $ac_link) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -s conftest$ac_exeext'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_lib_elf_elf_begin=yes
19142else
19143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019144sed 's/^/| /' conftest.$ac_ext >&5
19145
John Criswell7a73b802003-06-30 21:59:07 +000019146ac_cv_lib_elf_elf_begin=no
19147fi
19148rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19149LIBS=$ac_check_lib_save_LIBS
19150fi
19151echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19152echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19153if test $ac_cv_lib_elf_elf_begin = yes; then
19154 cat >>confdefs.h <<_ACEOF
19155#define HAVE_LIBELF 1
19156_ACEOF
19157
19158 LIBS="-lelf $LIBS"
19159
19160fi
19161
19162
19163echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19164echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19165if test "${ac_cv_search_dlopen+set}" = set; then
19166 echo $ECHO_N "(cached) $ECHO_C" >&6
19167else
19168 ac_func_search_save_LIBS=$LIBS
19169ac_cv_search_dlopen=no
19170cat >conftest.$ac_ext <<_ACEOF
19171#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019177
19178/* Override any gcc2 internal prototype to avoid an error. */
19179#ifdef __cplusplus
19180extern "C"
19181#endif
19182/* We use char because int might match the return type of a gcc2
19183 builtin and then its argument prototype would still apply. */
19184char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019185int
19186main ()
19187{
19188dlopen ();
19189 ;
19190 return 0;
19191}
19192_ACEOF
19193rm -f conftest.$ac_objext conftest$ac_exeext
19194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_search_dlopen="none required"
19206else
19207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019208sed 's/^/| /' conftest.$ac_ext >&5
19209
John Criswell7a73b802003-06-30 21:59:07 +000019210fi
19211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212if test "$ac_cv_search_dlopen" = no; then
19213 for ac_lib in dl; do
19214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19215 cat >conftest.$ac_ext <<_ACEOF
19216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019217/* confdefs.h. */
19218_ACEOF
19219cat confdefs.h >>conftest.$ac_ext
19220cat >>conftest.$ac_ext <<_ACEOF
19221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019222
19223/* Override any gcc2 internal prototype to avoid an error. */
19224#ifdef __cplusplus
19225extern "C"
19226#endif
19227/* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19229char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019230int
19231main ()
19232{
19233dlopen ();
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext conftest$ac_exeext
19239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -s conftest$ac_exeext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_cv_search_dlopen="-l$ac_lib"
19251break
19252else
19253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019254sed 's/^/| /' conftest.$ac_ext >&5
19255
John Criswell7a73b802003-06-30 21:59:07 +000019256fi
19257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19258 done
19259fi
19260LIBS=$ac_func_search_save_LIBS
19261fi
19262echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19263echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19264if test "$ac_cv_search_dlopen" != no; then
19265 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019266
19267cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019268#define HAVE_DLOPEN 1
19269_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019270
19271else
Brian Gaekec45be042003-10-07 06:01:34 +000019272 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19273echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019274fi
19275
19276
19277echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19278echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19279if test "${ac_cv_search_mallinfo+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281else
19282 ac_func_search_save_LIBS=$LIBS
19283ac_cv_search_mallinfo=no
19284cat >conftest.$ac_ext <<_ACEOF
19285#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019286/* confdefs.h. */
19287_ACEOF
19288cat confdefs.h >>conftest.$ac_ext
19289cat >>conftest.$ac_ext <<_ACEOF
19290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019291
19292/* Override any gcc2 internal prototype to avoid an error. */
19293#ifdef __cplusplus
19294extern "C"
19295#endif
19296/* We use char because int might match the return type of a gcc2
19297 builtin and then its argument prototype would still apply. */
19298char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019299int
19300main ()
19301{
19302mallinfo ();
19303 ;
19304 return 0;
19305}
19306_ACEOF
19307rm -f conftest.$ac_objext conftest$ac_exeext
19308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309 (eval $ac_link) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -s conftest$ac_exeext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 ac_cv_search_mallinfo="none required"
19320else
19321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019322sed 's/^/| /' conftest.$ac_ext >&5
19323
John Criswell7a73b802003-06-30 21:59:07 +000019324fi
19325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19326if test "$ac_cv_search_mallinfo" = no; then
19327 for ac_lib in malloc; do
19328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019336
19337/* Override any gcc2 internal prototype to avoid an error. */
19338#ifdef __cplusplus
19339extern "C"
19340#endif
19341/* We use char because int might match the return type of a gcc2
19342 builtin and then its argument prototype would still apply. */
19343char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019344int
19345main ()
19346{
19347mallinfo ();
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext conftest$ac_exeext
19353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19354 (eval $ac_link) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
19358 { ac_try='test -s conftest$ac_exeext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 ac_cv_search_mallinfo="-l$ac_lib"
19365break
19366else
19367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019368sed 's/^/| /' conftest.$ac_ext >&5
19369
John Criswell7a73b802003-06-30 21:59:07 +000019370fi
19371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19372 done
19373fi
19374LIBS=$ac_func_search_save_LIBS
19375fi
19376echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19377echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19378if test "$ac_cv_search_mallinfo" != no; then
19379 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019380
19381cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019382#define HAVE_MALLINFO 1
19383_ACEOF
19384
19385fi
19386
19387
19388
19389echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19390echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19391if test "${ac_cv_header_stdc+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393else
19394 cat >conftest.$ac_ext <<_ACEOF
19395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019401#include <stdlib.h>
19402#include <stdarg.h>
19403#include <string.h>
19404#include <float.h>
19405
John Criswell0c38eaf2003-09-10 15:17:25 +000019406int
19407main ()
19408{
19409
19410 ;
19411 return 0;
19412}
John Criswell7a73b802003-06-30 21:59:07 +000019413_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019414rm -f conftest.$ac_objext
19415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19416 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019417 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019419 (exit $ac_status); } &&
19420 { ac_try='test -s conftest.$ac_objext'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019426 ac_cv_header_stdc=yes
19427else
19428 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019432fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019433rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019434
19435if test $ac_cv_header_stdc = yes; then
19436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19437 cat >conftest.$ac_ext <<_ACEOF
19438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019439/* confdefs.h. */
19440_ACEOF
19441cat confdefs.h >>conftest.$ac_ext
19442cat >>conftest.$ac_ext <<_ACEOF
19443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019444#include <string.h>
19445
19446_ACEOF
19447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019448 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019449 :
19450else
19451 ac_cv_header_stdc=no
19452fi
19453rm -f conftest*
19454
19455fi
19456
19457if test $ac_cv_header_stdc = yes; then
19458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19459 cat >conftest.$ac_ext <<_ACEOF
19460#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019466#include <stdlib.h>
19467
19468_ACEOF
19469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019470 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019471 :
19472else
19473 ac_cv_header_stdc=no
19474fi
19475rm -f conftest*
19476
19477fi
19478
19479if test $ac_cv_header_stdc = yes; then
19480 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19481 if test "$cross_compiling" = yes; then
19482 :
19483else
19484 cat >conftest.$ac_ext <<_ACEOF
19485#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019486/* confdefs.h. */
19487_ACEOF
19488cat confdefs.h >>conftest.$ac_ext
19489cat >>conftest.$ac_ext <<_ACEOF
19490/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019491#include <ctype.h>
19492#if ((' ' & 0x0FF) == 0x020)
19493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19495#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019496# define ISLOWER(c) \
19497 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019498 || ('j' <= (c) && (c) <= 'r') \
19499 || ('s' <= (c) && (c) <= 'z'))
19500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19501#endif
19502
19503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19504int
19505main ()
19506{
19507 int i;
19508 for (i = 0; i < 256; i++)
19509 if (XOR (islower (i), ISLOWER (i))
19510 || toupper (i) != TOUPPER (i))
19511 exit(2);
19512 exit (0);
19513}
19514_ACEOF
19515rm -f conftest$ac_exeext
19516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19517 (eval $ac_link) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 :
19527else
19528 echo "$as_me: program exited with status $ac_status" >&5
19529echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019530sed 's/^/| /' conftest.$ac_ext >&5
19531
John Criswell7a73b802003-06-30 21:59:07 +000019532( exit $ac_status )
19533ac_cv_header_stdc=no
19534fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019535rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019536fi
19537fi
19538fi
19539echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19540echo "${ECHO_T}$ac_cv_header_stdc" >&6
19541if test $ac_cv_header_stdc = yes; then
19542
19543cat >>confdefs.h <<\_ACEOF
19544#define STDC_HEADERS 1
19545_ACEOF
19546
19547fi
19548
19549echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19550echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19551if test "${ac_cv_header_sys_wait_h+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19553else
19554 cat >conftest.$ac_ext <<_ACEOF
19555#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019561#include <sys/types.h>
19562#include <sys/wait.h>
19563#ifndef WEXITSTATUS
19564# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19565#endif
19566#ifndef WIFEXITED
19567# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19568#endif
19569
John Criswell7a73b802003-06-30 21:59:07 +000019570int
19571main ()
19572{
19573 int s;
19574 wait (&s);
19575 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19576 ;
19577 return 0;
19578}
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_header_sys_wait_h=yes
19593else
19594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019595sed 's/^/| /' conftest.$ac_ext >&5
19596
John Criswell7a73b802003-06-30 21:59:07 +000019597ac_cv_header_sys_wait_h=no
19598fi
19599rm -f conftest.$ac_objext conftest.$ac_ext
19600fi
19601echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19602echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19603if test $ac_cv_header_sys_wait_h = yes; then
19604
19605cat >>confdefs.h <<\_ACEOF
19606#define HAVE_SYS_WAIT_H 1
19607_ACEOF
19608
19609fi
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19621do
19622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19623if eval "test \"\${$as_ac_Header+set}\" = set"; then
19624 echo "$as_me:$LINENO: checking for $ac_header" >&5
19625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19626if eval "test \"\${$as_ac_Header+set}\" = set"; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628fi
19629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19631else
19632 # Is the header compilable?
19633echo "$as_me:$LINENO: checking $ac_header usability" >&5
19634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19635cat >conftest.$ac_ext <<_ACEOF
19636#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019637/* confdefs.h. */
19638_ACEOF
19639cat confdefs.h >>conftest.$ac_ext
19640cat >>conftest.$ac_ext <<_ACEOF
19641/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019642$ac_includes_default
19643#include <$ac_header>
19644_ACEOF
19645rm -f conftest.$ac_objext
19646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
19651 { ac_try='test -s conftest.$ac_objext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_header_compiler=yes
19658else
19659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019660sed 's/^/| /' conftest.$ac_ext >&5
19661
John Criswell7a73b802003-06-30 21:59:07 +000019662ac_header_compiler=no
19663fi
19664rm -f conftest.$ac_objext conftest.$ac_ext
19665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19666echo "${ECHO_T}$ac_header_compiler" >&6
19667
19668# Is the header present?
19669echo "$as_me:$LINENO: checking $ac_header presence" >&5
19670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19671cat >conftest.$ac_ext <<_ACEOF
19672#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019678#include <$ac_header>
19679_ACEOF
19680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19682 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019683 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } >/dev/null; then
19688 if test -s conftest.err; then
19689 ac_cpp_err=$ac_c_preproc_warn_flag
19690 else
19691 ac_cpp_err=
19692 fi
19693else
19694 ac_cpp_err=yes
19695fi
19696if test -z "$ac_cpp_err"; then
19697 ac_header_preproc=yes
19698else
19699 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019700sed 's/^/| /' conftest.$ac_ext >&5
19701
John Criswell7a73b802003-06-30 21:59:07 +000019702 ac_header_preproc=no
19703fi
19704rm -f conftest.err conftest.$ac_ext
19705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19706echo "${ECHO_T}$ac_header_preproc" >&6
19707
19708# So? What about this header?
19709case $ac_header_compiler:$ac_header_preproc in
19710 yes:no )
19711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19715 (
19716 cat <<\_ASBOX
19717## ------------------------------------ ##
19718## Report this to bug-autoconf@gnu.org. ##
19719## ------------------------------------ ##
19720_ASBOX
19721 ) |
19722 sed "s/^/$as_me: WARNING: /" >&2
19723 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019724 no:yes )
19725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19731 (
19732 cat <<\_ASBOX
19733## ------------------------------------ ##
19734## Report this to bug-autoconf@gnu.org. ##
19735## ------------------------------------ ##
19736_ASBOX
19737 ) |
19738 sed "s/^/$as_me: WARNING: /" >&2
19739 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019740esac
19741echo "$as_me:$LINENO: checking for $ac_header" >&5
19742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19743if eval "test \"\${$as_ac_Header+set}\" = set"; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746 eval "$as_ac_Header=$ac_header_preproc"
19747fi
19748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19750
19751fi
19752if test `eval echo '${'$as_ac_Header'}'` = yes; then
19753 cat >>confdefs.h <<_ACEOF
19754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19755_ACEOF
19756
19757fi
19758
19759done
19760
19761
19762
19763
19764
John Criswelle8a63eb2003-10-23 19:16:12 +000019765for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019766do
19767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19768if eval "test \"\${$as_ac_Header+set}\" = set"; then
19769 echo "$as_me:$LINENO: checking for $ac_header" >&5
19770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19771if eval "test \"\${$as_ac_Header+set}\" = set"; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773fi
19774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19776else
19777 # Is the header compilable?
19778echo "$as_me:$LINENO: checking $ac_header usability" >&5
19779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19780cat >conftest.$ac_ext <<_ACEOF
19781#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019787$ac_includes_default
19788#include <$ac_header>
19789_ACEOF
19790rm -f conftest.$ac_objext
19791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792 (eval $ac_compile) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19799 ac_status=$?
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_header_compiler=yes
19803else
19804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019805sed 's/^/| /' conftest.$ac_ext >&5
19806
John Criswell7a73b802003-06-30 21:59:07 +000019807ac_header_compiler=no
19808fi
19809rm -f conftest.$ac_objext conftest.$ac_ext
19810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19811echo "${ECHO_T}$ac_header_compiler" >&6
19812
19813# Is the header present?
19814echo "$as_me:$LINENO: checking $ac_header presence" >&5
19815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19816cat >conftest.$ac_ext <<_ACEOF
19817#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019823#include <$ac_header>
19824_ACEOF
19825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19827 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019828 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } >/dev/null; then
19833 if test -s conftest.err; then
19834 ac_cpp_err=$ac_c_preproc_warn_flag
19835 else
19836 ac_cpp_err=
19837 fi
19838else
19839 ac_cpp_err=yes
19840fi
19841if test -z "$ac_cpp_err"; then
19842 ac_header_preproc=yes
19843else
19844 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019845sed 's/^/| /' conftest.$ac_ext >&5
19846
John Criswell7a73b802003-06-30 21:59:07 +000019847 ac_header_preproc=no
19848fi
19849rm -f conftest.err conftest.$ac_ext
19850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19851echo "${ECHO_T}$ac_header_preproc" >&6
19852
19853# So? What about this header?
19854case $ac_header_compiler:$ac_header_preproc in
19855 yes:no )
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19860 (
19861 cat <<\_ASBOX
19862## ------------------------------------ ##
19863## Report this to bug-autoconf@gnu.org. ##
19864## ------------------------------------ ##
19865_ASBOX
19866 ) |
19867 sed "s/^/$as_me: WARNING: /" >&2
19868 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019869 no:yes )
19870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19876 (
19877 cat <<\_ASBOX
19878## ------------------------------------ ##
19879## Report this to bug-autoconf@gnu.org. ##
19880## ------------------------------------ ##
19881_ASBOX
19882 ) |
19883 sed "s/^/$as_me: WARNING: /" >&2
19884 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019885esac
19886echo "$as_me:$LINENO: checking for $ac_header" >&5
19887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19888if eval "test \"\${$as_ac_Header+set}\" = set"; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19890else
19891 eval "$as_ac_Header=$ac_header_preproc"
19892fi
19893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19895
19896fi
19897if test `eval echo '${'$as_ac_Header'}'` = yes; then
19898 cat >>confdefs.h <<_ACEOF
19899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19900_ACEOF
19901
19902fi
19903
19904done
19905
19906
19907
19908
19909for ac_header in dlfcn.h link.h
19910do
19911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo "$as_me:$LINENO: checking for $ac_header" >&5
19914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19915if eval "test \"\${$as_ac_Header+set}\" = set"; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917fi
19918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19920else
19921 # Is the header compilable?
19922echo "$as_me:$LINENO: checking $ac_header usability" >&5
19923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19924cat >conftest.$ac_ext <<_ACEOF
19925#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019931$ac_includes_default
19932#include <$ac_header>
19933_ACEOF
19934rm -f conftest.$ac_objext
19935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19936 (eval $ac_compile) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
19940 { ac_try='test -s conftest.$ac_objext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_header_compiler=yes
19947else
19948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019949sed 's/^/| /' conftest.$ac_ext >&5
19950
John Criswell7a73b802003-06-30 21:59:07 +000019951ac_header_compiler=no
19952fi
19953rm -f conftest.$ac_objext conftest.$ac_ext
19954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955echo "${ECHO_T}$ac_header_compiler" >&6
19956
19957# Is the header present?
19958echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19960cat >conftest.$ac_ext <<_ACEOF
19961#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019962/* confdefs.h. */
19963_ACEOF
19964cat confdefs.h >>conftest.$ac_ext
19965cat >>conftest.$ac_ext <<_ACEOF
19966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019967#include <$ac_header>
19968_ACEOF
19969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19971 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019972 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } >/dev/null; then
19977 if test -s conftest.err; then
19978 ac_cpp_err=$ac_c_preproc_warn_flag
19979 else
19980 ac_cpp_err=
19981 fi
19982else
19983 ac_cpp_err=yes
19984fi
19985if test -z "$ac_cpp_err"; then
19986 ac_header_preproc=yes
19987else
19988 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019989sed 's/^/| /' conftest.$ac_ext >&5
19990
John Criswell7a73b802003-06-30 21:59:07 +000019991 ac_header_preproc=no
19992fi
19993rm -f conftest.err conftest.$ac_ext
19994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19995echo "${ECHO_T}$ac_header_preproc" >&6
19996
19997# So? What about this header?
19998case $ac_header_compiler:$ac_header_preproc in
19999 yes:no )
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20004 (
20005 cat <<\_ASBOX
20006## ------------------------------------ ##
20007## Report this to bug-autoconf@gnu.org. ##
20008## ------------------------------------ ##
20009_ASBOX
20010 ) |
20011 sed "s/^/$as_me: WARNING: /" >&2
20012 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020013 no:yes )
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20020 (
20021 cat <<\_ASBOX
20022## ------------------------------------ ##
20023## Report this to bug-autoconf@gnu.org. ##
20024## ------------------------------------ ##
20025_ASBOX
20026 ) |
20027 sed "s/^/$as_me: WARNING: /" >&2
20028 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020029esac
20030echo "$as_me:$LINENO: checking for $ac_header" >&5
20031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20032if eval "test \"\${$as_ac_Header+set}\" = set"; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034else
20035 eval "$as_ac_Header=$ac_header_preproc"
20036fi
20037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20039
20040fi
20041if test `eval echo '${'$as_ac_Header'}'` = yes; then
20042 cat >>confdefs.h <<_ACEOF
20043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20044_ACEOF
20045
20046fi
20047
20048done
20049
20050
20051
John Criswell7a73b802003-06-30 21:59:07 +000020052echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20053echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20054if test "${ac_cv_c_const+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 cat >conftest.$ac_ext <<_ACEOF
20058#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020059/* confdefs.h. */
20060_ACEOF
20061cat confdefs.h >>conftest.$ac_ext
20062cat >>conftest.$ac_ext <<_ACEOF
20063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020064
John Criswell7a73b802003-06-30 21:59:07 +000020065int
20066main ()
20067{
20068/* FIXME: Include the comments suggested by Paul. */
20069#ifndef __cplusplus
20070 /* Ultrix mips cc rejects this. */
20071 typedef int charset[2];
20072 const charset x;
20073 /* SunOS 4.1.1 cc rejects this. */
20074 char const *const *ccp;
20075 char **p;
20076 /* NEC SVR4.0.2 mips cc rejects this. */
20077 struct point {int x, y;};
20078 static struct point const zero = {0,0};
20079 /* AIX XL C 1.02.0.0 rejects this.
20080 It does not let you subtract one const X* pointer from another in
20081 an arm of an if-expression whose if-part is not a constant
20082 expression */
20083 const char *g = "string";
20084 ccp = &g + (g ? g-g : 0);
20085 /* HPUX 7.0 cc rejects these. */
20086 ++ccp;
20087 p = (char**) ccp;
20088 ccp = (char const *const *) p;
20089 { /* SCO 3.2v4 cc rejects this. */
20090 char *t;
20091 char const *s = 0 ? (char *) 0 : (char const *) 0;
20092
20093 *t++ = 0;
20094 }
20095 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20096 int x[] = {25, 17};
20097 const int *foo = &x[0];
20098 ++foo;
20099 }
20100 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20101 typedef const int *iptr;
20102 iptr p = 0;
20103 ++p;
20104 }
20105 { /* AIX XL C 1.02.0.0 rejects this saying
20106 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20107 struct s { int j; const int *ap[3]; };
20108 struct s *b; b->j = 5;
20109 }
20110 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20111 const int foo = 10;
20112 }
20113#endif
20114
20115 ;
20116 return 0;
20117}
20118_ACEOF
20119rm -f conftest.$ac_objext
20120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121 (eval $ac_compile) 2>&5
20122 ac_status=$?
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -s conftest.$ac_objext'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20131 ac_cv_c_const=yes
20132else
20133 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020134sed 's/^/| /' conftest.$ac_ext >&5
20135
John Criswell7a73b802003-06-30 21:59:07 +000020136ac_cv_c_const=no
20137fi
20138rm -f conftest.$ac_objext conftest.$ac_ext
20139fi
20140echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20141echo "${ECHO_T}$ac_cv_c_const" >&6
20142if test $ac_cv_c_const = no; then
20143
20144cat >>confdefs.h <<\_ACEOF
20145#define const
20146_ACEOF
20147
20148fi
20149
20150echo "$as_me:$LINENO: checking for inline" >&5
20151echo $ECHO_N "checking for inline... $ECHO_C" >&6
20152if test "${ac_cv_c_inline+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20154else
20155 ac_cv_c_inline=no
20156for ac_kw in inline __inline__ __inline; do
20157 cat >conftest.$ac_ext <<_ACEOF
20158#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020164#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020165typedef int foo_t;
20166static $ac_kw foo_t static_foo () {return 0; }
20167$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020168#endif
20169
20170_ACEOF
20171rm -f conftest.$ac_objext
20172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20173 (eval $ac_compile) 2>&5
20174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_c_inline=$ac_kw; break
20184else
20185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020186sed 's/^/| /' conftest.$ac_ext >&5
20187
John Criswell7a73b802003-06-30 21:59:07 +000020188fi
20189rm -f conftest.$ac_objext conftest.$ac_ext
20190done
20191
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20194echo "${ECHO_T}$ac_cv_c_inline" >&6
20195case $ac_cv_c_inline in
20196 inline | yes) ;;
20197 no)
20198cat >>confdefs.h <<\_ACEOF
20199#define inline
20200_ACEOF
20201 ;;
20202 *) cat >>confdefs.h <<_ACEOF
20203#define inline $ac_cv_c_inline
20204_ACEOF
20205 ;;
20206esac
20207
20208
20209echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20210echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20211if test "${ac_cv_c_bigendian+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214 # See if sys/param.h defines the BYTE_ORDER macro.
20215cat >conftest.$ac_ext <<_ACEOF
20216#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020222#include <sys/types.h>
20223#include <sys/param.h>
20224
John Criswell7a73b802003-06-30 21:59:07 +000020225int
20226main ()
20227{
20228#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20229 bogus endian macros
20230#endif
20231
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236rm -f conftest.$ac_objext
20237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20238 (eval $ac_compile) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try='test -s conftest.$ac_objext'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 # It does; now see whether it defined to BIG_ENDIAN or not.
20249cat >conftest.$ac_ext <<_ACEOF
20250#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020251/* confdefs.h. */
20252_ACEOF
20253cat confdefs.h >>conftest.$ac_ext
20254cat >>conftest.$ac_ext <<_ACEOF
20255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020256#include <sys/types.h>
20257#include <sys/param.h>
20258
John Criswell7a73b802003-06-30 21:59:07 +000020259int
20260main ()
20261{
20262#if BYTE_ORDER != BIG_ENDIAN
20263 not big endian
20264#endif
20265
20266 ;
20267 return 0;
20268}
20269_ACEOF
20270rm -f conftest.$ac_objext
20271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_c_bigendian=yes
20283else
20284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020285sed 's/^/| /' conftest.$ac_ext >&5
20286
John Criswell7a73b802003-06-30 21:59:07 +000020287ac_cv_c_bigendian=no
20288fi
20289rm -f conftest.$ac_objext conftest.$ac_ext
20290else
20291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020292sed 's/^/| /' conftest.$ac_ext >&5
20293
John Criswell7a73b802003-06-30 21:59:07 +000020294# It does not; compile a test program.
20295if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020296 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020297 ac_cv_c_bigendian=unknown
20298 cat >conftest.$ac_ext <<_ACEOF
20299#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020305short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20306short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20307void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20308short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20309short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20310void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020311int
20312main ()
20313{
20314 _ascii (); _ebcdic ();
20315 ;
20316 return 0;
20317}
20318_ACEOF
20319rm -f conftest.$ac_objext
20320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20321 (eval $ac_compile) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } &&
20325 { ac_try='test -s conftest.$ac_objext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020331 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020332 ac_cv_c_bigendian=yes
20333fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020334if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020335 if test "$ac_cv_c_bigendian" = unknown; then
20336 ac_cv_c_bigendian=no
20337 else
20338 # finding both strings is unlikely to happen, but who knows?
20339 ac_cv_c_bigendian=unknown
20340 fi
20341fi
20342else
20343 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020344sed 's/^/| /' conftest.$ac_ext >&5
20345
John Criswell7a73b802003-06-30 21:59:07 +000020346fi
20347rm -f conftest.$ac_objext conftest.$ac_ext
20348else
20349 cat >conftest.$ac_ext <<_ACEOF
20350#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020356int
20357main ()
20358{
20359 /* Are we little or big endian? From Harbison&Steele. */
20360 union
20361 {
20362 long l;
20363 char c[sizeof (long)];
20364 } u;
20365 u.l = 1;
20366 exit (u.c[sizeof (long) - 1] == 1);
20367}
20368_ACEOF
20369rm -f conftest$ac_exeext
20370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371 (eval $ac_link) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376 (eval $ac_try) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); }; }; then
20380 ac_cv_c_bigendian=no
20381else
20382 echo "$as_me: program exited with status $ac_status" >&5
20383echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020384sed 's/^/| /' conftest.$ac_ext >&5
20385
John Criswell7a73b802003-06-30 21:59:07 +000020386( exit $ac_status )
20387ac_cv_c_bigendian=yes
20388fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020389rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020390fi
20391fi
20392rm -f conftest.$ac_objext conftest.$ac_ext
20393fi
20394echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20395echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20396case $ac_cv_c_bigendian in
20397 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020398
20399cat >>confdefs.h <<\_ACEOF
20400#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020401_ACEOF
20402 ;;
20403 no)
John Criswell5ab73462003-10-09 15:44:28 +000020404
20405cat >>confdefs.h <<\_ACEOF
20406#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020407_ACEOF
20408 ;;
20409 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020410 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020411presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020412echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020413presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20414 { (exit 1); exit 1; }; } ;;
20415esac
20416
20417
20418echo "$as_me:$LINENO: checking for pid_t" >&5
20419echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20420if test "${ac_cv_type_pid_t+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20422else
20423 cat >conftest.$ac_ext <<_ACEOF
20424#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020430$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020431int
20432main ()
20433{
20434if ((pid_t *) 0)
20435 return 0;
20436if (sizeof (pid_t))
20437 return 0;
20438 ;
20439 return 0;
20440}
20441_ACEOF
20442rm -f conftest.$ac_objext
20443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20444 (eval $ac_compile) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
20448 { ac_try='test -s conftest.$ac_objext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_type_pid_t=yes
20455else
20456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020457sed 's/^/| /' conftest.$ac_ext >&5
20458
John Criswell7a73b802003-06-30 21:59:07 +000020459ac_cv_type_pid_t=no
20460fi
20461rm -f conftest.$ac_objext conftest.$ac_ext
20462fi
20463echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20464echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20465if test $ac_cv_type_pid_t = yes; then
20466 :
20467else
20468
20469cat >>confdefs.h <<_ACEOF
20470#define pid_t int
20471_ACEOF
20472
20473fi
20474
20475echo "$as_me:$LINENO: checking for size_t" >&5
20476echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20477if test "${ac_cv_type_size_t+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20479else
20480 cat >conftest.$ac_ext <<_ACEOF
20481#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020482/* confdefs.h. */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020487$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020488int
20489main ()
20490{
20491if ((size_t *) 0)
20492 return 0;
20493if (sizeof (size_t))
20494 return 0;
20495 ;
20496 return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext
20500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_type_size_t=yes
20512else
20513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020514sed 's/^/| /' conftest.$ac_ext >&5
20515
John Criswell7a73b802003-06-30 21:59:07 +000020516ac_cv_type_size_t=no
20517fi
20518rm -f conftest.$ac_objext conftest.$ac_ext
20519fi
20520echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20521echo "${ECHO_T}$ac_cv_type_size_t" >&6
20522if test $ac_cv_type_size_t = yes; then
20523 :
20524else
20525
20526cat >>confdefs.h <<_ACEOF
20527#define size_t unsigned
20528_ACEOF
20529
20530fi
20531
20532echo "$as_me:$LINENO: checking for int64_t" >&5
20533echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20534if test "${ac_cv_type_int64_t+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536else
20537 cat >conftest.$ac_ext <<_ACEOF
20538#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020544$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020545int
20546main ()
20547{
20548if ((int64_t *) 0)
20549 return 0;
20550if (sizeof (int64_t))
20551 return 0;
20552 ;
20553 return 0;
20554}
20555_ACEOF
20556rm -f conftest.$ac_objext
20557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20558 (eval $ac_compile) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_cv_type_int64_t=yes
20569else
20570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020571sed 's/^/| /' conftest.$ac_ext >&5
20572
John Criswell7a73b802003-06-30 21:59:07 +000020573ac_cv_type_int64_t=no
20574fi
20575rm -f conftest.$ac_objext conftest.$ac_ext
20576fi
20577echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20578echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20579if test $ac_cv_type_int64_t = yes; then
20580
20581cat >>confdefs.h <<_ACEOF
20582#define HAVE_INT64_T 1
20583_ACEOF
20584
20585
20586else
20587 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20588echo "$as_me: error: Type int64_t required but not found" >&2;}
20589 { (exit 1); exit 1; }; }
20590fi
20591
20592echo "$as_me:$LINENO: checking for uint64_t" >&5
20593echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20594if test "${ac_cv_type_uint64_t+set}" = set; then
20595 echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597 cat >conftest.$ac_ext <<_ACEOF
20598#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020604$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020605int
20606main ()
20607{
20608if ((uint64_t *) 0)
20609 return 0;
20610if (sizeof (uint64_t))
20611 return 0;
20612 ;
20613 return 0;
20614}
20615_ACEOF
20616rm -f conftest.$ac_objext
20617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20618 (eval $ac_compile) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; }; then
20628 ac_cv_type_uint64_t=yes
20629else
20630 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020631sed 's/^/| /' conftest.$ac_ext >&5
20632
John Criswell7a73b802003-06-30 21:59:07 +000020633ac_cv_type_uint64_t=no
20634fi
20635rm -f conftest.$ac_objext conftest.$ac_ext
20636fi
20637echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20638echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20639if test $ac_cv_type_uint64_t = yes; then
20640
20641cat >>confdefs.h <<_ACEOF
20642#define HAVE_UINT64_T 1
20643_ACEOF
20644
20645
20646else
20647 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20648echo "$as_me: error: Type uint64_t required but not found" >&2;}
20649 { (exit 1); exit 1; }; }
20650fi
20651
20652echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20653echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20654if test "${ac_cv_header_time+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656else
20657 cat >conftest.$ac_ext <<_ACEOF
20658#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020659/* confdefs.h. */
20660_ACEOF
20661cat confdefs.h >>conftest.$ac_ext
20662cat >>conftest.$ac_ext <<_ACEOF
20663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020664#include <sys/types.h>
20665#include <sys/time.h>
20666#include <time.h>
20667
John Criswell7a73b802003-06-30 21:59:07 +000020668int
20669main ()
20670{
20671if ((struct tm *) 0)
20672return 0;
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>&5
20680 ac_status=$?
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_header_time=yes
20690else
20691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020692sed 's/^/| /' conftest.$ac_ext >&5
20693
John Criswell7a73b802003-06-30 21:59:07 +000020694ac_cv_header_time=no
20695fi
20696rm -f conftest.$ac_objext conftest.$ac_ext
20697fi
20698echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20699echo "${ECHO_T}$ac_cv_header_time" >&6
20700if test $ac_cv_header_time = yes; then
20701
20702cat >>confdefs.h <<\_ACEOF
20703#define TIME_WITH_SYS_TIME 1
20704_ACEOF
20705
20706fi
20707
20708echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20709echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20710if test "${ac_cv_struct_tm+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20712else
20713 cat >conftest.$ac_ext <<_ACEOF
20714#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020715/* confdefs.h. */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020720#include <sys/types.h>
20721#include <time.h>
20722
John Criswell7a73b802003-06-30 21:59:07 +000020723int
20724main ()
20725{
20726struct tm *tp; tp->tm_sec;
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext
20732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } &&
20737 { ac_try='test -s conftest.$ac_objext'
20738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20740 ac_status=$?
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); }; }; then
20743 ac_cv_struct_tm=time.h
20744else
20745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020746sed 's/^/| /' conftest.$ac_ext >&5
20747
John Criswell7a73b802003-06-30 21:59:07 +000020748ac_cv_struct_tm=sys/time.h
20749fi
20750rm -f conftest.$ac_objext conftest.$ac_ext
20751fi
20752echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20753echo "${ECHO_T}$ac_cv_struct_tm" >&6
20754if test $ac_cv_struct_tm = sys/time.h; then
20755
20756cat >>confdefs.h <<\_ACEOF
20757#define TM_IN_SYS_TIME 1
20758_ACEOF
20759
20760fi
20761
20762
John Criswella0137d32003-10-13 16:22:01 +000020763
20764
20765
20766 ac_ext=c
20767ac_cpp='$CPP $CPPFLAGS'
20768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20770ac_compiler_gnu=$ac_cv_c_compiler_gnu
20771
20772 if test "$cross_compiling" = yes; then
20773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20774See \`config.log' for more details." >&5
20775echo "$as_me: error: cannot run test program while cross compiling
20776See \`config.log' for more details." >&2;}
20777 { (exit 1); exit 1; }; }
20778else
20779 cat >conftest.$ac_ext <<_ACEOF
20780#line $LINENO "configure"
20781/* confdefs.h. */
20782_ACEOF
20783cat confdefs.h >>conftest.$ac_ext
20784cat >>conftest.$ac_ext <<_ACEOF
20785/* end confdefs.h. */
20786#include <stdio.h>
20787 #include <stdlib.h>
20788int
20789main ()
20790{
20791
20792 volatile double A, B;
20793 char Buffer[100];
20794 A = 1;
20795 A /= 10.0;
20796 sprintf(Buffer, "%a", A);
20797 B = atof(Buffer);
20798 if (A != B)
20799 return (1);
20800 if (A != 0x1.999999999999ap-4)
20801 return (1);
20802 return (0);
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest$ac_exeext
20808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20809 (eval $ac_link) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; }; then
20818 ac_c_printf_a=yes
20819else
20820 echo "$as_me: program exited with status $ac_status" >&5
20821echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824( exit $ac_status )
20825ac_c_printf_a=no
20826fi
20827rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20828fi
20829 ac_ext=c
20830ac_cpp='$CPP $CPPFLAGS'
20831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833ac_compiler_gnu=$ac_cv_c_compiler_gnu
20834
20835 if test "$ac_c_printf_a" = "yes"; then
20836
20837cat >>confdefs.h <<\_ACEOF
20838#define HAVE_PRINTF_A 1
20839_ACEOF
20840
20841 fi
20842
20843
John Criswell7a73b802003-06-30 21:59:07 +000020844echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20845echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20846if test "${ac_cv_cxx_namespaces+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20848else
20849
20850
20851 ac_ext=cc
20852ac_cpp='$CXXCPP $CPPFLAGS'
20853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20856
20857 cat >conftest.$ac_ext <<_ACEOF
20858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020864namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020865int
20866main ()
20867{
20868using namespace Outer::Inner; return i;
20869 ;
20870 return 0;
20871}
20872_ACEOF
20873rm -f conftest.$ac_objext
20874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875 (eval $ac_compile) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try='test -s conftest.$ac_objext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_cxx_namespaces=yes
20886else
20887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020888sed 's/^/| /' conftest.$ac_ext >&5
20889
John Criswell7a73b802003-06-30 21:59:07 +000020890ac_cv_cxx_namespaces=no
20891fi
20892rm -f conftest.$ac_objext conftest.$ac_ext
20893 ac_ext=c
20894ac_cpp='$CPP $CPPFLAGS'
20895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20897ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898
20899
20900fi
20901echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20902echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20903if test "$ac_cv_cxx_namespaces" = yes; then
20904
20905cat >>confdefs.h <<\_ACEOF
20906#define HAVE_NAMESPACES
20907_ACEOF
20908
20909fi
20910
Brian Gaeke90583492003-11-10 03:06:28 +000020911echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20912echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20913if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020914 echo $ECHO_N "(cached) $ECHO_C" >&6
20915else
20916
20917
20918
20919 ac_ext=cc
20920ac_cpp='$CXXCPP $CPPFLAGS'
20921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20924
20925 cat >conftest.$ac_ext <<_ACEOF
20926#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020932#include <ext/hash_map>
20933#ifdef HAVE_NAMESPACES
20934using namespace std;
20935#endif
John Criswell7a73b802003-06-30 21:59:07 +000020936int
20937main ()
20938{
Brian Gaeke90583492003-11-10 03:06:28 +000020939hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020940 ;
20941 return 0;
20942}
20943_ACEOF
20944rm -f conftest.$ac_objext
20945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20946 (eval $ac_compile) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try='test -s conftest.$ac_objext'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020956 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020957else
20958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020959sed 's/^/| /' conftest.$ac_ext >&5
20960
Brian Gaeke90583492003-11-10 03:06:28 +000020961ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020962fi
20963rm -f conftest.$ac_objext conftest.$ac_ext
20964 ac_ext=c
20965ac_cpp='$CPP $CPPFLAGS'
20966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968ac_compiler_gnu=$ac_cv_c_compiler_gnu
20969
John Criswell7a73b802003-06-30 21:59:07 +000020970fi
Brian Gaeke90583492003-11-10 03:06:28 +000020971echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20972echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20973 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000020974
20975cat >>confdefs.h <<\_ACEOF
20976#define HAVE_STD_EXT_HASH_MAP
20977_ACEOF
20978
Brian Gaeke90583492003-11-10 03:06:28 +000020979 fi
20980 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20981echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20982if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20983 echo $ECHO_N "(cached) $ECHO_C" >&6
20984else
20985
20986
20987
20988 ac_ext=cc
20989ac_cpp='$CXXCPP $CPPFLAGS'
20990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993
20994 cat >conftest.$ac_ext <<_ACEOF
20995#line $LINENO "configure"
20996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h. */
21001#include <ext/hash_map>
21002#ifdef HAVE_NAMESPACES
21003using namespace __gnu_cxx;
21004#endif
21005int
21006main ()
21007{
21008hash_map<int,int> t;
21009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext
21014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21015 (eval $ac_compile) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_cv_cxx_have_gnu_ext_hash_map=yes
21026else
21027 echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021031fi
Brian Gaeke90583492003-11-10 03:06:28 +000021032rm -f conftest.$ac_objext conftest.$ac_ext
21033 ac_ext=c
21034ac_cpp='$CPP $CPPFLAGS'
21035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21037ac_compiler_gnu=$ac_cv_c_compiler_gnu
21038
21039fi
21040echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21041echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21042 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021043
21044cat >>confdefs.h <<\_ACEOF
21045#define HAVE_GNU_EXT_HASH_MAP
21046_ACEOF
21047
Brian Gaeke90583492003-11-10 03:06:28 +000021048 fi
21049 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21050echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21051if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053else
John Criswell7a73b802003-06-30 21:59:07 +000021054
Brian Gaeke90583492003-11-10 03:06:28 +000021055
21056
21057 ac_ext=cc
21058ac_cpp='$CXXCPP $CPPFLAGS'
21059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21062
21063 cat >conftest.$ac_ext <<_ACEOF
21064#line $LINENO "configure"
21065/* confdefs.h. */
21066_ACEOF
21067cat confdefs.h >>conftest.$ac_ext
21068cat >>conftest.$ac_ext <<_ACEOF
21069/* end confdefs.h. */
21070#include <hash_map>
21071int
21072main ()
21073{
21074hash_map<int,int> t;
21075 ;
21076 return 0;
21077}
21078_ACEOF
21079rm -f conftest.$ac_objext
21080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081 (eval $ac_compile) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -s conftest.$ac_objext'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_cxx_have_global_hash_map=yes
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096ac_cv_cxx_have_global_hash_map=no
21097fi
21098rm -f conftest.$ac_objext conftest.$ac_ext
21099 ac_ext=c
21100ac_cpp='$CPP $CPPFLAGS'
21101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103ac_compiler_gnu=$ac_cv_c_compiler_gnu
21104
21105fi
21106echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21107echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21108 if test "$ac_cv_cxx_have_global_hash_map" = yes; then
21109
21110cat >>confdefs.h <<\_ACEOF
21111#define HAVE_GLOBAL_HASH_MAP
21112_ACEOF
21113
21114 fi
21115echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21116echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21117if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119else
21120
21121
21122
21123 ac_ext=cc
21124ac_cpp='$CXXCPP $CPPFLAGS'
21125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21128
21129 cat >conftest.$ac_ext <<_ACEOF
21130#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021131/* confdefs.h. */
21132_ACEOF
21133cat confdefs.h >>conftest.$ac_ext
21134cat >>conftest.$ac_ext <<_ACEOF
21135/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021136#include <ext/hash_set>
21137#ifdef HAVE_NAMESPACES
21138using namespace std;
21139#endif
John Criswell7a73b802003-06-30 21:59:07 +000021140int
21141main ()
21142{
Brian Gaeke90583492003-11-10 03:06:28 +000021143hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021144 ;
21145 return 0;
21146}
21147_ACEOF
21148rm -f conftest.$ac_objext
21149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21150 (eval $ac_compile) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -s conftest.$ac_objext'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021160 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021161else
21162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021163sed 's/^/| /' conftest.$ac_ext >&5
21164
Brian Gaeke90583492003-11-10 03:06:28 +000021165ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021166fi
21167rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021168 ac_ext=c
21169ac_cpp='$CPP $CPPFLAGS'
21170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173
21174fi
21175echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21176echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21177 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes; then
21178
21179cat >>confdefs.h <<\_ACEOF
21180#define HAVE_STD_EXT_HASH_SET
21181_ACEOF
21182
21183 fi
21184 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21185echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21186if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21188else
21189
21190
21191
21192 ac_ext=cc
21193ac_cpp='$CXXCPP $CPPFLAGS'
21194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21197
John Criswell7a73b802003-06-30 21:59:07 +000021198 cat >conftest.$ac_ext <<_ACEOF
21199#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021200/* confdefs.h. */
21201_ACEOF
21202cat confdefs.h >>conftest.$ac_ext
21203cat >>conftest.$ac_ext <<_ACEOF
21204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021205#include <ext/hash_set>
21206#ifdef HAVE_NAMESPACES
21207using namespace __gnu_cxx;
21208#endif
John Criswell7a73b802003-06-30 21:59:07 +000021209int
21210main ()
21211{
Brian Gaeke90583492003-11-10 03:06:28 +000021212hash_set<int> t;
21213 ;
21214 return 0;
21215}
21216_ACEOF
21217rm -f conftest.$ac_objext
21218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21219 (eval $ac_compile) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_cxx_have_gnu_ext_hash_set=yes
21230else
21231 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5
21233
21234ac_cv_cxx_have_gnu_ext_hash_set=no
21235fi
21236rm -f conftest.$ac_objext conftest.$ac_ext
21237 ac_ext=c
21238ac_cpp='$CPP $CPPFLAGS'
21239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241ac_compiler_gnu=$ac_cv_c_compiler_gnu
21242
21243fi
21244echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21245echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21246 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes; then
21247
21248cat >>confdefs.h <<\_ACEOF
21249#define HAVE_GNU_EXT_HASH_SET
21250_ACEOF
21251
21252 fi
21253 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21254echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21255if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21256 echo $ECHO_N "(cached) $ECHO_C" >&6
21257else
21258
21259
21260
21261 ac_ext=cc
21262ac_cpp='$CXXCPP $CPPFLAGS'
21263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266
21267 cat >conftest.$ac_ext <<_ACEOF
21268#line $LINENO "configure"
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274#include <hash_set>
21275int
21276main ()
21277{
John Criswell7a73b802003-06-30 21:59:07 +000021278hash_set<int> t; return 0;
21279 ;
21280 return 0;
21281}
21282_ACEOF
21283rm -f conftest.$ac_objext
21284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285 (eval $ac_compile) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } &&
21289 { ac_try='test -s conftest.$ac_objext'
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021295 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021296else
21297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021298sed 's/^/| /' conftest.$ac_ext >&5
21299
Brian Gaeke90583492003-11-10 03:06:28 +000021300ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021301fi
21302rm -f conftest.$ac_objext conftest.$ac_ext
21303 ac_ext=c
21304ac_cpp='$CPP $CPPFLAGS'
21305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307ac_compiler_gnu=$ac_cv_c_compiler_gnu
21308
John Criswell7a73b802003-06-30 21:59:07 +000021309fi
Brian Gaeke90583492003-11-10 03:06:28 +000021310echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21311echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21312 if test "$ac_cv_cxx_have_global_hash_set" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000021313
21314cat >>confdefs.h <<\_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021315#define HAVE_GLOBAL_HASH_SET
John Criswell7a73b802003-06-30 21:59:07 +000021316_ACEOF
21317
Brian Gaeke90583492003-11-10 03:06:28 +000021318 fi
John Criswell7a73b802003-06-30 21:59:07 +000021319echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21320echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21321if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21323else
21324
21325
21326
21327 ac_ext=cc
21328ac_cpp='$CXXCPP $CPPFLAGS'
21329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21332
21333 cat >conftest.$ac_ext <<_ACEOF
21334#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021340#include <ext/slist>
21341#ifdef HAVE_NAMESPACES
21342using namespace std;
21343#endif
John Criswell7a73b802003-06-30 21:59:07 +000021344int
21345main ()
21346{
21347slist<int> s; return 0;
21348 ;
21349 return 0;
21350}
21351_ACEOF
21352rm -f conftest.$ac_objext
21353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21354 (eval $ac_compile) 2>&5
21355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_cxx_have_ext_slist=std
21365else
21366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021367sed 's/^/| /' conftest.$ac_ext >&5
21368
John Criswell7a73b802003-06-30 21:59:07 +000021369ac_cv_cxx_have_ext_slist=no
21370fi
21371rm -f conftest.$ac_objext conftest.$ac_ext
21372 cat >conftest.$ac_ext <<_ACEOF
21373#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021374/* confdefs.h. */
21375_ACEOF
21376cat confdefs.h >>conftest.$ac_ext
21377cat >>conftest.$ac_ext <<_ACEOF
21378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021379#include <ext/slist>
21380#ifdef HAVE_NAMESPACES
21381using namespace __gnu_cxx;
21382#endif
John Criswell7a73b802003-06-30 21:59:07 +000021383int
21384main ()
21385{
21386slist<int> s; return 0;
21387 ;
21388 return 0;
21389}
21390_ACEOF
21391rm -f conftest.$ac_objext
21392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393 (eval $ac_compile) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); } &&
21397 { ac_try='test -s conftest.$ac_objext'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; }; then
21403 ac_cv_cxx_have_ext_slist=gnu
21404else
21405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021406sed 's/^/| /' conftest.$ac_ext >&5
21407
John Criswell7a73b802003-06-30 21:59:07 +000021408ac_cv_cxx_have_ext_slist=no
21409fi
21410rm -f conftest.$ac_objext conftest.$ac_ext
21411
21412 ac_ext=c
21413ac_cpp='$CPP $CPPFLAGS'
21414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416ac_compiler_gnu=$ac_cv_c_compiler_gnu
21417
21418
21419fi
21420echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21421echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21422if test "$ac_cv_cxx_have_ext_slist" = std; then
21423
21424cat >>confdefs.h <<\_ACEOF
21425#define HAVE_EXT_SLIST std
21426_ACEOF
21427
21428fi
21429if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21430
21431cat >>confdefs.h <<\_ACEOF
21432#define HAVE_EXT_SLIST gnu
21433_ACEOF
21434
21435fi
21436
21437echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21438echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21439if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441else
21442
21443
21444
21445 ac_ext=cc
21446ac_cpp='$CXXCPP $CPPFLAGS'
21447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21450
21451 cat >conftest.$ac_ext <<_ACEOF
21452#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021453/* confdefs.h. */
21454_ACEOF
21455cat confdefs.h >>conftest.$ac_ext
21456cat >>conftest.$ac_ext <<_ACEOF
21457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021458#include <iterator>
21459#ifdef HAVE_NAMESPACES
21460using namespace std;
21461#endif
John Criswell7a73b802003-06-30 21:59:07 +000021462int
21463main ()
21464{
21465iterator<int,int,int> t; return 0;
21466 ;
21467 return 0;
21468}
21469_ACEOF
21470rm -f conftest.$ac_objext
21471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21472 (eval $ac_compile) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } &&
21476 { ac_try='test -s conftest.$ac_objext'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_cv_cxx_have_std_iterator=yes
21483else
21484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021485sed 's/^/| /' conftest.$ac_ext >&5
21486
John Criswell7a73b802003-06-30 21:59:07 +000021487ac_cv_cxx_have_std_iterator=no
21488fi
21489rm -f conftest.$ac_objext conftest.$ac_ext
21490 ac_ext=c
21491ac_cpp='$CPP $CPPFLAGS'
21492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21494ac_compiler_gnu=$ac_cv_c_compiler_gnu
21495
21496
21497fi
21498echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21499echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21500if test "$ac_cv_cxx_have_std_iterator" = yes; then
21501
21502cat >>confdefs.h <<\_ACEOF
21503#define HAVE_STD_ITERATOR
21504_ACEOF
21505
21506fi
21507
21508echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21509echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21510if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513
21514
21515
21516 ac_ext=cc
21517ac_cpp='$CXXCPP $CPPFLAGS'
21518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21521
21522 cat >conftest.$ac_ext <<_ACEOF
21523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021529#include <iterator>
21530#ifdef HAVE_NAMESPACES
21531using namespace std;
21532#endif
John Criswell7a73b802003-06-30 21:59:07 +000021533int
21534main ()
21535{
John Criswellc78022e2003-07-29 19:11:58 +000021536bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021537 ;
21538 return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext
21542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543 (eval $ac_compile) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -s conftest.$ac_objext'
21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_cxx_have_bi_iterator=yes
21554else
21555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021556sed 's/^/| /' conftest.$ac_ext >&5
21557
John Criswell7a73b802003-06-30 21:59:07 +000021558ac_cv_cxx_have_bi_iterator=no
21559fi
21560rm -f conftest.$ac_objext conftest.$ac_ext
21561 ac_ext=c
21562ac_cpp='$CPP $CPPFLAGS'
21563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21565ac_compiler_gnu=$ac_cv_c_compiler_gnu
21566
21567
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21570echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21571if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21572
21573cat >>confdefs.h <<\_ACEOF
21574#define HAVE_BI_ITERATOR
21575_ACEOF
21576
21577fi
21578
21579echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21580echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21581if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21583else
21584
21585
21586
21587 ac_ext=cc
21588ac_cpp='$CXXCPP $CPPFLAGS'
21589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21592
21593 cat >conftest.$ac_ext <<_ACEOF
21594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021595/* confdefs.h. */
21596_ACEOF
21597cat confdefs.h >>conftest.$ac_ext
21598cat >>conftest.$ac_ext <<_ACEOF
21599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021600#include <iterator>
21601#ifdef HAVE_NAMESPACES
21602using namespace std;
21603#endif
John Criswell7a73b802003-06-30 21:59:07 +000021604int
21605main ()
21606{
John Criswellc78022e2003-07-29 19:11:58 +000021607forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021608 ;
21609 return 0;
21610}
21611_ACEOF
21612rm -f conftest.$ac_objext
21613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614 (eval $ac_compile) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
21618 { ac_try='test -s conftest.$ac_objext'
21619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); }; }; then
21624 ac_cv_cxx_have_fwd_iterator=yes
21625else
21626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021627sed 's/^/| /' conftest.$ac_ext >&5
21628
John Criswell7a73b802003-06-30 21:59:07 +000021629ac_cv_cxx_have_fwd_iterator=no
21630fi
21631rm -f conftest.$ac_objext conftest.$ac_ext
21632 ac_ext=c
21633ac_cpp='$CPP $CPPFLAGS'
21634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21636ac_compiler_gnu=$ac_cv_c_compiler_gnu
21637
21638
21639fi
21640echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21641echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21642if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21643
21644cat >>confdefs.h <<\_ACEOF
21645#define HAVE_FWD_ITERATOR
21646_ACEOF
21647
21648fi
21649
21650
21651# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21652# for constant arguments. Useless!
21653echo "$as_me:$LINENO: checking for working alloca.h" >&5
21654echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21655if test "${ac_cv_working_alloca_h+set}" = set; then
21656 echo $ECHO_N "(cached) $ECHO_C" >&6
21657else
21658 cat >conftest.$ac_ext <<_ACEOF
21659#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021660/* confdefs.h. */
21661_ACEOF
21662cat confdefs.h >>conftest.$ac_ext
21663cat >>conftest.$ac_ext <<_ACEOF
21664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021665#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021666int
21667main ()
21668{
21669char *p = (char *) alloca (2 * sizeof (int));
21670 ;
21671 return 0;
21672}
21673_ACEOF
21674rm -f conftest.$ac_objext conftest$ac_exeext
21675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21676 (eval $ac_link) 2>&5
21677 ac_status=$?
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
21680 { ac_try='test -s conftest$ac_exeext'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_working_alloca_h=yes
21687else
21688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021689sed 's/^/| /' conftest.$ac_ext >&5
21690
John Criswell7a73b802003-06-30 21:59:07 +000021691ac_cv_working_alloca_h=no
21692fi
21693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21694fi
21695echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21696echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21697if test $ac_cv_working_alloca_h = yes; then
21698
21699cat >>confdefs.h <<\_ACEOF
21700#define HAVE_ALLOCA_H 1
21701_ACEOF
21702
21703fi
21704
21705echo "$as_me:$LINENO: checking for alloca" >&5
21706echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21707if test "${ac_cv_func_alloca_works+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709else
21710 cat >conftest.$ac_ext <<_ACEOF
21711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021712/* confdefs.h. */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021717#ifdef __GNUC__
21718# define alloca __builtin_alloca
21719#else
21720# ifdef _MSC_VER
21721# include <malloc.h>
21722# define alloca _alloca
21723# else
21724# if HAVE_ALLOCA_H
21725# include <alloca.h>
21726# else
21727# ifdef _AIX
21728 #pragma alloca
21729# else
21730# ifndef alloca /* predefined by HP cc +Olibcalls */
21731char *alloca ();
21732# endif
21733# endif
21734# endif
21735# endif
21736#endif
21737
John Criswell7a73b802003-06-30 21:59:07 +000021738int
21739main ()
21740{
21741char *p = (char *) alloca (1);
21742 ;
21743 return 0;
21744}
21745_ACEOF
21746rm -f conftest.$ac_objext conftest$ac_exeext
21747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21748 (eval $ac_link) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
21752 { ac_try='test -s conftest$ac_exeext'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_cv_func_alloca_works=yes
21759else
21760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021761sed 's/^/| /' conftest.$ac_ext >&5
21762
John Criswell7a73b802003-06-30 21:59:07 +000021763ac_cv_func_alloca_works=no
21764fi
21765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21766fi
21767echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21768echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21769
21770if test $ac_cv_func_alloca_works = yes; then
21771
21772cat >>confdefs.h <<\_ACEOF
21773#define HAVE_ALLOCA 1
21774_ACEOF
21775
21776else
21777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21778# that cause trouble. Some versions do not even contain alloca or
21779# contain a buggy version. If you still want to use their alloca,
21780# use ar to extract alloca.o from them instead of compiling alloca.c.
21781
21782ALLOCA=alloca.$ac_objext
21783
21784cat >>confdefs.h <<\_ACEOF
21785#define C_ALLOCA 1
21786_ACEOF
21787
21788
21789echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21790echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21791if test "${ac_cv_os_cray+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794 cat >conftest.$ac_ext <<_ACEOF
21795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021796/* confdefs.h. */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021801#if defined(CRAY) && ! defined(CRAY2)
21802webecray
21803#else
21804wenotbecray
21805#endif
21806
21807_ACEOF
21808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021809 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021810 ac_cv_os_cray=yes
21811else
21812 ac_cv_os_cray=no
21813fi
21814rm -f conftest*
21815
21816fi
21817echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21818echo "${ECHO_T}$ac_cv_os_cray" >&6
21819if test $ac_cv_os_cray = yes; then
21820 for ac_func in _getb67 GETB67 getb67; do
21821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21822echo "$as_me:$LINENO: checking for $ac_func" >&5
21823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21824if eval "test \"\${$as_ac_var+set}\" = set"; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826else
21827 cat >conftest.$ac_ext <<_ACEOF
21828#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021829/* confdefs.h. */
21830_ACEOF
21831cat confdefs.h >>conftest.$ac_ext
21832cat >>conftest.$ac_ext <<_ACEOF
21833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021834/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021835 which can conflict with char $ac_func (); below.
21836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21837 <limits.h> exists even on freestanding compilers. */
21838#ifdef __STDC__
21839# include <limits.h>
21840#else
21841# include <assert.h>
21842#endif
John Criswell7a73b802003-06-30 21:59:07 +000021843/* Override any gcc2 internal prototype to avoid an error. */
21844#ifdef __cplusplus
21845extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021846{
John Criswell7a73b802003-06-30 21:59:07 +000021847#endif
21848/* We use char because int might match the return type of a gcc2
21849 builtin and then its argument prototype would still apply. */
21850char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021851/* The GNU C library defines this for functions which it implements
21852 to always fail with ENOSYS. Some functions are actually named
21853 something starting with __ and the normal name is an alias. */
21854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21855choke me
21856#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021857char (*f) () = $ac_func;
21858#endif
21859#ifdef __cplusplus
21860}
John Criswell7a73b802003-06-30 21:59:07 +000021861#endif
21862
John Criswell0c38eaf2003-09-10 15:17:25 +000021863int
21864main ()
21865{
21866return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021867 ;
21868 return 0;
21869}
21870_ACEOF
21871rm -f conftest.$ac_objext conftest$ac_exeext
21872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 eval "$as_ac_var=yes"
21884else
21885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021886sed 's/^/| /' conftest.$ac_ext >&5
21887
John Criswell7a73b802003-06-30 21:59:07 +000021888eval "$as_ac_var=no"
21889fi
21890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21891fi
21892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21893echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21894if test `eval echo '${'$as_ac_var'}'` = yes; then
21895
21896cat >>confdefs.h <<_ACEOF
21897#define CRAY_STACKSEG_END $ac_func
21898_ACEOF
21899
21900 break
21901fi
21902
21903 done
21904fi
21905
21906echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21907echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21908if test "${ac_cv_c_stack_direction+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910else
21911 if test "$cross_compiling" = yes; then
21912 ac_cv_c_stack_direction=0
21913else
21914 cat >conftest.$ac_ext <<_ACEOF
21915#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021916/* confdefs.h. */
21917_ACEOF
21918cat confdefs.h >>conftest.$ac_ext
21919cat >>conftest.$ac_ext <<_ACEOF
21920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021921int
21922find_stack_direction ()
21923{
21924 static char *addr = 0;
21925 auto char dummy;
21926 if (addr == 0)
21927 {
21928 addr = &dummy;
21929 return find_stack_direction ();
21930 }
21931 else
21932 return (&dummy > addr) ? 1 : -1;
21933}
21934
21935int
21936main ()
21937{
21938 exit (find_stack_direction () < 0);
21939}
21940_ACEOF
21941rm -f conftest$ac_exeext
21942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_c_stack_direction=1
21953else
21954 echo "$as_me: program exited with status $ac_status" >&5
21955echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021956sed 's/^/| /' conftest.$ac_ext >&5
21957
John Criswell7a73b802003-06-30 21:59:07 +000021958( exit $ac_status )
21959ac_cv_c_stack_direction=-1
21960fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021961rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021962fi
21963fi
21964echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21965echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21966
21967cat >>confdefs.h <<_ACEOF
21968#define STACK_DIRECTION $ac_cv_c_stack_direction
21969_ACEOF
21970
21971
21972fi
21973
21974if test $ac_cv_c_compiler_gnu = yes; then
21975 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21976echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21977if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979else
21980 ac_pattern="Autoconf.*'x'"
21981 cat >conftest.$ac_ext <<_ACEOF
21982#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021983/* confdefs.h. */
21984_ACEOF
21985cat confdefs.h >>conftest.$ac_ext
21986cat >>conftest.$ac_ext <<_ACEOF
21987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021988#include <sgtty.h>
21989Autoconf TIOCGETP
21990_ACEOF
21991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021992 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021993 ac_cv_prog_gcc_traditional=yes
21994else
21995 ac_cv_prog_gcc_traditional=no
21996fi
21997rm -f conftest*
21998
21999
22000 if test $ac_cv_prog_gcc_traditional = no; then
22001 cat >conftest.$ac_ext <<_ACEOF
22002#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022003/* confdefs.h. */
22004_ACEOF
22005cat confdefs.h >>conftest.$ac_ext
22006cat >>conftest.$ac_ext <<_ACEOF
22007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022008#include <termio.h>
22009Autoconf TCGETA
22010_ACEOF
22011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022012 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022013 ac_cv_prog_gcc_traditional=yes
22014fi
22015rm -f conftest*
22016
22017 fi
22018fi
22019echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22020echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22021 if test $ac_cv_prog_gcc_traditional = yes; then
22022 CC="$CC -traditional"
22023 fi
22024fi
22025
22026echo "$as_me:$LINENO: checking for working memcmp" >&5
22027echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22028if test "${ac_cv_func_memcmp_working+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031 if test "$cross_compiling" = yes; then
22032 ac_cv_func_memcmp_working=no
22033else
22034 cat >conftest.$ac_ext <<_ACEOF
22035#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022036/* confdefs.h. */
22037_ACEOF
22038cat confdefs.h >>conftest.$ac_ext
22039cat >>conftest.$ac_ext <<_ACEOF
22040/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022041
John Criswell7a73b802003-06-30 21:59:07 +000022042int
22043main ()
22044{
22045
22046 /* Some versions of memcmp are not 8-bit clean. */
22047 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22048 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22049 exit (1);
22050
22051 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22052 or more and with at least one buffer not starting on a 4-byte boundary.
22053 William Lewis provided this test program. */
22054 {
22055 char foo[21];
22056 char bar[21];
22057 int i;
22058 for (i = 0; i < 4; i++)
22059 {
22060 char *a = foo + i;
22061 char *b = bar + i;
22062 strcpy (a, "--------01111111");
22063 strcpy (b, "--------10000000");
22064 if (memcmp (a, b, 16) >= 0)
22065 exit (1);
22066 }
22067 exit (0);
22068 }
22069
22070 ;
22071 return 0;
22072}
22073_ACEOF
22074rm -f conftest$ac_exeext
22075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22076 (eval $ac_link) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; }; then
22085 ac_cv_func_memcmp_working=yes
22086else
22087 echo "$as_me: program exited with status $ac_status" >&5
22088echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022089sed 's/^/| /' conftest.$ac_ext >&5
22090
John Criswell7a73b802003-06-30 21:59:07 +000022091( exit $ac_status )
22092ac_cv_func_memcmp_working=no
22093fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022094rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022095fi
22096fi
22097echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22098echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22099test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22100
22101
22102
22103for ac_header in stdlib.h unistd.h
22104do
22105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22106if eval "test \"\${$as_ac_Header+set}\" = set"; then
22107 echo "$as_me:$LINENO: checking for $ac_header" >&5
22108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22109if eval "test \"\${$as_ac_Header+set}\" = set"; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111fi
22112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22114else
22115 # Is the header compilable?
22116echo "$as_me:$LINENO: checking $ac_header usability" >&5
22117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22118cat >conftest.$ac_ext <<_ACEOF
22119#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022120/* confdefs.h. */
22121_ACEOF
22122cat confdefs.h >>conftest.$ac_ext
22123cat >>conftest.$ac_ext <<_ACEOF
22124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022125$ac_includes_default
22126#include <$ac_header>
22127_ACEOF
22128rm -f conftest.$ac_objext
22129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22130 (eval $ac_compile) 2>&5
22131 ac_status=$?
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } &&
22134 { ac_try='test -s conftest.$ac_objext'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; }; then
22140 ac_header_compiler=yes
22141else
22142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022143sed 's/^/| /' conftest.$ac_ext >&5
22144
John Criswell7a73b802003-06-30 21:59:07 +000022145ac_header_compiler=no
22146fi
22147rm -f conftest.$ac_objext conftest.$ac_ext
22148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22149echo "${ECHO_T}$ac_header_compiler" >&6
22150
22151# Is the header present?
22152echo "$as_me:$LINENO: checking $ac_header presence" >&5
22153echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22154cat >conftest.$ac_ext <<_ACEOF
22155#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022156/* confdefs.h. */
22157_ACEOF
22158cat confdefs.h >>conftest.$ac_ext
22159cat >>conftest.$ac_ext <<_ACEOF
22160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022161#include <$ac_header>
22162_ACEOF
22163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22165 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022166 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } >/dev/null; then
22171 if test -s conftest.err; then
22172 ac_cpp_err=$ac_c_preproc_warn_flag
22173 else
22174 ac_cpp_err=
22175 fi
22176else
22177 ac_cpp_err=yes
22178fi
22179if test -z "$ac_cpp_err"; then
22180 ac_header_preproc=yes
22181else
22182 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022183sed 's/^/| /' conftest.$ac_ext >&5
22184
John Criswell7a73b802003-06-30 21:59:07 +000022185 ac_header_preproc=no
22186fi
22187rm -f conftest.err conftest.$ac_ext
22188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22189echo "${ECHO_T}$ac_header_preproc" >&6
22190
22191# So? What about this header?
22192case $ac_header_compiler:$ac_header_preproc in
22193 yes:no )
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22195echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22198 (
22199 cat <<\_ASBOX
22200## ------------------------------------ ##
22201## Report this to bug-autoconf@gnu.org. ##
22202## ------------------------------------ ##
22203_ASBOX
22204 ) |
22205 sed "s/^/$as_me: WARNING: /" >&2
22206 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022207 no:yes )
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22211echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22214 (
22215 cat <<\_ASBOX
22216## ------------------------------------ ##
22217## Report this to bug-autoconf@gnu.org. ##
22218## ------------------------------------ ##
22219_ASBOX
22220 ) |
22221 sed "s/^/$as_me: WARNING: /" >&2
22222 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022223esac
22224echo "$as_me:$LINENO: checking for $ac_header" >&5
22225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22226if eval "test \"\${$as_ac_Header+set}\" = set"; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22228else
22229 eval "$as_ac_Header=$ac_header_preproc"
22230fi
22231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22233
22234fi
22235if test `eval echo '${'$as_ac_Header'}'` = yes; then
22236 cat >>confdefs.h <<_ACEOF
22237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22238_ACEOF
22239
22240fi
22241
22242done
22243
22244
22245for ac_func in getpagesize
22246do
22247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22248echo "$as_me:$LINENO: checking for $ac_func" >&5
22249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22250if eval "test \"\${$as_ac_var+set}\" = set"; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252else
22253 cat >conftest.$ac_ext <<_ACEOF
22254#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022255/* confdefs.h. */
22256_ACEOF
22257cat confdefs.h >>conftest.$ac_ext
22258cat >>conftest.$ac_ext <<_ACEOF
22259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022260/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022261 which can conflict with char $ac_func (); below.
22262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22263 <limits.h> exists even on freestanding compilers. */
22264#ifdef __STDC__
22265# include <limits.h>
22266#else
22267# include <assert.h>
22268#endif
John Criswell7a73b802003-06-30 21:59:07 +000022269/* Override any gcc2 internal prototype to avoid an error. */
22270#ifdef __cplusplus
22271extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022272{
John Criswell7a73b802003-06-30 21:59:07 +000022273#endif
22274/* We use char because int might match the return type of a gcc2
22275 builtin and then its argument prototype would still apply. */
22276char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022277/* The GNU C library defines this for functions which it implements
22278 to always fail with ENOSYS. Some functions are actually named
22279 something starting with __ and the normal name is an alias. */
22280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22281choke me
22282#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022283char (*f) () = $ac_func;
22284#endif
22285#ifdef __cplusplus
22286}
John Criswell7a73b802003-06-30 21:59:07 +000022287#endif
22288
John Criswell0c38eaf2003-09-10 15:17:25 +000022289int
22290main ()
22291{
22292return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022293 ;
22294 return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext conftest$ac_exeext
22298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22299 (eval $ac_link) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } &&
22303 { ac_try='test -s conftest$ac_exeext'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 eval "$as_ac_var=yes"
22310else
22311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022312sed 's/^/| /' conftest.$ac_ext >&5
22313
John Criswell7a73b802003-06-30 21:59:07 +000022314eval "$as_ac_var=no"
22315fi
22316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22317fi
22318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22320if test `eval echo '${'$as_ac_var'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22323_ACEOF
22324
22325fi
22326done
22327
22328echo "$as_me:$LINENO: checking for working mmap" >&5
22329echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22330if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22332else
22333 if test "$cross_compiling" = yes; then
22334 ac_cv_func_mmap_fixed_mapped=no
22335else
22336 cat >conftest.$ac_ext <<_ACEOF
22337#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022338/* confdefs.h. */
22339_ACEOF
22340cat confdefs.h >>conftest.$ac_ext
22341cat >>conftest.$ac_ext <<_ACEOF
22342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022343$ac_includes_default
22344/* malloc might have been renamed as rpl_malloc. */
22345#undef malloc
22346
22347/* Thanks to Mike Haertel and Jim Avera for this test.
22348 Here is a matrix of mmap possibilities:
22349 mmap private not fixed
22350 mmap private fixed at somewhere currently unmapped
22351 mmap private fixed at somewhere already mapped
22352 mmap shared not fixed
22353 mmap shared fixed at somewhere currently unmapped
22354 mmap shared fixed at somewhere already mapped
22355 For private mappings, we should verify that changes cannot be read()
22356 back from the file, nor mmap's back from the file at a different
22357 address. (There have been systems where private was not correctly
22358 implemented like the infamous i386 svr4.0, and systems where the
22359 VM page cache was not coherent with the file system buffer cache
22360 like early versions of FreeBSD and possibly contemporary NetBSD.)
22361 For shared mappings, we should conversely verify that changes get
22362 propagated back to all the places they're supposed to be.
22363
22364 Grep wants private fixed already mapped.
22365 The main things grep needs to know about mmap are:
22366 * does it exist and is it safe to write into the mmap'd area
22367 * how to use it (BSD variants) */
22368
22369#include <fcntl.h>
22370#include <sys/mman.h>
22371
22372#if !STDC_HEADERS && !HAVE_STDLIB_H
22373char *malloc ();
22374#endif
22375
22376/* This mess was copied from the GNU getpagesize.h. */
22377#if !HAVE_GETPAGESIZE
22378/* Assume that all systems that can run configure have sys/param.h. */
22379# if !HAVE_SYS_PARAM_H
22380# define HAVE_SYS_PARAM_H 1
22381# endif
22382
22383# ifdef _SC_PAGESIZE
22384# define getpagesize() sysconf(_SC_PAGESIZE)
22385# else /* no _SC_PAGESIZE */
22386# if HAVE_SYS_PARAM_H
22387# include <sys/param.h>
22388# ifdef EXEC_PAGESIZE
22389# define getpagesize() EXEC_PAGESIZE
22390# else /* no EXEC_PAGESIZE */
22391# ifdef NBPG
22392# define getpagesize() NBPG * CLSIZE
22393# ifndef CLSIZE
22394# define CLSIZE 1
22395# endif /* no CLSIZE */
22396# else /* no NBPG */
22397# ifdef NBPC
22398# define getpagesize() NBPC
22399# else /* no NBPC */
22400# ifdef PAGESIZE
22401# define getpagesize() PAGESIZE
22402# endif /* PAGESIZE */
22403# endif /* no NBPC */
22404# endif /* no NBPG */
22405# endif /* no EXEC_PAGESIZE */
22406# else /* no HAVE_SYS_PARAM_H */
22407# define getpagesize() 8192 /* punt totally */
22408# endif /* no HAVE_SYS_PARAM_H */
22409# endif /* no _SC_PAGESIZE */
22410
22411#endif /* no HAVE_GETPAGESIZE */
22412
22413int
22414main ()
22415{
22416 char *data, *data2, *data3;
22417 int i, pagesize;
22418 int fd;
22419
22420 pagesize = getpagesize ();
22421
22422 /* First, make a file with some known garbage in it. */
22423 data = (char *) malloc (pagesize);
22424 if (!data)
22425 exit (1);
22426 for (i = 0; i < pagesize; ++i)
22427 *(data + i) = rand ();
22428 umask (0);
22429 fd = creat ("conftest.mmap", 0600);
22430 if (fd < 0)
22431 exit (1);
22432 if (write (fd, data, pagesize) != pagesize)
22433 exit (1);
22434 close (fd);
22435
22436 /* Next, try to mmap the file at a fixed address which already has
22437 something else allocated at it. If we can, also make sure that
22438 we see the same garbage. */
22439 fd = open ("conftest.mmap", O_RDWR);
22440 if (fd < 0)
22441 exit (1);
22442 data2 = (char *) malloc (2 * pagesize);
22443 if (!data2)
22444 exit (1);
22445 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22446 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22447 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22448 exit (1);
22449 for (i = 0; i < pagesize; ++i)
22450 if (*(data + i) != *(data2 + i))
22451 exit (1);
22452
22453 /* Finally, make sure that changes to the mapped area do not
22454 percolate back to the file as seen by read(). (This is a bug on
22455 some variants of i386 svr4.0.) */
22456 for (i = 0; i < pagesize; ++i)
22457 *(data2 + i) = *(data2 + i) + 1;
22458 data3 = (char *) malloc (pagesize);
22459 if (!data3)
22460 exit (1);
22461 if (read (fd, data3, pagesize) != pagesize)
22462 exit (1);
22463 for (i = 0; i < pagesize; ++i)
22464 if (*(data + i) != *(data3 + i))
22465 exit (1);
22466 close (fd);
22467 exit (0);
22468}
22469_ACEOF
22470rm -f conftest$ac_exeext
22471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_func_mmap_fixed_mapped=yes
22482else
22483 echo "$as_me: program exited with status $ac_status" >&5
22484echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022485sed 's/^/| /' conftest.$ac_ext >&5
22486
John Criswell7a73b802003-06-30 21:59:07 +000022487( exit $ac_status )
22488ac_cv_func_mmap_fixed_mapped=no
22489fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022490rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022491fi
22492fi
22493echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22494echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22495if test $ac_cv_func_mmap_fixed_mapped = yes; then
22496
22497cat >>confdefs.h <<\_ACEOF
22498#define HAVE_MMAP 1
22499_ACEOF
22500
22501fi
22502rm -f conftest.mmap
22503
22504echo "$as_me:$LINENO: checking for mmap of files" >&5
22505echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22506if test "${ac_cv_func_mmap_file+set}" = set; then
22507 echo $ECHO_N "(cached) $ECHO_C" >&6
22508else
22509
22510
22511 ac_ext=c
22512ac_cpp='$CPP $CPPFLAGS'
22513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22515ac_compiler_gnu=$ac_cv_c_compiler_gnu
22516
22517 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22519See \`config.log' for more details." >&5
22520echo "$as_me: error: cannot run test program while cross compiling
22521See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022522 { (exit 1); exit 1; }; }
22523else
22524 cat >conftest.$ac_ext <<_ACEOF
22525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022526/* confdefs.h. */
22527_ACEOF
22528cat confdefs.h >>conftest.$ac_ext
22529cat >>conftest.$ac_ext <<_ACEOF
22530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022531
John Criswell7a73b802003-06-30 21:59:07 +000022532#ifdef HAVE_SYS_TYPES_H
22533#include <sys/types.h>
22534#endif
22535
John Criswell5ab73462003-10-09 15:44:28 +000022536#ifdef HAVE_SYS_MMAN_H
22537#include <sys/mman.h>
22538#endif
22539
John Criswell7a73b802003-06-30 21:59:07 +000022540#ifdef HAVE_FCNTL_H
22541#include <fcntl.h>
22542#endif
22543
22544 int fd;
22545 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022546 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 +000022547_ACEOF
22548rm -f conftest$ac_exeext
22549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22550 (eval $ac_link) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; }; then
22559 ac_cv_func_mmap_file=yes
22560else
22561 echo "$as_me: program exited with status $ac_status" >&5
22562echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022563sed 's/^/| /' conftest.$ac_ext >&5
22564
John Criswell7a73b802003-06-30 21:59:07 +000022565( exit $ac_status )
22566ac_cv_func_mmap_file=no
22567fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022568rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022569fi
22570 ac_ext=c
22571ac_cpp='$CPP $CPPFLAGS'
22572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22574ac_compiler_gnu=$ac_cv_c_compiler_gnu
22575
22576
22577fi
22578echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22579echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22580if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022581
22582cat >>confdefs.h <<\_ACEOF
22583#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022584_ACEOF
22585
22586 MMAP_FILE=yes
22587
22588fi
22589
22590if test ${ac_cv_func_mmap_file} = "no"
22591then
22592 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22593echo "$as_me: error: mmap() of files required but not found" >&2;}
22594 { (exit 1); exit 1; }; }
22595fi
22596echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22597echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22598if test "${ac_cv_header_mmap_anon+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600else
22601
22602
22603 ac_ext=c
22604ac_cpp='$CPP $CPPFLAGS'
22605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22607ac_compiler_gnu=$ac_cv_c_compiler_gnu
22608
22609 cat >conftest.$ac_ext <<_ACEOF
22610#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022616#include <sys/mman.h>
22617 #include <unistd.h>
22618 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022619int
22620main ()
22621{
22622mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22623 ;
22624 return 0;
22625}
22626_ACEOF
22627rm -f conftest.$ac_objext
22628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22629 (eval $ac_compile) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } &&
22633 { ac_try='test -s conftest.$ac_objext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 ac_cv_header_mmap_anon=yes
22640else
22641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022642sed 's/^/| /' conftest.$ac_ext >&5
22643
John Criswell7a73b802003-06-30 21:59:07 +000022644ac_cv_header_mmap_anon=no
22645fi
22646rm -f conftest.$ac_objext conftest.$ac_ext
22647 ac_ext=c
22648ac_cpp='$CPP $CPPFLAGS'
22649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22651ac_compiler_gnu=$ac_cv_c_compiler_gnu
22652
22653
22654fi
22655echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22656echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22657if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022658
22659cat >>confdefs.h <<\_ACEOF
22660#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022661_ACEOF
22662
22663fi
22664
22665echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22666echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22667if test "${ac_cv_type_signal+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22669else
22670 cat >conftest.$ac_ext <<_ACEOF
22671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022672/* confdefs.h. */
22673_ACEOF
22674cat confdefs.h >>conftest.$ac_ext
22675cat >>conftest.$ac_ext <<_ACEOF
22676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022677#include <sys/types.h>
22678#include <signal.h>
22679#ifdef signal
22680# undef signal
22681#endif
22682#ifdef __cplusplus
22683extern "C" void (*signal (int, void (*)(int)))(int);
22684#else
22685void (*signal ()) ();
22686#endif
22687
John Criswell7a73b802003-06-30 21:59:07 +000022688int
22689main ()
22690{
22691int i;
22692 ;
22693 return 0;
22694}
22695_ACEOF
22696rm -f conftest.$ac_objext
22697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22698 (eval $ac_compile) 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } &&
22702 { ac_try='test -s conftest.$ac_objext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 ac_cv_type_signal=void
22709else
22710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022711sed 's/^/| /' conftest.$ac_ext >&5
22712
John Criswell7a73b802003-06-30 21:59:07 +000022713ac_cv_type_signal=int
22714fi
22715rm -f conftest.$ac_objext conftest.$ac_ext
22716fi
22717echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22718echo "${ECHO_T}$ac_cv_type_signal" >&6
22719
22720cat >>confdefs.h <<_ACEOF
22721#define RETSIGTYPE $ac_cv_type_signal
22722_ACEOF
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
Brian Gaekec45be042003-10-07 06:01:34 +000022734
22735
John Criswella0137d32003-10-13 16:22:01 +000022736for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022737do
22738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739echo "$as_me:$LINENO: checking for $ac_func" >&5
22740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22741if eval "test \"\${$as_ac_var+set}\" = set"; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744 cat >conftest.$ac_ext <<_ACEOF
22745#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022751/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022752 which can conflict with char $ac_func (); below.
22753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22754 <limits.h> exists even on freestanding compilers. */
22755#ifdef __STDC__
22756# include <limits.h>
22757#else
22758# include <assert.h>
22759#endif
John Criswell7a73b802003-06-30 21:59:07 +000022760/* Override any gcc2 internal prototype to avoid an error. */
22761#ifdef __cplusplus
22762extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022763{
John Criswell7a73b802003-06-30 21:59:07 +000022764#endif
22765/* We use char because int might match the return type of a gcc2
22766 builtin and then its argument prototype would still apply. */
22767char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022768/* The GNU C library defines this for functions which it implements
22769 to always fail with ENOSYS. Some functions are actually named
22770 something starting with __ and the normal name is an alias. */
22771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22772choke me
22773#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022774char (*f) () = $ac_func;
22775#endif
22776#ifdef __cplusplus
22777}
John Criswell7a73b802003-06-30 21:59:07 +000022778#endif
22779
John Criswell0c38eaf2003-09-10 15:17:25 +000022780int
22781main ()
22782{
22783return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022784 ;
22785 return 0;
22786}
22787_ACEOF
22788rm -f conftest.$ac_objext conftest$ac_exeext
22789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22790 (eval $ac_link) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
22794 { ac_try='test -s conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 eval "$as_ac_var=yes"
22801else
22802 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022803sed 's/^/| /' conftest.$ac_ext >&5
22804
John Criswell7a73b802003-06-30 21:59:07 +000022805eval "$as_ac_var=no"
22806fi
22807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22808fi
22809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22811if test `eval echo '${'$as_ac_var'}'` = yes; then
22812 cat >>confdefs.h <<_ACEOF
22813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22814_ACEOF
22815
22816fi
22817done
22818
22819
22820
22821echo "$as_me:$LINENO: checking for mmap" >&5
22822echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22823if test "${ac_cv_func_mmap+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22825else
22826 cat >conftest.$ac_ext <<_ACEOF
22827#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022828/* confdefs.h. */
22829_ACEOF
22830cat confdefs.h >>conftest.$ac_ext
22831cat >>conftest.$ac_ext <<_ACEOF
22832/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022833/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022834 which can conflict with char mmap (); below.
22835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836 <limits.h> exists even on freestanding compilers. */
22837#ifdef __STDC__
22838# include <limits.h>
22839#else
22840# include <assert.h>
22841#endif
John Criswell7a73b802003-06-30 21:59:07 +000022842/* Override any gcc2 internal prototype to avoid an error. */
22843#ifdef __cplusplus
22844extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022845{
John Criswell7a73b802003-06-30 21:59:07 +000022846#endif
22847/* We use char because int might match the return type of a gcc2
22848 builtin and then its argument prototype would still apply. */
22849char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022850/* The GNU C library defines this for functions which it implements
22851 to always fail with ENOSYS. Some functions are actually named
22852 something starting with __ and the normal name is an alias. */
22853#if defined (__stub_mmap) || defined (__stub___mmap)
22854choke me
22855#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022856char (*f) () = mmap;
22857#endif
22858#ifdef __cplusplus
22859}
John Criswell7a73b802003-06-30 21:59:07 +000022860#endif
22861
John Criswell0c38eaf2003-09-10 15:17:25 +000022862int
22863main ()
22864{
22865return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022866 ;
22867 return 0;
22868}
22869_ACEOF
22870rm -f conftest.$ac_objext conftest$ac_exeext
22871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22872 (eval $ac_link) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } &&
22876 { ac_try='test -s conftest$ac_exeext'
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }; then
22882 ac_cv_func_mmap=yes
22883else
22884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022885sed 's/^/| /' conftest.$ac_ext >&5
22886
John Criswell7a73b802003-06-30 21:59:07 +000022887ac_cv_func_mmap=no
22888fi
22889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22890fi
22891echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22892echo "${ECHO_T}$ac_cv_func_mmap" >&6
22893if test $ac_cv_func_mmap = yes; then
22894 :
22895else
22896 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22897echo "$as_me: error: Function mmap() required but not found" >&2;}
22898 { (exit 1); exit 1; }; }
22899fi
22900
22901echo "$as_me:$LINENO: checking for mprotect" >&5
22902echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22903if test "${ac_cv_func_mprotect+set}" = set; then
22904 echo $ECHO_N "(cached) $ECHO_C" >&6
22905else
22906 cat >conftest.$ac_ext <<_ACEOF
22907#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022908/* confdefs.h. */
22909_ACEOF
22910cat confdefs.h >>conftest.$ac_ext
22911cat >>conftest.$ac_ext <<_ACEOF
22912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022913/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022914 which can conflict with char mprotect (); below.
22915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22916 <limits.h> exists even on freestanding compilers. */
22917#ifdef __STDC__
22918# include <limits.h>
22919#else
22920# include <assert.h>
22921#endif
John Criswell7a73b802003-06-30 21:59:07 +000022922/* Override any gcc2 internal prototype to avoid an error. */
22923#ifdef __cplusplus
22924extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022925{
John Criswell7a73b802003-06-30 21:59:07 +000022926#endif
22927/* We use char because int might match the return type of a gcc2
22928 builtin and then its argument prototype would still apply. */
22929char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022930/* The GNU C library defines this for functions which it implements
22931 to always fail with ENOSYS. Some functions are actually named
22932 something starting with __ and the normal name is an alias. */
22933#if defined (__stub_mprotect) || defined (__stub___mprotect)
22934choke me
22935#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022936char (*f) () = mprotect;
22937#endif
22938#ifdef __cplusplus
22939}
John Criswell7a73b802003-06-30 21:59:07 +000022940#endif
22941
John Criswell0c38eaf2003-09-10 15:17:25 +000022942int
22943main ()
22944{
22945return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022946 ;
22947 return 0;
22948}
22949_ACEOF
22950rm -f conftest.$ac_objext conftest$ac_exeext
22951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 (eval $ac_link) 2>&5
22953 ac_status=$?
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } &&
22956 { ac_try='test -s conftest$ac_exeext'
22957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; }; then
22962 ac_cv_func_mprotect=yes
22963else
22964 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022965sed 's/^/| /' conftest.$ac_ext >&5
22966
John Criswell7a73b802003-06-30 21:59:07 +000022967ac_cv_func_mprotect=no
22968fi
22969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22970fi
22971echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22972echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22973if test $ac_cv_func_mprotect = yes; then
22974 :
22975else
22976 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22977echo "$as_me: error: Function mprotect() required but not found" >&2;}
22978 { (exit 1); exit 1; }; }
22979fi
22980
22981
John Criswellb13092b2003-07-22 21:00:24 +000022982
John Criswell7a73b802003-06-30 21:59:07 +000022983# Check whether --enable-purify or --disable-purify was given.
22984if test "${enable_purify+set}" = set; then
22985 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022986
22987else
John Criswellb13092b2003-07-22 21:00:24 +000022988 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022989fi;
John Criswellb13092b2003-07-22 21:00:24 +000022990if test ${enableval} = "no"
22991then
22992 ENABLE_PURIFY=
22993
22994else
22995 ENABLE_PURIFY=ENABLE_PURIFY=1
22996
22997fi
22998
John Criswell7a73b802003-06-30 21:59:07 +000022999# Check whether --enable-optimized or --disable-optimized was given.
23000if test "${enable_optimized+set}" = set; then
23001 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023002
23003else
John Criswellb13092b2003-07-22 21:00:24 +000023004 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023005fi;
John Criswellb13092b2003-07-22 21:00:24 +000023006if test ${enableval} = "no"
23007then
23008 ENABLE_OPTIMIZED=
23009
23010else
23011 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23012
23013fi
23014
John Criswell55126592003-10-07 21:57:39 +000023015# Check whether --enable-spec2000 or --disable-spec2000 was given.
23016if test "${enable_spec2000+set}" = set; then
23017 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000023018
23019else
John Criswellb13092b2003-07-22 21:00:24 +000023020 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023021fi;
John Criswellb13092b2003-07-22 21:00:24 +000023022if test ${enableval} = "no"
23023then
John Criswell55126592003-10-07 21:57:39 +000023024 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
23025 then
23026 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000023027
John Criswell55126592003-10-07 21:57:39 +000023028 USE_SPEC=USE_SPEC=1
23029
23030 else
23031 USE_SPEC=
23032
23033
23034 fi
John Criswellb13092b2003-07-22 21:00:24 +000023035else
John Criswell55126592003-10-07 21:57:39 +000023036 if test ${enableval} = ""
23037 then
23038 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23039
23040 else
23041 SPEC_ROOT=${enableval}
23042
23043 fi
John Criswellb13092b2003-07-22 21:00:24 +000023044 USE_SPEC=USE_SPEC=1
23045
23046fi
23047
John Criswell7a73b802003-06-30 21:59:07 +000023048# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23049if test "${enable_precompiled_bytecode+set}" = set; then
23050 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023051
23052else
John Criswellb13092b2003-07-22 21:00:24 +000023053 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023054fi;
John Criswellb13092b2003-07-22 21:00:24 +000023055if test ${enableval} = "no"
23056then
23057 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023058
John Criswellb13092b2003-07-22 21:00:24 +000023059else
23060 UPB=USE_PRECOMPILED_BYTECODE=1
23061
23062fi
John Criswellf02dbf02003-07-22 20:07:49 +000023063
23064
23065# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23066if test "${enable_llc_diffs+set}" = set; then
23067 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023068
23069else
John Criswellb13092b2003-07-22 21:00:24 +000023070 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023071fi;
John Criswellb13092b2003-07-22 21:00:24 +000023072if test ${enableval} = "no"
23073then
23074 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023075
John Criswellb13092b2003-07-22 21:00:24 +000023076else
23077 DISABLE_LLC_DIFFS=
23078
23079fi
23080
23081# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023082if test "${enable_jit+set}" = set; then
23083 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023084
23085else
John Criswellc78022e2003-07-29 19:11:58 +000023086 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023087fi;
John Criswellb13092b2003-07-22 21:00:24 +000023088
23089if test ${enableval} = "no"
23090then
23091 JIT=
23092
23093else
John Criswellc78022e2003-07-29 19:11:58 +000023094 case $target in
23095 *i*86*)
23096 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023097
John Criswellc78022e2003-07-29 19:11:58 +000023098 ;;
23099 *sparc*)
23100 JIT=TARGET_HAS_JIT=1
23101
23102 ;;
23103 *)
23104 JIT=
23105
23106 ;;
23107 esac
John Criswellb13092b2003-07-22 21:00:24 +000023108fi
John Criswell7a73b802003-06-30 21:59:07 +000023109
23110
John Criswellc78022e2003-07-29 19:11:58 +000023111
John Criswell7a73b802003-06-30 21:59:07 +000023112# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23113if test "${with_llvmgccdir+set}" = set; then
23114 withval="$with_llvmgccdir"
23115 LLVMGCCDIR=$withval
23116
23117fi;
23118
Brian Gaekef3b24102003-11-16 18:38:14 +000023119echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23120echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23121LLVM_GCC_CHECK=no
23122if test -d "$LLVMGCCDIR"
23123then
23124 if test -x "$LLVMGCCDIR/bin/gcc"
23125 then
23126 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23127 fi
23128fi
23129llvmgccwarn=no
23130echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23131echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23132if test "$LLVM_GCC_CHECK" = "no"
23133then
23134 llvmgccwarn=yes
23135fi
23136
23137echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23138echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23139LLVM_GCC_SANE=no
23140if test -x "$LLVM_GCC_CHECK"
23141then
23142 cp /dev/null conftest.c
23143 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23144 if test $? -eq 0
23145 then
23146 LLVM_GCC_SANE=yes
23147 fi
23148 rm conftest.c
23149fi
23150echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23151echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23152if test "$LLVM_GCC_SANE" = "no"
23153then
23154 llvmgccwarn=yes
23155fi
23156
John Criswellc78022e2003-07-29 19:11:58 +000023157
John Criswell7a73b802003-06-30 21:59:07 +000023158# Check whether --with-bcrepos or --without-bcrepos was given.
23159if test "${with_bcrepos+set}" = set; then
23160 withval="$with_bcrepos"
23161 BCR=$withval
23162
23163else
23164 BCR=/home/vadve/lattner/LLVMPrograms
23165
23166fi;
23167
John Criswellc78022e2003-07-29 19:11:58 +000023168
John Criswell7a73b802003-06-30 21:59:07 +000023169# Check whether --with-papi or --without-papi was given.
23170if test "${with_papi+set}" = set; then
23171 withval="$with_papi"
23172 PAPIDIR=$withval
23173
23174else
John Criswellde00db22003-08-25 16:49:54 +000023175 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023176
23177fi;
23178
John Criswell7a73b802003-06-30 21:59:07 +000023179
23180# Check whether --with-purify or --without-purify was given.
23181if test "${with_purify+set}" = set; then
23182 withval="$with_purify"
23183 PURIFY=$withval
23184
23185fi;
23186
John Criswellde00db22003-08-25 16:49:54 +000023187
John Criswell0c38eaf2003-09-10 15:17:25 +000023188 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000023189cat >confcache <<\_ACEOF
23190# This file is a shell script that caches the results of configure
23191# tests run on this system so they can be shared between configure
23192# scripts and configure runs, see configure's option --config-cache.
23193# It is not useful on other systems. If it contains results you don't
23194# want to keep, you may remove or edit it.
23195#
23196# config.status only pays attention to the cache file if you give it
23197# the --recheck option to rerun configure.
23198#
John Criswell0c38eaf2003-09-10 15:17:25 +000023199# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023200# loading this file, other *unset* `ac_cv_foo' will be assigned the
23201# following values.
23202
23203_ACEOF
23204
23205# The following way of writing the cache mishandles newlines in values,
23206# but we know of no workaround that is simple, portable, and efficient.
23207# So, don't put newlines in cache variables' values.
23208# Ultrix sh set writes to stderr and can't be redirected directly,
23209# and sets the high bit in the cache file unless we assign to the vars.
23210{
23211 (set) 2>&1 |
23212 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23213 *ac_space=\ *)
23214 # `set' does not quote correctly, so add quotes (double-quote
23215 # substitution turns \\\\ into \\, and sed turns \\ into \).
23216 sed -n \
23217 "s/'/'\\\\''/g;
23218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23219 ;;
23220 *)
23221 # `set' quotes correctly as required by POSIX, so do not add quotes.
23222 sed -n \
23223 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23224 ;;
23225 esac;
23226} |
23227 sed '
23228 t clear
23229 : clear
23230 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23231 t end
23232 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23233 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023234if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023235 if test -w $cache_file; then
23236 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23237 cat confcache >$cache_file
23238 else
23239 echo "not updating unwritable cache $cache_file"
23240 fi
23241fi
23242rm -f confcache
23243
23244test "x$prefix" = xNONE && prefix=$ac_default_prefix
23245# Let make expand exec_prefix.
23246test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23247
23248# VPATH may cause trouble with some makes, so we remove $(srcdir),
23249# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23250# trailing colons and then remove the whole line if VPATH becomes empty
23251# (actually we leave an empty line to preserve line numbers).
23252if test "x$srcdir" = x.; then
23253 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23254s/:*\$(srcdir):*/:/;
23255s/:*\${srcdir}:*/:/;
23256s/:*@srcdir@:*/:/;
23257s/^\([^=]*=[ ]*\):*/\1/;
23258s/:*$//;
23259s/^[^=]*=[ ]*$//;
23260}'
23261fi
23262
23263DEFS=-DHAVE_CONFIG_H
23264
John Criswell0c38eaf2003-09-10 15:17:25 +000023265ac_libobjs=
23266ac_ltlibobjs=
23267for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23268 # 1. Remove the extension, and $U if already installed.
23269 ac_i=`echo "$ac_i" |
23270 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23271 # 2. Add them.
23272 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23273 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23274done
23275LIBOBJS=$ac_libobjs
23276
23277LTLIBOBJS=$ac_ltlibobjs
23278
23279
John Criswell7a73b802003-06-30 21:59:07 +000023280
23281: ${CONFIG_STATUS=./config.status}
23282ac_clean_files_save=$ac_clean_files
23283ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23284{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23285echo "$as_me: creating $CONFIG_STATUS" >&6;}
23286cat >$CONFIG_STATUS <<_ACEOF
23287#! $SHELL
23288# Generated by $as_me.
23289# Run this file to recreate the current configuration.
23290# Compiler output produced by configure, useful for debugging
23291# configure, is in config.log if it exists.
23292
23293debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023294ac_cs_recheck=false
23295ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023296SHELL=\${CONFIG_SHELL-$SHELL}
23297_ACEOF
23298
23299cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023300## --------------------- ##
23301## M4sh Initialization. ##
23302## --------------------- ##
23303
23304# Be Bourne compatible
23305if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23306 emulate sh
23307 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023308 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23309 # is contrary to our usage. Disable this feature.
23310 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023311elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23312 set -o posix
23313fi
23314
John Criswell7a73b802003-06-30 21:59:07 +000023315# Support unset when possible.
23316if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23317 as_unset=unset
23318else
23319 as_unset=false
23320fi
23321
John Criswell0c38eaf2003-09-10 15:17:25 +000023322
23323# Work around bugs in pre-3.0 UWIN ksh.
23324$as_unset ENV MAIL MAILPATH
23325PS1='$ '
23326PS2='> '
23327PS4='+ '
23328
23329# NLS nuisances.
23330for as_var in \
23331 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23332 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23333 LC_TELEPHONE LC_TIME
23334do
23335 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23336 eval $as_var=C; export $as_var
23337 else
23338 $as_unset $as_var
23339 fi
23340done
23341
23342# Required to use basename.
23343if expr a : '\(a\)' >/dev/null 2>&1; then
23344 as_expr=expr
23345else
23346 as_expr=false
23347fi
23348
23349if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23350 as_basename=basename
23351else
23352 as_basename=false
23353fi
John Criswell7a73b802003-06-30 21:59:07 +000023354
23355
23356# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023357as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023358$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23359 X"$0" : 'X\(//\)$' \| \
23360 X"$0" : 'X\(/\)$' \| \
23361 . : '\(.\)' 2>/dev/null ||
23362echo X/"$0" |
23363 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23364 /^X\/\(\/\/\)$/{ s//\1/; q; }
23365 /^X\/\(\/\).*/{ s//\1/; q; }
23366 s/.*/./; q'`
23367
John Criswell0c38eaf2003-09-10 15:17:25 +000023368
John Criswell7a73b802003-06-30 21:59:07 +000023369# PATH needs CR, and LINENO needs CR and PATH.
23370# Avoid depending upon Character Ranges.
23371as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23372as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23373as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23374as_cr_digits='0123456789'
23375as_cr_alnum=$as_cr_Letters$as_cr_digits
23376
23377# The user is always right.
23378if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023379 echo "#! /bin/sh" >conf$$.sh
23380 echo "exit 0" >>conf$$.sh
23381 chmod +x conf$$.sh
23382 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023383 PATH_SEPARATOR=';'
23384 else
23385 PATH_SEPARATOR=:
23386 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023387 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023388fi
23389
23390
23391 as_lineno_1=$LINENO
23392 as_lineno_2=$LINENO
23393 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23394 test "x$as_lineno_1" != "x$as_lineno_2" &&
23395 test "x$as_lineno_3" = "x$as_lineno_2" || {
23396 # Find who we are. Look in the path if we contain no path at all
23397 # relative or not.
23398 case $0 in
23399 *[\\/]* ) as_myself=$0 ;;
23400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23401for as_dir in $PATH
23402do
23403 IFS=$as_save_IFS
23404 test -z "$as_dir" && as_dir=.
23405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23406done
23407
23408 ;;
23409 esac
23410 # We did not find ourselves, most probably we were run as `sh COMMAND'
23411 # in which case we are not to be found in the path.
23412 if test "x$as_myself" = x; then
23413 as_myself=$0
23414 fi
23415 if test ! -f "$as_myself"; then
23416 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23417echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23418 { (exit 1); exit 1; }; }
23419 fi
23420 case $CONFIG_SHELL in
23421 '')
23422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23423for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23424do
23425 IFS=$as_save_IFS
23426 test -z "$as_dir" && as_dir=.
23427 for as_base in sh bash ksh sh5; do
23428 case $as_dir in
23429 /*)
23430 if ("$as_dir/$as_base" -c '
23431 as_lineno_1=$LINENO
23432 as_lineno_2=$LINENO
23433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23434 test "x$as_lineno_1" != "x$as_lineno_2" &&
23435 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023436 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23437 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023438 CONFIG_SHELL=$as_dir/$as_base
23439 export CONFIG_SHELL
23440 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23441 fi;;
23442 esac
23443 done
23444done
23445;;
23446 esac
23447
23448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23449 # uniformly replaced by the line number. The first 'sed' inserts a
23450 # line-number line before each line; the second 'sed' does the real
23451 # work. The second script uses 'N' to pair each line-number line
23452 # with the numbered line, and appends trailing '-' during
23453 # substitution so that $LINENO is not a special case at line end.
23454 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23455 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23456 sed '=' <$as_myself |
23457 sed '
23458 N
23459 s,$,-,
23460 : loop
23461 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23462 t loop
23463 s,-$,,
23464 s,^['$as_cr_digits']*\n,,
23465 ' >$as_me.lineno &&
23466 chmod +x $as_me.lineno ||
23467 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23468echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23469 { (exit 1); exit 1; }; }
23470
23471 # Don't try to exec as it changes $[0], causing all sort of problems
23472 # (the dirname of $[0] is not the place where we might find the
23473 # original and so on. Autoconf is especially sensible to this).
23474 . ./$as_me.lineno
23475 # Exit status is that of the last command.
23476 exit
23477}
23478
23479
23480case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23481 *c*,-n*) ECHO_N= ECHO_C='
23482' ECHO_T=' ' ;;
23483 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23484 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23485esac
23486
23487if expr a : '\(a\)' >/dev/null 2>&1; then
23488 as_expr=expr
23489else
23490 as_expr=false
23491fi
23492
23493rm -f conf$$ conf$$.exe conf$$.file
23494echo >conf$$.file
23495if ln -s conf$$.file conf$$ 2>/dev/null; then
23496 # We could just check for DJGPP; but this test a) works b) is more generic
23497 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23498 if test -f conf$$.exe; then
23499 # Don't use ln at all; we don't have any links
23500 as_ln_s='cp -p'
23501 else
23502 as_ln_s='ln -s'
23503 fi
23504elif ln conf$$.file conf$$ 2>/dev/null; then
23505 as_ln_s=ln
23506else
23507 as_ln_s='cp -p'
23508fi
23509rm -f conf$$ conf$$.exe conf$$.file
23510
John Criswell0c38eaf2003-09-10 15:17:25 +000023511if mkdir -p . 2>/dev/null; then
23512 as_mkdir_p=:
23513else
23514 as_mkdir_p=false
23515fi
23516
John Criswell7a73b802003-06-30 21:59:07 +000023517as_executable_p="test -f"
23518
23519# Sed expression to map a string onto a valid CPP name.
23520as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23521
23522# Sed expression to map a string onto a valid variable name.
23523as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23524
23525
23526# IFS
23527# We need space, tab and new line, in precisely that order.
23528as_nl='
23529'
23530IFS=" $as_nl"
23531
23532# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023533$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023534
23535exec 6>&1
23536
23537# Open the log real soon, to keep \$[0] and so on meaningful, and to
23538# report actual input values of CONFIG_FILES etc. instead of their
23539# values after options handling. Logging --version etc. is OK.
23540exec 5>>config.log
23541{
23542 echo
23543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23544## Running $as_me. ##
23545_ASBOX
23546} >&5
23547cat >&5 <<_CSEOF
23548
23549This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023550generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023551
23552 CONFIG_FILES = $CONFIG_FILES
23553 CONFIG_HEADERS = $CONFIG_HEADERS
23554 CONFIG_LINKS = $CONFIG_LINKS
23555 CONFIG_COMMANDS = $CONFIG_COMMANDS
23556 $ $0 $@
23557
23558_CSEOF
23559echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23560echo >&5
23561_ACEOF
23562
23563# Files that config.status was made for.
23564if test -n "$ac_config_files"; then
23565 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23566fi
23567
23568if test -n "$ac_config_headers"; then
23569 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23570fi
23571
23572if test -n "$ac_config_links"; then
23573 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23574fi
23575
23576if test -n "$ac_config_commands"; then
23577 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23578fi
23579
23580cat >>$CONFIG_STATUS <<\_ACEOF
23581
23582ac_cs_usage="\
23583\`$as_me' instantiates files from templates according to the
23584current configuration.
23585
23586Usage: $0 [OPTIONS] [FILE]...
23587
23588 -h, --help print this help, then exit
23589 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023590 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023591 -d, --debug don't remove temporary files
23592 --recheck update $as_me by reconfiguring in the same conditions
23593 --file=FILE[:TEMPLATE]
23594 instantiate the configuration file FILE
23595 --header=FILE[:TEMPLATE]
23596 instantiate the configuration header FILE
23597
23598Configuration files:
23599$config_files
23600
23601Configuration headers:
23602$config_headers
23603
John Criswellc764fbc2003-09-06 15:17:13 +000023604Configuration commands:
23605$config_commands
23606
John Criswell7a73b802003-06-30 21:59:07 +000023607Report bugs to <bug-autoconf@gnu.org>."
23608_ACEOF
23609
23610cat >>$CONFIG_STATUS <<_ACEOF
23611ac_cs_version="\\
23612[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023613configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023614 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23615
23616Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23617Free Software Foundation, Inc.
23618This config.status script is free software; the Free Software Foundation
23619gives unlimited permission to copy, distribute and modify it."
23620srcdir=$srcdir
23621INSTALL="$INSTALL"
23622_ACEOF
23623
23624cat >>$CONFIG_STATUS <<\_ACEOF
23625# If no file are specified by the user, then we need to provide default
23626# value. By we need to know if files were specified by the user.
23627ac_need_defaults=:
23628while test $# != 0
23629do
23630 case $1 in
23631 --*=*)
23632 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23633 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023634 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023635 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023636 -*)
23637 ac_option=$1
23638 ac_optarg=$2
23639 ac_shift=shift
23640 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023641 *) # This is not an option, so the user has probably given explicit
23642 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023643 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023644 ac_need_defaults=false;;
23645 esac
23646
John Criswell0c38eaf2003-09-10 15:17:25 +000023647 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023648 # Handling of the options.
23649_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023650cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023651 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23652 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023653 --version | --vers* | -V )
23654 echo "$ac_cs_version"; exit 0 ;;
23655 --he | --h)
23656 # Conflict between --help and --header
23657 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23658Try \`$0 --help' for more information." >&5
23659echo "$as_me: error: ambiguous option: $1
23660Try \`$0 --help' for more information." >&2;}
23661 { (exit 1); exit 1; }; };;
23662 --help | --hel | -h )
23663 echo "$ac_cs_usage"; exit 0 ;;
23664 --debug | --d* | -d )
23665 debug=: ;;
23666 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023667 $ac_shift
23668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023669 ac_need_defaults=false;;
23670 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023671 $ac_shift
23672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023673 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23676 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023677
23678 # This is an error.
23679 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23680Try \`$0 --help' for more information." >&5
23681echo "$as_me: error: unrecognized option: $1
23682Try \`$0 --help' for more information." >&2;}
23683 { (exit 1); exit 1; }; } ;;
23684
23685 *) ac_config_targets="$ac_config_targets $1" ;;
23686
23687 esac
23688 shift
23689done
23690
John Criswell0c38eaf2003-09-10 15:17:25 +000023691ac_configure_extra_args=
23692
23693if $ac_cs_silent; then
23694 exec 6>/dev/null
23695 ac_configure_extra_args="$ac_configure_extra_args --silent"
23696fi
23697
23698_ACEOF
23699cat >>$CONFIG_STATUS <<_ACEOF
23700if \$ac_cs_recheck; then
23701 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23702 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23703fi
23704
John Criswell7a73b802003-06-30 21:59:07 +000023705_ACEOF
23706
John Criswellc764fbc2003-09-06 15:17:13 +000023707cat >>$CONFIG_STATUS <<_ACEOF
23708#
23709# INIT-COMMANDS section.
23710#
John Criswell7a73b802003-06-30 21:59:07 +000023711
John Criswellc764fbc2003-09-06 15:17:13 +000023712${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23713${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23714${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23715${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23716${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23717${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23718${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23719${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23720${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23721${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23722${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23723${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23724${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23725${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23726${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23727${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23728${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023729${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23730${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23731${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23732${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23733${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023734${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023735${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23736${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23737${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23738${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23739${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23740${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23741${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23742${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23743${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23744${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23745${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23746${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23747${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23748${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23749${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023750${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023751${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23752${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23753${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23754${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023755${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023756${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023757${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23758${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023759${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23760${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023761${srcdir}/autoconf/mkinstalldirs `dirname runtime/libprofile/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023762${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23763${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023764${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23765${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023766${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23767${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23768${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23769${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23770${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23771${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23772${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23773${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23774${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23775${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23776${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23777${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23778${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23779${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23780${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23781${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23782${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23783${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023784${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023785${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023786${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023787${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23788${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23789${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23790${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23791${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23792${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23793${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23794${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23795${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23796${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023797${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23798${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023799${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23800${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23801${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23802${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23803${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23804${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23805${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023806${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23807${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023808${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23809${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023810${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23811${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
Misha Brukman811ce9f2003-11-12 22:16:51 +000023812${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/Makefile`
23813${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile`
23814${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23815${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23816${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23817${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23818${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23819${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23820${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23821${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23822${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23823${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23824${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23825${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23826${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswell48e3cb92003-09-12 16:31:43 +000023827${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23828${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23829${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23830${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23831${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23832${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23833${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23834${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23835${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23836${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23837${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23838${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23839${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23840${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23841${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23842${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23843${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23844${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23845${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23846${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23847${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23848${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023849${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023850${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23851${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23852${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23853${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23854${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23855${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023856${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023857${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023858${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23859${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023860${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23861${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23862${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23863${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23864${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23865${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023866${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023867${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023868${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023869${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023870${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23871${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023872${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023873${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23874${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023875${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023876${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23877${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23878${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023879${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023880${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023881${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023882${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023883${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023884${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023885${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023886${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswell759c3ed2003-10-28 19:21:11 +000023887${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-prof/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023888${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023889${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23890${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23891${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23892${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023893${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023894${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23895${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23896${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23897${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23898
23899_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023900
23901
23902
23903cat >>$CONFIG_STATUS <<\_ACEOF
23904for ac_config_target in $ac_config_targets
23905do
23906 case "$ac_config_target" in
23907 # Handling of arguments.
23908 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023909 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23910 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23911 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23912 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23913 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23914 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23915 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23916 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23917 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23918 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23919 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23920 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23921 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23922 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23923 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23924 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23925 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023926 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23927 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23928 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23929 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23930 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023931 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023932 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23933 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23934 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23935 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23936 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23937 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23938 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23939 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23940 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23941 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23942 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23943 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23944 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23945 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23946 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023947 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023948 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23949 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23950 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23951 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023952 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023953 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023954 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23955 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023956 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23957 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000023958 "runtime/libprofile/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libprofile/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023959 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23960 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023961 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23962 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023963 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23964 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23965 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23966 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23967 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23968 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23969 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23970 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23971 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23972 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23973 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23974 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23975 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23976 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23977 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23978 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23979 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23980 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023981 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023982 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023983 "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 +000023984 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23985 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23986 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23987 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23988 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23989 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23990 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23991 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23992 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23993 "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 +000023994 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23995 "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 +000023996 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23997 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23998 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23999 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
24000 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
24001 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24002 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024003 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
24004 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000024005 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
24006 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024007 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
24008 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024009 "test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/Makefile" ;;
24010 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/Makefile" ;;
24011 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24012 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24013 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24014 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24015 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24016 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24017 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24018 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24019 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24020 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24021 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24022 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24023 "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 +000024024 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
24025 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
24026 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
24027 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
24028 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
24029 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
24030 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
24031 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
24032 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
24033 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
24034 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
24035 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
24036 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
24037 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
24038 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
24039 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
24040 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
24041 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
24042 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
24043 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
24044 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
24045 "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 +000024046 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024047 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
24048 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
24049 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
24050 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
24051 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
24052 "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 +000024053 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000024054 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024055 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24056 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000024057 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
24058 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
24059 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
24060 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
24061 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
24062 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024063 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024064 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000024065 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000024066 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000024067 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
24068 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024069 "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 +000024070 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24071 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024072 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024073 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
24074 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
24075 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024076 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024077 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024078 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024079 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024080 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024081 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024082 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024083 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024084 "tools/llvm-prof/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-prof/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024085 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024086 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24087 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
24088 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
24089 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024090 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024091 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
24092 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
24093 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
24094 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024095 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24096 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24097echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24098 { (exit 1); exit 1; }; };;
24099 esac
24100done
24101
24102# If the user did not use the arguments to specify the items to instantiate,
24103# then the envvar interface is used. Set only those that are not.
24104# We use the long form for the default assignment because of an extremely
24105# bizarre bug on SunOS 4.1.3.
24106if $ac_need_defaults; then
24107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000024109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024110fi
24111
John Criswell0c38eaf2003-09-10 15:17:25 +000024112# Have a temporary directory for convenience. Make it in the build tree
24113# simply because there is no reason to put it here, and in addition,
24114# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024115# Create a temporary directory, and hook for its removal unless debugging.
24116$debug ||
24117{
24118 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24119 trap '{ (exit 1); exit 1; }' 1 2 13 15
24120}
24121
24122# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024123
John Criswell7a73b802003-06-30 21:59:07 +000024124{
John Criswell0c38eaf2003-09-10 15:17:25 +000024125 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024126 test -n "$tmp" && test -d "$tmp"
24127} ||
24128{
John Criswell0c38eaf2003-09-10 15:17:25 +000024129 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024130 (umask 077 && mkdir $tmp)
24131} ||
24132{
John Criswell0c38eaf2003-09-10 15:17:25 +000024133 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024134 { (exit 1); exit 1; }
24135}
24136
24137_ACEOF
24138
24139cat >>$CONFIG_STATUS <<_ACEOF
24140
24141#
24142# CONFIG_FILES section.
24143#
24144
24145# No need to generate the scripts if there are no CONFIG_FILES.
24146# This happens for instance when ./config.status config.h
24147if test -n "\$CONFIG_FILES"; then
24148 # Protect against being on the right side of a sed subst in config.status.
24149 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24150 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24151s,@SHELL@,$SHELL,;t t
24152s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24153s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24154s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24155s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24156s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24157s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24158s,@exec_prefix@,$exec_prefix,;t t
24159s,@prefix@,$prefix,;t t
24160s,@program_transform_name@,$program_transform_name,;t t
24161s,@bindir@,$bindir,;t t
24162s,@sbindir@,$sbindir,;t t
24163s,@libexecdir@,$libexecdir,;t t
24164s,@datadir@,$datadir,;t t
24165s,@sysconfdir@,$sysconfdir,;t t
24166s,@sharedstatedir@,$sharedstatedir,;t t
24167s,@localstatedir@,$localstatedir,;t t
24168s,@libdir@,$libdir,;t t
24169s,@includedir@,$includedir,;t t
24170s,@oldincludedir@,$oldincludedir,;t t
24171s,@infodir@,$infodir,;t t
24172s,@mandir@,$mandir,;t t
24173s,@build_alias@,$build_alias,;t t
24174s,@host_alias@,$host_alias,;t t
24175s,@target_alias@,$target_alias,;t t
24176s,@DEFS@,$DEFS,;t t
24177s,@ECHO_C@,$ECHO_C,;t t
24178s,@ECHO_N@,$ECHO_N,;t t
24179s,@ECHO_T@,$ECHO_T,;t t
24180s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024181s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024182s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24183s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24184s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24185s,@build@,$build,;t t
24186s,@build_cpu@,$build_cpu,;t t
24187s,@build_vendor@,$build_vendor,;t t
24188s,@build_os@,$build_os,;t t
24189s,@host@,$host,;t t
24190s,@host_cpu@,$host_cpu,;t t
24191s,@host_vendor@,$host_vendor,;t t
24192s,@host_os@,$host_os,;t t
24193s,@target@,$target,;t t
24194s,@target_cpu@,$target_cpu,;t t
24195s,@target_vendor@,$target_vendor,;t t
24196s,@target_os@,$target_os,;t t
24197s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024198s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024199s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024200s,@CXX@,$CXX,;t t
24201s,@CXXFLAGS@,$CXXFLAGS,;t t
24202s,@LDFLAGS@,$LDFLAGS,;t t
24203s,@CPPFLAGS@,$CPPFLAGS,;t t
24204s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24205s,@EXEEXT@,$EXEEXT,;t t
24206s,@OBJEXT@,$OBJEXT,;t t
24207s,@CC@,$CC,;t t
24208s,@CFLAGS@,$CFLAGS,;t t
24209s,@ac_ct_CC@,$ac_ct_CC,;t t
24210s,@CPP@,$CPP,;t t
24211s,@ifGNUmake@,$ifGNUmake,;t t
24212s,@LEX@,$LEX,;t t
24213s,@LEXLIB@,$LEXLIB,;t t
24214s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24215s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024216s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024217s,@LN_S@,$LN_S,;t t
24218s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024219s,@AR@,$AR,;t t
24220s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024221s,@RANLIB@,$RANLIB,;t t
24222s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24223s,@STRIP@,$STRIP,;t t
24224s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024225s,@CXXCPP@,$CXXCPP,;t t
24226s,@F77@,$F77,;t t
24227s,@FFLAGS@,$FFLAGS,;t t
24228s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024229s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000024230s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024231s,@SED@,$SED,;t t
24232s,@RM@,$RM,;t t
24233s,@MKDIR@,$MKDIR,;t t
24234s,@DATE@,$DATE,;t t
24235s,@MV@,$MV,;t t
24236s,@DOT@,$DOT,;t t
24237s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024238s,@PYTHON@,$PYTHON,;t t
24239s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024240s,@ALLOCA@,$ALLOCA,;t t
24241s,@LIBOBJS@,$LIBOBJS,;t t
24242s,@MMAP_FILE@,$MMAP_FILE,;t t
24243s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024244s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000024245s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024246s,@USE_SPEC@,$USE_SPEC,;t t
24247s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024248s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024249s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024250s,@BCR@,$BCR,;t t
24251s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000024252s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024253s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024254CEOF
24255
24256_ACEOF
24257
24258 cat >>$CONFIG_STATUS <<\_ACEOF
24259 # Split the substitutions into bite-sized pieces for seds with
24260 # small command number limits, like on Digital OSF/1 and HP-UX.
24261 ac_max_sed_lines=48
24262 ac_sed_frag=1 # Number of current file.
24263 ac_beg=1 # First line for current file.
24264 ac_end=$ac_max_sed_lines # Line after last line for current file.
24265 ac_more_lines=:
24266 ac_sed_cmds=
24267 while $ac_more_lines; do
24268 if test $ac_beg -gt 1; then
24269 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24270 else
24271 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24272 fi
24273 if test ! -s $tmp/subs.frag; then
24274 ac_more_lines=false
24275 else
24276 # The purpose of the label and of the branching condition is to
24277 # speed up the sed processing (if there are no `@' at all, there
24278 # is no need to browse any of the substitutions).
24279 # These are the two extra sed commands mentioned above.
24280 (echo ':t
24281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24282 if test -z "$ac_sed_cmds"; then
24283 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24284 else
24285 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24286 fi
24287 ac_sed_frag=`expr $ac_sed_frag + 1`
24288 ac_beg=$ac_end
24289 ac_end=`expr $ac_end + $ac_max_sed_lines`
24290 fi
24291 done
24292 if test -z "$ac_sed_cmds"; then
24293 ac_sed_cmds=cat
24294 fi
24295fi # test -n "$CONFIG_FILES"
24296
24297_ACEOF
24298cat >>$CONFIG_STATUS <<\_ACEOF
24299for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24301 case $ac_file in
24302 - | *:- | *:-:* ) # input from stdin
24303 cat >$tmp/stdin
24304 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24306 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24308 * ) ac_file_in=$ac_file.in ;;
24309 esac
24310
24311 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24314 X"$ac_file" : 'X\(//\)[^/]' \| \
24315 X"$ac_file" : 'X\(//\)$' \| \
24316 X"$ac_file" : 'X\(/\)' \| \
24317 . : '\(.\)' 2>/dev/null ||
24318echo X"$ac_file" |
24319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24321 /^X\(\/\/\)$/{ s//\1/; q; }
24322 /^X\(\/\).*/{ s//\1/; q; }
24323 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024324 { if $as_mkdir_p; then
24325 mkdir -p "$ac_dir"
24326 else
24327 as_dir="$ac_dir"
24328 as_dirs=
24329 while test ! -d "$as_dir"; do
24330 as_dirs="$as_dir $as_dirs"
24331 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24333 X"$as_dir" : 'X\(//\)[^/]' \| \
24334 X"$as_dir" : 'X\(//\)$' \| \
24335 X"$as_dir" : 'X\(/\)' \| \
24336 . : '\(.\)' 2>/dev/null ||
24337echo X"$as_dir" |
24338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24340 /^X\(\/\/\)$/{ s//\1/; q; }
24341 /^X\(\/\).*/{ s//\1/; q; }
24342 s/.*/./; q'`
24343 done
24344 test ! -n "$as_dirs" || mkdir $as_dirs
24345 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24346echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24347 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024348
24349 ac_builddir=.
24350
24351if test "$ac_dir" != .; then
24352 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24353 # A "../" for each directory in $ac_dir_suffix.
24354 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24355else
24356 ac_dir_suffix= ac_top_builddir=
24357fi
24358
24359case $srcdir in
24360 .) # No --srcdir option. We are building in place.
24361 ac_srcdir=.
24362 if test -z "$ac_top_builddir"; then
24363 ac_top_srcdir=.
24364 else
24365 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24366 fi ;;
24367 [\\/]* | ?:[\\/]* ) # Absolute path.
24368 ac_srcdir=$srcdir$ac_dir_suffix;
24369 ac_top_srcdir=$srcdir ;;
24370 *) # Relative path.
24371 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24372 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24373esac
24374# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24375# absolute.
24376ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024377ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024378ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24379ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24380
24381
24382 case $INSTALL in
24383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24384 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24385 esac
24386
24387 if test x"$ac_file" != x-; then
24388 { echo "$as_me:$LINENO: creating $ac_file" >&5
24389echo "$as_me: creating $ac_file" >&6;}
24390 rm -f "$ac_file"
24391 fi
24392 # Let's still pretend it is `configure' which instantiates (i.e., don't
24393 # use $as_me), people would be surprised to read:
24394 # /* config.h. Generated by config.status. */
24395 if test x"$ac_file" = x-; then
24396 configure_input=
24397 else
24398 configure_input="$ac_file. "
24399 fi
24400 configure_input=$configure_input"Generated from `echo $ac_file_in |
24401 sed 's,.*/,,'` by configure."
24402
24403 # First look for the input files in the build tree, otherwise in the
24404 # src tree.
24405 ac_file_inputs=`IFS=:
24406 for f in $ac_file_in; do
24407 case $f in
24408 -) echo $tmp/stdin ;;
24409 [\\/$]*)
24410 # Absolute (can't be DOS-style, as IFS=:)
24411 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24412echo "$as_me: error: cannot find input file: $f" >&2;}
24413 { (exit 1); exit 1; }; }
24414 echo $f;;
24415 *) # Relative
24416 if test -f "$f"; then
24417 # Build tree
24418 echo $f
24419 elif test -f "$srcdir/$f"; then
24420 # Source tree
24421 echo $srcdir/$f
24422 else
24423 # /dev/null tree
24424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24425echo "$as_me: error: cannot find input file: $f" >&2;}
24426 { (exit 1); exit 1; }; }
24427 fi;;
24428 esac
24429 done` || { (exit 1); exit 1; }
24430_ACEOF
24431cat >>$CONFIG_STATUS <<_ACEOF
24432 sed "$ac_vpsub
24433$extrasub
24434_ACEOF
24435cat >>$CONFIG_STATUS <<\_ACEOF
24436:t
24437/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24438s,@configure_input@,$configure_input,;t t
24439s,@srcdir@,$ac_srcdir,;t t
24440s,@abs_srcdir@,$ac_abs_srcdir,;t t
24441s,@top_srcdir@,$ac_top_srcdir,;t t
24442s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24443s,@builddir@,$ac_builddir,;t t
24444s,@abs_builddir@,$ac_abs_builddir,;t t
24445s,@top_builddir@,$ac_top_builddir,;t t
24446s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24447s,@INSTALL@,$ac_INSTALL,;t t
24448" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24449 rm -f $tmp/stdin
24450 if test x"$ac_file" != x-; then
24451 mv $tmp/out $ac_file
24452 else
24453 cat $tmp/out
24454 rm -f $tmp/out
24455 fi
24456
24457done
24458_ACEOF
24459cat >>$CONFIG_STATUS <<\_ACEOF
24460
24461#
24462# CONFIG_HEADER section.
24463#
24464
24465# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24466# NAME is the cpp macro being defined and VALUE is the value it is being given.
24467#
24468# ac_d sets the value in "#define NAME VALUE" lines.
24469ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24470ac_dB='[ ].*$,\1#\2'
24471ac_dC=' '
24472ac_dD=',;t'
24473# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24474ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24475ac_uB='$,\1#\2define\3'
24476ac_uC=' '
24477ac_uD=',;t'
24478
24479for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24480 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24481 case $ac_file in
24482 - | *:- | *:-:* ) # input from stdin
24483 cat >$tmp/stdin
24484 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24486 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24487 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24488 * ) ac_file_in=$ac_file.in ;;
24489 esac
24490
24491 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24492echo "$as_me: creating $ac_file" >&6;}
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 # Remove the trailing spaces.
24522 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24523
24524_ACEOF
24525
24526# Transform confdefs.h into two sed scripts, `conftest.defines' and
24527# `conftest.undefs', that substitutes the proper values into
24528# config.h.in to produce config.h. The first handles `#define'
24529# templates, and the second `#undef' templates.
24530# And first: Protect against being on the right side of a sed subst in
24531# config.status. Protect against being in an unquoted here document
24532# in config.status.
24533rm -f conftest.defines conftest.undefs
24534# Using a here document instead of a string reduces the quoting nightmare.
24535# Putting comments in sed scripts is not portable.
24536#
24537# `end' is used to avoid that the second main sed command (meant for
24538# 0-ary CPP macros) applies to n-ary macro definitions.
24539# See the Autoconf documentation for `clear'.
24540cat >confdef2sed.sed <<\_ACEOF
24541s/[\\&,]/\\&/g
24542s,[\\$`],\\&,g
24543t clear
24544: clear
24545s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24546t end
24547s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24548: end
24549_ACEOF
24550# If some macros were called several times there might be several times
24551# the same #defines, which is useless. Nevertheless, we may not want to
24552# sort them, since we want the *last* AC-DEFINE to be honored.
24553uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24554sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24555rm -f confdef2sed.sed
24556
24557# This sed command replaces #undef with comments. This is necessary, for
24558# example, in the case of _POSIX_SOURCE, which is predefined and required
24559# on some systems where configure will not decide to define it.
24560cat >>conftest.undefs <<\_ACEOF
24561s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24562_ACEOF
24563
24564# Break up conftest.defines because some shells have a limit on the size
24565# of here documents, and old seds have small limits too (100 cmds).
24566echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024567echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024568echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24569echo ' :' >>$CONFIG_STATUS
24570rm -f conftest.tail
24571while grep . conftest.defines >/dev/null
24572do
24573 # Write a limited-size here document to $tmp/defines.sed.
24574 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24575 # Speed up: don't consider the non `#define' lines.
24576 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24577 # Work around the forget-to-reset-the-flag bug.
24578 echo 't clr' >>$CONFIG_STATUS
24579 echo ': clr' >>$CONFIG_STATUS
24580 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24581 echo 'CEOF
24582 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24583 rm -f $tmp/in
24584 mv $tmp/out $tmp/in
24585' >>$CONFIG_STATUS
24586 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24587 rm -f conftest.defines
24588 mv conftest.tail conftest.defines
24589done
24590rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024591echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024592echo >>$CONFIG_STATUS
24593
24594# Break up conftest.undefs because some shells have a limit on the size
24595# of here documents, and old seds have small limits too (100 cmds).
24596echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24597rm -f conftest.tail
24598while grep . conftest.undefs >/dev/null
24599do
24600 # Write a limited-size here document to $tmp/undefs.sed.
24601 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24602 # Speed up: don't consider the non `#undef'
24603 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24604 # Work around the forget-to-reset-the-flag bug.
24605 echo 't clr' >>$CONFIG_STATUS
24606 echo ': clr' >>$CONFIG_STATUS
24607 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24608 echo 'CEOF
24609 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24610 rm -f $tmp/in
24611 mv $tmp/out $tmp/in
24612' >>$CONFIG_STATUS
24613 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24614 rm -f conftest.undefs
24615 mv conftest.tail conftest.undefs
24616done
24617rm -f conftest.undefs
24618
24619cat >>$CONFIG_STATUS <<\_ACEOF
24620 # Let's still pretend it is `configure' which instantiates (i.e., don't
24621 # use $as_me), people would be surprised to read:
24622 # /* config.h. Generated by config.status. */
24623 if test x"$ac_file" = x-; then
24624 echo "/* Generated by configure. */" >$tmp/config.h
24625 else
24626 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24627 fi
24628 cat $tmp/in >>$tmp/config.h
24629 rm -f $tmp/in
24630 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024631 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024632 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24633echo "$as_me: $ac_file is unchanged" >&6;}
24634 else
24635 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24637 X"$ac_file" : 'X\(//\)[^/]' \| \
24638 X"$ac_file" : 'X\(//\)$' \| \
24639 X"$ac_file" : 'X\(/\)' \| \
24640 . : '\(.\)' 2>/dev/null ||
24641echo X"$ac_file" |
24642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24644 /^X\(\/\/\)$/{ s//\1/; q; }
24645 /^X\(\/\).*/{ s//\1/; q; }
24646 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024647 { if $as_mkdir_p; then
24648 mkdir -p "$ac_dir"
24649 else
24650 as_dir="$ac_dir"
24651 as_dirs=
24652 while test ! -d "$as_dir"; do
24653 as_dirs="$as_dir $as_dirs"
24654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24656 X"$as_dir" : 'X\(//\)[^/]' \| \
24657 X"$as_dir" : 'X\(//\)$' \| \
24658 X"$as_dir" : 'X\(/\)' \| \
24659 . : '\(.\)' 2>/dev/null ||
24660echo X"$as_dir" |
24661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24663 /^X\(\/\/\)$/{ s//\1/; q; }
24664 /^X\(\/\).*/{ s//\1/; q; }
24665 s/.*/./; q'`
24666 done
24667 test ! -n "$as_dirs" || mkdir $as_dirs
24668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24669echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24670 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024671
24672 rm -f $ac_file
24673 mv $tmp/config.h $ac_file
24674 fi
24675 else
24676 cat $tmp/config.h
24677 rm -f $tmp/config.h
24678 fi
24679done
24680_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024681cat >>$CONFIG_STATUS <<\_ACEOF
24682
24683#
24684# CONFIG_COMMANDS section.
24685#
24686for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24687 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24688 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24689 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24690$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24691 X"$ac_dest" : 'X\(//\)[^/]' \| \
24692 X"$ac_dest" : 'X\(//\)$' \| \
24693 X"$ac_dest" : 'X\(/\)' \| \
24694 . : '\(.\)' 2>/dev/null ||
24695echo X"$ac_dest" |
24696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24698 /^X\(\/\/\)$/{ s//\1/; q; }
24699 /^X\(\/\).*/{ s//\1/; q; }
24700 s/.*/./; q'`
24701 ac_builddir=.
24702
24703if test "$ac_dir" != .; then
24704 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24705 # A "../" for each directory in $ac_dir_suffix.
24706 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24707else
24708 ac_dir_suffix= ac_top_builddir=
24709fi
24710
24711case $srcdir in
24712 .) # No --srcdir option. We are building in place.
24713 ac_srcdir=.
24714 if test -z "$ac_top_builddir"; then
24715 ac_top_srcdir=.
24716 else
24717 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24718 fi ;;
24719 [\\/]* | ?:[\\/]* ) # Absolute path.
24720 ac_srcdir=$srcdir$ac_dir_suffix;
24721 ac_top_srcdir=$srcdir ;;
24722 *) # Relative path.
24723 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24724 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24725esac
24726# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24727# absolute.
24728ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024729ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024730ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24731ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24732
24733
24734 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24735echo "$as_me: executing $ac_dest commands" >&6;}
24736 case $ac_dest in
24737 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24738 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24739 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24740 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24741 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24742 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24743 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24744 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24745 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24746 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24747 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24748 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24749 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24750 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24751 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24752 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24753 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 +000024754 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24755 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24756 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24757 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24758 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 +000024759 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024760 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24761 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24762 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24763 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24764 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24765 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24766 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24767 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24768 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24769 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24770 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24771 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24772 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24773 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24774 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 +000024775 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 +000024776 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24777 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24778 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24779 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 +000024780 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 +000024781 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 +000024782 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24783 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 +000024784 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24785 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
John Criswell759c3ed2003-10-28 19:21:11 +000024786 runtime/libprofile/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libprofile/Makefile runtime/libprofile/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024787 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24788 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024789 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24790 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 +000024791 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24792 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24793 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24794 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24795 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24796 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24797 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24798 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24799 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24800 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24801 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24802 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24803 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24804 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24805 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24806 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24807 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24808 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 +000024809 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 +000024810 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 +000024811 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 +000024812 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 ;;
24813 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 ;;
24814 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 ;;
24815 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 ;;
24816 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 ;;
24817 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 ;;
24818 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 ;;
24819 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 ;;
24820 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 ;;
24821 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 +000024822 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 ;;
24823 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 +000024824 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 ;;
24825 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 ;;
24826 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 ;;
24827 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 ;;
24828 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24829 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24830 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 +000024831 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24832 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 +000024833 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 ;;
24834 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 +000024835 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24836 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 +000024837 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 ;;
24838 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 ;;
24839 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 ;;
24840 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 ;;
24841 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 ;;
24842 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 ;;
24843 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 ;;
24844 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 ;;
24845 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 ;;
24846 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 ;;
24847 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 ;;
24848 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 ;;
24849 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 ;;
24850 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 ;;
24851 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 +000024852 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 ;;
24853 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 ;;
24854 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 ;;
24855 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 ;;
24856 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 ;;
24857 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 ;;
24858 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 ;;
24859 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 ;;
24860 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 ;;
24861 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 ;;
24862 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 ;;
24863 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 ;;
24864 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 ;;
24865 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 ;;
24866 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 ;;
24867 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 ;;
24868 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 ;;
24869 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 ;;
24870 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 ;;
24871 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 ;;
24872 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 ;;
24873 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 +000024874 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 +000024875 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 ;;
24876 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 ;;
24877 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 ;;
24878 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 ;;
24879 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 ;;
24880 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 +000024881 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 +000024882 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 +000024883 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24884 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 +000024885 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24886 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24887 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 ;;
24888 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 ;;
24889 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 ;;
24890 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 +000024891 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 +000024892 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 +000024893 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 +000024894 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 +000024895 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 ;;
24896 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 +000024897 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 +000024898 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24899 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024900 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024901 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24902 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24903 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024904 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024905 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024906 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024907 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 +000024908 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 +000024909 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 +000024910 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 +000024911 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 +000024912 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 +000024913 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024914 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24915 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24916 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24917 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024918 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024919 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24920 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24921 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24922 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24923 esac
24924done
24925_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024926
24927cat >>$CONFIG_STATUS <<\_ACEOF
24928
24929{ (exit 0); exit 0; }
24930_ACEOF
24931chmod +x $CONFIG_STATUS
24932ac_clean_files=$ac_clean_files_save
24933
24934
24935# configure is writing to config.log, and then calls config.status.
24936# config.status does its own redirection, appending to config.log.
24937# Unfortunately, on DOS this fails, as config.log is still kept open
24938# by configure, so config.status won't be able to write to it; its
24939# output is simply discarded. So we exec the FD to /dev/null,
24940# effectively closing config.log, so it can be properly (re)opened and
24941# appended to by config.status. When coming back to configure, we
24942# need to make the FD available again.
24943if test "$no_create" != yes; then
24944 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024945 ac_config_status_args=
24946 test "$silent" = yes &&
24947 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024948 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024950 exec 5>>config.log
24951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24952 # would make configure fail if this is the last instruction.
24953 $ac_cs_success || { (exit 1); exit 1; }
24954fi
24955
John Criswell12399a12003-09-30 15:55:44 +000024956#
24957# CONFIG_SUBDIRS section.
24958#
24959if test "$no_recursion" != yes; then
24960
24961 # Remove --cache-file and --srcdir arguments so they do not pile up.
24962 ac_sub_configure_args=
24963 ac_prev=
24964 for ac_arg in $ac_configure_args; do
24965 if test -n "$ac_prev"; then
24966 ac_prev=
24967 continue
24968 fi
24969 case $ac_arg in
24970 -cache-file | --cache-file | --cache-fil | --cache-fi \
24971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24972 ac_prev=cache_file ;;
24973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24975 | --c=*)
24976 ;;
24977 --config-cache | -C)
24978 ;;
24979 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24980 ac_prev=srcdir ;;
24981 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24982 ;;
24983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24984 ac_prev=prefix ;;
24985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24986 ;;
24987 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24988 esac
24989 done
24990
24991 # Always prepend --prefix to ensure using the same prefix
24992 # in subdir configurations.
24993 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24994
24995 ac_popdir=`pwd`
24996 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24997
24998 # Do not complain, so a configure script can configure whichever
24999 # parts of a large source tree are present.
25000 test -d $srcdir/$ac_dir || continue
25001
25002 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25003echo "$as_me: configuring in $ac_dir" >&6;}
25004 { if $as_mkdir_p; then
25005 mkdir -p "$ac_dir"
25006 else
25007 as_dir="$ac_dir"
25008 as_dirs=
25009 while test ! -d "$as_dir"; do
25010 as_dirs="$as_dir $as_dirs"
25011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25013 X"$as_dir" : 'X\(//\)[^/]' \| \
25014 X"$as_dir" : 'X\(//\)$' \| \
25015 X"$as_dir" : 'X\(/\)' \| \
25016 . : '\(.\)' 2>/dev/null ||
25017echo X"$as_dir" |
25018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25020 /^X\(\/\/\)$/{ s//\1/; q; }
25021 /^X\(\/\).*/{ s//\1/; q; }
25022 s/.*/./; q'`
25023 done
25024 test ! -n "$as_dirs" || mkdir $as_dirs
25025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25026echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25027 { (exit 1); exit 1; }; }; }
25028
25029 ac_builddir=.
25030
25031if test "$ac_dir" != .; then
25032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25033 # A "../" for each directory in $ac_dir_suffix.
25034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25035else
25036 ac_dir_suffix= ac_top_builddir=
25037fi
25038
25039case $srcdir in
25040 .) # No --srcdir option. We are building in place.
25041 ac_srcdir=.
25042 if test -z "$ac_top_builddir"; then
25043 ac_top_srcdir=.
25044 else
25045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25046 fi ;;
25047 [\\/]* | ?:[\\/]* ) # Absolute path.
25048 ac_srcdir=$srcdir$ac_dir_suffix;
25049 ac_top_srcdir=$srcdir ;;
25050 *) # Relative path.
25051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25053esac
25054# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25055# absolute.
25056ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25057ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25058ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25059ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25060
25061
25062 cd $ac_dir
25063
25064 # Check for guested configure; otherwise get Cygnus style configure.
25065 if test -f $ac_srcdir/configure.gnu; then
25066 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25067 elif test -f $ac_srcdir/configure; then
25068 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25069 elif test -f $ac_srcdir/configure.in; then
25070 ac_sub_configure=$ac_configure
25071 else
25072 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25073echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25074 ac_sub_configure=
25075 fi
25076
25077 # The recursion is here.
25078 if test -n "$ac_sub_configure"; then
25079 # Make the cache file name correct relative to the subdirectory.
25080 case $cache_file in
25081 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25082 *) # Relative path.
25083 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25084 esac
25085
25086 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25087echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25088 # The eval makes quoting arguments work.
25089 eval $ac_sub_configure $ac_sub_configure_args \
25090 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25091 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25092echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25093 { (exit 1); exit 1; }; }
25094 fi
25095
25096 cd $ac_popdir
25097 done
25098fi
25099
Brian Gaekef3b24102003-11-16 18:38:14 +000025100
25101if test $llvmgccwarn = yes
25102then
25103 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25104echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25105 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25106echo "$as_me: WARNING: ***** appear to be working." >&2;}
25107 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25108echo "$as_me: WARNING: ***** " >&2;}
25109 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25110echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25111 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25112echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25113 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25114echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25115fi