blob: 46b8f34ce6b97e7c027aab7d9763d57ef7c4eb3e [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443# include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448# include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459# include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_unique_file=""Makefile.config.in""
John Criswell0c38eaf2003-09-10 15:17:25 +0000467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR LTLIBOBJS'
468ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805done
806
807if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880else
881 ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CXX_set=${CXX+set}
909ac_env_CXX_value=$CXX
910ac_cv_env_CXX_set=${CXX+set}
911ac_cv_env_CXX_value=$CXX
912ac_env_CXXFLAGS_set=${CXXFLAGS+set}
913ac_env_CXXFLAGS_value=$CXXFLAGS
914ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_cv_env_CXXFLAGS_value=$CXXFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CC_set=${CC+set}
925ac_env_CC_value=$CC
926ac_cv_env_CC_set=${CC+set}
927ac_cv_env_CC_value=$CC
928ac_env_CFLAGS_set=${CFLAGS+set}
929ac_env_CFLAGS_value=$CFLAGS
930ac_cv_env_CFLAGS_set=${CFLAGS+set}
931ac_cv_env_CFLAGS_value=$CFLAGS
932ac_env_CPP_set=${CPP+set}
933ac_env_CPP_value=$CPP
934ac_cv_env_CPP_set=${CPP+set}
935ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE. See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978 cat <<_ACEOF
979Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005_ACEOF
1006
1007 cat <<\_ACEOF
1008
1009System types:
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1012 --target=TARGET configure for building compilers for TARGET [HOST]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017 case $ac_init_help in
1018 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1019 esac
1020 cat <<\_ACEOF
1021
1022Optional Features:
1023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001033 --enable-optimized Compile with optimizations enabled (default is NO)
1034 --enable-spec Compile SPEC benchmarks (default is NO)
1035 --enable-precompiled_bytecode
1036 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001037 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001038 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001039
1040Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001048 --with-spec Location of SPEC benchmarks
1049 --with-llvmgccdir Location of LLVM GCC front-end
1050 --with-bcrepos Location of Bytecode Repository
1051 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001052 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
1105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
1121 test -f $ac_srcdir/configure.in; then
1122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
1134[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
1149It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
John Criswell1b824322003-09-15 17:19:42 +00001514 if test -f ${srcdir}/include/Config/config.h
1515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell0c38eaf2003-09-10 15:17:25 +00001522 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001525
1526
John Criswell0c38eaf2003-09-10 15:17:25 +00001527 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001531
1532
John Criswell0c38eaf2003-09-10 15:17:25 +00001533 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001534
1535
John Criswell0c38eaf2003-09-10 15:17:25 +00001536 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001537
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001540
1541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell613758d2003-09-11 18:03:50 +00001638 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell613758d2003-09-11 18:03:50 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1660
1661
1662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell0c38eaf2003-09-10 15:17:25 +00001674 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001675
1676
John Criswell08acb9b2003-09-16 02:12:45 +00001677 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell0c38eaf2003-09-10 15:17:25 +00001692 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell613758d2003-09-11 18:03:50 +00001734 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell48e3cb92003-09-12 16:31:43 +00001791 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell48e3cb92003-09-12 16:31:43 +00001794 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell39e83892003-09-12 16:36:17 +00001797 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1798
1799
1800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1801
1802
John Criswell48e3cb92003-09-12 16:31:43 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell48e3cb92003-09-12 16:31:43 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001813
1814
John Criswell48e3cb92003-09-12 16:31:43 +00001815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1867
1868
1869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1870
1871
1872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell39e83892003-09-12 16:36:17 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001882
1883
John Criswell48e3cb92003-09-12 16:31:43 +00001884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001885
1886
John Criswell48e3cb92003-09-12 16:31:43 +00001887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell48e3cb92003-09-12 16:31:43 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell0c38eaf2003-09-10 15:17:25 +00001902 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell0c38eaf2003-09-10 15:17:25 +00001905 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell0c38eaf2003-09-10 15:17:25 +00001908 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell0c38eaf2003-09-10 15:17:25 +00001911 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell0c38eaf2003-09-10 15:17:25 +00001914 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswellffaaf3b2003-09-10 18:38:44 +00001926 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1927
1928
1929 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1930
1931
1932 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1933
1934
1935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1936
1937
1938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1939
1940
1941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1942
1943
John Criswell0c38eaf2003-09-10 15:17:25 +00001944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001945
1946
John Criswell0c38eaf2003-09-10 15:17:25 +00001947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001948
1949
John Criswell0afe8252003-09-11 20:53:48 +00001950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1951
1952
John Criswell67181ca2003-09-26 14:53:17 +00001953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1954
1955
John Criswell68886d42003-09-26 19:51:42 +00001956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1957
1958
1959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0c38eaf2003-09-10 15:17:25 +00001965 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001966
1967
John Criswell0c38eaf2003-09-10 15:17:25 +00001968 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001969
1970
John Criswell0c38eaf2003-09-10 15:17:25 +00001971 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001972
1973
John Criswell0c38eaf2003-09-10 15:17:25 +00001974 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001975
1976
John Criswell0c38eaf2003-09-10 15:17:25 +00001977 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswellddb7b4e2003-09-16 15:54:19 +00001986 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
Chris Lattnerebd70302003-09-13 03:29:53 +00001989 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1990
1991
John Criswellddb7b4e2003-09-16 15:54:19 +00001992 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswellddb7b4e2003-09-16 15:54:19 +00001998 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
1999
2000
2001 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2002
2003
John Criswell0c38eaf2003-09-10 15:17:25 +00002004 ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
John Criswell0c38eaf2003-09-10 15:17:25 +00002007 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002008
2009
John Criswell0c38eaf2003-09-10 15:17:25 +00002010 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswell0c38eaf2003-09-10 15:17:25 +00002016 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002017
2018
John Criswell0c38eaf2003-09-10 15:17:25 +00002019 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell392aaa32003-07-22 19:18:09 +00002055
2056
John Criswell7a73b802003-06-30 21:59:07 +00002057# Find a good install program. We prefer a C program (faster),
2058# so one script is as good as another. But avoid the broken or
2059# incompatible versions:
2060# SysV /etc/install, /usr/sbin/install
2061# SunOS /usr/etc/install
2062# IRIX /sbin/install
2063# AIX /bin/install
2064# AmigaOS /C/install, which installs bootblocks on floppy discs
2065# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2066# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2067# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2068# ./install, which can be erroneously created by make from ./install.sh.
2069echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2070echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2071if test -z "$INSTALL"; then
2072if test "${ac_cv_path_install+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 # Account for people who put trailing slashes in PATH elements.
2081case $as_dir/ in
2082 ./ | .// | /cC/* | \
2083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2084 /usr/ucb/* ) ;;
2085 *)
2086 # OSF1 and SCO ODT 3.0 have their own names for install.
2087 # Don't use installbsd from OSF since it installs stuff as root
2088 # by default.
2089 for ac_prog in ginstall scoinst install; do
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2092 if test $ac_prog = install &&
2093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2094 # AIX install. It has an incompatible calling convention.
2095 :
2096 elif test $ac_prog = install &&
2097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2098 # program-specific install script used by HP pwplus--don't use.
2099 :
2100 else
2101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2102 break 3
2103 fi
2104 fi
2105 done
2106 done
2107 ;;
2108esac
2109done
2110
2111
2112fi
2113 if test "${ac_cv_path_install+set}" = set; then
2114 INSTALL=$ac_cv_path_install
2115 else
2116 # As a last resort, use the slow shell script. We don't cache a
2117 # path for INSTALL within a source directory, because that will
2118 # break other packages using the cache if that directory is
2119 # removed, or if the path is relative.
2120 INSTALL=$ac_install_sh
2121 fi
2122fi
2123echo "$as_me:$LINENO: result: $INSTALL" >&5
2124echo "${ECHO_T}$INSTALL" >&6
2125
2126# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2127# It thinks the first close brace ends the variable substitution.
2128test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2129
2130test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2131
2132test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2133
2134
2135# Make sure we can run config.sub.
2136$ac_config_sub sun4 >/dev/null 2>&1 ||
2137 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2138echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2139 { (exit 1); exit 1; }; }
2140
2141echo "$as_me:$LINENO: checking build system type" >&5
2142echo $ECHO_N "checking build system type... $ECHO_C" >&6
2143if test "${ac_cv_build+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 ac_cv_build_alias=$build_alias
2147test -z "$ac_cv_build_alias" &&
2148 ac_cv_build_alias=`$ac_config_guess`
2149test -z "$ac_cv_build_alias" &&
2150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2152 { (exit 1); exit 1; }; }
2153ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2155echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2156 { (exit 1); exit 1; }; }
2157
2158fi
2159echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160echo "${ECHO_T}$ac_cv_build" >&6
2161build=$ac_cv_build
2162build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2163build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2164build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2165
2166
2167echo "$as_me:$LINENO: checking host system type" >&5
2168echo $ECHO_N "checking host system type... $ECHO_C" >&6
2169if test "${ac_cv_host+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172 ac_cv_host_alias=$host_alias
2173test -z "$ac_cv_host_alias" &&
2174 ac_cv_host_alias=$ac_cv_build_alias
2175ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2176 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2177echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2178 { (exit 1); exit 1; }; }
2179
2180fi
2181echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6
2183host=$ac_cv_host
2184host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2185host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2186host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2187
2188
2189echo "$as_me:$LINENO: checking target system type" >&5
2190echo $ECHO_N "checking target system type... $ECHO_C" >&6
2191if test "${ac_cv_target+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194 ac_cv_target_alias=$target_alias
2195test "x$ac_cv_target_alias" = "x" &&
2196 ac_cv_target_alias=$ac_cv_host_alias
2197ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2198 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2199echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2201
2202fi
2203echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204echo "${ECHO_T}$ac_cv_target" >&6
2205target=$ac_cv_target
2206target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2207target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2208target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2209
2210
2211# The aliases save the names the user supplied, while $host etc.
2212# will get canonicalized.
2213test -n "$target_alias" &&
2214 test "$program_prefix$program_suffix$program_transform_name" = \
2215 NONENONEs,x,x, &&
2216 program_prefix=${target_alias}-
2217
2218case $build in
2219 *i*86*) OS=Linux
2220
John Criswellf02dbf02003-07-22 20:07:49 +00002221 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002222
2223 ;;
2224
2225 *sparc*) OS=SunOS
2226
2227 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2228
2229 ;;
2230
2231 *) OS=Unknown
2232
2233 ;;
2234esac
2235
2236case $target in
2237 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2238
2239 ;;
2240esac
2241
John Criswell76595452003-07-01 22:07:39 +00002242case $target in
2243 *i*86*) ARCH=x86
2244
2245 ;;
2246 *sparc*solaris*) ARCH=Sparc
2247
2248 ;;
2249esac
2250
John Criswell7a73b802003-06-30 21:59:07 +00002251
2252ac_ext=cc
2253ac_cpp='$CXXCPP $CPPFLAGS'
2254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2257if test -n "$ac_tool_prefix"; then
2258 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2259 do
2260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262echo "$as_me:$LINENO: checking for $ac_word" >&5
2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264if test "${ac_cv_prog_CXX+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267 if test -n "$CXX"; then
2268 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2269else
2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2280 fi
2281done
2282done
2283
2284fi
2285fi
2286CXX=$ac_cv_prog_CXX
2287if test -n "$CXX"; then
2288 echo "$as_me:$LINENO: result: $CXX" >&5
2289echo "${ECHO_T}$CXX" >&6
2290else
2291 echo "$as_me:$LINENO: result: no" >&5
2292echo "${ECHO_T}no" >&6
2293fi
2294
2295 test -n "$CXX" && break
2296 done
2297fi
2298if test -z "$CXX"; then
2299 ac_ct_CXX=$CXX
2300 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2301do
2302 # Extract the first word of "$ac_prog", so it can be a program name with args.
2303set dummy $ac_prog; ac_word=$2
2304echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309 if test -n "$ac_ct_CXX"; then
2310 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 ac_cv_prog_ac_ct_CXX="$ac_prog"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323done
2324done
2325
2326fi
2327fi
2328ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2329if test -n "$ac_ct_CXX"; then
2330 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2331echo "${ECHO_T}$ac_ct_CXX" >&6
2332else
2333 echo "$as_me:$LINENO: result: no" >&5
2334echo "${ECHO_T}no" >&6
2335fi
2336
2337 test -n "$ac_ct_CXX" && break
2338done
2339test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2340
2341 CXX=$ac_ct_CXX
2342fi
2343
2344
2345# Provide some information about the compiler.
2346echo "$as_me:$LINENO:" \
2347 "checking for C++ compiler version" >&5
2348ac_compiler=`set X $ac_compile; echo $2`
2349{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2350 (eval $ac_compiler --version </dev/null >&5) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2355 (eval $ac_compiler -v </dev/null >&5) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2360 (eval $ac_compiler -V </dev/null >&5) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364
2365cat >conftest.$ac_ext <<_ACEOF
2366#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002382ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002383# Try to create an executable without -o first, disregard a.out.
2384# It will help us diagnose broken compilers, and finding out an intuition
2385# of exeext.
2386echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2387echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2388ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2389if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2390 (eval $ac_link_default) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 # Find the output, starting from the most likely. This scheme is
2395# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2396# resort.
2397
2398# Be careful to initialize this variable, since it used to be cached.
2399# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2400ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002401# b.out is created by i960 compilers.
2402for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2403do
2404 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002405 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2407 ;;
2408 conftest.$ac_ext )
2409 # This is the source file.
2410 ;;
2411 [ab].out )
2412 # We found the default executable, but exeext='' is most
2413 # certainly right.
2414 break;;
2415 *.* )
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2417 # FIXME: I believe we export ac_cv_exeext for Libtool,
2418 # but it would be cool to find out if it's true. Does anybody
2419 # maintain Libtool? --akim.
2420 export ac_cv_exeext
2421 break;;
2422 * )
2423 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002424 esac
2425done
2426else
2427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002428sed 's/^/| /' conftest.$ac_ext >&5
2429
2430{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2431See \`config.log' for more details." >&5
2432echo "$as_me: error: C++ compiler cannot create executables
2433See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002434 { (exit 77); exit 77; }; }
2435fi
2436
2437ac_exeext=$ac_cv_exeext
2438echo "$as_me:$LINENO: result: $ac_file" >&5
2439echo "${ECHO_T}$ac_file" >&6
2440
2441# Check the compiler produces executables we can run. If not, either
2442# the compiler is broken, or we cross compile.
2443echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2444echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2445# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2446# If not cross compiling, check that we can run a simple program.
2447if test "$cross_compiling" != yes; then
2448 if { ac_try='./$ac_file'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 cross_compiling=no
2455 else
2456 if test "$cross_compiling" = maybe; then
2457 cross_compiling=yes
2458 else
2459 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002460If you meant to cross compile, use \`--host'.
2461See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002462echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002463If you meant to cross compile, use \`--host'.
2464See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002465 { (exit 1); exit 1; }; }
2466 fi
2467 fi
2468fi
2469echo "$as_me:$LINENO: result: yes" >&5
2470echo "${ECHO_T}yes" >&6
2471
John Criswell0c38eaf2003-09-10 15:17:25 +00002472rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002473ac_clean_files=$ac_clean_files_save
2474# Check the compiler produces executables we can run. If not, either
2475# the compiler is broken, or we cross compile.
2476echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2478echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479echo "${ECHO_T}$cross_compiling" >&6
2480
2481echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484 (eval $ac_link) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2489# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2490# work properly (i.e., refer to `conftest.exe'), while it won't with
2491# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002492for ac_file in conftest.exe conftest conftest.*; do
2493 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002494 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002496 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2497 export ac_cv_exeext
2498 break;;
2499 * ) break;;
2500 esac
2501done
2502else
John Criswell0c38eaf2003-09-10 15:17:25 +00002503 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504See \`config.log' for more details." >&5
2505echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002507 { (exit 1); exit 1; }; }
2508fi
2509
2510rm -f conftest$ac_cv_exeext
2511echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512echo "${ECHO_T}$ac_cv_exeext" >&6
2513
2514rm -f conftest.$ac_ext
2515EXEEXT=$ac_cv_exeext
2516ac_exeext=$EXEEXT
2517echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2519if test "${ac_cv_objext+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522 cat >conftest.$ac_ext <<_ACEOF
2523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002524/* confdefs.h. */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002529
John Criswell7a73b802003-06-30 21:59:07 +00002530int
2531main ()
2532{
2533
2534 ;
2535 return 0;
2536}
2537_ACEOF
2538rm -f conftest.o conftest.obj
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540 (eval $ac_compile) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; then
2544 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2545 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002547 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2548 break;;
2549 esac
2550done
2551else
2552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2556See \`config.log' for more details." >&5
2557echo "$as_me: error: cannot compute suffix of object files: cannot compile
2558See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002559 { (exit 1); exit 1; }; }
2560fi
2561
2562rm -f conftest.$ac_cv_objext conftest.$ac_ext
2563fi
2564echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2565echo "${ECHO_T}$ac_cv_objext" >&6
2566OBJEXT=$ac_cv_objext
2567ac_objext=$OBJEXT
2568echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2569echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2570if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 cat >conftest.$ac_ext <<_ACEOF
2574#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002575/* confdefs.h. */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002580
John Criswell7a73b802003-06-30 21:59:07 +00002581int
2582main ()
2583{
2584#ifndef __GNUC__
2585 choke me
2586#endif
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_compiler_gnu=yes
2605else
2606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002607sed 's/^/| /' conftest.$ac_ext >&5
2608
John Criswell7a73b802003-06-30 21:59:07 +00002609ac_compiler_gnu=no
2610fi
2611rm -f conftest.$ac_objext conftest.$ac_ext
2612ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2613
2614fi
2615echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2616echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2617GXX=`test $ac_compiler_gnu = yes && echo yes`
2618ac_test_CXXFLAGS=${CXXFLAGS+set}
2619ac_save_CXXFLAGS=$CXXFLAGS
2620CXXFLAGS="-g"
2621echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2622echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2623if test "${ac_cv_prog_cxx_g+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 cat >conftest.$ac_ext <<_ACEOF
2627#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002633
John Criswell7a73b802003-06-30 21:59:07 +00002634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -s conftest.$ac_objext'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 ac_cv_prog_cxx_g=yes
2655else
2656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002657sed 's/^/| /' conftest.$ac_ext >&5
2658
John Criswell7a73b802003-06-30 21:59:07 +00002659ac_cv_prog_cxx_g=no
2660fi
2661rm -f conftest.$ac_objext conftest.$ac_ext
2662fi
2663echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2664echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2665if test "$ac_test_CXXFLAGS" = set; then
2666 CXXFLAGS=$ac_save_CXXFLAGS
2667elif test $ac_cv_prog_cxx_g = yes; then
2668 if test "$GXX" = yes; then
2669 CXXFLAGS="-g -O2"
2670 else
2671 CXXFLAGS="-g"
2672 fi
2673else
2674 if test "$GXX" = yes; then
2675 CXXFLAGS="-O2"
2676 else
2677 CXXFLAGS=
2678 fi
2679fi
2680for ac_declaration in \
2681 ''\
2682 '#include <stdlib.h>' \
2683 'extern "C" void std::exit (int) throw (); using std::exit;' \
2684 'extern "C" void std::exit (int); using std::exit;' \
2685 'extern "C" void exit (int) throw ();' \
2686 'extern "C" void exit (int);' \
2687 'void exit (int);'
2688do
2689 cat >conftest.$ac_ext <<_ACEOF
2690#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002691/* confdefs.h. */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002696#include <stdlib.h>
2697$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002698int
2699main ()
2700{
2701exit (42);
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2709 ac_status=$?
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2718 :
2719else
2720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002721sed 's/^/| /' conftest.$ac_ext >&5
2722
John Criswell7a73b802003-06-30 21:59:07 +00002723continue
2724fi
2725rm -f conftest.$ac_objext conftest.$ac_ext
2726 cat >conftest.$ac_ext <<_ACEOF
2727#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002733$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002734int
2735main ()
2736{
2737exit (42);
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext
2743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 break
2755else
2756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002757sed 's/^/| /' conftest.$ac_ext >&5
2758
John Criswell7a73b802003-06-30 21:59:07 +00002759fi
2760rm -f conftest.$ac_objext conftest.$ac_ext
2761done
2762rm -f conftest*
2763if test -n "$ac_declaration"; then
2764 echo '#ifdef __cplusplus' >>confdefs.h
2765 echo $ac_declaration >>confdefs.h
2766 echo '#endif' >>confdefs.h
2767fi
2768
2769ac_ext=c
2770ac_cpp='$CPP $CPPFLAGS'
2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773ac_compiler_gnu=$ac_cv_c_compiler_gnu
2774
2775ac_ext=c
2776ac_cpp='$CPP $CPPFLAGS'
2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780if test -n "$ac_tool_prefix"; then
2781 for ac_prog in gcc
2782 do
2783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785echo "$as_me:$LINENO: checking for $ac_word" >&5
2786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2787if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804done
2805done
2806
2807fi
2808fi
2809CC=$ac_cv_prog_CC
2810if test -n "$CC"; then
2811 echo "$as_me:$LINENO: result: $CC" >&5
2812echo "${ECHO_T}$CC" >&6
2813else
2814 echo "$as_me:$LINENO: result: no" >&5
2815echo "${ECHO_T}no" >&6
2816fi
2817
2818 test -n "$CC" && break
2819 done
2820fi
2821if test -z "$CC"; then
2822 ac_ct_CC=$CC
2823 for ac_prog in gcc
2824do
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826set dummy $ac_prog; ac_word=$2
2827echo "$as_me:$LINENO: checking for $ac_word" >&5
2828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2829if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
2832 if test -n "$ac_ct_CC"; then
2833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_ac_ct_CC="$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846done
2847done
2848
2849fi
2850fi
2851ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852if test -n "$ac_ct_CC"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854echo "${ECHO_T}$ac_ct_CC" >&6
2855else
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858fi
2859
2860 test -n "$ac_ct_CC" && break
2861done
2862
2863 CC=$ac_ct_CC
2864fi
2865
2866
John Criswell0c38eaf2003-09-10 15:17:25 +00002867test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2868See \`config.log' for more details." >&5
2869echo "$as_me: error: no acceptable C compiler found in \$PATH
2870See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002871 { (exit 1); exit 1; }; }
2872
2873# Provide some information about the compiler.
2874echo "$as_me:$LINENO:" \
2875 "checking for C compiler version" >&5
2876ac_compiler=`set X $ac_compile; echo $2`
2877{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2878 (eval $ac_compiler --version </dev/null >&5) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2883 (eval $ac_compiler -v </dev/null >&5) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2888 (eval $ac_compiler -V </dev/null >&5) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892
2893echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2895if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898 cat >conftest.$ac_ext <<_ACEOF
2899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002900/* confdefs.h. */
2901_ACEOF
2902cat confdefs.h >>conftest.$ac_ext
2903cat >>conftest.$ac_ext <<_ACEOF
2904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002905
John Criswell7a73b802003-06-30 21:59:07 +00002906int
2907main ()
2908{
2909#ifndef __GNUC__
2910 choke me
2911#endif
2912
2913 ;
2914 return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext
2918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2929 ac_compiler_gnu=yes
2930else
2931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002932sed 's/^/| /' conftest.$ac_ext >&5
2933
John Criswell7a73b802003-06-30 21:59:07 +00002934ac_compiler_gnu=no
2935fi
2936rm -f conftest.$ac_objext conftest.$ac_ext
2937ac_cv_c_compiler_gnu=$ac_compiler_gnu
2938
2939fi
2940echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2941echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2942GCC=`test $ac_compiler_gnu = yes && echo yes`
2943ac_test_CFLAGS=${CFLAGS+set}
2944ac_save_CFLAGS=$CFLAGS
2945CFLAGS="-g"
2946echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2947echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2948if test "${ac_cv_prog_cc_g+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 cat >conftest.$ac_ext <<_ACEOF
2952#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002958
John Criswell7a73b802003-06-30 21:59:07 +00002959int
2960main ()
2961{
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext
2968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2969 (eval $ac_compile) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 ac_cv_prog_cc_g=yes
2980else
2981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002982sed 's/^/| /' conftest.$ac_ext >&5
2983
John Criswell7a73b802003-06-30 21:59:07 +00002984ac_cv_prog_cc_g=no
2985fi
2986rm -f conftest.$ac_objext conftest.$ac_ext
2987fi
2988echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2990if test "$ac_test_CFLAGS" = set; then
2991 CFLAGS=$ac_save_CFLAGS
2992elif test $ac_cv_prog_cc_g = yes; then
2993 if test "$GCC" = yes; then
2994 CFLAGS="-g -O2"
2995 else
2996 CFLAGS="-g"
2997 fi
2998else
2999 if test "$GCC" = yes; then
3000 CFLAGS="-O2"
3001 else
3002 CFLAGS=
3003 fi
3004fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003005echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3006echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3007if test "${ac_cv_prog_cc_stdc+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010 ac_cv_prog_cc_stdc=no
3011ac_save_CC=$CC
3012cat >conftest.$ac_ext <<_ACEOF
3013#line $LINENO "configure"
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#include <stdarg.h>
3020#include <stdio.h>
3021#include <sys/types.h>
3022#include <sys/stat.h>
3023/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3024struct buf { int x; };
3025FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026static char *e (p, i)
3027 char **p;
3028 int i;
3029{
3030 return p[i];
3031}
3032static char *f (char * (*g) (char **, int), char **p, ...)
3033{
3034 char *s;
3035 va_list v;
3036 va_start (v,p);
3037 s = g (p, va_arg (v,int));
3038 va_end (v);
3039 return s;
3040}
3041int test (int i, double x);
3042struct s1 {int (*f) (int a);};
3043struct s2 {int (*f) (double a);};
3044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045int argc;
3046char **argv;
3047int
3048main ()
3049{
3050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055# Don't try gcc -ansi; that turns off useful extensions and
3056# breaks some systems' header files.
3057# AIX -qlanglvl=ansi
3058# Ultrix and OSF/1 -std1
3059# HP-UX 10.20 and later -Ae
3060# HP-UX older versions -Aa -D_HPUX_SOURCE
3061# SVR4 -Xc -D__EXTENSIONS__
3062for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063do
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
3066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 (eval $ac_try) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 ac_cv_prog_cc_stdc=$ac_arg
3078break
3079else
3080 echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
3084rm -f conftest.$ac_objext
3085done
3086rm -f conftest.$ac_ext conftest.$ac_objext
3087CC=$ac_save_CC
3088
3089fi
3090
3091case "x$ac_cv_prog_cc_stdc" in
3092 x|xno)
3093 echo "$as_me:$LINENO: result: none needed" >&5
3094echo "${ECHO_T}none needed" >&6 ;;
3095 *)
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3097echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3098 CC="$CC $ac_cv_prog_cc_stdc" ;;
3099esac
3100
John Criswell7a73b802003-06-30 21:59:07 +00003101# Some people use a C++ compiler to compile C. Since we use `exit',
3102# in C++ we need to declare it. In case someone uses the same compiler
3103# for both compiling C and C++ we need to have the C++ compiler decide
3104# the declaration of exit, since it's the most demanding environment.
3105cat >conftest.$ac_ext <<_ACEOF
3106#ifndef __cplusplus
3107 choke me
3108#endif
3109_ACEOF
3110rm -f conftest.$ac_objext
3111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118 (eval $ac_try) 2>&5
3119 ac_status=$?
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 for ac_declaration in \
3123 ''\
3124 '#include <stdlib.h>' \
3125 'extern "C" void std::exit (int) throw (); using std::exit;' \
3126 'extern "C" void std::exit (int); using std::exit;' \
3127 'extern "C" void exit (int) throw ();' \
3128 'extern "C" void exit (int);' \
3129 'void exit (int);'
3130do
3131 cat >conftest.$ac_ext <<_ACEOF
3132#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003138#include <stdlib.h>
3139$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003140int
3141main ()
3142{
3143exit (42);
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 :
3161else
3162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003163sed 's/^/| /' conftest.$ac_ext >&5
3164
John Criswell7a73b802003-06-30 21:59:07 +00003165continue
3166fi
3167rm -f conftest.$ac_objext conftest.$ac_ext
3168 cat >conftest.$ac_ext <<_ACEOF
3169#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003175$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003176int
3177main ()
3178{
3179exit (42);
3180 ;
3181 return 0;
3182}
3183_ACEOF
3184rm -f conftest.$ac_objext
3185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>&5
3187 ac_status=$?
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 (eval $ac_try) 2>&5
3193 ac_status=$?
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 break
3197else
3198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003199sed 's/^/| /' conftest.$ac_ext >&5
3200
John Criswell7a73b802003-06-30 21:59:07 +00003201fi
3202rm -f conftest.$ac_objext conftest.$ac_ext
3203done
3204rm -f conftest*
3205if test -n "$ac_declaration"; then
3206 echo '#ifdef __cplusplus' >>confdefs.h
3207 echo $ac_declaration >>confdefs.h
3208 echo '#endif' >>confdefs.h
3209fi
3210
3211else
3212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003213sed 's/^/| /' conftest.$ac_ext >&5
3214
John Criswell7a73b802003-06-30 21:59:07 +00003215fi
3216rm -f conftest.$ac_objext conftest.$ac_ext
3217ac_ext=c
3218ac_cpp='$CPP $CPPFLAGS'
3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222
3223ac_ext=c
3224ac_cpp='$CPP $CPPFLAGS'
3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3230# On Suns, sometimes $CPP names a directory.
3231if test -n "$CPP" && test -d "$CPP"; then
3232 CPP=
3233fi
3234if test -z "$CPP"; then
3235 if test "${ac_cv_prog_CPP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240 do
3241 ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
3250 cat >conftest.$ac_ext <<_ACEOF
3251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257#ifdef __STDC__
3258# include <limits.h>
3259#else
3260# include <assert.h>
3261#endif
John Criswell7a73b802003-06-30 21:59:07 +00003262 Syntax error
3263_ACEOF
3264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3266 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003267 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 else
3275 ac_cpp_err=
3276 fi
3277else
3278 ac_cpp_err=yes
3279fi
3280if test -z "$ac_cpp_err"; then
3281 :
3282else
3283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003284sed 's/^/| /' conftest.$ac_ext >&5
3285
John Criswell7a73b802003-06-30 21:59:07 +00003286 # Broken: fails on valid input.
3287continue
3288fi
3289rm -f conftest.err conftest.$ac_ext
3290
3291 # OK, works on sane cases. Now check whether non-existent headers
3292 # can be detected and how.
3293 cat >conftest.$ac_ext <<_ACEOF
3294#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003300#include <ac_nonexistent.h>
3301_ACEOF
3302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003305 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003306 rm -f conftest.er1
3307 cat conftest.err >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } >/dev/null; then
3310 if test -s conftest.err; then
3311 ac_cpp_err=$ac_c_preproc_warn_flag
3312 else
3313 ac_cpp_err=
3314 fi
3315else
3316 ac_cpp_err=yes
3317fi
3318if test -z "$ac_cpp_err"; then
3319 # Broken: success on invalid input.
3320continue
3321else
3322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003323sed 's/^/| /' conftest.$ac_ext >&5
3324
John Criswell7a73b802003-06-30 21:59:07 +00003325 # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
3329rm -f conftest.err conftest.$ac_ext
3330
3331done
3332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3333rm -f conftest.err conftest.$ac_ext
3334if $ac_preproc_ok; then
3335 break
3336fi
3337
3338 done
3339 ac_cv_prog_CPP=$CPP
3340
3341fi
3342 CPP=$ac_cv_prog_CPP
3343else
3344 ac_cv_prog_CPP=$CPP
3345fi
3346echo "$as_me:$LINENO: result: $CPP" >&5
3347echo "${ECHO_T}$CPP" >&6
3348ac_preproc_ok=false
3349for ac_c_preproc_warn_flag in '' yes
3350do
3351 # Use a header file that comes with gcc, so configuring glibc
3352 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3354 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003355 # On the NeXT, cc -E runs the code through the compiler's parser,
3356 # not just through cpp. "Syntax error" is here to catch this case.
3357 cat >conftest.$ac_ext <<_ACEOF
3358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
John Criswell7a73b802003-06-30 21:59:07 +00003369 Syntax error
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003374 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 else
3382 ac_cpp_err=
3383 fi
3384else
3385 ac_cpp_err=yes
3386fi
3387if test -z "$ac_cpp_err"; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003391sed 's/^/| /' conftest.$ac_ext >&5
3392
John Criswell7a73b802003-06-30 21:59:07 +00003393 # Broken: fails on valid input.
3394continue
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398 # OK, works on sane cases. Now check whether non-existent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003402/* confdefs.h. */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003407#include <ac_nonexistent.h>
3408_ACEOF
3409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3411 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003412 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 else
3420 ac_cpp_err=
3421 fi
3422else
3423 ac_cpp_err=yes
3424fi
3425if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3427continue
3428else
3429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003430sed 's/^/| /' conftest.$ac_ext >&5
3431
John Criswell7a73b802003-06-30 21:59:07 +00003432 # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
3436rm -f conftest.err conftest.$ac_ext
3437
3438done
3439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3440rm -f conftest.err conftest.$ac_ext
3441if $ac_preproc_ok; then
3442 :
3443else
John Criswell0c38eaf2003-09-10 15:17:25 +00003444 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3445See \`config.log' for more details." >&5
3446echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3447See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003448 { (exit 1); exit 1; }; }
3449fi
3450
3451ac_ext=c
3452ac_cpp='$CPP $CPPFLAGS'
3453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456
3457
3458if test "$GCC" != "yes"
3459then
3460 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3461echo "$as_me: error: gcc required but not found" >&2;}
3462 { (exit 1); exit 1; }; }
3463fi
3464
3465if test "$GXX" != "yes"
3466then
3467 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3468echo "$as_me: error: g++ required but not found" >&2;}
3469 { (exit 1); exit 1; }; }
3470fi
3471
John Criswellde00db22003-08-25 16:49:54 +00003472gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3473if test "$gccmajor" -lt "3"
3474then
3475 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3476echo "$as_me: error: gcc 3.x required" >&2;}
3477 { (exit 1); exit 1; }; }
3478fi
3479
John Criswell7a73b802003-06-30 21:59:07 +00003480 echo "$as_me:$LINENO: checking for GNU make" >&5
3481echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3482if test "${_cv_gnu_make_command+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485 _cv_gnu_make_command='' ;
3486 for a in "$MAKE" make gmake gnumake ; do
3487 if test -z "$a" ; then continue ; fi ;
3488 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3489 _cv_gnu_make_command=$a ;
3490 break;
3491 fi
3492 done ;
3493
3494fi
3495echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3496echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3497 if test "x$_cv_gnu_make_command" != "x" ; then
3498 ifGNUmake='' ;
3499 else
3500 ifGNUmake='#' ;
3501 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3502echo "${ECHO_T}\"Not found\"" >&6;
3503 fi
3504
3505
3506if test -z "$_cv_gnu_make_command"
3507then
3508 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3509echo "$as_me: error: GNU Make required but not found" >&2;}
3510 { (exit 1); exit 1; }; }
3511fi
3512
3513
3514echo "$as_me:$LINENO: checking " >&5
3515echo $ECHO_N "checking ... $ECHO_C" >&6
3516if test "${ac_cv_has_flex+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519 for ac_prog in flex lex
3520do
3521 # Extract the first word of "$ac_prog", so it can be a program name with args.
3522set dummy $ac_prog; ac_word=$2
3523echo "$as_me:$LINENO: checking for $ac_word" >&5
3524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525if test "${ac_cv_prog_LEX+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527else
3528 if test -n "$LEX"; then
3529 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3530else
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_LEX="$ac_prog"
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542done
3543done
3544
3545fi
3546fi
3547LEX=$ac_cv_prog_LEX
3548if test -n "$LEX"; then
3549 echo "$as_me:$LINENO: result: $LEX" >&5
3550echo "${ECHO_T}$LEX" >&6
3551else
3552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
3554fi
3555
3556 test -n "$LEX" && break
3557done
3558test -n "$LEX" || LEX=":"
3559
3560if test -z "$LEXLIB"
3561then
3562 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3563echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3564if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566else
3567 ac_check_lib_save_LIBS=$LIBS
3568LIBS="-lfl $LIBS"
3569cat >conftest.$ac_ext <<_ACEOF
3570#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003576
3577/* Override any gcc2 internal prototype to avoid an error. */
3578#ifdef __cplusplus
3579extern "C"
3580#endif
3581/* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003584int
3585main ()
3586{
3587yywrap ();
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext conftest$ac_exeext
3593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -s conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_cv_lib_fl_yywrap=yes
3605else
3606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003607sed 's/^/| /' conftest.$ac_ext >&5
3608
John Criswell7a73b802003-06-30 21:59:07 +00003609ac_cv_lib_fl_yywrap=no
3610fi
3611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612LIBS=$ac_check_lib_save_LIBS
3613fi
3614echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3615echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3616if test $ac_cv_lib_fl_yywrap = yes; then
3617 LEXLIB="-lfl"
3618else
3619 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3620echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3621if test "${ac_cv_lib_l_yywrap+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3623else
3624 ac_check_lib_save_LIBS=$LIBS
3625LIBS="-ll $LIBS"
3626cat >conftest.$ac_ext <<_ACEOF
3627#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003628/* confdefs.h. */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003633
3634/* Override any gcc2 internal prototype to avoid an error. */
3635#ifdef __cplusplus
3636extern "C"
3637#endif
3638/* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003641int
3642main ()
3643{
3644yywrap ();
3645 ;
3646 return 0;
3647}
3648_ACEOF
3649rm -f conftest.$ac_objext conftest$ac_exeext
3650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651 (eval $ac_link) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -s conftest$ac_exeext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_lib_l_yywrap=yes
3662else
3663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003664sed 's/^/| /' conftest.$ac_ext >&5
3665
John Criswell7a73b802003-06-30 21:59:07 +00003666ac_cv_lib_l_yywrap=no
3667fi
3668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3669LIBS=$ac_check_lib_save_LIBS
3670fi
3671echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3672echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3673if test $ac_cv_lib_l_yywrap = yes; then
3674 LEXLIB="-ll"
3675fi
3676
3677fi
3678
3679fi
3680
3681if test "x$LEX" != "x:"; then
3682 echo "$as_me:$LINENO: checking lex output file root" >&5
3683echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3684if test "${ac_cv_prog_lex_root+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687 # The minimal lex program is just a single line: %%. But some broken lexes
3688# (Solaris, I think it was) want two %% lines, so accommodate them.
3689cat >conftest.l <<_ACEOF
3690%%
3691%%
3692_ACEOF
3693{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3694 (eval $LEX conftest.l) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }
3698if test -f lex.yy.c; then
3699 ac_cv_prog_lex_root=lex.yy
3700elif test -f lexyy.c; then
3701 ac_cv_prog_lex_root=lexyy
3702else
3703 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3704echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3705 { (exit 1); exit 1; }; }
3706fi
3707fi
3708echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3709echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3710rm -f conftest.l
3711LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3712
3713echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3714echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3715if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 # POSIX says lex can declare yytext either as a pointer or an array; the
3719# default is implementation-dependent. Figure out which it is, since
3720# not all implementations provide the %pointer and %array declarations.
3721ac_cv_prog_lex_yytext_pointer=no
3722echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3723ac_save_LIBS=$LIBS
3724LIBS="$LIBS $LEXLIB"
3725cat >conftest.$ac_ext <<_ACEOF
3726`cat $LEX_OUTPUT_ROOT.c`
3727_ACEOF
3728rm -f conftest.$ac_objext conftest$ac_exeext
3729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730 (eval $ac_link) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 { ac_try='test -s conftest$ac_exeext'
3735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 (eval $ac_try) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3740 ac_cv_prog_lex_yytext_pointer=yes
3741else
3742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003743sed 's/^/| /' conftest.$ac_ext >&5
3744
John Criswell7a73b802003-06-30 21:59:07 +00003745fi
3746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747LIBS=$ac_save_LIBS
3748rm -f "${LEX_OUTPUT_ROOT}.c"
3749
3750fi
3751echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3752echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3753if test $ac_cv_prog_lex_yytext_pointer = yes; then
3754
3755cat >>confdefs.h <<\_ACEOF
3756#define YYTEXT_POINTER 1
3757_ACEOF
3758
3759fi
3760
3761fi
3762
3763fi
3764echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3765echo "${ECHO_T}$ac_cv_has_flex" >&6
3766if test "$LEX" != "flex"; then
3767 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3768echo "$as_me: error: flex not found but required" >&2;}
3769 { (exit 1); exit 1; }; }
3770fi
3771
3772echo "$as_me:$LINENO: checking " >&5
3773echo $ECHO_N "checking ... $ECHO_C" >&6
3774if test "${ac_cv_has_bison+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 for ac_prog in 'bison -y' byacc
3778do
3779 # Extract the first word of "$ac_prog", so it can be a program name with args.
3780set dummy $ac_prog; ac_word=$2
3781echo "$as_me:$LINENO: checking for $ac_word" >&5
3782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783if test "${ac_cv_prog_YACC+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786 if test -n "$YACC"; then
3787 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_YACC="$ac_prog"
3797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800done
3801done
3802
3803fi
3804fi
3805YACC=$ac_cv_prog_YACC
3806if test -n "$YACC"; then
3807 echo "$as_me:$LINENO: result: $YACC" >&5
3808echo "${ECHO_T}$YACC" >&6
3809else
3810 echo "$as_me:$LINENO: result: no" >&5
3811echo "${ECHO_T}no" >&6
3812fi
3813
3814 test -n "$YACC" && break
3815done
3816test -n "$YACC" || YACC="yacc"
3817
3818
3819fi
3820echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3821echo "${ECHO_T}$ac_cv_has_bison" >&6
3822if test "$YACC" != "bison -y"; then
3823 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3824echo "$as_me: error: bison not found but required" >&2;}
3825 { (exit 1); exit 1; }; }
3826else
3827 YACC=bison
3828
3829fi
3830
3831
3832# Check whether --enable-shared or --disable-shared was given.
3833if test "${enable_shared+set}" = set; then
3834 enableval="$enable_shared"
3835 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003836 case $enableval in
3837 yes) enable_shared=yes ;;
3838 no) enable_shared=no ;;
3839 *)
3840 enable_shared=no
3841 # Look at the argument we got. We use all the common list separators.
3842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3843 for pkg in $enableval; do
3844 IFS="$lt_save_ifs"
3845 if test "X$pkg" = "X$p"; then
3846 enable_shared=yes
3847 fi
3848 done
3849 IFS="$lt_save_ifs"
3850 ;;
3851 esac
John Criswell7a73b802003-06-30 21:59:07 +00003852else
3853 enable_shared=yes
3854fi;
John Criswell47fdd832003-07-14 16:52:07 +00003855
John Criswell7a73b802003-06-30 21:59:07 +00003856# Check whether --enable-static or --disable-static was given.
3857if test "${enable_static+set}" = set; then
3858 enableval="$enable_static"
3859 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003860 case $enableval in
3861 yes) enable_static=yes ;;
3862 no) enable_static=no ;;
3863 *)
3864 enable_static=no
3865 # Look at the argument we got. We use all the common list separators.
3866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3867 for pkg in $enableval; do
3868 IFS="$lt_save_ifs"
3869 if test "X$pkg" = "X$p"; then
3870 enable_static=yes
3871 fi
3872 done
3873 IFS="$lt_save_ifs"
3874 ;;
3875 esac
John Criswell7a73b802003-06-30 21:59:07 +00003876else
3877 enable_static=yes
3878fi;
John Criswell47fdd832003-07-14 16:52:07 +00003879
John Criswell7a73b802003-06-30 21:59:07 +00003880# Check whether --enable-fast-install or --disable-fast-install was given.
3881if test "${enable_fast_install+set}" = set; then
3882 enableval="$enable_fast_install"
3883 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003884 case $enableval in
3885 yes) enable_fast_install=yes ;;
3886 no) enable_fast_install=no ;;
3887 *)
3888 enable_fast_install=no
3889 # Look at the argument we got. We use all the common list separators.
3890 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3891 for pkg in $enableval; do
3892 IFS="$lt_save_ifs"
3893 if test "X$pkg" = "X$p"; then
3894 enable_fast_install=yes
3895 fi
3896 done
3897 IFS="$lt_save_ifs"
3898 ;;
3899 esac
John Criswell7a73b802003-06-30 21:59:07 +00003900else
3901 enable_fast_install=yes
3902fi;
John Criswell47fdd832003-07-14 16:52:07 +00003903
3904echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3905echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3906if test "${lt_cv_path_SED+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 # Loop through the user's path and test for sed and gsed.
3910# Then use that list of sed's as ones to test for truncation.
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for lt_ac_prog in sed gsed; do
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3919 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3920 fi
3921 done
3922 done
3923done
3924lt_ac_max=0
3925lt_ac_count=0
3926# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3927# along with /bin/sed that truncates output.
3928for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3929 test ! -f $lt_ac_sed && break
3930 cat /dev/null > conftest.in
3931 lt_ac_count=0
3932 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3933 # Check for GNU sed and select it if it is found.
3934 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3935 lt_cv_path_SED=$lt_ac_sed
3936 break
3937 fi
3938 while true; do
3939 cat conftest.in conftest.in >conftest.tmp
3940 mv conftest.tmp conftest.in
3941 cp conftest.in conftest.nl
3942 echo >>conftest.nl
3943 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3944 cmp -s conftest.out conftest.nl || break
3945 # 10000 chars as input seems more than enough
3946 test $lt_ac_count -gt 10 && break
3947 lt_ac_count=`expr $lt_ac_count + 1`
3948 if test $lt_ac_count -gt $lt_ac_max; then
3949 lt_ac_max=$lt_ac_count
3950 lt_cv_path_SED=$lt_ac_sed
3951 fi
3952 done
3953done
3954SED=$lt_cv_path_SED
3955
John Criswell7a73b802003-06-30 21:59:07 +00003956fi
3957
John Criswell47fdd832003-07-14 16:52:07 +00003958echo "$as_me:$LINENO: result: $SED" >&5
3959echo "${ECHO_T}$SED" >&6
3960
3961echo "$as_me:$LINENO: checking for egrep" >&5
3962echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3963if test "${ac_cv_prog_egrep+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3967 then ac_cv_prog_egrep='grep -E'
3968 else ac_cv_prog_egrep='egrep'
3969 fi
3970fi
3971echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3972echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3973 EGREP=$ac_cv_prog_egrep
3974
3975
John Criswell7a73b802003-06-30 21:59:07 +00003976
3977# Check whether --with-gnu-ld or --without-gnu-ld was given.
3978if test "${with_gnu_ld+set}" = set; then
3979 withval="$with_gnu_ld"
3980 test "$withval" = no || with_gnu_ld=yes
3981else
3982 with_gnu_ld=no
3983fi;
3984ac_prog=ld
3985if test "$GCC" = yes; then
3986 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003987 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3988echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003989 case $host in
3990 *-*-mingw*)
3991 # gcc leaves a trailing carriage return which upsets mingw
3992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3993 *)
3994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3995 esac
3996 case $ac_prog in
3997 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003998 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003999 re_direlt='/[^/][^/]*/\.\./'
4000 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004001 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004002 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004003 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004004 done
4005 test -z "$LD" && LD="$ac_prog"
4006 ;;
4007 "")
4008 # If it fails, then pretend we aren't using GCC.
4009 ac_prog=ld
4010 ;;
4011 *)
4012 # If it is relative, then search for the first ld in PATH.
4013 with_gnu_ld=unknown
4014 ;;
4015 esac
4016elif test "$with_gnu_ld" = yes; then
4017 echo "$as_me:$LINENO: checking for GNU ld" >&5
4018echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4019else
4020 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4021echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4022fi
4023if test "${lt_cv_path_LD+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004028 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004029 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004030 test -z "$ac_dir" && ac_dir=.
4031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4032 lt_cv_path_LD="$ac_dir/$ac_prog"
4033 # Check to see if the program is GNU ld. I'd rather use --version,
4034 # but apparently some GNU ld's only accept -v.
4035 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4037 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004038 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004039 ;;
4040 *)
John Criswell7a73b802003-06-30 21:59:07 +00004041 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004042 ;;
4043 esac
John Criswell7a73b802003-06-30 21:59:07 +00004044 fi
4045 done
John Criswell47fdd832003-07-14 16:52:07 +00004046 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004047else
4048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4049fi
4050fi
4051
4052LD="$lt_cv_path_LD"
4053if test -n "$LD"; then
4054 echo "$as_me:$LINENO: result: $LD" >&5
4055echo "${ECHO_T}$LD" >&6
4056else
4057 echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059fi
4060test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4061echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4062 { (exit 1); exit 1; }; }
4063echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4064echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4065if test "${lt_cv_prog_gnu_ld+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004069case `"$LD" -v 2>&1 </dev/null` in
4070*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004071 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004072 ;;
4073*)
John Criswell7a73b802003-06-30 21:59:07 +00004074 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004075 ;;
4076esac
John Criswell7a73b802003-06-30 21:59:07 +00004077fi
4078echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4079echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4080with_gnu_ld=$lt_cv_prog_gnu_ld
4081
4082
4083echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4084echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4085if test "${lt_cv_ld_reload_flag+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088 lt_cv_ld_reload_flag='-r'
4089fi
4090echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4091echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4092reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004093case $reload_flag in
4094"" | " "*) ;;
4095*) reload_flag=" $reload_flag" ;;
4096esac
4097reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004098
4099echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4100echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4101if test "${lt_cv_path_NM+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 if test -n "$NM"; then
4105 # Let the user override the test.
4106 lt_cv_path_NM="$NM"
4107else
John Criswell47fdd832003-07-14 16:52:07 +00004108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004109 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004110 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004111 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004112 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4113 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004114 # Check to see if the nm accepts a BSD-compat flag.
4115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4116 # nm: unknown option "B" ignored
4117 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004118 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4119 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004120 lt_cv_path_NM="$tmp_nm -B"
4121 break
John Criswell47fdd832003-07-14 16:52:07 +00004122 ;;
4123 *)
4124 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4125 */dev/null*)
4126 lt_cv_path_NM="$tmp_nm -p"
4127 break
4128 ;;
4129 *)
4130 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4131 continue # so that we can try to find one that supports BSD flags
4132 ;;
4133 esac
4134 esac
John Criswell7a73b802003-06-30 21:59:07 +00004135 fi
4136 done
John Criswell47fdd832003-07-14 16:52:07 +00004137 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004138 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4139fi
4140fi
John Criswell47fdd832003-07-14 16:52:07 +00004141echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4142echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004143NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004144
4145echo "$as_me:$LINENO: checking whether ln -s works" >&5
4146echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4147LN_S=$as_ln_s
4148if test "$LN_S" = "ln -s"; then
4149 echo "$as_me:$LINENO: result: yes" >&5
4150echo "${ECHO_T}yes" >&6
4151else
4152 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4153echo "${ECHO_T}no, using $LN_S" >&6
4154fi
4155
John Criswell47fdd832003-07-14 16:52:07 +00004156echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4157echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004158if test "${lt_cv_deplibs_check_method+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 lt_cv_file_magic_cmd='$MAGIC_CMD'
4162lt_cv_file_magic_test_file=
4163lt_cv_deplibs_check_method='unknown'
4164# Need to set the preceding variable on all platforms that support
4165# interlibrary dependencies.
4166# 'none' -- dependencies not supported.
4167# `unknown' -- same as none, but documents that we really don't know.
4168# 'pass_all' -- all dependencies passed with no checks.
4169# 'test_compile' -- check by making test program.
4170# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004171# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004172# If you have `file' or equivalent on your system and you're not sure
4173# whether `pass_all' will *always* work, you probably want this one.
4174
4175case $host_os in
4176aix4* | aix5*)
4177 lt_cv_deplibs_check_method=pass_all
4178 ;;
4179
4180beos*)
4181 lt_cv_deplibs_check_method=pass_all
4182 ;;
4183
4184bsdi4*)
4185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4186 lt_cv_file_magic_cmd='/usr/bin/file -L'
4187 lt_cv_file_magic_test_file=/shlib/libc.so
4188 ;;
4189
4190cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004191 # win32_libid is a shell function defined in ltmain.sh
4192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4193 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004194 ;;
4195
4196darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004197 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004198 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4199 lt_cv_file_magic_cmd='/usr/bin/file -L'
4200 case "$host_os" in
4201 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004202 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004203 ;;
4204 *) # Darwin 1.3 on
4205 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4206 ;;
4207 esac
John Criswell47fdd832003-07-14 16:52:07 +00004208 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004209 ;;
4210
4211freebsd*)
4212 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4213 case $host_cpu in
4214 i*86 )
4215 # Not sure whether the presence of OpenBSD here was a mistake.
4216 # Let's accept both of them until this is cleared up.
4217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4218 lt_cv_file_magic_cmd=/usr/bin/file
4219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4220 ;;
4221 esac
4222 else
4223 lt_cv_deplibs_check_method=pass_all
4224 fi
4225 ;;
4226
4227gnu*)
4228 lt_cv_deplibs_check_method=pass_all
4229 ;;
4230
John Criswell47fdd832003-07-14 16:52:07 +00004231hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004232 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004233 case "$host_cpu" in
4234 ia64*)
4235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4237 ;;
4238 hppa*64*)
4239 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]'
4240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4241 ;;
4242 *)
4243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4244 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4245 ;;
4246 esac
John Criswell7a73b802003-06-30 21:59:07 +00004247 ;;
4248
John Criswell47fdd832003-07-14 16:52:07 +00004249irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004250 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004251 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004252 # this will be overridden with pass_all, but let us keep it just in case
4253 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4254 ;;
4255 *)
4256 case $LD in
4257 *-32|*"-32 ") libmagic=32-bit;;
4258 *-n32|*"-n32 ") libmagic=N32;;
4259 *-64|*"-64 ") libmagic=64-bit;;
4260 *) libmagic=never-match;;
4261 esac
4262 # this will be overridden with pass_all, but let us keep it just in case
4263 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4264 ;;
4265 esac
4266 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269
4270# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004271linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004272 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004273 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004274 lt_cv_deplibs_check_method=pass_all ;;
4275 *)
4276 # glibc up to 2.1.1 does not perform some relocations on ARM
4277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4278 esac
4279 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4280 ;;
4281
4282netbsd*)
4283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004285 else
John Criswell47fdd832003-07-14 16:52:07 +00004286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004287 fi
4288 ;;
4289
4290newos6*)
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4292 lt_cv_file_magic_cmd=/usr/bin/file
4293 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4294 ;;
4295
John Criswell47fdd832003-07-14 16:52:07 +00004296nto-qnx)
4297 lt_cv_deplibs_check_method=unknown
4298 ;;
4299
John Criswell7a73b802003-06-30 21:59:07 +00004300openbsd*)
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4305 else
4306 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4307 fi
4308 ;;
4309
4310osf3* | osf4* | osf5*)
4311 # this will be overridden with pass_all, but let us keep it just in case
4312 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4313 lt_cv_file_magic_test_file=/shlib/libc.so
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316
4317sco3.2v5*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321solaris*)
4322 lt_cv_deplibs_check_method=pass_all
4323 lt_cv_file_magic_test_file=/lib/libc.so
4324 ;;
4325
John Criswell7a73b802003-06-30 21:59:07 +00004326sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4327 case $host_vendor in
4328 motorola)
4329 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]'
4330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4331 ;;
4332 ncr)
4333 lt_cv_deplibs_check_method=pass_all
4334 ;;
4335 sequent)
4336 lt_cv_file_magic_cmd='/bin/file'
4337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4338 ;;
4339 sni)
4340 lt_cv_file_magic_cmd='/bin/file'
4341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4342 lt_cv_file_magic_test_file=/lib/libc.so
4343 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004344 siemens)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004347 esac
4348 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004349
4350sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4351 lt_cv_deplibs_check_method=pass_all
4352 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004353esac
4354
4355fi
4356echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4357echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4358file_magic_cmd=$lt_cv_file_magic_cmd
4359deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004360test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004361
4362
4363
4364
John Criswell47fdd832003-07-14 16:52:07 +00004365# If no C compiler was specified, use CC.
4366LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004367
John Criswell47fdd832003-07-14 16:52:07 +00004368# Allow CC to be a program name with arguments.
4369compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004370
John Criswell47fdd832003-07-14 16:52:07 +00004371# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4372if test "${enable_libtool_lock+set}" = set; then
4373 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004374
John Criswell47fdd832003-07-14 16:52:07 +00004375fi;
4376test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004377
John Criswell47fdd832003-07-14 16:52:07 +00004378# Some flags need to be propagated to the compiler or linker for good
4379# libtool support.
4380case $host in
4381ia64-*-hpux*)
4382 # Find out which ABI we are using.
4383 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004389 case `/usr/bin/file conftest.$ac_objext` in
4390 *ELF-32*)
4391 HPUX_IA64_MODE="32"
4392 ;;
4393 *ELF-64*)
4394 HPUX_IA64_MODE="64"
4395 ;;
4396 esac
4397 fi
4398 rm -rf conftest*
4399 ;;
4400*-*-irix6*)
4401 # Find out which ABI we are using.
John Criswell68886d42003-09-26 19:51:42 +00004402 echo '#line 4402 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004407 (exit $ac_status); }; then
4408 if test "$lt_cv_prog_gnu_ld" = yes; then
4409 case `/usr/bin/file conftest.$ac_objext` in
4410 *32-bit*)
4411 LD="${LD-ld} -melf32bsmip"
4412 ;;
4413 *N32*)
4414 LD="${LD-ld} -melf32bmipn32"
4415 ;;
4416 *64-bit*)
4417 LD="${LD-ld} -melf64bmip"
4418 ;;
4419 esac
4420 else
4421 case `/usr/bin/file conftest.$ac_objext` in
4422 *32-bit*)
4423 LD="${LD-ld} -32"
4424 ;;
4425 *N32*)
4426 LD="${LD-ld} -n32"
4427 ;;
4428 *64-bit*)
4429 LD="${LD-ld} -64"
4430 ;;
4431 esac
4432 fi
4433 fi
4434 rm -rf conftest*
4435 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004436
John Criswell47fdd832003-07-14 16:52:07 +00004437x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4438 # Find out which ABI we are using.
4439 echo 'int i;' > conftest.$ac_ext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441 (eval $ac_compile) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; then
4445 case "`/usr/bin/file conftest.o`" in
4446 *32-bit*)
4447 case $host in
4448 x86_64-*linux*)
4449 LD="${LD-ld} -m elf_i386"
4450 ;;
4451 ppc64-*linux*)
4452 LD="${LD-ld} -m elf32ppclinux"
4453 ;;
4454 s390x-*linux*)
4455 LD="${LD-ld} -m elf_s390"
4456 ;;
4457 sparc64-*linux*)
4458 LD="${LD-ld} -m elf32_sparc"
4459 ;;
4460 esac
4461 ;;
4462 *64-bit*)
4463 case $host in
4464 x86_64-*linux*)
4465 LD="${LD-ld} -m elf_x86_64"
4466 ;;
4467 ppc*-*linux*|powerpc*-*linux*)
4468 LD="${LD-ld} -m elf64ppc"
4469 ;;
4470 s390*-*linux*)
4471 LD="${LD-ld} -m elf64_s390"
4472 ;;
4473 sparc*-*linux*)
4474 LD="${LD-ld} -m elf64_sparc"
4475 ;;
4476 esac
4477 ;;
4478 esac
4479 fi
4480 rm -rf conftest*
4481 ;;
4482
4483*-*-sco3.2v5*)
4484 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4485 SAVE_CFLAGS="$CFLAGS"
4486 CFLAGS="$CFLAGS -belf"
4487 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4488echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4489if test "${lt_cv_cc_needs_belf+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492 ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498 cat >conftest.$ac_ext <<_ACEOF
4499#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004500/* confdefs.h. */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004505
John Criswell47fdd832003-07-14 16:52:07 +00004506int
4507main ()
John Criswell7a73b802003-06-30 21:59:07 +00004508{
John Criswell7a73b802003-06-30 21:59:07 +00004509
John Criswell47fdd832003-07-14 16:52:07 +00004510 ;
4511 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004512}
John Criswell47fdd832003-07-14 16:52:07 +00004513_ACEOF
4514rm -f conftest.$ac_objext conftest$ac_exeext
4515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004516 (eval $ac_link) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004519 (exit $ac_status); } &&
4520 { ac_try='test -s conftest$ac_exeext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
4526 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004527else
John Criswell47fdd832003-07-14 16:52:07 +00004528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004529sed 's/^/| /' conftest.$ac_ext >&5
4530
John Criswell47fdd832003-07-14 16:52:07 +00004531lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004532fi
John Criswell47fdd832003-07-14 16:52:07 +00004533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4534 ac_ext=c
4535ac_cpp='$CPP $CPPFLAGS'
4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
John Criswell7a73b802003-06-30 21:59:07 +00004540fi
John Criswell47fdd832003-07-14 16:52:07 +00004541echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4542echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545 CFLAGS="$SAVE_CFLAGS"
4546 fi
4547 ;;
4548
4549esac
4550
4551need_locks="$enable_libtool_lock"
4552
John Criswell7a73b802003-06-30 21:59:07 +00004553
4554
4555echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4557if test "${ac_cv_header_stdc+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560 cat >conftest.$ac_ext <<_ACEOF
4561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004567#include <stdlib.h>
4568#include <stdarg.h>
4569#include <string.h>
4570#include <float.h>
4571
John Criswell0c38eaf2003-09-10 15:17:25 +00004572int
4573main ()
4574{
4575
4576 ;
4577 return 0;
4578}
John Criswell7a73b802003-06-30 21:59:07 +00004579_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004580rm -f conftest.$ac_objext
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004583 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004585 (exit $ac_status); } &&
4586 { ac_try='test -s conftest.$ac_objext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004592 ac_cv_header_stdc=yes
4593else
4594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004598fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004599rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004600
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603 cat >conftest.$ac_ext <<_ACEOF
4604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004605/* confdefs.h. */
4606_ACEOF
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004610#include <string.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004614 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004615 :
4616else
4617 ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat >conftest.$ac_ext <<_ACEOF
4626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004632#include <stdlib.h>
4633
4634_ACEOF
4635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004636 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004637 :
4638else
4639 ac_cv_header_stdc=no
4640fi
4641rm -f conftest*
4642
4643fi
4644
4645if test $ac_cv_header_stdc = yes; then
4646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4647 if test "$cross_compiling" = yes; then
4648 :
4649else
4650 cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004652/* confdefs.h. */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004657#include <ctype.h>
4658#if ((' ' & 0x0FF) == 0x020)
4659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4661#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004662# define ISLOWER(c) \
4663 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004664 || ('j' <= (c) && (c) <= 'r') \
4665 || ('s' <= (c) && (c) <= 'z'))
4666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4667#endif
4668
4669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4670int
4671main ()
4672{
4673 int i;
4674 for (i = 0; i < 256; i++)
4675 if (XOR (islower (i), ISLOWER (i))
4676 || toupper (i) != TOUPPER (i))
4677 exit(2);
4678 exit (0);
4679}
4680_ACEOF
4681rm -f conftest$ac_exeext
4682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683 (eval $ac_link) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 :
4693else
4694 echo "$as_me: program exited with status $ac_status" >&5
4695echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004696sed 's/^/| /' conftest.$ac_ext >&5
4697
John Criswell7a73b802003-06-30 21:59:07 +00004698( exit $ac_status )
4699ac_cv_header_stdc=no
4700fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004701rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004702fi
4703fi
4704fi
4705echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4706echo "${ECHO_T}$ac_cv_header_stdc" >&6
4707if test $ac_cv_header_stdc = yes; then
4708
4709cat >>confdefs.h <<\_ACEOF
4710#define STDC_HEADERS 1
4711_ACEOF
4712
4713fi
4714
4715# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4726 inttypes.h stdint.h unistd.h
4727do
4728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4729echo "$as_me:$LINENO: checking for $ac_header" >&5
4730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4731if eval "test \"\${$as_ac_Header+set}\" = set"; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
4734 cat >conftest.$ac_ext <<_ACEOF
4735#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004741$ac_includes_default
4742
4743#include <$ac_header>
4744_ACEOF
4745rm -f conftest.$ac_objext
4746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747 (eval $ac_compile) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
4751 { ac_try='test -s conftest.$ac_objext'
4752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 (eval $ac_try) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 eval "$as_ac_Header=yes"
4758else
4759 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004760sed 's/^/| /' conftest.$ac_ext >&5
4761
John Criswell7a73b802003-06-30 21:59:07 +00004762eval "$as_ac_Header=no"
4763fi
4764rm -f conftest.$ac_objext conftest.$ac_ext
4765fi
4766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769 cat >>confdefs.h <<_ACEOF
4770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771_ACEOF
4772
4773fi
4774
4775done
4776
4777
4778
4779for ac_header in dlfcn.h
4780do
4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo "$as_me:$LINENO: checking for $ac_header" >&5
4784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4785if eval "test \"\${$as_ac_Header+set}\" = set"; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787fi
4788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4790else
4791 # Is the header compilable?
4792echo "$as_me:$LINENO: checking $ac_header usability" >&5
4793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4794cat >conftest.$ac_ext <<_ACEOF
4795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004796/* confdefs.h. */
4797_ACEOF
4798cat confdefs.h >>conftest.$ac_ext
4799cat >>conftest.$ac_ext <<_ACEOF
4800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004801$ac_includes_default
4802#include <$ac_header>
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_header_compiler=yes
4817else
4818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004819sed 's/^/| /' conftest.$ac_ext >&5
4820
John Criswell7a73b802003-06-30 21:59:07 +00004821ac_header_compiler=no
4822fi
4823rm -f conftest.$ac_objext conftest.$ac_ext
4824echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4825echo "${ECHO_T}$ac_header_compiler" >&6
4826
4827# Is the header present?
4828echo "$as_me:$LINENO: checking $ac_header presence" >&5
4829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4830cat >conftest.$ac_ext <<_ACEOF
4831#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004837#include <$ac_header>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004842 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 else
4850 ac_cpp_err=
4851 fi
4852else
4853 ac_cpp_err=yes
4854fi
4855if test -z "$ac_cpp_err"; then
4856 ac_header_preproc=yes
4857else
4858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004859sed 's/^/| /' conftest.$ac_ext >&5
4860
John Criswell7a73b802003-06-30 21:59:07 +00004861 ac_header_preproc=no
4862fi
4863rm -f conftest.err conftest.$ac_ext
4864echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4865echo "${ECHO_T}$ac_header_preproc" >&6
4866
4867# So? What about this header?
4868case $ac_header_compiler:$ac_header_preproc in
4869 yes:no )
4870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4871echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4874 (
4875 cat <<\_ASBOX
4876## ------------------------------------ ##
4877## Report this to bug-autoconf@gnu.org. ##
4878## ------------------------------------ ##
4879_ASBOX
4880 ) |
4881 sed "s/^/$as_me: WARNING: /" >&2
4882 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004883 no:yes )
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4890 (
4891 cat <<\_ASBOX
4892## ------------------------------------ ##
4893## Report this to bug-autoconf@gnu.org. ##
4894## ------------------------------------ ##
4895_ASBOX
4896 ) |
4897 sed "s/^/$as_me: WARNING: /" >&2
4898 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 eval "$as_ac_Header=$ac_header_preproc"
4906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910fi
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
4915
4916fi
4917
4918done
4919
John Criswell47fdd832003-07-14 16:52:07 +00004920ac_ext=cc
4921ac_cpp='$CXXCPP $CPPFLAGS'
4922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4925echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4926echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4927if test -z "$CXXCPP"; then
4928 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
John Criswell47fdd832003-07-14 16:52:07 +00004931 # Double quotes because CXXCPP needs to be expanded
4932 for CXXCPP in "$CXX -E" "/lib/cpp"
4933 do
4934 ac_preproc_ok=false
4935for ac_cxx_preproc_warn_flag in '' yes
4936do
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat >conftest.$ac_ext <<_ACEOF
4944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
4950#ifdef __STDC__
4951# include <limits.h>
4952#else
4953# include <assert.h>
4954#endif
John Criswell47fdd832003-07-14 16:52:07 +00004955 Syntax error
4956_ACEOF
4957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004967 else
John Criswell47fdd832003-07-14 16:52:07 +00004968 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004969 fi
John Criswell47fdd832003-07-14 16:52:07 +00004970else
4971 ac_cpp_err=yes
4972fi
4973if test -z "$ac_cpp_err"; then
4974 :
4975else
4976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004977sed 's/^/| /' conftest.$ac_ext >&5
4978
John Criswell47fdd832003-07-14 16:52:07 +00004979 # Broken: fails on valid input.
4980continue
4981fi
4982rm -f conftest.err conftest.$ac_ext
4983
4984 # OK, works on sane cases. Now check whether non-existent headers
4985 # can be detected and how.
4986 cat >conftest.$ac_ext <<_ACEOF
4987#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004993#include <ac_nonexistent.h>
4994_ACEOF
4995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4997 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004998 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } >/dev/null; then
5003 if test -s conftest.err; then
5004 ac_cpp_err=$ac_cxx_preproc_warn_flag
5005 else
5006 ac_cpp_err=
5007 fi
5008else
5009 ac_cpp_err=yes
5010fi
5011if test -z "$ac_cpp_err"; then
5012 # Broken: success on invalid input.
5013continue
5014else
5015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005016sed 's/^/| /' conftest.$ac_ext >&5
5017
John Criswell47fdd832003-07-14 16:52:07 +00005018 # Passes both tests.
5019ac_preproc_ok=:
5020break
5021fi
5022rm -f conftest.err conftest.$ac_ext
5023
5024done
5025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026rm -f conftest.err conftest.$ac_ext
5027if $ac_preproc_ok; then
5028 break
John Criswell7a73b802003-06-30 21:59:07 +00005029fi
5030
John Criswell47fdd832003-07-14 16:52:07 +00005031 done
5032 ac_cv_prog_CXXCPP=$CXXCPP
5033
5034fi
5035 CXXCPP=$ac_cv_prog_CXXCPP
5036else
5037 ac_cv_prog_CXXCPP=$CXXCPP
5038fi
5039echo "$as_me:$LINENO: result: $CXXCPP" >&5
5040echo "${ECHO_T}$CXXCPP" >&6
5041ac_preproc_ok=false
5042for ac_cxx_preproc_warn_flag in '' yes
5043do
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat >conftest.$ac_ext <<_ACEOF
5051#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#ifdef __STDC__
5058# include <limits.h>
5059#else
5060# include <assert.h>
5061#endif
John Criswell47fdd832003-07-14 16:52:07 +00005062 Syntax error
5063_ACEOF
5064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005067 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null; then
5072 if test -s conftest.err; then
5073 ac_cpp_err=$ac_cxx_preproc_warn_flag
5074 else
5075 ac_cpp_err=
5076 fi
5077else
5078 ac_cpp_err=yes
5079fi
5080if test -z "$ac_cpp_err"; then
5081 :
5082else
5083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005084sed 's/^/| /' conftest.$ac_ext >&5
5085
John Criswell47fdd832003-07-14 16:52:07 +00005086 # Broken: fails on valid input.
5087continue
5088fi
5089rm -f conftest.err conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether non-existent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5094#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005100#include <ac_nonexistent.h>
5101_ACEOF
5102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005105 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null; then
5110 if test -s conftest.err; then
5111 ac_cpp_err=$ac_cxx_preproc_warn_flag
5112 else
5113 ac_cpp_err=
5114 fi
5115else
5116 ac_cpp_err=yes
5117fi
5118if test -z "$ac_cpp_err"; then
5119 # Broken: success on invalid input.
5120continue
5121else
5122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005123sed 's/^/| /' conftest.$ac_ext >&5
5124
John Criswell47fdd832003-07-14 16:52:07 +00005125 # Passes both tests.
5126ac_preproc_ok=:
5127break
5128fi
5129rm -f conftest.err conftest.$ac_ext
5130
5131done
5132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133rm -f conftest.err conftest.$ac_ext
5134if $ac_preproc_ok; then
5135 :
5136else
John Criswell0c38eaf2003-09-10 15:17:25 +00005137 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138See \`config.log' for more details." >&5
5139echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005141 { (exit 1); exit 1; }; }
5142fi
5143
5144ac_ext=cc
5145ac_cpp='$CXXCPP $CPPFLAGS'
5146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5149
5150
5151ac_ext=f
5152ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5153ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5155if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005156 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 +00005157 do
5158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5160echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162if test "${ac_cv_prog_F77+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 if test -n "$F77"; then
5166 ac_cv_prog_F77="$F77" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181
5182fi
5183fi
5184F77=$ac_cv_prog_F77
5185if test -n "$F77"; then
5186 echo "$as_me:$LINENO: result: $F77" >&5
5187echo "${ECHO_T}$F77" >&6
5188else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191fi
5192
5193 test -n "$F77" && break
5194 done
5195fi
5196if test -z "$F77"; then
5197 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005198 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 +00005199do
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201set dummy $ac_prog; ac_word=$2
5202echo "$as_me:$LINENO: checking for $ac_word" >&5
5203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5204if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 if test -n "$ac_ct_F77"; then
5208 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_F77="$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222done
5223
5224fi
5225fi
5226ac_ct_F77=$ac_cv_prog_ac_ct_F77
5227if test -n "$ac_ct_F77"; then
5228 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5229echo "${ECHO_T}$ac_ct_F77" >&6
5230else
5231 echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233fi
5234
5235 test -n "$ac_ct_F77" && break
5236done
5237
5238 F77=$ac_ct_F77
5239fi
5240
5241
5242# Provide some information about the compiler.
John Criswell68886d42003-09-26 19:51:42 +00005243echo "$as_me:5243:" \
John Criswell47fdd832003-07-14 16:52:07 +00005244 "checking for Fortran 77 compiler version" >&5
5245ac_compiler=`set X $ac_compile; echo $2`
5246{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5247 (eval $ac_compiler --version </dev/null >&5) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }
5251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5252 (eval $ac_compiler -v </dev/null >&5) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5257 (eval $ac_compiler -V </dev/null >&5) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261
5262# If we don't use `.F' as extension, the preprocessor is not run on the
5263# input file.
5264ac_save_ext=$ac_ext
5265ac_ext=F
5266echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5267echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5268if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270else
5271 cat >conftest.$ac_ext <<_ACEOF
5272 program main
5273#ifndef __GNUC__
5274 choke me
5275#endif
5276
5277 end
5278_ACEOF
5279rm -f conftest.$ac_objext
5280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try='test -s conftest.$ac_objext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 (eval $ac_try) 2>&5
5288 ac_status=$?
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_compiler_gnu=yes
5292else
5293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005294sed 's/^/| /' conftest.$ac_ext >&5
5295
John Criswell47fdd832003-07-14 16:52:07 +00005296ac_compiler_gnu=no
5297fi
5298rm -f conftest.$ac_objext conftest.$ac_ext
5299ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5300
5301fi
5302echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5303echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5304ac_ext=$ac_save_ext
5305G77=`test $ac_compiler_gnu = yes && echo yes`
5306ac_test_FFLAGS=${FFLAGS+set}
5307ac_save_FFLAGS=$FFLAGS
5308FFLAGS=
5309echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5310echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5311if test "${ac_cv_prog_f77_g+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314 FFLAGS=-g
5315cat >conftest.$ac_ext <<_ACEOF
5316 program main
5317
5318 end
5319_ACEOF
5320rm -f conftest.$ac_objext
5321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_prog_f77_g=yes
5333else
5334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005335sed 's/^/| /' conftest.$ac_ext >&5
5336
John Criswell47fdd832003-07-14 16:52:07 +00005337ac_cv_prog_f77_g=no
5338fi
5339rm -f conftest.$ac_objext conftest.$ac_ext
5340
5341fi
5342echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5343echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5344if test "$ac_test_FFLAGS" = set; then
5345 FFLAGS=$ac_save_FFLAGS
5346elif test $ac_cv_prog_f77_g = yes; then
5347 if test "$G77" = yes; then
5348 FFLAGS="-g -O2"
5349 else
5350 FFLAGS="-g"
5351 fi
5352else
5353 if test "$G77" = yes; then
5354 FFLAGS="-O2"
5355 else
5356 FFLAGS=
5357 fi
5358fi
5359ac_ext=c
5360ac_cpp='$CPP $CPPFLAGS'
5361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364
5365
5366
5367# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5368
5369# find the maximum length of command line arguments
5370echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5371echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5372if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374else
5375 i=0
5376 testring="ABCD"
5377
5378 case $build_os in
5379 msdosdjgpp*)
5380 # On DJGPP, this test can blow up pretty badly due to problems in libc
5381 # (any single argument exceeding 2000 bytes causes a buffer overrun
5382 # during glob expansion). Even if it were fixed, the result of this
5383 # check would be larger than it should be.
5384 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5385 ;;
5386
5387 gnu*)
5388 # Under GNU Hurd, this test is not required because there is
5389 # no limit to the length of command line arguments.
5390 # Libtool will interpret -1 as no limit whatsoever
5391 lt_cv_sys_max_cmd_len=-1;
5392 ;;
5393
5394 cygwin* | mingw*)
5395 # On Win9x/ME, this test blows up -- it succeeds, but takes
5396 # about 5 minutes as the teststring grows exponentially.
5397 # Worse, since 9x/ME are not pre-emptively multitasking,
5398 # you end up with a "frozen" computer, even though with patience
5399 # the test eventually succeeds (with a max line length of 256k).
5400 # Instead, let's just punt: use the minimum linelength reported by
5401 # all of the supported platforms: 8192 (on NT/2K/XP).
5402 lt_cv_sys_max_cmd_len=8192;
5403 ;;
5404
5405 *)
5406 # If test is not a shell built-in, we'll probably end up computing a
5407 # maximum length that is only half of the actual maximum length, but
5408 # we can't tell.
5409 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5410 = "XX$testring") >/dev/null 2>&1 &&
5411 new_result=`expr "X$testring" : ".*" 2>&1` &&
5412 lt_cv_sys_max_cmd_len=$new_result &&
5413 test $i != 17 # 1/2 MB should be enough
5414 do
5415 i=`expr $i + 1`
5416 testring=$testring$testring
5417 done
5418 testring=
5419 # Add a significant safety factor because C++ compilers can tack on massive
5420 # amounts of additional arguments before passing them to the linker.
5421 # It appears as though 1/2 is a usable value.
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5423 ;;
5424 esac
5425
5426fi
5427
5428if test -n $lt_cv_sys_max_cmd_len ; then
5429 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5430echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5431else
5432 echo "$as_me:$LINENO: result: none" >&5
5433echo "${ECHO_T}none" >&6
5434fi
5435
5436
5437
5438
5439# Check for command to grab the raw symbol name followed by C symbol from nm.
5440echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5441echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5442if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445
5446# These are sane defaults that work on at least a few old systems.
5447# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5448
5449# Character class describing NM global symbol codes.
5450symcode='[BCDEGRST]'
5451
5452# Regexp to match symbols that can be accessed directly from C.
5453sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5454
5455# Transform the above into a raw symbol and a C symbol.
5456symxfrm='\1 \2\3 \3'
5457
5458# Transform an extracted symbol line into a proper C declaration
5459lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5460
5461# Transform an extracted symbol line into symbol name and symbol address
5462lt_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'"
5463
5464# Define system-specific variables.
5465case $host_os in
5466aix*)
5467 symcode='[BCDT]'
5468 ;;
5469cygwin* | mingw* | pw32*)
5470 symcode='[ABCDGISTW]'
5471 ;;
5472hpux*) # Its linker distinguishes data from code symbols
5473 if test "$host_cpu" = ia64; then
5474 symcode='[ABCDEGRST]'
5475 fi
5476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5477 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'"
5478 ;;
5479irix* | nonstopux*)
5480 symcode='[BCDEGRST]'
5481 ;;
5482osf*)
5483 symcode='[BCDEGQRST]'
5484 ;;
5485solaris* | sysv5*)
5486 symcode='[BDT]'
5487 ;;
5488sysv4)
5489 symcode='[DFNSTU]'
5490 ;;
5491esac
5492
5493# Handle CRLF in mingw tool chain
5494opt_cr=
5495case $build_os in
5496mingw*)
5497 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5498 ;;
5499esac
5500
5501# If we're using GNU nm, then use its standard symbol codes.
5502case `$NM -V 2>&1` in
5503*GNU* | *'with BFD'*)
5504 symcode='[ABCDGISTW]' ;;
5505esac
5506
5507# Try without a prefix undercore, then with it.
5508for ac_symprfx in "" "_"; do
5509
5510 # Write the raw and C identifiers.
5511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5512
5513 # Check to see that the pipe works correctly.
5514 pipe_works=no
5515
5516 rm -f conftest*
5517 cat > conftest.$ac_ext <<EOF
5518#ifdef __cplusplus
5519extern "C" {
5520#endif
5521char nm_test_var;
5522void nm_test_func(){}
5523#ifdef __cplusplus
5524}
5525#endif
5526int main(){nm_test_var='a';nm_test_func();return(0);}
5527EOF
5528
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; then
5534 # Now try to grab the symbols.
5535 nlist=conftest.nm
5536 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5537 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && test -s "$nlist"; then
5541 # Try sorting and uniquifying the output.
5542 if sort "$nlist" | uniq > "$nlist"T; then
5543 mv -f "$nlist"T "$nlist"
5544 else
5545 rm -f "$nlist"T
5546 fi
5547
5548 # Make sure that we snagged all the symbols we need.
5549 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5550 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5551 cat <<EOF > conftest.$ac_ext
5552#ifdef __cplusplus
5553extern "C" {
5554#endif
5555
5556EOF
5557 # Now generate the symbol file.
5558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5559
5560 cat <<EOF >> conftest.$ac_ext
5561#if defined (__STDC__) && __STDC__
5562# define lt_ptr_t void *
5563#else
5564# define lt_ptr_t char *
5565# define const
5566#endif
5567
5568/* The mapping between symbol names and symbols. */
5569const struct {
5570 const char *name;
5571 lt_ptr_t address;
5572}
5573lt_preloaded_symbols[] =
5574{
5575EOF
5576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5577 cat <<\EOF >> conftest.$ac_ext
5578 {0, (lt_ptr_t) 0}
5579};
5580
5581#ifdef __cplusplus
5582}
5583#endif
5584EOF
5585 # Now try linking the two files.
5586 mv conftest.$ac_objext conftstm.$ac_objext
5587 lt_save_LIBS="$LIBS"
5588 lt_save_CFLAGS="$CFLAGS"
5589 LIBS="conftstm.$ac_objext"
5590 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5596 pipe_works=yes
5597 fi
5598 LIBS="$lt_save_LIBS"
5599 CFLAGS="$lt_save_CFLAGS"
5600 else
5601 echo "cannot find nm_test_func in $nlist" >&5
5602 fi
5603 else
5604 echo "cannot find nm_test_var in $nlist" >&5
5605 fi
5606 else
5607 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5608 fi
5609 else
5610 echo "$progname: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5612 fi
5613 rm -f conftest* conftst*
5614
5615 # Do not use the global_symbol_pipe unless it works.
5616 if test "$pipe_works" = yes; then
5617 break
5618 else
5619 lt_cv_sys_global_symbol_pipe=
5620 fi
5621done
5622
5623fi
5624
5625if test -z "$lt_cv_sys_global_symbol_pipe"; then
5626 lt_cv_sys_global_symbol_to_cdecl=
5627fi
5628if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5629 echo "$as_me:$LINENO: result: failed" >&5
5630echo "${ECHO_T}failed" >&6
5631else
5632 echo "$as_me:$LINENO: result: ok" >&5
5633echo "${ECHO_T}ok" >&6
5634fi
5635
5636echo "$as_me:$LINENO: checking for objdir" >&5
5637echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5638if test "${lt_cv_objdir+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 rm -f .libs 2>/dev/null
5642mkdir .libs 2>/dev/null
5643if test -d .libs; then
5644 lt_cv_objdir=.libs
5645else
5646 # MS-DOS does not allow filenames that begin with a dot.
5647 lt_cv_objdir=_libs
5648fi
5649rmdir .libs 2>/dev/null
5650fi
5651echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5652echo "${ECHO_T}$lt_cv_objdir" >&6
5653objdir=$lt_cv_objdir
5654
5655
5656
5657
5658
5659case $host_os in
5660aix3*)
5661 # AIX sometimes has problems with the GCC collect2 program. For some
5662 # reason, if we set the COLLECT_NAMES environment variable, the problems
5663 # vanish in a puff of smoke.
5664 if test "X${COLLECT_NAMES+set}" != Xset; then
5665 COLLECT_NAMES=
5666 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005667 fi
5668 ;;
5669esac
5670
John Criswell47fdd832003-07-14 16:52:07 +00005671# Sed substitution that helps us do robust quoting. It backslashifies
5672# metacharacters that are still active within double-quoted strings.
5673Xsed='sed -e s/^X//'
5674sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5675
5676# Same as above, but do not quote variable references.
5677double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5678
5679# Sed substitution to delay expansion of an escaped shell variable in a
5680# double_quote_subst'ed string.
5681delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5682
5683# Sed substitution to avoid accidental globbing in evaled expressions
5684no_glob_subst='s/\*/\\\*/g'
5685
5686# Constants:
5687rm="rm -f"
5688
5689# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005690default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005691can_build_shared=yes
5692
5693# All known linkers require a `.a' archive for static linking (except M$VC,
5694# which needs '.lib').
5695libext=a
5696ltmain="$ac_aux_dir/ltmain.sh"
5697ofile="$default_ofile"
5698with_gnu_ld="$lt_cv_prog_gnu_ld"
5699
5700if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5702set dummy ${ac_tool_prefix}ar; ac_word=$2
5703echo "$as_me:$LINENO: checking for $ac_word" >&5
5704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705if test "${ac_cv_prog_AR+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 if test -n "$AR"; then
5709 ac_cv_prog_AR="$AR" # Let the user override the test.
5710else
5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_AR="${ac_tool_prefix}ar"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723done
5724
5725fi
5726fi
5727AR=$ac_cv_prog_AR
5728if test -n "$AR"; then
5729 echo "$as_me:$LINENO: result: $AR" >&5
5730echo "${ECHO_T}$AR" >&6
5731else
5732 echo "$as_me:$LINENO: result: no" >&5
5733echo "${ECHO_T}no" >&6
5734fi
5735
5736fi
5737if test -z "$ac_cv_prog_AR"; then
5738 ac_ct_AR=$AR
5739 # Extract the first word of "ar", so it can be a program name with args.
5740set dummy ar; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$ac_ct_AR"; then
5747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_AR="ar"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5764fi
5765fi
5766ac_ct_AR=$ac_cv_prog_ac_ct_AR
5767if test -n "$ac_ct_AR"; then
5768 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5769echo "${ECHO_T}$ac_ct_AR" >&6
5770else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773fi
5774
5775 AR=$ac_ct_AR
5776else
5777 AR="$ac_cv_prog_AR"
5778fi
5779
John Criswell7a73b802003-06-30 21:59:07 +00005780if test -n "$ac_tool_prefix"; then
5781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5782set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5783echo "$as_me:$LINENO: checking for $ac_word" >&5
5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5785if test "${ac_cv_prog_RANLIB+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 if test -n "$RANLIB"; then
5789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803done
5804
5805fi
5806fi
5807RANLIB=$ac_cv_prog_RANLIB
5808if test -n "$RANLIB"; then
5809 echo "$as_me:$LINENO: result: $RANLIB" >&5
5810echo "${ECHO_T}$RANLIB" >&6
5811else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814fi
5815
5816fi
5817if test -z "$ac_cv_prog_RANLIB"; then
5818 ac_ct_RANLIB=$RANLIB
5819 # Extract the first word of "ranlib", so it can be a program name with args.
5820set dummy ranlib; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826 if test -n "$ac_ct_RANLIB"; then
5827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_ac_ct_RANLIB="ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842
5843 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5844fi
5845fi
5846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5847if test -n "$ac_ct_RANLIB"; then
5848 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5849echo "${ECHO_T}$ac_ct_RANLIB" >&6
5850else
5851 echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
5853fi
5854
5855 RANLIB=$ac_ct_RANLIB
5856else
5857 RANLIB="$ac_cv_prog_RANLIB"
5858fi
5859
5860if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5862set dummy ${ac_tool_prefix}strip; ac_word=$2
5863echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865if test "${ac_cv_prog_STRIP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868 if test -n "$STRIP"; then
5869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883done
5884
5885fi
5886fi
5887STRIP=$ac_cv_prog_STRIP
5888if test -n "$STRIP"; then
5889 echo "$as_me:$LINENO: result: $STRIP" >&5
5890echo "${ECHO_T}$STRIP" >&6
5891else
5892 echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894fi
5895
5896fi
5897if test -z "$ac_cv_prog_STRIP"; then
5898 ac_ct_STRIP=$STRIP
5899 # Extract the first word of "strip", so it can be a program name with args.
5900set dummy strip; ac_word=$2
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 if test -n "$ac_ct_STRIP"; then
5907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_STRIP="strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921done
5922
5923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5924fi
5925fi
5926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5927if test -n "$ac_ct_STRIP"; then
5928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5929echo "${ECHO_T}$ac_ct_STRIP" >&6
5930else
5931 echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
5933fi
5934
5935 STRIP=$ac_ct_STRIP
5936else
5937 STRIP="$ac_cv_prog_STRIP"
5938fi
5939
5940
John Criswell7a73b802003-06-30 21:59:07 +00005941old_CC="$CC"
5942old_CFLAGS="$CFLAGS"
5943
5944# Set sane defaults for various variables
5945test -z "$AR" && AR=ar
5946test -z "$AR_FLAGS" && AR_FLAGS=cru
5947test -z "$AS" && AS=as
5948test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005949test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005950test -z "$DLLTOOL" && DLLTOOL=dlltool
5951test -z "$LD" && LD=ld
5952test -z "$LN_S" && LN_S="ln -s"
5953test -z "$MAGIC_CMD" && MAGIC_CMD=file
5954test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005955test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005956test -z "$OBJDUMP" && OBJDUMP=objdump
5957test -z "$RANLIB" && RANLIB=:
5958test -z "$STRIP" && STRIP=:
5959test -z "$ac_objext" && ac_objext=o
5960
John Criswell7a73b802003-06-30 21:59:07 +00005961# Determine commands to create old-style static archives.
5962old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5963old_postinstall_cmds='chmod 644 $oldlib'
5964old_postuninstall_cmds=
5965
5966if test -n "$RANLIB"; then
5967 case $host_os in
5968 openbsd*)
5969 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5970 ;;
5971 *)
5972 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5973 ;;
5974 esac
5975 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5976fi
5977
John Criswell47fdd832003-07-14 16:52:07 +00005978# Only perform the check for file, if the check method requires it
5979case $deplibs_check_method in
5980file_magic*)
5981 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5982 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5983echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005986else
John Criswell47fdd832003-07-14 16:52:07 +00005987 case $MAGIC_CMD in
5988[\\/*] | ?:[\\/]*)
5989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5990 ;;
5991*)
5992 lt_save_MAGIC_CMD="$MAGIC_CMD"
5993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5994 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5995 for ac_dir in $ac_dummy; do
5996 IFS="$lt_save_ifs"
5997 test -z "$ac_dir" && ac_dir=.
5998 if test -f $ac_dir/${ac_tool_prefix}file; then
5999 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6000 if test -n "$file_magic_test_file"; then
6001 case $deplibs_check_method in
6002 "file_magic "*)
6003 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6006 $EGREP "$file_magic_regex" > /dev/null; then
6007 :
6008 else
6009 cat <<EOF 1>&2
6010
6011*** Warning: the command libtool uses to detect shared libraries,
6012*** $file_magic_cmd, produces output that libtool cannot recognize.
6013*** The result is that libtool may fail to recognize shared libraries
6014*** as such. This will affect the creation of libtool libraries that
6015*** depend on shared libraries, but programs linked with such libtool
6016*** libraries will work regardless of this problem. Nevertheless, you
6017*** may want to report the problem to your system manager and/or to
6018*** bug-libtool@gnu.org
6019
6020EOF
6021 fi ;;
6022 esac
6023 fi
6024 break
6025 fi
6026 done
6027 IFS="$lt_save_ifs"
6028 MAGIC_CMD="$lt_save_MAGIC_CMD"
6029 ;;
6030esac
John Criswell7a73b802003-06-30 21:59:07 +00006031fi
John Criswell7a73b802003-06-30 21:59:07 +00006032
John Criswell47fdd832003-07-14 16:52:07 +00006033MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034if test -n "$MAGIC_CMD"; then
6035 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6036echo "${ECHO_T}$MAGIC_CMD" >&6
6037else
6038 echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6
6040fi
John Criswell7a73b802003-06-30 21:59:07 +00006041
John Criswell47fdd832003-07-14 16:52:07 +00006042if test -z "$lt_cv_path_MAGIC_CMD"; then
6043 if test -n "$ac_tool_prefix"; then
6044 echo "$as_me:$LINENO: checking for file" >&5
6045echo $ECHO_N "checking for file... $ECHO_C" >&6
6046if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048else
6049 case $MAGIC_CMD in
6050[\\/*] | ?:[\\/]*)
6051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6052 ;;
6053*)
6054 lt_save_MAGIC_CMD="$MAGIC_CMD"
6055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6057 for ac_dir in $ac_dummy; do
6058 IFS="$lt_save_ifs"
6059 test -z "$ac_dir" && ac_dir=.
6060 if test -f $ac_dir/file; then
6061 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6062 if test -n "$file_magic_test_file"; then
6063 case $deplibs_check_method in
6064 "file_magic "*)
6065 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6068 $EGREP "$file_magic_regex" > /dev/null; then
6069 :
6070 else
6071 cat <<EOF 1>&2
6072
6073*** Warning: the command libtool uses to detect shared libraries,
6074*** $file_magic_cmd, produces output that libtool cannot recognize.
6075*** The result is that libtool may fail to recognize shared libraries
6076*** as such. This will affect the creation of libtool libraries that
6077*** depend on shared libraries, but programs linked with such libtool
6078*** libraries will work regardless of this problem. Nevertheless, you
6079*** may want to report the problem to your system manager and/or to
6080*** bug-libtool@gnu.org
6081
6082EOF
6083 fi ;;
6084 esac
6085 fi
6086 break
6087 fi
6088 done
6089 IFS="$lt_save_ifs"
6090 MAGIC_CMD="$lt_save_MAGIC_CMD"
6091 ;;
6092esac
6093fi
6094
6095MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096if test -n "$MAGIC_CMD"; then
6097 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6098echo "${ECHO_T}$MAGIC_CMD" >&6
6099else
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102fi
6103
6104 else
6105 MAGIC_CMD=:
6106 fi
6107fi
6108
6109 fi
6110 ;;
6111esac
6112
6113enable_dlopen=no
6114enable_win32_dll=no
6115
6116# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6117if test "${enable_libtool_lock+set}" = set; then
6118 enableval="$enable_libtool_lock"
6119
6120fi;
6121test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6122
John Criswell7a73b802003-06-30 21:59:07 +00006123
6124# Check whether --with-pic or --without-pic was given.
6125if test "${with_pic+set}" = set; then
6126 withval="$with_pic"
6127 pic_mode="$withval"
6128else
6129 pic_mode=default
6130fi;
6131test -z "$pic_mode" && pic_mode=default
6132
John Criswell47fdd832003-07-14 16:52:07 +00006133# Use C for the default configuration in the libtool script
6134tagname=
6135lt_save_CC="$CC"
6136ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143# Source file extension for C test sources.
6144ac_ext=c
6145
6146# Object file extension for compiled C test sources.
6147objext=o
6148objext=$objext
6149
6150# Code to be used in simple compile tests
6151lt_simple_compile_test_code="int some_variable = 0;\n"
6152
6153# Code to be used in simple link tests
6154lt_simple_link_test_code='int main(){return(0);}\n'
6155
6156
6157# If no C compiler was specified, use CC.
6158LTCC=${LTCC-"$CC"}
6159
6160# Allow CC to be a program name with arguments.
6161compiler=$CC
6162
6163
6164#
6165# Check for any special shared library compilation flags.
6166#
6167lt_prog_cc_shlib=
6168if test "$GCC" = no; then
6169 case $host_os in
6170 sco3.2v5*)
6171 lt_prog_cc_shlib='-belf'
6172 ;;
6173 esac
6174fi
6175if test -n "$lt_prog_cc_shlib"; then
6176 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6177echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6178 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6179 else
6180 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6181echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6182 lt_cv_prog_cc_can_build_shared=no
6183 fi
6184fi
6185
6186
6187#
6188# Check to make sure the static flag actually works.
6189#
6190echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6191echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6192if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
John Criswell47fdd832003-07-14 16:52:07 +00006195 lt_prog_compiler_static_works=no
6196 save_LDFLAGS="$LDFLAGS"
6197 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6198 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6200 # The compiler can only warn and ignore the option if not recognized
6201 # So say no if there are warnings
6202 if test -s conftest.err; then
6203 # Append any errors to the config.log.
6204 cat conftest.err 1>&5
6205 else
6206 lt_prog_compiler_static_works=yes
6207 fi
6208 fi
6209 $rm conftest*
6210 LDFLAGS="$save_LDFLAGS"
6211
6212fi
6213echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6214echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6215
6216if test x"$lt_prog_compiler_static_works" = xyes; then
6217 :
6218else
6219 lt_prog_compiler_static=
6220fi
6221
6222
6223
6224## CAVEAT EMPTOR:
6225## There is no encapsulation within the following macros, do not change
6226## the running order or otherwise move them around unless you know exactly
6227## what you are doing...
6228
6229lt_prog_compiler_no_builtin_flag=
6230
6231if test "$GCC" = yes; then
6232 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6233
6234 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6235echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6236if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 lt_cv_prog_compiler_rtti_exceptions=no
6240 ac_outfile=conftest.$ac_objext
6241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6242 lt_compiler_flag="-fno-rtti -fno-exceptions"
6243 # Insert the option either (1) after the last *FLAGS variable, or
6244 # (2) before a word containing "conftest.", or (3) at the end.
6245 # Note that $ac_compile itself does not contain backslashes and begins
6246 # with a dollar sign (not a hyphen), so the echo should work correctly.
6247 # The option is referenced via a variable to avoid confusing sed.
6248 lt_compile=`echo "$ac_compile" | $SED \
6249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6251 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +00006252 (eval echo "\"\$as_me:6252: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006253 (eval "$lt_compile" 2>conftest.err)
6254 ac_status=$?
6255 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +00006256 echo "$as_me:6256: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006257 if (exit $ac_status) && test -s "$ac_outfile"; then
6258 # The compiler can only warn and ignore the option if not recognized
6259 # So say no if there are warnings
6260 if test ! -s conftest.err; then
6261 lt_cv_prog_compiler_rtti_exceptions=yes
6262 fi
6263 fi
6264 $rm conftest*
6265
6266fi
6267echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6268echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6269
6270if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6271 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6272else
6273 :
6274fi
6275
6276fi
6277
6278lt_prog_compiler_wl=
6279lt_prog_compiler_pic=
6280lt_prog_compiler_static=
6281
6282echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6283echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006284
6285 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_wl='-Wl,'
6287 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006288
6289 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006290 aix*)
6291 # All AIX code is PIC.
6292 if test "$host_cpu" = ia64; then
6293 # AIX 5 now supports IA64 processor
6294 lt_prog_compiler_static='-Bstatic'
6295 fi
John Criswell7a73b802003-06-30 21:59:07 +00006296 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006297
John Criswell7a73b802003-06-30 21:59:07 +00006298 amigaos*)
6299 # FIXME: we need at least 68020 code to build shared libraries, but
6300 # adding the `-m68020' flag to GCC prevents building anything better,
6301 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006302 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006303 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006304
6305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006306 # PIC is the default for these OSes.
6307 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006308
6309 mingw* | pw32* | os2*)
6310 # This hack is so that the source file can tell whether it is being
6311 # built for inclusion in a dll (and should export symbols for example).
6312 lt_prog_compiler_pic='-DDLL_EXPORT'
6313 ;;
6314
John Criswell7a73b802003-06-30 21:59:07 +00006315 darwin* | rhapsody*)
6316 # PIC is the default on this platform
6317 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006318 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006319 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006320
6321 msdosdjgpp*)
6322 # Just because we use GCC doesn't mean we suddenly get shared libraries
6323 # on systems that don't support them.
6324 lt_prog_compiler_can_build_shared=no
6325 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006326 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006327
John Criswell7a73b802003-06-30 21:59:07 +00006328 sysv4*MP*)
6329 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006330 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006331 fi
6332 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006333
6334 hpux*)
6335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6336 # not for PA HP-UX.
6337 case "$host_cpu" in
6338 hppa*64*|ia64*)
6339 # +Z the default
6340 ;;
6341 *)
6342 lt_prog_compiler_pic='-fPIC'
6343 ;;
6344 esac
6345 ;;
6346
John Criswell7a73b802003-06-30 21:59:07 +00006347 *)
John Criswell47fdd832003-07-14 16:52:07 +00006348 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006349 ;;
6350 esac
6351 else
John Criswell47fdd832003-07-14 16:52:07 +00006352 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006353 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006354 aix*)
6355 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006356 if test "$host_cpu" = ia64; then
6357 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006358 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006359 else
John Criswell47fdd832003-07-14 16:52:07 +00006360 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006361 fi
6362 ;;
6363
John Criswell47fdd832003-07-14 16:52:07 +00006364 mingw* | pw32* | os2*)
6365 # This hack is so that the source file can tell whether it is being
6366 # built for inclusion in a dll (and should export symbols for example).
6367 lt_prog_compiler_pic='-DDLL_EXPORT'
6368 ;;
6369
John Criswell7a73b802003-06-30 21:59:07 +00006370 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_wl='-Wl,'
6372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6373 # not for PA HP-UX.
6374 case "$host_cpu" in
6375 hppa*64*|ia64*)
6376 # +Z the default
6377 ;;
6378 *)
6379 lt_prog_compiler_pic='+Z'
6380 ;;
6381 esac
6382 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6383 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006384 ;;
6385
John Criswell47fdd832003-07-14 16:52:07 +00006386 irix5* | irix6* | nonstopux*)
6387 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006388 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006389 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006390 ;;
6391
6392 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006393 lt_prog_compiler_pic='-KPIC'
6394 lt_prog_compiler_static='-Bstatic'
6395 ;;
6396
6397 linux*)
6398 case $CC in
6399 icc|ecc)
6400 lt_prog_compiler_wl='-Wl,'
6401 lt_prog_compiler_pic='-KPIC'
6402 lt_prog_compiler_static='-static'
6403 ;;
6404 ccc)
6405 lt_prog_compiler_wl='-Wl,'
6406 # All Alpha code is PIC.
6407 lt_prog_compiler_static='-non_shared'
6408 ;;
6409 esac
John Criswell7a73b802003-06-30 21:59:07 +00006410 ;;
6411
6412 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006413 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006414 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006415 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006416 ;;
6417
6418 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006419 lt_prog_compiler_pic='-Kpic'
6420 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422
6423 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_wl='-Wl,'
6425 lt_prog_compiler_pic='-KPIC'
6426 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006427 ;;
6428
6429 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006430 lt_prog_compiler_wl='-Qoption ld '
6431 lt_prog_compiler_pic='-PIC'
6432 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006433 ;;
6434
6435 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_wl='-Wl,'
6437 lt_prog_compiler_pic='-KPIC'
6438 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006439 ;;
6440
6441 sysv4*MP*)
6442 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006443 lt_prog_compiler_pic='-Kconform_pic'
6444 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006445 fi
6446 ;;
6447
John Criswell47fdd832003-07-14 16:52:07 +00006448 uts4*)
6449 lt_prog_compiler_pic='-pic'
6450 lt_prog_compiler_static='-Bstatic'
6451 ;;
6452
John Criswell7a73b802003-06-30 21:59:07 +00006453 *)
John Criswell47fdd832003-07-14 16:52:07 +00006454 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006455 ;;
6456 esac
6457 fi
6458
John Criswell47fdd832003-07-14 16:52:07 +00006459echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6460echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006461
John Criswell47fdd832003-07-14 16:52:07 +00006462#
6463# Check to make sure the PIC flag actually works.
6464#
6465if test -n "$lt_prog_compiler_pic"; then
6466 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6467echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6468if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
John Criswell47fdd832003-07-14 16:52:07 +00006471 lt_prog_compiler_pic_works=no
6472 ac_outfile=conftest.$ac_objext
6473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6475 # Insert the option either (1) after the last *FLAGS variable, or
6476 # (2) before a word containing "conftest.", or (3) at the end.
6477 # Note that $ac_compile itself does not contain backslashes and begins
6478 # with a dollar sign (not a hyphen), so the echo should work correctly.
6479 # The option is referenced via a variable to avoid confusing sed.
6480 lt_compile=`echo "$ac_compile" | $SED \
6481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6483 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +00006484 (eval echo "\"\$as_me:6484: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006485 (eval "$lt_compile" 2>conftest.err)
6486 ac_status=$?
6487 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +00006488 echo "$as_me:6488: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006489 if (exit $ac_status) && test -s "$ac_outfile"; then
6490 # The compiler can only warn and ignore the option if not recognized
6491 # So say no if there are warnings
6492 if test ! -s conftest.err; then
6493 lt_prog_compiler_pic_works=yes
6494 fi
6495 fi
6496 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006497
John Criswell47fdd832003-07-14 16:52:07 +00006498fi
6499echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6500echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006501
John Criswell47fdd832003-07-14 16:52:07 +00006502if test x"$lt_prog_compiler_pic_works" = xyes; then
6503 case $lt_prog_compiler_pic in
6504 "" | " "*) ;;
6505 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6506 esac
John Criswell7a73b802003-06-30 21:59:07 +00006507else
John Criswell47fdd832003-07-14 16:52:07 +00006508 lt_prog_compiler_pic=
6509 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006510fi
6511
John Criswell7a73b802003-06-30 21:59:07 +00006512fi
John Criswell47fdd832003-07-14 16:52:07 +00006513case "$host_os" in
6514 # For platforms which do not support PIC, -DPIC is meaningless:
6515 *djgpp*)
6516 lt_prog_compiler_pic=
6517 ;;
6518 *)
6519 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6520 ;;
6521esac
John Criswell7a73b802003-06-30 21:59:07 +00006522
John Criswell7a73b802003-06-30 21:59:07 +00006523echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6524echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006525if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
John Criswell47fdd832003-07-14 16:52:07 +00006528 lt_cv_prog_compiler_c_o=no
6529 $rm -r conftest 2>/dev/null
6530 mkdir conftest
6531 cd conftest
6532 mkdir out
6533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006534
John Criswell47fdd832003-07-14 16:52:07 +00006535 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6536 # that will create temporary files in the current directory regardless of
6537 # the output directory. Thus, making CWD read-only will cause this test
6538 # to fail, enabling locking or at least warning the user not to do parallel
6539 # builds.
6540 chmod -w .
6541
6542 lt_compiler_flag="-o out/conftest2.$ac_objext"
6543 # Insert the option either (1) after the last *FLAGS variable, or
6544 # (2) before a word containing "conftest.", or (3) at the end.
6545 # Note that $ac_compile itself does not contain backslashes and begins
6546 # with a dollar sign (not a hyphen), so the echo should work correctly.
6547 lt_compile=`echo "$ac_compile" | $SED \
6548 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6550 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +00006551 (eval echo "\"\$as_me:6551: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006552 (eval "$lt_compile" 2>out/conftest.err)
6553 ac_status=$?
6554 cat out/conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +00006555 echo "$as_me:6555: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6557 then
6558 # The compiler can only warn and ignore the option if not recognized
6559 # So say no if there are warnings
6560 if test ! -s out/conftest.err; then
6561 lt_cv_prog_compiler_c_o=yes
6562 fi
6563 fi
6564 chmod u+w .
6565 $rm conftest* out/*
6566 rmdir out
6567 cd ..
6568 rmdir conftest
6569 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006570
6571fi
John Criswell47fdd832003-07-14 16:52:07 +00006572echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6573echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006574
John Criswell7a73b802003-06-30 21:59:07 +00006575
John Criswell7a73b802003-06-30 21:59:07 +00006576hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006577if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006578 # do not overwrite the value of need_locks provided by the user
6579 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6580echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6581 hard_links=yes
6582 $rm conftest*
6583 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6584 touch conftest.a
6585 ln conftest.a conftest.b 2>&5 || hard_links=no
6586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6587 echo "$as_me:$LINENO: result: $hard_links" >&5
6588echo "${ECHO_T}$hard_links" >&6
6589 if test "$hard_links" = no; then
6590 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6591echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6592 need_locks=warn
6593 fi
6594else
6595 need_locks=no
6596fi
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell47fdd832003-07-14 16:52:07 +00006598echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6599echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6600
6601 runpath_var=
6602 allow_undefined_flag=
6603 enable_shared_with_static_runtimes=no
6604 archive_cmds=
6605 archive_expsym_cmds=
6606 old_archive_From_new_cmds=
6607 old_archive_from_expsyms_cmds=
6608 export_dynamic_flag_spec=
6609 whole_archive_flag_spec=
6610 thread_safe_flag_spec=
6611 hardcode_libdir_flag_spec=
6612 hardcode_libdir_flag_spec_ld=
6613 hardcode_libdir_separator=
6614 hardcode_direct=no
6615 hardcode_minus_L=no
6616 hardcode_shlibpath_var=unsupported
6617 link_all_deplibs=unknown
6618 hardcode_automatic=no
6619 module_cmds=
6620 module_expsym_cmds=
6621 always_export_symbols=no
6622 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6623 # include_expsyms should be a list of space-separated symbols to be *always*
6624 # included in the symbol list
6625 include_expsyms=
6626 # exclude_expsyms can be an extended regexp of symbols to exclude
6627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6629 # as well as any symbol that contains `d'.
6630 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6632 # platforms (ab)use it in PIC code, but their linkers get confused if
6633 # the symbol is explicitly referenced. Since portable code cannot
6634 # rely on this symbol name, it's probably fine to never include it in
6635 # preloaded symbol tables.
6636 extract_expsyms_cmds=
6637
6638 case $host_os in
6639 cygwin* | mingw* | pw32*)
6640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6641 # When not using gcc, we currently assume that we are using
6642 # Microsoft Visual C++.
6643 if test "$GCC" != yes; then
6644 with_gnu_ld=no
6645 fi
6646 ;;
6647 openbsd*)
6648 with_gnu_ld=no
6649 ;;
6650 esac
6651
6652 ld_shlibs=yes
6653 if test "$with_gnu_ld" = yes; then
6654 # If archive_cmds runs LD, not CC, wlarc should be empty
6655 wlarc='${wl}'
6656
6657 # See if GNU ld supports shared libraries.
6658 case $host_os in
6659 aix3* | aix4* | aix5*)
6660 # On AIX/PPC, the GNU linker is very broken
6661 if test "$host_cpu" != ia64; then
6662 ld_shlibs=no
6663 cat <<EOF 1>&2
6664
6665*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6666*** to be unable to reliably create shared libraries on AIX.
6667*** Therefore, libtool is disabling shared libraries support. If you
6668*** really care for shared libraries, you may want to modify your PATH
6669*** so that a non-GNU linker is found, and then restart.
6670
6671EOF
6672 fi
6673 ;;
6674
6675 amigaos*)
6676 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)'
6677 hardcode_libdir_flag_spec='-L$libdir'
6678 hardcode_minus_L=yes
6679
6680 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6681 # that the semantics of dynamic libraries on AmigaOS, at least up
6682 # to version 4, is to share data among multiple programs linked
6683 # with the same dynamic library. Since this doesn't match the
6684 # behavior of shared libraries on other platforms, we can't use
6685 # them.
6686 ld_shlibs=no
6687 ;;
6688
6689 beos*)
6690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6691 allow_undefined_flag=unsupported
6692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6693 # support --undefined. This deserves some investigation. FIXME
6694 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695 else
6696 ld_shlibs=no
6697 fi
6698 ;;
6699
6700 cygwin* | mingw* | pw32*)
6701 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6702 # as there is no search path for DLLs.
6703 hardcode_libdir_flag_spec='-L$libdir'
6704 allow_undefined_flag=unsupported
6705 always_export_symbols=no
6706 enable_shared_with_static_runtimes=yes
6707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6708
6709 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6711 # If the export-symbols file already is a .def file (1st line
6712 # is EXPORTS), use it as is; otherwise, prepend...
6713 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6714 cp $export_symbols $output_objdir/$soname.def;
6715 else
6716 echo EXPORTS > $output_objdir/$soname.def;
6717 cat $export_symbols >> $output_objdir/$soname.def;
6718 fi~
6719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6720 else
6721 ld_shlibs=no
6722 fi
6723 ;;
6724
6725 netbsd*)
6726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6727 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6728 wlarc=
6729 else
6730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6732 fi
6733 ;;
6734
6735 solaris* | sysv5*)
6736 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6737 ld_shlibs=no
6738 cat <<EOF 1>&2
6739
6740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6741*** create shared libraries on Solaris systems. Therefore, libtool
6742*** is disabling shared libraries support. We urge you to upgrade GNU
6743*** binutils to release 2.9.1 or newer. Another option is to modify
6744*** your PATH or compiler configuration so that the native linker is
6745*** used, and then restart.
6746
6747EOF
6748 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6749 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6750 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6751 else
6752 ld_shlibs=no
6753 fi
6754 ;;
6755
6756 sunos4*)
6757 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6758 wlarc=
6759 hardcode_direct=yes
6760 hardcode_shlibpath_var=no
6761 ;;
6762
6763 *)
6764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6767 else
6768 ld_shlibs=no
6769 fi
6770 ;;
6771 esac
6772
6773 if test "$ld_shlibs" = yes; then
6774 runpath_var=LD_RUN_PATH
6775 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6776 export_dynamic_flag_spec='${wl}--export-dynamic'
6777 # ancient GNU ld didn't support --whole-archive et. al.
6778 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6780 else
6781 whole_archive_flag_spec=
6782 fi
6783 fi
6784 else
6785 # PORTME fill in a description of your system's linker (not GNU ld)
6786 case $host_os in
6787 aix3*)
6788 allow_undefined_flag=unsupported
6789 always_export_symbols=yes
6790 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'
6791 # Note: this linker hardcodes the directories in LIBPATH if there
6792 # are no directories specified by -L.
6793 hardcode_minus_L=yes
6794 if test "$GCC" = yes && test -z "$link_static_flag"; then
6795 # Neither direct hardcoding nor static linking is supported with a
6796 # broken collect2.
6797 hardcode_direct=unsupported
6798 fi
6799 ;;
6800
6801 aix4* | aix5*)
6802 if test "$host_cpu" = ia64; then
6803 # On IA64, the linker does run time linking by default, so we don't
6804 # have to do anything special.
6805 aix_use_runtimelinking=no
6806 exp_sym_flag='-Bexport'
6807 no_entry_flag=""
6808 else
6809 # If we're using GNU nm, then we don't want the "-C" option.
6810 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6811 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6812 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'
6813 else
6814 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'
6815 fi
6816 aix_use_runtimelinking=no
6817
6818 # Test if we are trying to use run time linking or normal
6819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6820 # need to do runtime linking.
6821 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6822 for ld_flag in $LDFLAGS; do
6823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6824 aix_use_runtimelinking=yes
6825 break
6826 fi
6827 done
6828 esac
6829
6830 exp_sym_flag='-bexport'
6831 no_entry_flag='-bnoentry'
6832 fi
6833
6834 # When large executables or shared objects are built, AIX ld can
6835 # have problems creating the table of contents. If linking a library
6836 # or program results in "error TOC overflow" add -mminimal-toc to
6837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6839
6840 archive_cmds=''
6841 hardcode_direct=yes
6842 hardcode_libdir_separator=':'
6843 link_all_deplibs=yes
6844
6845 if test "$GCC" = yes; then
6846 case $host_os in aix4.012|aix4.012.*)
6847 # We only want to do this on AIX 4.2 and lower, the check
6848 # below for broken collect2 doesn't work under 4.3+
6849 collect2name=`${CC} -print-prog-name=collect2`
6850 if test -f "$collect2name" && \
6851 strings "$collect2name" | grep resolve_lib_name >/dev/null
6852 then
6853 # We have reworked collect2
6854 hardcode_direct=yes
6855 else
6856 # We have old collect2
6857 hardcode_direct=unsupported
6858 # It fails to find uninstalled libraries when the uninstalled
6859 # path is not listed in the libpath. Setting hardcode_minus_L
6860 # to unsupported forces relinking
6861 hardcode_minus_L=yes
6862 hardcode_libdir_flag_spec='-L$libdir'
6863 hardcode_libdir_separator=
6864 fi
6865 esac
6866 shared_flag='-shared'
6867 else
6868 # not using gcc
6869 if test "$host_cpu" = ia64; then
6870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6871 # chokes on -Wl,-G. The following line is correct:
6872 shared_flag='-G'
6873 else
6874 if test "$aix_use_runtimelinking" = yes; then
6875 shared_flag='${wl}-G'
6876 else
6877 shared_flag='${wl}-bM:SRE'
6878 fi
6879 fi
6880 fi
6881
6882 # It seems that -bexpall does not export symbols beginning with
6883 # underscore (_), so it is better to generate a list of symbols to export.
6884 always_export_symbols=yes
6885 if test "$aix_use_runtimelinking" = yes; then
6886 # Warning - without using the other runtime loading flags (-brtl),
6887 # -berok will link without error, but may produce a broken library.
6888 allow_undefined_flag='-berok'
6889 # Determine the default libpath from the value encoded in an empty executable.
6890 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006891#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006892/* confdefs.h. */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006897
John Criswell7a73b802003-06-30 21:59:07 +00006898int
6899main ()
6900{
John Criswell47fdd832003-07-14 16:52:07 +00006901
John Criswell7a73b802003-06-30 21:59:07 +00006902 ;
6903 return 0;
6904}
6905_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006906rm -f conftest.$ac_objext conftest$ac_exeext
6907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006912 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006918
John Criswell47fdd832003-07-14 16:52:07 +00006919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6920}'`
6921# Check for a 64-bit object if we didn't find anything.
6922if 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; }
6923}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006924else
6925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006926sed 's/^/| /' conftest.$ac_ext >&5
6927
John Criswell7a73b802003-06-30 21:59:07 +00006928fi
John Criswell47fdd832003-07-14 16:52:07 +00006929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006931
John Criswell47fdd832003-07-14 16:52:07 +00006932 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6933 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"
6934 else
6935 if test "$host_cpu" = ia64; then
6936 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6937 allow_undefined_flag="-z nodefs"
6938 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"
6939 else
6940 # Determine the default libpath from the value encoded in an empty executable.
6941 cat >conftest.$ac_ext <<_ACEOF
6942#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006943/* confdefs.h. */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006948
John Criswell47fdd832003-07-14 16:52:07 +00006949int
6950main ()
6951{
John Criswell7a73b802003-06-30 21:59:07 +00006952
John Criswell47fdd832003-07-14 16:52:07 +00006953 ;
6954 return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext conftest$ac_exeext
6958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959 (eval $ac_link) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006969
John Criswell47fdd832003-07-14 16:52:07 +00006970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6971}'`
6972# Check for a 64-bit object if we didn't find anything.
6973if 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; }
6974}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006975else
John Criswell47fdd832003-07-14 16:52:07 +00006976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006977sed 's/^/| /' conftest.$ac_ext >&5
6978
John Criswell47fdd832003-07-14 16:52:07 +00006979fi
6980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6981if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006982
John Criswell47fdd832003-07-14 16:52:07 +00006983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6984 # Warning - without using the other run time loading flags,
6985 # -berok will link without error, but may produce a broken library.
6986 no_undefined_flag=' ${wl}-bernotok'
6987 allow_undefined_flag=' ${wl}-berok'
6988 # -bexpall does not export symbols beginning with underscore (_)
6989 always_export_symbols=yes
6990 # Exported symbols can be pulled into shared objects from archives
6991 whole_archive_flag_spec=' '
6992 archive_cmds_need_lc=yes
6993 # This is similar to how AIX traditionally builds it's shared libraries.
6994 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 +00006995 fi
6996 fi
John Criswell7a73b802003-06-30 21:59:07 +00006997 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006998
6999 amigaos*)
7000 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)'
7001 hardcode_libdir_flag_spec='-L$libdir'
7002 hardcode_minus_L=yes
7003 # see comment about different semantics on the GNU ld section
7004 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007005 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007006
John Criswell47fdd832003-07-14 16:52:07 +00007007 bsdi4*)
7008 export_dynamic_flag_spec=-rdynamic
7009 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007010
John Criswell47fdd832003-07-14 16:52:07 +00007011 cygwin* | mingw* | pw32*)
7012 # When not using gcc, we currently assume that we are using
7013 # Microsoft Visual C++.
7014 # hardcode_libdir_flag_spec is actually meaningless, as there is
7015 # no search path for DLLs.
7016 hardcode_libdir_flag_spec=' '
7017 allow_undefined_flag=unsupported
7018 # Tell ltmain to make .lib files, not .a files.
7019 libext=lib
7020 # Tell ltmain to make .dll files, not .so files.
7021 shrext=".dll"
7022 # FIXME: Setting linknames here is a bad hack.
7023 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7024 # The linker will automatically build a .lib file if we build a DLL.
7025 old_archive_From_new_cmds='true'
7026 # FIXME: Should let the user specify the lib program.
7027 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7028 fix_srcfile_path='`cygpath -w "$srcfile"`'
7029 enable_shared_with_static_runtimes=yes
7030 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007031
John Criswell47fdd832003-07-14 16:52:07 +00007032 darwin* | rhapsody*)
7033 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7034 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007035 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007036 rhapsody* | darwin1.[012])
7037 allow_undefined_flag='-undefined suppress'
7038 ;;
7039 *) # Darwin 1.3 on
7040 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007041 ;;
7042 esac
John Criswell47fdd832003-07-14 16:52:07 +00007043 # FIXME: Relying on posixy $() will cause problems for
7044 # cross-compilation, but unfortunately the echo tests do not
7045 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7046 # `"' quotes if we put them in here... so don't!
7047 lt_int_apple_cc_single_mod=no
7048 output_verbose_link_cmd='echo'
7049 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7050 lt_int_apple_cc_single_mod=yes
7051 fi
7052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7053 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7054 else
7055 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'
7056 fi
7057 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7060 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}'
7061 else
7062 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}'
7063 fi
7064 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}'
7065 hardcode_direct=no
7066 hardcode_automatic=yes
7067 hardcode_shlibpath_var=unsupported
7068 whole_archive_flag_spec='-all_load $convenience'
7069 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007070 fi
John Criswell47fdd832003-07-14 16:52:07 +00007071 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007072
John Criswell47fdd832003-07-14 16:52:07 +00007073 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007075 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_shlibpath_var=no
7077 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007078
John Criswell47fdd832003-07-14 16:52:07 +00007079 freebsd1*)
7080 ld_shlibs=no
7081 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007082
John Criswell47fdd832003-07-14 16:52:07 +00007083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7084 # support. Future versions do this automatically, but an explicit c++rt0.o
7085 # does not break anything, and helps significantly (at the cost of a little
7086 # extra space).
7087 freebsd2.2*)
7088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7089 hardcode_libdir_flag_spec='-R$libdir'
7090 hardcode_direct=yes
7091 hardcode_shlibpath_var=no
7092 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007093
John Criswell47fdd832003-07-14 16:52:07 +00007094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7095 freebsd2*)
7096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7097 hardcode_direct=yes
7098 hardcode_minus_L=yes
7099 hardcode_shlibpath_var=no
7100 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007101
John Criswell47fdd832003-07-14 16:52:07 +00007102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7103 freebsd*)
7104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7105 hardcode_libdir_flag_spec='-R$libdir'
7106 hardcode_direct=yes
7107 hardcode_shlibpath_var=no
7108 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007109
John Criswell47fdd832003-07-14 16:52:07 +00007110 hpux9*)
7111 if test "$GCC" = yes; then
7112 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'
7113 else
7114 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'
7115 fi
7116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7117 hardcode_libdir_separator=:
7118 hardcode_direct=yes
7119
7120 # hardcode_minus_L: Not really in the search PATH,
7121 # but as the default location of the library.
7122 hardcode_minus_L=yes
7123 export_dynamic_flag_spec='${wl}-E'
7124 ;;
7125
7126 hpux10* | hpux11*)
7127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7128 case "$host_cpu" in
7129 hppa*64*|ia64*)
7130 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7131 ;;
7132 *)
7133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7134 ;;
7135 esac
7136 else
7137 case "$host_cpu" in
7138 hppa*64*|ia64*)
7139 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7140 ;;
7141 *)
7142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7143 ;;
7144 esac
7145 fi
7146 if test "$with_gnu_ld" = no; then
7147 case "$host_cpu" in
7148 hppa*64*)
7149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7150 hardcode_libdir_flag_spec_ld='+b $libdir'
7151 hardcode_libdir_separator=:
7152 hardcode_direct=no
7153 hardcode_shlibpath_var=no
7154 ;;
7155 ia64*)
7156 hardcode_libdir_flag_spec='-L$libdir'
7157 hardcode_direct=no
7158 hardcode_shlibpath_var=no
7159
7160 # hardcode_minus_L: Not really in the search PATH,
7161 # but as the default location of the library.
7162 hardcode_minus_L=yes
7163 ;;
7164 *)
7165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7166 hardcode_libdir_separator=:
7167 hardcode_direct=yes
7168 export_dynamic_flag_spec='${wl}-E'
7169
7170 # hardcode_minus_L: Not really in the search PATH,
7171 # but as the default location of the library.
7172 hardcode_minus_L=yes
7173 ;;
7174 esac
7175 fi
7176 ;;
7177
7178 irix5* | irix6* | nonstopux*)
7179 if test "$GCC" = yes; then
7180 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'
7181 else
7182 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'
7183 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7184 fi
7185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7186 hardcode_libdir_separator=:
7187 link_all_deplibs=yes
7188 ;;
7189
7190 netbsd*)
7191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7193 else
7194 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7195 fi
7196 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_direct=yes
7198 hardcode_shlibpath_var=no
7199 ;;
7200
7201 newsos6)
7202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203 hardcode_direct=yes
7204 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7205 hardcode_libdir_separator=:
7206 hardcode_shlibpath_var=no
7207 ;;
7208
7209 openbsd*)
7210 hardcode_direct=yes
7211 hardcode_shlibpath_var=no
7212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7215 export_dynamic_flag_spec='${wl}-E'
7216 else
7217 case $host_os in
7218 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7220 hardcode_libdir_flag_spec='-R$libdir'
7221 ;;
7222 *)
7223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7225 ;;
7226 esac
7227 fi
7228 ;;
7229
7230 os2*)
7231 hardcode_libdir_flag_spec='-L$libdir'
7232 hardcode_minus_L=yes
7233 allow_undefined_flag=unsupported
7234 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'
7235 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7236 ;;
7237
7238 osf3*)
7239 if test "$GCC" = yes; then
7240 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7241 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7242 else
7243 allow_undefined_flag=' -expect_unresolved \*'
7244 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'
7245 fi
7246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7247 hardcode_libdir_separator=:
7248 ;;
7249
7250 osf4* | osf5*) # as osf3* with the addition of -msym flag
7251 if test "$GCC" = yes; then
7252 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7253 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'
7254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255 else
7256 allow_undefined_flag=' -expect_unresolved \*'
7257 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'
7258 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7259 $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'
7260
7261 # Both c and cxx compiler support -rpath directly
7262 hardcode_libdir_flag_spec='-rpath $libdir'
7263 fi
7264 hardcode_libdir_separator=:
7265 ;;
7266
7267 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7269 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007270 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007271 runpath_var=LD_RUN_PATH
7272 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007273 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007274
John Criswell47fdd832003-07-14 16:52:07 +00007275 solaris*)
7276 no_undefined_flag=' -z text'
7277 if test "$GCC" = yes; then
7278 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7279 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7281 else
7282 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7283 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7284 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7285 fi
7286 hardcode_libdir_flag_spec='-R$libdir'
7287 hardcode_shlibpath_var=no
7288 case $host_os in
7289 solaris2.[0-5] | solaris2.[0-5].*) ;;
7290 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7291 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7292 esac
7293 link_all_deplibs=yes
7294 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007295
John Criswell47fdd832003-07-14 16:52:07 +00007296 sunos4*)
7297 if test "x$host_vendor" = xsequent; then
7298 # Use $CC to link under sequent, because it throws in some extra .o
7299 # files that make .init and .fini sections work.
7300 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7301 else
7302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7303 fi
7304 hardcode_libdir_flag_spec='-L$libdir'
7305 hardcode_direct=yes
7306 hardcode_minus_L=yes
7307 hardcode_shlibpath_var=no
7308 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007309
John Criswell47fdd832003-07-14 16:52:07 +00007310 sysv4)
7311 case $host_vendor in
7312 sni)
7313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 hardcode_direct=yes # is this really true???
7315 ;;
7316 siemens)
7317 ## LD is ld it makes a PLAMLIB
7318 ## CC just makes a GrossModule.
7319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7320 reload_cmds='$CC -r -o $output$reload_objs'
7321 hardcode_direct=no
7322 ;;
7323 motorola)
7324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7326 ;;
7327 esac
7328 runpath_var='LD_RUN_PATH'
7329 hardcode_shlibpath_var=no
7330 ;;
7331
7332 sysv4.3*)
7333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_shlibpath_var=no
7335 export_dynamic_flag_spec='-Bexport'
7336 ;;
7337
7338 sysv4*MP*)
7339 if test -d /usr/nec; then
7340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_shlibpath_var=no
7342 runpath_var=LD_RUN_PATH
7343 hardcode_runpath_var=yes
7344 ld_shlibs=yes
7345 fi
7346 ;;
7347
7348 sysv4.2uw2*)
7349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7350 hardcode_direct=yes
7351 hardcode_minus_L=no
7352 hardcode_shlibpath_var=no
7353 hardcode_runpath_var=yes
7354 runpath_var=LD_RUN_PATH
7355 ;;
7356
7357 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7358 no_undefined_flag='${wl}-z ${wl}text'
7359 if test "$GCC" = yes; then
7360 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7361 else
7362 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 fi
7364 runpath_var='LD_RUN_PATH'
7365 hardcode_shlibpath_var=no
7366 ;;
7367
7368 sysv5*)
7369 no_undefined_flag=' -z text'
7370 # $CC -shared without GNU ld will not create a library from C++
7371 # object files and a static libstdc++, better avoid it by now
7372 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7373 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7374 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7375 hardcode_libdir_flag_spec=
7376 hardcode_shlibpath_var=no
7377 runpath_var='LD_RUN_PATH'
7378 ;;
7379
7380 uts4*)
7381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382 hardcode_libdir_flag_spec='-L$libdir'
7383 hardcode_shlibpath_var=no
7384 ;;
7385
7386 *)
7387 ld_shlibs=no
7388 ;;
7389 esac
7390 fi
7391
John Criswell7a73b802003-06-30 21:59:07 +00007392echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7393echo "${ECHO_T}$ld_shlibs" >&6
7394test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007395
John Criswell47fdd832003-07-14 16:52:07 +00007396variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7397if test "$GCC" = yes; then
7398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7399fi
7400
7401#
7402# Do we need to explicitly link libc?
7403#
7404case "x$archive_cmds_need_lc" in
7405x|xyes)
7406 # Assume -lc should be added
7407 archive_cmds_need_lc=yes
7408
7409 if test "$enable_shared" = yes && test "$GCC" = yes; then
7410 case $archive_cmds in
7411 *'~'*)
7412 # FIXME: we may have to deal with multi-command sequences.
7413 ;;
7414 '$CC '*)
7415 # Test whether the compiler implicitly links with -lc since on some
7416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7417 # to ld, don't add -lc before -lgcc.
7418 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7419echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7420 $rm conftest*
7421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7422
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } 2>conftest.err; then
7428 soname=conftest
7429 lib=conftest
7430 libobjs=conftest.$ac_objext
7431 deplibs=
7432 wl=$lt_prog_compiler_wl
7433 compiler_flags=-v
7434 linker_flags=-v
7435 verstring=
7436 output_objdir=.
7437 libname=conftest
7438 lt_save_allow_undefined_flag=$allow_undefined_flag
7439 allow_undefined_flag=
7440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7441 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }
7445 then
7446 archive_cmds_need_lc=no
7447 else
7448 archive_cmds_need_lc=yes
7449 fi
7450 allow_undefined_flag=$lt_save_allow_undefined_flag
7451 else
7452 cat conftest.err 1>&5
7453 fi
7454 $rm conftest*
7455 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7456echo "${ECHO_T}$archive_cmds_need_lc" >&6
7457 ;;
7458 esac
7459 fi
7460 ;;
7461esac
7462
John Criswell7a73b802003-06-30 21:59:07 +00007463echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7464echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7465hardcode_action=
7466if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007467 test -n "$runpath_var " || \
7468 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007469
7470 # We can hardcode non-existant directories.
7471 if test "$hardcode_direct" != no &&
7472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7473 # have to relink, otherwise we might link with an installed library
7474 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007475 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007476 test "$hardcode_minus_L" != no; then
7477 # Linking always hardcodes the temporary library directory.
7478 hardcode_action=relink
7479 else
7480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7481 hardcode_action=immediate
7482 fi
7483else
7484 # We cannot hardcode anything, or else we can only hardcode existing
7485 # directories.
7486 hardcode_action=unsupported
7487fi
7488echo "$as_me:$LINENO: result: $hardcode_action" >&5
7489echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007490
John Criswell47fdd832003-07-14 16:52:07 +00007491if test "$hardcode_action" = relink; then
7492 # Fast installation is not supported
7493 enable_fast_install=no
7494elif test "$shlibpath_overrides_runpath" = yes ||
7495 test "$enable_shared" = no; then
7496 # Fast installation is not necessary
7497 enable_fast_install=needless
7498fi
7499
John Criswell7a73b802003-06-30 21:59:07 +00007500striplib=
7501old_striplib=
7502echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7503echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7504if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7507 echo "$as_me:$LINENO: result: yes" >&5
7508echo "${ECHO_T}yes" >&6
7509else
John Criswell47fdd832003-07-14 16:52:07 +00007510# FIXME - insert some real tests, host_os isn't really good enough
7511 case $host_os in
7512 darwin*)
7513 if test -n "$STRIP" ; then
7514 striplib="$STRIP -x"
7515 echo "$as_me:$LINENO: result: yes" >&5
7516echo "${ECHO_T}yes" >&6
7517 else
John Criswell7a73b802003-06-30 21:59:07 +00007518 echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520fi
John Criswell47fdd832003-07-14 16:52:07 +00007521 ;;
7522 *)
7523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525 ;;
7526 esac
7527fi
John Criswell7a73b802003-06-30 21:59:07 +00007528
John Criswell7a73b802003-06-30 21:59:07 +00007529echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7530echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7531library_names_spec=
7532libname_spec='lib$name'
7533soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007534shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007535postinstall_cmds=
7536postuninstall_cmds=
7537finish_cmds=
7538finish_eval=
7539shlibpath_var=
7540shlibpath_overrides_runpath=unknown
7541version_type=none
7542dynamic_linker="$host_os ld.so"
7543sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007544if test "$GCC" = yes; then
7545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7546 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7547 # if the path contains ";" then we assume it to be the separator
7548 # otherwise default to the standard path separator (i.e. ":") - it is
7549 # assumed that no part of a normal pathname contains ";" but that should
7550 # okay in the real world where ";" in dirpaths is itself problematic.
7551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7552 else
7553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7554 fi
7555else
7556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7557fi
7558need_lib_prefix=unknown
7559hardcode_into_libs=no
7560
7561# when you set need_version to no, make sure it does not cause -set_version
7562# flags to be left without arguments
7563need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007564
7565case $host_os in
7566aix3*)
7567 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007569 shlibpath_var=LIBPATH
7570
John Criswell47fdd832003-07-14 16:52:07 +00007571 # AIX 3 has no versioning support, so we append a major version to the name.
7572 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007573 ;;
7574
7575aix4* | aix5*)
7576 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007577 need_lib_prefix=no
7578 need_version=no
7579 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007580 if test "$host_cpu" = ia64; then
7581 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007583 shlibpath_var=LD_LIBRARY_PATH
7584 else
7585 # With GCC up to 2.95.x, collect2 would create an import file
7586 # for dependence libraries. The import file would start with
7587 # the line `#! .'. This would cause the generated library to
7588 # depend on `.', always an invalid library. This was fixed in
7589 # development snapshots of GCC prior to 3.0.
7590 case $host_os in
7591 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7593 echo ' yes '
7594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7595 :
7596 else
7597 can_build_shared=no
7598 fi
7599 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007600 esac
John Criswell47fdd832003-07-14 16:52:07 +00007601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7602 # soname into executable. Probably we can add versioning support to
7603 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007604 if test "$aix_use_runtimelinking" = yes; then
7605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7606 # instead of lib<name>.a to let people know that these are not
7607 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007609 else
7610 # We preserve .a as extension for shared libraries through AIX4.2
7611 # and later when we are not doing run time linking.
7612 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007613 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007614 fi
7615 shlibpath_var=LIBPATH
7616 fi
7617 ;;
7618
7619amigaos*)
7620 library_names_spec='$libname.ixlibrary $libname.a'
7621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7622 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'
7623 ;;
7624
7625beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007626 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007627 dynamic_linker="$host_os ld.so"
7628 shlibpath_var=LIBRARY_PATH
7629 ;;
7630
7631bsdi4*)
7632 version_type=linux
7633 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7635 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007640 # the default ld.so.conf also contains /usr/contrib/lib and
7641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7642 # libtool to hard-code these into programs
7643 ;;
7644
7645cygwin* | mingw* | pw32*)
7646 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007647 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007648 need_version=no
7649 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007650
John Criswell7a73b802003-06-30 21:59:07 +00007651 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007652 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007653 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7655 postinstall_cmds='base_file=`basename \${file}`~
7656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007657 dldir=$destdir/`dirname \$dlpath`~
7658 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007659 $install_prog $dir/$dlname \$dldir/$dlname'
7660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007661 dlpath=$dir/\$dldll~
7662 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007663 shlibpath_overrides_runpath=yes
7664
7665 case $host_os in
7666 cygwin*)
7667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7669 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7670 ;;
7671 mingw*)
7672 # MinGW DLLs use traditional 'lib' prefix
7673 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7674 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7675 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7676 # It is most probably a Windows format PATH printed by
7677 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7678 # path with ; separators, and with drive letters. We can handle the
7679 # drive letters (cygwin fileutils understands them), so leave them,
7680 # especially as we might pass files found there to a mingw objdump,
7681 # which wouldn't understand a cygwinified path. Ahh.
7682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7683 else
7684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7685 fi
7686 ;;
7687 pw32*)
7688 # pw32 DLLs use 'pw' prefix rather than 'lib'
7689 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7690 ;;
7691 esac
John Criswell7a73b802003-06-30 21:59:07 +00007692 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007693
John Criswell7a73b802003-06-30 21:59:07 +00007694 *)
John Criswell47fdd832003-07-14 16:52:07 +00007695 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007696 ;;
7697 esac
7698 dynamic_linker='Win32 ld.exe'
7699 # FIXME: first we should search . and the directory the executable is in
7700 shlibpath_var=PATH
7701 ;;
7702
7703darwin* | rhapsody*)
7704 dynamic_linker="$host_os dyld"
7705 version_type=darwin
7706 need_lib_prefix=no
7707 need_version=no
7708 # FIXME: Relying on posixy $() will cause problems for
7709 # cross-compilation, but unfortunately the echo tests do not
7710 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7712 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007713 shlibpath_overrides_runpath=yes
7714 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007715 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7717 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7718 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"`
7719 fi
7720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7721 ;;
7722
7723dgux*)
7724 version_type=linux
7725 need_lib_prefix=no
7726 need_version=no
7727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7728 soname_spec='${libname}${release}${shared_ext}$major'
7729 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007730 ;;
7731
7732freebsd1*)
7733 dynamic_linker=no
7734 ;;
7735
7736freebsd*)
7737 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7738 version_type=freebsd-$objformat
7739 case $version_type in
7740 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007742 need_version=no
7743 need_lib_prefix=no
7744 ;;
7745 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007747 need_version=yes
7748 ;;
7749 esac
7750 shlibpath_var=LD_LIBRARY_PATH
7751 case $host_os in
7752 freebsd2*)
7753 shlibpath_overrides_runpath=yes
7754 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007755 freebsd3.01* | freebsdelf3.01*)
7756 shlibpath_overrides_runpath=yes
7757 hardcode_into_libs=yes
7758 ;;
7759 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007760 shlibpath_overrides_runpath=no
7761 hardcode_into_libs=yes
7762 ;;
7763 esac
7764 ;;
7765
7766gnu*)
7767 version_type=linux
7768 need_lib_prefix=no
7769 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7771 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007772 shlibpath_var=LD_LIBRARY_PATH
7773 hardcode_into_libs=yes
7774 ;;
7775
7776hpux9* | hpux10* | hpux11*)
7777 # Give a soname corresponding to the major version so that dld.sl refuses to
7778 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007779 version_type=sunos
7780 need_lib_prefix=no
7781 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007782 case "$host_cpu" in
7783 ia64*)
7784 shrext='.so'
7785 hardcode_into_libs=yes
7786 dynamic_linker="$host_os dld.so"
7787 shlibpath_var=LD_LIBRARY_PATH
7788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7790 soname_spec='${libname}${release}${shared_ext}$major'
7791 if test "X$HPUX_IA64_MODE" = X32; then
7792 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7793 else
7794 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7795 fi
7796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7797 ;;
7798 hppa*64*)
7799 shrext='.sl'
7800 hardcode_into_libs=yes
7801 dynamic_linker="$host_os dld.sl"
7802 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805 soname_spec='${libname}${release}${shared_ext}$major'
7806 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7808 ;;
7809 *)
7810 shrext='.sl'
7811 dynamic_linker="$host_os dld.sl"
7812 shlibpath_var=SHLIB_PATH
7813 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815 soname_spec='${libname}${release}${shared_ext}$major'
7816 ;;
7817 esac
John Criswell7a73b802003-06-30 21:59:07 +00007818 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7819 postinstall_cmds='chmod 555 $lib'
7820 ;;
7821
John Criswell47fdd832003-07-14 16:52:07 +00007822irix5* | irix6* | nonstopux*)
7823 case $host_os in
7824 nonstopux*) version_type=nonstopux ;;
7825 *)
7826 if test "$lt_cv_prog_gnu_ld" = yes; then
7827 version_type=linux
7828 else
7829 version_type=irix
7830 fi ;;
7831 esac
John Criswell7a73b802003-06-30 21:59:07 +00007832 need_lib_prefix=no
7833 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007834 soname_spec='${libname}${release}${shared_ext}$major'
7835 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 +00007836 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007837 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007838 libsuff= shlibsuff=
7839 ;;
7840 *)
7841 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7843 libsuff= shlibsuff= libmagic=32-bit;;
7844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7845 libsuff=32 shlibsuff=N32 libmagic=N32;;
7846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7847 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007848 *) libsuff= shlibsuff= libmagic=never-match;;
7849 esac
7850 ;;
7851 esac
7852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7853 shlibpath_overrides_runpath=no
7854 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7855 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007856 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007857 ;;
7858
7859# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007860linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007861 dynamic_linker=no
7862 ;;
7863
7864# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007865linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007866 version_type=linux
7867 need_lib_prefix=no
7868 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7870 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7872 shlibpath_var=LD_LIBRARY_PATH
7873 shlibpath_overrides_runpath=no
7874 # This implies no fast_install, which is unacceptable.
7875 # Some rework will be needed to allow for fast_install
7876 # before this can be enabled.
7877 hardcode_into_libs=yes
7878
7879 # We used to test for /lib/ld.so.1 and disable shared libraries on
7880 # powerpc, because MkLinux only supported shared libraries with the
7881 # GNU dynamic linker. Since this was broken with cross compilers,
7882 # most powerpc-linux boxes support dynamic linking these days and
7883 # people can always --disable-shared, the test was removed, and we
7884 # assume the GNU/Linux dynamic linker is in use.
7885 dynamic_linker='GNU/Linux ld.so'
7886 ;;
7887
7888netbsd*)
7889 version_type=sunos
7890 need_lib_prefix=no
7891 need_version=no
7892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7895 dynamic_linker='NetBSD (a.out) ld.so'
7896 else
John Criswell47fdd832003-07-14 16:52:07 +00007897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7898 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007899 dynamic_linker='NetBSD ld.elf_so'
7900 fi
7901 shlibpath_var=LD_LIBRARY_PATH
7902 shlibpath_overrides_runpath=yes
7903 hardcode_into_libs=yes
7904 ;;
7905
7906newsos6)
7907 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7909 shlibpath_var=LD_LIBRARY_PATH
7910 shlibpath_overrides_runpath=yes
7911 ;;
7912
7913nto-qnx)
7914 version_type=linux
7915 need_lib_prefix=no
7916 need_version=no
7917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7918 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007919 shlibpath_var=LD_LIBRARY_PATH
7920 shlibpath_overrides_runpath=yes
7921 ;;
7922
7923openbsd*)
7924 version_type=sunos
7925 need_lib_prefix=no
7926 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7929 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007930 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 +00007931 case $host_os in
7932 openbsd2.[89] | openbsd2.[89].*)
7933 shlibpath_overrides_runpath=no
7934 ;;
7935 *)
7936 shlibpath_overrides_runpath=yes
7937 ;;
7938 esac
John Criswell7a73b802003-06-30 21:59:07 +00007939 else
7940 shlibpath_overrides_runpath=yes
7941 fi
John Criswell7a73b802003-06-30 21:59:07 +00007942 ;;
7943
7944os2*)
7945 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007946 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007947 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007948 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007949 dynamic_linker='OS/2 ld.exe'
7950 shlibpath_var=LIBPATH
7951 ;;
7952
7953osf3* | osf4* | osf5*)
7954 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007955 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007956 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007957 soname_spec='${libname}${release}${shared_ext}$major'
7958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007959 shlibpath_var=LD_LIBRARY_PATH
7960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7962 ;;
7963
7964sco3.2v5*)
7965 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007966 soname_spec='${libname}${release}${shared_ext}$major'
7967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007968 shlibpath_var=LD_LIBRARY_PATH
7969 ;;
7970
7971solaris*)
7972 version_type=linux
7973 need_lib_prefix=no
7974 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7976 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007977 shlibpath_var=LD_LIBRARY_PATH
7978 shlibpath_overrides_runpath=yes
7979 hardcode_into_libs=yes
7980 # ldd complains unless libraries are executable
7981 postinstall_cmds='chmod +x $lib'
7982 ;;
7983
7984sunos4*)
7985 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7988 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=yes
7990 if test "$with_gnu_ld" = yes; then
7991 need_lib_prefix=no
7992 fi
7993 need_version=yes
7994 ;;
7995
7996sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7997 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7999 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008000 shlibpath_var=LD_LIBRARY_PATH
8001 case $host_vendor in
8002 sni)
8003 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008004 need_lib_prefix=no
8005 export_dynamic_flag_spec='${wl}-Blargedynsym'
8006 runpath_var=LD_RUN_PATH
8007 ;;
8008 siemens)
8009 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008010 ;;
8011 motorola)
8012 need_lib_prefix=no
8013 need_version=no
8014 shlibpath_overrides_runpath=no
8015 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8016 ;;
8017 esac
8018 ;;
8019
John Criswell7a73b802003-06-30 21:59:07 +00008020sysv4*MP*)
8021 if test -d /usr/nec ;then
8022 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008023 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8024 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008025 shlibpath_var=LD_LIBRARY_PATH
8026 fi
8027 ;;
8028
John Criswell47fdd832003-07-14 16:52:07 +00008029uts4*)
8030 version_type=linux
8031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032 soname_spec='${libname}${release}${shared_ext}$major'
8033 shlibpath_var=LD_LIBRARY_PATH
8034 ;;
8035
John Criswell7a73b802003-06-30 21:59:07 +00008036*)
8037 dynamic_linker=no
8038 ;;
8039esac
8040echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8041echo "${ECHO_T}$dynamic_linker" >&6
8042test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008043
8044if test "x$enable_dlopen" != xyes; then
8045 enable_dlopen=unknown
8046 enable_dlopen_self=unknown
8047 enable_dlopen_self_static=unknown
8048else
8049 lt_cv_dlopen=no
8050 lt_cv_dlopen_libs=
8051
8052 case $host_os in
8053 beos*)
8054 lt_cv_dlopen="load_add_on"
8055 lt_cv_dlopen_libs=
8056 lt_cv_dlopen_self=yes
8057 ;;
8058
John Criswell47fdd832003-07-14 16:52:07 +00008059 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008060 lt_cv_dlopen="LoadLibrary"
8061 lt_cv_dlopen_libs=
8062 ;;
8063
John Criswell47fdd832003-07-14 16:52:07 +00008064 cygwin*)
8065 lt_cv_dlopen="dlopen"
8066 lt_cv_dlopen_libs=
8067 ;;
8068
8069 darwin*)
8070 # if libdl is installed we need to link against it
8071 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8072echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8073if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075else
8076 ac_check_lib_save_LIBS=$LIBS
8077LIBS="-ldl $LIBS"
8078cat >conftest.$ac_ext <<_ACEOF
8079#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008085
8086/* Override any gcc2 internal prototype to avoid an error. */
8087#ifdef __cplusplus
8088extern "C"
8089#endif
8090/* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008093int
8094main ()
8095{
8096dlopen ();
8097 ;
8098 return 0;
8099}
8100_ACEOF
8101rm -f conftest.$ac_objext conftest$ac_exeext
8102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -s conftest$ac_exeext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_cv_lib_dl_dlopen=yes
8114else
8115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008116sed 's/^/| /' conftest.$ac_ext >&5
8117
John Criswell47fdd832003-07-14 16:52:07 +00008118ac_cv_lib_dl_dlopen=no
8119fi
8120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8121LIBS=$ac_check_lib_save_LIBS
8122fi
8123echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8124echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8125if test $ac_cv_lib_dl_dlopen = yes; then
8126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8127else
8128
8129 lt_cv_dlopen="dyld"
8130 lt_cv_dlopen_libs=
8131 lt_cv_dlopen_self=yes
8132
8133fi
8134
8135 ;;
8136
John Criswell7a73b802003-06-30 21:59:07 +00008137 *)
8138 echo "$as_me:$LINENO: checking for shl_load" >&5
8139echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8140if test "${ac_cv_func_shl_load+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8142else
8143 cat >conftest.$ac_ext <<_ACEOF
8144#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008150/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008151 which can conflict with char shl_load (); below.
8152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8153 <limits.h> exists even on freestanding compilers. */
8154#ifdef __STDC__
8155# include <limits.h>
8156#else
8157# include <assert.h>
8158#endif
John Criswell7a73b802003-06-30 21:59:07 +00008159/* Override any gcc2 internal prototype to avoid an error. */
8160#ifdef __cplusplus
8161extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008162{
John Criswell7a73b802003-06-30 21:59:07 +00008163#endif
8164/* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008167/* The GNU C library defines this for functions which it implements
8168 to always fail with ENOSYS. Some functions are actually named
8169 something starting with __ and the normal name is an alias. */
8170#if defined (__stub_shl_load) || defined (__stub___shl_load)
8171choke me
8172#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008173char (*f) () = shl_load;
8174#endif
8175#ifdef __cplusplus
8176}
John Criswell7a73b802003-06-30 21:59:07 +00008177#endif
8178
John Criswell0c38eaf2003-09-10 15:17:25 +00008179int
8180main ()
8181{
8182return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008183 ;
8184 return 0;
8185}
8186_ACEOF
8187rm -f conftest.$ac_objext conftest$ac_exeext
8188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189 (eval $ac_link) 2>&5
8190 ac_status=$?
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -s conftest$ac_exeext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_cv_func_shl_load=yes
8200else
8201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008202sed 's/^/| /' conftest.$ac_ext >&5
8203
John Criswell7a73b802003-06-30 21:59:07 +00008204ac_cv_func_shl_load=no
8205fi
8206rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8207fi
8208echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8209echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8210if test $ac_cv_func_shl_load = yes; then
8211 lt_cv_dlopen="shl_load"
8212else
8213 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8214echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8215if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217else
8218 ac_check_lib_save_LIBS=$LIBS
8219LIBS="-ldld $LIBS"
8220cat >conftest.$ac_ext <<_ACEOF
8221#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008227
8228/* Override any gcc2 internal prototype to avoid an error. */
8229#ifdef __cplusplus
8230extern "C"
8231#endif
8232/* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008235int
8236main ()
8237{
8238shl_load ();
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext conftest$ac_exeext
8244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try='test -s conftest$ac_exeext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_lib_dld_shl_load=yes
8256else
8257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008258sed 's/^/| /' conftest.$ac_ext >&5
8259
John Criswell7a73b802003-06-30 21:59:07 +00008260ac_cv_lib_dld_shl_load=no
8261fi
8262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8263LIBS=$ac_check_lib_save_LIBS
8264fi
8265echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8266echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8267if test $ac_cv_lib_dld_shl_load = yes; then
8268 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8269else
8270 echo "$as_me:$LINENO: checking for dlopen" >&5
8271echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8272if test "${ac_cv_func_dlopen+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 cat >conftest.$ac_ext <<_ACEOF
8276#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008277/* confdefs.h. */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008282/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008283 which can conflict with char dlopen (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8286#ifdef __STDC__
8287# include <limits.h>
8288#else
8289# include <assert.h>
8290#endif
John Criswell7a73b802003-06-30 21:59:07 +00008291/* Override any gcc2 internal prototype to avoid an error. */
8292#ifdef __cplusplus
8293extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008294{
John Criswell7a73b802003-06-30 21:59:07 +00008295#endif
8296/* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008299/* The GNU C library defines this for functions which it implements
8300 to always fail with ENOSYS. Some functions are actually named
8301 something starting with __ and the normal name is an alias. */
8302#if defined (__stub_dlopen) || defined (__stub___dlopen)
8303choke me
8304#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008305char (*f) () = dlopen;
8306#endif
8307#ifdef __cplusplus
8308}
John Criswell7a73b802003-06-30 21:59:07 +00008309#endif
8310
John Criswell0c38eaf2003-09-10 15:17:25 +00008311int
8312main ()
8313{
8314return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008315 ;
8316 return 0;
8317}
8318_ACEOF
8319rm -f conftest.$ac_objext conftest$ac_exeext
8320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_func_dlopen=yes
8332else
8333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008334sed 's/^/| /' conftest.$ac_ext >&5
8335
John Criswell7a73b802003-06-30 21:59:07 +00008336ac_cv_func_dlopen=no
8337fi
8338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339fi
8340echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8341echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8342if test $ac_cv_func_dlopen = yes; then
8343 lt_cv_dlopen="dlopen"
8344else
8345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8346echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350 ac_check_lib_save_LIBS=$LIBS
8351LIBS="-ldl $LIBS"
8352cat >conftest.$ac_ext <<_ACEOF
8353#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008354/* confdefs.h. */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008359
8360/* Override any gcc2 internal prototype to avoid an error. */
8361#ifdef __cplusplus
8362extern "C"
8363#endif
8364/* We use char because int might match the return type of a gcc2
8365 builtin and then its argument prototype would still apply. */
8366char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008367int
8368main ()
8369{
8370dlopen ();
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375rm -f conftest.$ac_objext conftest$ac_exeext
8376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8377 (eval $ac_link) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_lib_dl_dlopen=yes
8388else
8389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008390sed 's/^/| /' conftest.$ac_ext >&5
8391
John Criswell7a73b802003-06-30 21:59:07 +00008392ac_cv_lib_dl_dlopen=no
8393fi
8394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8395LIBS=$ac_check_lib_save_LIBS
8396fi
8397echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8398echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8399if test $ac_cv_lib_dl_dlopen = yes; then
8400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8401else
8402 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8403echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8404if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407 ac_check_lib_save_LIBS=$LIBS
8408LIBS="-lsvld $LIBS"
8409cat >conftest.$ac_ext <<_ACEOF
8410#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008411/* confdefs.h. */
8412_ACEOF
8413cat confdefs.h >>conftest.$ac_ext
8414cat >>conftest.$ac_ext <<_ACEOF
8415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008416
8417/* Override any gcc2 internal prototype to avoid an error. */
8418#ifdef __cplusplus
8419extern "C"
8420#endif
8421/* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8423char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008424int
8425main ()
8426{
8427dlopen ();
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432rm -f conftest.$ac_objext conftest$ac_exeext
8433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8434 (eval $ac_link) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_svld_dlopen=yes
8445else
8446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008447sed 's/^/| /' conftest.$ac_ext >&5
8448
John Criswell7a73b802003-06-30 21:59:07 +00008449ac_cv_lib_svld_dlopen=no
8450fi
8451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8452LIBS=$ac_check_lib_save_LIBS
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8455echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8456if test $ac_cv_lib_svld_dlopen = yes; then
8457 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8458else
8459 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8460echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8461if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464 ac_check_lib_save_LIBS=$LIBS
8465LIBS="-ldld $LIBS"
8466cat >conftest.$ac_ext <<_ACEOF
8467#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008468/* confdefs.h. */
8469_ACEOF
8470cat confdefs.h >>conftest.$ac_ext
8471cat >>conftest.$ac_ext <<_ACEOF
8472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008473
8474/* Override any gcc2 internal prototype to avoid an error. */
8475#ifdef __cplusplus
8476extern "C"
8477#endif
8478/* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008481int
8482main ()
8483{
8484dld_link ();
8485 ;
8486 return 0;
8487}
8488_ACEOF
8489rm -f conftest.$ac_objext conftest$ac_exeext
8490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491 (eval $ac_link) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_lib_dld_dld_link=yes
8502else
8503 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008504sed 's/^/| /' conftest.$ac_ext >&5
8505
John Criswell7a73b802003-06-30 21:59:07 +00008506ac_cv_lib_dld_dld_link=no
8507fi
8508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509LIBS=$ac_check_lib_save_LIBS
8510fi
8511echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8512echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8513if test $ac_cv_lib_dld_dld_link = yes; then
8514 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8515fi
8516
8517
8518fi
8519
8520
8521fi
8522
8523
8524fi
8525
8526
8527fi
8528
8529
8530fi
8531
8532 ;;
8533 esac
8534
8535 if test "x$lt_cv_dlopen" != xno; then
8536 enable_dlopen=yes
8537 else
8538 enable_dlopen=no
8539 fi
8540
8541 case $lt_cv_dlopen in
8542 dlopen)
8543 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008544 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008545
8546 save_LDFLAGS="$LDFLAGS"
8547 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8548
8549 save_LIBS="$LIBS"
8550 LIBS="$lt_cv_dlopen_libs $LIBS"
8551
8552 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8553echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8554if test "${lt_cv_dlopen_self+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557 if test "$cross_compiling" = yes; then :
8558 lt_cv_dlopen_self=cross
8559else
John Criswell47fdd832003-07-14 16:52:07 +00008560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008561 lt_status=$lt_dlunknown
8562 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +00008563#line 8563 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008564#include "confdefs.h"
8565
8566#if HAVE_DLFCN_H
8567#include <dlfcn.h>
8568#endif
8569
8570#include <stdio.h>
8571
8572#ifdef RTLD_GLOBAL
8573# define LT_DLGLOBAL RTLD_GLOBAL
8574#else
8575# ifdef DL_GLOBAL
8576# define LT_DLGLOBAL DL_GLOBAL
8577# else
8578# define LT_DLGLOBAL 0
8579# endif
8580#endif
8581
8582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8583 find out it does not work in some platform. */
8584#ifndef LT_DLLAZY_OR_NOW
8585# ifdef RTLD_LAZY
8586# define LT_DLLAZY_OR_NOW RTLD_LAZY
8587# else
8588# ifdef DL_LAZY
8589# define LT_DLLAZY_OR_NOW DL_LAZY
8590# else
8591# ifdef RTLD_NOW
8592# define LT_DLLAZY_OR_NOW RTLD_NOW
8593# else
8594# ifdef DL_NOW
8595# define LT_DLLAZY_OR_NOW DL_NOW
8596# else
8597# define LT_DLLAZY_OR_NOW 0
8598# endif
8599# endif
8600# endif
8601# endif
8602#endif
8603
8604#ifdef __cplusplus
8605extern "C" void exit (int);
8606#endif
8607
8608void fnord() { int i=42;}
8609int main ()
8610{
8611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8612 int status = $lt_dlunknown;
8613
8614 if (self)
8615 {
8616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8618 /* dlclose (self); */
8619 }
8620
8621 exit (status);
8622}
8623EOF
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8629 (./conftest; exit; ) 2>/dev/null
8630 lt_status=$?
8631 case x$lt_status in
8632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8634 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8635 esac
8636 else :
8637 # compilation failed
8638 lt_cv_dlopen_self=no
8639 fi
8640fi
8641rm -fr conftest*
8642
8643
8644fi
8645echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8646echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8647
8648 if test "x$lt_cv_dlopen_self" = xyes; then
8649 LDFLAGS="$LDFLAGS $link_static_flag"
8650 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8651echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8652if test "${lt_cv_dlopen_self_static+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else
8655 if test "$cross_compiling" = yes; then :
8656 lt_cv_dlopen_self_static=cross
8657else
John Criswell47fdd832003-07-14 16:52:07 +00008658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008659 lt_status=$lt_dlunknown
8660 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +00008661#line 8661 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008662#include "confdefs.h"
8663
8664#if HAVE_DLFCN_H
8665#include <dlfcn.h>
8666#endif
8667
8668#include <stdio.h>
8669
8670#ifdef RTLD_GLOBAL
8671# define LT_DLGLOBAL RTLD_GLOBAL
8672#else
8673# ifdef DL_GLOBAL
8674# define LT_DLGLOBAL DL_GLOBAL
8675# else
8676# define LT_DLGLOBAL 0
8677# endif
8678#endif
8679
8680/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8681 find out it does not work in some platform. */
8682#ifndef LT_DLLAZY_OR_NOW
8683# ifdef RTLD_LAZY
8684# define LT_DLLAZY_OR_NOW RTLD_LAZY
8685# else
8686# ifdef DL_LAZY
8687# define LT_DLLAZY_OR_NOW DL_LAZY
8688# else
8689# ifdef RTLD_NOW
8690# define LT_DLLAZY_OR_NOW RTLD_NOW
8691# else
8692# ifdef DL_NOW
8693# define LT_DLLAZY_OR_NOW DL_NOW
8694# else
8695# define LT_DLLAZY_OR_NOW 0
8696# endif
8697# endif
8698# endif
8699# endif
8700#endif
8701
8702#ifdef __cplusplus
8703extern "C" void exit (int);
8704#endif
8705
8706void fnord() { int i=42;}
8707int main ()
8708{
8709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8710 int status = $lt_dlunknown;
8711
8712 if (self)
8713 {
8714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8715 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8716 /* dlclose (self); */
8717 }
8718
8719 exit (status);
8720}
8721EOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8727 (./conftest; exit; ) 2>/dev/null
8728 lt_status=$?
8729 case x$lt_status in
8730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8732 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8733 esac
8734 else :
8735 # compilation failed
8736 lt_cv_dlopen_self_static=no
8737 fi
8738fi
8739rm -fr conftest*
8740
8741
8742fi
8743echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8744echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8745 fi
8746
8747 CPPFLAGS="$save_CPPFLAGS"
8748 LDFLAGS="$save_LDFLAGS"
8749 LIBS="$save_LIBS"
8750 ;;
8751 esac
8752
8753 case $lt_cv_dlopen_self in
8754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8755 *) enable_dlopen_self=unknown ;;
8756 esac
8757
8758 case $lt_cv_dlopen_self_static in
8759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8760 *) enable_dlopen_self_static=unknown ;;
8761 esac
8762fi
8763
8764
John Criswell47fdd832003-07-14 16:52:07 +00008765# Report which librarie types wil actually be built
8766echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8767echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8768echo "$as_me:$LINENO: result: $can_build_shared" >&5
8769echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008770
John Criswell47fdd832003-07-14 16:52:07 +00008771echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8772echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8773test "$can_build_shared" = "no" && enable_shared=no
8774
8775# On AIX, shared libraries and static libraries use the same namespace, and
8776# are all built from PIC.
8777case "$host_os" in
8778aix3*)
8779 test "$enable_shared" = yes && enable_static=no
8780 if test -n "$RANLIB"; then
8781 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8782 postinstall_cmds='$RANLIB $lib'
8783 fi
8784 ;;
8785
8786aix4*)
8787 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8788 test "$enable_shared" = yes && enable_static=no
8789 fi
8790 ;;
8791 darwin* | rhapsody*)
8792 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8793 archive_cmds_need_lc=no
8794 case "$host_os" in
8795 rhapsody* | darwin1.[012])
8796 allow_undefined_flag='-undefined suppress'
8797 ;;
8798 *) # Darwin 1.3 on
8799 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8800 ;;
8801 esac
8802 # FIXME: Relying on posixy $() will cause problems for
8803 # cross-compilation, but unfortunately the echo tests do not
8804 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8805 # `"' quotes if we put them in here... so don't!
8806 output_verbose_link_cmd='echo'
8807 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8808 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8810 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}'
8811 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}'
8812 hardcode_direct=no
8813 hardcode_automatic=yes
8814 hardcode_shlibpath_var=unsupported
8815 whole_archive_flag_spec='-all_load $convenience'
8816 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008817 fi
John Criswell7a73b802003-06-30 21:59:07 +00008818 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008819esac
8820echo "$as_me:$LINENO: result: $enable_shared" >&5
8821echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008822
John Criswell47fdd832003-07-14 16:52:07 +00008823echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8824echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8825# Make sure either enable_shared or enable_static is yes.
8826test "$enable_shared" = yes || enable_static=yes
8827echo "$as_me:$LINENO: result: $enable_static" >&5
8828echo "${ECHO_T}$enable_static" >&6
8829
8830# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008831# libtool distribution, otherwise you forgot to ship ltmain.sh
8832# with your package, and you will get complaints that there are
8833# no rules to generate ltmain.sh.
8834if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008835 # See if we are running on zsh, and set the options which allow our commands through
8836 # without removal of \ escapes.
8837 if test -n "${ZSH_VERSION+set}" ; then
8838 setopt NO_GLOB_SUBST
8839 fi
John Criswell7a73b802003-06-30 21:59:07 +00008840 # Now quote all the things that may contain metacharacters while being
8841 # careful not to overquote the AC_SUBSTed values. We take copies of the
8842 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008843 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8846 deplibs_check_method reload_flag reload_cmds need_locks \
8847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8848 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008850 old_postinstall_cmds old_postuninstall_cmds \
8851 compiler \
8852 CC \
8853 LD \
8854 lt_prog_compiler_wl \
8855 lt_prog_compiler_pic \
8856 lt_prog_compiler_static \
8857 lt_prog_compiler_no_builtin_flag \
8858 export_dynamic_flag_spec \
8859 thread_safe_flag_spec \
8860 whole_archive_flag_spec \
8861 enable_shared_with_static_runtimes \
8862 old_archive_cmds \
8863 old_archive_from_new_cmds \
8864 predep_objects \
8865 postdep_objects \
8866 predeps \
8867 postdeps \
8868 compiler_lib_search_path \
8869 archive_cmds \
8870 archive_expsym_cmds \
8871 postinstall_cmds \
8872 postuninstall_cmds \
8873 old_archive_from_expsyms_cmds \
8874 allow_undefined_flag \
8875 no_undefined_flag \
8876 export_symbols_cmds \
8877 hardcode_libdir_flag_spec \
8878 hardcode_libdir_flag_spec_ld \
8879 hardcode_libdir_separator \
8880 hardcode_automatic \
8881 module_cmds \
8882 module_expsym_cmds \
8883 lt_cv_prog_compiler_c_o \
8884 exclude_expsyms \
8885 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008886
8887 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008888 old_archive_cmds | \
8889 old_archive_from_new_cmds | \
8890 archive_cmds | \
8891 archive_expsym_cmds | \
8892 module_cmds | \
8893 module_expsym_cmds | \
8894 old_archive_from_expsyms_cmds | \
8895 export_symbols_cmds | \
8896 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008897 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008898 old_postinstall_cmds | old_postuninstall_cmds | \
8899 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008900 # Double-quote double-evaled strings.
8901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8902 ;;
8903 *)
8904 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8905 ;;
8906 esac
8907 done
8908
John Criswell47fdd832003-07-14 16:52:07 +00008909 case $lt_echo in
8910 *'\$0 --fallback-echo"')
8911 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8912 ;;
8913 esac
8914
8915cfgfile="${ofile}T"
8916 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8917 $rm -f "$cfgfile"
8918 { echo "$as_me:$LINENO: creating $ofile" >&5
8919echo "$as_me: creating $ofile" >&6;}
8920
8921 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008922#! $SHELL
8923
John Criswell47fdd832003-07-14 16:52:07 +00008924# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008925# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8926# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8927#
John Criswell47fdd832003-07-14 16:52:07 +00008928# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8929# Free Software Foundation, Inc.
8930#
8931# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008932# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8933#
8934# This program is free software; you can redistribute it and/or modify
8935# it under the terms of the GNU General Public License as published by
8936# the Free Software Foundation; either version 2 of the License, or
8937# (at your option) any later version.
8938#
8939# This program is distributed in the hope that it will be useful, but
8940# WITHOUT ANY WARRANTY; without even the implied warranty of
8941# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8942# General Public License for more details.
8943#
8944# You should have received a copy of the GNU General Public License
8945# along with this program; if not, write to the Free Software
8946# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8947#
8948# As a special exception to the GNU General Public License, if you
8949# distribute this file as part of a program that contains a
8950# configuration script generated by Autoconf, you may include it under
8951# the same distribution terms that you use for the rest of that program.
8952
John Criswell47fdd832003-07-14 16:52:07 +00008953# A sed program that does not truncate output.
8954SED=$lt_SED
8955
John Criswell7a73b802003-06-30 21:59:07 +00008956# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008957Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008958
8959# The HP-UX ksh and POSIX shell print the target directory to stdout
8960# if CDPATH is set.
8961if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8962
John Criswell47fdd832003-07-14 16:52:07 +00008963# The names of the tagged configurations supported by this script.
8964available_tags=
8965
John Criswell7a73b802003-06-30 21:59:07 +00008966# ### BEGIN LIBTOOL CONFIG
8967
8968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8969
8970# Shell to use when invoking shell scripts.
8971SHELL=$lt_SHELL
8972
8973# Whether or not to build shared libraries.
8974build_libtool_libs=$enable_shared
8975
8976# Whether or not to build static libraries.
8977build_old_libs=$enable_static
8978
8979# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008980build_libtool_need_lc=$archive_cmds_need_lc
8981
8982# Whether or not to disallow shared libs when runtime libs are static
8983allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008984
8985# Whether or not to optimize for fast installation.
8986fast_install=$enable_fast_install
8987
8988# The host system.
8989host_alias=$host_alias
8990host=$host
8991
8992# An echo program that does not interpret backslashes.
8993echo=$lt_echo
8994
8995# The archiver.
8996AR=$lt_AR
8997AR_FLAGS=$lt_AR_FLAGS
8998
John Criswell47fdd832003-07-14 16:52:07 +00008999# A C compiler.
9000LTCC=$lt_LTCC
9001
9002# A language-specific compiler.
9003CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009004
9005# Is the compiler the GNU C compiler?
9006with_gcc=$GCC
9007
John Criswell47fdd832003-07-14 16:52:07 +00009008# An ERE matcher.
9009EGREP=$lt_EGREP
9010
John Criswell7a73b802003-06-30 21:59:07 +00009011# The linker used to build libraries.
9012LD=$lt_LD
9013
9014# Whether we need hard or soft links.
9015LN_S=$lt_LN_S
9016
9017# A BSD-compatible nm program.
9018NM=$lt_NM
9019
9020# A symbol stripping program
9021STRIP=$STRIP
9022
9023# Used to examine libraries when file_magic_cmd begins "file"
9024MAGIC_CMD=$MAGIC_CMD
9025
9026# Used on cygwin: DLL creation program.
9027DLLTOOL="$DLLTOOL"
9028
9029# Used on cygwin: object dumper.
9030OBJDUMP="$OBJDUMP"
9031
9032# Used on cygwin: assembler.
9033AS="$AS"
9034
9035# The name of the directory that contains temporary libtool files.
9036objdir=$objdir
9037
9038# How to create reloadable object files.
9039reload_flag=$lt_reload_flag
9040reload_cmds=$lt_reload_cmds
9041
9042# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009043wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009044
9045# Object file suffix (normally "o").
9046objext="$ac_objext"
9047
9048# Old archive suffix (normally "a").
9049libext="$libext"
9050
John Criswell47fdd832003-07-14 16:52:07 +00009051# Shared library suffix (normally ".so").
9052shrext='$shrext'
9053
John Criswell7a73b802003-06-30 21:59:07 +00009054# Executable file suffix (normally "").
9055exeext="$exeext"
9056
9057# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009058pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009059pic_mode=$pic_mode
9060
John Criswell47fdd832003-07-14 16:52:07 +00009061# What is the maximum length of a command?
9062max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009063
John Criswell47fdd832003-07-14 16:52:07 +00009064# Does compiler simultaneously support -c and -o options?
9065compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009066
9067# Must we lock files when doing compilation ?
9068need_locks=$lt_need_locks
9069
9070# Do we need the lib prefix for modules?
9071need_lib_prefix=$need_lib_prefix
9072
9073# Do we need a version for libraries?
9074need_version=$need_version
9075
9076# Whether dlopen is supported.
9077dlopen_support=$enable_dlopen
9078
9079# Whether dlopen of programs is supported.
9080dlopen_self=$enable_dlopen_self
9081
9082# Whether dlopen of statically linked programs is supported.
9083dlopen_self_static=$enable_dlopen_self_static
9084
9085# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009086link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009087
9088# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009089no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009090
9091# Compiler flag to allow reflexive dlopens.
9092export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9093
9094# Compiler flag to generate shared objects directly from archives.
9095whole_archive_flag_spec=$lt_whole_archive_flag_spec
9096
9097# Compiler flag to generate thread-safe objects.
9098thread_safe_flag_spec=$lt_thread_safe_flag_spec
9099
9100# Library versioning type.
9101version_type=$version_type
9102
9103# Format of library name prefix.
9104libname_spec=$lt_libname_spec
9105
9106# List of archive names. First name is the real one, the rest are links.
9107# The last name is the one that the linker finds with -lNAME.
9108library_names_spec=$lt_library_names_spec
9109
9110# The coded name of the library, if different from the real name.
9111soname_spec=$lt_soname_spec
9112
9113# Commands used to build and install an old-style archive.
9114RANLIB=$lt_RANLIB
9115old_archive_cmds=$lt_old_archive_cmds
9116old_postinstall_cmds=$lt_old_postinstall_cmds
9117old_postuninstall_cmds=$lt_old_postuninstall_cmds
9118
9119# Create an old-style archive from a shared archive.
9120old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9121
9122# Create a temporary old-style archive to link instead of a shared archive.
9123old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9124
9125# Commands used to build and install a shared archive.
9126archive_cmds=$lt_archive_cmds
9127archive_expsym_cmds=$lt_archive_expsym_cmds
9128postinstall_cmds=$lt_postinstall_cmds
9129postuninstall_cmds=$lt_postuninstall_cmds
9130
John Criswell47fdd832003-07-14 16:52:07 +00009131# Commands used to build a loadable module (assumed same as above if empty)
9132module_cmds=$lt_module_cmds
9133module_expsym_cmds=$lt_module_expsym_cmds
9134
John Criswell7a73b802003-06-30 21:59:07 +00009135# Commands to strip libraries.
9136old_striplib=$lt_old_striplib
9137striplib=$lt_striplib
9138
John Criswell47fdd832003-07-14 16:52:07 +00009139# Dependencies to place before the objects being linked to create a
9140# shared library.
9141predep_objects=$lt_predep_objects
9142
9143# Dependencies to place after the objects being linked to create a
9144# shared library.
9145postdep_objects=$lt_postdep_objects
9146
9147# Dependencies to place before the objects being linked to create a
9148# shared library.
9149predeps=$lt_predeps
9150
9151# Dependencies to place after the objects being linked to create a
9152# shared library.
9153postdeps=$lt_postdeps
9154
9155# The library search path used internally by the compiler when linking
9156# a shared library.
9157compiler_lib_search_path=$lt_compiler_lib_search_path
9158
John Criswell7a73b802003-06-30 21:59:07 +00009159# Method to check whether dependent libraries are shared objects.
9160deplibs_check_method=$lt_deplibs_check_method
9161
9162# Command to use when deplibs_check_method == file_magic.
9163file_magic_cmd=$lt_file_magic_cmd
9164
9165# Flag that allows shared libraries with undefined symbols to be built.
9166allow_undefined_flag=$lt_allow_undefined_flag
9167
9168# Flag that forces no undefined symbols.
9169no_undefined_flag=$lt_no_undefined_flag
9170
9171# Commands used to finish a libtool library installation in a directory.
9172finish_cmds=$lt_finish_cmds
9173
9174# Same as above, but a single script fragment to be evaled but not shown.
9175finish_eval=$lt_finish_eval
9176
9177# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009178global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009179
9180# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009181global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009182
9183# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009184global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009185
9186# This is the shared library runtime path variable.
9187runpath_var=$runpath_var
9188
9189# This is the shared library path variable.
9190shlibpath_var=$shlibpath_var
9191
9192# Is shlibpath searched before the hard-coded library search path?
9193shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9194
9195# How to hardcode a shared library path into an executable.
9196hardcode_action=$hardcode_action
9197
9198# Whether we should hardcode library paths into libraries.
9199hardcode_into_libs=$hardcode_into_libs
9200
9201# Flag to hardcode \$libdir into a binary during linking.
9202# This must work even if \$libdir does not exist.
9203hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9204
John Criswell47fdd832003-07-14 16:52:07 +00009205# If ld is used when linking, flag to hardcode \$libdir into
9206# a binary during linking. This must work even if \$libdir does
9207# not exist.
9208hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9209
John Criswell7a73b802003-06-30 21:59:07 +00009210# Whether we need a single -rpath flag with a separated argument.
9211hardcode_libdir_separator=$lt_hardcode_libdir_separator
9212
John Criswell47fdd832003-07-14 16:52:07 +00009213# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009214# resulting binary.
9215hardcode_direct=$hardcode_direct
9216
9217# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9218# resulting binary.
9219hardcode_minus_L=$hardcode_minus_L
9220
9221# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9222# the resulting binary.
9223hardcode_shlibpath_var=$hardcode_shlibpath_var
9224
John Criswell47fdd832003-07-14 16:52:07 +00009225# Set to yes if building a shared library automatically hardcodes DIR into the library
9226# and all subsequent libraries and executables linked against it.
9227hardcode_automatic=$hardcode_automatic
9228
John Criswell7a73b802003-06-30 21:59:07 +00009229# Variables whose values should be saved in libtool wrapper scripts and
9230# restored at relink time.
9231variables_saved_for_relink="$variables_saved_for_relink"
9232
9233# Whether libtool must link a program against all its dependency libraries.
9234link_all_deplibs=$link_all_deplibs
9235
9236# Compile-time system search path for libraries
9237sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9238
9239# Run-time system search path for libraries
9240sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9241
9242# Fix the shell variable \$srcfile for the compiler.
9243fix_srcfile_path="$fix_srcfile_path"
9244
9245# Set to yes if exported symbols are required.
9246always_export_symbols=$always_export_symbols
9247
9248# The commands to list exported symbols.
9249export_symbols_cmds=$lt_export_symbols_cmds
9250
9251# The commands to extract the exported symbol list from a shared archive.
9252extract_expsyms_cmds=$lt_extract_expsyms_cmds
9253
9254# Symbols that should not be listed in the preloaded symbols.
9255exclude_expsyms=$lt_exclude_expsyms
9256
9257# Symbols that must always be exported.
9258include_expsyms=$lt_include_expsyms
9259
9260# ### END LIBTOOL CONFIG
9261
9262__EOF__
9263
John Criswell47fdd832003-07-14 16:52:07 +00009264
John Criswell7a73b802003-06-30 21:59:07 +00009265 case $host_os in
9266 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009267 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009268
9269# AIX sometimes has problems with the GCC collect2 program. For some
9270# reason, if we set the COLLECT_NAMES environment variable, the problems
9271# vanish in a puff of smoke.
9272if test "X${COLLECT_NAMES+set}" != Xset; then
9273 COLLECT_NAMES=
9274 export COLLECT_NAMES
9275fi
9276EOF
9277 ;;
9278 esac
9279
John Criswell7a73b802003-06-30 21:59:07 +00009280 # We use sed instead of cat because bash on DJGPP gets confused if
9281 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9282 # text mode, it properly converts lines to CR/LF. This bash problem
9283 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009284 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009285
John Criswell47fdd832003-07-14 16:52:07 +00009286 mv -f "$cfgfile" "$ofile" || \
9287 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009288 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009289
9290else
9291 # If there is no Makefile yet, we rely on a make rule to execute
9292 # `config.status --recheck' to rerun these tests and create the
9293 # libtool script then.
9294 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009295fi
John Criswell7a73b802003-06-30 21:59:07 +00009296
9297
John Criswell47fdd832003-07-14 16:52:07 +00009298ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304CC="$lt_save_CC"
9305
9306
9307# Check whether --with-tags or --without-tags was given.
9308if test "${with_tags+set}" = set; then
9309 withval="$with_tags"
9310 tagnames="$withval"
9311fi;
9312
9313if test -f "$ltmain" && test -n "$tagnames"; then
9314 if test ! -f "${ofile}"; then
9315 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9316echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9317 fi
9318
9319 if test -z "$LTCC"; then
9320 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9321 if test -z "$LTCC"; then
9322 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9323echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9324 else
9325 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9326echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9327 fi
9328 fi
9329
9330 # Extract list of available tagged configurations in $ofile.
9331 # Note that this assumes the entire list is on one line.
9332 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9333
9334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9335 for tagname in $tagnames; do
9336 IFS="$lt_save_ifs"
9337 # Check whether tagname contains only valid characters
9338 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9339 "") ;;
9340 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9341echo "$as_me: error: invalid tag name: $tagname" >&2;}
9342 { (exit 1); exit 1; }; }
9343 ;;
9344 esac
9345
9346 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9347 then
9348 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9349echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9350 { (exit 1); exit 1; }; }
9351 fi
9352
9353 # Update the list of available tags.
9354 if test -n "$tagname"; then
9355 echo appending configuration tag \"$tagname\" to $ofile
9356
9357 case $tagname in
9358 CXX)
9359 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9360 ac_ext=cc
9361ac_cpp='$CXXCPP $CPPFLAGS'
9362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9365
9366
9367
9368
9369archive_cmds_need_lc_CXX=no
9370allow_undefined_flag_CXX=
9371always_export_symbols_CXX=no
9372archive_expsym_cmds_CXX=
9373export_dynamic_flag_spec_CXX=
9374hardcode_direct_CXX=no
9375hardcode_libdir_flag_spec_CXX=
9376hardcode_libdir_flag_spec_ld_CXX=
9377hardcode_libdir_separator_CXX=
9378hardcode_minus_L_CXX=no
9379hardcode_automatic_CXX=no
9380module_cmds_CXX=
9381module_expsym_cmds_CXX=
9382link_all_deplibs_CXX=unknown
9383old_archive_cmds_CXX=$old_archive_cmds
9384no_undefined_flag_CXX=
9385whole_archive_flag_spec_CXX=
9386enable_shared_with_static_runtimes_CXX=no
9387
9388# Dependencies to place before and after the object being linked:
9389predep_objects_CXX=
9390postdep_objects_CXX=
9391predeps_CXX=
9392postdeps_CXX=
9393compiler_lib_search_path_CXX=
9394
9395# Source file extension for C++ test sources.
9396ac_ext=cc
9397
9398# Object file extension for compiled C++ test sources.
9399objext=o
9400objext_CXX=$objext
9401
9402# Code to be used in simple compile tests
9403lt_simple_compile_test_code="int some_variable = 0;\n"
9404
9405# Code to be used in simple link tests
9406lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9407
9408# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9409
9410# If no C compiler was specified, use CC.
9411LTCC=${LTCC-"$CC"}
9412
9413# Allow CC to be a program name with arguments.
9414compiler=$CC
9415
9416
9417# Allow CC to be a program name with arguments.
9418lt_save_CC=$CC
9419lt_save_LD=$LD
9420lt_save_GCC=$GCC
9421GCC=$GXX
9422lt_save_with_gnu_ld=$with_gnu_ld
9423lt_save_path_LD=$lt_cv_path_LD
9424if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9426else
9427 unset lt_cv_prog_gnu_ld
9428fi
9429if test -n "${lt_cv_path_LDCXX+set}"; then
9430 lt_cv_path_LD=$lt_cv_path_LDCXX
9431else
9432 unset lt_cv_path_LD
9433fi
9434test -z "${LDCXX+set}" || LD=$LDCXX
9435CC=${CXX-"c++"}
9436compiler=$CC
9437compiler_CXX=$CC
9438cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9439
9440# We don't want -fno-exception wen compiling C++ code, so set the
9441# no_builtin_flag separately
9442if test "$GXX" = yes; then
9443 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9444else
9445 lt_prog_compiler_no_builtin_flag_CXX=
9446fi
9447
9448if test "$GXX" = yes; then
9449 # Set up default GNU C++ configuration
9450
9451
9452# Check whether --with-gnu-ld or --without-gnu-ld was given.
9453if test "${with_gnu_ld+set}" = set; then
9454 withval="$with_gnu_ld"
9455 test "$withval" = no || with_gnu_ld=yes
9456else
9457 with_gnu_ld=no
9458fi;
9459ac_prog=ld
9460if test "$GCC" = yes; then
9461 # Check if gcc -print-prog-name=ld gives a path.
9462 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9463echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9464 case $host in
9465 *-*-mingw*)
9466 # gcc leaves a trailing carriage return which upsets mingw
9467 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9468 *)
9469 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9470 esac
9471 case $ac_prog in
9472 # Accept absolute paths.
9473 [\\/]* | ?:[\\/]*)
9474 re_direlt='/[^/][^/]*/\.\./'
9475 # Canonicalize the path of ld
9476 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9477 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9478 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9479 done
9480 test -z "$LD" && LD="$ac_prog"
9481 ;;
9482 "")
9483 # If it fails, then pretend we aren't using GCC.
9484 ac_prog=ld
9485 ;;
9486 *)
9487 # If it is relative, then search for the first ld in PATH.
9488 with_gnu_ld=unknown
9489 ;;
9490 esac
9491elif test "$with_gnu_ld" = yes; then
9492 echo "$as_me:$LINENO: checking for GNU ld" >&5
9493echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9494else
9495 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9496echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9497fi
9498if test "${lt_cv_path_LD+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501 if test -z "$LD"; then
9502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9503 for ac_dir in $PATH; do
9504 IFS="$lt_save_ifs"
9505 test -z "$ac_dir" && ac_dir=.
9506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9507 lt_cv_path_LD="$ac_dir/$ac_prog"
9508 # Check to see if the program is GNU ld. I'd rather use --version,
9509 # but apparently some GNU ld's only accept -v.
9510 # Break only if it was the GNU/non-GNU ld that we prefer.
9511 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9512 *GNU* | *'with BFD'*)
9513 test "$with_gnu_ld" != no && break
9514 ;;
9515 *)
9516 test "$with_gnu_ld" != yes && break
9517 ;;
9518 esac
9519 fi
9520 done
9521 IFS="$lt_save_ifs"
9522else
9523 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9524fi
9525fi
9526
9527LD="$lt_cv_path_LD"
9528if test -n "$LD"; then
9529 echo "$as_me:$LINENO: result: $LD" >&5
9530echo "${ECHO_T}$LD" >&6
9531else
9532 echo "$as_me:$LINENO: result: no" >&5
9533echo "${ECHO_T}no" >&6
9534fi
9535test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9536echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9537 { (exit 1); exit 1; }; }
9538echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9539echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9540if test "${lt_cv_prog_gnu_ld+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542else
9543 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9544case `"$LD" -v 2>&1 </dev/null` in
9545*GNU* | *'with BFD'*)
9546 lt_cv_prog_gnu_ld=yes
9547 ;;
9548*)
9549 lt_cv_prog_gnu_ld=no
9550 ;;
9551esac
9552fi
9553echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9554echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9555with_gnu_ld=$lt_cv_prog_gnu_ld
9556
9557
9558
9559 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9560 # archiving commands below assume that GNU ld is being used.
9561 if test "$with_gnu_ld" = yes; then
9562 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9563 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'
9564
9565 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9566 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9567
9568 # If archive_cmds runs LD, not CC, wlarc should be empty
9569 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9570 # investigate it a little bit more. (MM)
9571 wlarc='${wl}'
9572
9573 # ancient GNU ld didn't support --whole-archive et. al.
9574 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9575 grep 'no-whole-archive' > /dev/null; then
9576 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9577 else
9578 whole_archive_flag_spec_CXX=
9579 fi
9580 else
9581 with_gnu_ld=no
9582 wlarc=
9583
9584 # A generic and very simple default shared library creation
9585 # command for GNU C++ for the case where it uses the native
9586 # linker, instead of GNU ld. If possible, this setting should
9587 # overridden to take advantage of the native linker features on
9588 # the platform it is being used on.
9589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9590 fi
9591
9592 # Commands to make compiler produce verbose output that lists
9593 # what "hidden" libraries, object files and flags are used when
9594 # linking a shared library.
9595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9596
9597else
9598 GXX=no
9599 with_gnu_ld=no
9600 wlarc=
9601fi
9602
9603# PORTME: fill in a description of your system's C++ link characteristics
9604echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9605echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9606ld_shlibs_CXX=yes
9607case $host_os in
9608 aix3*)
9609 # FIXME: insert proper C++ library support
9610 ld_shlibs_CXX=no
9611 ;;
9612 aix4* | aix5*)
9613 if test "$host_cpu" = ia64; then
9614 # On IA64, the linker does run time linking by default, so we don't
9615 # have to do anything special.
9616 aix_use_runtimelinking=no
9617 exp_sym_flag='-Bexport'
9618 no_entry_flag=""
9619 else
9620 aix_use_runtimelinking=no
9621
9622 # Test if we are trying to use run time linking or normal
9623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9624 # need to do runtime linking.
9625 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9626 for ld_flag in $LDFLAGS; do
9627 case $ld_flag in
9628 *-brtl*)
9629 aix_use_runtimelinking=yes
9630 break
9631 ;;
9632 esac
9633 done
9634 esac
9635
9636 exp_sym_flag='-bexport'
9637 no_entry_flag='-bnoentry'
9638 fi
9639
9640 # When large executables or shared objects are built, AIX ld can
9641 # have problems creating the table of contents. If linking a library
9642 # or program results in "error TOC overflow" add -mminimal-toc to
9643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646 archive_cmds_CXX=''
9647 hardcode_direct_CXX=yes
9648 hardcode_libdir_separator_CXX=':'
9649 link_all_deplibs_CXX=yes
9650
9651 if test "$GXX" = yes; then
9652 case $host_os in aix4.012|aix4.012.*)
9653 # We only want to do this on AIX 4.2 and lower, the check
9654 # below for broken collect2 doesn't work under 4.3+
9655 collect2name=`${CC} -print-prog-name=collect2`
9656 if test -f "$collect2name" && \
9657 strings "$collect2name" | grep resolve_lib_name >/dev/null
9658 then
9659 # We have reworked collect2
9660 hardcode_direct_CXX=yes
9661 else
9662 # We have old collect2
9663 hardcode_direct_CXX=unsupported
9664 # It fails to find uninstalled libraries when the uninstalled
9665 # path is not listed in the libpath. Setting hardcode_minus_L
9666 # to unsupported forces relinking
9667 hardcode_minus_L_CXX=yes
9668 hardcode_libdir_flag_spec_CXX='-L$libdir'
9669 hardcode_libdir_separator_CXX=
9670 fi
9671 esac
9672 shared_flag='-shared'
9673 else
9674 # not using gcc
9675 if test "$host_cpu" = ia64; then
9676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9677 # chokes on -Wl,-G. The following line is correct:
9678 shared_flag='-G'
9679 else
9680 if test "$aix_use_runtimelinking" = yes; then
9681 shared_flag='${wl}-G'
9682 else
9683 shared_flag='${wl}-bM:SRE'
9684 fi
9685 fi
9686 fi
9687
9688 # It seems that -bexpall does not export symbols beginning with
9689 # underscore (_), so it is better to generate a list of symbols to export.
9690 always_export_symbols_CXX=yes
9691 if test "$aix_use_runtimelinking" = yes; then
9692 # Warning - without using the other runtime loading flags (-brtl),
9693 # -berok will link without error, but may produce a broken library.
9694 allow_undefined_flag_CXX='-berok'
9695 # Determine the default libpath from the value encoded in an empty executable.
9696 cat >conftest.$ac_ext <<_ACEOF
9697#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009703
John Criswell47fdd832003-07-14 16:52:07 +00009704int
9705main ()
9706{
9707
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext conftest$ac_exeext
9713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -s conftest$ac_exeext'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; }; then
9724
9725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9726}'`
9727# Check for a 64-bit object if we didn't find anything.
9728if 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; }
9729}'`; fi
9730else
9731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009732sed 's/^/| /' conftest.$ac_ext >&5
9733
John Criswell47fdd832003-07-14 16:52:07 +00009734fi
9735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9737
9738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9739
9740 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"
9741 else
9742 if test "$host_cpu" = ia64; then
9743 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9744 allow_undefined_flag_CXX="-z nodefs"
9745 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"
9746 else
9747 # Determine the default libpath from the value encoded in an empty executable.
9748 cat >conftest.$ac_ext <<_ACEOF
9749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009755
John Criswell47fdd832003-07-14 16:52:07 +00009756int
9757main ()
9758{
9759
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776
9777aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9778}'`
9779# Check for a 64-bit object if we didn't find anything.
9780if 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; }
9781}'`; fi
9782else
9783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009784sed 's/^/| /' conftest.$ac_ext >&5
9785
John Criswell47fdd832003-07-14 16:52:07 +00009786fi
9787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9789
9790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9791 # Warning - without using the other run time loading flags,
9792 # -berok will link without error, but may produce a broken library.
9793 no_undefined_flag_CXX=' ${wl}-bernotok'
9794 allow_undefined_flag_CXX=' ${wl}-berok'
9795 # -bexpall does not export symbols beginning with underscore (_)
9796 always_export_symbols_CXX=yes
9797 # Exported symbols can be pulled into shared objects from archives
9798 whole_archive_flag_spec_CXX=' '
9799 archive_cmds_need_lc_CXX=yes
9800 # This is similar to how AIX traditionally builds it's shared libraries.
9801 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'
9802 fi
9803 fi
9804 ;;
9805 chorus*)
9806 case $cc_basename in
9807 *)
9808 # FIXME: insert proper C++ library support
9809 ld_shlibs_CXX=no
9810 ;;
9811 esac
9812 ;;
9813
9814 cygwin* | mingw* | pw32*)
9815 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9816 # as there is no search path for DLLs.
9817 hardcode_libdir_flag_spec_CXX='-L$libdir'
9818 allow_undefined_flag_CXX=unsupported
9819 always_export_symbols_CXX=no
9820 enable_shared_with_static_runtimes_CXX=yes
9821
9822 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9823 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'
9824 # If the export-symbols file already is a .def file (1st line
9825 # is EXPORTS), use it as is; otherwise, prepend...
9826 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9827 cp $export_symbols $output_objdir/$soname.def;
9828 else
9829 echo EXPORTS > $output_objdir/$soname.def;
9830 cat $export_symbols >> $output_objdir/$soname.def;
9831 fi~
9832 $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'
9833 else
9834 ld_shlibs_CXX=no
9835 fi
9836 ;;
9837
9838 darwin* | rhapsody*)
9839 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9840 archive_cmds_need_lc_CXX=no
9841 case "$host_os" in
9842 rhapsody* | darwin1.[012])
9843 allow_undefined_flag_CXX='-undefined suppress'
9844 ;;
9845 *) # Darwin 1.3 on
9846 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9847 ;;
9848 esac
9849 lt_int_apple_cc_single_mod=no
9850 output_verbose_link_cmd='echo'
9851 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9852 lt_int_apple_cc_single_mod=yes
9853 fi
9854 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9855 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9856 else
9857 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'
9858 fi
9859 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9860
9861 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9862 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9863 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}'
9864 else
9865 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}'
9866 fi
9867 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}'
9868 hardcode_direct_CXX=no
9869 hardcode_automatic_CXX=yes
9870 hardcode_shlibpath_var_CXX=unsupported
9871 whole_archive_flag_spec_CXX='-all_load $convenience'
9872 link_all_deplibs_CXX=yes
9873 fi
9874 ;;
9875
9876 dgux*)
9877 case $cc_basename in
9878 ec++)
9879 # FIXME: insert proper C++ library support
9880 ld_shlibs_CXX=no
9881 ;;
9882 ghcx)
9883 # Green Hills C++ Compiler
9884 # FIXME: insert proper C++ library support
9885 ld_shlibs_CXX=no
9886 ;;
9887 *)
9888 # FIXME: insert proper C++ library support
9889 ld_shlibs_CXX=no
9890 ;;
9891 esac
9892 ;;
9893 freebsd12*)
9894 # C++ shared libraries reported to be fairly broken before switch to ELF
9895 ld_shlibs_CXX=no
9896 ;;
9897 freebsd-elf*)
9898 archive_cmds_need_lc_CXX=no
9899 ;;
9900 freebsd*)
9901 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9902 # conventions
9903 ld_shlibs_CXX=yes
9904 ;;
9905 gnu*)
9906 ;;
9907 hpux9*)
9908 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator_CXX=:
9910 export_dynamic_flag_spec_CXX='${wl}-E'
9911 hardcode_direct_CXX=yes
9912 hardcode_minus_L_CXX=yes # Not in the search PATH,
9913 # but as the default
9914 # location of the library.
9915
9916 case $cc_basename in
9917 CC)
9918 # FIXME: insert proper C++ library support
9919 ld_shlibs_CXX=no
9920 ;;
9921 aCC)
9922 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'
9923 # Commands to make compiler produce verbose output that lists
9924 # what "hidden" libraries, object files and flags are used when
9925 # linking a shared library.
9926 #
9927 # There doesn't appear to be a way to prevent this compiler from
9928 # explicitly linking system object files so we need to strip them
9929 # from the output so that they don't get included in the library
9930 # dependencies.
9931 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'
9932 ;;
9933 *)
9934 if test "$GXX" = yes; then
9935 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'
9936 else
9937 # FIXME: insert proper C++ library support
9938 ld_shlibs_CXX=no
9939 fi
9940 ;;
9941 esac
9942 ;;
9943 hpux10*|hpux11*)
9944 if test $with_gnu_ld = no; then
9945 case "$host_cpu" in
9946 hppa*64*)
9947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9948 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9949 hardcode_libdir_separator_CXX=:
9950 ;;
9951 ia64*)
9952 hardcode_libdir_flag_spec_CXX='-L$libdir'
9953 ;;
9954 *)
9955 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9956 hardcode_libdir_separator_CXX=:
9957 export_dynamic_flag_spec_CXX='${wl}-E'
9958 ;;
9959 esac
9960 fi
9961 case "$host_cpu" in
9962 hppa*64*)
9963 hardcode_direct_CXX=no
9964 hardcode_shlibpath_var_CXX=no
9965 ;;
9966 ia64*)
9967 hardcode_direct_CXX=no
9968 hardcode_shlibpath_var_CXX=no
9969 hardcode_minus_L_CXX=yes # Not in the search PATH,
9970 # but as the default
9971 # location of the library.
9972 ;;
9973 *)
9974 hardcode_direct_CXX=yes
9975 hardcode_minus_L_CXX=yes # Not in the search PATH,
9976 # but as the default
9977 # location of the library.
9978 ;;
9979 esac
9980
9981 case $cc_basename in
9982 CC)
9983 # FIXME: insert proper C++ library support
9984 ld_shlibs_CXX=no
9985 ;;
9986 aCC)
9987 case "$host_cpu" in
9988 hppa*64*|ia64*)
9989 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9990 ;;
9991 *)
9992 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9993 ;;
9994 esac
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) | grep "\-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 if test $with_gnu_ld = no; then
10008 case "$host_cpu" in
10009 ia64*|hppa*64*)
10010 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10011 ;;
10012 *)
10013 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'
10014 ;;
10015 esac
10016 fi
10017 else
10018 # FIXME: insert proper C++ library support
10019 ld_shlibs_CXX=no
10020 fi
10021 ;;
10022 esac
10023 ;;
10024 irix5* | irix6*)
10025 case $cc_basename in
10026 CC)
10027 # SGI C++
10028 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'
10029
10030 # Archives containing C++ object files must be created using
10031 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10032 # necessary to make sure instantiated templates are included
10033 # in the archive.
10034 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10035 ;;
10036 *)
10037 if test "$GXX" = yes; then
10038 if test "$with_gnu_ld" = no; then
10039 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'
10040 else
10041 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'
10042 fi
10043 fi
10044 link_all_deplibs_CXX=yes
10045 ;;
10046 esac
10047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10048 hardcode_libdir_separator_CXX=:
10049 ;;
10050 linux*)
10051 case $cc_basename in
10052 KCC)
10053 # Kuck and Associates, Inc. (KAI) C++ Compiler
10054
10055 # KCC will only create a shared library if the output file
10056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10057 # to its proper name (with version) after linking.
10058 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'
10059 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'
10060 # Commands to make compiler produce verbose output that lists
10061 # what "hidden" libraries, object files and flags are used when
10062 # linking a shared library.
10063 #
10064 # There doesn't appear to be a way to prevent this compiler from
10065 # explicitly linking system object files so we need to strip them
10066 # from the output so that they don't get included in the library
10067 # dependencies.
10068 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'
10069
10070 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10072
10073 # Archives containing C++ object files must be created using
10074 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10075 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10076 ;;
10077 icpc)
10078 # Intel C++
10079 with_gnu_ld=yes
10080 archive_cmds_need_lc_CXX=no
10081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 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'
10083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10085 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10086 ;;
10087 cxx)
10088 # Compaq C++
10089 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090 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'
10091
10092 runpath_var=LD_RUN_PATH
10093 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10094 hardcode_libdir_separator_CXX=:
10095
10096 # Commands to make compiler produce verbose output that lists
10097 # what "hidden" libraries, object files and flags are used when
10098 # linking a shared library.
10099 #
10100 # There doesn't appear to be a way to prevent this compiler from
10101 # explicitly linking system object files so we need to strip them
10102 # from the output so that they don't get included in the library
10103 # dependencies.
10104 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'
10105 ;;
10106 esac
10107 ;;
10108 lynxos*)
10109 # FIXME: insert proper C++ library support
10110 ld_shlibs_CXX=no
10111 ;;
10112 m88k*)
10113 # FIXME: insert proper C++ library support
10114 ld_shlibs_CXX=no
10115 ;;
10116 mvs*)
10117 case $cc_basename in
10118 cxx)
10119 # FIXME: insert proper C++ library support
10120 ld_shlibs_CXX=no
10121 ;;
10122 *)
10123 # FIXME: insert proper C++ library support
10124 ld_shlibs_CXX=no
10125 ;;
10126 esac
10127 ;;
10128 netbsd*)
10129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10130 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10131 wlarc=
10132 hardcode_libdir_flag_spec_CXX='-R$libdir'
10133 hardcode_direct_CXX=yes
10134 hardcode_shlibpath_var_CXX=no
10135 fi
10136 # Workaround some broken pre-1.5 toolchains
10137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10138 ;;
10139 osf3*)
10140 case $cc_basename in
10141 KCC)
10142 # Kuck and Associates, Inc. (KAI) C++ Compiler
10143
10144 # KCC will only create a shared library if the output file
10145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10146 # to its proper name (with version) after linking.
10147 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'
10148
10149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10150 hardcode_libdir_separator_CXX=:
10151
10152 # Archives containing C++ object files must be created using
10153 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10154 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10155
10156 ;;
10157 RCC)
10158 # Rational C++ 2.4.1
10159 # FIXME: insert proper C++ library support
10160 ld_shlibs_CXX=no
10161 ;;
10162 cxx)
10163 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10164 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'
10165
10166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10167 hardcode_libdir_separator_CXX=:
10168
10169 # Commands to make compiler produce verbose output that lists
10170 # what "hidden" libraries, object files and flags are used when
10171 # linking a shared library.
10172 #
10173 # There doesn't appear to be a way to prevent this compiler from
10174 # explicitly linking system object files so we need to strip them
10175 # from the output so that they don't get included in the library
10176 # dependencies.
10177 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'
10178 ;;
10179 *)
10180 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10181 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10182 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'
10183
10184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10185 hardcode_libdir_separator_CXX=:
10186
10187 # Commands to make compiler produce verbose output that lists
10188 # what "hidden" libraries, object files and flags are used when
10189 # linking a shared library.
10190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10191
10192 else
10193 # FIXME: insert proper C++ library support
10194 ld_shlibs_CXX=no
10195 fi
10196 ;;
10197 esac
10198 ;;
10199 osf4* | osf5*)
10200 case $cc_basename in
10201 KCC)
10202 # Kuck and Associates, Inc. (KAI) C++ Compiler
10203
10204 # KCC will only create a shared library if the output file
10205 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10206 # to its proper name (with version) after linking.
10207 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'
10208
10209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10210 hardcode_libdir_separator_CXX=:
10211
10212 # Archives containing C++ object files must be created using
10213 # the KAI C++ compiler.
10214 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10215 ;;
10216 RCC)
10217 # Rational C++ 2.4.1
10218 # FIXME: insert proper C++ library support
10219 ld_shlibs_CXX=no
10220 ;;
10221 cxx)
10222 allow_undefined_flag_CXX=' -expect_unresolved \*'
10223 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'
10224 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10225 echo "-hidden">> $lib.exp~
10226 $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~
10227 $rm $lib.exp'
10228
10229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10230 hardcode_libdir_separator_CXX=:
10231
10232 # Commands to make compiler produce verbose output that lists
10233 # what "hidden" libraries, object files and flags are used when
10234 # linking a shared library.
10235 #
10236 # There doesn't appear to be a way to prevent this compiler from
10237 # explicitly linking system object files so we need to strip them
10238 # from the output so that they don't get included in the library
10239 # dependencies.
10240 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'
10241 ;;
10242 *)
10243 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10245 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'
10246
10247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10248 hardcode_libdir_separator_CXX=:
10249
10250 # Commands to make compiler produce verbose output that lists
10251 # what "hidden" libraries, object files and flags are used when
10252 # linking a shared library.
10253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10254
10255 else
10256 # FIXME: insert proper C++ library support
10257 ld_shlibs_CXX=no
10258 fi
10259 ;;
10260 esac
10261 ;;
10262 psos*)
10263 # FIXME: insert proper C++ library support
10264 ld_shlibs_CXX=no
10265 ;;
10266 sco*)
10267 archive_cmds_need_lc_CXX=no
10268 case $cc_basename in
10269 CC)
10270 # FIXME: insert proper C++ library support
10271 ld_shlibs_CXX=no
10272 ;;
10273 *)
10274 # FIXME: insert proper C++ library support
10275 ld_shlibs_CXX=no
10276 ;;
10277 esac
10278 ;;
10279 sunos4*)
10280 case $cc_basename in
10281 CC)
10282 # Sun C++ 4.x
10283 # FIXME: insert proper C++ library support
10284 ld_shlibs_CXX=no
10285 ;;
10286 lcc)
10287 # Lucid
10288 # FIXME: insert proper C++ library support
10289 ld_shlibs_CXX=no
10290 ;;
10291 *)
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
10295 esac
10296 ;;
10297 solaris*)
10298 case $cc_basename in
10299 CC)
10300 # Sun C++ 4.2, 5.x and Centerline C++
10301 no_undefined_flag_CXX=' -zdefs'
10302 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10303 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10304 $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'
10305
10306 hardcode_libdir_flag_spec_CXX='-R$libdir'
10307 hardcode_shlibpath_var_CXX=no
10308 case $host_os in
10309 solaris2.0-5 | solaris2.0-5.*) ;;
10310 *)
10311 # The C++ compiler is used as linker so we must use $wl
10312 # flag to pass the commands to the underlying system
10313 # linker.
10314 # Supported since Solaris 2.6 (maybe 2.5.1?)
10315 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10316 ;;
10317 esac
10318 link_all_deplibs_CXX=yes
10319
10320 # Commands to make compiler produce verbose output that lists
10321 # what "hidden" libraries, object files and flags are used when
10322 # linking a shared library.
10323 #
10324 # There doesn't appear to be a way to prevent this compiler from
10325 # explicitly linking system object files so we need to strip them
10326 # from the output so that they don't get included in the library
10327 # dependencies.
10328 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'
10329
10330 # Archives containing C++ object files must be created using
10331 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10332 # necessary to make sure instantiated templates are included
10333 # in the archive.
10334 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10335 ;;
10336 gcx)
10337 # Green Hills C++ Compiler
10338 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10339
10340 # The C++ compiler must be used to create the archive.
10341 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10342 ;;
10343 *)
10344 # GNU C++ compiler with Solaris linker
10345 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10346 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10347 if $CC --version | grep -v '^2\.7' > /dev/null; then
10348 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10349 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10350 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10351
10352 # Commands to make compiler produce verbose output that lists
10353 # what "hidden" libraries, object files and flags are used when
10354 # linking a shared library.
10355 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10356 else
10357 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10358 # platform.
10359 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10360 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10362
10363 # Commands to make compiler produce verbose output that lists
10364 # what "hidden" libraries, object files and flags are used when
10365 # linking a shared library.
10366 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10367 fi
10368
10369 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10370 fi
10371 ;;
10372 esac
10373 ;;
10374 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10375 archive_cmds_need_lc_CXX=no
10376 ;;
10377 tandem*)
10378 case $cc_basename in
10379 NCC)
10380 # NonStop-UX NCC 3.20
10381 # FIXME: insert proper C++ library support
10382 ld_shlibs_CXX=no
10383 ;;
10384 *)
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 esac
10389 ;;
10390 vxworks*)
10391 # FIXME: insert proper C++ library support
10392 ld_shlibs_CXX=no
10393 ;;
10394 *)
10395 # FIXME: insert proper C++ library support
10396 ld_shlibs_CXX=no
10397 ;;
10398esac
10399echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10400echo "${ECHO_T}$ld_shlibs_CXX" >&6
10401test "$ld_shlibs_CXX" = no && can_build_shared=no
10402
10403GCC_CXX="$GXX"
10404LD_CXX="$LD"
10405
10406## CAVEAT EMPTOR:
10407## There is no encapsulation within the following macros, do not change
10408## the running order or otherwise move them around unless you know exactly
10409## what you are doing...
10410
10411cat > conftest.$ac_ext <<EOF
10412class Foo
10413{
10414public:
10415 Foo (void) { a = 0; }
10416private:
10417 int a;
10418};
10419EOF
10420
10421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
10426 # Parse the compiler output and extract the necessary
10427 # objects, libraries and library flags.
10428
10429 # Sentinel used to keep track of whether or not we are before
10430 # the conftest object file.
10431 pre_test_object_deps_done=no
10432
10433 # The `*' in the case matches for architectures that use `case' in
10434 # $output_verbose_cmd can trigger glob expansion during the loop
10435 # eval without this substitution.
10436 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10437
10438 for p in `eval $output_verbose_link_cmd`; do
10439 case $p in
10440
10441 -L* | -R* | -l*)
10442 # Some compilers place space between "-{L,R}" and the path.
10443 # Remove the space.
10444 if test $p = "-L" \
10445 || test $p = "-R"; then
10446 prev=$p
10447 continue
10448 else
10449 prev=
10450 fi
10451
10452 if test "$pre_test_object_deps_done" = no; then
10453 case $p in
10454 -L* | -R*)
10455 # Internal compiler library paths should come after those
10456 # provided the user. The postdeps already come after the
10457 # user supplied libs so there is no need to process them.
10458 if test -z "$compiler_lib_search_path_CXX"; then
10459 compiler_lib_search_path_CXX="${prev}${p}"
10460 else
10461 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10462 fi
10463 ;;
10464 # The "-l" case would never come before the object being
10465 # linked, so don't bother handling this case.
10466 esac
10467 else
10468 if test -z "$postdeps_CXX"; then
10469 postdeps_CXX="${prev}${p}"
10470 else
10471 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10472 fi
10473 fi
10474 ;;
10475
10476 *.$objext)
10477 # This assumes that the test object file only shows up
10478 # once in the compiler output.
10479 if test "$p" = "conftest.$objext"; then
10480 pre_test_object_deps_done=yes
10481 continue
10482 fi
10483
10484 if test "$pre_test_object_deps_done" = no; then
10485 if test -z "$predep_objects_CXX"; then
10486 predep_objects_CXX="$p"
10487 else
10488 predep_objects_CXX="$predep_objects_CXX $p"
10489 fi
10490 else
10491 if test -z "$postdep_objects_CXX"; then
10492 postdep_objects_CXX="$p"
10493 else
10494 postdep_objects_CXX="$postdep_objects_CXX $p"
10495 fi
10496 fi
10497 ;;
10498
10499 *) ;; # Ignore the rest.
10500
10501 esac
10502 done
10503
10504 # Clean up.
10505 rm -f a.out a.exe
10506else
10507 echo "libtool.m4: error: problem compiling CXX test program"
10508fi
10509
10510$rm -f confest.$objext
10511
10512case " $postdeps_CXX " in
10513*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10514esac
10515
10516lt_prog_compiler_wl_CXX=
10517lt_prog_compiler_pic_CXX=
10518lt_prog_compiler_static_CXX=
10519
10520echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10521echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10522
10523 # C++ specific cases for pic, static, wl, etc.
10524 if test "$GXX" = yes; then
10525 lt_prog_compiler_wl_CXX='-Wl,'
10526 lt_prog_compiler_static_CXX='-static'
10527
10528 case $host_os in
10529 aix*)
10530 # All AIX code is PIC.
10531 if test "$host_cpu" = ia64; then
10532 # AIX 5 now supports IA64 processor
10533 lt_prog_compiler_static_CXX='-Bstatic'
10534 fi
10535 ;;
10536 amigaos*)
10537 # FIXME: we need at least 68020 code to build shared libraries, but
10538 # adding the `-m68020' flag to GCC prevents building anything better,
10539 # like `-m68040'.
10540 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10541 ;;
10542 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10543 # PIC is the default for these OSes.
10544 ;;
10545 mingw* | os2* | pw32*)
10546 # This hack is so that the source file can tell whether it is being
10547 # built for inclusion in a dll (and should export symbols for example).
10548 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10549 ;;
10550 darwin* | rhapsody*)
10551 # PIC is the default on this platform
10552 # Common symbols not allowed in MH_DYLIB files
10553 lt_prog_compiler_pic_CXX='-fno-common'
10554 ;;
10555 *djgpp*)
10556 # DJGPP does not support shared libraries at all
10557 lt_prog_compiler_pic_CXX=
10558 ;;
10559 sysv4*MP*)
10560 if test -d /usr/nec; then
10561 lt_prog_compiler_pic_CXX=-Kconform_pic
10562 fi
10563 ;;
10564 hpux*)
10565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10566 # not for PA HP-UX.
10567 case "$host_cpu" in
10568 hppa*64*|ia64*)
10569 ;;
10570 *)
10571 lt_prog_compiler_pic_CXX='-fPIC'
10572 ;;
10573 esac
10574 ;;
10575 *)
10576 lt_prog_compiler_pic_CXX='-fPIC'
10577 ;;
10578 esac
10579 else
10580 case $host_os in
10581 aix4* | aix5*)
10582 # All AIX code is PIC.
10583 if test "$host_cpu" = ia64; then
10584 # AIX 5 now supports IA64 processor
10585 lt_prog_compiler_static_CXX='-Bstatic'
10586 else
10587 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10588 fi
10589 ;;
10590 chorus*)
10591 case $cc_basename in
10592 cxch68)
10593 # Green Hills C++ Compiler
10594 # _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"
10595 ;;
10596 esac
10597 ;;
10598 dgux*)
10599 case $cc_basename in
10600 ec++)
10601 lt_prog_compiler_pic_CXX='-KPIC'
10602 ;;
10603 ghcx)
10604 # Green Hills C++ Compiler
10605 lt_prog_compiler_pic_CXX='-pic'
10606 ;;
10607 *)
10608 ;;
10609 esac
10610 ;;
10611 freebsd*)
10612 # FreeBSD uses GNU C++
10613 ;;
10614 hpux9* | hpux10* | hpux11*)
10615 case $cc_basename in
10616 CC)
10617 lt_prog_compiler_wl_CXX='-Wl,'
10618 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10619 if test "$host_cpu" != ia64; then
10620 lt_prog_compiler_pic_CXX='+Z'
10621 fi
10622 ;;
10623 aCC)
10624 lt_prog_compiler_wl_CXX='-Wl,'
10625 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10626 case "$host_cpu" in
10627 hppa*64*|ia64*)
10628 # +Z the default
10629 ;;
10630 *)
10631 lt_prog_compiler_pic_CXX='+Z'
10632 ;;
10633 esac
10634 ;;
10635 *)
10636 ;;
10637 esac
10638 ;;
10639 irix5* | irix6* | nonstopux*)
10640 case $cc_basename in
10641 CC)
10642 lt_prog_compiler_wl_CXX='-Wl,'
10643 lt_prog_compiler_static_CXX='-non_shared'
10644 # CC pic flag -KPIC is the default.
10645 ;;
10646 *)
10647 ;;
10648 esac
10649 ;;
10650 linux*)
10651 case $cc_basename in
10652 KCC)
10653 # KAI C++ Compiler
10654 lt_prog_compiler_wl_CXX='--backend -Wl,'
10655 lt_prog_compiler_pic_CXX='-fPIC'
10656 ;;
10657 icpc)
10658 # Intel C++
10659 lt_prog_compiler_wl_CXX='-Wl,'
10660 lt_prog_compiler_pic_CXX='-KPIC'
10661 lt_prog_compiler_static_CXX='-static'
10662 ;;
10663 cxx)
10664 # Compaq C++
10665 # Make sure the PIC flag is empty. It appears that all Alpha
10666 # Linux and Compaq Tru64 Unix objects are PIC.
10667 lt_prog_compiler_pic_CXX=
10668 lt_prog_compiler_static_CXX='-non_shared'
10669 ;;
10670 *)
10671 ;;
10672 esac
10673 ;;
10674 lynxos*)
10675 ;;
10676 m88k*)
10677 ;;
10678 mvs*)
10679 case $cc_basename in
10680 cxx)
10681 lt_prog_compiler_pic_CXX='-W c,exportall'
10682 ;;
10683 *)
10684 ;;
10685 esac
10686 ;;
10687 netbsd*)
10688 ;;
10689 osf3* | osf4* | osf5*)
10690 case $cc_basename in
10691 KCC)
10692 lt_prog_compiler_wl_CXX='--backend -Wl,'
10693 ;;
10694 RCC)
10695 # Rational C++ 2.4.1
10696 lt_prog_compiler_pic_CXX='-pic'
10697 ;;
10698 cxx)
10699 # Digital/Compaq C++
10700 lt_prog_compiler_wl_CXX='-Wl,'
10701 # Make sure the PIC flag is empty. It appears that all Alpha
10702 # Linux and Compaq Tru64 Unix objects are PIC.
10703 lt_prog_compiler_pic_CXX=
10704 lt_prog_compiler_static_CXX='-non_shared'
10705 ;;
10706 *)
10707 ;;
10708 esac
10709 ;;
10710 psos*)
10711 ;;
10712 sco*)
10713 case $cc_basename in
10714 CC)
10715 lt_prog_compiler_pic_CXX='-fPIC'
10716 ;;
10717 *)
10718 ;;
10719 esac
10720 ;;
10721 solaris*)
10722 case $cc_basename in
10723 CC)
10724 # Sun C++ 4.2, 5.x and Centerline C++
10725 lt_prog_compiler_pic_CXX='-KPIC'
10726 lt_prog_compiler_static_CXX='-Bstatic'
10727 lt_prog_compiler_wl_CXX='-Qoption ld '
10728 ;;
10729 gcx)
10730 # Green Hills C++ Compiler
10731 lt_prog_compiler_pic_CXX='-PIC'
10732 ;;
10733 *)
10734 ;;
10735 esac
10736 ;;
10737 sunos4*)
10738 case $cc_basename in
10739 CC)
10740 # Sun C++ 4.x
10741 lt_prog_compiler_pic_CXX='-pic'
10742 lt_prog_compiler_static_CXX='-Bstatic'
10743 ;;
10744 lcc)
10745 # Lucid
10746 lt_prog_compiler_pic_CXX='-pic'
10747 ;;
10748 *)
10749 ;;
10750 esac
10751 ;;
10752 tandem*)
10753 case $cc_basename in
10754 NCC)
10755 # NonStop-UX NCC 3.20
10756 lt_prog_compiler_pic_CXX='-KPIC'
10757 ;;
10758 *)
10759 ;;
10760 esac
10761 ;;
10762 unixware*)
10763 ;;
10764 vxworks*)
10765 ;;
10766 *)
10767 lt_prog_compiler_can_build_shared_CXX=no
10768 ;;
10769 esac
10770 fi
10771
10772echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10773echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10774
10775#
10776# Check to make sure the PIC flag actually works.
10777#
10778if test -n "$lt_prog_compiler_pic_CXX"; then
10779 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10780echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10781if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 lt_prog_compiler_pic_works_CXX=no
10785 ac_outfile=conftest.$ac_objext
10786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10788 # Insert the option either (1) after the last *FLAGS variable, or
10789 # (2) before a word containing "conftest.", or (3) at the end.
10790 # Note that $ac_compile itself does not contain backslashes and begins
10791 # with a dollar sign (not a hyphen), so the echo should work correctly.
10792 # The option is referenced via a variable to avoid confusing sed.
10793 lt_compile=`echo "$ac_compile" | $SED \
10794 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10796 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000010797 (eval echo "\"\$as_me:10797: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010798 (eval "$lt_compile" 2>conftest.err)
10799 ac_status=$?
10800 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000010801 echo "$as_me:10801: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010802 if (exit $ac_status) && test -s "$ac_outfile"; then
10803 # The compiler can only warn and ignore the option if not recognized
10804 # So say no if there are warnings
10805 if test ! -s conftest.err; then
10806 lt_prog_compiler_pic_works_CXX=yes
10807 fi
10808 fi
10809 $rm conftest*
10810
10811fi
10812echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10813echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10814
10815if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10816 case $lt_prog_compiler_pic_CXX in
10817 "" | " "*) ;;
10818 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10819 esac
10820else
10821 lt_prog_compiler_pic_CXX=
10822 lt_prog_compiler_can_build_shared_CXX=no
10823fi
10824
10825fi
10826case "$host_os" in
10827 # For platforms which do not support PIC, -DPIC is meaningless:
10828 *djgpp*)
10829 lt_prog_compiler_pic_CXX=
10830 ;;
10831 *)
10832 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10833 ;;
10834esac
10835
10836echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10837echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10838if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 lt_cv_prog_compiler_c_o_CXX=no
10842 $rm -r conftest 2>/dev/null
10843 mkdir conftest
10844 cd conftest
10845 mkdir out
10846 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10849 # that will create temporary files in the current directory regardless of
10850 # the output directory. Thus, making CWD read-only will cause this test
10851 # to fail, enabling locking or at least warning the user not to do parallel
10852 # builds.
10853 chmod -w .
10854
10855 lt_compiler_flag="-o out/conftest2.$ac_objext"
10856 # Insert the option either (1) after the last *FLAGS variable, or
10857 # (2) before a word containing "conftest.", or (3) at the end.
10858 # Note that $ac_compile itself does not contain backslashes and begins
10859 # with a dollar sign (not a hyphen), so the echo should work correctly.
10860 lt_compile=`echo "$ac_compile" | $SED \
10861 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10863 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000010864 (eval echo "\"\$as_me:10864: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010865 (eval "$lt_compile" 2>out/conftest.err)
10866 ac_status=$?
10867 cat out/conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000010868 echo "$as_me:10868: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10870 then
10871 # The compiler can only warn and ignore the option if not recognized
10872 # So say no if there are warnings
10873 if test ! -s out/conftest.err; then
10874 lt_cv_prog_compiler_c_o_CXX=yes
10875 fi
10876 fi
10877 chmod u+w .
10878 $rm conftest* out/*
10879 rmdir out
10880 cd ..
10881 rmdir conftest
10882 $rm conftest*
10883
10884fi
10885echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10886echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10887
10888
10889hard_links="nottested"
10890if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10891 # do not overwrite the value of need_locks provided by the user
10892 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10893echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10894 hard_links=yes
10895 $rm conftest*
10896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10897 touch conftest.a
10898 ln conftest.a conftest.b 2>&5 || hard_links=no
10899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10900 echo "$as_me:$LINENO: result: $hard_links" >&5
10901echo "${ECHO_T}$hard_links" >&6
10902 if test "$hard_links" = no; then
10903 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10904echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10905 need_locks=warn
10906 fi
10907else
10908 need_locks=no
10909fi
10910
10911echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10912echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10913
10914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10915 case $host_os in
10916 aix4* | aix5*)
10917 # If we're using GNU nm, then we don't want the "-C" option.
10918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10920 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'
10921 else
10922 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'
10923 fi
10924 ;;
10925 pw32*)
10926 export_symbols_cmds_CXX="$ltdll_cmds"
10927 ;;
10928 cygwin* | mingw*)
10929 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10930 ;;
10931 *)
10932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10933 ;;
10934 esac
10935
10936echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10937echo "${ECHO_T}$ld_shlibs_CXX" >&6
10938test "$ld_shlibs_CXX" = no && can_build_shared=no
10939
10940variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10941if test "$GCC" = yes; then
10942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10943fi
10944
10945#
10946# Do we need to explicitly link libc?
10947#
10948case "x$archive_cmds_need_lc_CXX" in
10949x|xyes)
10950 # Assume -lc should be added
10951 archive_cmds_need_lc_CXX=yes
10952
10953 if test "$enable_shared" = yes && test "$GCC" = yes; then
10954 case $archive_cmds_CXX in
10955 *'~'*)
10956 # FIXME: we may have to deal with multi-command sequences.
10957 ;;
10958 '$CC '*)
10959 # Test whether the compiler implicitly links with -lc since on some
10960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10961 # to ld, don't add -lc before -lgcc.
10962 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10964 $rm conftest*
10965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10966
10967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10968 (eval $ac_compile) 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } 2>conftest.err; then
10972 soname=conftest
10973 lib=conftest
10974 libobjs=conftest.$ac_objext
10975 deplibs=
10976 wl=$lt_prog_compiler_wl_CXX
10977 compiler_flags=-v
10978 linker_flags=-v
10979 verstring=
10980 output_objdir=.
10981 libname=conftest
10982 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10983 allow_undefined_flag_CXX=
10984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10985 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }
10989 then
10990 archive_cmds_need_lc_CXX=no
10991 else
10992 archive_cmds_need_lc_CXX=yes
10993 fi
10994 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10995 else
10996 cat conftest.err 1>&5
10997 fi
10998 $rm conftest*
10999 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11000echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11001 ;;
11002 esac
11003 fi
11004 ;;
11005esac
11006
11007echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11008echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11009hardcode_action_CXX=
11010if test -n "$hardcode_libdir_flag_spec_CXX" || \
11011 test -n "$runpath_var CXX" || \
11012 test "X$hardcode_automatic_CXX"="Xyes" ; then
11013
11014 # We can hardcode non-existant directories.
11015 if test "$hardcode_direct_CXX" != no &&
11016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11017 # have to relink, otherwise we might link with an installed library
11018 # when we should be linking with a yet-to-be-installed one
11019 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11020 test "$hardcode_minus_L_CXX" != no; then
11021 # Linking always hardcodes the temporary library directory.
11022 hardcode_action_CXX=relink
11023 else
11024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11025 hardcode_action_CXX=immediate
11026 fi
11027else
11028 # We cannot hardcode anything, or else we can only hardcode existing
11029 # directories.
11030 hardcode_action_CXX=unsupported
11031fi
11032echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11033echo "${ECHO_T}$hardcode_action_CXX" >&6
11034
11035if test "$hardcode_action_CXX" = relink; then
11036 # Fast installation is not supported
11037 enable_fast_install=no
11038elif test "$shlibpath_overrides_runpath" = yes ||
11039 test "$enable_shared" = no; then
11040 # Fast installation is not necessary
11041 enable_fast_install=needless
11042fi
11043
11044striplib=
11045old_striplib=
11046echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11047echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11048if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11049 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11050 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11051 echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
11053else
11054# FIXME - insert some real tests, host_os isn't really good enough
11055 case $host_os in
11056 darwin*)
11057 if test -n "$STRIP" ; then
11058 striplib="$STRIP -x"
11059 echo "$as_me:$LINENO: result: yes" >&5
11060echo "${ECHO_T}yes" >&6
11061 else
11062 echo "$as_me:$LINENO: result: no" >&5
11063echo "${ECHO_T}no" >&6
11064fi
11065 ;;
11066 *)
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
11069 ;;
11070 esac
11071fi
11072
11073echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11075library_names_spec=
11076libname_spec='lib$name'
11077soname_spec=
11078shrext=".so"
11079postinstall_cmds=
11080postuninstall_cmds=
11081finish_cmds=
11082finish_eval=
11083shlibpath_var=
11084shlibpath_overrides_runpath=unknown
11085version_type=none
11086dynamic_linker="$host_os ld.so"
11087sys_lib_dlsearch_path_spec="/lib /usr/lib"
11088if test "$GCC" = yes; then
11089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11091 # if the path contains ";" then we assume it to be the separator
11092 # otherwise default to the standard path separator (i.e. ":") - it is
11093 # assumed that no part of a normal pathname contains ";" but that should
11094 # okay in the real world where ";" in dirpaths is itself problematic.
11095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11096 else
11097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11098 fi
11099else
11100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11101fi
11102need_lib_prefix=unknown
11103hardcode_into_libs=no
11104
11105# when you set need_version to no, make sure it does not cause -set_version
11106# flags to be left without arguments
11107need_version=unknown
11108
11109case $host_os in
11110aix3*)
11111 version_type=linux
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11113 shlibpath_var=LIBPATH
11114
11115 # AIX 3 has no versioning support, so we append a major version to the name.
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 ;;
11118
11119aix4* | aix5*)
11120 version_type=linux
11121 need_lib_prefix=no
11122 need_version=no
11123 hardcode_into_libs=yes
11124 if test "$host_cpu" = ia64; then
11125 # AIX 5 supports IA64
11126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 else
11129 # With GCC up to 2.95.x, collect2 would create an import file
11130 # for dependence libraries. The import file would start with
11131 # the line `#! .'. This would cause the generated library to
11132 # depend on `.', always an invalid library. This was fixed in
11133 # development snapshots of GCC prior to 3.0.
11134 case $host_os in
11135 aix4 | aix4.[01] | aix4.[01].*)
11136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11137 echo ' yes '
11138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11139 :
11140 else
11141 can_build_shared=no
11142 fi
11143 ;;
11144 esac
11145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11146 # soname into executable. Probably we can add versioning support to
11147 # collect2, so additional links can be useful in future.
11148 if test "$aix_use_runtimelinking" = yes; then
11149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11150 # instead of lib<name>.a to let people know that these are not
11151 # typical AIX shared libraries.
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 else
11154 # We preserve .a as extension for shared libraries through AIX4.2
11155 # and later when we are not doing run time linking.
11156 library_names_spec='${libname}${release}.a $libname.a'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 fi
11159 shlibpath_var=LIBPATH
11160 fi
11161 ;;
11162
11163amigaos*)
11164 library_names_spec='$libname.ixlibrary $libname.a'
11165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11166 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'
11167 ;;
11168
11169beos*)
11170 library_names_spec='${libname}${shared_ext}'
11171 dynamic_linker="$host_os ld.so"
11172 shlibpath_var=LIBRARY_PATH
11173 ;;
11174
11175bsdi4*)
11176 version_type=linux
11177 need_version=no
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11184 # the default ld.so.conf also contains /usr/contrib/lib and
11185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11186 # libtool to hard-code these into programs
11187 ;;
11188
11189cygwin* | mingw* | pw32*)
11190 version_type=windows
11191 shrext=".dll"
11192 need_version=no
11193 need_lib_prefix=no
11194
11195 case $GCC,$host_os in
11196 yes,cygwin* | yes,mingw* | yes,pw32*)
11197 library_names_spec='$libname.dll.a'
11198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11199 postinstall_cmds='base_file=`basename \${file}`~
11200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11201 dldir=$destdir/`dirname \$dlpath`~
11202 test -d \$dldir || mkdir -p \$dldir~
11203 $install_prog $dir/$dlname \$dldir/$dlname'
11204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11205 dlpath=$dir/\$dldll~
11206 $rm \$dlpath'
11207 shlibpath_overrides_runpath=yes
11208
11209 case $host_os in
11210 cygwin*)
11211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11214 ;;
11215 mingw*)
11216 # MinGW DLLs use traditional 'lib' prefix
11217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11220 # It is most probably a Windows format PATH printed by
11221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11222 # path with ; separators, and with drive letters. We can handle the
11223 # drive letters (cygwin fileutils understands them), so leave them,
11224 # especially as we might pass files found there to a mingw objdump,
11225 # which wouldn't understand a cygwinified path. Ahh.
11226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11227 else
11228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11229 fi
11230 ;;
11231 pw32*)
11232 # pw32 DLLs use 'pw' prefix rather than 'lib'
11233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11234 ;;
11235 esac
11236 ;;
11237
11238 *)
11239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11240 ;;
11241 esac
11242 dynamic_linker='Win32 ld.exe'
11243 # FIXME: first we should search . and the directory the executable is in
11244 shlibpath_var=PATH
11245 ;;
11246
11247darwin* | rhapsody*)
11248 dynamic_linker="$host_os dyld"
11249 version_type=darwin
11250 need_lib_prefix=no
11251 need_version=no
11252 # FIXME: Relying on posixy $() will cause problems for
11253 # cross-compilation, but unfortunately the echo tests do not
11254 # yet detect zsh echo's removal of \ escapes.
11255 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11256 soname_spec='${libname}${release}${major}$shared_ext'
11257 shlibpath_overrides_runpath=yes
11258 shlibpath_var=DYLD_LIBRARY_PATH
11259 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11260 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11261 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11262 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"`
11263 fi
11264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11265 ;;
11266
11267dgux*)
11268 version_type=linux
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 ;;
11275
11276freebsd1*)
11277 dynamic_linker=no
11278 ;;
11279
11280freebsd*)
11281 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11282 version_type=freebsd-$objformat
11283 case $version_type in
11284 freebsd-elf*)
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11286 need_version=no
11287 need_lib_prefix=no
11288 ;;
11289 freebsd-*)
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11291 need_version=yes
11292 ;;
11293 esac
11294 shlibpath_var=LD_LIBRARY_PATH
11295 case $host_os in
11296 freebsd2*)
11297 shlibpath_overrides_runpath=yes
11298 ;;
11299 freebsd3.01* | freebsdelf3.01*)
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11302 ;;
11303 *) # from 3.2 on
11304 shlibpath_overrides_runpath=no
11305 hardcode_into_libs=yes
11306 ;;
11307 esac
11308 ;;
11309
11310gnu*)
11311 version_type=linux
11312 need_lib_prefix=no
11313 need_version=no
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 hardcode_into_libs=yes
11318 ;;
11319
11320hpux9* | hpux10* | hpux11*)
11321 # Give a soname corresponding to the major version so that dld.sl refuses to
11322 # link against other versions.
11323 version_type=sunos
11324 need_lib_prefix=no
11325 need_version=no
11326 case "$host_cpu" in
11327 ia64*)
11328 shrext='.so'
11329 hardcode_into_libs=yes
11330 dynamic_linker="$host_os dld.so"
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 if test "X$HPUX_IA64_MODE" = X32; then
11336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11337 else
11338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11339 fi
11340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11341 ;;
11342 hppa*64*)
11343 shrext='.sl'
11344 hardcode_into_libs=yes
11345 dynamic_linker="$host_os dld.sl"
11346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11352 ;;
11353 *)
11354 shrext='.sl'
11355 dynamic_linker="$host_os dld.sl"
11356 shlibpath_var=SHLIB_PATH
11357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 ;;
11361 esac
11362 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11363 postinstall_cmds='chmod 555 $lib'
11364 ;;
11365
11366irix5* | irix6* | nonstopux*)
11367 case $host_os in
11368 nonstopux*) version_type=nonstopux ;;
11369 *)
11370 if test "$lt_cv_prog_gnu_ld" = yes; then
11371 version_type=linux
11372 else
11373 version_type=irix
11374 fi ;;
11375 esac
11376 need_lib_prefix=no
11377 need_version=no
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11380 case $host_os in
11381 irix5* | nonstopux*)
11382 libsuff= shlibsuff=
11383 ;;
11384 *)
11385 case $LD in # libtool.m4 will add one of these switches to LD
11386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11387 libsuff= shlibsuff= libmagic=32-bit;;
11388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11389 libsuff=32 shlibsuff=N32 libmagic=N32;;
11390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11392 *) libsuff= shlibsuff= libmagic=never-match;;
11393 esac
11394 ;;
11395 esac
11396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11397 shlibpath_overrides_runpath=no
11398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11400 hardcode_into_libs=yes
11401 ;;
11402
11403# No shared lib support for Linux oldld, aout, or coff.
11404linux*oldld* | linux*aout* | linux*coff*)
11405 dynamic_linker=no
11406 ;;
11407
11408# This must be Linux ELF.
11409linux*)
11410 version_type=linux
11411 need_lib_prefix=no
11412 need_version=no
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 shlibpath_overrides_runpath=no
11418 # This implies no fast_install, which is unacceptable.
11419 # Some rework will be needed to allow for fast_install
11420 # before this can be enabled.
11421 hardcode_into_libs=yes
11422
11423 # We used to test for /lib/ld.so.1 and disable shared libraries on
11424 # powerpc, because MkLinux only supported shared libraries with the
11425 # GNU dynamic linker. Since this was broken with cross compilers,
11426 # most powerpc-linux boxes support dynamic linking these days and
11427 # people can always --disable-shared, the test was removed, and we
11428 # assume the GNU/Linux dynamic linker is in use.
11429 dynamic_linker='GNU/Linux ld.so'
11430 ;;
11431
11432netbsd*)
11433 version_type=sunos
11434 need_lib_prefix=no
11435 need_version=no
11436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11439 dynamic_linker='NetBSD (a.out) ld.so'
11440 else
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 dynamic_linker='NetBSD ld.elf_so'
11444 fi
11445 shlibpath_var=LD_LIBRARY_PATH
11446 shlibpath_overrides_runpath=yes
11447 hardcode_into_libs=yes
11448 ;;
11449
11450newsos6)
11451 version_type=linux
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 ;;
11456
11457nto-qnx)
11458 version_type=linux
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11462 soname_spec='${libname}${release}${shared_ext}$major'
11463 shlibpath_var=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath=yes
11465 ;;
11466
11467openbsd*)
11468 version_type=sunos
11469 need_lib_prefix=no
11470 need_version=no
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11475 case $host_os in
11476 openbsd2.[89] | openbsd2.[89].*)
11477 shlibpath_overrides_runpath=no
11478 ;;
11479 *)
11480 shlibpath_overrides_runpath=yes
11481 ;;
11482 esac
11483 else
11484 shlibpath_overrides_runpath=yes
11485 fi
11486 ;;
11487
11488os2*)
11489 libname_spec='$name'
11490 shrext=".dll"
11491 need_lib_prefix=no
11492 library_names_spec='$libname${shared_ext} $libname.a'
11493 dynamic_linker='OS/2 ld.exe'
11494 shlibpath_var=LIBPATH
11495 ;;
11496
11497osf3* | osf4* | osf5*)
11498 version_type=osf
11499 need_lib_prefix=no
11500 need_version=no
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11506 ;;
11507
11508sco3.2v5*)
11509 version_type=osf
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 ;;
11514
11515solaris*)
11516 version_type=linux
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 hardcode_into_libs=yes
11524 # ldd complains unless libraries are executable
11525 postinstall_cmds='chmod +x $lib'
11526 ;;
11527
11528sunos4*)
11529 version_type=sunos
11530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=yes
11534 if test "$with_gnu_ld" = yes; then
11535 need_lib_prefix=no
11536 fi
11537 need_version=yes
11538 ;;
11539
11540sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11541 version_type=linux
11542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 case $host_vendor in
11546 sni)
11547 shlibpath_overrides_runpath=no
11548 need_lib_prefix=no
11549 export_dynamic_flag_spec='${wl}-Blargedynsym'
11550 runpath_var=LD_RUN_PATH
11551 ;;
11552 siemens)
11553 need_lib_prefix=no
11554 ;;
11555 motorola)
11556 need_lib_prefix=no
11557 need_version=no
11558 shlibpath_overrides_runpath=no
11559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11560 ;;
11561 esac
11562 ;;
11563
11564sysv4*MP*)
11565 if test -d /usr/nec ;then
11566 version_type=linux
11567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11568 soname_spec='$libname${shared_ext}.$major'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 fi
11571 ;;
11572
11573uts4*)
11574 version_type=linux
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 ;;
11579
11580*)
11581 dynamic_linker=no
11582 ;;
11583esac
11584echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11585echo "${ECHO_T}$dynamic_linker" >&6
11586test "$dynamic_linker" = no && can_build_shared=no
11587
11588if test "x$enable_dlopen" != xyes; then
11589 enable_dlopen=unknown
11590 enable_dlopen_self=unknown
11591 enable_dlopen_self_static=unknown
11592else
11593 lt_cv_dlopen=no
11594 lt_cv_dlopen_libs=
11595
11596 case $host_os in
11597 beos*)
11598 lt_cv_dlopen="load_add_on"
11599 lt_cv_dlopen_libs=
11600 lt_cv_dlopen_self=yes
11601 ;;
11602
11603 mingw* | pw32*)
11604 lt_cv_dlopen="LoadLibrary"
11605 lt_cv_dlopen_libs=
11606 ;;
11607
11608 cygwin*)
11609 lt_cv_dlopen="dlopen"
11610 lt_cv_dlopen_libs=
11611 ;;
11612
11613 darwin*)
11614 # if libdl is installed we need to link against it
11615 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11616echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11617if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 ac_check_lib_save_LIBS=$LIBS
11621LIBS="-ldl $LIBS"
11622cat >conftest.$ac_ext <<_ACEOF
11623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011629
11630/* Override any gcc2 internal prototype to avoid an error. */
11631#ifdef __cplusplus
11632extern "C"
11633#endif
11634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011637int
11638main ()
11639{
11640dlopen ();
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -s conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_lib_dl_dlopen=yes
11658else
11659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011660sed 's/^/| /' conftest.$ac_ext >&5
11661
John Criswell47fdd832003-07-14 16:52:07 +000011662ac_cv_lib_dl_dlopen=no
11663fi
11664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11665LIBS=$ac_check_lib_save_LIBS
11666fi
11667echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11668echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11669if test $ac_cv_lib_dl_dlopen = yes; then
11670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11671else
11672
11673 lt_cv_dlopen="dyld"
11674 lt_cv_dlopen_libs=
11675 lt_cv_dlopen_self=yes
11676
11677fi
11678
11679 ;;
11680
11681 *)
11682 echo "$as_me:$LINENO: checking for shl_load" >&5
11683echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11684if test "${ac_cv_func_shl_load+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 cat >conftest.$ac_ext <<_ACEOF
11688#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011689/* confdefs.h. */
11690_ACEOF
11691cat confdefs.h >>conftest.$ac_ext
11692cat >>conftest.$ac_ext <<_ACEOF
11693/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011694/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011695 which can conflict with char shl_load (); below.
11696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697 <limits.h> exists even on freestanding compilers. */
11698#ifdef __STDC__
11699# include <limits.h>
11700#else
11701# include <assert.h>
11702#endif
John Criswell47fdd832003-07-14 16:52:07 +000011703/* Override any gcc2 internal prototype to avoid an error. */
11704#ifdef __cplusplus
11705extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011706{
John Criswell47fdd832003-07-14 16:52:07 +000011707#endif
11708/* We use char because int might match the return type of a gcc2
11709 builtin and then its argument prototype would still apply. */
11710char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011711/* The GNU C library defines this for functions which it implements
11712 to always fail with ENOSYS. Some functions are actually named
11713 something starting with __ and the normal name is an alias. */
11714#if defined (__stub_shl_load) || defined (__stub___shl_load)
11715choke me
11716#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011717char (*f) () = shl_load;
11718#endif
11719#ifdef __cplusplus
11720}
John Criswell47fdd832003-07-14 16:52:07 +000011721#endif
11722
John Criswell0c38eaf2003-09-10 15:17:25 +000011723int
11724main ()
11725{
11726return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11733 (eval $ac_link) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -s conftest$ac_exeext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_func_shl_load=yes
11744else
11745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011746sed 's/^/| /' conftest.$ac_ext >&5
11747
John Criswell47fdd832003-07-14 16:52:07 +000011748ac_cv_func_shl_load=no
11749fi
11750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11751fi
11752echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11753echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11754if test $ac_cv_func_shl_load = yes; then
11755 lt_cv_dlopen="shl_load"
11756else
11757 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11758echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11759if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 ac_check_lib_save_LIBS=$LIBS
11763LIBS="-ldld $LIBS"
11764cat >conftest.$ac_ext <<_ACEOF
11765#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011771
11772/* Override any gcc2 internal prototype to avoid an error. */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776/* We use char because int might match the return type of a gcc2
11777 builtin and then its argument prototype would still apply. */
11778char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011779int
11780main ()
11781{
11782shl_load ();
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext conftest$ac_exeext
11788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11789 (eval $ac_link) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 ac_cv_lib_dld_shl_load=yes
11800else
11801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011802sed 's/^/| /' conftest.$ac_ext >&5
11803
John Criswell47fdd832003-07-14 16:52:07 +000011804ac_cv_lib_dld_shl_load=no
11805fi
11806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11807LIBS=$ac_check_lib_save_LIBS
11808fi
11809echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11810echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11811if test $ac_cv_lib_dld_shl_load = yes; then
11812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11813else
11814 echo "$as_me:$LINENO: checking for dlopen" >&5
11815echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11816if test "${ac_cv_func_dlopen+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 cat >conftest.$ac_ext <<_ACEOF
11820#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011826/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011827 which can conflict with char dlopen (); below.
11828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829 <limits.h> exists even on freestanding compilers. */
11830#ifdef __STDC__
11831# include <limits.h>
11832#else
11833# include <assert.h>
11834#endif
John Criswell47fdd832003-07-14 16:52:07 +000011835/* Override any gcc2 internal prototype to avoid an error. */
11836#ifdef __cplusplus
11837extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011838{
John Criswell47fdd832003-07-14 16:52:07 +000011839#endif
11840/* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11842char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011843/* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846#if defined (__stub_dlopen) || defined (__stub___dlopen)
11847choke me
11848#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011849char (*f) () = dlopen;
11850#endif
11851#ifdef __cplusplus
11852}
John Criswell47fdd832003-07-14 16:52:07 +000011853#endif
11854
John Criswell0c38eaf2003-09-10 15:17:25 +000011855int
11856main ()
11857{
11858return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011859 ;
11860 return 0;
11861}
11862_ACEOF
11863rm -f conftest.$ac_objext conftest$ac_exeext
11864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_dlopen=yes
11876else
11877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011878sed 's/^/| /' conftest.$ac_ext >&5
11879
John Criswell47fdd832003-07-14 16:52:07 +000011880ac_cv_func_dlopen=no
11881fi
11882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11883fi
11884echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11885echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11886if test $ac_cv_func_dlopen = yes; then
11887 lt_cv_dlopen="dlopen"
11888else
11889 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11890echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11891if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894 ac_check_lib_save_LIBS=$LIBS
11895LIBS="-ldl $LIBS"
11896cat >conftest.$ac_ext <<_ACEOF
11897#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011903
11904/* Override any gcc2 internal prototype to avoid an error. */
11905#ifdef __cplusplus
11906extern "C"
11907#endif
11908/* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11910char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011911int
11912main ()
11913{
11914dlopen ();
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_lib_dl_dlopen=yes
11932else
11933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011934sed 's/^/| /' conftest.$ac_ext >&5
11935
John Criswell47fdd832003-07-14 16:52:07 +000011936ac_cv_lib_dl_dlopen=no
11937fi
11938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939LIBS=$ac_check_lib_save_LIBS
11940fi
11941echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11942echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11943if test $ac_cv_lib_dl_dlopen = yes; then
11944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11945else
11946 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11947echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11948if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 ac_check_lib_save_LIBS=$LIBS
11952LIBS="-lsvld $LIBS"
11953cat >conftest.$ac_ext <<_ACEOF
11954#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011955/* confdefs.h. */
11956_ACEOF
11957cat confdefs.h >>conftest.$ac_ext
11958cat >>conftest.$ac_ext <<_ACEOF
11959/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011960
11961/* Override any gcc2 internal prototype to avoid an error. */
11962#ifdef __cplusplus
11963extern "C"
11964#endif
11965/* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11967char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011968int
11969main ()
11970{
11971dlopen ();
11972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext conftest$ac_exeext
11977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978 (eval $ac_link) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -s conftest$ac_exeext'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_cv_lib_svld_dlopen=yes
11989else
11990 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011991sed 's/^/| /' conftest.$ac_ext >&5
11992
John Criswell47fdd832003-07-14 16:52:07 +000011993ac_cv_lib_svld_dlopen=no
11994fi
11995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11996LIBS=$ac_check_lib_save_LIBS
11997fi
11998echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11999echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12000if test $ac_cv_lib_svld_dlopen = yes; then
12001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12002else
12003 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12004echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12005if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 ac_check_lib_save_LIBS=$LIBS
12009LIBS="-ldld $LIBS"
12010cat >conftest.$ac_ext <<_ACEOF
12011#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012017
12018/* Override any gcc2 internal prototype to avoid an error. */
12019#ifdef __cplusplus
12020extern "C"
12021#endif
12022/* We use char because int might match the return type of a gcc2
12023 builtin and then its argument prototype would still apply. */
12024char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012025int
12026main ()
12027{
12028dld_link ();
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033rm -f conftest.$ac_objext conftest$ac_exeext
12034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_lib_dld_dld_link=yes
12046else
12047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012048sed 's/^/| /' conftest.$ac_ext >&5
12049
John Criswell47fdd832003-07-14 16:52:07 +000012050ac_cv_lib_dld_dld_link=no
12051fi
12052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12053LIBS=$ac_check_lib_save_LIBS
12054fi
12055echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12056echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12057if test $ac_cv_lib_dld_dld_link = yes; then
12058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12059fi
12060
12061
12062fi
12063
12064
12065fi
12066
12067
12068fi
12069
12070
12071fi
12072
12073
12074fi
12075
12076 ;;
12077 esac
12078
12079 if test "x$lt_cv_dlopen" != xno; then
12080 enable_dlopen=yes
12081 else
12082 enable_dlopen=no
12083 fi
12084
12085 case $lt_cv_dlopen in
12086 dlopen)
12087 save_CPPFLAGS="$CPPFLAGS"
12088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12089
12090 save_LDFLAGS="$LDFLAGS"
12091 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12092
12093 save_LIBS="$LIBS"
12094 LIBS="$lt_cv_dlopen_libs $LIBS"
12095
12096 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12097echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12098if test "${lt_cv_dlopen_self+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 if test "$cross_compiling" = yes; then :
12102 lt_cv_dlopen_self=cross
12103else
12104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12105 lt_status=$lt_dlunknown
12106 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +000012107#line 12107 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012108#include "confdefs.h"
12109
12110#if HAVE_DLFCN_H
12111#include <dlfcn.h>
12112#endif
12113
12114#include <stdio.h>
12115
12116#ifdef RTLD_GLOBAL
12117# define LT_DLGLOBAL RTLD_GLOBAL
12118#else
12119# ifdef DL_GLOBAL
12120# define LT_DLGLOBAL DL_GLOBAL
12121# else
12122# define LT_DLGLOBAL 0
12123# endif
12124#endif
12125
12126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12127 find out it does not work in some platform. */
12128#ifndef LT_DLLAZY_OR_NOW
12129# ifdef RTLD_LAZY
12130# define LT_DLLAZY_OR_NOW RTLD_LAZY
12131# else
12132# ifdef DL_LAZY
12133# define LT_DLLAZY_OR_NOW DL_LAZY
12134# else
12135# ifdef RTLD_NOW
12136# define LT_DLLAZY_OR_NOW RTLD_NOW
12137# else
12138# ifdef DL_NOW
12139# define LT_DLLAZY_OR_NOW DL_NOW
12140# else
12141# define LT_DLLAZY_OR_NOW 0
12142# endif
12143# endif
12144# endif
12145# endif
12146#endif
12147
12148#ifdef __cplusplus
12149extern "C" void exit (int);
12150#endif
12151
12152void fnord() { int i=42;}
12153int main ()
12154{
12155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12156 int status = $lt_dlunknown;
12157
12158 if (self)
12159 {
12160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12161 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12162 /* dlclose (self); */
12163 }
12164
12165 exit (status);
12166}
12167EOF
12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12173 (./conftest; exit; ) 2>/dev/null
12174 lt_status=$?
12175 case x$lt_status in
12176 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12177 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12178 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12179 esac
12180 else :
12181 # compilation failed
12182 lt_cv_dlopen_self=no
12183 fi
12184fi
12185rm -fr conftest*
12186
12187
12188fi
12189echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12190echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12191
12192 if test "x$lt_cv_dlopen_self" = xyes; then
12193 LDFLAGS="$LDFLAGS $link_static_flag"
12194 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12195echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12196if test "${lt_cv_dlopen_self_static+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199 if test "$cross_compiling" = yes; then :
12200 lt_cv_dlopen_self_static=cross
12201else
12202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203 lt_status=$lt_dlunknown
12204 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +000012205#line 12205 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012206#include "confdefs.h"
12207
12208#if HAVE_DLFCN_H
12209#include <dlfcn.h>
12210#endif
12211
12212#include <stdio.h>
12213
12214#ifdef RTLD_GLOBAL
12215# define LT_DLGLOBAL RTLD_GLOBAL
12216#else
12217# ifdef DL_GLOBAL
12218# define LT_DLGLOBAL DL_GLOBAL
12219# else
12220# define LT_DLGLOBAL 0
12221# endif
12222#endif
12223
12224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225 find out it does not work in some platform. */
12226#ifndef LT_DLLAZY_OR_NOW
12227# ifdef RTLD_LAZY
12228# define LT_DLLAZY_OR_NOW RTLD_LAZY
12229# else
12230# ifdef DL_LAZY
12231# define LT_DLLAZY_OR_NOW DL_LAZY
12232# else
12233# ifdef RTLD_NOW
12234# define LT_DLLAZY_OR_NOW RTLD_NOW
12235# else
12236# ifdef DL_NOW
12237# define LT_DLLAZY_OR_NOW DL_NOW
12238# else
12239# define LT_DLLAZY_OR_NOW 0
12240# endif
12241# endif
12242# endif
12243# endif
12244#endif
12245
12246#ifdef __cplusplus
12247extern "C" void exit (int);
12248#endif
12249
12250void fnord() { int i=42;}
12251int main ()
12252{
12253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12254 int status = $lt_dlunknown;
12255
12256 if (self)
12257 {
12258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12260 /* dlclose (self); */
12261 }
12262
12263 exit (status);
12264}
12265EOF
12266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12267 (eval $ac_link) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12271 (./conftest; exit; ) 2>/dev/null
12272 lt_status=$?
12273 case x$lt_status in
12274 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12275 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12276 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12277 esac
12278 else :
12279 # compilation failed
12280 lt_cv_dlopen_self_static=no
12281 fi
12282fi
12283rm -fr conftest*
12284
12285
12286fi
12287echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12288echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12289 fi
12290
12291 CPPFLAGS="$save_CPPFLAGS"
12292 LDFLAGS="$save_LDFLAGS"
12293 LIBS="$save_LIBS"
12294 ;;
12295 esac
12296
12297 case $lt_cv_dlopen_self in
12298 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12299 *) enable_dlopen_self=unknown ;;
12300 esac
12301
12302 case $lt_cv_dlopen_self_static in
12303 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12304 *) enable_dlopen_self_static=unknown ;;
12305 esac
12306fi
12307
12308
12309# The else clause should only fire when bootstrapping the
12310# libtool distribution, otherwise you forgot to ship ltmain.sh
12311# with your package, and you will get complaints that there are
12312# no rules to generate ltmain.sh.
12313if test -f "$ltmain"; then
12314 # See if we are running on zsh, and set the options which allow our commands through
12315 # without removal of \ escapes.
12316 if test -n "${ZSH_VERSION+set}" ; then
12317 setopt NO_GLOB_SUBST
12318 fi
12319 # Now quote all the things that may contain metacharacters while being
12320 # careful not to overquote the AC_SUBSTed values. We take copies of the
12321 # variables and quote the copies for generation of the libtool script.
12322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12325 deplibs_check_method reload_flag reload_cmds need_locks \
12326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12327 lt_cv_sys_global_symbol_to_c_name_address \
12328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12329 old_postinstall_cmds old_postuninstall_cmds \
12330 compiler_CXX \
12331 CC_CXX \
12332 LD_CXX \
12333 lt_prog_compiler_wl_CXX \
12334 lt_prog_compiler_pic_CXX \
12335 lt_prog_compiler_static_CXX \
12336 lt_prog_compiler_no_builtin_flag_CXX \
12337 export_dynamic_flag_spec_CXX \
12338 thread_safe_flag_spec_CXX \
12339 whole_archive_flag_spec_CXX \
12340 enable_shared_with_static_runtimes_CXX \
12341 old_archive_cmds_CXX \
12342 old_archive_from_new_cmds_CXX \
12343 predep_objects_CXX \
12344 postdep_objects_CXX \
12345 predeps_CXX \
12346 postdeps_CXX \
12347 compiler_lib_search_path_CXX \
12348 archive_cmds_CXX \
12349 archive_expsym_cmds_CXX \
12350 postinstall_cmds_CXX \
12351 postuninstall_cmds_CXX \
12352 old_archive_from_expsyms_cmds_CXX \
12353 allow_undefined_flag_CXX \
12354 no_undefined_flag_CXX \
12355 export_symbols_cmds_CXX \
12356 hardcode_libdir_flag_spec_CXX \
12357 hardcode_libdir_flag_spec_ld_CXX \
12358 hardcode_libdir_separator_CXX \
12359 hardcode_automatic_CXX \
12360 module_cmds_CXX \
12361 module_expsym_cmds_CXX \
12362 lt_cv_prog_compiler_c_o_CXX \
12363 exclude_expsyms_CXX \
12364 include_expsyms_CXX; do
12365
12366 case $var in
12367 old_archive_cmds_CXX | \
12368 old_archive_from_new_cmds_CXX | \
12369 archive_cmds_CXX | \
12370 archive_expsym_cmds_CXX | \
12371 module_cmds_CXX | \
12372 module_expsym_cmds_CXX | \
12373 old_archive_from_expsyms_cmds_CXX | \
12374 export_symbols_cmds_CXX | \
12375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12376 postinstall_cmds | postuninstall_cmds | \
12377 old_postinstall_cmds | old_postuninstall_cmds | \
12378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12379 # Double-quote double-evaled strings.
12380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12381 ;;
12382 *)
12383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12384 ;;
12385 esac
12386 done
12387
12388 case $lt_echo in
12389 *'\$0 --fallback-echo"')
12390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12391 ;;
12392 esac
12393
12394cfgfile="$ofile"
12395
12396 cat <<__EOF__ >> "$cfgfile"
12397# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12398
12399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12400
12401# Shell to use when invoking shell scripts.
12402SHELL=$lt_SHELL
12403
12404# Whether or not to build shared libraries.
12405build_libtool_libs=$enable_shared
12406
12407# Whether or not to build static libraries.
12408build_old_libs=$enable_static
12409
12410# Whether or not to add -lc for building shared libraries.
12411build_libtool_need_lc=$archive_cmds_need_lc_CXX
12412
12413# Whether or not to disallow shared libs when runtime libs are static
12414allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12415
12416# Whether or not to optimize for fast installation.
12417fast_install=$enable_fast_install
12418
12419# The host system.
12420host_alias=$host_alias
12421host=$host
12422
12423# An echo program that does not interpret backslashes.
12424echo=$lt_echo
12425
12426# The archiver.
12427AR=$lt_AR
12428AR_FLAGS=$lt_AR_FLAGS
12429
12430# A C compiler.
12431LTCC=$lt_LTCC
12432
12433# A language-specific compiler.
12434CC=$lt_compiler_CXX
12435
12436# Is the compiler the GNU C compiler?
12437with_gcc=$GCC_CXX
12438
12439# An ERE matcher.
12440EGREP=$lt_EGREP
12441
12442# The linker used to build libraries.
12443LD=$lt_LD_CXX
12444
12445# Whether we need hard or soft links.
12446LN_S=$lt_LN_S
12447
12448# A BSD-compatible nm program.
12449NM=$lt_NM
12450
12451# A symbol stripping program
12452STRIP=$STRIP
12453
12454# Used to examine libraries when file_magic_cmd begins "file"
12455MAGIC_CMD=$MAGIC_CMD
12456
12457# Used on cygwin: DLL creation program.
12458DLLTOOL="$DLLTOOL"
12459
12460# Used on cygwin: object dumper.
12461OBJDUMP="$OBJDUMP"
12462
12463# Used on cygwin: assembler.
12464AS="$AS"
12465
12466# The name of the directory that contains temporary libtool files.
12467objdir=$objdir
12468
12469# How to create reloadable object files.
12470reload_flag=$lt_reload_flag
12471reload_cmds=$lt_reload_cmds
12472
12473# How to pass a linker flag through the compiler.
12474wl=$lt_lt_prog_compiler_wl_CXX
12475
12476# Object file suffix (normally "o").
12477objext="$ac_objext"
12478
12479# Old archive suffix (normally "a").
12480libext="$libext"
12481
12482# Shared library suffix (normally ".so").
12483shrext='$shrext'
12484
12485# Executable file suffix (normally "").
12486exeext="$exeext"
12487
12488# Additional compiler flags for building library objects.
12489pic_flag=$lt_lt_prog_compiler_pic_CXX
12490pic_mode=$pic_mode
12491
12492# What is the maximum length of a command?
12493max_cmd_len=$lt_cv_sys_max_cmd_len
12494
12495# Does compiler simultaneously support -c and -o options?
12496compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12497
12498# Must we lock files when doing compilation ?
12499need_locks=$lt_need_locks
12500
12501# Do we need the lib prefix for modules?
12502need_lib_prefix=$need_lib_prefix
12503
12504# Do we need a version for libraries?
12505need_version=$need_version
12506
12507# Whether dlopen is supported.
12508dlopen_support=$enable_dlopen
12509
12510# Whether dlopen of programs is supported.
12511dlopen_self=$enable_dlopen_self
12512
12513# Whether dlopen of statically linked programs is supported.
12514dlopen_self_static=$enable_dlopen_self_static
12515
12516# Compiler flag to prevent dynamic linking.
12517link_static_flag=$lt_lt_prog_compiler_static_CXX
12518
12519# Compiler flag to turn off builtin functions.
12520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12521
12522# Compiler flag to allow reflexive dlopens.
12523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12524
12525# Compiler flag to generate shared objects directly from archives.
12526whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12527
12528# Compiler flag to generate thread-safe objects.
12529thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12530
12531# Library versioning type.
12532version_type=$version_type
12533
12534# Format of library name prefix.
12535libname_spec=$lt_libname_spec
12536
12537# List of archive names. First name is the real one, the rest are links.
12538# The last name is the one that the linker finds with -lNAME.
12539library_names_spec=$lt_library_names_spec
12540
12541# The coded name of the library, if different from the real name.
12542soname_spec=$lt_soname_spec
12543
12544# Commands used to build and install an old-style archive.
12545RANLIB=$lt_RANLIB
12546old_archive_cmds=$lt_old_archive_cmds_CXX
12547old_postinstall_cmds=$lt_old_postinstall_cmds
12548old_postuninstall_cmds=$lt_old_postuninstall_cmds
12549
12550# Create an old-style archive from a shared archive.
12551old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12552
12553# Create a temporary old-style archive to link instead of a shared archive.
12554old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12555
12556# Commands used to build and install a shared archive.
12557archive_cmds=$lt_archive_cmds_CXX
12558archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12559postinstall_cmds=$lt_postinstall_cmds
12560postuninstall_cmds=$lt_postuninstall_cmds
12561
12562# Commands used to build a loadable module (assumed same as above if empty)
12563module_cmds=$lt_module_cmds_CXX
12564module_expsym_cmds=$lt_module_expsym_cmds_CXX
12565
12566# Commands to strip libraries.
12567old_striplib=$lt_old_striplib
12568striplib=$lt_striplib
12569
12570# Dependencies to place before the objects being linked to create a
12571# shared library.
12572predep_objects=$lt_predep_objects_CXX
12573
12574# Dependencies to place after the objects being linked to create a
12575# shared library.
12576postdep_objects=$lt_postdep_objects_CXX
12577
12578# Dependencies to place before the objects being linked to create a
12579# shared library.
12580predeps=$lt_predeps_CXX
12581
12582# Dependencies to place after the objects being linked to create a
12583# shared library.
12584postdeps=$lt_postdeps_CXX
12585
12586# The library search path used internally by the compiler when linking
12587# a shared library.
12588compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12589
12590# Method to check whether dependent libraries are shared objects.
12591deplibs_check_method=$lt_deplibs_check_method
12592
12593# Command to use when deplibs_check_method == file_magic.
12594file_magic_cmd=$lt_file_magic_cmd
12595
12596# Flag that allows shared libraries with undefined symbols to be built.
12597allow_undefined_flag=$lt_allow_undefined_flag_CXX
12598
12599# Flag that forces no undefined symbols.
12600no_undefined_flag=$lt_no_undefined_flag_CXX
12601
12602# Commands used to finish a libtool library installation in a directory.
12603finish_cmds=$lt_finish_cmds
12604
12605# Same as above, but a single script fragment to be evaled but not shown.
12606finish_eval=$lt_finish_eval
12607
12608# Take the output of nm and produce a listing of raw symbols and C names.
12609global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12610
12611# Transform the output of nm in a proper C declaration
12612global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12613
12614# Transform the output of nm in a C name address pair
12615global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12616
12617# This is the shared library runtime path variable.
12618runpath_var=$runpath_var
12619
12620# This is the shared library path variable.
12621shlibpath_var=$shlibpath_var
12622
12623# Is shlibpath searched before the hard-coded library search path?
12624shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12625
12626# How to hardcode a shared library path into an executable.
12627hardcode_action=$hardcode_action_CXX
12628
12629# Whether we should hardcode library paths into libraries.
12630hardcode_into_libs=$hardcode_into_libs
12631
12632# Flag to hardcode \$libdir into a binary during linking.
12633# This must work even if \$libdir does not exist.
12634hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12635
12636# If ld is used when linking, flag to hardcode \$libdir into
12637# a binary during linking. This must work even if \$libdir does
12638# not exist.
12639hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12640
12641# Whether we need a single -rpath flag with a separated argument.
12642hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12643
12644# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12645# resulting binary.
12646hardcode_direct=$hardcode_direct_CXX
12647
12648# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12649# resulting binary.
12650hardcode_minus_L=$hardcode_minus_L_CXX
12651
12652# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12653# the resulting binary.
12654hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12655
12656# Set to yes if building a shared library automatically hardcodes DIR into the library
12657# and all subsequent libraries and executables linked against it.
12658hardcode_automatic=$hardcode_automatic_CXX
12659
12660# Variables whose values should be saved in libtool wrapper scripts and
12661# restored at relink time.
12662variables_saved_for_relink="$variables_saved_for_relink"
12663
12664# Whether libtool must link a program against all its dependency libraries.
12665link_all_deplibs=$link_all_deplibs_CXX
12666
12667# Compile-time system search path for libraries
12668sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12669
12670# Run-time system search path for libraries
12671sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12672
12673# Fix the shell variable \$srcfile for the compiler.
12674fix_srcfile_path="$fix_srcfile_path_CXX"
12675
12676# Set to yes if exported symbols are required.
12677always_export_symbols=$always_export_symbols_CXX
12678
12679# The commands to list exported symbols.
12680export_symbols_cmds=$lt_export_symbols_cmds_CXX
12681
12682# The commands to extract the exported symbol list from a shared archive.
12683extract_expsyms_cmds=$lt_extract_expsyms_cmds
12684
12685# Symbols that should not be listed in the preloaded symbols.
12686exclude_expsyms=$lt_exclude_expsyms_CXX
12687
12688# Symbols that must always be exported.
12689include_expsyms=$lt_include_expsyms_CXX
12690
12691# ### END LIBTOOL TAG CONFIG: $tagname
12692
12693__EOF__
12694
12695
12696else
12697 # If there is no Makefile yet, we rely on a make rule to execute
12698 # `config.status --recheck' to rerun these tests and create the
12699 # libtool script then.
12700 test -f Makefile && make "$ltmain"
12701fi
12702
12703
12704ac_ext=c
12705ac_cpp='$CPP $CPPFLAGS'
12706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710CC=$lt_save_CC
12711LDCXX=$LD
12712LD=$lt_save_LD
12713GCC=$lt_save_GCC
12714with_gnu_ldcxx=$with_gnu_ld
12715with_gnu_ld=$lt_save_with_gnu_ld
12716lt_cv_path_LDCXX=$lt_cv_path_LD
12717lt_cv_path_LD=$lt_save_path_LD
12718lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12719lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12720
12721 else
12722 tagname=""
12723 fi
12724 ;;
12725
12726 F77)
12727 if test -n "$F77" && test "X$F77" != "Xno"; then
12728
12729ac_ext=f
12730ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12731ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12732ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12733
12734
12735archive_cmds_need_lc_F77=no
12736allow_undefined_flag_F77=
12737always_export_symbols_F77=no
12738archive_expsym_cmds_F77=
12739export_dynamic_flag_spec_F77=
12740hardcode_direct_F77=no
12741hardcode_libdir_flag_spec_F77=
12742hardcode_libdir_flag_spec_ld_F77=
12743hardcode_libdir_separator_F77=
12744hardcode_minus_L_F77=no
12745hardcode_automatic_F77=no
12746module_cmds_F77=
12747module_expsym_cmds_F77=
12748link_all_deplibs_F77=unknown
12749old_archive_cmds_F77=$old_archive_cmds
12750no_undefined_flag_F77=
12751whole_archive_flag_spec_F77=
12752enable_shared_with_static_runtimes_F77=no
12753
12754# Source file extension for f77 test sources.
12755ac_ext=f
12756
12757# Object file extension for compiled f77 test sources.
12758objext=o
12759objext_F77=$objext
12760
12761# Code to be used in simple compile tests
12762lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12763
12764# Code to be used in simple link tests
12765lt_simple_link_test_code=" program t\n end\n"
12766
12767# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12768
12769# If no C compiler was specified, use CC.
12770LTCC=${LTCC-"$CC"}
12771
12772# Allow CC to be a program name with arguments.
12773compiler=$CC
12774
12775
12776# Allow CC to be a program name with arguments.
12777lt_save_CC="$CC"
12778CC=${F77-"f77"}
12779compiler=$CC
12780compiler_F77=$CC
12781cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12782
12783echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12784echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12785echo "$as_me:$LINENO: result: $can_build_shared" >&5
12786echo "${ECHO_T}$can_build_shared" >&6
12787
12788echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12789echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12790test "$can_build_shared" = "no" && enable_shared=no
12791
12792# On AIX, shared libraries and static libraries use the same namespace, and
12793# are all built from PIC.
12794case "$host_os" in
12795aix3*)
12796 test "$enable_shared" = yes && enable_static=no
12797 if test -n "$RANLIB"; then
12798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12799 postinstall_cmds='$RANLIB $lib'
12800 fi
12801 ;;
12802aix4*)
12803 test "$enable_shared" = yes && enable_static=no
12804 ;;
12805esac
12806echo "$as_me:$LINENO: result: $enable_shared" >&5
12807echo "${ECHO_T}$enable_shared" >&6
12808
12809echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12810echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12811# Make sure either enable_shared or enable_static is yes.
12812test "$enable_shared" = yes || enable_static=yes
12813echo "$as_me:$LINENO: result: $enable_static" >&5
12814echo "${ECHO_T}$enable_static" >&6
12815
12816test "$ld_shlibs_F77" = no && can_build_shared=no
12817
12818GCC_F77="$G77"
12819LD_F77="$LD"
12820
12821lt_prog_compiler_wl_F77=
12822lt_prog_compiler_pic_F77=
12823lt_prog_compiler_static_F77=
12824
12825echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12826echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12827
12828 if test "$GCC" = yes; then
12829 lt_prog_compiler_wl_F77='-Wl,'
12830 lt_prog_compiler_static_F77='-static'
12831
12832 case $host_os in
12833 aix*)
12834 # All AIX code is PIC.
12835 if test "$host_cpu" = ia64; then
12836 # AIX 5 now supports IA64 processor
12837 lt_prog_compiler_static_F77='-Bstatic'
12838 fi
12839 ;;
12840
12841 amigaos*)
12842 # FIXME: we need at least 68020 code to build shared libraries, but
12843 # adding the `-m68020' flag to GCC prevents building anything better,
12844 # like `-m68040'.
12845 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12846 ;;
12847
12848 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12849 # PIC is the default for these OSes.
12850 ;;
12851
12852 mingw* | pw32* | os2*)
12853 # This hack is so that the source file can tell whether it is being
12854 # built for inclusion in a dll (and should export symbols for example).
12855 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12856 ;;
12857
12858 darwin* | rhapsody*)
12859 # PIC is the default on this platform
12860 # Common symbols not allowed in MH_DYLIB files
12861 lt_prog_compiler_pic_F77='-fno-common'
12862 ;;
12863
12864 msdosdjgpp*)
12865 # Just because we use GCC doesn't mean we suddenly get shared libraries
12866 # on systems that don't support them.
12867 lt_prog_compiler_can_build_shared_F77=no
12868 enable_shared=no
12869 ;;
12870
12871 sysv4*MP*)
12872 if test -d /usr/nec; then
12873 lt_prog_compiler_pic_F77=-Kconform_pic
12874 fi
12875 ;;
12876
12877 hpux*)
12878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12879 # not for PA HP-UX.
12880 case "$host_cpu" in
12881 hppa*64*|ia64*)
12882 # +Z the default
12883 ;;
12884 *)
12885 lt_prog_compiler_pic_F77='-fPIC'
12886 ;;
12887 esac
12888 ;;
12889
12890 *)
12891 lt_prog_compiler_pic_F77='-fPIC'
12892 ;;
12893 esac
12894 else
12895 # PORTME Check for flag to pass linker flags through the system compiler.
12896 case $host_os in
12897 aix*)
12898 lt_prog_compiler_wl_F77='-Wl,'
12899 if test "$host_cpu" = ia64; then
12900 # AIX 5 now supports IA64 processor
12901 lt_prog_compiler_static_F77='-Bstatic'
12902 else
12903 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12904 fi
12905 ;;
12906
12907 mingw* | pw32* | os2*)
12908 # This hack is so that the source file can tell whether it is being
12909 # built for inclusion in a dll (and should export symbols for example).
12910 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12911 ;;
12912
12913 hpux9* | hpux10* | hpux11*)
12914 lt_prog_compiler_wl_F77='-Wl,'
12915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12916 # not for PA HP-UX.
12917 case "$host_cpu" in
12918 hppa*64*|ia64*)
12919 # +Z the default
12920 ;;
12921 *)
12922 lt_prog_compiler_pic_F77='+Z'
12923 ;;
12924 esac
12925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12926 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12927 ;;
12928
12929 irix5* | irix6* | nonstopux*)
12930 lt_prog_compiler_wl_F77='-Wl,'
12931 # PIC (with -KPIC) is the default.
12932 lt_prog_compiler_static_F77='-non_shared'
12933 ;;
12934
12935 newsos6)
12936 lt_prog_compiler_pic_F77='-KPIC'
12937 lt_prog_compiler_static_F77='-Bstatic'
12938 ;;
12939
12940 linux*)
12941 case $CC in
12942 icc|ecc)
12943 lt_prog_compiler_wl_F77='-Wl,'
12944 lt_prog_compiler_pic_F77='-KPIC'
12945 lt_prog_compiler_static_F77='-static'
12946 ;;
12947 ccc)
12948 lt_prog_compiler_wl_F77='-Wl,'
12949 # All Alpha code is PIC.
12950 lt_prog_compiler_static_F77='-non_shared'
12951 ;;
12952 esac
12953 ;;
12954
12955 osf3* | osf4* | osf5*)
12956 lt_prog_compiler_wl_F77='-Wl,'
12957 # All OSF/1 code is PIC.
12958 lt_prog_compiler_static_F77='-non_shared'
12959 ;;
12960
12961 sco3.2v5*)
12962 lt_prog_compiler_pic_F77='-Kpic'
12963 lt_prog_compiler_static_F77='-dn'
12964 ;;
12965
12966 solaris*)
12967 lt_prog_compiler_wl_F77='-Wl,'
12968 lt_prog_compiler_pic_F77='-KPIC'
12969 lt_prog_compiler_static_F77='-Bstatic'
12970 ;;
12971
12972 sunos4*)
12973 lt_prog_compiler_wl_F77='-Qoption ld '
12974 lt_prog_compiler_pic_F77='-PIC'
12975 lt_prog_compiler_static_F77='-Bstatic'
12976 ;;
12977
12978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 lt_prog_compiler_pic_F77='-KPIC'
12981 lt_prog_compiler_static_F77='-Bstatic'
12982 ;;
12983
12984 sysv4*MP*)
12985 if test -d /usr/nec ;then
12986 lt_prog_compiler_pic_F77='-Kconform_pic'
12987 lt_prog_compiler_static_F77='-Bstatic'
12988 fi
12989 ;;
12990
12991 uts4*)
12992 lt_prog_compiler_pic_F77='-pic'
12993 lt_prog_compiler_static_F77='-Bstatic'
12994 ;;
12995
12996 *)
12997 lt_prog_compiler_can_build_shared_F77=no
12998 ;;
12999 esac
13000 fi
13001
13002echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13003echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13004
13005#
13006# Check to make sure the PIC flag actually works.
13007#
13008if test -n "$lt_prog_compiler_pic_F77"; then
13009 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13010echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13011if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013else
13014 lt_prog_compiler_pic_works_F77=no
13015 ac_outfile=conftest.$ac_objext
13016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13017 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13018 # Insert the option either (1) after the last *FLAGS variable, or
13019 # (2) before a word containing "conftest.", or (3) at the end.
13020 # Note that $ac_compile itself does not contain backslashes and begins
13021 # with a dollar sign (not a hyphen), so the echo should work correctly.
13022 # The option is referenced via a variable to avoid confusing sed.
13023 lt_compile=`echo "$ac_compile" | $SED \
13024 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13026 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000013027 (eval echo "\"\$as_me:13027: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013028 (eval "$lt_compile" 2>conftest.err)
13029 ac_status=$?
13030 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000013031 echo "$as_me:13031: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013032 if (exit $ac_status) && test -s "$ac_outfile"; then
13033 # The compiler can only warn and ignore the option if not recognized
13034 # So say no if there are warnings
13035 if test ! -s conftest.err; then
13036 lt_prog_compiler_pic_works_F77=yes
13037 fi
13038 fi
13039 $rm conftest*
13040
13041fi
13042echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13043echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13044
13045if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13046 case $lt_prog_compiler_pic_F77 in
13047 "" | " "*) ;;
13048 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13049 esac
13050else
13051 lt_prog_compiler_pic_F77=
13052 lt_prog_compiler_can_build_shared_F77=no
13053fi
13054
13055fi
13056case "$host_os" in
13057 # For platforms which do not support PIC, -DPIC is meaningless:
13058 *djgpp*)
13059 lt_prog_compiler_pic_F77=
13060 ;;
13061 *)
13062 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13063 ;;
13064esac
13065
13066echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13067echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13068if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
13071 lt_cv_prog_compiler_c_o_F77=no
13072 $rm -r conftest 2>/dev/null
13073 mkdir conftest
13074 cd conftest
13075 mkdir out
13076 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13077
13078 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13079 # that will create temporary files in the current directory regardless of
13080 # the output directory. Thus, making CWD read-only will cause this test
13081 # to fail, enabling locking or at least warning the user not to do parallel
13082 # builds.
13083 chmod -w .
13084
13085 lt_compiler_flag="-o out/conftest2.$ac_objext"
13086 # Insert the option either (1) after the last *FLAGS variable, or
13087 # (2) before a word containing "conftest.", or (3) at the end.
13088 # Note that $ac_compile itself does not contain backslashes and begins
13089 # with a dollar sign (not a hyphen), so the echo should work correctly.
13090 lt_compile=`echo "$ac_compile" | $SED \
13091 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000013094 (eval echo "\"\$as_me:13094: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013095 (eval "$lt_compile" 2>out/conftest.err)
13096 ac_status=$?
13097 cat out/conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000013098 echo "$as_me:13098: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13100 then
13101 # The compiler can only warn and ignore the option if not recognized
13102 # So say no if there are warnings
13103 if test ! -s out/conftest.err; then
13104 lt_cv_prog_compiler_c_o_F77=yes
13105 fi
13106 fi
13107 chmod u+w .
13108 $rm conftest* out/*
13109 rmdir out
13110 cd ..
13111 rmdir conftest
13112 $rm conftest*
13113
13114fi
13115echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13116echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13117
13118
13119hard_links="nottested"
13120if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13121 # do not overwrite the value of need_locks provided by the user
13122 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13123echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13124 hard_links=yes
13125 $rm conftest*
13126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127 touch conftest.a
13128 ln conftest.a conftest.b 2>&5 || hard_links=no
13129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13130 echo "$as_me:$LINENO: result: $hard_links" >&5
13131echo "${ECHO_T}$hard_links" >&6
13132 if test "$hard_links" = no; then
13133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13134echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13135 need_locks=warn
13136 fi
13137else
13138 need_locks=no
13139fi
13140
13141echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13142echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13143
13144 runpath_var=
13145 allow_undefined_flag_F77=
13146 enable_shared_with_static_runtimes_F77=no
13147 archive_cmds_F77=
13148 archive_expsym_cmds_F77=
13149 old_archive_From_new_cmds_F77=
13150 old_archive_from_expsyms_cmds_F77=
13151 export_dynamic_flag_spec_F77=
13152 whole_archive_flag_spec_F77=
13153 thread_safe_flag_spec_F77=
13154 hardcode_libdir_flag_spec_F77=
13155 hardcode_libdir_flag_spec_ld_F77=
13156 hardcode_libdir_separator_F77=
13157 hardcode_direct_F77=no
13158 hardcode_minus_L_F77=no
13159 hardcode_shlibpath_var_F77=unsupported
13160 link_all_deplibs_F77=unknown
13161 hardcode_automatic_F77=no
13162 module_cmds_F77=
13163 module_expsym_cmds_F77=
13164 always_export_symbols_F77=no
13165 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13166 # include_expsyms should be a list of space-separated symbols to be *always*
13167 # included in the symbol list
13168 include_expsyms_F77=
13169 # exclude_expsyms can be an extended regexp of symbols to exclude
13170 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13172 # as well as any symbol that contains `d'.
13173 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13175 # platforms (ab)use it in PIC code, but their linkers get confused if
13176 # the symbol is explicitly referenced. Since portable code cannot
13177 # rely on this symbol name, it's probably fine to never include it in
13178 # preloaded symbol tables.
13179 extract_expsyms_cmds=
13180
13181 case $host_os in
13182 cygwin* | mingw* | pw32*)
13183 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13184 # When not using gcc, we currently assume that we are using
13185 # Microsoft Visual C++.
13186 if test "$GCC" != yes; then
13187 with_gnu_ld=no
13188 fi
13189 ;;
13190 openbsd*)
13191 with_gnu_ld=no
13192 ;;
13193 esac
13194
13195 ld_shlibs_F77=yes
13196 if test "$with_gnu_ld" = yes; then
13197 # If archive_cmds runs LD, not CC, wlarc should be empty
13198 wlarc='${wl}'
13199
13200 # See if GNU ld supports shared libraries.
13201 case $host_os in
13202 aix3* | aix4* | aix5*)
13203 # On AIX/PPC, the GNU linker is very broken
13204 if test "$host_cpu" != ia64; then
13205 ld_shlibs_F77=no
13206 cat <<EOF 1>&2
13207
13208*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13209*** to be unable to reliably create shared libraries on AIX.
13210*** Therefore, libtool is disabling shared libraries support. If you
13211*** really care for shared libraries, you may want to modify your PATH
13212*** so that a non-GNU linker is found, and then restart.
13213
13214EOF
13215 fi
13216 ;;
13217
13218 amigaos*)
13219 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)'
13220 hardcode_libdir_flag_spec_F77='-L$libdir'
13221 hardcode_minus_L_F77=yes
13222
13223 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13224 # that the semantics of dynamic libraries on AmigaOS, at least up
13225 # to version 4, is to share data among multiple programs linked
13226 # with the same dynamic library. Since this doesn't match the
13227 # behavior of shared libraries on other platforms, we can't use
13228 # them.
13229 ld_shlibs_F77=no
13230 ;;
13231
13232 beos*)
13233 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13234 allow_undefined_flag_F77=unsupported
13235 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13236 # support --undefined. This deserves some investigation. FIXME
13237 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 else
13239 ld_shlibs_F77=no
13240 fi
13241 ;;
13242
13243 cygwin* | mingw* | pw32*)
13244 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13245 # as there is no search path for DLLs.
13246 hardcode_libdir_flag_spec_F77='-L$libdir'
13247 allow_undefined_flag_F77=unsupported
13248 always_export_symbols_F77=no
13249 enable_shared_with_static_runtimes_F77=yes
13250 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13251
13252 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13253 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13254 # If the export-symbols file already is a .def file (1st line
13255 # is EXPORTS), use it as is; otherwise, prepend...
13256 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257 cp $export_symbols $output_objdir/$soname.def;
13258 else
13259 echo EXPORTS > $output_objdir/$soname.def;
13260 cat $export_symbols >> $output_objdir/$soname.def;
13261 fi~
13262 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13263 else
13264 ld_shlibs=no
13265 fi
13266 ;;
13267
13268 netbsd*)
13269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13270 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13271 wlarc=
13272 else
13273 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13275 fi
13276 ;;
13277
13278 solaris* | sysv5*)
13279 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13280 ld_shlibs_F77=no
13281 cat <<EOF 1>&2
13282
13283*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13284*** create shared libraries on Solaris systems. Therefore, libtool
13285*** is disabling shared libraries support. We urge you to upgrade GNU
13286*** binutils to release 2.9.1 or newer. Another option is to modify
13287*** your PATH or compiler configuration so that the native linker is
13288*** used, and then restart.
13289
13290EOF
13291 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294 else
13295 ld_shlibs_F77=no
13296 fi
13297 ;;
13298
13299 sunos4*)
13300 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13301 wlarc=
13302 hardcode_direct_F77=yes
13303 hardcode_shlibpath_var_F77=no
13304 ;;
13305
13306 *)
13307 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13310 else
13311 ld_shlibs_F77=no
13312 fi
13313 ;;
13314 esac
13315
13316 if test "$ld_shlibs_F77" = yes; then
13317 runpath_var=LD_RUN_PATH
13318 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13319 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13320 # ancient GNU ld didn't support --whole-archive et. al.
13321 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13322 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13323 else
13324 whole_archive_flag_spec_F77=
13325 fi
13326 fi
13327 else
13328 # PORTME fill in a description of your system's linker (not GNU ld)
13329 case $host_os in
13330 aix3*)
13331 allow_undefined_flag_F77=unsupported
13332 always_export_symbols_F77=yes
13333 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'
13334 # Note: this linker hardcodes the directories in LIBPATH if there
13335 # are no directories specified by -L.
13336 hardcode_minus_L_F77=yes
13337 if test "$GCC" = yes && test -z "$link_static_flag"; then
13338 # Neither direct hardcoding nor static linking is supported with a
13339 # broken collect2.
13340 hardcode_direct_F77=unsupported
13341 fi
13342 ;;
13343
13344 aix4* | aix5*)
13345 if test "$host_cpu" = ia64; then
13346 # On IA64, the linker does run time linking by default, so we don't
13347 # have to do anything special.
13348 aix_use_runtimelinking=no
13349 exp_sym_flag='-Bexport'
13350 no_entry_flag=""
13351 else
13352 # If we're using GNU nm, then we don't want the "-C" option.
13353 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13354 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13355 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'
13356 else
13357 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'
13358 fi
13359 aix_use_runtimelinking=no
13360
13361 # Test if we are trying to use run time linking or normal
13362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13363 # need to do runtime linking.
13364 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13365 for ld_flag in $LDFLAGS; do
13366 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13367 aix_use_runtimelinking=yes
13368 break
13369 fi
13370 done
13371 esac
13372
13373 exp_sym_flag='-bexport'
13374 no_entry_flag='-bnoentry'
13375 fi
13376
13377 # When large executables or shared objects are built, AIX ld can
13378 # have problems creating the table of contents. If linking a library
13379 # or program results in "error TOC overflow" add -mminimal-toc to
13380 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13381 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13382
13383 archive_cmds_F77=''
13384 hardcode_direct_F77=yes
13385 hardcode_libdir_separator_F77=':'
13386 link_all_deplibs_F77=yes
13387
13388 if test "$GCC" = yes; then
13389 case $host_os in aix4.012|aix4.012.*)
13390 # We only want to do this on AIX 4.2 and lower, the check
13391 # below for broken collect2 doesn't work under 4.3+
13392 collect2name=`${CC} -print-prog-name=collect2`
13393 if test -f "$collect2name" && \
13394 strings "$collect2name" | grep resolve_lib_name >/dev/null
13395 then
13396 # We have reworked collect2
13397 hardcode_direct_F77=yes
13398 else
13399 # We have old collect2
13400 hardcode_direct_F77=unsupported
13401 # It fails to find uninstalled libraries when the uninstalled
13402 # path is not listed in the libpath. Setting hardcode_minus_L
13403 # to unsupported forces relinking
13404 hardcode_minus_L_F77=yes
13405 hardcode_libdir_flag_spec_F77='-L$libdir'
13406 hardcode_libdir_separator_F77=
13407 fi
13408 esac
13409 shared_flag='-shared'
13410 else
13411 # not using gcc
13412 if test "$host_cpu" = ia64; then
13413 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13414 # chokes on -Wl,-G. The following line is correct:
13415 shared_flag='-G'
13416 else
13417 if test "$aix_use_runtimelinking" = yes; then
13418 shared_flag='${wl}-G'
13419 else
13420 shared_flag='${wl}-bM:SRE'
13421 fi
13422 fi
13423 fi
13424
13425 # It seems that -bexpall does not export symbols beginning with
13426 # underscore (_), so it is better to generate a list of symbols to export.
13427 always_export_symbols_F77=yes
13428 if test "$aix_use_runtimelinking" = yes; then
13429 # Warning - without using the other runtime loading flags (-brtl),
13430 # -berok will link without error, but may produce a broken library.
13431 allow_undefined_flag_F77='-berok'
13432 # Determine the default libpath from the value encoded in an empty executable.
13433 cat >conftest.$ac_ext <<_ACEOF
13434 program main
13435
13436 end
13437_ACEOF
13438rm -f conftest.$ac_objext conftest$ac_exeext
13439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440 (eval $ac_link) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); } &&
13444 { ac_try='test -s conftest$ac_exeext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450
13451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13452}'`
13453# Check for a 64-bit object if we didn't find anything.
13454if 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; }
13455}'`; fi
13456else
13457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013458sed 's/^/| /' conftest.$ac_ext >&5
13459
John Criswell47fdd832003-07-14 16:52:07 +000013460fi
13461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13462if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13463
13464 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13465 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"
13466 else
13467 if test "$host_cpu" = ia64; then
13468 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13469 allow_undefined_flag_F77="-z nodefs"
13470 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"
13471 else
13472 # Determine the default libpath from the value encoded in an empty executable.
13473 cat >conftest.$ac_ext <<_ACEOF
13474 program main
13475
13476 end
13477_ACEOF
13478rm -f conftest.$ac_objext conftest$ac_exeext
13479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13480 (eval $ac_link) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -s conftest$ac_exeext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490
13491aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13492}'`
13493# Check for a 64-bit object if we didn't find anything.
13494if 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; }
13495}'`; fi
13496else
13497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013498sed 's/^/| /' conftest.$ac_ext >&5
13499
John Criswell47fdd832003-07-14 16:52:07 +000013500fi
13501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13503
13504 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13505 # Warning - without using the other run time loading flags,
13506 # -berok will link without error, but may produce a broken library.
13507 no_undefined_flag_F77=' ${wl}-bernotok'
13508 allow_undefined_flag_F77=' ${wl}-berok'
13509 # -bexpall does not export symbols beginning with underscore (_)
13510 always_export_symbols_F77=yes
13511 # Exported symbols can be pulled into shared objects from archives
13512 whole_archive_flag_spec_F77=' '
13513 archive_cmds_need_lc_F77=yes
13514 # This is similar to how AIX traditionally builds it's shared libraries.
13515 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'
13516 fi
13517 fi
13518 ;;
13519
13520 amigaos*)
13521 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)'
13522 hardcode_libdir_flag_spec_F77='-L$libdir'
13523 hardcode_minus_L_F77=yes
13524 # see comment about different semantics on the GNU ld section
13525 ld_shlibs_F77=no
13526 ;;
13527
13528 bsdi4*)
13529 export_dynamic_flag_spec_F77=-rdynamic
13530 ;;
13531
13532 cygwin* | mingw* | pw32*)
13533 # When not using gcc, we currently assume that we are using
13534 # Microsoft Visual C++.
13535 # hardcode_libdir_flag_spec is actually meaningless, as there is
13536 # no search path for DLLs.
13537 hardcode_libdir_flag_spec_F77=' '
13538 allow_undefined_flag_F77=unsupported
13539 # Tell ltmain to make .lib files, not .a files.
13540 libext=lib
13541 # Tell ltmain to make .dll files, not .so files.
13542 shrext=".dll"
13543 # FIXME: Setting linknames here is a bad hack.
13544 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13545 # The linker will automatically build a .lib file if we build a DLL.
13546 old_archive_From_new_cmds_F77='true'
13547 # FIXME: Should let the user specify the lib program.
13548 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13549 fix_srcfile_path='`cygpath -w "$srcfile"`'
13550 enable_shared_with_static_runtimes_F77=yes
13551 ;;
13552
13553 darwin* | rhapsody*)
13554 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13555 archive_cmds_need_lc_F77=no
13556 case "$host_os" in
13557 rhapsody* | darwin1.[012])
13558 allow_undefined_flag_F77='-undefined suppress'
13559 ;;
13560 *) # Darwin 1.3 on
13561 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13562 ;;
13563 esac
13564 # FIXME: Relying on posixy $() will cause problems for
13565 # cross-compilation, but unfortunately the echo tests do not
13566 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13567 # `"' quotes if we put them in here... so don't!
13568 lt_int_apple_cc_single_mod=no
13569 output_verbose_link_cmd='echo'
13570 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13571 lt_int_apple_cc_single_mod=yes
13572 fi
13573 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13574 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13575 else
13576 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'
13577 fi
13578 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13580 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13581 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}'
13582 else
13583 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}'
13584 fi
13585 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}'
13586 hardcode_direct_F77=no
13587 hardcode_automatic_F77=yes
13588 hardcode_shlibpath_var_F77=unsupported
13589 whole_archive_flag_spec_F77='-all_load $convenience'
13590 link_all_deplibs_F77=yes
13591 fi
13592 ;;
13593
13594 dgux*)
13595 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13596 hardcode_libdir_flag_spec_F77='-L$libdir'
13597 hardcode_shlibpath_var_F77=no
13598 ;;
13599
13600 freebsd1*)
13601 ld_shlibs_F77=no
13602 ;;
13603
13604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13605 # support. Future versions do this automatically, but an explicit c++rt0.o
13606 # does not break anything, and helps significantly (at the cost of a little
13607 # extra space).
13608 freebsd2.2*)
13609 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13610 hardcode_libdir_flag_spec_F77='-R$libdir'
13611 hardcode_direct_F77=yes
13612 hardcode_shlibpath_var_F77=no
13613 ;;
13614
13615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13616 freebsd2*)
13617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_direct_F77=yes
13619 hardcode_minus_L_F77=yes
13620 hardcode_shlibpath_var_F77=no
13621 ;;
13622
13623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13624 freebsd*)
13625 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13626 hardcode_libdir_flag_spec_F77='-R$libdir'
13627 hardcode_direct_F77=yes
13628 hardcode_shlibpath_var_F77=no
13629 ;;
13630
13631 hpux9*)
13632 if test "$GCC" = yes; then
13633 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'
13634 else
13635 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'
13636 fi
13637 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13638 hardcode_libdir_separator_F77=:
13639 hardcode_direct_F77=yes
13640
13641 # hardcode_minus_L: Not really in the search PATH,
13642 # but as the default location of the library.
13643 hardcode_minus_L_F77=yes
13644 export_dynamic_flag_spec_F77='${wl}-E'
13645 ;;
13646
13647 hpux10* | hpux11*)
13648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13649 case "$host_cpu" in
13650 hppa*64*|ia64*)
13651 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 ;;
13653 *)
13654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13655 ;;
13656 esac
13657 else
13658 case "$host_cpu" in
13659 hppa*64*|ia64*)
13660 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13661 ;;
13662 *)
13663 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13664 ;;
13665 esac
13666 fi
13667 if test "$with_gnu_ld" = no; then
13668 case "$host_cpu" in
13669 hppa*64*)
13670 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13671 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13672 hardcode_libdir_separator_F77=:
13673 hardcode_direct_F77=no
13674 hardcode_shlibpath_var_F77=no
13675 ;;
13676 ia64*)
13677 hardcode_libdir_flag_spec_F77='-L$libdir'
13678 hardcode_direct_F77=no
13679 hardcode_shlibpath_var_F77=no
13680
13681 # hardcode_minus_L: Not really in the search PATH,
13682 # but as the default location of the library.
13683 hardcode_minus_L_F77=yes
13684 ;;
13685 *)
13686 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13687 hardcode_libdir_separator_F77=:
13688 hardcode_direct_F77=yes
13689 export_dynamic_flag_spec_F77='${wl}-E'
13690
13691 # hardcode_minus_L: Not really in the search PATH,
13692 # but as the default location of the library.
13693 hardcode_minus_L_F77=yes
13694 ;;
13695 esac
13696 fi
13697 ;;
13698
13699 irix5* | irix6* | nonstopux*)
13700 if test "$GCC" = yes; then
13701 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'
13702 else
13703 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'
13704 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13705 fi
13706 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13707 hardcode_libdir_separator_F77=:
13708 link_all_deplibs_F77=yes
13709 ;;
13710
13711 netbsd*)
13712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13714 else
13715 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13716 fi
13717 hardcode_libdir_flag_spec_F77='-R$libdir'
13718 hardcode_direct_F77=yes
13719 hardcode_shlibpath_var_F77=no
13720 ;;
13721
13722 newsos6)
13723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13724 hardcode_direct_F77=yes
13725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13726 hardcode_libdir_separator_F77=:
13727 hardcode_shlibpath_var_F77=no
13728 ;;
13729
13730 openbsd*)
13731 hardcode_direct_F77=yes
13732 hardcode_shlibpath_var_F77=no
13733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13734 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13736 export_dynamic_flag_spec_F77='${wl}-E'
13737 else
13738 case $host_os in
13739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_libdir_flag_spec_F77='-R$libdir'
13742 ;;
13743 *)
13744 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13745 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13746 ;;
13747 esac
13748 fi
13749 ;;
13750
13751 os2*)
13752 hardcode_libdir_flag_spec_F77='-L$libdir'
13753 hardcode_minus_L_F77=yes
13754 allow_undefined_flag_F77=unsupported
13755 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'
13756 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13757 ;;
13758
13759 osf3*)
13760 if test "$GCC" = yes; then
13761 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13762 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13763 else
13764 allow_undefined_flag_F77=' -expect_unresolved \*'
13765 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'
13766 fi
13767 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13768 hardcode_libdir_separator_F77=:
13769 ;;
13770
13771 osf4* | osf5*) # as osf3* with the addition of -msym flag
13772 if test "$GCC" = yes; then
13773 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13774 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'
13775 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13776 else
13777 allow_undefined_flag_F77=' -expect_unresolved \*'
13778 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'
13779 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~
13780 $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'
13781
13782 # Both c and cxx compiler support -rpath directly
13783 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13784 fi
13785 hardcode_libdir_separator_F77=:
13786 ;;
13787
13788 sco3.2v5*)
13789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13790 hardcode_shlibpath_var_F77=no
13791 export_dynamic_flag_spec_F77='${wl}-Bexport'
13792 runpath_var=LD_RUN_PATH
13793 hardcode_runpath_var=yes
13794 ;;
13795
13796 solaris*)
13797 no_undefined_flag_F77=' -z text'
13798 if test "$GCC" = yes; then
13799 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13801 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13802 else
13803 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13806 fi
13807 hardcode_libdir_flag_spec_F77='-R$libdir'
13808 hardcode_shlibpath_var_F77=no
13809 case $host_os in
13810 solaris2.[0-5] | solaris2.[0-5].*) ;;
13811 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13812 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13813 esac
13814 link_all_deplibs_F77=yes
13815 ;;
13816
13817 sunos4*)
13818 if test "x$host_vendor" = xsequent; then
13819 # Use $CC to link under sequent, because it throws in some extra .o
13820 # files that make .init and .fini sections work.
13821 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13822 else
13823 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13824 fi
13825 hardcode_libdir_flag_spec_F77='-L$libdir'
13826 hardcode_direct_F77=yes
13827 hardcode_minus_L_F77=yes
13828 hardcode_shlibpath_var_F77=no
13829 ;;
13830
13831 sysv4)
13832 case $host_vendor in
13833 sni)
13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_direct_F77=yes # is this really true???
13836 ;;
13837 siemens)
13838 ## LD is ld it makes a PLAMLIB
13839 ## CC just makes a GrossModule.
13840 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13841 reload_cmds_F77='$CC -r -o $output$reload_objs'
13842 hardcode_direct_F77=no
13843 ;;
13844 motorola)
13845 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13846 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13847 ;;
13848 esac
13849 runpath_var='LD_RUN_PATH'
13850 hardcode_shlibpath_var_F77=no
13851 ;;
13852
13853 sysv4.3*)
13854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_shlibpath_var_F77=no
13856 export_dynamic_flag_spec_F77='-Bexport'
13857 ;;
13858
13859 sysv4*MP*)
13860 if test -d /usr/nec; then
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_shlibpath_var_F77=no
13863 runpath_var=LD_RUN_PATH
13864 hardcode_runpath_var=yes
13865 ld_shlibs_F77=yes
13866 fi
13867 ;;
13868
13869 sysv4.2uw2*)
13870 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13871 hardcode_direct_F77=yes
13872 hardcode_minus_L_F77=no
13873 hardcode_shlibpath_var_F77=no
13874 hardcode_runpath_var=yes
13875 runpath_var=LD_RUN_PATH
13876 ;;
13877
13878 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13879 no_undefined_flag_F77='${wl}-z ${wl}text'
13880 if test "$GCC" = yes; then
13881 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882 else
13883 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13884 fi
13885 runpath_var='LD_RUN_PATH'
13886 hardcode_shlibpath_var_F77=no
13887 ;;
13888
13889 sysv5*)
13890 no_undefined_flag_F77=' -z text'
13891 # $CC -shared without GNU ld will not create a library from C++
13892 # object files and a static libstdc++, better avoid it by now
13893 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13894 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13895 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13896 hardcode_libdir_flag_spec_F77=
13897 hardcode_shlibpath_var_F77=no
13898 runpath_var='LD_RUN_PATH'
13899 ;;
13900
13901 uts4*)
13902 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec_F77='-L$libdir'
13904 hardcode_shlibpath_var_F77=no
13905 ;;
13906
13907 *)
13908 ld_shlibs_F77=no
13909 ;;
13910 esac
13911 fi
13912
13913echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13914echo "${ECHO_T}$ld_shlibs_F77" >&6
13915test "$ld_shlibs_F77" = no && can_build_shared=no
13916
13917variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13918if test "$GCC" = yes; then
13919 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13920fi
13921
13922#
13923# Do we need to explicitly link libc?
13924#
13925case "x$archive_cmds_need_lc_F77" in
13926x|xyes)
13927 # Assume -lc should be added
13928 archive_cmds_need_lc_F77=yes
13929
13930 if test "$enable_shared" = yes && test "$GCC" = yes; then
13931 case $archive_cmds_F77 in
13932 *'~'*)
13933 # FIXME: we may have to deal with multi-command sequences.
13934 ;;
13935 '$CC '*)
13936 # Test whether the compiler implicitly links with -lc since on some
13937 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13938 # to ld, don't add -lc before -lgcc.
13939 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13940echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13941 $rm conftest*
13942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13943
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } 2>conftest.err; then
13949 soname=conftest
13950 lib=conftest
13951 libobjs=conftest.$ac_objext
13952 deplibs=
13953 wl=$lt_prog_compiler_wl_F77
13954 compiler_flags=-v
13955 linker_flags=-v
13956 verstring=
13957 output_objdir=.
13958 libname=conftest
13959 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13960 allow_undefined_flag_F77=
13961 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13962 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }
13966 then
13967 archive_cmds_need_lc_F77=no
13968 else
13969 archive_cmds_need_lc_F77=yes
13970 fi
13971 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13972 else
13973 cat conftest.err 1>&5
13974 fi
13975 $rm conftest*
13976 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13977echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13978 ;;
13979 esac
13980 fi
13981 ;;
13982esac
13983
13984echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13985echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13986hardcode_action_F77=
13987if test -n "$hardcode_libdir_flag_spec_F77" || \
13988 test -n "$runpath_var F77" || \
13989 test "X$hardcode_automatic_F77"="Xyes" ; then
13990
13991 # We can hardcode non-existant directories.
13992 if test "$hardcode_direct_F77" != no &&
13993 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13994 # have to relink, otherwise we might link with an installed library
13995 # when we should be linking with a yet-to-be-installed one
13996 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13997 test "$hardcode_minus_L_F77" != no; then
13998 # Linking always hardcodes the temporary library directory.
13999 hardcode_action_F77=relink
14000 else
14001 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14002 hardcode_action_F77=immediate
14003 fi
14004else
14005 # We cannot hardcode anything, or else we can only hardcode existing
14006 # directories.
14007 hardcode_action_F77=unsupported
14008fi
14009echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14010echo "${ECHO_T}$hardcode_action_F77" >&6
14011
14012if test "$hardcode_action_F77" = relink; then
14013 # Fast installation is not supported
14014 enable_fast_install=no
14015elif test "$shlibpath_overrides_runpath" = yes ||
14016 test "$enable_shared" = no; then
14017 # Fast installation is not necessary
14018 enable_fast_install=needless
14019fi
14020
14021striplib=
14022old_striplib=
14023echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14024echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14025if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14026 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14027 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14028 echo "$as_me:$LINENO: result: yes" >&5
14029echo "${ECHO_T}yes" >&6
14030else
14031# FIXME - insert some real tests, host_os isn't really good enough
14032 case $host_os in
14033 darwin*)
14034 if test -n "$STRIP" ; then
14035 striplib="$STRIP -x"
14036 echo "$as_me:$LINENO: result: yes" >&5
14037echo "${ECHO_T}yes" >&6
14038 else
14039 echo "$as_me:$LINENO: result: no" >&5
14040echo "${ECHO_T}no" >&6
14041fi
14042 ;;
14043 *)
14044 echo "$as_me:$LINENO: result: no" >&5
14045echo "${ECHO_T}no" >&6
14046 ;;
14047 esac
14048fi
14049
14050echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14051echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14052library_names_spec=
14053libname_spec='lib$name'
14054soname_spec=
14055shrext=".so"
14056postinstall_cmds=
14057postuninstall_cmds=
14058finish_cmds=
14059finish_eval=
14060shlibpath_var=
14061shlibpath_overrides_runpath=unknown
14062version_type=none
14063dynamic_linker="$host_os ld.so"
14064sys_lib_dlsearch_path_spec="/lib /usr/lib"
14065if test "$GCC" = yes; then
14066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14067 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14068 # if the path contains ";" then we assume it to be the separator
14069 # otherwise default to the standard path separator (i.e. ":") - it is
14070 # assumed that no part of a normal pathname contains ";" but that should
14071 # okay in the real world where ";" in dirpaths is itself problematic.
14072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14073 else
14074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14075 fi
14076else
14077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14078fi
14079need_lib_prefix=unknown
14080hardcode_into_libs=no
14081
14082# when you set need_version to no, make sure it does not cause -set_version
14083# flags to be left without arguments
14084need_version=unknown
14085
14086case $host_os in
14087aix3*)
14088 version_type=linux
14089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14090 shlibpath_var=LIBPATH
14091
14092 # AIX 3 has no versioning support, so we append a major version to the name.
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 ;;
14095
14096aix4* | aix5*)
14097 version_type=linux
14098 need_lib_prefix=no
14099 need_version=no
14100 hardcode_into_libs=yes
14101 if test "$host_cpu" = ia64; then
14102 # AIX 5 supports IA64
14103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 else
14106 # With GCC up to 2.95.x, collect2 would create an import file
14107 # for dependence libraries. The import file would start with
14108 # the line `#! .'. This would cause the generated library to
14109 # depend on `.', always an invalid library. This was fixed in
14110 # development snapshots of GCC prior to 3.0.
14111 case $host_os in
14112 aix4 | aix4.[01] | aix4.[01].*)
14113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14114 echo ' yes '
14115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14116 :
14117 else
14118 can_build_shared=no
14119 fi
14120 ;;
14121 esac
14122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14123 # soname into executable. Probably we can add versioning support to
14124 # collect2, so additional links can be useful in future.
14125 if test "$aix_use_runtimelinking" = yes; then
14126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14127 # instead of lib<name>.a to let people know that these are not
14128 # typical AIX shared libraries.
14129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14130 else
14131 # We preserve .a as extension for shared libraries through AIX4.2
14132 # and later when we are not doing run time linking.
14133 library_names_spec='${libname}${release}.a $libname.a'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 fi
14136 shlibpath_var=LIBPATH
14137 fi
14138 ;;
14139
14140amigaos*)
14141 library_names_spec='$libname.ixlibrary $libname.a'
14142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14143 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'
14144 ;;
14145
14146beos*)
14147 library_names_spec='${libname}${shared_ext}'
14148 dynamic_linker="$host_os ld.so"
14149 shlibpath_var=LIBRARY_PATH
14150 ;;
14151
14152bsdi4*)
14153 version_type=linux
14154 need_version=no
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14158 shlibpath_var=LD_LIBRARY_PATH
14159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14161 # the default ld.so.conf also contains /usr/contrib/lib and
14162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14163 # libtool to hard-code these into programs
14164 ;;
14165
14166cygwin* | mingw* | pw32*)
14167 version_type=windows
14168 shrext=".dll"
14169 need_version=no
14170 need_lib_prefix=no
14171
14172 case $GCC,$host_os in
14173 yes,cygwin* | yes,mingw* | yes,pw32*)
14174 library_names_spec='$libname.dll.a'
14175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14176 postinstall_cmds='base_file=`basename \${file}`~
14177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14178 dldir=$destdir/`dirname \$dlpath`~
14179 test -d \$dldir || mkdir -p \$dldir~
14180 $install_prog $dir/$dlname \$dldir/$dlname'
14181 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14182 dlpath=$dir/\$dldll~
14183 $rm \$dlpath'
14184 shlibpath_overrides_runpath=yes
14185
14186 case $host_os in
14187 cygwin*)
14188 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14189 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14190 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14191 ;;
14192 mingw*)
14193 # MinGW DLLs use traditional 'lib' prefix
14194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14196 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14197 # It is most probably a Windows format PATH printed by
14198 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14199 # path with ; separators, and with drive letters. We can handle the
14200 # drive letters (cygwin fileutils understands them), so leave them,
14201 # especially as we might pass files found there to a mingw objdump,
14202 # which wouldn't understand a cygwinified path. Ahh.
14203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14204 else
14205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14206 fi
14207 ;;
14208 pw32*)
14209 # pw32 DLLs use 'pw' prefix rather than 'lib'
14210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14211 ;;
14212 esac
14213 ;;
14214
14215 *)
14216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14217 ;;
14218 esac
14219 dynamic_linker='Win32 ld.exe'
14220 # FIXME: first we should search . and the directory the executable is in
14221 shlibpath_var=PATH
14222 ;;
14223
14224darwin* | rhapsody*)
14225 dynamic_linker="$host_os dyld"
14226 version_type=darwin
14227 need_lib_prefix=no
14228 need_version=no
14229 # FIXME: Relying on posixy $() will cause problems for
14230 # cross-compilation, but unfortunately the echo tests do not
14231 # yet detect zsh echo's removal of \ escapes.
14232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14233 soname_spec='${libname}${release}${major}$shared_ext'
14234 shlibpath_overrides_runpath=yes
14235 shlibpath_var=DYLD_LIBRARY_PATH
14236 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14237 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14238 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14239 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"`
14240 fi
14241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14242 ;;
14243
14244dgux*)
14245 version_type=linux
14246 need_lib_prefix=no
14247 need_version=no
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 ;;
14252
14253freebsd1*)
14254 dynamic_linker=no
14255 ;;
14256
14257freebsd*)
14258 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14259 version_type=freebsd-$objformat
14260 case $version_type in
14261 freebsd-elf*)
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14263 need_version=no
14264 need_lib_prefix=no
14265 ;;
14266 freebsd-*)
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14268 need_version=yes
14269 ;;
14270 esac
14271 shlibpath_var=LD_LIBRARY_PATH
14272 case $host_os in
14273 freebsd2*)
14274 shlibpath_overrides_runpath=yes
14275 ;;
14276 freebsd3.01* | freebsdelf3.01*)
14277 shlibpath_overrides_runpath=yes
14278 hardcode_into_libs=yes
14279 ;;
14280 *) # from 3.2 on
14281 shlibpath_overrides_runpath=no
14282 hardcode_into_libs=yes
14283 ;;
14284 esac
14285 ;;
14286
14287gnu*)
14288 version_type=linux
14289 need_lib_prefix=no
14290 need_version=no
14291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14292 soname_spec='${libname}${release}${shared_ext}$major'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 hardcode_into_libs=yes
14295 ;;
14296
14297hpux9* | hpux10* | hpux11*)
14298 # Give a soname corresponding to the major version so that dld.sl refuses to
14299 # link against other versions.
14300 version_type=sunos
14301 need_lib_prefix=no
14302 need_version=no
14303 case "$host_cpu" in
14304 ia64*)
14305 shrext='.so'
14306 hardcode_into_libs=yes
14307 dynamic_linker="$host_os dld.so"
14308 shlibpath_var=LD_LIBRARY_PATH
14309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 soname_spec='${libname}${release}${shared_ext}$major'
14312 if test "X$HPUX_IA64_MODE" = X32; then
14313 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14314 else
14315 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14316 fi
14317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14318 ;;
14319 hppa*64*)
14320 shrext='.sl'
14321 hardcode_into_libs=yes
14322 dynamic_linker="$host_os dld.sl"
14323 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14329 ;;
14330 *)
14331 shrext='.sl'
14332 dynamic_linker="$host_os dld.sl"
14333 shlibpath_var=SHLIB_PATH
14334 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 ;;
14338 esac
14339 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14340 postinstall_cmds='chmod 555 $lib'
14341 ;;
14342
14343irix5* | irix6* | nonstopux*)
14344 case $host_os in
14345 nonstopux*) version_type=nonstopux ;;
14346 *)
14347 if test "$lt_cv_prog_gnu_ld" = yes; then
14348 version_type=linux
14349 else
14350 version_type=irix
14351 fi ;;
14352 esac
14353 need_lib_prefix=no
14354 need_version=no
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14357 case $host_os in
14358 irix5* | nonstopux*)
14359 libsuff= shlibsuff=
14360 ;;
14361 *)
14362 case $LD in # libtool.m4 will add one of these switches to LD
14363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14364 libsuff= shlibsuff= libmagic=32-bit;;
14365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14366 libsuff=32 shlibsuff=N32 libmagic=N32;;
14367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14369 *) libsuff= shlibsuff= libmagic=never-match;;
14370 esac
14371 ;;
14372 esac
14373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14374 shlibpath_overrides_runpath=no
14375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14377 hardcode_into_libs=yes
14378 ;;
14379
14380# No shared lib support for Linux oldld, aout, or coff.
14381linux*oldld* | linux*aout* | linux*coff*)
14382 dynamic_linker=no
14383 ;;
14384
14385# This must be Linux ELF.
14386linux*)
14387 version_type=linux
14388 need_lib_prefix=no
14389 need_version=no
14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec='${libname}${release}${shared_ext}$major'
14392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14393 shlibpath_var=LD_LIBRARY_PATH
14394 shlibpath_overrides_runpath=no
14395 # This implies no fast_install, which is unacceptable.
14396 # Some rework will be needed to allow for fast_install
14397 # before this can be enabled.
14398 hardcode_into_libs=yes
14399
14400 # We used to test for /lib/ld.so.1 and disable shared libraries on
14401 # powerpc, because MkLinux only supported shared libraries with the
14402 # GNU dynamic linker. Since this was broken with cross compilers,
14403 # most powerpc-linux boxes support dynamic linking these days and
14404 # people can always --disable-shared, the test was removed, and we
14405 # assume the GNU/Linux dynamic linker is in use.
14406 dynamic_linker='GNU/Linux ld.so'
14407 ;;
14408
14409netbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=no
14413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 dynamic_linker='NetBSD (a.out) ld.so'
14417 else
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 dynamic_linker='NetBSD ld.elf_so'
14421 fi
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426
14427newsos6)
14428 version_type=linux
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14432 ;;
14433
14434nto-qnx)
14435 version_type=linux
14436 need_lib_prefix=no
14437 need_version=no
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=yes
14442 ;;
14443
14444openbsd*)
14445 version_type=sunos
14446 need_lib_prefix=no
14447 need_version=no
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14452 case $host_os in
14453 openbsd2.[89] | openbsd2.[89].*)
14454 shlibpath_overrides_runpath=no
14455 ;;
14456 *)
14457 shlibpath_overrides_runpath=yes
14458 ;;
14459 esac
14460 else
14461 shlibpath_overrides_runpath=yes
14462 fi
14463 ;;
14464
14465os2*)
14466 libname_spec='$name'
14467 shrext=".dll"
14468 need_lib_prefix=no
14469 library_names_spec='$libname${shared_ext} $libname.a'
14470 dynamic_linker='OS/2 ld.exe'
14471 shlibpath_var=LIBPATH
14472 ;;
14473
14474osf3* | osf4* | osf5*)
14475 version_type=osf
14476 need_lib_prefix=no
14477 need_version=no
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14483 ;;
14484
14485sco3.2v5*)
14486 version_type=osf
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 ;;
14491
14492solaris*)
14493 version_type=linux
14494 need_lib_prefix=no
14495 need_version=no
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 shlibpath_var=LD_LIBRARY_PATH
14499 shlibpath_overrides_runpath=yes
14500 hardcode_into_libs=yes
14501 # ldd complains unless libraries are executable
14502 postinstall_cmds='chmod +x $lib'
14503 ;;
14504
14505sunos4*)
14506 version_type=sunos
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14508 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14509 shlibpath_var=LD_LIBRARY_PATH
14510 shlibpath_overrides_runpath=yes
14511 if test "$with_gnu_ld" = yes; then
14512 need_lib_prefix=no
14513 fi
14514 need_version=yes
14515 ;;
14516
14517sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14518 version_type=linux
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 case $host_vendor in
14523 sni)
14524 shlibpath_overrides_runpath=no
14525 need_lib_prefix=no
14526 export_dynamic_flag_spec='${wl}-Blargedynsym'
14527 runpath_var=LD_RUN_PATH
14528 ;;
14529 siemens)
14530 need_lib_prefix=no
14531 ;;
14532 motorola)
14533 need_lib_prefix=no
14534 need_version=no
14535 shlibpath_overrides_runpath=no
14536 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14537 ;;
14538 esac
14539 ;;
14540
14541sysv4*MP*)
14542 if test -d /usr/nec ;then
14543 version_type=linux
14544 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14545 soname_spec='$libname${shared_ext}.$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 fi
14548 ;;
14549
14550uts4*)
14551 version_type=linux
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 ;;
14556
14557*)
14558 dynamic_linker=no
14559 ;;
14560esac
14561echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14562echo "${ECHO_T}$dynamic_linker" >&6
14563test "$dynamic_linker" = no && can_build_shared=no
14564
14565
14566# The else clause should only fire when bootstrapping the
14567# libtool distribution, otherwise you forgot to ship ltmain.sh
14568# with your package, and you will get complaints that there are
14569# no rules to generate ltmain.sh.
14570if test -f "$ltmain"; then
14571 # See if we are running on zsh, and set the options which allow our commands through
14572 # without removal of \ escapes.
14573 if test -n "${ZSH_VERSION+set}" ; then
14574 setopt NO_GLOB_SUBST
14575 fi
14576 # Now quote all the things that may contain metacharacters while being
14577 # careful not to overquote the AC_SUBSTed values. We take copies of the
14578 # variables and quote the copies for generation of the libtool script.
14579 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14582 deplibs_check_method reload_flag reload_cmds need_locks \
14583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14584 lt_cv_sys_global_symbol_to_c_name_address \
14585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14586 old_postinstall_cmds old_postuninstall_cmds \
14587 compiler_F77 \
14588 CC_F77 \
14589 LD_F77 \
14590 lt_prog_compiler_wl_F77 \
14591 lt_prog_compiler_pic_F77 \
14592 lt_prog_compiler_static_F77 \
14593 lt_prog_compiler_no_builtin_flag_F77 \
14594 export_dynamic_flag_spec_F77 \
14595 thread_safe_flag_spec_F77 \
14596 whole_archive_flag_spec_F77 \
14597 enable_shared_with_static_runtimes_F77 \
14598 old_archive_cmds_F77 \
14599 old_archive_from_new_cmds_F77 \
14600 predep_objects_F77 \
14601 postdep_objects_F77 \
14602 predeps_F77 \
14603 postdeps_F77 \
14604 compiler_lib_search_path_F77 \
14605 archive_cmds_F77 \
14606 archive_expsym_cmds_F77 \
14607 postinstall_cmds_F77 \
14608 postuninstall_cmds_F77 \
14609 old_archive_from_expsyms_cmds_F77 \
14610 allow_undefined_flag_F77 \
14611 no_undefined_flag_F77 \
14612 export_symbols_cmds_F77 \
14613 hardcode_libdir_flag_spec_F77 \
14614 hardcode_libdir_flag_spec_ld_F77 \
14615 hardcode_libdir_separator_F77 \
14616 hardcode_automatic_F77 \
14617 module_cmds_F77 \
14618 module_expsym_cmds_F77 \
14619 lt_cv_prog_compiler_c_o_F77 \
14620 exclude_expsyms_F77 \
14621 include_expsyms_F77; do
14622
14623 case $var in
14624 old_archive_cmds_F77 | \
14625 old_archive_from_new_cmds_F77 | \
14626 archive_cmds_F77 | \
14627 archive_expsym_cmds_F77 | \
14628 module_cmds_F77 | \
14629 module_expsym_cmds_F77 | \
14630 old_archive_from_expsyms_cmds_F77 | \
14631 export_symbols_cmds_F77 | \
14632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14633 postinstall_cmds | postuninstall_cmds | \
14634 old_postinstall_cmds | old_postuninstall_cmds | \
14635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14636 # Double-quote double-evaled strings.
14637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14638 ;;
14639 *)
14640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14641 ;;
14642 esac
14643 done
14644
14645 case $lt_echo in
14646 *'\$0 --fallback-echo"')
14647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14648 ;;
14649 esac
14650
14651cfgfile="$ofile"
14652
14653 cat <<__EOF__ >> "$cfgfile"
14654# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14655
14656# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14657
14658# Shell to use when invoking shell scripts.
14659SHELL=$lt_SHELL
14660
14661# Whether or not to build shared libraries.
14662build_libtool_libs=$enable_shared
14663
14664# Whether or not to build static libraries.
14665build_old_libs=$enable_static
14666
14667# Whether or not to add -lc for building shared libraries.
14668build_libtool_need_lc=$archive_cmds_need_lc_F77
14669
14670# Whether or not to disallow shared libs when runtime libs are static
14671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14672
14673# Whether or not to optimize for fast installation.
14674fast_install=$enable_fast_install
14675
14676# The host system.
14677host_alias=$host_alias
14678host=$host
14679
14680# An echo program that does not interpret backslashes.
14681echo=$lt_echo
14682
14683# The archiver.
14684AR=$lt_AR
14685AR_FLAGS=$lt_AR_FLAGS
14686
14687# A C compiler.
14688LTCC=$lt_LTCC
14689
14690# A language-specific compiler.
14691CC=$lt_compiler_F77
14692
14693# Is the compiler the GNU C compiler?
14694with_gcc=$GCC_F77
14695
14696# An ERE matcher.
14697EGREP=$lt_EGREP
14698
14699# The linker used to build libraries.
14700LD=$lt_LD_F77
14701
14702# Whether we need hard or soft links.
14703LN_S=$lt_LN_S
14704
14705# A BSD-compatible nm program.
14706NM=$lt_NM
14707
14708# A symbol stripping program
14709STRIP=$STRIP
14710
14711# Used to examine libraries when file_magic_cmd begins "file"
14712MAGIC_CMD=$MAGIC_CMD
14713
14714# Used on cygwin: DLL creation program.
14715DLLTOOL="$DLLTOOL"
14716
14717# Used on cygwin: object dumper.
14718OBJDUMP="$OBJDUMP"
14719
14720# Used on cygwin: assembler.
14721AS="$AS"
14722
14723# The name of the directory that contains temporary libtool files.
14724objdir=$objdir
14725
14726# How to create reloadable object files.
14727reload_flag=$lt_reload_flag
14728reload_cmds=$lt_reload_cmds
14729
14730# How to pass a linker flag through the compiler.
14731wl=$lt_lt_prog_compiler_wl_F77
14732
14733# Object file suffix (normally "o").
14734objext="$ac_objext"
14735
14736# Old archive suffix (normally "a").
14737libext="$libext"
14738
14739# Shared library suffix (normally ".so").
14740shrext='$shrext'
14741
14742# Executable file suffix (normally "").
14743exeext="$exeext"
14744
14745# Additional compiler flags for building library objects.
14746pic_flag=$lt_lt_prog_compiler_pic_F77
14747pic_mode=$pic_mode
14748
14749# What is the maximum length of a command?
14750max_cmd_len=$lt_cv_sys_max_cmd_len
14751
14752# Does compiler simultaneously support -c and -o options?
14753compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14754
14755# Must we lock files when doing compilation ?
14756need_locks=$lt_need_locks
14757
14758# Do we need the lib prefix for modules?
14759need_lib_prefix=$need_lib_prefix
14760
14761# Do we need a version for libraries?
14762need_version=$need_version
14763
14764# Whether dlopen is supported.
14765dlopen_support=$enable_dlopen
14766
14767# Whether dlopen of programs is supported.
14768dlopen_self=$enable_dlopen_self
14769
14770# Whether dlopen of statically linked programs is supported.
14771dlopen_self_static=$enable_dlopen_self_static
14772
14773# Compiler flag to prevent dynamic linking.
14774link_static_flag=$lt_lt_prog_compiler_static_F77
14775
14776# Compiler flag to turn off builtin functions.
14777no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14778
14779# Compiler flag to allow reflexive dlopens.
14780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14781
14782# Compiler flag to generate shared objects directly from archives.
14783whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14784
14785# Compiler flag to generate thread-safe objects.
14786thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14787
14788# Library versioning type.
14789version_type=$version_type
14790
14791# Format of library name prefix.
14792libname_spec=$lt_libname_spec
14793
14794# List of archive names. First name is the real one, the rest are links.
14795# The last name is the one that the linker finds with -lNAME.
14796library_names_spec=$lt_library_names_spec
14797
14798# The coded name of the library, if different from the real name.
14799soname_spec=$lt_soname_spec
14800
14801# Commands used to build and install an old-style archive.
14802RANLIB=$lt_RANLIB
14803old_archive_cmds=$lt_old_archive_cmds_F77
14804old_postinstall_cmds=$lt_old_postinstall_cmds
14805old_postuninstall_cmds=$lt_old_postuninstall_cmds
14806
14807# Create an old-style archive from a shared archive.
14808old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14809
14810# Create a temporary old-style archive to link instead of a shared archive.
14811old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14812
14813# Commands used to build and install a shared archive.
14814archive_cmds=$lt_archive_cmds_F77
14815archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14816postinstall_cmds=$lt_postinstall_cmds
14817postuninstall_cmds=$lt_postuninstall_cmds
14818
14819# Commands used to build a loadable module (assumed same as above if empty)
14820module_cmds=$lt_module_cmds_F77
14821module_expsym_cmds=$lt_module_expsym_cmds_F77
14822
14823# Commands to strip libraries.
14824old_striplib=$lt_old_striplib
14825striplib=$lt_striplib
14826
14827# Dependencies to place before the objects being linked to create a
14828# shared library.
14829predep_objects=$lt_predep_objects_F77
14830
14831# Dependencies to place after the objects being linked to create a
14832# shared library.
14833postdep_objects=$lt_postdep_objects_F77
14834
14835# Dependencies to place before the objects being linked to create a
14836# shared library.
14837predeps=$lt_predeps_F77
14838
14839# Dependencies to place after the objects being linked to create a
14840# shared library.
14841postdeps=$lt_postdeps_F77
14842
14843# The library search path used internally by the compiler when linking
14844# a shared library.
14845compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14846
14847# Method to check whether dependent libraries are shared objects.
14848deplibs_check_method=$lt_deplibs_check_method
14849
14850# Command to use when deplibs_check_method == file_magic.
14851file_magic_cmd=$lt_file_magic_cmd
14852
14853# Flag that allows shared libraries with undefined symbols to be built.
14854allow_undefined_flag=$lt_allow_undefined_flag_F77
14855
14856# Flag that forces no undefined symbols.
14857no_undefined_flag=$lt_no_undefined_flag_F77
14858
14859# Commands used to finish a libtool library installation in a directory.
14860finish_cmds=$lt_finish_cmds
14861
14862# Same as above, but a single script fragment to be evaled but not shown.
14863finish_eval=$lt_finish_eval
14864
14865# Take the output of nm and produce a listing of raw symbols and C names.
14866global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14867
14868# Transform the output of nm in a proper C declaration
14869global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14870
14871# Transform the output of nm in a C name address pair
14872global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14873
14874# This is the shared library runtime path variable.
14875runpath_var=$runpath_var
14876
14877# This is the shared library path variable.
14878shlibpath_var=$shlibpath_var
14879
14880# Is shlibpath searched before the hard-coded library search path?
14881shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14882
14883# How to hardcode a shared library path into an executable.
14884hardcode_action=$hardcode_action_F77
14885
14886# Whether we should hardcode library paths into libraries.
14887hardcode_into_libs=$hardcode_into_libs
14888
14889# Flag to hardcode \$libdir into a binary during linking.
14890# This must work even if \$libdir does not exist.
14891hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14892
14893# If ld is used when linking, flag to hardcode \$libdir into
14894# a binary during linking. This must work even if \$libdir does
14895# not exist.
14896hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14897
14898# Whether we need a single -rpath flag with a separated argument.
14899hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14900
14901# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14902# resulting binary.
14903hardcode_direct=$hardcode_direct_F77
14904
14905# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14906# resulting binary.
14907hardcode_minus_L=$hardcode_minus_L_F77
14908
14909# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14910# the resulting binary.
14911hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14912
14913# Set to yes if building a shared library automatically hardcodes DIR into the library
14914# and all subsequent libraries and executables linked against it.
14915hardcode_automatic=$hardcode_automatic_F77
14916
14917# Variables whose values should be saved in libtool wrapper scripts and
14918# restored at relink time.
14919variables_saved_for_relink="$variables_saved_for_relink"
14920
14921# Whether libtool must link a program against all its dependency libraries.
14922link_all_deplibs=$link_all_deplibs_F77
14923
14924# Compile-time system search path for libraries
14925sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14926
14927# Run-time system search path for libraries
14928sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14929
14930# Fix the shell variable \$srcfile for the compiler.
14931fix_srcfile_path="$fix_srcfile_path_F77"
14932
14933# Set to yes if exported symbols are required.
14934always_export_symbols=$always_export_symbols_F77
14935
14936# The commands to list exported symbols.
14937export_symbols_cmds=$lt_export_symbols_cmds_F77
14938
14939# The commands to extract the exported symbol list from a shared archive.
14940extract_expsyms_cmds=$lt_extract_expsyms_cmds
14941
14942# Symbols that should not be listed in the preloaded symbols.
14943exclude_expsyms=$lt_exclude_expsyms_F77
14944
14945# Symbols that must always be exported.
14946include_expsyms=$lt_include_expsyms_F77
14947
14948# ### END LIBTOOL TAG CONFIG: $tagname
14949
14950__EOF__
14951
14952
14953else
14954 # If there is no Makefile yet, we rely on a make rule to execute
14955 # `config.status --recheck' to rerun these tests and create the
14956 # libtool script then.
14957 test -f Makefile && make "$ltmain"
14958fi
14959
14960
14961ac_ext=c
14962ac_cpp='$CPP $CPPFLAGS'
14963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14965ac_compiler_gnu=$ac_cv_c_compiler_gnu
14966
14967CC="$lt_save_CC"
14968
14969 else
14970 tagname=""
14971 fi
14972 ;;
14973
14974 GCJ)
14975 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14976
14977
14978
14979# Source file extension for Java test sources.
14980ac_ext=java
14981
14982# Object file extension for compiled Java test sources.
14983objext=o
14984objext_GCJ=$objext
14985
14986# Code to be used in simple compile tests
14987lt_simple_compile_test_code="class foo {}\n"
14988
14989# Code to be used in simple link tests
14990lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14991
14992# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14993
14994# If no C compiler was specified, use CC.
14995LTCC=${LTCC-"$CC"}
14996
14997# Allow CC to be a program name with arguments.
14998compiler=$CC
14999
15000
15001# Allow CC to be a program name with arguments.
15002lt_save_CC="$CC"
15003CC=${GCJ-"gcj"}
15004compiler=$CC
15005compiler_GCJ=$CC
15006
15007# GCJ did not exist at the time GCC didn't implicitly link libc in.
15008archive_cmds_need_lc_GCJ=no
15009
15010## CAVEAT EMPTOR:
15011## There is no encapsulation within the following macros, do not change
15012## the running order or otherwise move them around unless you know exactly
15013## what you are doing...
15014
15015lt_prog_compiler_no_builtin_flag_GCJ=
15016
15017if test "$GCC" = yes; then
15018 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15019
15020 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15021echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15022if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
15025 lt_cv_prog_compiler_rtti_exceptions=no
15026 ac_outfile=conftest.$ac_objext
15027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15028 lt_compiler_flag="-fno-rtti -fno-exceptions"
15029 # Insert the option either (1) after the last *FLAGS variable, or
15030 # (2) before a word containing "conftest.", or (3) at the end.
15031 # Note that $ac_compile itself does not contain backslashes and begins
15032 # with a dollar sign (not a hyphen), so the echo should work correctly.
15033 # The option is referenced via a variable to avoid confusing sed.
15034 lt_compile=`echo "$ac_compile" | $SED \
15035 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000015038 (eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015039 (eval "$lt_compile" 2>conftest.err)
15040 ac_status=$?
15041 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000015042 echo "$as_me:15042: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015043 if (exit $ac_status) && test -s "$ac_outfile"; then
15044 # The compiler can only warn and ignore the option if not recognized
15045 # So say no if there are warnings
15046 if test ! -s conftest.err; then
15047 lt_cv_prog_compiler_rtti_exceptions=yes
15048 fi
15049 fi
15050 $rm conftest*
15051
15052fi
15053echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15054echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15055
15056if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15057 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15058else
15059 :
15060fi
15061
15062fi
15063
15064lt_prog_compiler_wl_GCJ=
15065lt_prog_compiler_pic_GCJ=
15066lt_prog_compiler_static_GCJ=
15067
15068echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15069echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15070
15071 if test "$GCC" = yes; then
15072 lt_prog_compiler_wl_GCJ='-Wl,'
15073 lt_prog_compiler_static_GCJ='-static'
15074
15075 case $host_os in
15076 aix*)
15077 # All AIX code is PIC.
15078 if test "$host_cpu" = ia64; then
15079 # AIX 5 now supports IA64 processor
15080 lt_prog_compiler_static_GCJ='-Bstatic'
15081 fi
15082 ;;
15083
15084 amigaos*)
15085 # FIXME: we need at least 68020 code to build shared libraries, but
15086 # adding the `-m68020' flag to GCC prevents building anything better,
15087 # like `-m68040'.
15088 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15089 ;;
15090
15091 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15092 # PIC is the default for these OSes.
15093 ;;
15094
15095 mingw* | pw32* | os2*)
15096 # This hack is so that the source file can tell whether it is being
15097 # built for inclusion in a dll (and should export symbols for example).
15098 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15099 ;;
15100
15101 darwin* | rhapsody*)
15102 # PIC is the default on this platform
15103 # Common symbols not allowed in MH_DYLIB files
15104 lt_prog_compiler_pic_GCJ='-fno-common'
15105 ;;
15106
15107 msdosdjgpp*)
15108 # Just because we use GCC doesn't mean we suddenly get shared libraries
15109 # on systems that don't support them.
15110 lt_prog_compiler_can_build_shared_GCJ=no
15111 enable_shared=no
15112 ;;
15113
15114 sysv4*MP*)
15115 if test -d /usr/nec; then
15116 lt_prog_compiler_pic_GCJ=-Kconform_pic
15117 fi
15118 ;;
15119
15120 hpux*)
15121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15122 # not for PA HP-UX.
15123 case "$host_cpu" in
15124 hppa*64*|ia64*)
15125 # +Z the default
15126 ;;
15127 *)
15128 lt_prog_compiler_pic_GCJ='-fPIC'
15129 ;;
15130 esac
15131 ;;
15132
15133 *)
15134 lt_prog_compiler_pic_GCJ='-fPIC'
15135 ;;
15136 esac
15137 else
15138 # PORTME Check for flag to pass linker flags through the system compiler.
15139 case $host_os in
15140 aix*)
15141 lt_prog_compiler_wl_GCJ='-Wl,'
15142 if test "$host_cpu" = ia64; then
15143 # AIX 5 now supports IA64 processor
15144 lt_prog_compiler_static_GCJ='-Bstatic'
15145 else
15146 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15147 fi
15148 ;;
15149
15150 mingw* | pw32* | os2*)
15151 # This hack is so that the source file can tell whether it is being
15152 # built for inclusion in a dll (and should export symbols for example).
15153 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15154 ;;
15155
15156 hpux9* | hpux10* | hpux11*)
15157 lt_prog_compiler_wl_GCJ='-Wl,'
15158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15159 # not for PA HP-UX.
15160 case "$host_cpu" in
15161 hppa*64*|ia64*)
15162 # +Z the default
15163 ;;
15164 *)
15165 lt_prog_compiler_pic_GCJ='+Z'
15166 ;;
15167 esac
15168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15169 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15170 ;;
15171
15172 irix5* | irix6* | nonstopux*)
15173 lt_prog_compiler_wl_GCJ='-Wl,'
15174 # PIC (with -KPIC) is the default.
15175 lt_prog_compiler_static_GCJ='-non_shared'
15176 ;;
15177
15178 newsos6)
15179 lt_prog_compiler_pic_GCJ='-KPIC'
15180 lt_prog_compiler_static_GCJ='-Bstatic'
15181 ;;
15182
15183 linux*)
15184 case $CC in
15185 icc|ecc)
15186 lt_prog_compiler_wl_GCJ='-Wl,'
15187 lt_prog_compiler_pic_GCJ='-KPIC'
15188 lt_prog_compiler_static_GCJ='-static'
15189 ;;
15190 ccc)
15191 lt_prog_compiler_wl_GCJ='-Wl,'
15192 # All Alpha code is PIC.
15193 lt_prog_compiler_static_GCJ='-non_shared'
15194 ;;
15195 esac
15196 ;;
15197
15198 osf3* | osf4* | osf5*)
15199 lt_prog_compiler_wl_GCJ='-Wl,'
15200 # All OSF/1 code is PIC.
15201 lt_prog_compiler_static_GCJ='-non_shared'
15202 ;;
15203
15204 sco3.2v5*)
15205 lt_prog_compiler_pic_GCJ='-Kpic'
15206 lt_prog_compiler_static_GCJ='-dn'
15207 ;;
15208
15209 solaris*)
15210 lt_prog_compiler_wl_GCJ='-Wl,'
15211 lt_prog_compiler_pic_GCJ='-KPIC'
15212 lt_prog_compiler_static_GCJ='-Bstatic'
15213 ;;
15214
15215 sunos4*)
15216 lt_prog_compiler_wl_GCJ='-Qoption ld '
15217 lt_prog_compiler_pic_GCJ='-PIC'
15218 lt_prog_compiler_static_GCJ='-Bstatic'
15219 ;;
15220
15221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15222 lt_prog_compiler_wl_GCJ='-Wl,'
15223 lt_prog_compiler_pic_GCJ='-KPIC'
15224 lt_prog_compiler_static_GCJ='-Bstatic'
15225 ;;
15226
15227 sysv4*MP*)
15228 if test -d /usr/nec ;then
15229 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15230 lt_prog_compiler_static_GCJ='-Bstatic'
15231 fi
15232 ;;
15233
15234 uts4*)
15235 lt_prog_compiler_pic_GCJ='-pic'
15236 lt_prog_compiler_static_GCJ='-Bstatic'
15237 ;;
15238
15239 *)
15240 lt_prog_compiler_can_build_shared_GCJ=no
15241 ;;
15242 esac
15243 fi
15244
15245echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15246echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15247
15248#
15249# Check to make sure the PIC flag actually works.
15250#
15251if test -n "$lt_prog_compiler_pic_GCJ"; then
15252 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15253echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15254if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257 lt_prog_compiler_pic_works_GCJ=no
15258 ac_outfile=conftest.$ac_objext
15259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15260 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15261 # Insert the option either (1) after the last *FLAGS variable, or
15262 # (2) before a word containing "conftest.", or (3) at the end.
15263 # Note that $ac_compile itself does not contain backslashes and begins
15264 # with a dollar sign (not a hyphen), so the echo should work correctly.
15265 # The option is referenced via a variable to avoid confusing sed.
15266 lt_compile=`echo "$ac_compile" | $SED \
15267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000015270 (eval echo "\"\$as_me:15270: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015271 (eval "$lt_compile" 2>conftest.err)
15272 ac_status=$?
15273 cat conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000015274 echo "$as_me:15274: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015275 if (exit $ac_status) && test -s "$ac_outfile"; then
15276 # The compiler can only warn and ignore the option if not recognized
15277 # So say no if there are warnings
15278 if test ! -s conftest.err; then
15279 lt_prog_compiler_pic_works_GCJ=yes
15280 fi
15281 fi
15282 $rm conftest*
15283
15284fi
15285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15286echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15287
15288if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15289 case $lt_prog_compiler_pic_GCJ in
15290 "" | " "*) ;;
15291 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15292 esac
15293else
15294 lt_prog_compiler_pic_GCJ=
15295 lt_prog_compiler_can_build_shared_GCJ=no
15296fi
15297
15298fi
15299case "$host_os" in
15300 # For platforms which do not support PIC, -DPIC is meaningless:
15301 *djgpp*)
15302 lt_prog_compiler_pic_GCJ=
15303 ;;
15304 *)
15305 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15306 ;;
15307esac
15308
15309echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15310echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15311if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
15314 lt_cv_prog_compiler_c_o_GCJ=no
15315 $rm -r conftest 2>/dev/null
15316 mkdir conftest
15317 cd conftest
15318 mkdir out
15319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15320
15321 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15322 # that will create temporary files in the current directory regardless of
15323 # the output directory. Thus, making CWD read-only will cause this test
15324 # to fail, enabling locking or at least warning the user not to do parallel
15325 # builds.
15326 chmod -w .
15327
15328 lt_compiler_flag="-o out/conftest2.$ac_objext"
15329 # Insert the option either (1) after the last *FLAGS variable, or
15330 # (2) before a word containing "conftest.", or (3) at the end.
15331 # Note that $ac_compile itself does not contain backslashes and begins
15332 # with a dollar sign (not a hyphen), so the echo should work correctly.
15333 lt_compile=`echo "$ac_compile" | $SED \
15334 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15336 -e 's:$: $lt_compiler_flag:'`
John Criswell68886d42003-09-26 19:51:42 +000015337 (eval echo "\"\$as_me:15337: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015338 (eval "$lt_compile" 2>out/conftest.err)
15339 ac_status=$?
15340 cat out/conftest.err >&5
John Criswell68886d42003-09-26 19:51:42 +000015341 echo "$as_me:15341: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15343 then
15344 # The compiler can only warn and ignore the option if not recognized
15345 # So say no if there are warnings
15346 if test ! -s out/conftest.err; then
15347 lt_cv_prog_compiler_c_o_GCJ=yes
15348 fi
15349 fi
15350 chmod u+w .
15351 $rm conftest* out/*
15352 rmdir out
15353 cd ..
15354 rmdir conftest
15355 $rm conftest*
15356
15357fi
15358echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15359echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15360
15361
15362hard_links="nottested"
15363if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15364 # do not overwrite the value of need_locks provided by the user
15365 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15366echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15367 hard_links=yes
15368 $rm conftest*
15369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15370 touch conftest.a
15371 ln conftest.a conftest.b 2>&5 || hard_links=no
15372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15373 echo "$as_me:$LINENO: result: $hard_links" >&5
15374echo "${ECHO_T}$hard_links" >&6
15375 if test "$hard_links" = no; then
15376 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15377echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15378 need_locks=warn
15379 fi
15380else
15381 need_locks=no
15382fi
15383
15384echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15385echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15386
15387 runpath_var=
15388 allow_undefined_flag_GCJ=
15389 enable_shared_with_static_runtimes_GCJ=no
15390 archive_cmds_GCJ=
15391 archive_expsym_cmds_GCJ=
15392 old_archive_From_new_cmds_GCJ=
15393 old_archive_from_expsyms_cmds_GCJ=
15394 export_dynamic_flag_spec_GCJ=
15395 whole_archive_flag_spec_GCJ=
15396 thread_safe_flag_spec_GCJ=
15397 hardcode_libdir_flag_spec_GCJ=
15398 hardcode_libdir_flag_spec_ld_GCJ=
15399 hardcode_libdir_separator_GCJ=
15400 hardcode_direct_GCJ=no
15401 hardcode_minus_L_GCJ=no
15402 hardcode_shlibpath_var_GCJ=unsupported
15403 link_all_deplibs_GCJ=unknown
15404 hardcode_automatic_GCJ=no
15405 module_cmds_GCJ=
15406 module_expsym_cmds_GCJ=
15407 always_export_symbols_GCJ=no
15408 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15409 # include_expsyms should be a list of space-separated symbols to be *always*
15410 # included in the symbol list
15411 include_expsyms_GCJ=
15412 # exclude_expsyms can be an extended regexp of symbols to exclude
15413 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15414 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15415 # as well as any symbol that contains `d'.
15416 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15417 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15418 # platforms (ab)use it in PIC code, but their linkers get confused if
15419 # the symbol is explicitly referenced. Since portable code cannot
15420 # rely on this symbol name, it's probably fine to never include it in
15421 # preloaded symbol tables.
15422 extract_expsyms_cmds=
15423
15424 case $host_os in
15425 cygwin* | mingw* | pw32*)
15426 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 if test "$GCC" != yes; then
15430 with_gnu_ld=no
15431 fi
15432 ;;
15433 openbsd*)
15434 with_gnu_ld=no
15435 ;;
15436 esac
15437
15438 ld_shlibs_GCJ=yes
15439 if test "$with_gnu_ld" = yes; then
15440 # If archive_cmds runs LD, not CC, wlarc should be empty
15441 wlarc='${wl}'
15442
15443 # See if GNU ld supports shared libraries.
15444 case $host_os in
15445 aix3* | aix4* | aix5*)
15446 # On AIX/PPC, the GNU linker is very broken
15447 if test "$host_cpu" != ia64; then
15448 ld_shlibs_GCJ=no
15449 cat <<EOF 1>&2
15450
15451*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15452*** to be unable to reliably create shared libraries on AIX.
15453*** Therefore, libtool is disabling shared libraries support. If you
15454*** really care for shared libraries, you may want to modify your PATH
15455*** so that a non-GNU linker is found, and then restart.
15456
15457EOF
15458 fi
15459 ;;
15460
15461 amigaos*)
15462 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)'
15463 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15464 hardcode_minus_L_GCJ=yes
15465
15466 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15467 # that the semantics of dynamic libraries on AmigaOS, at least up
15468 # to version 4, is to share data among multiple programs linked
15469 # with the same dynamic library. Since this doesn't match the
15470 # behavior of shared libraries on other platforms, we can't use
15471 # them.
15472 ld_shlibs_GCJ=no
15473 ;;
15474
15475 beos*)
15476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477 allow_undefined_flag_GCJ=unsupported
15478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15479 # support --undefined. This deserves some investigation. FIXME
15480 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15481 else
15482 ld_shlibs_GCJ=no
15483 fi
15484 ;;
15485
15486 cygwin* | mingw* | pw32*)
15487 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15488 # as there is no search path for DLLs.
15489 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15490 allow_undefined_flag_GCJ=unsupported
15491 always_export_symbols_GCJ=no
15492 enable_shared_with_static_runtimes_GCJ=yes
15493 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15494
15495 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15497 # If the export-symbols file already is a .def file (1st line
15498 # is EXPORTS), use it as is; otherwise, prepend...
15499 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15500 cp $export_symbols $output_objdir/$soname.def;
15501 else
15502 echo EXPORTS > $output_objdir/$soname.def;
15503 cat $export_symbols >> $output_objdir/$soname.def;
15504 fi~
15505 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15506 else
15507 ld_shlibs=no
15508 fi
15509 ;;
15510
15511 netbsd*)
15512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15513 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15514 wlarc=
15515 else
15516 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15518 fi
15519 ;;
15520
15521 solaris* | sysv5*)
15522 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15523 ld_shlibs_GCJ=no
15524 cat <<EOF 1>&2
15525
15526*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15527*** create shared libraries on Solaris systems. Therefore, libtool
15528*** is disabling shared libraries support. We urge you to upgrade GNU
15529*** binutils to release 2.9.1 or newer. Another option is to modify
15530*** your PATH or compiler configuration so that the native linker is
15531*** used, and then restart.
15532
15533EOF
15534 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15537 else
15538 ld_shlibs_GCJ=no
15539 fi
15540 ;;
15541
15542 sunos4*)
15543 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544 wlarc=
15545 hardcode_direct_GCJ=yes
15546 hardcode_shlibpath_var_GCJ=no
15547 ;;
15548
15549 *)
15550 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15553 else
15554 ld_shlibs_GCJ=no
15555 fi
15556 ;;
15557 esac
15558
15559 if test "$ld_shlibs_GCJ" = yes; then
15560 runpath_var=LD_RUN_PATH
15561 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15562 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15563 # ancient GNU ld didn't support --whole-archive et. al.
15564 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15565 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15566 else
15567 whole_archive_flag_spec_GCJ=
15568 fi
15569 fi
15570 else
15571 # PORTME fill in a description of your system's linker (not GNU ld)
15572 case $host_os in
15573 aix3*)
15574 allow_undefined_flag_GCJ=unsupported
15575 always_export_symbols_GCJ=yes
15576 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'
15577 # Note: this linker hardcodes the directories in LIBPATH if there
15578 # are no directories specified by -L.
15579 hardcode_minus_L_GCJ=yes
15580 if test "$GCC" = yes && test -z "$link_static_flag"; then
15581 # Neither direct hardcoding nor static linking is supported with a
15582 # broken collect2.
15583 hardcode_direct_GCJ=unsupported
15584 fi
15585 ;;
15586
15587 aix4* | aix5*)
15588 if test "$host_cpu" = ia64; then
15589 # On IA64, the linker does run time linking by default, so we don't
15590 # have to do anything special.
15591 aix_use_runtimelinking=no
15592 exp_sym_flag='-Bexport'
15593 no_entry_flag=""
15594 else
15595 # If we're using GNU nm, then we don't want the "-C" option.
15596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15597 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15598 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'
15599 else
15600 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'
15601 fi
15602 aix_use_runtimelinking=no
15603
15604 # Test if we are trying to use run time linking or normal
15605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15606 # need to do runtime linking.
15607 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15608 for ld_flag in $LDFLAGS; do
15609 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15610 aix_use_runtimelinking=yes
15611 break
15612 fi
15613 done
15614 esac
15615
15616 exp_sym_flag='-bexport'
15617 no_entry_flag='-bnoentry'
15618 fi
15619
15620 # When large executables or shared objects are built, AIX ld can
15621 # have problems creating the table of contents. If linking a library
15622 # or program results in "error TOC overflow" add -mminimal-toc to
15623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15625
15626 archive_cmds_GCJ=''
15627 hardcode_direct_GCJ=yes
15628 hardcode_libdir_separator_GCJ=':'
15629 link_all_deplibs_GCJ=yes
15630
15631 if test "$GCC" = yes; then
15632 case $host_os in aix4.012|aix4.012.*)
15633 # We only want to do this on AIX 4.2 and lower, the check
15634 # below for broken collect2 doesn't work under 4.3+
15635 collect2name=`${CC} -print-prog-name=collect2`
15636 if test -f "$collect2name" && \
15637 strings "$collect2name" | grep resolve_lib_name >/dev/null
15638 then
15639 # We have reworked collect2
15640 hardcode_direct_GCJ=yes
15641 else
15642 # We have old collect2
15643 hardcode_direct_GCJ=unsupported
15644 # It fails to find uninstalled libraries when the uninstalled
15645 # path is not listed in the libpath. Setting hardcode_minus_L
15646 # to unsupported forces relinking
15647 hardcode_minus_L_GCJ=yes
15648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15649 hardcode_libdir_separator_GCJ=
15650 fi
15651 esac
15652 shared_flag='-shared'
15653 else
15654 # not using gcc
15655 if test "$host_cpu" = ia64; then
15656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15657 # chokes on -Wl,-G. The following line is correct:
15658 shared_flag='-G'
15659 else
15660 if test "$aix_use_runtimelinking" = yes; then
15661 shared_flag='${wl}-G'
15662 else
15663 shared_flag='${wl}-bM:SRE'
15664 fi
15665 fi
15666 fi
15667
15668 # It seems that -bexpall does not export symbols beginning with
15669 # underscore (_), so it is better to generate a list of symbols to export.
15670 always_export_symbols_GCJ=yes
15671 if test "$aix_use_runtimelinking" = yes; then
15672 # Warning - without using the other runtime loading flags (-brtl),
15673 # -berok will link without error, but may produce a broken library.
15674 allow_undefined_flag_GCJ='-berok'
15675 # Determine the default libpath from the value encoded in an empty executable.
15676 cat >conftest.$ac_ext <<_ACEOF
15677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015683
John Criswell47fdd832003-07-14 16:52:07 +000015684int
15685main ()
15686{
15687
15688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext conftest$ac_exeext
15693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -s conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704
15705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15706}'`
15707# Check for a 64-bit object if we didn't find anything.
15708if 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; }
15709}'`; fi
15710else
15711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015712sed 's/^/| /' conftest.$ac_ext >&5
15713
John Criswell47fdd832003-07-14 16:52:07 +000015714fi
15715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717
15718 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15719 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"
15720 else
15721 if test "$host_cpu" = ia64; then
15722 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15723 allow_undefined_flag_GCJ="-z nodefs"
15724 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"
15725 else
15726 # Determine the default libpath from the value encoded in an empty executable.
15727 cat >conftest.$ac_ext <<_ACEOF
15728#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015734
John Criswell47fdd832003-07-14 16:52:07 +000015735int
15736main ()
15737{
15738
15739 ;
15740 return 0;
15741}
15742_ACEOF
15743rm -f conftest.$ac_objext conftest$ac_exeext
15744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -s conftest$ac_exeext'
15750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755
15756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15757}'`
15758# Check for a 64-bit object if we didn't find anything.
15759if 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; }
15760}'`; fi
15761else
15762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015763sed 's/^/| /' conftest.$ac_ext >&5
15764
John Criswell47fdd832003-07-14 16:52:07 +000015765fi
15766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15768
15769 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15770 # Warning - without using the other run time loading flags,
15771 # -berok will link without error, but may produce a broken library.
15772 no_undefined_flag_GCJ=' ${wl}-bernotok'
15773 allow_undefined_flag_GCJ=' ${wl}-berok'
15774 # -bexpall does not export symbols beginning with underscore (_)
15775 always_export_symbols_GCJ=yes
15776 # Exported symbols can be pulled into shared objects from archives
15777 whole_archive_flag_spec_GCJ=' '
15778 archive_cmds_need_lc_GCJ=yes
15779 # This is similar to how AIX traditionally builds it's shared libraries.
15780 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'
15781 fi
15782 fi
15783 ;;
15784
15785 amigaos*)
15786 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)'
15787 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15788 hardcode_minus_L_GCJ=yes
15789 # see comment about different semantics on the GNU ld section
15790 ld_shlibs_GCJ=no
15791 ;;
15792
15793 bsdi4*)
15794 export_dynamic_flag_spec_GCJ=-rdynamic
15795 ;;
15796
15797 cygwin* | mingw* | pw32*)
15798 # When not using gcc, we currently assume that we are using
15799 # Microsoft Visual C++.
15800 # hardcode_libdir_flag_spec is actually meaningless, as there is
15801 # no search path for DLLs.
15802 hardcode_libdir_flag_spec_GCJ=' '
15803 allow_undefined_flag_GCJ=unsupported
15804 # Tell ltmain to make .lib files, not .a files.
15805 libext=lib
15806 # Tell ltmain to make .dll files, not .so files.
15807 shrext=".dll"
15808 # FIXME: Setting linknames here is a bad hack.
15809 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15810 # The linker will automatically build a .lib file if we build a DLL.
15811 old_archive_From_new_cmds_GCJ='true'
15812 # FIXME: Should let the user specify the lib program.
15813 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15814 fix_srcfile_path='`cygpath -w "$srcfile"`'
15815 enable_shared_with_static_runtimes_GCJ=yes
15816 ;;
15817
15818 darwin* | rhapsody*)
15819 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15820 archive_cmds_need_lc_GCJ=no
15821 case "$host_os" in
15822 rhapsody* | darwin1.[012])
15823 allow_undefined_flag_GCJ='-undefined suppress'
15824 ;;
15825 *) # Darwin 1.3 on
15826 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15827 ;;
15828 esac
15829 # FIXME: Relying on posixy $() will cause problems for
15830 # cross-compilation, but unfortunately the echo tests do not
15831 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15832 # `"' quotes if we put them in here... so don't!
15833 lt_int_apple_cc_single_mod=no
15834 output_verbose_link_cmd='echo'
15835 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15836 lt_int_apple_cc_single_mod=yes
15837 fi
15838 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15839 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15840 else
15841 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'
15842 fi
15843 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15844 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15845 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15846 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}'
15847 else
15848 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}'
15849 fi
15850 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}'
15851 hardcode_direct_GCJ=no
15852 hardcode_automatic_GCJ=yes
15853 hardcode_shlibpath_var_GCJ=unsupported
15854 whole_archive_flag_spec_GCJ='-all_load $convenience'
15855 link_all_deplibs_GCJ=yes
15856 fi
15857 ;;
15858
15859 dgux*)
15860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15862 hardcode_shlibpath_var_GCJ=no
15863 ;;
15864
15865 freebsd1*)
15866 ld_shlibs_GCJ=no
15867 ;;
15868
15869 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15870 # support. Future versions do this automatically, but an explicit c++rt0.o
15871 # does not break anything, and helps significantly (at the cost of a little
15872 # extra space).
15873 freebsd2.2*)
15874 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15876 hardcode_direct_GCJ=yes
15877 hardcode_shlibpath_var_GCJ=no
15878 ;;
15879
15880 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15881 freebsd2*)
15882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15883 hardcode_direct_GCJ=yes
15884 hardcode_minus_L_GCJ=yes
15885 hardcode_shlibpath_var_GCJ=no
15886 ;;
15887
15888 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15889 freebsd*)
15890 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15892 hardcode_direct_GCJ=yes
15893 hardcode_shlibpath_var_GCJ=no
15894 ;;
15895
15896 hpux9*)
15897 if test "$GCC" = yes; then
15898 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'
15899 else
15900 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'
15901 fi
15902 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15903 hardcode_libdir_separator_GCJ=:
15904 hardcode_direct_GCJ=yes
15905
15906 # hardcode_minus_L: Not really in the search PATH,
15907 # but as the default location of the library.
15908 hardcode_minus_L_GCJ=yes
15909 export_dynamic_flag_spec_GCJ='${wl}-E'
15910 ;;
15911
15912 hpux10* | hpux11*)
15913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15914 case "$host_cpu" in
15915 hppa*64*|ia64*)
15916 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 ;;
15918 *)
15919 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15920 ;;
15921 esac
15922 else
15923 case "$host_cpu" in
15924 hppa*64*|ia64*)
15925 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15926 ;;
15927 *)
15928 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15929 ;;
15930 esac
15931 fi
15932 if test "$with_gnu_ld" = no; then
15933 case "$host_cpu" in
15934 hppa*64*)
15935 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15936 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15937 hardcode_libdir_separator_GCJ=:
15938 hardcode_direct_GCJ=no
15939 hardcode_shlibpath_var_GCJ=no
15940 ;;
15941 ia64*)
15942 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15943 hardcode_direct_GCJ=no
15944 hardcode_shlibpath_var_GCJ=no
15945
15946 # hardcode_minus_L: Not really in the search PATH,
15947 # but as the default location of the library.
15948 hardcode_minus_L_GCJ=yes
15949 ;;
15950 *)
15951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15952 hardcode_libdir_separator_GCJ=:
15953 hardcode_direct_GCJ=yes
15954 export_dynamic_flag_spec_GCJ='${wl}-E'
15955
15956 # hardcode_minus_L: Not really in the search PATH,
15957 # but as the default location of the library.
15958 hardcode_minus_L_GCJ=yes
15959 ;;
15960 esac
15961 fi
15962 ;;
15963
15964 irix5* | irix6* | nonstopux*)
15965 if test "$GCC" = yes; then
15966 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'
15967 else
15968 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'
15969 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15970 fi
15971 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15972 hardcode_libdir_separator_GCJ=:
15973 link_all_deplibs_GCJ=yes
15974 ;;
15975
15976 netbsd*)
15977 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15979 else
15980 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15981 fi
15982 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15983 hardcode_direct_GCJ=yes
15984 hardcode_shlibpath_var_GCJ=no
15985 ;;
15986
15987 newsos6)
15988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15989 hardcode_direct_GCJ=yes
15990 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15991 hardcode_libdir_separator_GCJ=:
15992 hardcode_shlibpath_var_GCJ=no
15993 ;;
15994
15995 openbsd*)
15996 hardcode_direct_GCJ=yes
15997 hardcode_shlibpath_var_GCJ=no
15998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15999 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16001 export_dynamic_flag_spec_GCJ='${wl}-E'
16002 else
16003 case $host_os in
16004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16006 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16007 ;;
16008 *)
16009 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16010 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16011 ;;
16012 esac
16013 fi
16014 ;;
16015
16016 os2*)
16017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16018 hardcode_minus_L_GCJ=yes
16019 allow_undefined_flag_GCJ=unsupported
16020 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'
16021 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16022 ;;
16023
16024 osf3*)
16025 if test "$GCC" = yes; then
16026 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16027 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16028 else
16029 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16030 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'
16031 fi
16032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16033 hardcode_libdir_separator_GCJ=:
16034 ;;
16035
16036 osf4* | osf5*) # as osf3* with the addition of -msym flag
16037 if test "$GCC" = yes; then
16038 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16039 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'
16040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16041 else
16042 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16043 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'
16044 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~
16045 $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'
16046
16047 # Both c and cxx compiler support -rpath directly
16048 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16049 fi
16050 hardcode_libdir_separator_GCJ=:
16051 ;;
16052
16053 sco3.2v5*)
16054 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16055 hardcode_shlibpath_var_GCJ=no
16056 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16057 runpath_var=LD_RUN_PATH
16058 hardcode_runpath_var=yes
16059 ;;
16060
16061 solaris*)
16062 no_undefined_flag_GCJ=' -z text'
16063 if test "$GCC" = yes; then
16064 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16066 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16067 else
16068 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16071 fi
16072 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16073 hardcode_shlibpath_var_GCJ=no
16074 case $host_os in
16075 solaris2.[0-5] | solaris2.[0-5].*) ;;
16076 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16077 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16078 esac
16079 link_all_deplibs_GCJ=yes
16080 ;;
16081
16082 sunos4*)
16083 if test "x$host_vendor" = xsequent; then
16084 # Use $CC to link under sequent, because it throws in some extra .o
16085 # files that make .init and .fini sections work.
16086 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16087 else
16088 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16089 fi
16090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16091 hardcode_direct_GCJ=yes
16092 hardcode_minus_L_GCJ=yes
16093 hardcode_shlibpath_var_GCJ=no
16094 ;;
16095
16096 sysv4)
16097 case $host_vendor in
16098 sni)
16099 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16100 hardcode_direct_GCJ=yes # is this really true???
16101 ;;
16102 siemens)
16103 ## LD is ld it makes a PLAMLIB
16104 ## CC just makes a GrossModule.
16105 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16106 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16107 hardcode_direct_GCJ=no
16108 ;;
16109 motorola)
16110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16112 ;;
16113 esac
16114 runpath_var='LD_RUN_PATH'
16115 hardcode_shlibpath_var_GCJ=no
16116 ;;
16117
16118 sysv4.3*)
16119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_shlibpath_var_GCJ=no
16121 export_dynamic_flag_spec_GCJ='-Bexport'
16122 ;;
16123
16124 sysv4*MP*)
16125 if test -d /usr/nec; then
16126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_shlibpath_var_GCJ=no
16128 runpath_var=LD_RUN_PATH
16129 hardcode_runpath_var=yes
16130 ld_shlibs_GCJ=yes
16131 fi
16132 ;;
16133
16134 sysv4.2uw2*)
16135 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16136 hardcode_direct_GCJ=yes
16137 hardcode_minus_L_GCJ=no
16138 hardcode_shlibpath_var_GCJ=no
16139 hardcode_runpath_var=yes
16140 runpath_var=LD_RUN_PATH
16141 ;;
16142
16143 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16144 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16145 if test "$GCC" = yes; then
16146 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16147 else
16148 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 fi
16150 runpath_var='LD_RUN_PATH'
16151 hardcode_shlibpath_var_GCJ=no
16152 ;;
16153
16154 sysv5*)
16155 no_undefined_flag_GCJ=' -z text'
16156 # $CC -shared without GNU ld will not create a library from C++
16157 # object files and a static libstdc++, better avoid it by now
16158 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16160 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16161 hardcode_libdir_flag_spec_GCJ=
16162 hardcode_shlibpath_var_GCJ=no
16163 runpath_var='LD_RUN_PATH'
16164 ;;
16165
16166 uts4*)
16167 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16168 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16169 hardcode_shlibpath_var_GCJ=no
16170 ;;
16171
16172 *)
16173 ld_shlibs_GCJ=no
16174 ;;
16175 esac
16176 fi
16177
16178echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16179echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16180test "$ld_shlibs_GCJ" = no && can_build_shared=no
16181
16182variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16183if test "$GCC" = yes; then
16184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16185fi
16186
16187#
16188# Do we need to explicitly link libc?
16189#
16190case "x$archive_cmds_need_lc_GCJ" in
16191x|xyes)
16192 # Assume -lc should be added
16193 archive_cmds_need_lc_GCJ=yes
16194
16195 if test "$enable_shared" = yes && test "$GCC" = yes; then
16196 case $archive_cmds_GCJ in
16197 *'~'*)
16198 # FIXME: we may have to deal with multi-command sequences.
16199 ;;
16200 '$CC '*)
16201 # Test whether the compiler implicitly links with -lc since on some
16202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16203 # to ld, don't add -lc before -lgcc.
16204 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16205echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16206 $rm conftest*
16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16208
16209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } 2>conftest.err; then
16214 soname=conftest
16215 lib=conftest
16216 libobjs=conftest.$ac_objext
16217 deplibs=
16218 wl=$lt_prog_compiler_wl_GCJ
16219 compiler_flags=-v
16220 linker_flags=-v
16221 verstring=
16222 output_objdir=.
16223 libname=conftest
16224 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16225 allow_undefined_flag_GCJ=
16226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16227 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }
16231 then
16232 archive_cmds_need_lc_GCJ=no
16233 else
16234 archive_cmds_need_lc_GCJ=yes
16235 fi
16236 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16237 else
16238 cat conftest.err 1>&5
16239 fi
16240 $rm conftest*
16241 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16242echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16243 ;;
16244 esac
16245 fi
16246 ;;
16247esac
16248
16249echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16250echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16251hardcode_action_GCJ=
16252if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16253 test -n "$runpath_var GCJ" || \
16254 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16255
16256 # We can hardcode non-existant directories.
16257 if test "$hardcode_direct_GCJ" != no &&
16258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16259 # have to relink, otherwise we might link with an installed library
16260 # when we should be linking with a yet-to-be-installed one
16261 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16262 test "$hardcode_minus_L_GCJ" != no; then
16263 # Linking always hardcodes the temporary library directory.
16264 hardcode_action_GCJ=relink
16265 else
16266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16267 hardcode_action_GCJ=immediate
16268 fi
16269else
16270 # We cannot hardcode anything, or else we can only hardcode existing
16271 # directories.
16272 hardcode_action_GCJ=unsupported
16273fi
16274echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16275echo "${ECHO_T}$hardcode_action_GCJ" >&6
16276
16277if test "$hardcode_action_GCJ" = relink; then
16278 # Fast installation is not supported
16279 enable_fast_install=no
16280elif test "$shlibpath_overrides_runpath" = yes ||
16281 test "$enable_shared" = no; then
16282 # Fast installation is not necessary
16283 enable_fast_install=needless
16284fi
16285
16286striplib=
16287old_striplib=
16288echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16289echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16290if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16291 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16292 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16293 echo "$as_me:$LINENO: result: yes" >&5
16294echo "${ECHO_T}yes" >&6
16295else
16296# FIXME - insert some real tests, host_os isn't really good enough
16297 case $host_os in
16298 darwin*)
16299 if test -n "$STRIP" ; then
16300 striplib="$STRIP -x"
16301 echo "$as_me:$LINENO: result: yes" >&5
16302echo "${ECHO_T}yes" >&6
16303 else
16304 echo "$as_me:$LINENO: result: no" >&5
16305echo "${ECHO_T}no" >&6
16306fi
16307 ;;
16308 *)
16309 echo "$as_me:$LINENO: result: no" >&5
16310echo "${ECHO_T}no" >&6
16311 ;;
16312 esac
16313fi
16314
16315echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16316echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16317library_names_spec=
16318libname_spec='lib$name'
16319soname_spec=
16320shrext=".so"
16321postinstall_cmds=
16322postuninstall_cmds=
16323finish_cmds=
16324finish_eval=
16325shlibpath_var=
16326shlibpath_overrides_runpath=unknown
16327version_type=none
16328dynamic_linker="$host_os ld.so"
16329sys_lib_dlsearch_path_spec="/lib /usr/lib"
16330if test "$GCC" = yes; then
16331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16332 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16333 # if the path contains ";" then we assume it to be the separator
16334 # otherwise default to the standard path separator (i.e. ":") - it is
16335 # assumed that no part of a normal pathname contains ";" but that should
16336 # okay in the real world where ";" in dirpaths is itself problematic.
16337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16338 else
16339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16340 fi
16341else
16342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16343fi
16344need_lib_prefix=unknown
16345hardcode_into_libs=no
16346
16347# when you set need_version to no, make sure it does not cause -set_version
16348# flags to be left without arguments
16349need_version=unknown
16350
16351case $host_os in
16352aix3*)
16353 version_type=linux
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16355 shlibpath_var=LIBPATH
16356
16357 # AIX 3 has no versioning support, so we append a major version to the name.
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 ;;
16360
16361aix4* | aix5*)
16362 version_type=linux
16363 need_lib_prefix=no
16364 need_version=no
16365 hardcode_into_libs=yes
16366 if test "$host_cpu" = ia64; then
16367 # AIX 5 supports IA64
16368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 else
16371 # With GCC up to 2.95.x, collect2 would create an import file
16372 # for dependence libraries. The import file would start with
16373 # the line `#! .'. This would cause the generated library to
16374 # depend on `.', always an invalid library. This was fixed in
16375 # development snapshots of GCC prior to 3.0.
16376 case $host_os in
16377 aix4 | aix4.[01] | aix4.[01].*)
16378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16379 echo ' yes '
16380 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16381 :
16382 else
16383 can_build_shared=no
16384 fi
16385 ;;
16386 esac
16387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16388 # soname into executable. Probably we can add versioning support to
16389 # collect2, so additional links can be useful in future.
16390 if test "$aix_use_runtimelinking" = yes; then
16391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16392 # instead of lib<name>.a to let people know that these are not
16393 # typical AIX shared libraries.
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16395 else
16396 # We preserve .a as extension for shared libraries through AIX4.2
16397 # and later when we are not doing run time linking.
16398 library_names_spec='${libname}${release}.a $libname.a'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 fi
16401 shlibpath_var=LIBPATH
16402 fi
16403 ;;
16404
16405amigaos*)
16406 library_names_spec='$libname.ixlibrary $libname.a'
16407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16408 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'
16409 ;;
16410
16411beos*)
16412 library_names_spec='${libname}${shared_ext}'
16413 dynamic_linker="$host_os ld.so"
16414 shlibpath_var=LIBRARY_PATH
16415 ;;
16416
16417bsdi4*)
16418 version_type=linux
16419 need_version=no
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16425 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16426 # the default ld.so.conf also contains /usr/contrib/lib and
16427 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16428 # libtool to hard-code these into programs
16429 ;;
16430
16431cygwin* | mingw* | pw32*)
16432 version_type=windows
16433 shrext=".dll"
16434 need_version=no
16435 need_lib_prefix=no
16436
16437 case $GCC,$host_os in
16438 yes,cygwin* | yes,mingw* | yes,pw32*)
16439 library_names_spec='$libname.dll.a'
16440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16441 postinstall_cmds='base_file=`basename \${file}`~
16442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16443 dldir=$destdir/`dirname \$dlpath`~
16444 test -d \$dldir || mkdir -p \$dldir~
16445 $install_prog $dir/$dlname \$dldir/$dlname'
16446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16447 dlpath=$dir/\$dldll~
16448 $rm \$dlpath'
16449 shlibpath_overrides_runpath=yes
16450
16451 case $host_os in
16452 cygwin*)
16453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16454 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16456 ;;
16457 mingw*)
16458 # MinGW DLLs use traditional 'lib' prefix
16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16461 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16462 # It is most probably a Windows format PATH printed by
16463 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16464 # path with ; separators, and with drive letters. We can handle the
16465 # drive letters (cygwin fileutils understands them), so leave them,
16466 # especially as we might pass files found there to a mingw objdump,
16467 # which wouldn't understand a cygwinified path. Ahh.
16468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16469 else
16470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16471 fi
16472 ;;
16473 pw32*)
16474 # pw32 DLLs use 'pw' prefix rather than 'lib'
16475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16476 ;;
16477 esac
16478 ;;
16479
16480 *)
16481 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16482 ;;
16483 esac
16484 dynamic_linker='Win32 ld.exe'
16485 # FIXME: first we should search . and the directory the executable is in
16486 shlibpath_var=PATH
16487 ;;
16488
16489darwin* | rhapsody*)
16490 dynamic_linker="$host_os dyld"
16491 version_type=darwin
16492 need_lib_prefix=no
16493 need_version=no
16494 # FIXME: Relying on posixy $() will cause problems for
16495 # cross-compilation, but unfortunately the echo tests do not
16496 # yet detect zsh echo's removal of \ escapes.
16497 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16498 soname_spec='${libname}${release}${major}$shared_ext'
16499 shlibpath_overrides_runpath=yes
16500 shlibpath_var=DYLD_LIBRARY_PATH
16501 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16502 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16503 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16504 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"`
16505 fi
16506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16507 ;;
16508
16509dgux*)
16510 version_type=linux
16511 need_lib_prefix=no
16512 need_version=no
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 ;;
16517
16518freebsd1*)
16519 dynamic_linker=no
16520 ;;
16521
16522freebsd*)
16523 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16524 version_type=freebsd-$objformat
16525 case $version_type in
16526 freebsd-elf*)
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16528 need_version=no
16529 need_lib_prefix=no
16530 ;;
16531 freebsd-*)
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16533 need_version=yes
16534 ;;
16535 esac
16536 shlibpath_var=LD_LIBRARY_PATH
16537 case $host_os in
16538 freebsd2*)
16539 shlibpath_overrides_runpath=yes
16540 ;;
16541 freebsd3.01* | freebsdelf3.01*)
16542 shlibpath_overrides_runpath=yes
16543 hardcode_into_libs=yes
16544 ;;
16545 *) # from 3.2 on
16546 shlibpath_overrides_runpath=no
16547 hardcode_into_libs=yes
16548 ;;
16549 esac
16550 ;;
16551
16552gnu*)
16553 version_type=linux
16554 need_lib_prefix=no
16555 need_version=no
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 shlibpath_var=LD_LIBRARY_PATH
16559 hardcode_into_libs=yes
16560 ;;
16561
16562hpux9* | hpux10* | hpux11*)
16563 # Give a soname corresponding to the major version so that dld.sl refuses to
16564 # link against other versions.
16565 version_type=sunos
16566 need_lib_prefix=no
16567 need_version=no
16568 case "$host_cpu" in
16569 ia64*)
16570 shrext='.so'
16571 hardcode_into_libs=yes
16572 dynamic_linker="$host_os dld.so"
16573 shlibpath_var=LD_LIBRARY_PATH
16574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 soname_spec='${libname}${release}${shared_ext}$major'
16577 if test "X$HPUX_IA64_MODE" = X32; then
16578 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16579 else
16580 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16581 fi
16582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16583 ;;
16584 hppa*64*)
16585 shrext='.sl'
16586 hardcode_into_libs=yes
16587 dynamic_linker="$host_os dld.sl"
16588 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16589 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16591 soname_spec='${libname}${release}${shared_ext}$major'
16592 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16593 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16594 ;;
16595 *)
16596 shrext='.sl'
16597 dynamic_linker="$host_os dld.sl"
16598 shlibpath_var=SHLIB_PATH
16599 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16601 soname_spec='${libname}${release}${shared_ext}$major'
16602 ;;
16603 esac
16604 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16605 postinstall_cmds='chmod 555 $lib'
16606 ;;
16607
16608irix5* | irix6* | nonstopux*)
16609 case $host_os in
16610 nonstopux*) version_type=nonstopux ;;
16611 *)
16612 if test "$lt_cv_prog_gnu_ld" = yes; then
16613 version_type=linux
16614 else
16615 version_type=irix
16616 fi ;;
16617 esac
16618 need_lib_prefix=no
16619 need_version=no
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16622 case $host_os in
16623 irix5* | nonstopux*)
16624 libsuff= shlibsuff=
16625 ;;
16626 *)
16627 case $LD in # libtool.m4 will add one of these switches to LD
16628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16629 libsuff= shlibsuff= libmagic=32-bit;;
16630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16631 libsuff=32 shlibsuff=N32 libmagic=N32;;
16632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16634 *) libsuff= shlibsuff= libmagic=never-match;;
16635 esac
16636 ;;
16637 esac
16638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16639 shlibpath_overrides_runpath=no
16640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16642 hardcode_into_libs=yes
16643 ;;
16644
16645# No shared lib support for Linux oldld, aout, or coff.
16646linux*oldld* | linux*aout* | linux*coff*)
16647 dynamic_linker=no
16648 ;;
16649
16650# This must be Linux ELF.
16651linux*)
16652 version_type=linux
16653 need_lib_prefix=no
16654 need_version=no
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16658 shlibpath_var=LD_LIBRARY_PATH
16659 shlibpath_overrides_runpath=no
16660 # This implies no fast_install, which is unacceptable.
16661 # Some rework will be needed to allow for fast_install
16662 # before this can be enabled.
16663 hardcode_into_libs=yes
16664
16665 # We used to test for /lib/ld.so.1 and disable shared libraries on
16666 # powerpc, because MkLinux only supported shared libraries with the
16667 # GNU dynamic linker. Since this was broken with cross compilers,
16668 # most powerpc-linux boxes support dynamic linking these days and
16669 # people can always --disable-shared, the test was removed, and we
16670 # assume the GNU/Linux dynamic linker is in use.
16671 dynamic_linker='GNU/Linux ld.so'
16672 ;;
16673
16674netbsd*)
16675 version_type=sunos
16676 need_lib_prefix=no
16677 need_version=no
16678 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16681 dynamic_linker='NetBSD (a.out) ld.so'
16682 else
16683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16684 soname_spec='${libname}${release}${shared_ext}$major'
16685 dynamic_linker='NetBSD ld.elf_so'
16686 fi
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 hardcode_into_libs=yes
16690 ;;
16691
16692newsos6)
16693 version_type=linux
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 shlibpath_var=LD_LIBRARY_PATH
16696 shlibpath_overrides_runpath=yes
16697 ;;
16698
16699nto-qnx)
16700 version_type=linux
16701 need_lib_prefix=no
16702 need_version=no
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes
16707 ;;
16708
16709openbsd*)
16710 version_type=sunos
16711 need_lib_prefix=no
16712 need_version=no
16713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16715 shlibpath_var=LD_LIBRARY_PATH
16716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16717 case $host_os in
16718 openbsd2.[89] | openbsd2.[89].*)
16719 shlibpath_overrides_runpath=no
16720 ;;
16721 *)
16722 shlibpath_overrides_runpath=yes
16723 ;;
16724 esac
16725 else
16726 shlibpath_overrides_runpath=yes
16727 fi
16728 ;;
16729
16730os2*)
16731 libname_spec='$name'
16732 shrext=".dll"
16733 need_lib_prefix=no
16734 library_names_spec='$libname${shared_ext} $libname.a'
16735 dynamic_linker='OS/2 ld.exe'
16736 shlibpath_var=LIBPATH
16737 ;;
16738
16739osf3* | osf4* | osf5*)
16740 version_type=osf
16741 need_lib_prefix=no
16742 need_version=no
16743 soname_spec='${libname}${release}${shared_ext}$major'
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16748 ;;
16749
16750sco3.2v5*)
16751 version_type=osf
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 shlibpath_var=LD_LIBRARY_PATH
16755 ;;
16756
16757solaris*)
16758 version_type=linux
16759 need_lib_prefix=no
16760 need_version=no
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 shlibpath_overrides_runpath=yes
16765 hardcode_into_libs=yes
16766 # ldd complains unless libraries are executable
16767 postinstall_cmds='chmod +x $lib'
16768 ;;
16769
16770sunos4*)
16771 version_type=sunos
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16774 shlibpath_var=LD_LIBRARY_PATH
16775 shlibpath_overrides_runpath=yes
16776 if test "$with_gnu_ld" = yes; then
16777 need_lib_prefix=no
16778 fi
16779 need_version=yes
16780 ;;
16781
16782sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16783 version_type=linux
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 soname_spec='${libname}${release}${shared_ext}$major'
16786 shlibpath_var=LD_LIBRARY_PATH
16787 case $host_vendor in
16788 sni)
16789 shlibpath_overrides_runpath=no
16790 need_lib_prefix=no
16791 export_dynamic_flag_spec='${wl}-Blargedynsym'
16792 runpath_var=LD_RUN_PATH
16793 ;;
16794 siemens)
16795 need_lib_prefix=no
16796 ;;
16797 motorola)
16798 need_lib_prefix=no
16799 need_version=no
16800 shlibpath_overrides_runpath=no
16801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16802 ;;
16803 esac
16804 ;;
16805
16806sysv4*MP*)
16807 if test -d /usr/nec ;then
16808 version_type=linux
16809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16810 soname_spec='$libname${shared_ext}.$major'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 fi
16813 ;;
16814
16815uts4*)
16816 version_type=linux
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 ;;
16821
16822*)
16823 dynamic_linker=no
16824 ;;
16825esac
16826echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16827echo "${ECHO_T}$dynamic_linker" >&6
16828test "$dynamic_linker" = no && can_build_shared=no
16829
16830if test "x$enable_dlopen" != xyes; then
16831 enable_dlopen=unknown
16832 enable_dlopen_self=unknown
16833 enable_dlopen_self_static=unknown
16834else
16835 lt_cv_dlopen=no
16836 lt_cv_dlopen_libs=
16837
16838 case $host_os in
16839 beos*)
16840 lt_cv_dlopen="load_add_on"
16841 lt_cv_dlopen_libs=
16842 lt_cv_dlopen_self=yes
16843 ;;
16844
16845 mingw* | pw32*)
16846 lt_cv_dlopen="LoadLibrary"
16847 lt_cv_dlopen_libs=
16848 ;;
16849
16850 cygwin*)
16851 lt_cv_dlopen="dlopen"
16852 lt_cv_dlopen_libs=
16853 ;;
16854
16855 darwin*)
16856 # if libdl is installed we need to link against it
16857 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861else
16862 ac_check_lib_save_LIBS=$LIBS
16863LIBS="-ldl $LIBS"
16864cat >conftest.$ac_ext <<_ACEOF
16865#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016866/* confdefs.h. */
16867_ACEOF
16868cat confdefs.h >>conftest.$ac_ext
16869cat >>conftest.$ac_ext <<_ACEOF
16870/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016871
16872/* Override any gcc2 internal prototype to avoid an error. */
16873#ifdef __cplusplus
16874extern "C"
16875#endif
16876/* We use char because int might match the return type of a gcc2
16877 builtin and then its argument prototype would still apply. */
16878char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016879int
16880main ()
16881{
16882dlopen ();
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
16888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889 (eval $ac_link) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_lib_dl_dlopen=yes
16900else
16901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016902sed 's/^/| /' conftest.$ac_ext >&5
16903
John Criswell47fdd832003-07-14 16:52:07 +000016904ac_cv_lib_dl_dlopen=no
16905fi
16906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16907LIBS=$ac_check_lib_save_LIBS
16908fi
16909echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16910echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16911if test $ac_cv_lib_dl_dlopen = yes; then
16912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16913else
16914
16915 lt_cv_dlopen="dyld"
16916 lt_cv_dlopen_libs=
16917 lt_cv_dlopen_self=yes
16918
16919fi
16920
16921 ;;
16922
16923 *)
16924 echo "$as_me:$LINENO: checking for shl_load" >&5
16925echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16926if test "${ac_cv_func_shl_load+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928else
16929 cat >conftest.$ac_ext <<_ACEOF
16930#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016931/* confdefs.h. */
16932_ACEOF
16933cat confdefs.h >>conftest.$ac_ext
16934cat >>conftest.$ac_ext <<_ACEOF
16935/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016936/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016937 which can conflict with char shl_load (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16940#ifdef __STDC__
16941# include <limits.h>
16942#else
16943# include <assert.h>
16944#endif
John Criswell47fdd832003-07-14 16:52:07 +000016945/* Override any gcc2 internal prototype to avoid an error. */
16946#ifdef __cplusplus
16947extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016948{
John Criswell47fdd832003-07-14 16:52:07 +000016949#endif
16950/* We use char because int might match the return type of a gcc2
16951 builtin and then its argument prototype would still apply. */
16952char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016953/* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956#if defined (__stub_shl_load) || defined (__stub___shl_load)
16957choke me
16958#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016959char (*f) () = shl_load;
16960#endif
16961#ifdef __cplusplus
16962}
John Criswell47fdd832003-07-14 16:52:07 +000016963#endif
16964
John Criswell0c38eaf2003-09-10 15:17:25 +000016965int
16966main ()
16967{
16968return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016969 ;
16970 return 0;
16971}
16972_ACEOF
16973rm -f conftest.$ac_objext conftest$ac_exeext
16974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975 (eval $ac_link) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -s conftest$ac_exeext'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; }; then
16985 ac_cv_func_shl_load=yes
16986else
16987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016988sed 's/^/| /' conftest.$ac_ext >&5
16989
John Criswell47fdd832003-07-14 16:52:07 +000016990ac_cv_func_shl_load=no
16991fi
16992rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16993fi
16994echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16995echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16996if test $ac_cv_func_shl_load = yes; then
16997 lt_cv_dlopen="shl_load"
16998else
16999 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17000echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17001if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 ac_check_lib_save_LIBS=$LIBS
17005LIBS="-ldld $LIBS"
17006cat >conftest.$ac_ext <<_ACEOF
17007#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017013
17014/* Override any gcc2 internal prototype to avoid an error. */
17015#ifdef __cplusplus
17016extern "C"
17017#endif
17018/* We use char because int might match the return type of a gcc2
17019 builtin and then its argument prototype would still apply. */
17020char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017021int
17022main ()
17023{
17024shl_load ();
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext conftest$ac_exeext
17030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031 (eval $ac_link) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -s conftest$ac_exeext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_lib_dld_shl_load=yes
17042else
17043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017044sed 's/^/| /' conftest.$ac_ext >&5
17045
John Criswell47fdd832003-07-14 16:52:07 +000017046ac_cv_lib_dld_shl_load=no
17047fi
17048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049LIBS=$ac_check_lib_save_LIBS
17050fi
17051echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17052echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17053if test $ac_cv_lib_dld_shl_load = yes; then
17054 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17055else
17056 echo "$as_me:$LINENO: checking for dlopen" >&5
17057echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17058if test "${ac_cv_func_dlopen+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17060else
17061 cat >conftest.$ac_ext <<_ACEOF
17062#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017068/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017069 which can conflict with char dlopen (); below.
17070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071 <limits.h> exists even on freestanding compilers. */
17072#ifdef __STDC__
17073# include <limits.h>
17074#else
17075# include <assert.h>
17076#endif
John Criswell47fdd832003-07-14 16:52:07 +000017077/* Override any gcc2 internal prototype to avoid an error. */
17078#ifdef __cplusplus
17079extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017080{
John Criswell47fdd832003-07-14 16:52:07 +000017081#endif
17082/* We use char because int might match the return type of a gcc2
17083 builtin and then its argument prototype would still apply. */
17084char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017085/* The GNU C library defines this for functions which it implements
17086 to always fail with ENOSYS. Some functions are actually named
17087 something starting with __ and the normal name is an alias. */
17088#if defined (__stub_dlopen) || defined (__stub___dlopen)
17089choke me
17090#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017091char (*f) () = dlopen;
17092#endif
17093#ifdef __cplusplus
17094}
John Criswell47fdd832003-07-14 16:52:07 +000017095#endif
17096
John Criswell0c38eaf2003-09-10 15:17:25 +000017097int
17098main ()
17099{
17100return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext conftest$ac_exeext
17106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_func_dlopen=yes
17118else
17119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017120sed 's/^/| /' conftest.$ac_ext >&5
17121
John Criswell47fdd832003-07-14 16:52:07 +000017122ac_cv_func_dlopen=no
17123fi
17124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17125fi
17126echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17127echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17128if test $ac_cv_func_dlopen = yes; then
17129 lt_cv_dlopen="dlopen"
17130else
17131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17132echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17133if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17135else
17136 ac_check_lib_save_LIBS=$LIBS
17137LIBS="-ldl $LIBS"
17138cat >conftest.$ac_ext <<_ACEOF
17139#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017145
17146/* Override any gcc2 internal prototype to avoid an error. */
17147#ifdef __cplusplus
17148extern "C"
17149#endif
17150/* We use char because int might match the return type of a gcc2
17151 builtin and then its argument prototype would still apply. */
17152char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017153int
17154main ()
17155{
17156dlopen ();
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext conftest$ac_exeext
17162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_cv_lib_dl_dlopen=yes
17174else
17175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017176sed 's/^/| /' conftest.$ac_ext >&5
17177
John Criswell47fdd832003-07-14 16:52:07 +000017178ac_cv_lib_dl_dlopen=no
17179fi
17180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17181LIBS=$ac_check_lib_save_LIBS
17182fi
17183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17185if test $ac_cv_lib_dl_dlopen = yes; then
17186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17187else
17188 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17189echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17190if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193 ac_check_lib_save_LIBS=$LIBS
17194LIBS="-lsvld $LIBS"
17195cat >conftest.$ac_ext <<_ACEOF
17196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017202
17203/* Override any gcc2 internal prototype to avoid an error. */
17204#ifdef __cplusplus
17205extern "C"
17206#endif
17207/* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
17209char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017210int
17211main ()
17212{
17213dlopen ();
17214 ;
17215 return 0;
17216}
17217_ACEOF
17218rm -f conftest.$ac_objext conftest$ac_exeext
17219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220 (eval $ac_link) 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_cv_lib_svld_dlopen=yes
17231else
17232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017233sed 's/^/| /' conftest.$ac_ext >&5
17234
John Criswell47fdd832003-07-14 16:52:07 +000017235ac_cv_lib_svld_dlopen=no
17236fi
17237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17238LIBS=$ac_check_lib_save_LIBS
17239fi
17240echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17241echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17242if test $ac_cv_lib_svld_dlopen = yes; then
17243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17244else
17245 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17246echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17247if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17249else
17250 ac_check_lib_save_LIBS=$LIBS
17251LIBS="-ldld $LIBS"
17252cat >conftest.$ac_ext <<_ACEOF
17253#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017259
17260/* Override any gcc2 internal prototype to avoid an error. */
17261#ifdef __cplusplus
17262extern "C"
17263#endif
17264/* We use char because int might match the return type of a gcc2
17265 builtin and then its argument prototype would still apply. */
17266char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017267int
17268main ()
17269{
17270dld_link ();
17271 ;
17272 return 0;
17273}
17274_ACEOF
17275rm -f conftest.$ac_objext conftest$ac_exeext
17276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; }; then
17287 ac_cv_lib_dld_dld_link=yes
17288else
17289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017290sed 's/^/| /' conftest.$ac_ext >&5
17291
John Criswell47fdd832003-07-14 16:52:07 +000017292ac_cv_lib_dld_dld_link=no
17293fi
17294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17295LIBS=$ac_check_lib_save_LIBS
17296fi
17297echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17298echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17299if test $ac_cv_lib_dld_dld_link = yes; then
17300 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17301fi
17302
17303
17304fi
17305
17306
17307fi
17308
17309
17310fi
17311
17312
17313fi
17314
17315
17316fi
17317
17318 ;;
17319 esac
17320
17321 if test "x$lt_cv_dlopen" != xno; then
17322 enable_dlopen=yes
17323 else
17324 enable_dlopen=no
17325 fi
17326
17327 case $lt_cv_dlopen in
17328 dlopen)
17329 save_CPPFLAGS="$CPPFLAGS"
17330 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17331
17332 save_LDFLAGS="$LDFLAGS"
17333 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17334
17335 save_LIBS="$LIBS"
17336 LIBS="$lt_cv_dlopen_libs $LIBS"
17337
17338 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17339echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17340if test "${lt_cv_dlopen_self+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 if test "$cross_compiling" = yes; then :
17344 lt_cv_dlopen_self=cross
17345else
17346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17347 lt_status=$lt_dlunknown
17348 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +000017349#line 17349 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017350#include "confdefs.h"
17351
17352#if HAVE_DLFCN_H
17353#include <dlfcn.h>
17354#endif
17355
17356#include <stdio.h>
17357
17358#ifdef RTLD_GLOBAL
17359# define LT_DLGLOBAL RTLD_GLOBAL
17360#else
17361# ifdef DL_GLOBAL
17362# define LT_DLGLOBAL DL_GLOBAL
17363# else
17364# define LT_DLGLOBAL 0
17365# endif
17366#endif
17367
17368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17369 find out it does not work in some platform. */
17370#ifndef LT_DLLAZY_OR_NOW
17371# ifdef RTLD_LAZY
17372# define LT_DLLAZY_OR_NOW RTLD_LAZY
17373# else
17374# ifdef DL_LAZY
17375# define LT_DLLAZY_OR_NOW DL_LAZY
17376# else
17377# ifdef RTLD_NOW
17378# define LT_DLLAZY_OR_NOW RTLD_NOW
17379# else
17380# ifdef DL_NOW
17381# define LT_DLLAZY_OR_NOW DL_NOW
17382# else
17383# define LT_DLLAZY_OR_NOW 0
17384# endif
17385# endif
17386# endif
17387# endif
17388#endif
17389
17390#ifdef __cplusplus
17391extern "C" void exit (int);
17392#endif
17393
17394void fnord() { int i=42;}
17395int main ()
17396{
17397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17398 int status = $lt_dlunknown;
17399
17400 if (self)
17401 {
17402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17404 /* dlclose (self); */
17405 }
17406
17407 exit (status);
17408}
17409EOF
17410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411 (eval $ac_link) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17415 (./conftest; exit; ) 2>/dev/null
17416 lt_status=$?
17417 case x$lt_status in
17418 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17419 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17420 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17421 esac
17422 else :
17423 # compilation failed
17424 lt_cv_dlopen_self=no
17425 fi
17426fi
17427rm -fr conftest*
17428
17429
17430fi
17431echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17432echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17433
17434 if test "x$lt_cv_dlopen_self" = xyes; then
17435 LDFLAGS="$LDFLAGS $link_static_flag"
17436 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17437echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17438if test "${lt_cv_dlopen_self_static+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 if test "$cross_compiling" = yes; then :
17442 lt_cv_dlopen_self_static=cross
17443else
17444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17445 lt_status=$lt_dlunknown
17446 cat > conftest.$ac_ext <<EOF
John Criswell68886d42003-09-26 19:51:42 +000017447#line 17447 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017448#include "confdefs.h"
17449
17450#if HAVE_DLFCN_H
17451#include <dlfcn.h>
17452#endif
17453
17454#include <stdio.h>
17455
17456#ifdef RTLD_GLOBAL
17457# define LT_DLGLOBAL RTLD_GLOBAL
17458#else
17459# ifdef DL_GLOBAL
17460# define LT_DLGLOBAL DL_GLOBAL
17461# else
17462# define LT_DLGLOBAL 0
17463# endif
17464#endif
17465
17466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17467 find out it does not work in some platform. */
17468#ifndef LT_DLLAZY_OR_NOW
17469# ifdef RTLD_LAZY
17470# define LT_DLLAZY_OR_NOW RTLD_LAZY
17471# else
17472# ifdef DL_LAZY
17473# define LT_DLLAZY_OR_NOW DL_LAZY
17474# else
17475# ifdef RTLD_NOW
17476# define LT_DLLAZY_OR_NOW RTLD_NOW
17477# else
17478# ifdef DL_NOW
17479# define LT_DLLAZY_OR_NOW DL_NOW
17480# else
17481# define LT_DLLAZY_OR_NOW 0
17482# endif
17483# endif
17484# endif
17485# endif
17486#endif
17487
17488#ifdef __cplusplus
17489extern "C" void exit (int);
17490#endif
17491
17492void fnord() { int i=42;}
17493int main ()
17494{
17495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17496 int status = $lt_dlunknown;
17497
17498 if (self)
17499 {
17500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17501 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17502 /* dlclose (self); */
17503 }
17504
17505 exit (status);
17506}
17507EOF
17508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17509 (eval $ac_link) 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17513 (./conftest; exit; ) 2>/dev/null
17514 lt_status=$?
17515 case x$lt_status in
17516 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17517 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17518 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17519 esac
17520 else :
17521 # compilation failed
17522 lt_cv_dlopen_self_static=no
17523 fi
17524fi
17525rm -fr conftest*
17526
17527
17528fi
17529echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17530echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17531 fi
17532
17533 CPPFLAGS="$save_CPPFLAGS"
17534 LDFLAGS="$save_LDFLAGS"
17535 LIBS="$save_LIBS"
17536 ;;
17537 esac
17538
17539 case $lt_cv_dlopen_self in
17540 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17541 *) enable_dlopen_self=unknown ;;
17542 esac
17543
17544 case $lt_cv_dlopen_self_static in
17545 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17546 *) enable_dlopen_self_static=unknown ;;
17547 esac
17548fi
17549
17550
17551# The else clause should only fire when bootstrapping the
17552# libtool distribution, otherwise you forgot to ship ltmain.sh
17553# with your package, and you will get complaints that there are
17554# no rules to generate ltmain.sh.
17555if test -f "$ltmain"; then
17556 # See if we are running on zsh, and set the options which allow our commands through
17557 # without removal of \ escapes.
17558 if test -n "${ZSH_VERSION+set}" ; then
17559 setopt NO_GLOB_SUBST
17560 fi
17561 # Now quote all the things that may contain metacharacters while being
17562 # careful not to overquote the AC_SUBSTed values. We take copies of the
17563 # variables and quote the copies for generation of the libtool script.
17564 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17565 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17566 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17567 deplibs_check_method reload_flag reload_cmds need_locks \
17568 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17569 lt_cv_sys_global_symbol_to_c_name_address \
17570 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17571 old_postinstall_cmds old_postuninstall_cmds \
17572 compiler_GCJ \
17573 CC_GCJ \
17574 LD_GCJ \
17575 lt_prog_compiler_wl_GCJ \
17576 lt_prog_compiler_pic_GCJ \
17577 lt_prog_compiler_static_GCJ \
17578 lt_prog_compiler_no_builtin_flag_GCJ \
17579 export_dynamic_flag_spec_GCJ \
17580 thread_safe_flag_spec_GCJ \
17581 whole_archive_flag_spec_GCJ \
17582 enable_shared_with_static_runtimes_GCJ \
17583 old_archive_cmds_GCJ \
17584 old_archive_from_new_cmds_GCJ \
17585 predep_objects_GCJ \
17586 postdep_objects_GCJ \
17587 predeps_GCJ \
17588 postdeps_GCJ \
17589 compiler_lib_search_path_GCJ \
17590 archive_cmds_GCJ \
17591 archive_expsym_cmds_GCJ \
17592 postinstall_cmds_GCJ \
17593 postuninstall_cmds_GCJ \
17594 old_archive_from_expsyms_cmds_GCJ \
17595 allow_undefined_flag_GCJ \
17596 no_undefined_flag_GCJ \
17597 export_symbols_cmds_GCJ \
17598 hardcode_libdir_flag_spec_GCJ \
17599 hardcode_libdir_flag_spec_ld_GCJ \
17600 hardcode_libdir_separator_GCJ \
17601 hardcode_automatic_GCJ \
17602 module_cmds_GCJ \
17603 module_expsym_cmds_GCJ \
17604 lt_cv_prog_compiler_c_o_GCJ \
17605 exclude_expsyms_GCJ \
17606 include_expsyms_GCJ; do
17607
17608 case $var in
17609 old_archive_cmds_GCJ | \
17610 old_archive_from_new_cmds_GCJ | \
17611 archive_cmds_GCJ | \
17612 archive_expsym_cmds_GCJ | \
17613 module_cmds_GCJ | \
17614 module_expsym_cmds_GCJ | \
17615 old_archive_from_expsyms_cmds_GCJ | \
17616 export_symbols_cmds_GCJ | \
17617 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17618 postinstall_cmds | postuninstall_cmds | \
17619 old_postinstall_cmds | old_postuninstall_cmds | \
17620 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17621 # Double-quote double-evaled strings.
17622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17623 ;;
17624 *)
17625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17626 ;;
17627 esac
17628 done
17629
17630 case $lt_echo in
17631 *'\$0 --fallback-echo"')
17632 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17633 ;;
17634 esac
17635
17636cfgfile="$ofile"
17637
17638 cat <<__EOF__ >> "$cfgfile"
17639# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17640
17641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642
17643# Shell to use when invoking shell scripts.
17644SHELL=$lt_SHELL
17645
17646# Whether or not to build shared libraries.
17647build_libtool_libs=$enable_shared
17648
17649# Whether or not to build static libraries.
17650build_old_libs=$enable_static
17651
17652# Whether or not to add -lc for building shared libraries.
17653build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17654
17655# Whether or not to disallow shared libs when runtime libs are static
17656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17657
17658# Whether or not to optimize for fast installation.
17659fast_install=$enable_fast_install
17660
17661# The host system.
17662host_alias=$host_alias
17663host=$host
17664
17665# An echo program that does not interpret backslashes.
17666echo=$lt_echo
17667
17668# The archiver.
17669AR=$lt_AR
17670AR_FLAGS=$lt_AR_FLAGS
17671
17672# A C compiler.
17673LTCC=$lt_LTCC
17674
17675# A language-specific compiler.
17676CC=$lt_compiler_GCJ
17677
17678# Is the compiler the GNU C compiler?
17679with_gcc=$GCC_GCJ
17680
17681# An ERE matcher.
17682EGREP=$lt_EGREP
17683
17684# The linker used to build libraries.
17685LD=$lt_LD_GCJ
17686
17687# Whether we need hard or soft links.
17688LN_S=$lt_LN_S
17689
17690# A BSD-compatible nm program.
17691NM=$lt_NM
17692
17693# A symbol stripping program
17694STRIP=$STRIP
17695
17696# Used to examine libraries when file_magic_cmd begins "file"
17697MAGIC_CMD=$MAGIC_CMD
17698
17699# Used on cygwin: DLL creation program.
17700DLLTOOL="$DLLTOOL"
17701
17702# Used on cygwin: object dumper.
17703OBJDUMP="$OBJDUMP"
17704
17705# Used on cygwin: assembler.
17706AS="$AS"
17707
17708# The name of the directory that contains temporary libtool files.
17709objdir=$objdir
17710
17711# How to create reloadable object files.
17712reload_flag=$lt_reload_flag
17713reload_cmds=$lt_reload_cmds
17714
17715# How to pass a linker flag through the compiler.
17716wl=$lt_lt_prog_compiler_wl_GCJ
17717
17718# Object file suffix (normally "o").
17719objext="$ac_objext"
17720
17721# Old archive suffix (normally "a").
17722libext="$libext"
17723
17724# Shared library suffix (normally ".so").
17725shrext='$shrext'
17726
17727# Executable file suffix (normally "").
17728exeext="$exeext"
17729
17730# Additional compiler flags for building library objects.
17731pic_flag=$lt_lt_prog_compiler_pic_GCJ
17732pic_mode=$pic_mode
17733
17734# What is the maximum length of a command?
17735max_cmd_len=$lt_cv_sys_max_cmd_len
17736
17737# Does compiler simultaneously support -c and -o options?
17738compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17739
17740# Must we lock files when doing compilation ?
17741need_locks=$lt_need_locks
17742
17743# Do we need the lib prefix for modules?
17744need_lib_prefix=$need_lib_prefix
17745
17746# Do we need a version for libraries?
17747need_version=$need_version
17748
17749# Whether dlopen is supported.
17750dlopen_support=$enable_dlopen
17751
17752# Whether dlopen of programs is supported.
17753dlopen_self=$enable_dlopen_self
17754
17755# Whether dlopen of statically linked programs is supported.
17756dlopen_self_static=$enable_dlopen_self_static
17757
17758# Compiler flag to prevent dynamic linking.
17759link_static_flag=$lt_lt_prog_compiler_static_GCJ
17760
17761# Compiler flag to turn off builtin functions.
17762no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17763
17764# Compiler flag to allow reflexive dlopens.
17765export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17766
17767# Compiler flag to generate shared objects directly from archives.
17768whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17769
17770# Compiler flag to generate thread-safe objects.
17771thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17772
17773# Library versioning type.
17774version_type=$version_type
17775
17776# Format of library name prefix.
17777libname_spec=$lt_libname_spec
17778
17779# List of archive names. First name is the real one, the rest are links.
17780# The last name is the one that the linker finds with -lNAME.
17781library_names_spec=$lt_library_names_spec
17782
17783# The coded name of the library, if different from the real name.
17784soname_spec=$lt_soname_spec
17785
17786# Commands used to build and install an old-style archive.
17787RANLIB=$lt_RANLIB
17788old_archive_cmds=$lt_old_archive_cmds_GCJ
17789old_postinstall_cmds=$lt_old_postinstall_cmds
17790old_postuninstall_cmds=$lt_old_postuninstall_cmds
17791
17792# Create an old-style archive from a shared archive.
17793old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17794
17795# Create a temporary old-style archive to link instead of a shared archive.
17796old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17797
17798# Commands used to build and install a shared archive.
17799archive_cmds=$lt_archive_cmds_GCJ
17800archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17801postinstall_cmds=$lt_postinstall_cmds
17802postuninstall_cmds=$lt_postuninstall_cmds
17803
17804# Commands used to build a loadable module (assumed same as above if empty)
17805module_cmds=$lt_module_cmds_GCJ
17806module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17807
17808# Commands to strip libraries.
17809old_striplib=$lt_old_striplib
17810striplib=$lt_striplib
17811
17812# Dependencies to place before the objects being linked to create a
17813# shared library.
17814predep_objects=$lt_predep_objects_GCJ
17815
17816# Dependencies to place after the objects being linked to create a
17817# shared library.
17818postdep_objects=$lt_postdep_objects_GCJ
17819
17820# Dependencies to place before the objects being linked to create a
17821# shared library.
17822predeps=$lt_predeps_GCJ
17823
17824# Dependencies to place after the objects being linked to create a
17825# shared library.
17826postdeps=$lt_postdeps_GCJ
17827
17828# The library search path used internally by the compiler when linking
17829# a shared library.
17830compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17831
17832# Method to check whether dependent libraries are shared objects.
17833deplibs_check_method=$lt_deplibs_check_method
17834
17835# Command to use when deplibs_check_method == file_magic.
17836file_magic_cmd=$lt_file_magic_cmd
17837
17838# Flag that allows shared libraries with undefined symbols to be built.
17839allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17840
17841# Flag that forces no undefined symbols.
17842no_undefined_flag=$lt_no_undefined_flag_GCJ
17843
17844# Commands used to finish a libtool library installation in a directory.
17845finish_cmds=$lt_finish_cmds
17846
17847# Same as above, but a single script fragment to be evaled but not shown.
17848finish_eval=$lt_finish_eval
17849
17850# Take the output of nm and produce a listing of raw symbols and C names.
17851global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17852
17853# Transform the output of nm in a proper C declaration
17854global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17855
17856# Transform the output of nm in a C name address pair
17857global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17858
17859# This is the shared library runtime path variable.
17860runpath_var=$runpath_var
17861
17862# This is the shared library path variable.
17863shlibpath_var=$shlibpath_var
17864
17865# Is shlibpath searched before the hard-coded library search path?
17866shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17867
17868# How to hardcode a shared library path into an executable.
17869hardcode_action=$hardcode_action_GCJ
17870
17871# Whether we should hardcode library paths into libraries.
17872hardcode_into_libs=$hardcode_into_libs
17873
17874# Flag to hardcode \$libdir into a binary during linking.
17875# This must work even if \$libdir does not exist.
17876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17877
17878# If ld is used when linking, flag to hardcode \$libdir into
17879# a binary during linking. This must work even if \$libdir does
17880# not exist.
17881hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17882
17883# Whether we need a single -rpath flag with a separated argument.
17884hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17885
17886# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17887# resulting binary.
17888hardcode_direct=$hardcode_direct_GCJ
17889
17890# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17891# resulting binary.
17892hardcode_minus_L=$hardcode_minus_L_GCJ
17893
17894# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17895# the resulting binary.
17896hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17897
17898# Set to yes if building a shared library automatically hardcodes DIR into the library
17899# and all subsequent libraries and executables linked against it.
17900hardcode_automatic=$hardcode_automatic_GCJ
17901
17902# Variables whose values should be saved in libtool wrapper scripts and
17903# restored at relink time.
17904variables_saved_for_relink="$variables_saved_for_relink"
17905
17906# Whether libtool must link a program against all its dependency libraries.
17907link_all_deplibs=$link_all_deplibs_GCJ
17908
17909# Compile-time system search path for libraries
17910sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17911
17912# Run-time system search path for libraries
17913sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17914
17915# Fix the shell variable \$srcfile for the compiler.
17916fix_srcfile_path="$fix_srcfile_path_GCJ"
17917
17918# Set to yes if exported symbols are required.
17919always_export_symbols=$always_export_symbols_GCJ
17920
17921# The commands to list exported symbols.
17922export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17923
17924# The commands to extract the exported symbol list from a shared archive.
17925extract_expsyms_cmds=$lt_extract_expsyms_cmds
17926
17927# Symbols that should not be listed in the preloaded symbols.
17928exclude_expsyms=$lt_exclude_expsyms_GCJ
17929
17930# Symbols that must always be exported.
17931include_expsyms=$lt_include_expsyms_GCJ
17932
17933# ### END LIBTOOL TAG CONFIG: $tagname
17934
17935__EOF__
17936
17937
17938else
17939 # If there is no Makefile yet, we rely on a make rule to execute
17940 # `config.status --recheck' to rerun these tests and create the
17941 # libtool script then.
17942 test -f Makefile && make "$ltmain"
17943fi
17944
17945
17946ac_ext=c
17947ac_cpp='$CPP $CPPFLAGS'
17948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951
17952CC="$lt_save_CC"
17953
17954 else
17955 tagname=""
17956 fi
17957 ;;
17958
17959 RC)
17960
17961
17962
17963# Source file extension for RC test sources.
17964ac_ext=rc
17965
17966# Object file extension for compiled RC test sources.
17967objext=o
17968objext_RC=$objext
17969
17970# Code to be used in simple compile tests
17971lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17972
17973# Code to be used in simple link tests
17974lt_simple_link_test_code="$lt_simple_compile_test_code"
17975
17976# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17977
17978# If no C compiler was specified, use CC.
17979LTCC=${LTCC-"$CC"}
17980
17981# Allow CC to be a program name with arguments.
17982compiler=$CC
17983
17984
17985# Allow CC to be a program name with arguments.
17986lt_save_CC="$CC"
17987CC=${RC-"windres"}
17988compiler=$CC
17989compiler_RC=$CC
17990lt_cv_prog_compiler_c_o_RC=yes
17991
17992# The else clause should only fire when bootstrapping the
17993# libtool distribution, otherwise you forgot to ship ltmain.sh
17994# with your package, and you will get complaints that there are
17995# no rules to generate ltmain.sh.
17996if test -f "$ltmain"; then
17997 # See if we are running on zsh, and set the options which allow our commands through
17998 # without removal of \ escapes.
17999 if test -n "${ZSH_VERSION+set}" ; then
18000 setopt NO_GLOB_SUBST
18001 fi
18002 # Now quote all the things that may contain metacharacters while being
18003 # careful not to overquote the AC_SUBSTed values. We take copies of the
18004 # variables and quote the copies for generation of the libtool script.
18005 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18006 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18007 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18008 deplibs_check_method reload_flag reload_cmds need_locks \
18009 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18010 lt_cv_sys_global_symbol_to_c_name_address \
18011 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18012 old_postinstall_cmds old_postuninstall_cmds \
18013 compiler_RC \
18014 CC_RC \
18015 LD_RC \
18016 lt_prog_compiler_wl_RC \
18017 lt_prog_compiler_pic_RC \
18018 lt_prog_compiler_static_RC \
18019 lt_prog_compiler_no_builtin_flag_RC \
18020 export_dynamic_flag_spec_RC \
18021 thread_safe_flag_spec_RC \
18022 whole_archive_flag_spec_RC \
18023 enable_shared_with_static_runtimes_RC \
18024 old_archive_cmds_RC \
18025 old_archive_from_new_cmds_RC \
18026 predep_objects_RC \
18027 postdep_objects_RC \
18028 predeps_RC \
18029 postdeps_RC \
18030 compiler_lib_search_path_RC \
18031 archive_cmds_RC \
18032 archive_expsym_cmds_RC \
18033 postinstall_cmds_RC \
18034 postuninstall_cmds_RC \
18035 old_archive_from_expsyms_cmds_RC \
18036 allow_undefined_flag_RC \
18037 no_undefined_flag_RC \
18038 export_symbols_cmds_RC \
18039 hardcode_libdir_flag_spec_RC \
18040 hardcode_libdir_flag_spec_ld_RC \
18041 hardcode_libdir_separator_RC \
18042 hardcode_automatic_RC \
18043 module_cmds_RC \
18044 module_expsym_cmds_RC \
18045 lt_cv_prog_compiler_c_o_RC \
18046 exclude_expsyms_RC \
18047 include_expsyms_RC; do
18048
18049 case $var in
18050 old_archive_cmds_RC | \
18051 old_archive_from_new_cmds_RC | \
18052 archive_cmds_RC | \
18053 archive_expsym_cmds_RC | \
18054 module_cmds_RC | \
18055 module_expsym_cmds_RC | \
18056 old_archive_from_expsyms_cmds_RC | \
18057 export_symbols_cmds_RC | \
18058 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18059 postinstall_cmds | postuninstall_cmds | \
18060 old_postinstall_cmds | old_postuninstall_cmds | \
18061 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18062 # Double-quote double-evaled strings.
18063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18064 ;;
18065 *)
18066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18067 ;;
18068 esac
18069 done
18070
18071 case $lt_echo in
18072 *'\$0 --fallback-echo"')
18073 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18074 ;;
18075 esac
18076
18077cfgfile="$ofile"
18078
18079 cat <<__EOF__ >> "$cfgfile"
18080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18081
18082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083
18084# Shell to use when invoking shell scripts.
18085SHELL=$lt_SHELL
18086
18087# Whether or not to build shared libraries.
18088build_libtool_libs=$enable_shared
18089
18090# Whether or not to build static libraries.
18091build_old_libs=$enable_static
18092
18093# Whether or not to add -lc for building shared libraries.
18094build_libtool_need_lc=$archive_cmds_need_lc_RC
18095
18096# Whether or not to disallow shared libs when runtime libs are static
18097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18098
18099# Whether or not to optimize for fast installation.
18100fast_install=$enable_fast_install
18101
18102# The host system.
18103host_alias=$host_alias
18104host=$host
18105
18106# An echo program that does not interpret backslashes.
18107echo=$lt_echo
18108
18109# The archiver.
18110AR=$lt_AR
18111AR_FLAGS=$lt_AR_FLAGS
18112
18113# A C compiler.
18114LTCC=$lt_LTCC
18115
18116# A language-specific compiler.
18117CC=$lt_compiler_RC
18118
18119# Is the compiler the GNU C compiler?
18120with_gcc=$GCC_RC
18121
18122# An ERE matcher.
18123EGREP=$lt_EGREP
18124
18125# The linker used to build libraries.
18126LD=$lt_LD_RC
18127
18128# Whether we need hard or soft links.
18129LN_S=$lt_LN_S
18130
18131# A BSD-compatible nm program.
18132NM=$lt_NM
18133
18134# A symbol stripping program
18135STRIP=$STRIP
18136
18137# Used to examine libraries when file_magic_cmd begins "file"
18138MAGIC_CMD=$MAGIC_CMD
18139
18140# Used on cygwin: DLL creation program.
18141DLLTOOL="$DLLTOOL"
18142
18143# Used on cygwin: object dumper.
18144OBJDUMP="$OBJDUMP"
18145
18146# Used on cygwin: assembler.
18147AS="$AS"
18148
18149# The name of the directory that contains temporary libtool files.
18150objdir=$objdir
18151
18152# How to create reloadable object files.
18153reload_flag=$lt_reload_flag
18154reload_cmds=$lt_reload_cmds
18155
18156# How to pass a linker flag through the compiler.
18157wl=$lt_lt_prog_compiler_wl_RC
18158
18159# Object file suffix (normally "o").
18160objext="$ac_objext"
18161
18162# Old archive suffix (normally "a").
18163libext="$libext"
18164
18165# Shared library suffix (normally ".so").
18166shrext='$shrext'
18167
18168# Executable file suffix (normally "").
18169exeext="$exeext"
18170
18171# Additional compiler flags for building library objects.
18172pic_flag=$lt_lt_prog_compiler_pic_RC
18173pic_mode=$pic_mode
18174
18175# What is the maximum length of a command?
18176max_cmd_len=$lt_cv_sys_max_cmd_len
18177
18178# Does compiler simultaneously support -c and -o options?
18179compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18180
18181# Must we lock files when doing compilation ?
18182need_locks=$lt_need_locks
18183
18184# Do we need the lib prefix for modules?
18185need_lib_prefix=$need_lib_prefix
18186
18187# Do we need a version for libraries?
18188need_version=$need_version
18189
18190# Whether dlopen is supported.
18191dlopen_support=$enable_dlopen
18192
18193# Whether dlopen of programs is supported.
18194dlopen_self=$enable_dlopen_self
18195
18196# Whether dlopen of statically linked programs is supported.
18197dlopen_self_static=$enable_dlopen_self_static
18198
18199# Compiler flag to prevent dynamic linking.
18200link_static_flag=$lt_lt_prog_compiler_static_RC
18201
18202# Compiler flag to turn off builtin functions.
18203no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18204
18205# Compiler flag to allow reflexive dlopens.
18206export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18207
18208# Compiler flag to generate shared objects directly from archives.
18209whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18210
18211# Compiler flag to generate thread-safe objects.
18212thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18213
18214# Library versioning type.
18215version_type=$version_type
18216
18217# Format of library name prefix.
18218libname_spec=$lt_libname_spec
18219
18220# List of archive names. First name is the real one, the rest are links.
18221# The last name is the one that the linker finds with -lNAME.
18222library_names_spec=$lt_library_names_spec
18223
18224# The coded name of the library, if different from the real name.
18225soname_spec=$lt_soname_spec
18226
18227# Commands used to build and install an old-style archive.
18228RANLIB=$lt_RANLIB
18229old_archive_cmds=$lt_old_archive_cmds_RC
18230old_postinstall_cmds=$lt_old_postinstall_cmds
18231old_postuninstall_cmds=$lt_old_postuninstall_cmds
18232
18233# Create an old-style archive from a shared archive.
18234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18235
18236# Create a temporary old-style archive to link instead of a shared archive.
18237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18238
18239# Commands used to build and install a shared archive.
18240archive_cmds=$lt_archive_cmds_RC
18241archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18242postinstall_cmds=$lt_postinstall_cmds
18243postuninstall_cmds=$lt_postuninstall_cmds
18244
18245# Commands used to build a loadable module (assumed same as above if empty)
18246module_cmds=$lt_module_cmds_RC
18247module_expsym_cmds=$lt_module_expsym_cmds_RC
18248
18249# Commands to strip libraries.
18250old_striplib=$lt_old_striplib
18251striplib=$lt_striplib
18252
18253# Dependencies to place before the objects being linked to create a
18254# shared library.
18255predep_objects=$lt_predep_objects_RC
18256
18257# Dependencies to place after the objects being linked to create a
18258# shared library.
18259postdep_objects=$lt_postdep_objects_RC
18260
18261# Dependencies to place before the objects being linked to create a
18262# shared library.
18263predeps=$lt_predeps_RC
18264
18265# Dependencies to place after the objects being linked to create a
18266# shared library.
18267postdeps=$lt_postdeps_RC
18268
18269# The library search path used internally by the compiler when linking
18270# a shared library.
18271compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18272
18273# Method to check whether dependent libraries are shared objects.
18274deplibs_check_method=$lt_deplibs_check_method
18275
18276# Command to use when deplibs_check_method == file_magic.
18277file_magic_cmd=$lt_file_magic_cmd
18278
18279# Flag that allows shared libraries with undefined symbols to be built.
18280allow_undefined_flag=$lt_allow_undefined_flag_RC
18281
18282# Flag that forces no undefined symbols.
18283no_undefined_flag=$lt_no_undefined_flag_RC
18284
18285# Commands used to finish a libtool library installation in a directory.
18286finish_cmds=$lt_finish_cmds
18287
18288# Same as above, but a single script fragment to be evaled but not shown.
18289finish_eval=$lt_finish_eval
18290
18291# Take the output of nm and produce a listing of raw symbols and C names.
18292global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18293
18294# Transform the output of nm in a proper C declaration
18295global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18296
18297# Transform the output of nm in a C name address pair
18298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18299
18300# This is the shared library runtime path variable.
18301runpath_var=$runpath_var
18302
18303# This is the shared library path variable.
18304shlibpath_var=$shlibpath_var
18305
18306# Is shlibpath searched before the hard-coded library search path?
18307shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18308
18309# How to hardcode a shared library path into an executable.
18310hardcode_action=$hardcode_action_RC
18311
18312# Whether we should hardcode library paths into libraries.
18313hardcode_into_libs=$hardcode_into_libs
18314
18315# Flag to hardcode \$libdir into a binary during linking.
18316# This must work even if \$libdir does not exist.
18317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18318
18319# If ld is used when linking, flag to hardcode \$libdir into
18320# a binary during linking. This must work even if \$libdir does
18321# not exist.
18322hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18323
18324# Whether we need a single -rpath flag with a separated argument.
18325hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18326
18327# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18328# resulting binary.
18329hardcode_direct=$hardcode_direct_RC
18330
18331# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18332# resulting binary.
18333hardcode_minus_L=$hardcode_minus_L_RC
18334
18335# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18336# the resulting binary.
18337hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18338
18339# Set to yes if building a shared library automatically hardcodes DIR into the library
18340# and all subsequent libraries and executables linked against it.
18341hardcode_automatic=$hardcode_automatic_RC
18342
18343# Variables whose values should be saved in libtool wrapper scripts and
18344# restored at relink time.
18345variables_saved_for_relink="$variables_saved_for_relink"
18346
18347# Whether libtool must link a program against all its dependency libraries.
18348link_all_deplibs=$link_all_deplibs_RC
18349
18350# Compile-time system search path for libraries
18351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18352
18353# Run-time system search path for libraries
18354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18355
18356# Fix the shell variable \$srcfile for the compiler.
18357fix_srcfile_path="$fix_srcfile_path_RC"
18358
18359# Set to yes if exported symbols are required.
18360always_export_symbols=$always_export_symbols_RC
18361
18362# The commands to list exported symbols.
18363export_symbols_cmds=$lt_export_symbols_cmds_RC
18364
18365# The commands to extract the exported symbol list from a shared archive.
18366extract_expsyms_cmds=$lt_extract_expsyms_cmds
18367
18368# Symbols that should not be listed in the preloaded symbols.
18369exclude_expsyms=$lt_exclude_expsyms_RC
18370
18371# Symbols that must always be exported.
18372include_expsyms=$lt_include_expsyms_RC
18373
18374# ### END LIBTOOL TAG CONFIG: $tagname
18375
18376__EOF__
18377
18378
18379else
18380 # If there is no Makefile yet, we rely on a make rule to execute
18381 # `config.status --recheck' to rerun these tests and create the
18382 # libtool script then.
18383 test -f Makefile && make "$ltmain"
18384fi
18385
18386
18387ac_ext=c
18388ac_cpp='$CPP $CPPFLAGS'
18389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392
18393CC="$lt_save_CC"
18394
18395 ;;
18396
18397 *)
18398 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18399echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18400 { (exit 1); exit 1; }; }
18401 ;;
18402 esac
18403
18404 # Append the new tag name to the list of available tags.
18405 if test -n "$tagname" ; then
18406 available_tags="$available_tags $tagname"
18407 fi
18408 fi
18409 done
18410 IFS="$lt_save_ifs"
18411
18412 # Now substitute the updated list of available tags.
18413 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18414 mv "${ofile}T" "$ofile"
18415 chmod +x "$ofile"
18416 else
18417 rm -f "${ofile}T"
18418 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18419echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18420 { (exit 1); exit 1; }; }
18421 fi
18422fi
John Criswell7a73b802003-06-30 21:59:07 +000018423
18424
18425
18426# This can be used to rebuild libtool when needed
18427LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18428
18429# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018430LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018431
18432# Prevent multiple expansion
18433
18434
18435
John Criswell47fdd832003-07-14 16:52:07 +000018436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
John Criswellde00db22003-08-25 16:49:54 +000018454# Extract the first word of "pwd", so it can be a program name with args.
18455set dummy pwd; ac_word=$2
18456echo "$as_me:$LINENO: checking for $ac_word" >&5
18457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18458if test "${ac_cv_path_RPWD+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460else
18461 case $RPWD in
18462 [\\/]* | ?:[\\/]*)
18463 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18464 ;;
18465 *)
18466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18467for as_dir in $PATH
18468do
18469 IFS=$as_save_IFS
18470 test -z "$as_dir" && as_dir=.
18471 for ac_exec_ext in '' $ac_executable_extensions; do
18472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18473 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18475 break 2
18476 fi
18477done
18478done
18479
John Criswell39827c82003-09-23 15:28:52 +000018480 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018481 ;;
18482esac
18483fi
18484RPWD=$ac_cv_path_RPWD
18485
18486if test -n "$RPWD"; then
18487 echo "$as_me:$LINENO: result: $RPWD" >&5
18488echo "${ECHO_T}$RPWD" >&6
18489else
18490 echo "$as_me:$LINENO: result: no" >&5
18491echo "${ECHO_T}no" >&6
18492fi
18493
John Criswell39827c82003-09-23 15:28:52 +000018494if test ${RPWD} = "false"
18495then
18496 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18497echo "$as_me: error: pwd required but not found" >&2;}
18498 { (exit 1); exit 1; }; }
18499fi
18500
John Criswell7a73b802003-06-30 21:59:07 +000018501# Extract the first word of "ar", so it can be a program name with args.
18502set dummy ar; ac_word=$2
18503echo "$as_me:$LINENO: checking for $ac_word" >&5
18504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18505if test "${ac_cv_path_AR+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 case $AR in
18509 [\\/]* | ?:[\\/]*)
18510 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18511 ;;
18512 *)
18513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18514for as_dir in $PATH
18515do
18516 IFS=$as_save_IFS
18517 test -z "$as_dir" && as_dir=.
18518 for ac_exec_ext in '' $ac_executable_extensions; do
18519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18520 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18522 break 2
18523 fi
18524done
18525done
18526
John Criswell39827c82003-09-23 15:28:52 +000018527 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018528 ;;
18529esac
18530fi
18531AR=$ac_cv_path_AR
18532
18533if test -n "$AR"; then
18534 echo "$as_me:$LINENO: result: $AR" >&5
18535echo "${ECHO_T}$AR" >&6
18536else
18537 echo "$as_me:$LINENO: result: no" >&5
18538echo "${ECHO_T}no" >&6
18539fi
18540
John Criswell39827c82003-09-23 15:28:52 +000018541if test ${AR} = "false"
18542then
18543 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18544echo "$as_me: error: ar required but not found" >&2;}
18545 { (exit 1); exit 1; }; }
18546fi
18547
John Criswell7a73b802003-06-30 21:59:07 +000018548# Extract the first word of "sed", so it can be a program name with args.
18549set dummy sed; ac_word=$2
18550echo "$as_me:$LINENO: checking for $ac_word" >&5
18551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18552if test "${ac_cv_path_SED+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 case $SED in
18556 [\\/]* | ?:[\\/]*)
18557 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18558 ;;
18559 *)
18560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18561for as_dir in $PATH
18562do
18563 IFS=$as_save_IFS
18564 test -z "$as_dir" && as_dir=.
18565 for ac_exec_ext in '' $ac_executable_extensions; do
18566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18567 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18569 break 2
18570 fi
18571done
18572done
18573
John Criswell39827c82003-09-23 15:28:52 +000018574 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018575 ;;
18576esac
18577fi
18578SED=$ac_cv_path_SED
18579
18580if test -n "$SED"; then
18581 echo "$as_me:$LINENO: result: $SED" >&5
18582echo "${ECHO_T}$SED" >&6
18583else
18584 echo "$as_me:$LINENO: result: no" >&5
18585echo "${ECHO_T}no" >&6
18586fi
18587
John Criswell39827c82003-09-23 15:28:52 +000018588if test ${SED} = "false"
18589then
18590 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18591echo "$as_me: error: sed required but not found" >&2;}
18592 { (exit 1); exit 1; }; }
18593fi
18594
John Criswell7a73b802003-06-30 21:59:07 +000018595# Extract the first word of "rm", so it can be a program name with args.
18596set dummy rm; ac_word=$2
18597echo "$as_me:$LINENO: checking for $ac_word" >&5
18598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18599if test "${ac_cv_path_RM+set}" = set; then
18600 echo $ECHO_N "(cached) $ECHO_C" >&6
18601else
18602 case $RM in
18603 [\\/]* | ?:[\\/]*)
18604 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18605 ;;
18606 *)
18607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608for as_dir in $PATH
18609do
18610 IFS=$as_save_IFS
18611 test -z "$as_dir" && as_dir=.
18612 for ac_exec_ext in '' $ac_executable_extensions; do
18613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18616 break 2
18617 fi
18618done
18619done
18620
John Criswell39827c82003-09-23 15:28:52 +000018621 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018622 ;;
18623esac
18624fi
18625RM=$ac_cv_path_RM
18626
18627if test -n "$RM"; then
18628 echo "$as_me:$LINENO: result: $RM" >&5
18629echo "${ECHO_T}$RM" >&6
18630else
18631 echo "$as_me:$LINENO: result: no" >&5
18632echo "${ECHO_T}no" >&6
18633fi
18634
John Criswell39827c82003-09-23 15:28:52 +000018635if test ${RM} = "false"
18636then
18637 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18638echo "$as_me: error: rm required but not found" >&2;}
18639 { (exit 1); exit 1; }; }
18640fi
18641
John Criswell7a73b802003-06-30 21:59:07 +000018642# Extract the first word of "echo", so it can be a program name with args.
18643set dummy echo; ac_word=$2
18644echo "$as_me:$LINENO: checking for $ac_word" >&5
18645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18646if test "${ac_cv_path_ECHO+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649 case $ECHO in
18650 [\\/]* | ?:[\\/]*)
18651 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18652 ;;
18653 *)
18654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18655for as_dir in $PATH
18656do
18657 IFS=$as_save_IFS
18658 test -z "$as_dir" && as_dir=.
18659 for ac_exec_ext in '' $ac_executable_extensions; do
18660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18661 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18663 break 2
18664 fi
18665done
18666done
18667
John Criswell39827c82003-09-23 15:28:52 +000018668 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018669 ;;
18670esac
18671fi
18672ECHO=$ac_cv_path_ECHO
18673
18674if test -n "$ECHO"; then
18675 echo "$as_me:$LINENO: result: $ECHO" >&5
18676echo "${ECHO_T}$ECHO" >&6
18677else
18678 echo "$as_me:$LINENO: result: no" >&5
18679echo "${ECHO_T}no" >&6
18680fi
18681
John Criswell39827c82003-09-23 15:28:52 +000018682if test ${ECHO} = "false"
18683then
18684 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18685echo "$as_me: error: echo required but not found" >&2;}
18686 { (exit 1); exit 1; }; }
18687fi
18688
John Criswell7a73b802003-06-30 21:59:07 +000018689# Extract the first word of "mkdir", so it can be a program name with args.
18690set dummy mkdir; ac_word=$2
18691echo "$as_me:$LINENO: checking for $ac_word" >&5
18692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18693if test "${ac_cv_path_MKDIR+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 case $MKDIR in
18697 [\\/]* | ?:[\\/]*)
18698 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18699 ;;
18700 *)
18701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18702for as_dir in $PATH
18703do
18704 IFS=$as_save_IFS
18705 test -z "$as_dir" && as_dir=.
18706 for ac_exec_ext in '' $ac_executable_extensions; do
18707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18708 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18710 break 2
18711 fi
18712done
18713done
18714
John Criswell39827c82003-09-23 15:28:52 +000018715 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018716 ;;
18717esac
18718fi
18719MKDIR=$ac_cv_path_MKDIR
18720
18721if test -n "$MKDIR"; then
18722 echo "$as_me:$LINENO: result: $MKDIR" >&5
18723echo "${ECHO_T}$MKDIR" >&6
18724else
18725 echo "$as_me:$LINENO: result: no" >&5
18726echo "${ECHO_T}no" >&6
18727fi
18728
John Criswell39827c82003-09-23 15:28:52 +000018729if test ${MKDIR} = "false"
18730then
18731 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18732echo "$as_me: error: mkdir required but not found" >&2;}
18733 { (exit 1); exit 1; }; }
18734fi
18735
John Criswell7a73b802003-06-30 21:59:07 +000018736# Extract the first word of "date", so it can be a program name with args.
18737set dummy date; ac_word=$2
18738echo "$as_me:$LINENO: checking for $ac_word" >&5
18739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18740if test "${ac_cv_path_DATE+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 case $DATE in
18744 [\\/]* | ?:[\\/]*)
18745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18746 ;;
18747 *)
18748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18749for as_dir in $PATH
18750do
18751 IFS=$as_save_IFS
18752 test -z "$as_dir" && as_dir=.
18753 for ac_exec_ext in '' $ac_executable_extensions; do
18754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18757 break 2
18758 fi
18759done
18760done
18761
John Criswell39827c82003-09-23 15:28:52 +000018762 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018763 ;;
18764esac
18765fi
18766DATE=$ac_cv_path_DATE
18767
18768if test -n "$DATE"; then
18769 echo "$as_me:$LINENO: result: $DATE" >&5
18770echo "${ECHO_T}$DATE" >&6
18771else
18772 echo "$as_me:$LINENO: result: no" >&5
18773echo "${ECHO_T}no" >&6
18774fi
18775
John Criswell39827c82003-09-23 15:28:52 +000018776if test ${DATE} = "false"
18777then
18778 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18779echo "$as_me: error: date required but not found" >&2;}
18780 { (exit 1); exit 1; }; }
18781fi
18782
John Criswell7a73b802003-06-30 21:59:07 +000018783# Extract the first word of "mv", so it can be a program name with args.
18784set dummy mv; ac_word=$2
18785echo "$as_me:$LINENO: checking for $ac_word" >&5
18786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18787if test "${ac_cv_path_MV+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790 case $MV in
18791 [\\/]* | ?:[\\/]*)
18792 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18793 ;;
18794 *)
18795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18796for as_dir in $PATH
18797do
18798 IFS=$as_save_IFS
18799 test -z "$as_dir" && as_dir=.
18800 for ac_exec_ext in '' $ac_executable_extensions; do
18801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18802 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18804 break 2
18805 fi
18806done
18807done
18808
John Criswell39827c82003-09-23 15:28:52 +000018809 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018810 ;;
18811esac
18812fi
18813MV=$ac_cv_path_MV
18814
18815if test -n "$MV"; then
18816 echo "$as_me:$LINENO: result: $MV" >&5
18817echo "${ECHO_T}$MV" >&6
18818else
18819 echo "$as_me:$LINENO: result: no" >&5
18820echo "${ECHO_T}no" >&6
18821fi
18822
John Criswell39827c82003-09-23 15:28:52 +000018823if test ${MV} = "false"
18824then
18825 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18826echo "$as_me: error: mv required but not found" >&2;}
18827 { (exit 1); exit 1; }; }
18828fi
18829
John Criswell7a73b802003-06-30 21:59:07 +000018830# Extract the first word of "dot", so it can be a program name with args.
18831set dummy dot; ac_word=$2
18832echo "$as_me:$LINENO: checking for $ac_word" >&5
18833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18834if test "${ac_cv_path_DOT+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18836else
18837 case $DOT in
18838 [\\/]* | ?:[\\/]*)
18839 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18840 ;;
18841 *)
18842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18843for as_dir in $PATH
18844do
18845 IFS=$as_save_IFS
18846 test -z "$as_dir" && as_dir=.
18847 for ac_exec_ext in '' $ac_executable_extensions; do
18848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18849 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18851 break 2
18852 fi
18853done
18854done
18855
John Criswell39827c82003-09-23 15:28:52 +000018856 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018857 ;;
18858esac
18859fi
18860DOT=$ac_cv_path_DOT
18861
18862if test -n "$DOT"; then
18863 echo "$as_me:$LINENO: result: $DOT" >&5
18864echo "${ECHO_T}$DOT" >&6
18865else
18866 echo "$as_me:$LINENO: result: no" >&5
18867echo "${ECHO_T}no" >&6
18868fi
18869
John Criswell39827c82003-09-23 15:28:52 +000018870
John Criswell7a73b802003-06-30 21:59:07 +000018871# Extract the first word of "etags", so it can be a program name with args.
18872set dummy etags; ac_word=$2
18873echo "$as_me:$LINENO: checking for $ac_word" >&5
18874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875if test "${ac_cv_path_ETAGS+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 case $ETAGS in
18879 [\\/]* | ?:[\\/]*)
18880 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18881 ;;
18882 *)
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884for as_dir in $PATH
18885do
18886 IFS=$as_save_IFS
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892 break 2
18893 fi
18894done
18895done
18896
John Criswell39827c82003-09-23 15:28:52 +000018897 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018898 ;;
18899esac
18900fi
18901ETAGS=$ac_cv_path_ETAGS
18902
18903if test -n "$ETAGS"; then
18904 echo "$as_me:$LINENO: result: $ETAGS" >&5
18905echo "${ECHO_T}$ETAGS" >&6
18906else
18907 echo "$as_me:$LINENO: result: no" >&5
18908echo "${ECHO_T}no" >&6
18909fi
18910
John Criswell39827c82003-09-23 15:28:52 +000018911
John Criswell7a73b802003-06-30 21:59:07 +000018912# Extract the first word of "purify", so it can be a program name with args.
18913set dummy purify; ac_word=$2
18914echo "$as_me:$LINENO: checking for $ac_word" >&5
18915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18916if test "${ac_cv_path_PURIFY+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918else
18919 case $PURIFY in
18920 [\\/]* | ?:[\\/]*)
18921 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18922 ;;
18923 *)
18924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925for as_dir in $PATH
18926do
18927 IFS=$as_save_IFS
18928 test -z "$as_dir" && as_dir=.
18929 for ac_exec_ext in '' $ac_executable_extensions; do
18930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933 break 2
18934 fi
18935done
18936done
18937
John Criswell39827c82003-09-23 15:28:52 +000018938 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018939 ;;
18940esac
18941fi
18942PURIFY=$ac_cv_path_PURIFY
18943
18944if test -n "$PURIFY"; then
18945 echo "$as_me:$LINENO: result: $PURIFY" >&5
18946echo "${ECHO_T}$PURIFY" >&6
18947else
18948 echo "$as_me:$LINENO: result: no" >&5
18949echo "${ECHO_T}no" >&6
18950fi
18951
John Criswell39827c82003-09-23 15:28:52 +000018952
John Criswellde00db22003-08-25 16:49:54 +000018953# Extract the first word of "python", so it can be a program name with args.
18954set dummy python; ac_word=$2
18955echo "$as_me:$LINENO: checking for $ac_word" >&5
18956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18957if test "${ac_cv_path_PYTHON+set}" = set; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18959else
18960 case $PYTHON in
18961 [\\/]* | ?:[\\/]*)
18962 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18963 ;;
18964 *)
18965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18966for as_dir in $PATH
18967do
18968 IFS=$as_save_IFS
18969 test -z "$as_dir" && as_dir=.
18970 for ac_exec_ext in '' $ac_executable_extensions; do
18971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18972 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974 break 2
18975 fi
18976done
18977done
18978
John Criswell39827c82003-09-23 15:28:52 +000018979 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018980 ;;
18981esac
18982fi
18983PYTHON=$ac_cv_path_PYTHON
18984
18985if test -n "$PYTHON"; then
18986 echo "$as_me:$LINENO: result: $PYTHON" >&5
18987echo "${ECHO_T}$PYTHON" >&6
18988else
18989 echo "$as_me:$LINENO: result: no" >&5
18990echo "${ECHO_T}no" >&6
18991fi
18992
John Criswell39827c82003-09-23 15:28:52 +000018993if test ${PYTHON} = "false"
18994then
John Criswell61095982003-09-23 20:46:32 +000018995 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18996echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018997fi
18998
John Criswellde00db22003-08-25 16:49:54 +000018999# Extract the first word of "qmtest", so it can be a program name with args.
19000set dummy qmtest; ac_word=$2
19001echo "$as_me:$LINENO: checking for $ac_word" >&5
19002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19003if test "${ac_cv_path_QMTEST+set}" = set; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19005else
19006 case $QMTEST in
19007 [\\/]* | ?:[\\/]*)
19008 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19009 ;;
19010 *)
19011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012for as_dir in $PATH
19013do
19014 IFS=$as_save_IFS
19015 test -z "$as_dir" && as_dir=.
19016 for ac_exec_ext in '' $ac_executable_extensions; do
19017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19018 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19020 break 2
19021 fi
19022done
19023done
19024
John Criswell39827c82003-09-23 15:28:52 +000019025 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019026 ;;
19027esac
19028fi
19029QMTEST=$ac_cv_path_QMTEST
19030
19031if test -n "$QMTEST"; then
19032 echo "$as_me:$LINENO: result: $QMTEST" >&5
19033echo "${ECHO_T}$QMTEST" >&6
19034else
19035 echo "$as_me:$LINENO: result: no" >&5
19036echo "${ECHO_T}no" >&6
19037fi
19038
John Criswell39827c82003-09-23 15:28:52 +000019039if test ${QMTEST} = "false"
19040then
John Criswell61095982003-09-23 20:46:32 +000019041 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19042echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019043fi
John Criswellde00db22003-08-25 16:49:54 +000019044
19045pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19046pymajor=`echo $pyversion | cut -d. -f1`
19047pyminor=`echo $pyversion | cut -d. -f2`
19048
19049if test "$pymajor" -ge "2"
19050then
19051 if test "$pymajor" -eq "2"
19052 then
19053 if test "$pyminor" -lt "2"
19054 then
19055 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19056echo "$as_me: error: Python 2.2 or greater required" >&2;}
19057 { (exit 1); exit 1; }; }
19058 fi
19059 fi
19060else
19061 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19062echo "$as_me: error: Python 2.2 or greater required" >&2;}
19063 { (exit 1); exit 1; }; }
19064fi
John Criswell7a73b802003-06-30 21:59:07 +000019065
19066
19067
19068
19069
19070echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19071echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19072if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19073 echo $ECHO_N "(cached) $ECHO_C" >&6
19074else
19075 ac_check_lib_save_LIBS=$LIBS
19076LIBS="-lelf $LIBS"
19077cat >conftest.$ac_ext <<_ACEOF
19078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019079/* confdefs.h. */
19080_ACEOF
19081cat confdefs.h >>conftest.$ac_ext
19082cat >>conftest.$ac_ext <<_ACEOF
19083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019084
19085/* Override any gcc2 internal prototype to avoid an error. */
19086#ifdef __cplusplus
19087extern "C"
19088#endif
19089/* We use char because int might match the return type of a gcc2
19090 builtin and then its argument prototype would still apply. */
19091char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019092int
19093main ()
19094{
19095elf_begin ();
19096 ;
19097 return 0;
19098}
19099_ACEOF
19100rm -f conftest.$ac_objext conftest$ac_exeext
19101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102 (eval $ac_link) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_lib_elf_elf_begin=yes
19113else
19114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019115sed 's/^/| /' conftest.$ac_ext >&5
19116
John Criswell7a73b802003-06-30 21:59:07 +000019117ac_cv_lib_elf_elf_begin=no
19118fi
19119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19120LIBS=$ac_check_lib_save_LIBS
19121fi
19122echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19123echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19124if test $ac_cv_lib_elf_elf_begin = yes; then
19125 cat >>confdefs.h <<_ACEOF
19126#define HAVE_LIBELF 1
19127_ACEOF
19128
19129 LIBS="-lelf $LIBS"
19130
19131fi
19132
19133
19134echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19135echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19136if test "${ac_cv_search_dlopen+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
19138else
19139 ac_func_search_save_LIBS=$LIBS
19140ac_cv_search_dlopen=no
19141cat >conftest.$ac_ext <<_ACEOF
19142#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019148
19149/* Override any gcc2 internal prototype to avoid an error. */
19150#ifdef __cplusplus
19151extern "C"
19152#endif
19153/* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019156int
19157main ()
19158{
19159dlopen ();
19160 ;
19161 return 0;
19162}
19163_ACEOF
19164rm -f conftest.$ac_objext conftest$ac_exeext
19165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166 (eval $ac_link) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
19170 { ac_try='test -s conftest$ac_exeext'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_cv_search_dlopen="none required"
19177else
19178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019179sed 's/^/| /' conftest.$ac_ext >&5
19180
John Criswell7a73b802003-06-30 21:59:07 +000019181fi
19182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19183if test "$ac_cv_search_dlopen" = no; then
19184 for ac_lib in dl; do
19185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19187#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019188/* confdefs.h. */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019193
19194/* Override any gcc2 internal prototype to avoid an error. */
19195#ifdef __cplusplus
19196extern "C"
19197#endif
19198/* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19200char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019201int
19202main ()
19203{
19204dlopen ();
19205 ;
19206 return 0;
19207}
19208_ACEOF
19209rm -f conftest.$ac_objext conftest$ac_exeext
19210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_search_dlopen="-l$ac_lib"
19222break
19223else
19224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019225sed 's/^/| /' conftest.$ac_ext >&5
19226
John Criswell7a73b802003-06-30 21:59:07 +000019227fi
19228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19229 done
19230fi
19231LIBS=$ac_func_search_save_LIBS
19232fi
19233echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19234echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19235if test "$ac_cv_search_dlopen" != no; then
19236 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19237
19238else
19239 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19240echo "$as_me: error: dlopen() required but not found" >&2;}
19241 { (exit 1); exit 1; }; }
19242fi
19243
19244
19245echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19246echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19247if test "${ac_cv_search_mallinfo+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249else
19250 ac_func_search_save_LIBS=$LIBS
19251ac_cv_search_mallinfo=no
19252cat >conftest.$ac_ext <<_ACEOF
19253#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019259
19260/* Override any gcc2 internal prototype to avoid an error. */
19261#ifdef __cplusplus
19262extern "C"
19263#endif
19264/* We use char because int might match the return type of a gcc2
19265 builtin and then its argument prototype would still apply. */
19266char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019267int
19268main ()
19269{
19270mallinfo ();
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275rm -f conftest.$ac_objext conftest$ac_exeext
19276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19277 (eval $ac_link) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -s conftest$ac_exeext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_cv_search_mallinfo="none required"
19288else
19289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019290sed 's/^/| /' conftest.$ac_ext >&5
19291
John Criswell7a73b802003-06-30 21:59:07 +000019292fi
19293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19294if test "$ac_cv_search_mallinfo" = no; then
19295 for ac_lib in malloc; do
19296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19297 cat >conftest.$ac_ext <<_ACEOF
19298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019304
19305/* Override any gcc2 internal prototype to avoid an error. */
19306#ifdef __cplusplus
19307extern "C"
19308#endif
19309/* We use char because int might match the return type of a gcc2
19310 builtin and then its argument prototype would still apply. */
19311char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019312int
19313main ()
19314{
19315mallinfo ();
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19322 (eval $ac_link) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_search_mallinfo="-l$ac_lib"
19333break
19334else
19335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019336sed 's/^/| /' conftest.$ac_ext >&5
19337
John Criswell7a73b802003-06-30 21:59:07 +000019338fi
19339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19340 done
19341fi
19342LIBS=$ac_func_search_save_LIBS
19343fi
19344echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19345echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19346if test "$ac_cv_search_mallinfo" != no; then
19347 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19348 cat >>confdefs.h <<\_ACEOF
19349#define HAVE_MALLINFO 1
19350_ACEOF
19351
19352fi
19353
19354
19355
19356echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19357echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19358if test "${ac_cv_header_stdc+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19360else
19361 cat >conftest.$ac_ext <<_ACEOF
19362#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019368#include <stdlib.h>
19369#include <stdarg.h>
19370#include <string.h>
19371#include <float.h>
19372
John Criswell0c38eaf2003-09-10 15:17:25 +000019373int
19374main ()
19375{
19376
19377 ;
19378 return 0;
19379}
John Criswell7a73b802003-06-30 21:59:07 +000019380_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019381rm -f conftest.$ac_objext
19382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019384 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019386 (exit $ac_status); } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019393 ac_cv_header_stdc=yes
19394else
19395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019399fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019400rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019401
19402if test $ac_cv_header_stdc = yes; then
19403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19404 cat >conftest.$ac_ext <<_ACEOF
19405#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019411#include <string.h>
19412
19413_ACEOF
19414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019415 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019416 :
19417else
19418 ac_cv_header_stdc=no
19419fi
19420rm -f conftest*
19421
19422fi
19423
19424if test $ac_cv_header_stdc = yes; then
19425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19426 cat >conftest.$ac_ext <<_ACEOF
19427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019433#include <stdlib.h>
19434
19435_ACEOF
19436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019437 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019438 :
19439else
19440 ac_cv_header_stdc=no
19441fi
19442rm -f conftest*
19443
19444fi
19445
19446if test $ac_cv_header_stdc = yes; then
19447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19448 if test "$cross_compiling" = yes; then
19449 :
19450else
19451 cat >conftest.$ac_ext <<_ACEOF
19452#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019453/* confdefs.h. */
19454_ACEOF
19455cat confdefs.h >>conftest.$ac_ext
19456cat >>conftest.$ac_ext <<_ACEOF
19457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019458#include <ctype.h>
19459#if ((' ' & 0x0FF) == 0x020)
19460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19462#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019463# define ISLOWER(c) \
19464 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019465 || ('j' <= (c) && (c) <= 'r') \
19466 || ('s' <= (c) && (c) <= 'z'))
19467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19468#endif
19469
19470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19471int
19472main ()
19473{
19474 int i;
19475 for (i = 0; i < 256; i++)
19476 if (XOR (islower (i), ISLOWER (i))
19477 || toupper (i) != TOUPPER (i))
19478 exit(2);
19479 exit (0);
19480}
19481_ACEOF
19482rm -f conftest$ac_exeext
19483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484 (eval $ac_link) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 :
19494else
19495 echo "$as_me: program exited with status $ac_status" >&5
19496echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019497sed 's/^/| /' conftest.$ac_ext >&5
19498
John Criswell7a73b802003-06-30 21:59:07 +000019499( exit $ac_status )
19500ac_cv_header_stdc=no
19501fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019502rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019503fi
19504fi
19505fi
19506echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19507echo "${ECHO_T}$ac_cv_header_stdc" >&6
19508if test $ac_cv_header_stdc = yes; then
19509
19510cat >>confdefs.h <<\_ACEOF
19511#define STDC_HEADERS 1
19512_ACEOF
19513
19514fi
19515
19516echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19517echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19518if test "${ac_cv_header_sys_wait_h+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 cat >conftest.$ac_ext <<_ACEOF
19522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019528#include <sys/types.h>
19529#include <sys/wait.h>
19530#ifndef WEXITSTATUS
19531# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19532#endif
19533#ifndef WIFEXITED
19534# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19535#endif
19536
John Criswell7a73b802003-06-30 21:59:07 +000019537int
19538main ()
19539{
19540 int s;
19541 wait (&s);
19542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19543 ;
19544 return 0;
19545}
19546_ACEOF
19547rm -f conftest.$ac_objext
19548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19549 (eval $ac_compile) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_header_sys_wait_h=yes
19560else
19561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019562sed 's/^/| /' conftest.$ac_ext >&5
19563
John Criswell7a73b802003-06-30 21:59:07 +000019564ac_cv_header_sys_wait_h=no
19565fi
19566rm -f conftest.$ac_objext conftest.$ac_ext
19567fi
19568echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19569echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19570if test $ac_cv_header_sys_wait_h = yes; then
19571
19572cat >>confdefs.h <<\_ACEOF
19573#define HAVE_SYS_WAIT_H 1
19574_ACEOF
19575
19576fi
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19588do
19589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19590if eval "test \"\${$as_ac_Header+set}\" = set"; then
19591 echo "$as_me:$LINENO: checking for $ac_header" >&5
19592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19593if eval "test \"\${$as_ac_Header+set}\" = set"; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595fi
19596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19598else
19599 # Is the header compilable?
19600echo "$as_me:$LINENO: checking $ac_header usability" >&5
19601echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19602cat >conftest.$ac_ext <<_ACEOF
19603#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019609$ac_includes_default
19610#include <$ac_header>
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19614 (eval $ac_compile) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -s conftest.$ac_objext'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 ac_header_compiler=yes
19625else
19626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019627sed 's/^/| /' conftest.$ac_ext >&5
19628
John Criswell7a73b802003-06-30 21:59:07 +000019629ac_header_compiler=no
19630fi
19631rm -f conftest.$ac_objext conftest.$ac_ext
19632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19633echo "${ECHO_T}$ac_header_compiler" >&6
19634
19635# Is the header present?
19636echo "$as_me:$LINENO: checking $ac_header presence" >&5
19637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19638cat >conftest.$ac_ext <<_ACEOF
19639#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019645#include <$ac_header>
19646_ACEOF
19647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19649 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019650 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } >/dev/null; then
19655 if test -s conftest.err; then
19656 ac_cpp_err=$ac_c_preproc_warn_flag
19657 else
19658 ac_cpp_err=
19659 fi
19660else
19661 ac_cpp_err=yes
19662fi
19663if test -z "$ac_cpp_err"; then
19664 ac_header_preproc=yes
19665else
19666 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019667sed 's/^/| /' conftest.$ac_ext >&5
19668
John Criswell7a73b802003-06-30 21:59:07 +000019669 ac_header_preproc=no
19670fi
19671rm -f conftest.err conftest.$ac_ext
19672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19673echo "${ECHO_T}$ac_header_preproc" >&6
19674
19675# So? What about this header?
19676case $ac_header_compiler:$ac_header_preproc in
19677 yes:no )
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19682 (
19683 cat <<\_ASBOX
19684## ------------------------------------ ##
19685## Report this to bug-autoconf@gnu.org. ##
19686## ------------------------------------ ##
19687_ASBOX
19688 ) |
19689 sed "s/^/$as_me: WARNING: /" >&2
19690 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019691 no:yes )
19692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698 (
19699 cat <<\_ASBOX
19700## ------------------------------------ ##
19701## Report this to bug-autoconf@gnu.org. ##
19702## ------------------------------------ ##
19703_ASBOX
19704 ) |
19705 sed "s/^/$as_me: WARNING: /" >&2
19706 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019707esac
19708echo "$as_me:$LINENO: checking for $ac_header" >&5
19709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19710if eval "test \"\${$as_ac_Header+set}\" = set"; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713 eval "$as_ac_Header=$ac_header_preproc"
19714fi
19715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19717
19718fi
19719if test `eval echo '${'$as_ac_Header'}'` = yes; then
19720 cat >>confdefs.h <<_ACEOF
19721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19722_ACEOF
19723
19724fi
19725
19726done
19727
19728
19729
19730
19731
19732
19733for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19734do
19735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19736if eval "test \"\${$as_ac_Header+set}\" = set"; then
19737 echo "$as_me:$LINENO: checking for $ac_header" >&5
19738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19739if eval "test \"\${$as_ac_Header+set}\" = set"; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741fi
19742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744else
19745 # Is the header compilable?
19746echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19748cat >conftest.$ac_ext <<_ACEOF
19749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019755$ac_includes_default
19756#include <$ac_header>
19757_ACEOF
19758rm -f conftest.$ac_objext
19759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19760 (eval $ac_compile) 2>&5
19761 ac_status=$?
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -s conftest.$ac_objext'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_header_compiler=yes
19771else
19772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019773sed 's/^/| /' conftest.$ac_ext >&5
19774
John Criswell7a73b802003-06-30 21:59:07 +000019775ac_header_compiler=no
19776fi
19777rm -f conftest.$ac_objext conftest.$ac_ext
19778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19779echo "${ECHO_T}$ac_header_compiler" >&6
19780
19781# Is the header present?
19782echo "$as_me:$LINENO: checking $ac_header presence" >&5
19783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19784cat >conftest.$ac_ext <<_ACEOF
19785#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019791#include <$ac_header>
19792_ACEOF
19793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19795 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019796 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019797 rm -f conftest.er1
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } >/dev/null; then
19801 if test -s conftest.err; then
19802 ac_cpp_err=$ac_c_preproc_warn_flag
19803 else
19804 ac_cpp_err=
19805 fi
19806else
19807 ac_cpp_err=yes
19808fi
19809if test -z "$ac_cpp_err"; then
19810 ac_header_preproc=yes
19811else
19812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019813sed 's/^/| /' conftest.$ac_ext >&5
19814
John Criswell7a73b802003-06-30 21:59:07 +000019815 ac_header_preproc=no
19816fi
19817rm -f conftest.err conftest.$ac_ext
19818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19819echo "${ECHO_T}$ac_header_preproc" >&6
19820
19821# So? What about this header?
19822case $ac_header_compiler:$ac_header_preproc in
19823 yes:no )
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019827echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19828 (
19829 cat <<\_ASBOX
19830## ------------------------------------ ##
19831## Report this to bug-autoconf@gnu.org. ##
19832## ------------------------------------ ##
19833_ASBOX
19834 ) |
19835 sed "s/^/$as_me: WARNING: /" >&2
19836 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019837 no:yes )
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19844 (
19845 cat <<\_ASBOX
19846## ------------------------------------ ##
19847## Report this to bug-autoconf@gnu.org. ##
19848## ------------------------------------ ##
19849_ASBOX
19850 ) |
19851 sed "s/^/$as_me: WARNING: /" >&2
19852 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019853esac
19854echo "$as_me:$LINENO: checking for $ac_header" >&5
19855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19856if eval "test \"\${$as_ac_Header+set}\" = set"; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858else
19859 eval "$as_ac_Header=$ac_header_preproc"
19860fi
19861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19863
19864fi
19865if test `eval echo '${'$as_ac_Header'}'` = yes; then
19866 cat >>confdefs.h <<_ACEOF
19867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19868_ACEOF
19869
19870fi
19871
19872done
19873
19874
19875
19876
19877for ac_header in dlfcn.h link.h
19878do
19879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19880if eval "test \"\${$as_ac_Header+set}\" = set"; then
19881 echo "$as_me:$LINENO: checking for $ac_header" >&5
19882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19883if eval "test \"\${$as_ac_Header+set}\" = set"; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885fi
19886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19888else
19889 # Is the header compilable?
19890echo "$as_me:$LINENO: checking $ac_header usability" >&5
19891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19892cat >conftest.$ac_ext <<_ACEOF
19893#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019899$ac_includes_default
19900#include <$ac_header>
19901_ACEOF
19902rm -f conftest.$ac_objext
19903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19904 (eval $ac_compile) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -s conftest.$ac_objext'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; }; then
19914 ac_header_compiler=yes
19915else
19916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019917sed 's/^/| /' conftest.$ac_ext >&5
19918
John Criswell7a73b802003-06-30 21:59:07 +000019919ac_header_compiler=no
19920fi
19921rm -f conftest.$ac_objext conftest.$ac_ext
19922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19923echo "${ECHO_T}$ac_header_compiler" >&6
19924
19925# Is the header present?
19926echo "$as_me:$LINENO: checking $ac_header presence" >&5
19927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19928cat >conftest.$ac_ext <<_ACEOF
19929#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019930/* confdefs.h. */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019935#include <$ac_header>
19936_ACEOF
19937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19939 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019940 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } >/dev/null; then
19945 if test -s conftest.err; then
19946 ac_cpp_err=$ac_c_preproc_warn_flag
19947 else
19948 ac_cpp_err=
19949 fi
19950else
19951 ac_cpp_err=yes
19952fi
19953if test -z "$ac_cpp_err"; then
19954 ac_header_preproc=yes
19955else
19956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019957sed 's/^/| /' conftest.$ac_ext >&5
19958
John Criswell7a73b802003-06-30 21:59:07 +000019959 ac_header_preproc=no
19960fi
19961rm -f conftest.err conftest.$ac_ext
19962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963echo "${ECHO_T}$ac_header_preproc" >&6
19964
19965# So? What about this header?
19966case $ac_header_compiler:$ac_header_preproc in
19967 yes:no )
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19972 (
19973 cat <<\_ASBOX
19974## ------------------------------------ ##
19975## Report this to bug-autoconf@gnu.org. ##
19976## ------------------------------------ ##
19977_ASBOX
19978 ) |
19979 sed "s/^/$as_me: WARNING: /" >&2
19980 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019981 no:yes )
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19983echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19985echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19988 (
19989 cat <<\_ASBOX
19990## ------------------------------------ ##
19991## Report this to bug-autoconf@gnu.org. ##
19992## ------------------------------------ ##
19993_ASBOX
19994 ) |
19995 sed "s/^/$as_me: WARNING: /" >&2
19996 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019997esac
19998echo "$as_me:$LINENO: checking for $ac_header" >&5
19999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20000if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20002else
20003 eval "$as_ac_Header=$ac_header_preproc"
20004fi
20005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20007
20008fi
20009if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012_ACEOF
20013
20014fi
20015
20016done
20017
20018
20019
John Criswell7a73b802003-06-30 21:59:07 +000020020echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20021echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20022if test "${ac_cv_c_const+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20024else
20025 cat >conftest.$ac_ext <<_ACEOF
20026#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020027/* confdefs.h. */
20028_ACEOF
20029cat confdefs.h >>conftest.$ac_ext
20030cat >>conftest.$ac_ext <<_ACEOF
20031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020032
John Criswell7a73b802003-06-30 21:59:07 +000020033int
20034main ()
20035{
20036/* FIXME: Include the comments suggested by Paul. */
20037#ifndef __cplusplus
20038 /* Ultrix mips cc rejects this. */
20039 typedef int charset[2];
20040 const charset x;
20041 /* SunOS 4.1.1 cc rejects this. */
20042 char const *const *ccp;
20043 char **p;
20044 /* NEC SVR4.0.2 mips cc rejects this. */
20045 struct point {int x, y;};
20046 static struct point const zero = {0,0};
20047 /* AIX XL C 1.02.0.0 rejects this.
20048 It does not let you subtract one const X* pointer from another in
20049 an arm of an if-expression whose if-part is not a constant
20050 expression */
20051 const char *g = "string";
20052 ccp = &g + (g ? g-g : 0);
20053 /* HPUX 7.0 cc rejects these. */
20054 ++ccp;
20055 p = (char**) ccp;
20056 ccp = (char const *const *) p;
20057 { /* SCO 3.2v4 cc rejects this. */
20058 char *t;
20059 char const *s = 0 ? (char *) 0 : (char const *) 0;
20060
20061 *t++ = 0;
20062 }
20063 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20064 int x[] = {25, 17};
20065 const int *foo = &x[0];
20066 ++foo;
20067 }
20068 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20069 typedef const int *iptr;
20070 iptr p = 0;
20071 ++p;
20072 }
20073 { /* AIX XL C 1.02.0.0 rejects this saying
20074 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20075 struct s { int j; const int *ap[3]; };
20076 struct s *b; b->j = 5;
20077 }
20078 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20079 const int foo = 10;
20080 }
20081#endif
20082
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087rm -f conftest.$ac_objext
20088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20089 (eval $ac_compile) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -s conftest.$ac_objext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_c_const=yes
20100else
20101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020102sed 's/^/| /' conftest.$ac_ext >&5
20103
John Criswell7a73b802003-06-30 21:59:07 +000020104ac_cv_c_const=no
20105fi
20106rm -f conftest.$ac_objext conftest.$ac_ext
20107fi
20108echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20109echo "${ECHO_T}$ac_cv_c_const" >&6
20110if test $ac_cv_c_const = no; then
20111
20112cat >>confdefs.h <<\_ACEOF
20113#define const
20114_ACEOF
20115
20116fi
20117
20118echo "$as_me:$LINENO: checking for inline" >&5
20119echo $ECHO_N "checking for inline... $ECHO_C" >&6
20120if test "${ac_cv_c_inline+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122else
20123 ac_cv_c_inline=no
20124for ac_kw in inline __inline__ __inline; do
20125 cat >conftest.$ac_ext <<_ACEOF
20126#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020127/* confdefs.h. */
20128_ACEOF
20129cat confdefs.h >>conftest.$ac_ext
20130cat >>conftest.$ac_ext <<_ACEOF
20131/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020132#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020133typedef int foo_t;
20134static $ac_kw foo_t static_foo () {return 0; }
20135$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020136#endif
20137
20138_ACEOF
20139rm -f conftest.$ac_objext
20140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141 (eval $ac_compile) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -s conftest.$ac_objext'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_cv_c_inline=$ac_kw; break
20152else
20153 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020154sed 's/^/| /' conftest.$ac_ext >&5
20155
John Criswell7a73b802003-06-30 21:59:07 +000020156fi
20157rm -f conftest.$ac_objext conftest.$ac_ext
20158done
20159
20160fi
20161echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20162echo "${ECHO_T}$ac_cv_c_inline" >&6
20163case $ac_cv_c_inline in
20164 inline | yes) ;;
20165 no)
20166cat >>confdefs.h <<\_ACEOF
20167#define inline
20168_ACEOF
20169 ;;
20170 *) cat >>confdefs.h <<_ACEOF
20171#define inline $ac_cv_c_inline
20172_ACEOF
20173 ;;
20174esac
20175
20176
20177echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20178echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20179if test "${ac_cv_c_bigendian+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182 # See if sys/param.h defines the BYTE_ORDER macro.
20183cat >conftest.$ac_ext <<_ACEOF
20184#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020185/* confdefs.h. */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020190#include <sys/types.h>
20191#include <sys/param.h>
20192
John Criswell7a73b802003-06-30 21:59:07 +000020193int
20194main ()
20195{
20196#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20197 bogus endian macros
20198#endif
20199
20200 ;
20201 return 0;
20202}
20203_ACEOF
20204rm -f conftest.$ac_objext
20205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206 (eval $ac_compile) 2>&5
20207 ac_status=$?
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
20210 { ac_try='test -s conftest.$ac_objext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 # It does; now see whether it defined to BIG_ENDIAN or not.
20217cat >conftest.$ac_ext <<_ACEOF
20218#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020224#include <sys/types.h>
20225#include <sys/param.h>
20226
John Criswell7a73b802003-06-30 21:59:07 +000020227int
20228main ()
20229{
20230#if BYTE_ORDER != BIG_ENDIAN
20231 not big endian
20232#endif
20233
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238rm -f conftest.$ac_objext
20239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20240 (eval $ac_compile) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_cv_c_bigendian=yes
20251else
20252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020253sed 's/^/| /' conftest.$ac_ext >&5
20254
John Criswell7a73b802003-06-30 21:59:07 +000020255ac_cv_c_bigendian=no
20256fi
20257rm -f conftest.$ac_objext conftest.$ac_ext
20258else
20259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020260sed 's/^/| /' conftest.$ac_ext >&5
20261
John Criswell7a73b802003-06-30 21:59:07 +000020262# It does not; compile a test program.
20263if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020264 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020265 ac_cv_c_bigendian=unknown
20266 cat >conftest.$ac_ext <<_ACEOF
20267#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020273short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20274short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20275void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20276short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20277short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20278void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020279int
20280main ()
20281{
20282 _ascii (); _ebcdic ();
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -s conftest.$ac_objext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020299 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020300 ac_cv_c_bigendian=yes
20301fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020302if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020303 if test "$ac_cv_c_bigendian" = unknown; then
20304 ac_cv_c_bigendian=no
20305 else
20306 # finding both strings is unlikely to happen, but who knows?
20307 ac_cv_c_bigendian=unknown
20308 fi
20309fi
20310else
20311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020312sed 's/^/| /' conftest.$ac_ext >&5
20313
John Criswell7a73b802003-06-30 21:59:07 +000020314fi
20315rm -f conftest.$ac_objext conftest.$ac_ext
20316else
20317 cat >conftest.$ac_ext <<_ACEOF
20318#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020319/* confdefs.h. */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020324int
20325main ()
20326{
20327 /* Are we little or big endian? From Harbison&Steele. */
20328 union
20329 {
20330 long l;
20331 char c[sizeof (long)];
20332 } u;
20333 u.l = 1;
20334 exit (u.c[sizeof (long) - 1] == 1);
20335}
20336_ACEOF
20337rm -f conftest$ac_exeext
20338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339 (eval $ac_link) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_bigendian=no
20349else
20350 echo "$as_me: program exited with status $ac_status" >&5
20351echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020352sed 's/^/| /' conftest.$ac_ext >&5
20353
John Criswell7a73b802003-06-30 21:59:07 +000020354( exit $ac_status )
20355ac_cv_c_bigendian=yes
20356fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020357rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020358fi
20359fi
20360rm -f conftest.$ac_objext conftest.$ac_ext
20361fi
20362echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20363echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20364case $ac_cv_c_bigendian in
20365 yes)
20366 cat >>confdefs.h <<\_ACEOF
20367#define ENDIAN_BIG 1
20368_ACEOF
20369 ;;
20370 no)
20371 cat >>confdefs.h <<\_ACEOF
20372#define ENDIAN_LITTLE 1
20373_ACEOF
20374 ;;
20375 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020376 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020377presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020378echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020379presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20380 { (exit 1); exit 1; }; } ;;
20381esac
20382
20383
20384echo "$as_me:$LINENO: checking for pid_t" >&5
20385echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20386if test "${ac_cv_type_pid_t+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388else
20389 cat >conftest.$ac_ext <<_ACEOF
20390#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020391/* confdefs.h. */
20392_ACEOF
20393cat confdefs.h >>conftest.$ac_ext
20394cat >>conftest.$ac_ext <<_ACEOF
20395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020396$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020397int
20398main ()
20399{
20400if ((pid_t *) 0)
20401 return 0;
20402if (sizeof (pid_t))
20403 return 0;
20404 ;
20405 return 0;
20406}
20407_ACEOF
20408rm -f conftest.$ac_objext
20409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410 (eval $ac_compile) 2>&5
20411 ac_status=$?
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -s conftest.$ac_objext'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20417 ac_status=$?
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 ac_cv_type_pid_t=yes
20421else
20422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020423sed 's/^/| /' conftest.$ac_ext >&5
20424
John Criswell7a73b802003-06-30 21:59:07 +000020425ac_cv_type_pid_t=no
20426fi
20427rm -f conftest.$ac_objext conftest.$ac_ext
20428fi
20429echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20430echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20431if test $ac_cv_type_pid_t = yes; then
20432 :
20433else
20434
20435cat >>confdefs.h <<_ACEOF
20436#define pid_t int
20437_ACEOF
20438
20439fi
20440
20441echo "$as_me:$LINENO: checking for size_t" >&5
20442echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20443if test "${ac_cv_type_size_t+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446 cat >conftest.$ac_ext <<_ACEOF
20447#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020448/* confdefs.h. */
20449_ACEOF
20450cat confdefs.h >>conftest.$ac_ext
20451cat >>conftest.$ac_ext <<_ACEOF
20452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020453$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020454int
20455main ()
20456{
20457if ((size_t *) 0)
20458 return 0;
20459if (sizeof (size_t))
20460 return 0;
20461 ;
20462 return 0;
20463}
20464_ACEOF
20465rm -f conftest.$ac_objext
20466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20467 (eval $ac_compile) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20477 ac_cv_type_size_t=yes
20478else
20479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020480sed 's/^/| /' conftest.$ac_ext >&5
20481
John Criswell7a73b802003-06-30 21:59:07 +000020482ac_cv_type_size_t=no
20483fi
20484rm -f conftest.$ac_objext conftest.$ac_ext
20485fi
20486echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20487echo "${ECHO_T}$ac_cv_type_size_t" >&6
20488if test $ac_cv_type_size_t = yes; then
20489 :
20490else
20491
20492cat >>confdefs.h <<_ACEOF
20493#define size_t unsigned
20494_ACEOF
20495
20496fi
20497
20498echo "$as_me:$LINENO: checking for int64_t" >&5
20499echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20500if test "${ac_cv_type_int64_t+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502else
20503 cat >conftest.$ac_ext <<_ACEOF
20504#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020510$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020511int
20512main ()
20513{
20514if ((int64_t *) 0)
20515 return 0;
20516if (sizeof (int64_t))
20517 return 0;
20518 ;
20519 return 0;
20520}
20521_ACEOF
20522rm -f conftest.$ac_objext
20523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20524 (eval $ac_compile) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -s conftest.$ac_objext'
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; }; then
20534 ac_cv_type_int64_t=yes
20535else
20536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020537sed 's/^/| /' conftest.$ac_ext >&5
20538
John Criswell7a73b802003-06-30 21:59:07 +000020539ac_cv_type_int64_t=no
20540fi
20541rm -f conftest.$ac_objext conftest.$ac_ext
20542fi
20543echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20544echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20545if test $ac_cv_type_int64_t = yes; then
20546
20547cat >>confdefs.h <<_ACEOF
20548#define HAVE_INT64_T 1
20549_ACEOF
20550
20551
20552else
20553 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20554echo "$as_me: error: Type int64_t required but not found" >&2;}
20555 { (exit 1); exit 1; }; }
20556fi
20557
20558echo "$as_me:$LINENO: checking for uint64_t" >&5
20559echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20560if test "${ac_cv_type_uint64_t+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563 cat >conftest.$ac_ext <<_ACEOF
20564#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020565/* confdefs.h. */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020570$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020571int
20572main ()
20573{
20574if ((uint64_t *) 0)
20575 return 0;
20576if (sizeof (uint64_t))
20577 return 0;
20578 ;
20579 return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext
20583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20584 (eval $ac_compile) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_type_uint64_t=yes
20595else
20596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020597sed 's/^/| /' conftest.$ac_ext >&5
20598
John Criswell7a73b802003-06-30 21:59:07 +000020599ac_cv_type_uint64_t=no
20600fi
20601rm -f conftest.$ac_objext conftest.$ac_ext
20602fi
20603echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20604echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20605if test $ac_cv_type_uint64_t = yes; then
20606
20607cat >>confdefs.h <<_ACEOF
20608#define HAVE_UINT64_T 1
20609_ACEOF
20610
20611
20612else
20613 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20614echo "$as_me: error: Type uint64_t required but not found" >&2;}
20615 { (exit 1); exit 1; }; }
20616fi
20617
20618echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20619echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20620if test "${ac_cv_header_time+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622else
20623 cat >conftest.$ac_ext <<_ACEOF
20624#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020630#include <sys/types.h>
20631#include <sys/time.h>
20632#include <time.h>
20633
John Criswell7a73b802003-06-30 21:59:07 +000020634int
20635main ()
20636{
20637if ((struct tm *) 0)
20638return 0;
20639 ;
20640 return 0;
20641}
20642_ACEOF
20643rm -f conftest.$ac_objext
20644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20645 (eval $ac_compile) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } &&
20649 { ac_try='test -s conftest.$ac_objext'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_cv_header_time=yes
20656else
20657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020658sed 's/^/| /' conftest.$ac_ext >&5
20659
John Criswell7a73b802003-06-30 21:59:07 +000020660ac_cv_header_time=no
20661fi
20662rm -f conftest.$ac_objext conftest.$ac_ext
20663fi
20664echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20665echo "${ECHO_T}$ac_cv_header_time" >&6
20666if test $ac_cv_header_time = yes; then
20667
20668cat >>confdefs.h <<\_ACEOF
20669#define TIME_WITH_SYS_TIME 1
20670_ACEOF
20671
20672fi
20673
20674echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20675echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20676if test "${ac_cv_struct_tm+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678else
20679 cat >conftest.$ac_ext <<_ACEOF
20680#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020686#include <sys/types.h>
20687#include <time.h>
20688
John Criswell7a73b802003-06-30 21:59:07 +000020689int
20690main ()
20691{
20692struct tm *tp; tp->tm_sec;
20693 ;
20694 return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699 (eval $ac_compile) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -s conftest.$ac_objext'
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 ac_cv_struct_tm=time.h
20710else
20711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020712sed 's/^/| /' conftest.$ac_ext >&5
20713
John Criswell7a73b802003-06-30 21:59:07 +000020714ac_cv_struct_tm=sys/time.h
20715fi
20716rm -f conftest.$ac_objext conftest.$ac_ext
20717fi
20718echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20719echo "${ECHO_T}$ac_cv_struct_tm" >&6
20720if test $ac_cv_struct_tm = sys/time.h; then
20721
20722cat >>confdefs.h <<\_ACEOF
20723#define TM_IN_SYS_TIME 1
20724_ACEOF
20725
20726fi
20727
20728
John Criswell7a73b802003-06-30 21:59:07 +000020729echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20730echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20731if test "${ac_cv_cxx_namespaces+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733else
20734
20735
20736 ac_ext=cc
20737ac_cpp='$CXXCPP $CPPFLAGS'
20738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742 cat >conftest.$ac_ext <<_ACEOF
20743#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020744/* confdefs.h. */
20745_ACEOF
20746cat confdefs.h >>conftest.$ac_ext
20747cat >>conftest.$ac_ext <<_ACEOF
20748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020749namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020750int
20751main ()
20752{
20753using namespace Outer::Inner; return i;
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } &&
20764 { ac_try='test -s conftest.$ac_objext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 ac_cv_cxx_namespaces=yes
20771else
20772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020773sed 's/^/| /' conftest.$ac_ext >&5
20774
John Criswell7a73b802003-06-30 21:59:07 +000020775ac_cv_cxx_namespaces=no
20776fi
20777rm -f conftest.$ac_objext conftest.$ac_ext
20778 ac_ext=c
20779ac_cpp='$CPP $CPPFLAGS'
20780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20782ac_compiler_gnu=$ac_cv_c_compiler_gnu
20783
20784
20785fi
20786echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20787echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20788if test "$ac_cv_cxx_namespaces" = yes; then
20789
20790cat >>confdefs.h <<\_ACEOF
20791#define HAVE_NAMESPACES
20792_ACEOF
20793
20794fi
20795
20796echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20797echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20798if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20800else
20801
20802
20803
20804 ac_ext=cc
20805ac_cpp='$CXXCPP $CPPFLAGS'
20806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810 cat >conftest.$ac_ext <<_ACEOF
20811#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020812/* confdefs.h. */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020817#include <ext/hash_map>
20818#ifdef HAVE_NAMESPACES
20819using namespace std;
20820#endif
John Criswell7a73b802003-06-30 21:59:07 +000020821int
20822main ()
20823{
20824hash_map<int, int> t; return 0;
20825 ;
20826 return 0;
20827}
20828_ACEOF
20829rm -f conftest.$ac_objext
20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831 (eval $ac_compile) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } &&
20835 { ac_try='test -s conftest.$ac_objext'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 ac_cv_cxx_have_ext_hash_map=std
20842else
20843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020844sed 's/^/| /' conftest.$ac_ext >&5
20845
John Criswell7a73b802003-06-30 21:59:07 +000020846ac_cv_cxx_have_ext_hash_map=no
20847fi
20848rm -f conftest.$ac_objext conftest.$ac_ext
20849 cat >conftest.$ac_ext <<_ACEOF
20850#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020851/* confdefs.h. */
20852_ACEOF
20853cat confdefs.h >>conftest.$ac_ext
20854cat >>conftest.$ac_ext <<_ACEOF
20855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020856#include <ext/hash_map>
20857#ifdef HAVE_NAMESPACES
20858using namespace __gnu_cxx;
20859#endif
John Criswell7a73b802003-06-30 21:59:07 +000020860int
20861main ()
20862{
20863hash_map<int, int> t; return 0;
20864 ;
20865 return 0;
20866}
20867_ACEOF
20868rm -f conftest.$ac_objext
20869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20870 (eval $ac_compile) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } &&
20874 { ac_try='test -s conftest.$ac_objext'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_cv_cxx_have_ext_hash_map=gnu
20881else
20882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020883sed 's/^/| /' conftest.$ac_ext >&5
20884
John Criswell7a73b802003-06-30 21:59:07 +000020885ac_cv_cxx_have_ext_hash_map=no
20886fi
20887rm -f conftest.$ac_objext conftest.$ac_ext
20888 ac_ext=c
20889ac_cpp='$CPP $CPPFLAGS'
20890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892ac_compiler_gnu=$ac_cv_c_compiler_gnu
20893
20894
20895fi
20896echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20897echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20898if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20899
20900cat >>confdefs.h <<\_ACEOF
20901#define HAVE_STD_EXT_HASH_MAP
20902_ACEOF
20903
20904fi
20905if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20906
20907cat >>confdefs.h <<\_ACEOF
20908#define HAVE_GNU_EXT_HASH_MAP
20909_ACEOF
20910
20911fi
20912
20913echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20914echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20915if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917else
20918
20919
20920
20921 ac_ext=cc
20922ac_cpp='$CXXCPP $CPPFLAGS'
20923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20926
20927 cat >conftest.$ac_ext <<_ACEOF
20928#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020929/* confdefs.h. */
20930_ACEOF
20931cat confdefs.h >>conftest.$ac_ext
20932cat >>conftest.$ac_ext <<_ACEOF
20933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020934#include <ext/hash_set>
20935#ifdef HAVE_NAMESPACES
20936using namespace std;
20937#endif
John Criswell7a73b802003-06-30 21:59:07 +000020938int
20939main ()
20940{
20941hash_set<int> t; return 0;
20942 ;
20943 return 0;
20944}
20945_ACEOF
20946rm -f conftest.$ac_objext
20947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20948 (eval $ac_compile) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -s conftest.$ac_objext'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_cv_cxx_have_ext_hash_set=std
20959else
20960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020961sed 's/^/| /' conftest.$ac_ext >&5
20962
John Criswell7a73b802003-06-30 21:59:07 +000020963ac_cv_cxx_have_ext_hash_set=no
20964fi
20965rm -f conftest.$ac_objext conftest.$ac_ext
20966 cat >conftest.$ac_ext <<_ACEOF
20967#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020968/* confdefs.h. */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020973#include <ext/hash_set>
20974#ifdef HAVE_NAMESPACES
20975using namespace __gnu_cxx;
20976#endif
John Criswell7a73b802003-06-30 21:59:07 +000020977int
20978main ()
20979{
20980hash_set<int> t; return 0;
20981 ;
20982 return 0;
20983}
20984_ACEOF
20985rm -f conftest.$ac_objext
20986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20987 (eval $ac_compile) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
20991 { ac_try='test -s conftest.$ac_objext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 ac_cv_cxx_have_ext_hash_set=gnu
20998else
20999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021000sed 's/^/| /' conftest.$ac_ext >&5
21001
John Criswell7a73b802003-06-30 21:59:07 +000021002ac_cv_cxx_have_ext_hash_set=no
21003fi
21004rm -f conftest.$ac_objext conftest.$ac_ext
21005 ac_ext=c
21006ac_cpp='$CPP $CPPFLAGS'
21007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009ac_compiler_gnu=$ac_cv_c_compiler_gnu
21010
21011
21012fi
21013echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21014echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21015if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21016
21017cat >>confdefs.h <<\_ACEOF
21018#define HAVE_STD_EXT_HASH_SET
21019_ACEOF
21020
21021fi
21022if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21023
21024cat >>confdefs.h <<\_ACEOF
21025#define HAVE_GNU_EXT_HASH_SET
21026_ACEOF
21027
21028fi
21029
21030echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21031echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21032if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034else
21035
21036
21037
21038 ac_ext=cc
21039ac_cpp='$CXXCPP $CPPFLAGS'
21040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044 cat >conftest.$ac_ext <<_ACEOF
21045#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021051#include <ext/slist>
21052#ifdef HAVE_NAMESPACES
21053using namespace std;
21054#endif
John Criswell7a73b802003-06-30 21:59:07 +000021055int
21056main ()
21057{
21058slist<int> s; return 0;
21059 ;
21060 return 0;
21061}
21062_ACEOF
21063rm -f conftest.$ac_objext
21064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065 (eval $ac_compile) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } &&
21069 { ac_try='test -s conftest.$ac_objext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 ac_cv_cxx_have_ext_slist=std
21076else
21077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021078sed 's/^/| /' conftest.$ac_ext >&5
21079
John Criswell7a73b802003-06-30 21:59:07 +000021080ac_cv_cxx_have_ext_slist=no
21081fi
21082rm -f conftest.$ac_objext conftest.$ac_ext
21083 cat >conftest.$ac_ext <<_ACEOF
21084#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021085/* confdefs.h. */
21086_ACEOF
21087cat confdefs.h >>conftest.$ac_ext
21088cat >>conftest.$ac_ext <<_ACEOF
21089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021090#include <ext/slist>
21091#ifdef HAVE_NAMESPACES
21092using namespace __gnu_cxx;
21093#endif
John Criswell7a73b802003-06-30 21:59:07 +000021094int
21095main ()
21096{
21097slist<int> s; return 0;
21098 ;
21099 return 0;
21100}
21101_ACEOF
21102rm -f conftest.$ac_objext
21103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104 (eval $ac_compile) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -s conftest.$ac_objext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_cv_cxx_have_ext_slist=gnu
21115else
21116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021117sed 's/^/| /' conftest.$ac_ext >&5
21118
John Criswell7a73b802003-06-30 21:59:07 +000021119ac_cv_cxx_have_ext_slist=no
21120fi
21121rm -f conftest.$ac_objext conftest.$ac_ext
21122
21123 ac_ext=c
21124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129
21130fi
21131echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21132echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21133if test "$ac_cv_cxx_have_ext_slist" = std; then
21134
21135cat >>confdefs.h <<\_ACEOF
21136#define HAVE_EXT_SLIST std
21137_ACEOF
21138
21139fi
21140if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21141
21142cat >>confdefs.h <<\_ACEOF
21143#define HAVE_EXT_SLIST gnu
21144_ACEOF
21145
21146fi
21147
21148echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21149echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21150if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152else
21153
21154
21155
21156 ac_ext=cc
21157ac_cpp='$CXXCPP $CPPFLAGS'
21158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21161
21162 cat >conftest.$ac_ext <<_ACEOF
21163#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021164/* confdefs.h. */
21165_ACEOF
21166cat confdefs.h >>conftest.$ac_ext
21167cat >>conftest.$ac_ext <<_ACEOF
21168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021169#include <iterator>
21170#ifdef HAVE_NAMESPACES
21171using namespace std;
21172#endif
John Criswell7a73b802003-06-30 21:59:07 +000021173int
21174main ()
21175{
21176iterator<int,int,int> t; return 0;
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext
21182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21183 (eval $ac_compile) 2>&5
21184 ac_status=$?
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } &&
21187 { ac_try='test -s conftest.$ac_objext'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21193 ac_cv_cxx_have_std_iterator=yes
21194else
21195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021196sed 's/^/| /' conftest.$ac_ext >&5
21197
John Criswell7a73b802003-06-30 21:59:07 +000021198ac_cv_cxx_have_std_iterator=no
21199fi
21200rm -f conftest.$ac_objext conftest.$ac_ext
21201 ac_ext=c
21202ac_cpp='$CPP $CPPFLAGS'
21203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21205ac_compiler_gnu=$ac_cv_c_compiler_gnu
21206
21207
21208fi
21209echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21210echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21211if test "$ac_cv_cxx_have_std_iterator" = yes; then
21212
21213cat >>confdefs.h <<\_ACEOF
21214#define HAVE_STD_ITERATOR
21215_ACEOF
21216
21217fi
21218
21219echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21220echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21221if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223else
21224
21225
21226
21227 ac_ext=cc
21228ac_cpp='$CXXCPP $CPPFLAGS'
21229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21232
21233 cat >conftest.$ac_ext <<_ACEOF
21234#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021235/* confdefs.h. */
21236_ACEOF
21237cat confdefs.h >>conftest.$ac_ext
21238cat >>conftest.$ac_ext <<_ACEOF
21239/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021240#include <iterator>
21241#ifdef HAVE_NAMESPACES
21242using namespace std;
21243#endif
John Criswell7a73b802003-06-30 21:59:07 +000021244int
21245main ()
21246{
John Criswellc78022e2003-07-29 19:11:58 +000021247bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21254 (eval $ac_compile) 2>&5
21255 ac_status=$?
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -s conftest.$ac_objext'
21259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21260 (eval $ac_try) 2>&5
21261 ac_status=$?
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); }; }; then
21264 ac_cv_cxx_have_bi_iterator=yes
21265else
21266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021267sed 's/^/| /' conftest.$ac_ext >&5
21268
John Criswell7a73b802003-06-30 21:59:07 +000021269ac_cv_cxx_have_bi_iterator=no
21270fi
21271rm -f conftest.$ac_objext conftest.$ac_ext
21272 ac_ext=c
21273ac_cpp='$CPP $CPPFLAGS'
21274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276ac_compiler_gnu=$ac_cv_c_compiler_gnu
21277
21278
21279fi
21280echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21281echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21282if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21283
21284cat >>confdefs.h <<\_ACEOF
21285#define HAVE_BI_ITERATOR
21286_ACEOF
21287
21288fi
21289
21290echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21291echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21292if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
21294else
21295
21296
21297
21298 ac_ext=cc
21299ac_cpp='$CXXCPP $CPPFLAGS'
21300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21303
21304 cat >conftest.$ac_ext <<_ACEOF
21305#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021306/* confdefs.h. */
21307_ACEOF
21308cat confdefs.h >>conftest.$ac_ext
21309cat >>conftest.$ac_ext <<_ACEOF
21310/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021311#include <iterator>
21312#ifdef HAVE_NAMESPACES
21313using namespace std;
21314#endif
John Criswell7a73b802003-06-30 21:59:07 +000021315int
21316main ()
21317{
John Criswellc78022e2003-07-29 19:11:58 +000021318forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021319 ;
21320 return 0;
21321}
21322_ACEOF
21323rm -f conftest.$ac_objext
21324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21325 (eval $ac_compile) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } &&
21329 { ac_try='test -s conftest.$ac_objext'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 ac_cv_cxx_have_fwd_iterator=yes
21336else
21337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021338sed 's/^/| /' conftest.$ac_ext >&5
21339
John Criswell7a73b802003-06-30 21:59:07 +000021340ac_cv_cxx_have_fwd_iterator=no
21341fi
21342rm -f conftest.$ac_objext conftest.$ac_ext
21343 ac_ext=c
21344ac_cpp='$CPP $CPPFLAGS'
21345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347ac_compiler_gnu=$ac_cv_c_compiler_gnu
21348
21349
21350fi
21351echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21352echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21353if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21354
21355cat >>confdefs.h <<\_ACEOF
21356#define HAVE_FWD_ITERATOR
21357_ACEOF
21358
21359fi
21360
21361
21362# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21363# for constant arguments. Useless!
21364echo "$as_me:$LINENO: checking for working alloca.h" >&5
21365echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21366if test "${ac_cv_working_alloca_h+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369 cat >conftest.$ac_ext <<_ACEOF
21370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021376#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021377int
21378main ()
21379{
21380char *p = (char *) alloca (2 * sizeof (int));
21381 ;
21382 return 0;
21383}
21384_ACEOF
21385rm -f conftest.$ac_objext conftest$ac_exeext
21386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21387 (eval $ac_link) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -s conftest$ac_exeext'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; }; then
21397 ac_cv_working_alloca_h=yes
21398else
21399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021400sed 's/^/| /' conftest.$ac_ext >&5
21401
John Criswell7a73b802003-06-30 21:59:07 +000021402ac_cv_working_alloca_h=no
21403fi
21404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21405fi
21406echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21407echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21408if test $ac_cv_working_alloca_h = yes; then
21409
21410cat >>confdefs.h <<\_ACEOF
21411#define HAVE_ALLOCA_H 1
21412_ACEOF
21413
21414fi
21415
21416echo "$as_me:$LINENO: checking for alloca" >&5
21417echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21418if test "${ac_cv_func_alloca_works+set}" = set; then
21419 echo $ECHO_N "(cached) $ECHO_C" >&6
21420else
21421 cat >conftest.$ac_ext <<_ACEOF
21422#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021423/* confdefs.h. */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021428#ifdef __GNUC__
21429# define alloca __builtin_alloca
21430#else
21431# ifdef _MSC_VER
21432# include <malloc.h>
21433# define alloca _alloca
21434# else
21435# if HAVE_ALLOCA_H
21436# include <alloca.h>
21437# else
21438# ifdef _AIX
21439 #pragma alloca
21440# else
21441# ifndef alloca /* predefined by HP cc +Olibcalls */
21442char *alloca ();
21443# endif
21444# endif
21445# endif
21446# endif
21447#endif
21448
John Criswell7a73b802003-06-30 21:59:07 +000021449int
21450main ()
21451{
21452char *p = (char *) alloca (1);
21453 ;
21454 return 0;
21455}
21456_ACEOF
21457rm -f conftest.$ac_objext conftest$ac_exeext
21458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459 (eval $ac_link) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
21463 { ac_try='test -s conftest$ac_exeext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_cv_func_alloca_works=yes
21470else
21471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021472sed 's/^/| /' conftest.$ac_ext >&5
21473
John Criswell7a73b802003-06-30 21:59:07 +000021474ac_cv_func_alloca_works=no
21475fi
21476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21477fi
21478echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21479echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21480
21481if test $ac_cv_func_alloca_works = yes; then
21482
21483cat >>confdefs.h <<\_ACEOF
21484#define HAVE_ALLOCA 1
21485_ACEOF
21486
21487else
21488 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21489# that cause trouble. Some versions do not even contain alloca or
21490# contain a buggy version. If you still want to use their alloca,
21491# use ar to extract alloca.o from them instead of compiling alloca.c.
21492
21493ALLOCA=alloca.$ac_objext
21494
21495cat >>confdefs.h <<\_ACEOF
21496#define C_ALLOCA 1
21497_ACEOF
21498
21499
21500echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21501echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21502if test "${ac_cv_os_cray+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505 cat >conftest.$ac_ext <<_ACEOF
21506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021512#if defined(CRAY) && ! defined(CRAY2)
21513webecray
21514#else
21515wenotbecray
21516#endif
21517
21518_ACEOF
21519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021520 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021521 ac_cv_os_cray=yes
21522else
21523 ac_cv_os_cray=no
21524fi
21525rm -f conftest*
21526
21527fi
21528echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21529echo "${ECHO_T}$ac_cv_os_cray" >&6
21530if test $ac_cv_os_cray = yes; then
21531 for ac_func in _getb67 GETB67 getb67; do
21532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21533echo "$as_me:$LINENO: checking for $ac_func" >&5
21534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21535if eval "test \"\${$as_ac_var+set}\" = set"; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21537else
21538 cat >conftest.$ac_ext <<_ACEOF
21539#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021540/* confdefs.h. */
21541_ACEOF
21542cat confdefs.h >>conftest.$ac_ext
21543cat >>conftest.$ac_ext <<_ACEOF
21544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021545/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021546 which can conflict with char $ac_func (); below.
21547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21548 <limits.h> exists even on freestanding compilers. */
21549#ifdef __STDC__
21550# include <limits.h>
21551#else
21552# include <assert.h>
21553#endif
John Criswell7a73b802003-06-30 21:59:07 +000021554/* Override any gcc2 internal prototype to avoid an error. */
21555#ifdef __cplusplus
21556extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021557{
John Criswell7a73b802003-06-30 21:59:07 +000021558#endif
21559/* We use char because int might match the return type of a gcc2
21560 builtin and then its argument prototype would still apply. */
21561char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021562/* The GNU C library defines this for functions which it implements
21563 to always fail with ENOSYS. Some functions are actually named
21564 something starting with __ and the normal name is an alias. */
21565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21566choke me
21567#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021568char (*f) () = $ac_func;
21569#endif
21570#ifdef __cplusplus
21571}
John Criswell7a73b802003-06-30 21:59:07 +000021572#endif
21573
John Criswell0c38eaf2003-09-10 15:17:25 +000021574int
21575main ()
21576{
21577return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021578 ;
21579 return 0;
21580}
21581_ACEOF
21582rm -f conftest.$ac_objext conftest$ac_exeext
21583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21584 (eval $ac_link) 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } &&
21588 { ac_try='test -s conftest$ac_exeext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21591 ac_status=$?
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 eval "$as_ac_var=yes"
21595else
21596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021597sed 's/^/| /' conftest.$ac_ext >&5
21598
John Criswell7a73b802003-06-30 21:59:07 +000021599eval "$as_ac_var=no"
21600fi
21601rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21602fi
21603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21604echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21605if test `eval echo '${'$as_ac_var'}'` = yes; then
21606
21607cat >>confdefs.h <<_ACEOF
21608#define CRAY_STACKSEG_END $ac_func
21609_ACEOF
21610
21611 break
21612fi
21613
21614 done
21615fi
21616
21617echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21618echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21619if test "${ac_cv_c_stack_direction+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621else
21622 if test "$cross_compiling" = yes; then
21623 ac_cv_c_stack_direction=0
21624else
21625 cat >conftest.$ac_ext <<_ACEOF
21626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021627/* confdefs.h. */
21628_ACEOF
21629cat confdefs.h >>conftest.$ac_ext
21630cat >>conftest.$ac_ext <<_ACEOF
21631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021632int
21633find_stack_direction ()
21634{
21635 static char *addr = 0;
21636 auto char dummy;
21637 if (addr == 0)
21638 {
21639 addr = &dummy;
21640 return find_stack_direction ();
21641 }
21642 else
21643 return (&dummy > addr) ? 1 : -1;
21644}
21645
21646int
21647main ()
21648{
21649 exit (find_stack_direction () < 0);
21650}
21651_ACEOF
21652rm -f conftest$ac_exeext
21653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21654 (eval $ac_link) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ac_cv_c_stack_direction=1
21664else
21665 echo "$as_me: program exited with status $ac_status" >&5
21666echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021667sed 's/^/| /' conftest.$ac_ext >&5
21668
John Criswell7a73b802003-06-30 21:59:07 +000021669( exit $ac_status )
21670ac_cv_c_stack_direction=-1
21671fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021672rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021673fi
21674fi
21675echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21676echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21677
21678cat >>confdefs.h <<_ACEOF
21679#define STACK_DIRECTION $ac_cv_c_stack_direction
21680_ACEOF
21681
21682
21683fi
21684
21685if test $ac_cv_c_compiler_gnu = yes; then
21686 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21687echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21688if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21690else
21691 ac_pattern="Autoconf.*'x'"
21692 cat >conftest.$ac_ext <<_ACEOF
21693#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021699#include <sgtty.h>
21700Autoconf TIOCGETP
21701_ACEOF
21702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021703 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021704 ac_cv_prog_gcc_traditional=yes
21705else
21706 ac_cv_prog_gcc_traditional=no
21707fi
21708rm -f conftest*
21709
21710
21711 if test $ac_cv_prog_gcc_traditional = no; then
21712 cat >conftest.$ac_ext <<_ACEOF
21713#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021714/* confdefs.h. */
21715_ACEOF
21716cat confdefs.h >>conftest.$ac_ext
21717cat >>conftest.$ac_ext <<_ACEOF
21718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021719#include <termio.h>
21720Autoconf TCGETA
21721_ACEOF
21722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021723 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021724 ac_cv_prog_gcc_traditional=yes
21725fi
21726rm -f conftest*
21727
21728 fi
21729fi
21730echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21731echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21732 if test $ac_cv_prog_gcc_traditional = yes; then
21733 CC="$CC -traditional"
21734 fi
21735fi
21736
21737echo "$as_me:$LINENO: checking for working memcmp" >&5
21738echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21739if test "${ac_cv_func_memcmp_working+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742 if test "$cross_compiling" = yes; then
21743 ac_cv_func_memcmp_working=no
21744else
21745 cat >conftest.$ac_ext <<_ACEOF
21746#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021752
John Criswell7a73b802003-06-30 21:59:07 +000021753int
21754main ()
21755{
21756
21757 /* Some versions of memcmp are not 8-bit clean. */
21758 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21759 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21760 exit (1);
21761
21762 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21763 or more and with at least one buffer not starting on a 4-byte boundary.
21764 William Lewis provided this test program. */
21765 {
21766 char foo[21];
21767 char bar[21];
21768 int i;
21769 for (i = 0; i < 4; i++)
21770 {
21771 char *a = foo + i;
21772 char *b = bar + i;
21773 strcpy (a, "--------01111111");
21774 strcpy (b, "--------10000000");
21775 if (memcmp (a, b, 16) >= 0)
21776 exit (1);
21777 }
21778 exit (0);
21779 }
21780
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785rm -f conftest$ac_exeext
21786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21787 (eval $ac_link) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792 (eval $ac_try) 2>&5
21793 ac_status=$?
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; }; then
21796 ac_cv_func_memcmp_working=yes
21797else
21798 echo "$as_me: program exited with status $ac_status" >&5
21799echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021800sed 's/^/| /' conftest.$ac_ext >&5
21801
John Criswell7a73b802003-06-30 21:59:07 +000021802( exit $ac_status )
21803ac_cv_func_memcmp_working=no
21804fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021805rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021806fi
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21809echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21810test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21811
21812
21813
21814for ac_header in stdlib.h unistd.h
21815do
21816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21817if eval "test \"\${$as_ac_Header+set}\" = set"; then
21818 echo "$as_me:$LINENO: checking for $ac_header" >&5
21819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21820if eval "test \"\${$as_ac_Header+set}\" = set"; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822fi
21823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21825else
21826 # Is the header compilable?
21827echo "$as_me:$LINENO: checking $ac_header usability" >&5
21828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21829cat >conftest.$ac_ext <<_ACEOF
21830#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021836$ac_includes_default
21837#include <$ac_header>
21838_ACEOF
21839rm -f conftest.$ac_objext
21840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21841 (eval $ac_compile) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } &&
21845 { ac_try='test -s conftest.$ac_objext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 ac_header_compiler=yes
21852else
21853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021854sed 's/^/| /' conftest.$ac_ext >&5
21855
John Criswell7a73b802003-06-30 21:59:07 +000021856ac_header_compiler=no
21857fi
21858rm -f conftest.$ac_objext conftest.$ac_ext
21859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21860echo "${ECHO_T}$ac_header_compiler" >&6
21861
21862# Is the header present?
21863echo "$as_me:$LINENO: checking $ac_header presence" >&5
21864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21865cat >conftest.$ac_ext <<_ACEOF
21866#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021867/* confdefs.h. */
21868_ACEOF
21869cat confdefs.h >>conftest.$ac_ext
21870cat >>conftest.$ac_ext <<_ACEOF
21871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021872#include <$ac_header>
21873_ACEOF
21874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21876 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021877 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } >/dev/null; then
21882 if test -s conftest.err; then
21883 ac_cpp_err=$ac_c_preproc_warn_flag
21884 else
21885 ac_cpp_err=
21886 fi
21887else
21888 ac_cpp_err=yes
21889fi
21890if test -z "$ac_cpp_err"; then
21891 ac_header_preproc=yes
21892else
21893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021894sed 's/^/| /' conftest.$ac_ext >&5
21895
John Criswell7a73b802003-06-30 21:59:07 +000021896 ac_header_preproc=no
21897fi
21898rm -f conftest.err conftest.$ac_ext
21899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900echo "${ECHO_T}$ac_header_preproc" >&6
21901
21902# So? What about this header?
21903case $ac_header_compiler:$ac_header_preproc in
21904 yes:no )
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21909 (
21910 cat <<\_ASBOX
21911## ------------------------------------ ##
21912## Report this to bug-autoconf@gnu.org. ##
21913## ------------------------------------ ##
21914_ASBOX
21915 ) |
21916 sed "s/^/$as_me: WARNING: /" >&2
21917 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021918 no:yes )
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21925 (
21926 cat <<\_ASBOX
21927## ------------------------------------ ##
21928## Report this to bug-autoconf@gnu.org. ##
21929## ------------------------------------ ##
21930_ASBOX
21931 ) |
21932 sed "s/^/$as_me: WARNING: /" >&2
21933 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021934esac
21935echo "$as_me:$LINENO: checking for $ac_header" >&5
21936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21937if eval "test \"\${$as_ac_Header+set}\" = set"; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939else
21940 eval "$as_ac_Header=$ac_header_preproc"
21941fi
21942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21944
21945fi
21946if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947 cat >>confdefs.h <<_ACEOF
21948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21949_ACEOF
21950
21951fi
21952
21953done
21954
21955
21956for ac_func in getpagesize
21957do
21958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21959echo "$as_me:$LINENO: checking for $ac_func" >&5
21960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21961if eval "test \"\${$as_ac_var+set}\" = set"; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963else
21964 cat >conftest.$ac_ext <<_ACEOF
21965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021966/* confdefs.h. */
21967_ACEOF
21968cat confdefs.h >>conftest.$ac_ext
21969cat >>conftest.$ac_ext <<_ACEOF
21970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021971/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021972 which can conflict with char $ac_func (); below.
21973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21974 <limits.h> exists even on freestanding compilers. */
21975#ifdef __STDC__
21976# include <limits.h>
21977#else
21978# include <assert.h>
21979#endif
John Criswell7a73b802003-06-30 21:59:07 +000021980/* Override any gcc2 internal prototype to avoid an error. */
21981#ifdef __cplusplus
21982extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021983{
John Criswell7a73b802003-06-30 21:59:07 +000021984#endif
21985/* We use char because int might match the return type of a gcc2
21986 builtin and then its argument prototype would still apply. */
21987char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021988/* The GNU C library defines this for functions which it implements
21989 to always fail with ENOSYS. Some functions are actually named
21990 something starting with __ and the normal name is an alias. */
21991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21992choke me
21993#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021994char (*f) () = $ac_func;
21995#endif
21996#ifdef __cplusplus
21997}
John Criswell7a73b802003-06-30 21:59:07 +000021998#endif
21999
John Criswell0c38eaf2003-09-10 15:17:25 +000022000int
22001main ()
22002{
22003return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022004 ;
22005 return 0;
22006}
22007_ACEOF
22008rm -f conftest.$ac_objext conftest$ac_exeext
22009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010 (eval $ac_link) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } &&
22014 { ac_try='test -s conftest$ac_exeext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22017 ac_status=$?
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22020 eval "$as_ac_var=yes"
22021else
22022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022023sed 's/^/| /' conftest.$ac_ext >&5
22024
John Criswell7a73b802003-06-30 21:59:07 +000022025eval "$as_ac_var=no"
22026fi
22027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22028fi
22029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22031if test `eval echo '${'$as_ac_var'}'` = yes; then
22032 cat >>confdefs.h <<_ACEOF
22033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22034_ACEOF
22035
22036fi
22037done
22038
22039echo "$as_me:$LINENO: checking for working mmap" >&5
22040echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22041if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043else
22044 if test "$cross_compiling" = yes; then
22045 ac_cv_func_mmap_fixed_mapped=no
22046else
22047 cat >conftest.$ac_ext <<_ACEOF
22048#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022049/* confdefs.h. */
22050_ACEOF
22051cat confdefs.h >>conftest.$ac_ext
22052cat >>conftest.$ac_ext <<_ACEOF
22053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022054$ac_includes_default
22055/* malloc might have been renamed as rpl_malloc. */
22056#undef malloc
22057
22058/* Thanks to Mike Haertel and Jim Avera for this test.
22059 Here is a matrix of mmap possibilities:
22060 mmap private not fixed
22061 mmap private fixed at somewhere currently unmapped
22062 mmap private fixed at somewhere already mapped
22063 mmap shared not fixed
22064 mmap shared fixed at somewhere currently unmapped
22065 mmap shared fixed at somewhere already mapped
22066 For private mappings, we should verify that changes cannot be read()
22067 back from the file, nor mmap's back from the file at a different
22068 address. (There have been systems where private was not correctly
22069 implemented like the infamous i386 svr4.0, and systems where the
22070 VM page cache was not coherent with the file system buffer cache
22071 like early versions of FreeBSD and possibly contemporary NetBSD.)
22072 For shared mappings, we should conversely verify that changes get
22073 propagated back to all the places they're supposed to be.
22074
22075 Grep wants private fixed already mapped.
22076 The main things grep needs to know about mmap are:
22077 * does it exist and is it safe to write into the mmap'd area
22078 * how to use it (BSD variants) */
22079
22080#include <fcntl.h>
22081#include <sys/mman.h>
22082
22083#if !STDC_HEADERS && !HAVE_STDLIB_H
22084char *malloc ();
22085#endif
22086
22087/* This mess was copied from the GNU getpagesize.h. */
22088#if !HAVE_GETPAGESIZE
22089/* Assume that all systems that can run configure have sys/param.h. */
22090# if !HAVE_SYS_PARAM_H
22091# define HAVE_SYS_PARAM_H 1
22092# endif
22093
22094# ifdef _SC_PAGESIZE
22095# define getpagesize() sysconf(_SC_PAGESIZE)
22096# else /* no _SC_PAGESIZE */
22097# if HAVE_SYS_PARAM_H
22098# include <sys/param.h>
22099# ifdef EXEC_PAGESIZE
22100# define getpagesize() EXEC_PAGESIZE
22101# else /* no EXEC_PAGESIZE */
22102# ifdef NBPG
22103# define getpagesize() NBPG * CLSIZE
22104# ifndef CLSIZE
22105# define CLSIZE 1
22106# endif /* no CLSIZE */
22107# else /* no NBPG */
22108# ifdef NBPC
22109# define getpagesize() NBPC
22110# else /* no NBPC */
22111# ifdef PAGESIZE
22112# define getpagesize() PAGESIZE
22113# endif /* PAGESIZE */
22114# endif /* no NBPC */
22115# endif /* no NBPG */
22116# endif /* no EXEC_PAGESIZE */
22117# else /* no HAVE_SYS_PARAM_H */
22118# define getpagesize() 8192 /* punt totally */
22119# endif /* no HAVE_SYS_PARAM_H */
22120# endif /* no _SC_PAGESIZE */
22121
22122#endif /* no HAVE_GETPAGESIZE */
22123
22124int
22125main ()
22126{
22127 char *data, *data2, *data3;
22128 int i, pagesize;
22129 int fd;
22130
22131 pagesize = getpagesize ();
22132
22133 /* First, make a file with some known garbage in it. */
22134 data = (char *) malloc (pagesize);
22135 if (!data)
22136 exit (1);
22137 for (i = 0; i < pagesize; ++i)
22138 *(data + i) = rand ();
22139 umask (0);
22140 fd = creat ("conftest.mmap", 0600);
22141 if (fd < 0)
22142 exit (1);
22143 if (write (fd, data, pagesize) != pagesize)
22144 exit (1);
22145 close (fd);
22146
22147 /* Next, try to mmap the file at a fixed address which already has
22148 something else allocated at it. If we can, also make sure that
22149 we see the same garbage. */
22150 fd = open ("conftest.mmap", O_RDWR);
22151 if (fd < 0)
22152 exit (1);
22153 data2 = (char *) malloc (2 * pagesize);
22154 if (!data2)
22155 exit (1);
22156 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22157 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22158 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22159 exit (1);
22160 for (i = 0; i < pagesize; ++i)
22161 if (*(data + i) != *(data2 + i))
22162 exit (1);
22163
22164 /* Finally, make sure that changes to the mapped area do not
22165 percolate back to the file as seen by read(). (This is a bug on
22166 some variants of i386 svr4.0.) */
22167 for (i = 0; i < pagesize; ++i)
22168 *(data2 + i) = *(data2 + i) + 1;
22169 data3 = (char *) malloc (pagesize);
22170 if (!data3)
22171 exit (1);
22172 if (read (fd, data3, pagesize) != pagesize)
22173 exit (1);
22174 for (i = 0; i < pagesize; ++i)
22175 if (*(data + i) != *(data3 + i))
22176 exit (1);
22177 close (fd);
22178 exit (0);
22179}
22180_ACEOF
22181rm -f conftest$ac_exeext
22182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183 (eval $ac_link) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188 (eval $ac_try) 2>&5
22189 ac_status=$?
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); }; }; then
22192 ac_cv_func_mmap_fixed_mapped=yes
22193else
22194 echo "$as_me: program exited with status $ac_status" >&5
22195echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022196sed 's/^/| /' conftest.$ac_ext >&5
22197
John Criswell7a73b802003-06-30 21:59:07 +000022198( exit $ac_status )
22199ac_cv_func_mmap_fixed_mapped=no
22200fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022201rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022202fi
22203fi
22204echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22205echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22206if test $ac_cv_func_mmap_fixed_mapped = yes; then
22207
22208cat >>confdefs.h <<\_ACEOF
22209#define HAVE_MMAP 1
22210_ACEOF
22211
22212fi
22213rm -f conftest.mmap
22214
22215echo "$as_me:$LINENO: checking for mmap of files" >&5
22216echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22217if test "${ac_cv_func_mmap_file+set}" = set; then
22218 echo $ECHO_N "(cached) $ECHO_C" >&6
22219else
22220
22221
22222 ac_ext=c
22223ac_cpp='$CPP $CPPFLAGS'
22224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226ac_compiler_gnu=$ac_cv_c_compiler_gnu
22227
22228 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22230See \`config.log' for more details." >&5
22231echo "$as_me: error: cannot run test program while cross compiling
22232See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022233 { (exit 1); exit 1; }; }
22234else
22235 cat >conftest.$ac_ext <<_ACEOF
22236#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022237/* confdefs.h. */
22238_ACEOF
22239cat confdefs.h >>conftest.$ac_ext
22240cat >>conftest.$ac_ext <<_ACEOF
22241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022242
22243#ifdef HAVE_SYS_MMAN_H
22244#include <sys/mman.h>
22245#endif
22246
22247#ifdef HAVE_SYS_TYPES_H
22248#include <sys/types.h>
22249#endif
22250
22251#ifdef HAVE_FCNTL_H
22252#include <fcntl.h>
22253#endif
22254
22255 int fd;
22256 int main () {
22257 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22258_ACEOF
22259rm -f conftest$ac_exeext
22260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261 (eval $ac_link) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
22270 ac_cv_func_mmap_file=yes
22271else
22272 echo "$as_me: program exited with status $ac_status" >&5
22273echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022274sed 's/^/| /' conftest.$ac_ext >&5
22275
John Criswell7a73b802003-06-30 21:59:07 +000022276( exit $ac_status )
22277ac_cv_func_mmap_file=no
22278fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022279rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022280fi
22281 ac_ext=c
22282ac_cpp='$CPP $CPPFLAGS'
22283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22285ac_compiler_gnu=$ac_cv_c_compiler_gnu
22286
22287
22288fi
22289echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22290echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22291if test "$ac_cv_func_mmap_file" = yes; then
22292 cat >>confdefs.h <<\_ACEOF
22293#define HAVE_MMAP_FILE 1
22294_ACEOF
22295
22296 MMAP_FILE=yes
22297
22298fi
22299
22300if test ${ac_cv_func_mmap_file} = "no"
22301then
22302 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22303echo "$as_me: error: mmap() of files required but not found" >&2;}
22304 { (exit 1); exit 1; }; }
22305fi
22306echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22307echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22308if test "${ac_cv_header_mmap_anon+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22310else
22311
22312
22313 ac_ext=c
22314ac_cpp='$CPP $CPPFLAGS'
22315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22317ac_compiler_gnu=$ac_cv_c_compiler_gnu
22318
22319 cat >conftest.$ac_ext <<_ACEOF
22320#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022321/* confdefs.h. */
22322_ACEOF
22323cat confdefs.h >>conftest.$ac_ext
22324cat >>conftest.$ac_ext <<_ACEOF
22325/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022326#include <sys/mman.h>
22327 #include <unistd.h>
22328 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022329int
22330main ()
22331{
22332mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22333 ;
22334 return 0;
22335}
22336_ACEOF
22337rm -f conftest.$ac_objext
22338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22339 (eval $ac_compile) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } &&
22343 { ac_try='test -s conftest.$ac_objext'
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_header_mmap_anon=yes
22350else
22351 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022352sed 's/^/| /' conftest.$ac_ext >&5
22353
John Criswell7a73b802003-06-30 21:59:07 +000022354ac_cv_header_mmap_anon=no
22355fi
22356rm -f conftest.$ac_objext conftest.$ac_ext
22357 ac_ext=c
22358ac_cpp='$CPP $CPPFLAGS'
22359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362
22363
22364fi
22365echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22366echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22367if test "$ac_cv_header_mmap_anon" = yes; then
22368 cat >>confdefs.h <<\_ACEOF
22369#define HAVE_MMAP_ANONYMOUS 1
22370_ACEOF
22371
22372fi
22373
22374echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22375echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22376if test "${ac_cv_type_signal+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22378else
22379 cat >conftest.$ac_ext <<_ACEOF
22380#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022381/* confdefs.h. */
22382_ACEOF
22383cat confdefs.h >>conftest.$ac_ext
22384cat >>conftest.$ac_ext <<_ACEOF
22385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022386#include <sys/types.h>
22387#include <signal.h>
22388#ifdef signal
22389# undef signal
22390#endif
22391#ifdef __cplusplus
22392extern "C" void (*signal (int, void (*)(int)))(int);
22393#else
22394void (*signal ()) ();
22395#endif
22396
John Criswell7a73b802003-06-30 21:59:07 +000022397int
22398main ()
22399{
22400int i;
22401 ;
22402 return 0;
22403}
22404_ACEOF
22405rm -f conftest.$ac_objext
22406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22407 (eval $ac_compile) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
22411 { ac_try='test -s conftest.$ac_objext'
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; }; then
22417 ac_cv_type_signal=void
22418else
22419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022420sed 's/^/| /' conftest.$ac_ext >&5
22421
John Criswell7a73b802003-06-30 21:59:07 +000022422ac_cv_type_signal=int
22423fi
22424rm -f conftest.$ac_objext conftest.$ac_ext
22425fi
22426echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22427echo "${ECHO_T}$ac_cv_type_signal" >&6
22428
22429cat >>confdefs.h <<_ACEOF
22430#define RETSIGTYPE $ac_cv_type_signal
22431_ACEOF
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22444do
22445as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446echo "$as_me:$LINENO: checking for $ac_func" >&5
22447echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22448if eval "test \"\${$as_ac_var+set}\" = set"; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450else
22451 cat >conftest.$ac_ext <<_ACEOF
22452#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022453/* confdefs.h. */
22454_ACEOF
22455cat confdefs.h >>conftest.$ac_ext
22456cat >>conftest.$ac_ext <<_ACEOF
22457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022458/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022459 which can conflict with char $ac_func (); below.
22460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22461 <limits.h> exists even on freestanding compilers. */
22462#ifdef __STDC__
22463# include <limits.h>
22464#else
22465# include <assert.h>
22466#endif
John Criswell7a73b802003-06-30 21:59:07 +000022467/* Override any gcc2 internal prototype to avoid an error. */
22468#ifdef __cplusplus
22469extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022470{
John Criswell7a73b802003-06-30 21:59:07 +000022471#endif
22472/* We use char because int might match the return type of a gcc2
22473 builtin and then its argument prototype would still apply. */
22474char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022475/* The GNU C library defines this for functions which it implements
22476 to always fail with ENOSYS. Some functions are actually named
22477 something starting with __ and the normal name is an alias. */
22478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22479choke me
22480#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022481char (*f) () = $ac_func;
22482#endif
22483#ifdef __cplusplus
22484}
John Criswell7a73b802003-06-30 21:59:07 +000022485#endif
22486
John Criswell0c38eaf2003-09-10 15:17:25 +000022487int
22488main ()
22489{
22490return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022491 ;
22492 return 0;
22493}
22494_ACEOF
22495rm -f conftest.$ac_objext conftest$ac_exeext
22496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497 (eval $ac_link) 2>&5
22498 ac_status=$?
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } &&
22501 { ac_try='test -s conftest$ac_exeext'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 eval "$as_ac_var=yes"
22508else
22509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022510sed 's/^/| /' conftest.$ac_ext >&5
22511
John Criswell7a73b802003-06-30 21:59:07 +000022512eval "$as_ac_var=no"
22513fi
22514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22515fi
22516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22518if test `eval echo '${'$as_ac_var'}'` = yes; then
22519 cat >>confdefs.h <<_ACEOF
22520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22521_ACEOF
22522
22523fi
22524done
22525
22526
22527
22528echo "$as_me:$LINENO: checking for mmap" >&5
22529echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22530if test "${ac_cv_func_mmap+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532else
22533 cat >conftest.$ac_ext <<_ACEOF
22534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022535/* confdefs.h. */
22536_ACEOF
22537cat confdefs.h >>conftest.$ac_ext
22538cat >>conftest.$ac_ext <<_ACEOF
22539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022540/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022541 which can conflict with char mmap (); below.
22542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22543 <limits.h> exists even on freestanding compilers. */
22544#ifdef __STDC__
22545# include <limits.h>
22546#else
22547# include <assert.h>
22548#endif
John Criswell7a73b802003-06-30 21:59:07 +000022549/* Override any gcc2 internal prototype to avoid an error. */
22550#ifdef __cplusplus
22551extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022552{
John Criswell7a73b802003-06-30 21:59:07 +000022553#endif
22554/* We use char because int might match the return type of a gcc2
22555 builtin and then its argument prototype would still apply. */
22556char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022557/* The GNU C library defines this for functions which it implements
22558 to always fail with ENOSYS. Some functions are actually named
22559 something starting with __ and the normal name is an alias. */
22560#if defined (__stub_mmap) || defined (__stub___mmap)
22561choke me
22562#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022563char (*f) () = mmap;
22564#endif
22565#ifdef __cplusplus
22566}
John Criswell7a73b802003-06-30 21:59:07 +000022567#endif
22568
John Criswell0c38eaf2003-09-10 15:17:25 +000022569int
22570main ()
22571{
22572return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022573 ;
22574 return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext conftest$ac_exeext
22578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22579 (eval $ac_link) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); } &&
22583 { ac_try='test -s conftest$ac_exeext'
22584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22585 (eval $ac_try) 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; }; then
22589 ac_cv_func_mmap=yes
22590else
22591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022592sed 's/^/| /' conftest.$ac_ext >&5
22593
John Criswell7a73b802003-06-30 21:59:07 +000022594ac_cv_func_mmap=no
22595fi
22596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22597fi
22598echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22599echo "${ECHO_T}$ac_cv_func_mmap" >&6
22600if test $ac_cv_func_mmap = yes; then
22601 :
22602else
22603 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22604echo "$as_me: error: Function mmap() required but not found" >&2;}
22605 { (exit 1); exit 1; }; }
22606fi
22607
22608echo "$as_me:$LINENO: checking for mprotect" >&5
22609echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22610if test "${ac_cv_func_mprotect+set}" = set; then
22611 echo $ECHO_N "(cached) $ECHO_C" >&6
22612else
22613 cat >conftest.$ac_ext <<_ACEOF
22614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022615/* confdefs.h. */
22616_ACEOF
22617cat confdefs.h >>conftest.$ac_ext
22618cat >>conftest.$ac_ext <<_ACEOF
22619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022620/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022621 which can conflict with char mprotect (); below.
22622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22623 <limits.h> exists even on freestanding compilers. */
22624#ifdef __STDC__
22625# include <limits.h>
22626#else
22627# include <assert.h>
22628#endif
John Criswell7a73b802003-06-30 21:59:07 +000022629/* Override any gcc2 internal prototype to avoid an error. */
22630#ifdef __cplusplus
22631extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022632{
John Criswell7a73b802003-06-30 21:59:07 +000022633#endif
22634/* We use char because int might match the return type of a gcc2
22635 builtin and then its argument prototype would still apply. */
22636char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022637/* The GNU C library defines this for functions which it implements
22638 to always fail with ENOSYS. Some functions are actually named
22639 something starting with __ and the normal name is an alias. */
22640#if defined (__stub_mprotect) || defined (__stub___mprotect)
22641choke me
22642#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022643char (*f) () = mprotect;
22644#endif
22645#ifdef __cplusplus
22646}
John Criswell7a73b802003-06-30 21:59:07 +000022647#endif
22648
John Criswell0c38eaf2003-09-10 15:17:25 +000022649int
22650main ()
22651{
22652return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022653 ;
22654 return 0;
22655}
22656_ACEOF
22657rm -f conftest.$ac_objext conftest$ac_exeext
22658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22659 (eval $ac_link) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } &&
22663 { ac_try='test -s conftest$ac_exeext'
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_cv_func_mprotect=yes
22670else
22671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022672sed 's/^/| /' conftest.$ac_ext >&5
22673
John Criswell7a73b802003-06-30 21:59:07 +000022674ac_cv_func_mprotect=no
22675fi
22676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22677fi
22678echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22679echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22680if test $ac_cv_func_mprotect = yes; then
22681 :
22682else
22683 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22684echo "$as_me: error: Function mprotect() required but not found" >&2;}
22685 { (exit 1); exit 1; }; }
22686fi
22687
22688
John Criswellb13092b2003-07-22 21:00:24 +000022689
John Criswell7a73b802003-06-30 21:59:07 +000022690# Check whether --enable-purify or --disable-purify was given.
22691if test "${enable_purify+set}" = set; then
22692 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022693
22694else
John Criswellb13092b2003-07-22 21:00:24 +000022695 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022696fi;
John Criswellb13092b2003-07-22 21:00:24 +000022697if test ${enableval} = "no"
22698then
22699 ENABLE_PURIFY=
22700
22701else
22702 ENABLE_PURIFY=ENABLE_PURIFY=1
22703
22704fi
22705
John Criswell7a73b802003-06-30 21:59:07 +000022706# Check whether --enable-optimized or --disable-optimized was given.
22707if test "${enable_optimized+set}" = set; then
22708 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022709
22710else
John Criswellb13092b2003-07-22 21:00:24 +000022711 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022712fi;
John Criswellb13092b2003-07-22 21:00:24 +000022713if test ${enableval} = "no"
22714then
22715 ENABLE_OPTIMIZED=
22716
22717else
22718 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22719
22720fi
22721
John Criswell7a73b802003-06-30 21:59:07 +000022722# Check whether --enable-spec or --disable-spec was given.
22723if test "${enable_spec+set}" = set; then
22724 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022725
22726else
John Criswellb13092b2003-07-22 21:00:24 +000022727 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022728fi;
John Criswellb13092b2003-07-22 21:00:24 +000022729if test ${enableval} = "no"
22730then
22731 USE_SPEC=
22732
22733else
22734 USE_SPEC=USE_SPEC=1
22735
22736fi
22737
John Criswell7a73b802003-06-30 21:59:07 +000022738# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22739if test "${enable_precompiled_bytecode+set}" = set; then
22740 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022741
22742else
John Criswellb13092b2003-07-22 21:00:24 +000022743 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022744fi;
John Criswellb13092b2003-07-22 21:00:24 +000022745if test ${enableval} = "no"
22746then
22747 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022748
John Criswellb13092b2003-07-22 21:00:24 +000022749else
22750 UPB=USE_PRECOMPILED_BYTECODE=1
22751
22752fi
John Criswellf02dbf02003-07-22 20:07:49 +000022753
22754
22755# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22756if test "${enable_llc_diffs+set}" = set; then
22757 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022758
22759else
John Criswellb13092b2003-07-22 21:00:24 +000022760 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022761fi;
John Criswellb13092b2003-07-22 21:00:24 +000022762if test ${enableval} = "no"
22763then
22764 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022765
John Criswellb13092b2003-07-22 21:00:24 +000022766else
22767 DISABLE_LLC_DIFFS=
22768
22769fi
22770
22771# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022772if test "${enable_jit+set}" = set; then
22773 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022774
22775else
John Criswellc78022e2003-07-29 19:11:58 +000022776 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022777fi;
John Criswellb13092b2003-07-22 21:00:24 +000022778
22779if test ${enableval} = "no"
22780then
22781 JIT=
22782
22783else
John Criswellc78022e2003-07-29 19:11:58 +000022784 case $target in
22785 *i*86*)
22786 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022787
John Criswellc78022e2003-07-29 19:11:58 +000022788 ;;
22789 *sparc*)
22790 JIT=TARGET_HAS_JIT=1
22791
22792 ;;
22793 *)
22794 JIT=
22795
22796 ;;
22797 esac
John Criswellb13092b2003-07-22 21:00:24 +000022798fi
John Criswell7a73b802003-06-30 21:59:07 +000022799
22800
John Criswellc78022e2003-07-29 19:11:58 +000022801
John Criswell7a73b802003-06-30 21:59:07 +000022802# Check whether --with-spec or --without-spec was given.
22803if test "${with_spec+set}" = set; then
22804 withval="$with_spec"
22805 SPEC_ROOT=$withval
22806
22807else
22808 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22809
22810fi;
22811
John Criswellc78022e2003-07-29 19:11:58 +000022812
John Criswell7a73b802003-06-30 21:59:07 +000022813# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22814if test "${with_llvmgccdir+set}" = set; then
22815 withval="$with_llvmgccdir"
22816 LLVMGCCDIR=$withval
22817
22818fi;
22819
John Criswellc78022e2003-07-29 19:11:58 +000022820
John Criswell7a73b802003-06-30 21:59:07 +000022821# Check whether --with-bcrepos or --without-bcrepos was given.
22822if test "${with_bcrepos+set}" = set; then
22823 withval="$with_bcrepos"
22824 BCR=$withval
22825
22826else
22827 BCR=/home/vadve/lattner/LLVMPrograms
22828
22829fi;
22830
John Criswellc78022e2003-07-29 19:11:58 +000022831
John Criswell7a73b802003-06-30 21:59:07 +000022832# Check whether --with-papi or --without-papi was given.
22833if test "${with_papi+set}" = set; then
22834 withval="$with_papi"
22835 PAPIDIR=$withval
22836
22837else
John Criswellde00db22003-08-25 16:49:54 +000022838 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022839
22840fi;
22841
John Criswell7a73b802003-06-30 21:59:07 +000022842
22843# Check whether --with-purify or --without-purify was given.
22844if test "${with_purify+set}" = set; then
22845 withval="$with_purify"
22846 PURIFY=$withval
22847
22848fi;
22849
John Criswellde00db22003-08-25 16:49:54 +000022850
John Criswell0c38eaf2003-09-10 15:17:25 +000022851 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022852cat >confcache <<\_ACEOF
22853# This file is a shell script that caches the results of configure
22854# tests run on this system so they can be shared between configure
22855# scripts and configure runs, see configure's option --config-cache.
22856# It is not useful on other systems. If it contains results you don't
22857# want to keep, you may remove or edit it.
22858#
22859# config.status only pays attention to the cache file if you give it
22860# the --recheck option to rerun configure.
22861#
John Criswell0c38eaf2003-09-10 15:17:25 +000022862# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022863# loading this file, other *unset* `ac_cv_foo' will be assigned the
22864# following values.
22865
22866_ACEOF
22867
22868# The following way of writing the cache mishandles newlines in values,
22869# but we know of no workaround that is simple, portable, and efficient.
22870# So, don't put newlines in cache variables' values.
22871# Ultrix sh set writes to stderr and can't be redirected directly,
22872# and sets the high bit in the cache file unless we assign to the vars.
22873{
22874 (set) 2>&1 |
22875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22876 *ac_space=\ *)
22877 # `set' does not quote correctly, so add quotes (double-quote
22878 # substitution turns \\\\ into \\, and sed turns \\ into \).
22879 sed -n \
22880 "s/'/'\\\\''/g;
22881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22882 ;;
22883 *)
22884 # `set' quotes correctly as required by POSIX, so do not add quotes.
22885 sed -n \
22886 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22887 ;;
22888 esac;
22889} |
22890 sed '
22891 t clear
22892 : clear
22893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22894 t end
22895 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22896 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022897if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022898 if test -w $cache_file; then
22899 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22900 cat confcache >$cache_file
22901 else
22902 echo "not updating unwritable cache $cache_file"
22903 fi
22904fi
22905rm -f confcache
22906
22907test "x$prefix" = xNONE && prefix=$ac_default_prefix
22908# Let make expand exec_prefix.
22909test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22910
22911# VPATH may cause trouble with some makes, so we remove $(srcdir),
22912# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22913# trailing colons and then remove the whole line if VPATH becomes empty
22914# (actually we leave an empty line to preserve line numbers).
22915if test "x$srcdir" = x.; then
22916 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22917s/:*\$(srcdir):*/:/;
22918s/:*\${srcdir}:*/:/;
22919s/:*@srcdir@:*/:/;
22920s/^\([^=]*=[ ]*\):*/\1/;
22921s/:*$//;
22922s/^[^=]*=[ ]*$//;
22923}'
22924fi
22925
22926DEFS=-DHAVE_CONFIG_H
22927
John Criswell0c38eaf2003-09-10 15:17:25 +000022928ac_libobjs=
22929ac_ltlibobjs=
22930for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22931 # 1. Remove the extension, and $U if already installed.
22932 ac_i=`echo "$ac_i" |
22933 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22934 # 2. Add them.
22935 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22936 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22937done
22938LIBOBJS=$ac_libobjs
22939
22940LTLIBOBJS=$ac_ltlibobjs
22941
22942
John Criswell7a73b802003-06-30 21:59:07 +000022943
22944: ${CONFIG_STATUS=./config.status}
22945ac_clean_files_save=$ac_clean_files
22946ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22947{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22948echo "$as_me: creating $CONFIG_STATUS" >&6;}
22949cat >$CONFIG_STATUS <<_ACEOF
22950#! $SHELL
22951# Generated by $as_me.
22952# Run this file to recreate the current configuration.
22953# Compiler output produced by configure, useful for debugging
22954# configure, is in config.log if it exists.
22955
22956debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022957ac_cs_recheck=false
22958ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022959SHELL=\${CONFIG_SHELL-$SHELL}
22960_ACEOF
22961
22962cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022963## --------------------- ##
22964## M4sh Initialization. ##
22965## --------------------- ##
22966
22967# Be Bourne compatible
22968if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22969 emulate sh
22970 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22972 # is contrary to our usage. Disable this feature.
22973 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022974elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22975 set -o posix
22976fi
22977
John Criswell7a73b802003-06-30 21:59:07 +000022978# Support unset when possible.
22979if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22980 as_unset=unset
22981else
22982 as_unset=false
22983fi
22984
John Criswell0c38eaf2003-09-10 15:17:25 +000022985
22986# Work around bugs in pre-3.0 UWIN ksh.
22987$as_unset ENV MAIL MAILPATH
22988PS1='$ '
22989PS2='> '
22990PS4='+ '
22991
22992# NLS nuisances.
22993for as_var in \
22994 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22995 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22996 LC_TELEPHONE LC_TIME
22997do
22998 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22999 eval $as_var=C; export $as_var
23000 else
23001 $as_unset $as_var
23002 fi
23003done
23004
23005# Required to use basename.
23006if expr a : '\(a\)' >/dev/null 2>&1; then
23007 as_expr=expr
23008else
23009 as_expr=false
23010fi
23011
23012if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23013 as_basename=basename
23014else
23015 as_basename=false
23016fi
John Criswell7a73b802003-06-30 21:59:07 +000023017
23018
23019# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023020as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23022 X"$0" : 'X\(//\)$' \| \
23023 X"$0" : 'X\(/\)$' \| \
23024 . : '\(.\)' 2>/dev/null ||
23025echo X/"$0" |
23026 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23027 /^X\/\(\/\/\)$/{ s//\1/; q; }
23028 /^X\/\(\/\).*/{ s//\1/; q; }
23029 s/.*/./; q'`
23030
John Criswell0c38eaf2003-09-10 15:17:25 +000023031
John Criswell7a73b802003-06-30 21:59:07 +000023032# PATH needs CR, and LINENO needs CR and PATH.
23033# Avoid depending upon Character Ranges.
23034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23037as_cr_digits='0123456789'
23038as_cr_alnum=$as_cr_Letters$as_cr_digits
23039
23040# The user is always right.
23041if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023042 echo "#! /bin/sh" >conf$$.sh
23043 echo "exit 0" >>conf$$.sh
23044 chmod +x conf$$.sh
23045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023046 PATH_SEPARATOR=';'
23047 else
23048 PATH_SEPARATOR=:
23049 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023050 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023051fi
23052
23053
23054 as_lineno_1=$LINENO
23055 as_lineno_2=$LINENO
23056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23057 test "x$as_lineno_1" != "x$as_lineno_2" &&
23058 test "x$as_lineno_3" = "x$as_lineno_2" || {
23059 # Find who we are. Look in the path if we contain no path at all
23060 # relative or not.
23061 case $0 in
23062 *[\\/]* ) as_myself=$0 ;;
23063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23064for as_dir in $PATH
23065do
23066 IFS=$as_save_IFS
23067 test -z "$as_dir" && as_dir=.
23068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23069done
23070
23071 ;;
23072 esac
23073 # We did not find ourselves, most probably we were run as `sh COMMAND'
23074 # in which case we are not to be found in the path.
23075 if test "x$as_myself" = x; then
23076 as_myself=$0
23077 fi
23078 if test ! -f "$as_myself"; then
23079 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23080echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23081 { (exit 1); exit 1; }; }
23082 fi
23083 case $CONFIG_SHELL in
23084 '')
23085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23086for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23087do
23088 IFS=$as_save_IFS
23089 test -z "$as_dir" && as_dir=.
23090 for as_base in sh bash ksh sh5; do
23091 case $as_dir in
23092 /*)
23093 if ("$as_dir/$as_base" -c '
23094 as_lineno_1=$LINENO
23095 as_lineno_2=$LINENO
23096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23097 test "x$as_lineno_1" != "x$as_lineno_2" &&
23098 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023099 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23100 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023101 CONFIG_SHELL=$as_dir/$as_base
23102 export CONFIG_SHELL
23103 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23104 fi;;
23105 esac
23106 done
23107done
23108;;
23109 esac
23110
23111 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23112 # uniformly replaced by the line number. The first 'sed' inserts a
23113 # line-number line before each line; the second 'sed' does the real
23114 # work. The second script uses 'N' to pair each line-number line
23115 # with the numbered line, and appends trailing '-' during
23116 # substitution so that $LINENO is not a special case at line end.
23117 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23118 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23119 sed '=' <$as_myself |
23120 sed '
23121 N
23122 s,$,-,
23123 : loop
23124 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23125 t loop
23126 s,-$,,
23127 s,^['$as_cr_digits']*\n,,
23128 ' >$as_me.lineno &&
23129 chmod +x $as_me.lineno ||
23130 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23131echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23132 { (exit 1); exit 1; }; }
23133
23134 # Don't try to exec as it changes $[0], causing all sort of problems
23135 # (the dirname of $[0] is not the place where we might find the
23136 # original and so on. Autoconf is especially sensible to this).
23137 . ./$as_me.lineno
23138 # Exit status is that of the last command.
23139 exit
23140}
23141
23142
23143case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23144 *c*,-n*) ECHO_N= ECHO_C='
23145' ECHO_T=' ' ;;
23146 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23147 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23148esac
23149
23150if expr a : '\(a\)' >/dev/null 2>&1; then
23151 as_expr=expr
23152else
23153 as_expr=false
23154fi
23155
23156rm -f conf$$ conf$$.exe conf$$.file
23157echo >conf$$.file
23158if ln -s conf$$.file conf$$ 2>/dev/null; then
23159 # We could just check for DJGPP; but this test a) works b) is more generic
23160 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23161 if test -f conf$$.exe; then
23162 # Don't use ln at all; we don't have any links
23163 as_ln_s='cp -p'
23164 else
23165 as_ln_s='ln -s'
23166 fi
23167elif ln conf$$.file conf$$ 2>/dev/null; then
23168 as_ln_s=ln
23169else
23170 as_ln_s='cp -p'
23171fi
23172rm -f conf$$ conf$$.exe conf$$.file
23173
John Criswell0c38eaf2003-09-10 15:17:25 +000023174if mkdir -p . 2>/dev/null; then
23175 as_mkdir_p=:
23176else
23177 as_mkdir_p=false
23178fi
23179
John Criswell7a73b802003-06-30 21:59:07 +000023180as_executable_p="test -f"
23181
23182# Sed expression to map a string onto a valid CPP name.
23183as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23184
23185# Sed expression to map a string onto a valid variable name.
23186as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23187
23188
23189# IFS
23190# We need space, tab and new line, in precisely that order.
23191as_nl='
23192'
23193IFS=" $as_nl"
23194
23195# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023196$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023197
23198exec 6>&1
23199
23200# Open the log real soon, to keep \$[0] and so on meaningful, and to
23201# report actual input values of CONFIG_FILES etc. instead of their
23202# values after options handling. Logging --version etc. is OK.
23203exec 5>>config.log
23204{
23205 echo
23206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23207## Running $as_me. ##
23208_ASBOX
23209} >&5
23210cat >&5 <<_CSEOF
23211
23212This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023213generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023214
23215 CONFIG_FILES = $CONFIG_FILES
23216 CONFIG_HEADERS = $CONFIG_HEADERS
23217 CONFIG_LINKS = $CONFIG_LINKS
23218 CONFIG_COMMANDS = $CONFIG_COMMANDS
23219 $ $0 $@
23220
23221_CSEOF
23222echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23223echo >&5
23224_ACEOF
23225
23226# Files that config.status was made for.
23227if test -n "$ac_config_files"; then
23228 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23229fi
23230
23231if test -n "$ac_config_headers"; then
23232 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23233fi
23234
23235if test -n "$ac_config_links"; then
23236 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23237fi
23238
23239if test -n "$ac_config_commands"; then
23240 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23241fi
23242
23243cat >>$CONFIG_STATUS <<\_ACEOF
23244
23245ac_cs_usage="\
23246\`$as_me' instantiates files from templates according to the
23247current configuration.
23248
23249Usage: $0 [OPTIONS] [FILE]...
23250
23251 -h, --help print this help, then exit
23252 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023253 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023254 -d, --debug don't remove temporary files
23255 --recheck update $as_me by reconfiguring in the same conditions
23256 --file=FILE[:TEMPLATE]
23257 instantiate the configuration file FILE
23258 --header=FILE[:TEMPLATE]
23259 instantiate the configuration header FILE
23260
23261Configuration files:
23262$config_files
23263
23264Configuration headers:
23265$config_headers
23266
John Criswellc764fbc2003-09-06 15:17:13 +000023267Configuration commands:
23268$config_commands
23269
John Criswell7a73b802003-06-30 21:59:07 +000023270Report bugs to <bug-autoconf@gnu.org>."
23271_ACEOF
23272
23273cat >>$CONFIG_STATUS <<_ACEOF
23274ac_cs_version="\\
23275[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023276configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023277 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23278
23279Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23280Free Software Foundation, Inc.
23281This config.status script is free software; the Free Software Foundation
23282gives unlimited permission to copy, distribute and modify it."
23283srcdir=$srcdir
23284INSTALL="$INSTALL"
23285_ACEOF
23286
23287cat >>$CONFIG_STATUS <<\_ACEOF
23288# If no file are specified by the user, then we need to provide default
23289# value. By we need to know if files were specified by the user.
23290ac_need_defaults=:
23291while test $# != 0
23292do
23293 case $1 in
23294 --*=*)
23295 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23296 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023297 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023298 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023299 -*)
23300 ac_option=$1
23301 ac_optarg=$2
23302 ac_shift=shift
23303 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023304 *) # This is not an option, so the user has probably given explicit
23305 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023306 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023307 ac_need_defaults=false;;
23308 esac
23309
John Criswell0c38eaf2003-09-10 15:17:25 +000023310 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023311 # Handling of the options.
23312_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023313cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23315 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023316 --version | --vers* | -V )
23317 echo "$ac_cs_version"; exit 0 ;;
23318 --he | --h)
23319 # Conflict between --help and --header
23320 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23321Try \`$0 --help' for more information." >&5
23322echo "$as_me: error: ambiguous option: $1
23323Try \`$0 --help' for more information." >&2;}
23324 { (exit 1); exit 1; }; };;
23325 --help | --hel | -h )
23326 echo "$ac_cs_usage"; exit 0 ;;
23327 --debug | --d* | -d )
23328 debug=: ;;
23329 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023330 $ac_shift
23331 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023332 ac_need_defaults=false;;
23333 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023334 $ac_shift
23335 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023336 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23338 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23339 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023340
23341 # This is an error.
23342 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23343Try \`$0 --help' for more information." >&5
23344echo "$as_me: error: unrecognized option: $1
23345Try \`$0 --help' for more information." >&2;}
23346 { (exit 1); exit 1; }; } ;;
23347
23348 *) ac_config_targets="$ac_config_targets $1" ;;
23349
23350 esac
23351 shift
23352done
23353
John Criswell0c38eaf2003-09-10 15:17:25 +000023354ac_configure_extra_args=
23355
23356if $ac_cs_silent; then
23357 exec 6>/dev/null
23358 ac_configure_extra_args="$ac_configure_extra_args --silent"
23359fi
23360
23361_ACEOF
23362cat >>$CONFIG_STATUS <<_ACEOF
23363if \$ac_cs_recheck; then
23364 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23365 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23366fi
23367
John Criswell7a73b802003-06-30 21:59:07 +000023368_ACEOF
23369
John Criswellc764fbc2003-09-06 15:17:13 +000023370cat >>$CONFIG_STATUS <<_ACEOF
23371#
23372# INIT-COMMANDS section.
23373#
John Criswell7a73b802003-06-30 21:59:07 +000023374
John Criswellc764fbc2003-09-06 15:17:13 +000023375${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23377${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23384${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23389${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23390${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023392${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023413${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023414${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023418${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023419${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023420${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023422${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023426${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023521${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023523${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023524${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023527${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023528${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023529${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023530${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023531${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023532${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023533${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023535${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23543${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23544${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23550${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23552
23553_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023554
23555
23556
23557cat >>$CONFIG_STATUS <<\_ACEOF
23558for ac_config_target in $ac_config_targets
23559do
23560 case "$ac_config_target" in
23561 # Handling of arguments.
23562 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023563 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23564 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23565 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23566 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23567 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23568 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23569 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23570 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23571 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23572 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23573 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23574 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23575 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23576 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23577 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23578 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23579 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023580 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23581 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23582 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23583 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23584 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
23585 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
23586 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23587 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23588 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23589 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23590 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23591 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23592 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23593 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23594 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23595 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23596 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23597 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23598 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23599 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23600 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023601 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023602 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23603 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23604 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23605 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023606 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023607 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023608 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23609 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023610 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23611 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23612 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23613 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023614 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023615 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23616 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23617 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23618 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23619 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23620 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23621 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23622 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23623 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23624 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23625 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23626 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23627 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23628 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23629 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23630 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23631 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23632 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023633 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023634 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23635 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23636 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23637 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23638 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23639 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23640 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23641 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23642 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23643 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23644 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23645 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23646 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23647 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23648 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23649 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23650 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23651 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023652 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23653 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023654 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23655 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023656 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23660 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23661 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23667 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23669 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23670 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23671 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23674 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23675 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23676 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23679 "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 +000023680 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023681 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23682 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23683 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23684 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23685 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23686 "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 +000023687 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023688 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023689 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23690 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23691 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23692 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23693 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023694 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23695 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23696 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023697 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23698 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23699 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23700 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23701 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23702 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023703 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023704 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023705 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023706 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023707 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23708 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023709 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23710 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023711 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023712 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23713 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23714 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023715 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023716 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023717 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023718 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023719 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023720 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023721 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23722 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023723 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23724 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23725 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23726 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23727 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23728 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23729 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23730 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23731 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23732 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23733 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23734 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23735 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23736 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23737 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23738 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23739 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023740 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23742echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23743 { (exit 1); exit 1; }; };;
23744 esac
23745done
23746
23747# If the user did not use the arguments to specify the items to instantiate,
23748# then the envvar interface is used. Set only those that are not.
23749# We use the long form for the default assignment because of an extremely
23750# bizarre bug on SunOS 4.1.3.
23751if $ac_need_defaults; then
23752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023755fi
23756
John Criswell0c38eaf2003-09-10 15:17:25 +000023757# Have a temporary directory for convenience. Make it in the build tree
23758# simply because there is no reason to put it here, and in addition,
23759# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023760# Create a temporary directory, and hook for its removal unless debugging.
23761$debug ||
23762{
23763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23764 trap '{ (exit 1); exit 1; }' 1 2 13 15
23765}
23766
23767# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023768
John Criswell7a73b802003-06-30 21:59:07 +000023769{
John Criswell0c38eaf2003-09-10 15:17:25 +000023770 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023771 test -n "$tmp" && test -d "$tmp"
23772} ||
23773{
John Criswell0c38eaf2003-09-10 15:17:25 +000023774 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023775 (umask 077 && mkdir $tmp)
23776} ||
23777{
John Criswell0c38eaf2003-09-10 15:17:25 +000023778 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023779 { (exit 1); exit 1; }
23780}
23781
23782_ACEOF
23783
23784cat >>$CONFIG_STATUS <<_ACEOF
23785
23786#
23787# CONFIG_FILES section.
23788#
23789
23790# No need to generate the scripts if there are no CONFIG_FILES.
23791# This happens for instance when ./config.status config.h
23792if test -n "\$CONFIG_FILES"; then
23793 # Protect against being on the right side of a sed subst in config.status.
23794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23796s,@SHELL@,$SHELL,;t t
23797s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23798s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23799s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23800s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23801s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23802s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23803s,@exec_prefix@,$exec_prefix,;t t
23804s,@prefix@,$prefix,;t t
23805s,@program_transform_name@,$program_transform_name,;t t
23806s,@bindir@,$bindir,;t t
23807s,@sbindir@,$sbindir,;t t
23808s,@libexecdir@,$libexecdir,;t t
23809s,@datadir@,$datadir,;t t
23810s,@sysconfdir@,$sysconfdir,;t t
23811s,@sharedstatedir@,$sharedstatedir,;t t
23812s,@localstatedir@,$localstatedir,;t t
23813s,@libdir@,$libdir,;t t
23814s,@includedir@,$includedir,;t t
23815s,@oldincludedir@,$oldincludedir,;t t
23816s,@infodir@,$infodir,;t t
23817s,@mandir@,$mandir,;t t
23818s,@build_alias@,$build_alias,;t t
23819s,@host_alias@,$host_alias,;t t
23820s,@target_alias@,$target_alias,;t t
23821s,@DEFS@,$DEFS,;t t
23822s,@ECHO_C@,$ECHO_C,;t t
23823s,@ECHO_N@,$ECHO_N,;t t
23824s,@ECHO_T@,$ECHO_T,;t t
23825s,@LIBS@,$LIBS,;t t
23826s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23827s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23828s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23829s,@build@,$build,;t t
23830s,@build_cpu@,$build_cpu,;t t
23831s,@build_vendor@,$build_vendor,;t t
23832s,@build_os@,$build_os,;t t
23833s,@host@,$host,;t t
23834s,@host_cpu@,$host_cpu,;t t
23835s,@host_vendor@,$host_vendor,;t t
23836s,@host_os@,$host_os,;t t
23837s,@target@,$target,;t t
23838s,@target_cpu@,$target_cpu,;t t
23839s,@target_vendor@,$target_vendor,;t t
23840s,@target_os@,$target_os,;t t
23841s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023842s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023843s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023844s,@CXX@,$CXX,;t t
23845s,@CXXFLAGS@,$CXXFLAGS,;t t
23846s,@LDFLAGS@,$LDFLAGS,;t t
23847s,@CPPFLAGS@,$CPPFLAGS,;t t
23848s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23849s,@EXEEXT@,$EXEEXT,;t t
23850s,@OBJEXT@,$OBJEXT,;t t
23851s,@CC@,$CC,;t t
23852s,@CFLAGS@,$CFLAGS,;t t
23853s,@ac_ct_CC@,$ac_ct_CC,;t t
23854s,@CPP@,$CPP,;t t
23855s,@ifGNUmake@,$ifGNUmake,;t t
23856s,@LEX@,$LEX,;t t
23857s,@LEXLIB@,$LEXLIB,;t t
23858s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23859s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023860s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023861s,@LN_S@,$LN_S,;t t
23862s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023863s,@AR@,$AR,;t t
23864s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023865s,@RANLIB@,$RANLIB,;t t
23866s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23867s,@STRIP@,$STRIP,;t t
23868s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023869s,@CXXCPP@,$CXXCPP,;t t
23870s,@F77@,$F77,;t t
23871s,@FFLAGS@,$FFLAGS,;t t
23872s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023873s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023874s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023875s,@SED@,$SED,;t t
23876s,@RM@,$RM,;t t
23877s,@MKDIR@,$MKDIR,;t t
23878s,@DATE@,$DATE,;t t
23879s,@MV@,$MV,;t t
23880s,@DOT@,$DOT,;t t
23881s,@ETAGS@,$ETAGS,;t t
23882s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023883s,@PYTHON@,$PYTHON,;t t
23884s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023885s,@ALLOCA@,$ALLOCA,;t t
23886s,@LIBOBJS@,$LIBOBJS,;t t
23887s,@MMAP_FILE@,$MMAP_FILE,;t t
23888s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023889s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23890s,@USE_SPEC@,$USE_SPEC,;t t
23891s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023892s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023893s,@JIT@,$JIT,;t t
23894s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23895s,@BCR@,$BCR,;t t
23896s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023897s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023898CEOF
23899
23900_ACEOF
23901
23902 cat >>$CONFIG_STATUS <<\_ACEOF
23903 # Split the substitutions into bite-sized pieces for seds with
23904 # small command number limits, like on Digital OSF/1 and HP-UX.
23905 ac_max_sed_lines=48
23906 ac_sed_frag=1 # Number of current file.
23907 ac_beg=1 # First line for current file.
23908 ac_end=$ac_max_sed_lines # Line after last line for current file.
23909 ac_more_lines=:
23910 ac_sed_cmds=
23911 while $ac_more_lines; do
23912 if test $ac_beg -gt 1; then
23913 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23914 else
23915 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23916 fi
23917 if test ! -s $tmp/subs.frag; then
23918 ac_more_lines=false
23919 else
23920 # The purpose of the label and of the branching condition is to
23921 # speed up the sed processing (if there are no `@' at all, there
23922 # is no need to browse any of the substitutions).
23923 # These are the two extra sed commands mentioned above.
23924 (echo ':t
23925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23926 if test -z "$ac_sed_cmds"; then
23927 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23928 else
23929 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23930 fi
23931 ac_sed_frag=`expr $ac_sed_frag + 1`
23932 ac_beg=$ac_end
23933 ac_end=`expr $ac_end + $ac_max_sed_lines`
23934 fi
23935 done
23936 if test -z "$ac_sed_cmds"; then
23937 ac_sed_cmds=cat
23938 fi
23939fi # test -n "$CONFIG_FILES"
23940
23941_ACEOF
23942cat >>$CONFIG_STATUS <<\_ACEOF
23943for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23945 case $ac_file in
23946 - | *:- | *:-:* ) # input from stdin
23947 cat >$tmp/stdin
23948 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23950 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23952 * ) ac_file_in=$ac_file.in ;;
23953 esac
23954
23955 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23956 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23957$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23958 X"$ac_file" : 'X\(//\)[^/]' \| \
23959 X"$ac_file" : 'X\(//\)$' \| \
23960 X"$ac_file" : 'X\(/\)' \| \
23961 . : '\(.\)' 2>/dev/null ||
23962echo X"$ac_file" |
23963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23965 /^X\(\/\/\)$/{ s//\1/; q; }
23966 /^X\(\/\).*/{ s//\1/; q; }
23967 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023968 { if $as_mkdir_p; then
23969 mkdir -p "$ac_dir"
23970 else
23971 as_dir="$ac_dir"
23972 as_dirs=
23973 while test ! -d "$as_dir"; do
23974 as_dirs="$as_dir $as_dirs"
23975 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23976$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23977 X"$as_dir" : 'X\(//\)[^/]' \| \
23978 X"$as_dir" : 'X\(//\)$' \| \
23979 X"$as_dir" : 'X\(/\)' \| \
23980 . : '\(.\)' 2>/dev/null ||
23981echo X"$as_dir" |
23982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23984 /^X\(\/\/\)$/{ s//\1/; q; }
23985 /^X\(\/\).*/{ s//\1/; q; }
23986 s/.*/./; q'`
23987 done
23988 test ! -n "$as_dirs" || mkdir $as_dirs
23989 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23990echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23991 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023992
23993 ac_builddir=.
23994
23995if test "$ac_dir" != .; then
23996 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23997 # A "../" for each directory in $ac_dir_suffix.
23998 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23999else
24000 ac_dir_suffix= ac_top_builddir=
24001fi
24002
24003case $srcdir in
24004 .) # No --srcdir option. We are building in place.
24005 ac_srcdir=.
24006 if test -z "$ac_top_builddir"; then
24007 ac_top_srcdir=.
24008 else
24009 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24010 fi ;;
24011 [\\/]* | ?:[\\/]* ) # Absolute path.
24012 ac_srcdir=$srcdir$ac_dir_suffix;
24013 ac_top_srcdir=$srcdir ;;
24014 *) # Relative path.
24015 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24016 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24017esac
24018# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24019# absolute.
24020ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024021ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024022ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24023ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24024
24025
24026 case $INSTALL in
24027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24028 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24029 esac
24030
24031 if test x"$ac_file" != x-; then
24032 { echo "$as_me:$LINENO: creating $ac_file" >&5
24033echo "$as_me: creating $ac_file" >&6;}
24034 rm -f "$ac_file"
24035 fi
24036 # Let's still pretend it is `configure' which instantiates (i.e., don't
24037 # use $as_me), people would be surprised to read:
24038 # /* config.h. Generated by config.status. */
24039 if test x"$ac_file" = x-; then
24040 configure_input=
24041 else
24042 configure_input="$ac_file. "
24043 fi
24044 configure_input=$configure_input"Generated from `echo $ac_file_in |
24045 sed 's,.*/,,'` by configure."
24046
24047 # First look for the input files in the build tree, otherwise in the
24048 # src tree.
24049 ac_file_inputs=`IFS=:
24050 for f in $ac_file_in; do
24051 case $f in
24052 -) echo $tmp/stdin ;;
24053 [\\/$]*)
24054 # Absolute (can't be DOS-style, as IFS=:)
24055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24056echo "$as_me: error: cannot find input file: $f" >&2;}
24057 { (exit 1); exit 1; }; }
24058 echo $f;;
24059 *) # Relative
24060 if test -f "$f"; then
24061 # Build tree
24062 echo $f
24063 elif test -f "$srcdir/$f"; then
24064 # Source tree
24065 echo $srcdir/$f
24066 else
24067 # /dev/null tree
24068 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24069echo "$as_me: error: cannot find input file: $f" >&2;}
24070 { (exit 1); exit 1; }; }
24071 fi;;
24072 esac
24073 done` || { (exit 1); exit 1; }
24074_ACEOF
24075cat >>$CONFIG_STATUS <<_ACEOF
24076 sed "$ac_vpsub
24077$extrasub
24078_ACEOF
24079cat >>$CONFIG_STATUS <<\_ACEOF
24080:t
24081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24082s,@configure_input@,$configure_input,;t t
24083s,@srcdir@,$ac_srcdir,;t t
24084s,@abs_srcdir@,$ac_abs_srcdir,;t t
24085s,@top_srcdir@,$ac_top_srcdir,;t t
24086s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24087s,@builddir@,$ac_builddir,;t t
24088s,@abs_builddir@,$ac_abs_builddir,;t t
24089s,@top_builddir@,$ac_top_builddir,;t t
24090s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24091s,@INSTALL@,$ac_INSTALL,;t t
24092" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24093 rm -f $tmp/stdin
24094 if test x"$ac_file" != x-; then
24095 mv $tmp/out $ac_file
24096 else
24097 cat $tmp/out
24098 rm -f $tmp/out
24099 fi
24100
24101done
24102_ACEOF
24103cat >>$CONFIG_STATUS <<\_ACEOF
24104
24105#
24106# CONFIG_HEADER section.
24107#
24108
24109# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24110# NAME is the cpp macro being defined and VALUE is the value it is being given.
24111#
24112# ac_d sets the value in "#define NAME VALUE" lines.
24113ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24114ac_dB='[ ].*$,\1#\2'
24115ac_dC=' '
24116ac_dD=',;t'
24117# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24118ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24119ac_uB='$,\1#\2define\3'
24120ac_uC=' '
24121ac_uD=',;t'
24122
24123for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24125 case $ac_file in
24126 - | *:- | *:-:* ) # input from stdin
24127 cat >$tmp/stdin
24128 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24130 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24131 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24132 * ) ac_file_in=$ac_file.in ;;
24133 esac
24134
24135 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24136echo "$as_me: creating $ac_file" >&6;}
24137
24138 # First look for the input files in the build tree, otherwise in the
24139 # src tree.
24140 ac_file_inputs=`IFS=:
24141 for f in $ac_file_in; do
24142 case $f in
24143 -) echo $tmp/stdin ;;
24144 [\\/$]*)
24145 # Absolute (can't be DOS-style, as IFS=:)
24146 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24147echo "$as_me: error: cannot find input file: $f" >&2;}
24148 { (exit 1); exit 1; }; }
24149 echo $f;;
24150 *) # Relative
24151 if test -f "$f"; then
24152 # Build tree
24153 echo $f
24154 elif test -f "$srcdir/$f"; then
24155 # Source tree
24156 echo $srcdir/$f
24157 else
24158 # /dev/null tree
24159 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24160echo "$as_me: error: cannot find input file: $f" >&2;}
24161 { (exit 1); exit 1; }; }
24162 fi;;
24163 esac
24164 done` || { (exit 1); exit 1; }
24165 # Remove the trailing spaces.
24166 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24167
24168_ACEOF
24169
24170# Transform confdefs.h into two sed scripts, `conftest.defines' and
24171# `conftest.undefs', that substitutes the proper values into
24172# config.h.in to produce config.h. The first handles `#define'
24173# templates, and the second `#undef' templates.
24174# And first: Protect against being on the right side of a sed subst in
24175# config.status. Protect against being in an unquoted here document
24176# in config.status.
24177rm -f conftest.defines conftest.undefs
24178# Using a here document instead of a string reduces the quoting nightmare.
24179# Putting comments in sed scripts is not portable.
24180#
24181# `end' is used to avoid that the second main sed command (meant for
24182# 0-ary CPP macros) applies to n-ary macro definitions.
24183# See the Autoconf documentation for `clear'.
24184cat >confdef2sed.sed <<\_ACEOF
24185s/[\\&,]/\\&/g
24186s,[\\$`],\\&,g
24187t clear
24188: clear
24189s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24190t end
24191s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24192: end
24193_ACEOF
24194# If some macros were called several times there might be several times
24195# the same #defines, which is useless. Nevertheless, we may not want to
24196# sort them, since we want the *last* AC-DEFINE to be honored.
24197uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24198sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24199rm -f confdef2sed.sed
24200
24201# This sed command replaces #undef with comments. This is necessary, for
24202# example, in the case of _POSIX_SOURCE, which is predefined and required
24203# on some systems where configure will not decide to define it.
24204cat >>conftest.undefs <<\_ACEOF
24205s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24206_ACEOF
24207
24208# Break up conftest.defines because some shells have a limit on the size
24209# of here documents, and old seds have small limits too (100 cmds).
24210echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024211echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024212echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24213echo ' :' >>$CONFIG_STATUS
24214rm -f conftest.tail
24215while grep . conftest.defines >/dev/null
24216do
24217 # Write a limited-size here document to $tmp/defines.sed.
24218 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24219 # Speed up: don't consider the non `#define' lines.
24220 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24221 # Work around the forget-to-reset-the-flag bug.
24222 echo 't clr' >>$CONFIG_STATUS
24223 echo ': clr' >>$CONFIG_STATUS
24224 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24225 echo 'CEOF
24226 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24227 rm -f $tmp/in
24228 mv $tmp/out $tmp/in
24229' >>$CONFIG_STATUS
24230 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24231 rm -f conftest.defines
24232 mv conftest.tail conftest.defines
24233done
24234rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024235echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024236echo >>$CONFIG_STATUS
24237
24238# Break up conftest.undefs because some shells have a limit on the size
24239# of here documents, and old seds have small limits too (100 cmds).
24240echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24241rm -f conftest.tail
24242while grep . conftest.undefs >/dev/null
24243do
24244 # Write a limited-size here document to $tmp/undefs.sed.
24245 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24246 # Speed up: don't consider the non `#undef'
24247 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24248 # Work around the forget-to-reset-the-flag bug.
24249 echo 't clr' >>$CONFIG_STATUS
24250 echo ': clr' >>$CONFIG_STATUS
24251 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24252 echo 'CEOF
24253 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24254 rm -f $tmp/in
24255 mv $tmp/out $tmp/in
24256' >>$CONFIG_STATUS
24257 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24258 rm -f conftest.undefs
24259 mv conftest.tail conftest.undefs
24260done
24261rm -f conftest.undefs
24262
24263cat >>$CONFIG_STATUS <<\_ACEOF
24264 # Let's still pretend it is `configure' which instantiates (i.e., don't
24265 # use $as_me), people would be surprised to read:
24266 # /* config.h. Generated by config.status. */
24267 if test x"$ac_file" = x-; then
24268 echo "/* Generated by configure. */" >$tmp/config.h
24269 else
24270 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24271 fi
24272 cat $tmp/in >>$tmp/config.h
24273 rm -f $tmp/in
24274 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024275 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24277echo "$as_me: $ac_file is unchanged" >&6;}
24278 else
24279 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24280$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24281 X"$ac_file" : 'X\(//\)[^/]' \| \
24282 X"$ac_file" : 'X\(//\)$' \| \
24283 X"$ac_file" : 'X\(/\)' \| \
24284 . : '\(.\)' 2>/dev/null ||
24285echo X"$ac_file" |
24286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24288 /^X\(\/\/\)$/{ s//\1/; q; }
24289 /^X\(\/\).*/{ s//\1/; q; }
24290 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024291 { if $as_mkdir_p; then
24292 mkdir -p "$ac_dir"
24293 else
24294 as_dir="$ac_dir"
24295 as_dirs=
24296 while test ! -d "$as_dir"; do
24297 as_dirs="$as_dir $as_dirs"
24298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300 X"$as_dir" : 'X\(//\)[^/]' \| \
24301 X"$as_dir" : 'X\(//\)$' \| \
24302 X"$as_dir" : 'X\(/\)' \| \
24303 . : '\(.\)' 2>/dev/null ||
24304echo X"$as_dir" |
24305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24307 /^X\(\/\/\)$/{ s//\1/; q; }
24308 /^X\(\/\).*/{ s//\1/; q; }
24309 s/.*/./; q'`
24310 done
24311 test ! -n "$as_dirs" || mkdir $as_dirs
24312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24313echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24314 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024315
24316 rm -f $ac_file
24317 mv $tmp/config.h $ac_file
24318 fi
24319 else
24320 cat $tmp/config.h
24321 rm -f $tmp/config.h
24322 fi
24323done
24324_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024325cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327#
24328# CONFIG_COMMANDS section.
24329#
24330for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24331 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24332 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24333 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24334$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24335 X"$ac_dest" : 'X\(//\)[^/]' \| \
24336 X"$ac_dest" : 'X\(//\)$' \| \
24337 X"$ac_dest" : 'X\(/\)' \| \
24338 . : '\(.\)' 2>/dev/null ||
24339echo X"$ac_dest" |
24340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24342 /^X\(\/\/\)$/{ s//\1/; q; }
24343 /^X\(\/\).*/{ s//\1/; q; }
24344 s/.*/./; q'`
24345 ac_builddir=.
24346
24347if test "$ac_dir" != .; then
24348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24349 # A "../" for each directory in $ac_dir_suffix.
24350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24351else
24352 ac_dir_suffix= ac_top_builddir=
24353fi
24354
24355case $srcdir in
24356 .) # No --srcdir option. We are building in place.
24357 ac_srcdir=.
24358 if test -z "$ac_top_builddir"; then
24359 ac_top_srcdir=.
24360 else
24361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24362 fi ;;
24363 [\\/]* | ?:[\\/]* ) # Absolute path.
24364 ac_srcdir=$srcdir$ac_dir_suffix;
24365 ac_top_srcdir=$srcdir ;;
24366 *) # Relative path.
24367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24369esac
24370# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24371# absolute.
24372ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024373ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024374ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24375ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24376
24377
24378 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24379echo "$as_me: executing $ac_dest commands" >&6;}
24380 case $ac_dest in
24381 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24382 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24383 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24384 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24385 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24386 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24387 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24388 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24389 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24390 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24391 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24392 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24393 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24394 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24395 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24396 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24397 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 +000024398 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24399 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24400 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24401 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24402 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
24403 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
24404 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24405 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24406 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24407 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24408 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24409 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24410 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24411 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24412 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24413 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24414 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24415 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24416 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24417 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24418 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 +000024419 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 +000024420 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24421 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24422 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24423 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 +000024424 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 +000024425 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 +000024426 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24427 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 +000024428 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24429 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24430 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24431 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024432 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024433 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24434 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24435 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24436 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24437 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24438 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24439 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24440 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24441 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24442 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24443 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24444 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24445 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24446 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24447 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24448 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24449 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24450 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 +000024451 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 +000024452 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 ;;
24453 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 ;;
24454 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 ;;
24455 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 ;;
24456 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 ;;
24457 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 ;;
24458 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 ;;
24459 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 ;;
24460 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 ;;
24461 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 ;;
24462 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 ;;
24463 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 ;;
24464 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 ;;
24465 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 ;;
24466 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 ;;
24467 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24468 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24469 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 +000024470 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24471 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 +000024472 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 ;;
24473 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 +000024474 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 +000024498 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 +000024499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 +000024505 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 +000024506 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 +000024507 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24508 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24509 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24510 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
24511 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024512 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24513 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24514 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 +000024515 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24516 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24517 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 ;;
24518 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 ;;
24519 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 ;;
24520 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 +000024521 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 +000024522 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 +000024523 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 +000024524 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 +000024525 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 ;;
24526 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 Criswellc764fbc2003-09-06 15:17:13 +000024527 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24528 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024529 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024530 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24531 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24532 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024533 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024534 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024535 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024536 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 +000024537 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 +000024538 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 +000024539 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24540 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024541 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24542 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24543 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24544 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
24545 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24546 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24547 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24548 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24549 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24550 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24551 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24552 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24553 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24554 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24555 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24556 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24557 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24558 esac
24559done
24560_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024561
24562cat >>$CONFIG_STATUS <<\_ACEOF
24563
24564{ (exit 0); exit 0; }
24565_ACEOF
24566chmod +x $CONFIG_STATUS
24567ac_clean_files=$ac_clean_files_save
24568
24569
24570# configure is writing to config.log, and then calls config.status.
24571# config.status does its own redirection, appending to config.log.
24572# Unfortunately, on DOS this fails, as config.log is still kept open
24573# by configure, so config.status won't be able to write to it; its
24574# output is simply discarded. So we exec the FD to /dev/null,
24575# effectively closing config.log, so it can be properly (re)opened and
24576# appended to by config.status. When coming back to configure, we
24577# need to make the FD available again.
24578if test "$no_create" != yes; then
24579 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024580 ac_config_status_args=
24581 test "$silent" = yes &&
24582 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024583 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024585 exec 5>>config.log
24586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24587 # would make configure fail if this is the last instruction.
24588 $ac_cs_success || { (exit 1); exit 1; }
24589fi
24590