blob: feeebe05a700353bfa4bd10c62fae91905ab3ee3 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell12399a12003-09-30 15:55:44 +0000429ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001036 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001053 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001136generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001137
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001151generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001203# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001204# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001205# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001206ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001207ac_configure_args0=
1208ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001209ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001210ac_must_keep_next=false
1211for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001212do
John Criswell0c38eaf2003-09-10 15:17:25 +00001213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
John Criswell7a73b802003-06-30 21:59:07 +00001248done
John Criswell0c38eaf2003-09-10 15:17:25 +00001249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$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 +00001251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001261
John Criswell7a73b802003-06-30 21:59:07 +00001262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
John Criswell7a73b802003-06-30 21:59:07 +00001313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001320 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1485
John Criswell0c38eaf2003-09-10 15:17:25 +00001486
John Criswell7a73b802003-06-30 21:59:07 +00001487ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001488for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
John Criswell392aaa32003-07-22 19:18:09 +00001512
John Criswell1b824322003-09-15 17:19:42 +00001513if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001514then
John Criswell1b824322003-09-15 17:19:42 +00001515 if test -f ${srcdir}/include/Config/config.h
1516 then
1517 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001518echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1519 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001520 fi
John Criswell93e1c722003-09-15 17:04:06 +00001521fi
1522
John Criswell12399a12003-09-30 15:55:44 +00001523if test -d ${srcdir}/projects/reopt
1524then
1525
1526
1527subdirs="$subdirs projects/reopt"
1528
1529fi
1530
John Criswell559a6c12003-09-30 16:31:48 +00001531if test -d ${srcdir}/projects/poolalloc
1532then
1533
1534
1535subdirs="$subdirs projects/poolalloc"
1536
1537fi
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
Brian Gaekec45be042003-10-07 06:01:34 +00001607 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell613758d2003-09-11 18:03:50 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell613758d2003-09-11 18:03:50 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell613758d2003-09-11 18:03:50 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1677
1678
1679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswellf424d742003-10-07 21:13:47 +00001694 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1695
1696
1697 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell613758d2003-09-11 18:03:50 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell48e3cb92003-09-12 16:31:43 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell48e3cb92003-09-12 16:31:43 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell39e83892003-09-12 16:36:17 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1818
1819
1820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1821
1822
John Criswell48e3cb92003-09-12 16:31:43 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell48e3cb92003-09-12 16:31:43 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell48e3cb92003-09-12 16:31:43 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell48e3cb92003-09-12 16:31:43 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell48e3cb92003-09-12 16:31:43 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1887
1888
1889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell39e83892003-09-12 16:36:17 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell48e3cb92003-09-12 16:31:43 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell0c38eaf2003-09-10 15:17:25 +00001922 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell0c38eaf2003-09-10 15:17:25 +00001925 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell0c38eaf2003-09-10 15:17:25 +00001928 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell0c38eaf2003-09-10 15:17:25 +00001931 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell0c38eaf2003-09-10 15:17:25 +00001934 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell0c38eaf2003-09-10 15:17:25 +00001937 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0c38eaf2003-09-10 15:17:25 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswellffaaf3b2003-09-10 18:38:44 +00001946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0afe8252003-09-11 20:53:48 +00001970 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
John Criswell67181ca2003-09-26 14:53:17 +00001973 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
John Criswell68886d42003-09-26 19:51:42 +00001976 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
John Criswellc66bbd52003-09-29 21:35:32 +00001982 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswellddb7b4e2003-09-16 15:54:19 +00002009 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
Chris Lattnerebd70302003-09-13 03:29:53 +00002012 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
John Criswellddb7b4e2003-09-16 15:54:19 +00002015 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswellddb7b4e2003-09-16 15:54:19 +00002021 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
2024 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2025
2026
Brian Gaekec45be042003-10-07 06:01:34 +00002027 ac_config_commands="$ac_config_commands utils/Makefile"
2028
2029
2030 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2031
2032
2033 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2034
2035
2036 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswell0c38eaf2003-09-10 15:17:25 +00002057 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
John Criswell0c38eaf2003-09-10 15:17:25 +00002060 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002061
2062
John Criswell0c38eaf2003-09-10 15:17:25 +00002063 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002064
2065
John Criswell0c38eaf2003-09-10 15:17:25 +00002066 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002067
2068
John Criswell0c38eaf2003-09-10 15:17:25 +00002069 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002070
2071
John Criswell0c38eaf2003-09-10 15:17:25 +00002072 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002073
2074
John Criswell0c38eaf2003-09-10 15:17:25 +00002075 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002076
2077
John Criswell392aaa32003-07-22 19:18:09 +00002078
2079
John Criswell7a73b802003-06-30 21:59:07 +00002080# Find a good install program. We prefer a C program (faster),
2081# so one script is as good as another. But avoid the broken or
2082# incompatible versions:
2083# SysV /etc/install, /usr/sbin/install
2084# SunOS /usr/etc/install
2085# IRIX /sbin/install
2086# AIX /bin/install
2087# AmigaOS /C/install, which installs bootblocks on floppy discs
2088# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091# ./install, which can be erroneously created by make from ./install.sh.
2092echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2094if test -z "$INSTALL"; then
2095if test "${ac_cv_path_install+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 # Account for people who put trailing slashes in PATH elements.
2104case $as_dir/ in
2105 ./ | .// | /cC/* | \
2106 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107 /usr/ucb/* ) ;;
2108 *)
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2111 # by default.
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
2114 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2118 :
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2122 :
2123 else
2124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2125 break 3
2126 fi
2127 fi
2128 done
2129 done
2130 ;;
2131esac
2132done
2133
2134
2135fi
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2138 else
2139 # As a last resort, use the slow shell script. We don't cache a
2140 # path for INSTALL within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the path is relative.
2143 INSTALL=$ac_install_sh
2144 fi
2145fi
2146echo "$as_me:$LINENO: result: $INSTALL" >&5
2147echo "${ECHO_T}$INSTALL" >&6
2148
2149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150# It thinks the first close brace ends the variable substitution.
2151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2152
2153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2154
2155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2156
2157
2158# Make sure we can run config.sub.
2159$ac_config_sub sun4 >/dev/null 2>&1 ||
2160 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2161echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2162 { (exit 1); exit 1; }; }
2163
2164echo "$as_me:$LINENO: checking build system type" >&5
2165echo $ECHO_N "checking build system type... $ECHO_C" >&6
2166if test "${ac_cv_build+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169 ac_cv_build_alias=$build_alias
2170test -z "$ac_cv_build_alias" &&
2171 ac_cv_build_alias=`$ac_config_guess`
2172test -z "$ac_cv_build_alias" &&
2173 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2174echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2175 { (exit 1); exit 1; }; }
2176ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2177 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2178echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2180
2181fi
2182echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2183echo "${ECHO_T}$ac_cv_build" >&6
2184build=$ac_cv_build
2185build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2186build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2187build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2188
2189
2190echo "$as_me:$LINENO: checking host system type" >&5
2191echo $ECHO_N "checking host system type... $ECHO_C" >&6
2192if test "${ac_cv_host+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 ac_cv_host_alias=$host_alias
2196test -z "$ac_cv_host_alias" &&
2197 ac_cv_host_alias=$ac_cv_build_alias
2198ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2199 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2200echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2202
2203fi
2204echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205echo "${ECHO_T}$ac_cv_host" >&6
2206host=$ac_cv_host
2207host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2208host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2209host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2210
2211
2212echo "$as_me:$LINENO: checking target system type" >&5
2213echo $ECHO_N "checking target system type... $ECHO_C" >&6
2214if test "${ac_cv_target+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
2217 ac_cv_target_alias=$target_alias
2218test "x$ac_cv_target_alias" = "x" &&
2219 ac_cv_target_alias=$ac_cv_host_alias
2220ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2221 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2222echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2223 { (exit 1); exit 1; }; }
2224
2225fi
2226echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227echo "${ECHO_T}$ac_cv_target" >&6
2228target=$ac_cv_target
2229target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2230target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2231target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2232
2233
2234# The aliases save the names the user supplied, while $host etc.
2235# will get canonicalized.
2236test -n "$target_alias" &&
2237 test "$program_prefix$program_suffix$program_transform_name" = \
2238 NONENONEs,x,x, &&
2239 program_prefix=${target_alias}-
2240
2241case $build in
2242 *i*86*) OS=Linux
2243
John Criswellf02dbf02003-07-22 20:07:49 +00002244 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002245
2246 ;;
2247
2248 *sparc*) OS=SunOS
2249
2250 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2251
2252 ;;
2253
2254 *) OS=Unknown
2255
2256 ;;
2257esac
2258
2259case $target in
2260 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2261
2262 ;;
2263esac
2264
John Criswell76595452003-07-01 22:07:39 +00002265case $target in
2266 *i*86*) ARCH=x86
2267
2268 ;;
2269 *sparc*solaris*) ARCH=Sparc
2270
2271 ;;
2272esac
2273
John Criswell7a73b802003-06-30 21:59:07 +00002274
2275ac_ext=cc
2276ac_cpp='$CXXCPP $CPPFLAGS'
2277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2280if test -n "$ac_tool_prefix"; then
2281 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2282 do
2283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285echo "$as_me:$LINENO: checking for $ac_word" >&5
2286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287if test "${ac_cv_prog_CXX+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 if test -n "$CXX"; then
2291 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2292else
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304done
2305done
2306
2307fi
2308fi
2309CXX=$ac_cv_prog_CXX
2310if test -n "$CXX"; then
2311 echo "$as_me:$LINENO: result: $CXX" >&5
2312echo "${ECHO_T}$CXX" >&6
2313else
2314 echo "$as_me:$LINENO: result: no" >&5
2315echo "${ECHO_T}no" >&6
2316fi
2317
2318 test -n "$CXX" && break
2319 done
2320fi
2321if test -z "$CXX"; then
2322 ac_ct_CXX=$CXX
2323 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2324do
2325 # Extract the first word of "$ac_prog", so it can be a program name with args.
2326set dummy $ac_prog; ac_word=$2
2327echo "$as_me:$LINENO: checking for $ac_word" >&5
2328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332 if test -n "$ac_ct_CXX"; then
2333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2334else
2335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336for as_dir in $PATH
2337do
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342 ac_cv_prog_ac_ct_CXX="$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 break 2
2345 fi
2346done
2347done
2348
2349fi
2350fi
2351ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2352if test -n "$ac_ct_CXX"; then
2353 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2354echo "${ECHO_T}$ac_ct_CXX" >&6
2355else
2356 echo "$as_me:$LINENO: result: no" >&5
2357echo "${ECHO_T}no" >&6
2358fi
2359
2360 test -n "$ac_ct_CXX" && break
2361done
2362test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2363
2364 CXX=$ac_ct_CXX
2365fi
2366
2367
2368# Provide some information about the compiler.
2369echo "$as_me:$LINENO:" \
2370 "checking for C++ compiler version" >&5
2371ac_compiler=`set X $ac_compile; echo $2`
2372{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2373 (eval $ac_compiler --version </dev/null >&5) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2378 (eval $ac_compiler -v </dev/null >&5) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }
2382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2383 (eval $ac_compiler -V </dev/null >&5) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }
2387
2388cat >conftest.$ac_ext <<_ACEOF
2389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002395
John Criswell7a73b802003-06-30 21:59:07 +00002396int
2397main ()
2398{
2399
2400 ;
2401 return 0;
2402}
2403_ACEOF
2404ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002405ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002406# Try to create an executable without -o first, disregard a.out.
2407# It will help us diagnose broken compilers, and finding out an intuition
2408# of exeext.
2409echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2410echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2411ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2412if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2413 (eval $ac_link_default) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; then
2417 # Find the output, starting from the most likely. This scheme is
2418# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2419# resort.
2420
2421# Be careful to initialize this variable, since it used to be cached.
2422# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2423ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002424# b.out is created by i960 compilers.
2425for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2426do
2427 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002428 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2430 ;;
2431 conftest.$ac_ext )
2432 # This is the source file.
2433 ;;
2434 [ab].out )
2435 # We found the default executable, but exeext='' is most
2436 # certainly right.
2437 break;;
2438 *.* )
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 # FIXME: I believe we export ac_cv_exeext for Libtool,
2441 # but it would be cool to find out if it's true. Does anybody
2442 # maintain Libtool? --akim.
2443 export ac_cv_exeext
2444 break;;
2445 * )
2446 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002447 esac
2448done
2449else
2450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2454See \`config.log' for more details." >&5
2455echo "$as_me: error: C++ compiler cannot create executables
2456See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002457 { (exit 77); exit 77; }; }
2458fi
2459
2460ac_exeext=$ac_cv_exeext
2461echo "$as_me:$LINENO: result: $ac_file" >&5
2462echo "${ECHO_T}$ac_file" >&6
2463
2464# Check the compiler produces executables we can run. If not, either
2465# the compiler is broken, or we cross compile.
2466echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2467echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2468# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469# If not cross compiling, check that we can run a simple program.
2470if test "$cross_compiling" != yes; then
2471 if { ac_try='./$ac_file'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 cross_compiling=no
2478 else
2479 if test "$cross_compiling" = maybe; then
2480 cross_compiling=yes
2481 else
2482 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002483If you meant to cross compile, use \`--host'.
2484See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002485echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002486If you meant to cross compile, use \`--host'.
2487See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002488 { (exit 1); exit 1; }; }
2489 fi
2490 fi
2491fi
2492echo "$as_me:$LINENO: result: yes" >&5
2493echo "${ECHO_T}yes" >&6
2494
John Criswell0c38eaf2003-09-10 15:17:25 +00002495rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002496ac_clean_files=$ac_clean_files_save
2497# Check the compiler produces executables we can run. If not, either
2498# the compiler is broken, or we cross compile.
2499echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2500echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2501echo "$as_me:$LINENO: result: $cross_compiling" >&5
2502echo "${ECHO_T}$cross_compiling" >&6
2503
2504echo "$as_me:$LINENO: checking for suffix of executables" >&5
2505echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2507 (eval $ac_link) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2513# work properly (i.e., refer to `conftest.exe'), while it won't with
2514# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002515for ac_file in conftest.exe conftest conftest.*; do
2516 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002517 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2520 export ac_cv_exeext
2521 break;;
2522 * ) break;;
2523 esac
2524done
2525else
John Criswell0c38eaf2003-09-10 15:17:25 +00002526 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2529See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002530 { (exit 1); exit 1; }; }
2531fi
2532
2533rm -f conftest$ac_cv_exeext
2534echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2535echo "${ECHO_T}$ac_cv_exeext" >&6
2536
2537rm -f conftest.$ac_ext
2538EXEEXT=$ac_cv_exeext
2539ac_exeext=$EXEEXT
2540echo "$as_me:$LINENO: checking for suffix of object files" >&5
2541echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2542if test "${ac_cv_objext+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544else
2545 cat >conftest.$ac_ext <<_ACEOF
2546#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002547/* confdefs.h. */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002552
John Criswell7a73b802003-06-30 21:59:07 +00002553int
2554main ()
2555{
2556
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561rm -f conftest.o conftest.obj
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2568 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2571 break;;
2572 esac
2573done
2574else
2575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002576sed 's/^/| /' conftest.$ac_ext >&5
2577
2578{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2579See \`config.log' for more details." >&5
2580echo "$as_me: error: cannot compute suffix of object files: cannot compile
2581See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002582 { (exit 1); exit 1; }; }
2583fi
2584
2585rm -f conftest.$ac_cv_objext conftest.$ac_ext
2586fi
2587echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2588echo "${ECHO_T}$ac_cv_objext" >&6
2589OBJEXT=$ac_cv_objext
2590ac_objext=$OBJEXT
2591echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2592echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2593if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595else
2596 cat >conftest.$ac_ext <<_ACEOF
2597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002598/* confdefs.h. */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002603
John Criswell7a73b802003-06-30 21:59:07 +00002604int
2605main ()
2606{
2607#ifndef __GNUC__
2608 choke me
2609#endif
2610
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_compiler_gnu=yes
2628else
2629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002630sed 's/^/| /' conftest.$ac_ext >&5
2631
John Criswell7a73b802003-06-30 21:59:07 +00002632ac_compiler_gnu=no
2633fi
2634rm -f conftest.$ac_objext conftest.$ac_ext
2635ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2636
2637fi
2638echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2639echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2640GXX=`test $ac_compiler_gnu = yes && echo yes`
2641ac_test_CXXFLAGS=${CXXFLAGS+set}
2642ac_save_CXXFLAGS=$CXXFLAGS
2643CXXFLAGS="-g"
2644echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2645echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2646if test "${ac_cv_prog_cxx_g+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648else
2649 cat >conftest.$ac_ext <<_ACEOF
2650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002656
John Criswell7a73b802003-06-30 21:59:07 +00002657int
2658main ()
2659{
2660
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_cv_prog_cxx_g=yes
2678else
2679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002680sed 's/^/| /' conftest.$ac_ext >&5
2681
John Criswell7a73b802003-06-30 21:59:07 +00002682ac_cv_prog_cxx_g=no
2683fi
2684rm -f conftest.$ac_objext conftest.$ac_ext
2685fi
2686echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688if test "$ac_test_CXXFLAGS" = set; then
2689 CXXFLAGS=$ac_save_CXXFLAGS
2690elif test $ac_cv_prog_cxx_g = yes; then
2691 if test "$GXX" = yes; then
2692 CXXFLAGS="-g -O2"
2693 else
2694 CXXFLAGS="-g"
2695 fi
2696else
2697 if test "$GXX" = yes; then
2698 CXXFLAGS="-O2"
2699 else
2700 CXXFLAGS=
2701 fi
2702fi
2703for ac_declaration in \
2704 ''\
2705 '#include <stdlib.h>' \
2706 'extern "C" void std::exit (int) throw (); using std::exit;' \
2707 'extern "C" void std::exit (int); using std::exit;' \
2708 'extern "C" void exit (int) throw ();' \
2709 'extern "C" void exit (int);' \
2710 'void exit (int);'
2711do
2712 cat >conftest.$ac_ext <<_ACEOF
2713#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002714/* confdefs.h. */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002719#include <stdlib.h>
2720$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002721int
2722main ()
2723{
2724exit (42);
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 :
2742else
2743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002744sed 's/^/| /' conftest.$ac_ext >&5
2745
John Criswell7a73b802003-06-30 21:59:07 +00002746continue
2747fi
2748rm -f conftest.$ac_objext conftest.$ac_ext
2749 cat >conftest.$ac_ext <<_ACEOF
2750#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002751/* confdefs.h. */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002756$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002757int
2758main ()
2759{
2760exit (42);
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 break
2778else
2779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002780sed 's/^/| /' conftest.$ac_ext >&5
2781
John Criswell7a73b802003-06-30 21:59:07 +00002782fi
2783rm -f conftest.$ac_objext conftest.$ac_ext
2784done
2785rm -f conftest*
2786if test -n "$ac_declaration"; then
2787 echo '#ifdef __cplusplus' >>confdefs.h
2788 echo $ac_declaration >>confdefs.h
2789 echo '#endif' >>confdefs.h
2790fi
2791
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798ac_ext=c
2799ac_cpp='$CPP $CPPFLAGS'
2800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803if test -n "$ac_tool_prefix"; then
2804 for ac_prog in gcc
2805 do
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808echo "$as_me:$LINENO: checking for $ac_word" >&5
2809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2810if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827done
2828done
2829
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
2834 echo "$as_me:$LINENO: result: $CC" >&5
2835echo "${ECHO_T}$CC" >&6
2836else
2837 echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6
2839fi
2840
2841 test -n "$CC" && break
2842 done
2843fi
2844if test -z "$CC"; then
2845 ac_ct_CC=$CC
2846 for ac_prog in gcc
2847do
2848 # Extract the first word of "$ac_prog", so it can be a program name with args.
2849set dummy $ac_prog; ac_word=$2
2850echo "$as_me:$LINENO: checking for $ac_word" >&5
2851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2852if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854else
2855 if test -n "$ac_ct_CC"; then
2856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857else
2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859for as_dir in $PATH
2860do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_ac_ct_CC="$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869done
2870done
2871
2872fi
2873fi
2874ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875if test -n "$ac_ct_CC"; then
2876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877echo "${ECHO_T}$ac_ct_CC" >&6
2878else
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
2881fi
2882
2883 test -n "$ac_ct_CC" && break
2884done
2885
2886 CC=$ac_ct_CC
2887fi
2888
2889
John Criswell0c38eaf2003-09-10 15:17:25 +00002890test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2891See \`config.log' for more details." >&5
2892echo "$as_me: error: no acceptable C compiler found in \$PATH
2893See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002894 { (exit 1); exit 1; }; }
2895
2896# Provide some information about the compiler.
2897echo "$as_me:$LINENO:" \
2898 "checking for C compiler version" >&5
2899ac_compiler=`set X $ac_compile; echo $2`
2900{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2901 (eval $ac_compiler --version </dev/null >&5) 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2906 (eval $ac_compiler -v </dev/null >&5) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2911 (eval $ac_compiler -V </dev/null >&5) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915
2916echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2918if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921 cat >conftest.$ac_ext <<_ACEOF
2922#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002928
John Criswell7a73b802003-06-30 21:59:07 +00002929int
2930main ()
2931{
2932#ifndef __GNUC__
2933 choke me
2934#endif
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_compiler_gnu=yes
2953else
2954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
John Criswell7a73b802003-06-30 21:59:07 +00002957ac_compiler_gnu=no
2958fi
2959rm -f conftest.$ac_objext conftest.$ac_ext
2960ac_cv_c_compiler_gnu=$ac_compiler_gnu
2961
2962fi
2963echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2964echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2965GCC=`test $ac_compiler_gnu = yes && echo yes`
2966ac_test_CFLAGS=${CFLAGS+set}
2967ac_save_CFLAGS=$CFLAGS
2968CFLAGS="-g"
2969echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2970echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2971if test "${ac_cv_prog_cc_g+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973else
2974 cat >conftest.$ac_ext <<_ACEOF
2975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002981
John Criswell7a73b802003-06-30 21:59:07 +00002982int
2983main ()
2984{
2985
2986 ;
2987 return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext
2991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 ac_cv_prog_cc_g=yes
3003else
3004 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003005sed 's/^/| /' conftest.$ac_ext >&5
3006
John Criswell7a73b802003-06-30 21:59:07 +00003007ac_cv_prog_cc_g=no
3008fi
3009rm -f conftest.$ac_objext conftest.$ac_ext
3010fi
3011echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3013if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3017 CFLAGS="-g -O2"
3018 else
3019 CFLAGS="-g"
3020 fi
3021else
3022 if test "$GCC" = yes; then
3023 CFLAGS="-O2"
3024 else
3025 CFLAGS=
3026 fi
3027fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003028echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3029echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3030if test "${ac_cv_prog_cc_stdc+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032else
3033 ac_cv_prog_cc_stdc=no
3034ac_save_CC=$CC
3035cat >conftest.$ac_ext <<_ACEOF
3036#line $LINENO "configure"
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042#include <stdarg.h>
3043#include <stdio.h>
3044#include <sys/types.h>
3045#include <sys/stat.h>
3046/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3047struct buf { int x; };
3048FILE * (*rcsopen) (struct buf *, struct stat *, int);
3049static char *e (p, i)
3050 char **p;
3051 int i;
3052{
3053 return p[i];
3054}
3055static char *f (char * (*g) (char **, int), char **p, ...)
3056{
3057 char *s;
3058 va_list v;
3059 va_start (v,p);
3060 s = g (p, va_arg (v,int));
3061 va_end (v);
3062 return s;
3063}
3064int test (int i, double x);
3065struct s1 {int (*f) (int a);};
3066struct s2 {int (*f) (double a);};
3067int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3068int argc;
3069char **argv;
3070int
3071main ()
3072{
3073return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3074 ;
3075 return 0;
3076}
3077_ACEOF
3078# Don't try gcc -ansi; that turns off useful extensions and
3079# breaks some systems' header files.
3080# AIX -qlanglvl=ansi
3081# Ultrix and OSF/1 -std1
3082# HP-UX 10.20 and later -Ae
3083# HP-UX older versions -Aa -D_HPUX_SOURCE
3084# SVR4 -Xc -D__EXTENSIONS__
3085for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3086do
3087 CC="$ac_save_CC $ac_arg"
3088 rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 ac_cv_prog_cc_stdc=$ac_arg
3101break
3102else
3103 echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106fi
3107rm -f conftest.$ac_objext
3108done
3109rm -f conftest.$ac_ext conftest.$ac_objext
3110CC=$ac_save_CC
3111
3112fi
3113
3114case "x$ac_cv_prog_cc_stdc" in
3115 x|xno)
3116 echo "$as_me:$LINENO: result: none needed" >&5
3117echo "${ECHO_T}none needed" >&6 ;;
3118 *)
3119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3120echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3121 CC="$CC $ac_cv_prog_cc_stdc" ;;
3122esac
3123
John Criswell7a73b802003-06-30 21:59:07 +00003124# Some people use a C++ compiler to compile C. Since we use `exit',
3125# in C++ we need to declare it. In case someone uses the same compiler
3126# for both compiling C and C++ we need to have the C++ compiler decide
3127# the declaration of exit, since it's the most demanding environment.
3128cat >conftest.$ac_ext <<_ACEOF
3129#ifndef __cplusplus
3130 choke me
3131#endif
3132_ACEOF
3133rm -f conftest.$ac_objext
3134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135 (eval $ac_compile) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 (eval $ac_try) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 for ac_declaration in \
3146 ''\
3147 '#include <stdlib.h>' \
3148 'extern "C" void std::exit (int) throw (); using std::exit;' \
3149 'extern "C" void std::exit (int); using std::exit;' \
3150 'extern "C" void exit (int) throw ();' \
3151 'extern "C" void exit (int);' \
3152 'void exit (int);'
3153do
3154 cat >conftest.$ac_ext <<_ACEOF
3155#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003161#include <stdlib.h>
3162$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003163int
3164main ()
3165{
3166exit (42);
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 :
3184else
3185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003186sed 's/^/| /' conftest.$ac_ext >&5
3187
John Criswell7a73b802003-06-30 21:59:07 +00003188continue
3189fi
3190rm -f conftest.$ac_objext conftest.$ac_ext
3191 cat >conftest.$ac_ext <<_ACEOF
3192#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003193/* confdefs.h. */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003198$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003199int
3200main ()
3201{
3202exit (42);
3203 ;
3204 return 0;
3205}
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 (eval $ac_try) 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 break
3220else
3221 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003222sed 's/^/| /' conftest.$ac_ext >&5
3223
John Criswell7a73b802003-06-30 21:59:07 +00003224fi
3225rm -f conftest.$ac_objext conftest.$ac_ext
3226done
3227rm -f conftest*
3228if test -n "$ac_declaration"; then
3229 echo '#ifdef __cplusplus' >>confdefs.h
3230 echo $ac_declaration >>confdefs.h
3231 echo '#endif' >>confdefs.h
3232fi
3233
3234else
3235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003236sed 's/^/| /' conftest.$ac_ext >&5
3237
John Criswell7a73b802003-06-30 21:59:07 +00003238fi
3239rm -f conftest.$ac_objext conftest.$ac_ext
3240ac_ext=c
3241ac_cpp='$CPP $CPPFLAGS'
3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3252echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3253# On Suns, sometimes $CPP names a directory.
3254if test -n "$CPP" && test -d "$CPP"; then
3255 CPP=
3256fi
3257if test -z "$CPP"; then
3258 if test "${ac_cv_prog_CPP+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261 # Double quotes because CPP needs to be expanded
3262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3263 do
3264 ac_preproc_ok=false
3265for ac_c_preproc_warn_flag in '' yes
3266do
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat >conftest.$ac_ext <<_ACEOF
3274#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280#ifdef __STDC__
3281# include <limits.h>
3282#else
3283# include <assert.h>
3284#endif
John Criswell7a73b802003-06-30 21:59:07 +00003285 Syntax error
3286_ACEOF
3287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3289 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003290 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003291 rm -f conftest.er1
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } >/dev/null; then
3295 if test -s conftest.err; then
3296 ac_cpp_err=$ac_c_preproc_warn_flag
3297 else
3298 ac_cpp_err=
3299 fi
3300else
3301 ac_cpp_err=yes
3302fi
3303if test -z "$ac_cpp_err"; then
3304 :
3305else
3306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003307sed 's/^/| /' conftest.$ac_ext >&5
3308
John Criswell7a73b802003-06-30 21:59:07 +00003309 # Broken: fails on valid input.
3310continue
3311fi
3312rm -f conftest.err conftest.$ac_ext
3313
3314 # OK, works on sane cases. Now check whether non-existent headers
3315 # can be detected and how.
3316 cat >conftest.$ac_ext <<_ACEOF
3317#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003323#include <ac_nonexistent.h>
3324_ACEOF
3325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3327 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003328 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } >/dev/null; then
3333 if test -s conftest.err; then
3334 ac_cpp_err=$ac_c_preproc_warn_flag
3335 else
3336 ac_cpp_err=
3337 fi
3338else
3339 ac_cpp_err=yes
3340fi
3341if test -z "$ac_cpp_err"; then
3342 # Broken: success on invalid input.
3343continue
3344else
3345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003346sed 's/^/| /' conftest.$ac_ext >&5
3347
John Criswell7a73b802003-06-30 21:59:07 +00003348 # Passes both tests.
3349ac_preproc_ok=:
3350break
3351fi
3352rm -f conftest.err conftest.$ac_ext
3353
3354done
3355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356rm -f conftest.err conftest.$ac_ext
3357if $ac_preproc_ok; then
3358 break
3359fi
3360
3361 done
3362 ac_cv_prog_CPP=$CPP
3363
3364fi
3365 CPP=$ac_cv_prog_CPP
3366else
3367 ac_cv_prog_CPP=$CPP
3368fi
3369echo "$as_me:$LINENO: result: $CPP" >&5
3370echo "${ECHO_T}$CPP" >&6
3371ac_preproc_ok=false
3372for ac_c_preproc_warn_flag in '' yes
3373do
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3381#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003382/* confdefs.h. */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h. */
3387#ifdef __STDC__
3388# include <limits.h>
3389#else
3390# include <assert.h>
3391#endif
John Criswell7a73b802003-06-30 21:59:07 +00003392 Syntax error
3393_ACEOF
3394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3396 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003397 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 else
3405 ac_cpp_err=
3406 fi
3407else
3408 ac_cpp_err=yes
3409fi
3410if test -z "$ac_cpp_err"; then
3411 :
3412else
3413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003414sed 's/^/| /' conftest.$ac_ext >&5
3415
John Criswell7a73b802003-06-30 21:59:07 +00003416 # Broken: fails on valid input.
3417continue
3418fi
3419rm -f conftest.err conftest.$ac_ext
3420
3421 # OK, works on sane cases. Now check whether non-existent headers
3422 # can be detected and how.
3423 cat >conftest.$ac_ext <<_ACEOF
3424#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003430#include <ac_nonexistent.h>
3431_ACEOF
3432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3434 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003435 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 else
3443 ac_cpp_err=
3444 fi
3445else
3446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
3449 # Broken: success on invalid input.
3450continue
3451else
3452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003453sed 's/^/| /' conftest.$ac_ext >&5
3454
John Criswell7a73b802003-06-30 21:59:07 +00003455 # Passes both tests.
3456ac_preproc_ok=:
3457break
3458fi
3459rm -f conftest.err conftest.$ac_ext
3460
3461done
3462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463rm -f conftest.err conftest.$ac_ext
3464if $ac_preproc_ok; then
3465 :
3466else
John Criswell0c38eaf2003-09-10 15:17:25 +00003467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468See \`config.log' for more details." >&5
3469echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003471 { (exit 1); exit 1; }; }
3472fi
3473
3474ac_ext=c
3475ac_cpp='$CPP $CPPFLAGS'
3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479
3480
3481if test "$GCC" != "yes"
3482then
3483 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3484echo "$as_me: error: gcc required but not found" >&2;}
3485 { (exit 1); exit 1; }; }
3486fi
3487
3488if test "$GXX" != "yes"
3489then
3490 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3491echo "$as_me: error: g++ required but not found" >&2;}
3492 { (exit 1); exit 1; }; }
3493fi
3494
John Criswellde00db22003-08-25 16:49:54 +00003495gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3496if test "$gccmajor" -lt "3"
3497then
3498 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3499echo "$as_me: error: gcc 3.x required" >&2;}
3500 { (exit 1); exit 1; }; }
3501fi
3502
John Criswell7a73b802003-06-30 21:59:07 +00003503 echo "$as_me:$LINENO: checking for GNU make" >&5
3504echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3505if test "${_cv_gnu_make_command+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 _cv_gnu_make_command='' ;
3509 for a in "$MAKE" make gmake gnumake ; do
3510 if test -z "$a" ; then continue ; fi ;
3511 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3512 _cv_gnu_make_command=$a ;
3513 break;
3514 fi
3515 done ;
3516
3517fi
3518echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3519echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3520 if test "x$_cv_gnu_make_command" != "x" ; then
3521 ifGNUmake='' ;
3522 else
3523 ifGNUmake='#' ;
3524 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3525echo "${ECHO_T}\"Not found\"" >&6;
3526 fi
3527
3528
3529if test -z "$_cv_gnu_make_command"
3530then
3531 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3532echo "$as_me: error: GNU Make required but not found" >&2;}
3533 { (exit 1); exit 1; }; }
3534fi
3535
3536
3537echo "$as_me:$LINENO: checking " >&5
3538echo $ECHO_N "checking ... $ECHO_C" >&6
3539if test "${ac_cv_has_flex+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542 for ac_prog in flex lex
3543do
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545set dummy $ac_prog; ac_word=$2
3546echo "$as_me:$LINENO: checking for $ac_word" >&5
3547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548if test "${ac_cv_prog_LEX+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 if test -n "$LEX"; then
3552 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3553else
3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555for as_dir in $PATH
3556do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_LEX="$ac_prog"
3562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565done
3566done
3567
3568fi
3569fi
3570LEX=$ac_cv_prog_LEX
3571if test -n "$LEX"; then
3572 echo "$as_me:$LINENO: result: $LEX" >&5
3573echo "${ECHO_T}$LEX" >&6
3574else
3575 echo "$as_me:$LINENO: result: no" >&5
3576echo "${ECHO_T}no" >&6
3577fi
3578
3579 test -n "$LEX" && break
3580done
3581test -n "$LEX" || LEX=":"
3582
3583if test -z "$LEXLIB"
3584then
3585 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3586echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3587if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590 ac_check_lib_save_LIBS=$LIBS
3591LIBS="-lfl $LIBS"
3592cat >conftest.$ac_ext <<_ACEOF
3593#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003599
3600/* Override any gcc2 internal prototype to avoid an error. */
3601#ifdef __cplusplus
3602extern "C"
3603#endif
3604/* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003607int
3608main ()
3609{
3610yywrap ();
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest$ac_exeext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_lib_fl_yywrap=yes
3628else
3629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003630sed 's/^/| /' conftest.$ac_ext >&5
3631
John Criswell7a73b802003-06-30 21:59:07 +00003632ac_cv_lib_fl_yywrap=no
3633fi
3634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635LIBS=$ac_check_lib_save_LIBS
3636fi
3637echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3638echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3639if test $ac_cv_lib_fl_yywrap = yes; then
3640 LEXLIB="-lfl"
3641else
3642 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3643echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3644if test "${ac_cv_lib_l_yywrap+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 ac_check_lib_save_LIBS=$LIBS
3648LIBS="-ll $LIBS"
3649cat >conftest.$ac_ext <<_ACEOF
3650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003656
3657/* Override any gcc2 internal prototype to avoid an error. */
3658#ifdef __cplusplus
3659extern "C"
3660#endif
3661/* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3663char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003664int
3665main ()
3666{
3667yywrap ();
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672rm -f conftest.$ac_objext conftest$ac_exeext
3673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3674 (eval $ac_link) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -s conftest$ac_exeext'
3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 (eval $ac_try) 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 ac_cv_lib_l_yywrap=yes
3685else
3686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003687sed 's/^/| /' conftest.$ac_ext >&5
3688
John Criswell7a73b802003-06-30 21:59:07 +00003689ac_cv_lib_l_yywrap=no
3690fi
3691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3692LIBS=$ac_check_lib_save_LIBS
3693fi
3694echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3695echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3696if test $ac_cv_lib_l_yywrap = yes; then
3697 LEXLIB="-ll"
3698fi
3699
3700fi
3701
3702fi
3703
3704if test "x$LEX" != "x:"; then
3705 echo "$as_me:$LINENO: checking lex output file root" >&5
3706echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3707if test "${ac_cv_prog_lex_root+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 # The minimal lex program is just a single line: %%. But some broken lexes
3711# (Solaris, I think it was) want two %% lines, so accommodate them.
3712cat >conftest.l <<_ACEOF
3713%%
3714%%
3715_ACEOF
3716{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3717 (eval $LEX conftest.l) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }
3721if test -f lex.yy.c; then
3722 ac_cv_prog_lex_root=lex.yy
3723elif test -f lexyy.c; then
3724 ac_cv_prog_lex_root=lexyy
3725else
3726 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3727echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730fi
3731echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3732echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3733rm -f conftest.l
3734LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3735
3736echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3737echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3738if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 # POSIX says lex can declare yytext either as a pointer or an array; the
3742# default is implementation-dependent. Figure out which it is, since
3743# not all implementations provide the %pointer and %array declarations.
3744ac_cv_prog_lex_yytext_pointer=no
3745echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3746ac_save_LIBS=$LIBS
3747LIBS="$LIBS $LEXLIB"
3748cat >conftest.$ac_ext <<_ACEOF
3749`cat $LEX_OUTPUT_ROOT.c`
3750_ACEOF
3751rm -f conftest.$ac_objext conftest$ac_exeext
3752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3753 (eval $ac_link) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } &&
3757 { ac_try='test -s conftest$ac_exeext'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759 (eval $ac_try) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3763 ac_cv_prog_lex_yytext_pointer=yes
3764else
3765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003766sed 's/^/| /' conftest.$ac_ext >&5
3767
John Criswell7a73b802003-06-30 21:59:07 +00003768fi
3769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3770LIBS=$ac_save_LIBS
3771rm -f "${LEX_OUTPUT_ROOT}.c"
3772
3773fi
3774echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3775echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3776if test $ac_cv_prog_lex_yytext_pointer = yes; then
3777
3778cat >>confdefs.h <<\_ACEOF
3779#define YYTEXT_POINTER 1
3780_ACEOF
3781
3782fi
3783
3784fi
3785
3786fi
3787echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3788echo "${ECHO_T}$ac_cv_has_flex" >&6
3789if test "$LEX" != "flex"; then
3790 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3791echo "$as_me: error: flex not found but required" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
3795echo "$as_me:$LINENO: checking " >&5
3796echo $ECHO_N "checking ... $ECHO_C" >&6
3797if test "${ac_cv_has_bison+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 for ac_prog in 'bison -y' byacc
3801do
3802 # Extract the first word of "$ac_prog", so it can be a program name with args.
3803set dummy $ac_prog; ac_word=$2
3804echo "$as_me:$LINENO: checking for $ac_word" >&5
3805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806if test "${ac_cv_prog_YACC+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808else
3809 if test -n "$YACC"; then
3810 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_YACC="$ac_prog"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824done
3825
3826fi
3827fi
3828YACC=$ac_cv_prog_YACC
3829if test -n "$YACC"; then
3830 echo "$as_me:$LINENO: result: $YACC" >&5
3831echo "${ECHO_T}$YACC" >&6
3832else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835fi
3836
3837 test -n "$YACC" && break
3838done
3839test -n "$YACC" || YACC="yacc"
3840
3841
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3844echo "${ECHO_T}$ac_cv_has_bison" >&6
3845if test "$YACC" != "bison -y"; then
3846 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3847echo "$as_me: error: bison not found but required" >&2;}
3848 { (exit 1); exit 1; }; }
3849else
3850 YACC=bison
3851
3852fi
3853
3854
3855# Check whether --enable-shared or --disable-shared was given.
3856if test "${enable_shared+set}" = set; then
3857 enableval="$enable_shared"
3858 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003859 case $enableval in
3860 yes) enable_shared=yes ;;
3861 no) enable_shared=no ;;
3862 *)
3863 enable_shared=no
3864 # Look at the argument we got. We use all the common list separators.
3865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3866 for pkg in $enableval; do
3867 IFS="$lt_save_ifs"
3868 if test "X$pkg" = "X$p"; then
3869 enable_shared=yes
3870 fi
3871 done
3872 IFS="$lt_save_ifs"
3873 ;;
3874 esac
John Criswell7a73b802003-06-30 21:59:07 +00003875else
3876 enable_shared=yes
3877fi;
John Criswell47fdd832003-07-14 16:52:07 +00003878
John Criswell7a73b802003-06-30 21:59:07 +00003879# Check whether --enable-static or --disable-static was given.
3880if test "${enable_static+set}" = set; then
3881 enableval="$enable_static"
3882 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003883 case $enableval in
3884 yes) enable_static=yes ;;
3885 no) enable_static=no ;;
3886 *)
3887 enable_static=no
3888 # Look at the argument we got. We use all the common list separators.
3889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3890 for pkg in $enableval; do
3891 IFS="$lt_save_ifs"
3892 if test "X$pkg" = "X$p"; then
3893 enable_static=yes
3894 fi
3895 done
3896 IFS="$lt_save_ifs"
3897 ;;
3898 esac
John Criswell7a73b802003-06-30 21:59:07 +00003899else
3900 enable_static=yes
3901fi;
John Criswell47fdd832003-07-14 16:52:07 +00003902
John Criswell7a73b802003-06-30 21:59:07 +00003903# Check whether --enable-fast-install or --disable-fast-install was given.
3904if test "${enable_fast_install+set}" = set; then
3905 enableval="$enable_fast_install"
3906 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003907 case $enableval in
3908 yes) enable_fast_install=yes ;;
3909 no) enable_fast_install=no ;;
3910 *)
3911 enable_fast_install=no
3912 # Look at the argument we got. We use all the common list separators.
3913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914 for pkg in $enableval; do
3915 IFS="$lt_save_ifs"
3916 if test "X$pkg" = "X$p"; then
3917 enable_fast_install=yes
3918 fi
3919 done
3920 IFS="$lt_save_ifs"
3921 ;;
3922 esac
John Criswell7a73b802003-06-30 21:59:07 +00003923else
3924 enable_fast_install=yes
3925fi;
John Criswell47fdd832003-07-14 16:52:07 +00003926
3927echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3928echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3929if test "${lt_cv_path_SED+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 # Loop through the user's path and test for sed and gsed.
3933# Then use that list of sed's as ones to test for truncation.
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for lt_ac_prog in sed gsed; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3942 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3943 fi
3944 done
3945 done
3946done
3947lt_ac_max=0
3948lt_ac_count=0
3949# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3950# along with /bin/sed that truncates output.
3951for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3952 test ! -f $lt_ac_sed && break
3953 cat /dev/null > conftest.in
3954 lt_ac_count=0
3955 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3956 # Check for GNU sed and select it if it is found.
3957 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3958 lt_cv_path_SED=$lt_ac_sed
3959 break
3960 fi
3961 while true; do
3962 cat conftest.in conftest.in >conftest.tmp
3963 mv conftest.tmp conftest.in
3964 cp conftest.in conftest.nl
3965 echo >>conftest.nl
3966 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3967 cmp -s conftest.out conftest.nl || break
3968 # 10000 chars as input seems more than enough
3969 test $lt_ac_count -gt 10 && break
3970 lt_ac_count=`expr $lt_ac_count + 1`
3971 if test $lt_ac_count -gt $lt_ac_max; then
3972 lt_ac_max=$lt_ac_count
3973 lt_cv_path_SED=$lt_ac_sed
3974 fi
3975 done
3976done
3977SED=$lt_cv_path_SED
3978
John Criswell7a73b802003-06-30 21:59:07 +00003979fi
3980
John Criswell47fdd832003-07-14 16:52:07 +00003981echo "$as_me:$LINENO: result: $SED" >&5
3982echo "${ECHO_T}$SED" >&6
3983
3984echo "$as_me:$LINENO: checking for egrep" >&5
3985echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3986if test "${ac_cv_prog_egrep+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3990 then ac_cv_prog_egrep='grep -E'
3991 else ac_cv_prog_egrep='egrep'
3992 fi
3993fi
3994echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3995echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3996 EGREP=$ac_cv_prog_egrep
3997
3998
John Criswell7a73b802003-06-30 21:59:07 +00003999
4000# Check whether --with-gnu-ld or --without-gnu-ld was given.
4001if test "${with_gnu_ld+set}" = set; then
4002 withval="$with_gnu_ld"
4003 test "$withval" = no || with_gnu_ld=yes
4004else
4005 with_gnu_ld=no
4006fi;
4007ac_prog=ld
4008if test "$GCC" = yes; then
4009 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004010 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4011echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004012 case $host in
4013 *-*-mingw*)
4014 # gcc leaves a trailing carriage return which upsets mingw
4015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4016 *)
4017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4018 esac
4019 case $ac_prog in
4020 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004021 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004022 re_direlt='/[^/][^/]*/\.\./'
4023 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004024 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004025 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004026 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004027 done
4028 test -z "$LD" && LD="$ac_prog"
4029 ;;
4030 "")
4031 # If it fails, then pretend we aren't using GCC.
4032 ac_prog=ld
4033 ;;
4034 *)
4035 # If it is relative, then search for the first ld in PATH.
4036 with_gnu_ld=unknown
4037 ;;
4038 esac
4039elif test "$with_gnu_ld" = yes; then
4040 echo "$as_me:$LINENO: checking for GNU ld" >&5
4041echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4042else
4043 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4044echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4045fi
4046if test "${lt_cv_path_LD+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004051 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004052 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004053 test -z "$ac_dir" && ac_dir=.
4054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4055 lt_cv_path_LD="$ac_dir/$ac_prog"
4056 # Check to see if the program is GNU ld. I'd rather use --version,
4057 # but apparently some GNU ld's only accept -v.
4058 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4060 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004061 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004062 ;;
4063 *)
John Criswell7a73b802003-06-30 21:59:07 +00004064 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004065 ;;
4066 esac
John Criswell7a73b802003-06-30 21:59:07 +00004067 fi
4068 done
John Criswell47fdd832003-07-14 16:52:07 +00004069 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004070else
4071 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4072fi
4073fi
4074
4075LD="$lt_cv_path_LD"
4076if test -n "$LD"; then
4077 echo "$as_me:$LINENO: result: $LD" >&5
4078echo "${ECHO_T}$LD" >&6
4079else
4080 echo "$as_me:$LINENO: result: no" >&5
4081echo "${ECHO_T}no" >&6
4082fi
4083test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4084echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4085 { (exit 1); exit 1; }; }
4086echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4087echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4088if test "${lt_cv_prog_gnu_ld+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004092case `"$LD" -v 2>&1 </dev/null` in
4093*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004094 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004095 ;;
4096*)
John Criswell7a73b802003-06-30 21:59:07 +00004097 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004098 ;;
4099esac
John Criswell7a73b802003-06-30 21:59:07 +00004100fi
4101echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4102echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4103with_gnu_ld=$lt_cv_prog_gnu_ld
4104
4105
4106echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4107echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4108if test "${lt_cv_ld_reload_flag+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 lt_cv_ld_reload_flag='-r'
4112fi
4113echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4114echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4115reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004116case $reload_flag in
4117"" | " "*) ;;
4118*) reload_flag=" $reload_flag" ;;
4119esac
4120reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004121
4122echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4123echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4124if test "${lt_cv_path_NM+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 if test -n "$NM"; then
4128 # Let the user override the test.
4129 lt_cv_path_NM="$NM"
4130else
John Criswell47fdd832003-07-14 16:52:07 +00004131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004132 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004133 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004134 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004135 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4136 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004137 # Check to see if the nm accepts a BSD-compat flag.
4138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4139 # nm: unknown option "B" ignored
4140 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004141 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4142 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004143 lt_cv_path_NM="$tmp_nm -B"
4144 break
John Criswell47fdd832003-07-14 16:52:07 +00004145 ;;
4146 *)
4147 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4148 */dev/null*)
4149 lt_cv_path_NM="$tmp_nm -p"
4150 break
4151 ;;
4152 *)
4153 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4154 continue # so that we can try to find one that supports BSD flags
4155 ;;
4156 esac
4157 esac
John Criswell7a73b802003-06-30 21:59:07 +00004158 fi
4159 done
John Criswell47fdd832003-07-14 16:52:07 +00004160 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004161 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4162fi
4163fi
John Criswell47fdd832003-07-14 16:52:07 +00004164echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4165echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004166NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004167
4168echo "$as_me:$LINENO: checking whether ln -s works" >&5
4169echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4170LN_S=$as_ln_s
4171if test "$LN_S" = "ln -s"; then
4172 echo "$as_me:$LINENO: result: yes" >&5
4173echo "${ECHO_T}yes" >&6
4174else
4175 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4176echo "${ECHO_T}no, using $LN_S" >&6
4177fi
4178
John Criswell47fdd832003-07-14 16:52:07 +00004179echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4180echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004181if test "${lt_cv_deplibs_check_method+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184 lt_cv_file_magic_cmd='$MAGIC_CMD'
4185lt_cv_file_magic_test_file=
4186lt_cv_deplibs_check_method='unknown'
4187# Need to set the preceding variable on all platforms that support
4188# interlibrary dependencies.
4189# 'none' -- dependencies not supported.
4190# `unknown' -- same as none, but documents that we really don't know.
4191# 'pass_all' -- all dependencies passed with no checks.
4192# 'test_compile' -- check by making test program.
4193# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004194# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004195# If you have `file' or equivalent on your system and you're not sure
4196# whether `pass_all' will *always* work, you probably want this one.
4197
4198case $host_os in
4199aix4* | aix5*)
4200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203beos*)
4204 lt_cv_deplibs_check_method=pass_all
4205 ;;
4206
4207bsdi4*)
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4209 lt_cv_file_magic_cmd='/usr/bin/file -L'
4210 lt_cv_file_magic_test_file=/shlib/libc.so
4211 ;;
4212
4213cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004214 # win32_libid is a shell function defined in ltmain.sh
4215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4216 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004217 ;;
4218
4219darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004220 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222 lt_cv_file_magic_cmd='/usr/bin/file -L'
4223 case "$host_os" in
4224 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004225 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004226 ;;
4227 *) # Darwin 1.3 on
4228 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4229 ;;
4230 esac
John Criswell47fdd832003-07-14 16:52:07 +00004231 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004232 ;;
4233
4234freebsd*)
4235 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4236 case $host_cpu in
4237 i*86 )
4238 # Not sure whether the presence of OpenBSD here was a mistake.
4239 # Let's accept both of them until this is cleared up.
4240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4241 lt_cv_file_magic_cmd=/usr/bin/file
4242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4243 ;;
4244 esac
4245 else
4246 lt_cv_deplibs_check_method=pass_all
4247 fi
4248 ;;
4249
4250gnu*)
4251 lt_cv_deplibs_check_method=pass_all
4252 ;;
4253
John Criswell47fdd832003-07-14 16:52:07 +00004254hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004255 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004256 case "$host_cpu" in
4257 ia64*)
4258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4259 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4260 ;;
4261 hppa*64*)
4262 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]'
4263 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4264 ;;
4265 *)
4266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4267 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4268 ;;
4269 esac
John Criswell7a73b802003-06-30 21:59:07 +00004270 ;;
4271
John Criswell47fdd832003-07-14 16:52:07 +00004272irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004273 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004274 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004275 # this will be overridden with pass_all, but let us keep it just in case
4276 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4277 ;;
4278 *)
4279 case $LD in
4280 *-32|*"-32 ") libmagic=32-bit;;
4281 *-n32|*"-n32 ") libmagic=N32;;
4282 *-64|*"-64 ") libmagic=64-bit;;
4283 *) libmagic=never-match;;
4284 esac
4285 # this will be overridden with pass_all, but let us keep it just in case
4286 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4287 ;;
4288 esac
4289 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4290 lt_cv_deplibs_check_method=pass_all
4291 ;;
4292
4293# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004294linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004295 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004296 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004297 lt_cv_deplibs_check_method=pass_all ;;
4298 *)
4299 # glibc up to 2.1.1 does not perform some relocations on ARM
4300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4301 esac
4302 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4303 ;;
4304
4305netbsd*)
4306 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004308 else
John Criswell47fdd832003-07-14 16:52:07 +00004309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004310 fi
4311 ;;
4312
4313newos6*)
4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4315 lt_cv_file_magic_cmd=/usr/bin/file
4316 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4317 ;;
4318
John Criswell47fdd832003-07-14 16:52:07 +00004319nto-qnx)
4320 lt_cv_deplibs_check_method=unknown
4321 ;;
4322
John Criswell7a73b802003-06-30 21:59:07 +00004323openbsd*)
4324 lt_cv_file_magic_cmd=/usr/bin/file
4325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4328 else
4329 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4330 fi
4331 ;;
4332
4333osf3* | osf4* | osf5*)
4334 # this will be overridden with pass_all, but let us keep it just in case
4335 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4336 lt_cv_file_magic_test_file=/shlib/libc.so
4337 lt_cv_deplibs_check_method=pass_all
4338 ;;
4339
4340sco3.2v5*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344solaris*)
4345 lt_cv_deplibs_check_method=pass_all
4346 lt_cv_file_magic_test_file=/lib/libc.so
4347 ;;
4348
John Criswell7a73b802003-06-30 21:59:07 +00004349sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4350 case $host_vendor in
4351 motorola)
4352 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]'
4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354 ;;
4355 ncr)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
4358 sequent)
4359 lt_cv_file_magic_cmd='/bin/file'
4360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361 ;;
4362 sni)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4365 lt_cv_file_magic_test_file=/lib/libc.so
4366 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004367 siemens)
4368 lt_cv_deplibs_check_method=pass_all
4369 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004370 esac
4371 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004372
4373sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004376esac
4377
4378fi
4379echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4380echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4381file_magic_cmd=$lt_cv_file_magic_cmd
4382deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004383test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004384
4385
4386
4387
John Criswell47fdd832003-07-14 16:52:07 +00004388# If no C compiler was specified, use CC.
4389LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004390
John Criswell47fdd832003-07-14 16:52:07 +00004391# Allow CC to be a program name with arguments.
4392compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004393
John Criswell47fdd832003-07-14 16:52:07 +00004394# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4395if test "${enable_libtool_lock+set}" = set; then
4396 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004397
John Criswell47fdd832003-07-14 16:52:07 +00004398fi;
4399test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004400
John Criswell47fdd832003-07-14 16:52:07 +00004401# Some flags need to be propagated to the compiler or linker for good
4402# libtool support.
4403case $host in
4404ia64-*-hpux*)
4405 # Find out which ABI we are using.
4406 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004412 case `/usr/bin/file conftest.$ac_objext` in
4413 *ELF-32*)
4414 HPUX_IA64_MODE="32"
4415 ;;
4416 *ELF-64*)
4417 HPUX_IA64_MODE="64"
4418 ;;
4419 esac
4420 fi
4421 rm -rf conftest*
4422 ;;
4423*-*-irix6*)
4424 # Find out which ABI we are using.
John Criswell55126592003-10-07 21:57:39 +00004425 echo '#line 4425 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004430 (exit $ac_status); }; then
4431 if test "$lt_cv_prog_gnu_ld" = yes; then
4432 case `/usr/bin/file conftest.$ac_objext` in
4433 *32-bit*)
4434 LD="${LD-ld} -melf32bsmip"
4435 ;;
4436 *N32*)
4437 LD="${LD-ld} -melf32bmipn32"
4438 ;;
4439 *64-bit*)
4440 LD="${LD-ld} -melf64bmip"
4441 ;;
4442 esac
4443 else
4444 case `/usr/bin/file conftest.$ac_objext` in
4445 *32-bit*)
4446 LD="${LD-ld} -32"
4447 ;;
4448 *N32*)
4449 LD="${LD-ld} -n32"
4450 ;;
4451 *64-bit*)
4452 LD="${LD-ld} -64"
4453 ;;
4454 esac
4455 fi
4456 fi
4457 rm -rf conftest*
4458 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004459
John Criswell47fdd832003-07-14 16:52:07 +00004460x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4461 # Find out which ABI we are using.
4462 echo 'int i;' > conftest.$ac_ext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; then
4468 case "`/usr/bin/file conftest.o`" in
4469 *32-bit*)
4470 case $host in
4471 x86_64-*linux*)
4472 LD="${LD-ld} -m elf_i386"
4473 ;;
4474 ppc64-*linux*)
4475 LD="${LD-ld} -m elf32ppclinux"
4476 ;;
4477 s390x-*linux*)
4478 LD="${LD-ld} -m elf_s390"
4479 ;;
4480 sparc64-*linux*)
4481 LD="${LD-ld} -m elf32_sparc"
4482 ;;
4483 esac
4484 ;;
4485 *64-bit*)
4486 case $host in
4487 x86_64-*linux*)
4488 LD="${LD-ld} -m elf_x86_64"
4489 ;;
4490 ppc*-*linux*|powerpc*-*linux*)
4491 LD="${LD-ld} -m elf64ppc"
4492 ;;
4493 s390*-*linux*)
4494 LD="${LD-ld} -m elf64_s390"
4495 ;;
4496 sparc*-*linux*)
4497 LD="${LD-ld} -m elf64_sparc"
4498 ;;
4499 esac
4500 ;;
4501 esac
4502 fi
4503 rm -rf conftest*
4504 ;;
4505
4506*-*-sco3.2v5*)
4507 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4508 SAVE_CFLAGS="$CFLAGS"
4509 CFLAGS="$CFLAGS -belf"
4510 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4511echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4512if test "${lt_cv_cc_needs_belf+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 ac_ext=c
4516ac_cpp='$CPP $CPPFLAGS'
4517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520
4521 cat >conftest.$ac_ext <<_ACEOF
4522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004523/* confdefs.h. */
4524_ACEOF
4525cat confdefs.h >>conftest.$ac_ext
4526cat >>conftest.$ac_ext <<_ACEOF
4527/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004528
John Criswell47fdd832003-07-14 16:52:07 +00004529int
4530main ()
John Criswell7a73b802003-06-30 21:59:07 +00004531{
John Criswell7a73b802003-06-30 21:59:07 +00004532
John Criswell47fdd832003-07-14 16:52:07 +00004533 ;
4534 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004535}
John Criswell47fdd832003-07-14 16:52:07 +00004536_ACEOF
4537rm -f conftest.$ac_objext conftest$ac_exeext
4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004539 (eval $ac_link) 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004542 (exit $ac_status); } &&
4543 { ac_try='test -s conftest$ac_exeext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004550else
John Criswell47fdd832003-07-14 16:52:07 +00004551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004552sed 's/^/| /' conftest.$ac_ext >&5
4553
John Criswell47fdd832003-07-14 16:52:07 +00004554lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004555fi
John Criswell47fdd832003-07-14 16:52:07 +00004556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4557 ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
John Criswell7a73b802003-06-30 21:59:07 +00004563fi
John Criswell47fdd832003-07-14 16:52:07 +00004564echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4565echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4566 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4567 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4568 CFLAGS="$SAVE_CFLAGS"
4569 fi
4570 ;;
4571
4572esac
4573
4574need_locks="$enable_libtool_lock"
4575
John Criswell7a73b802003-06-30 21:59:07 +00004576
4577
4578echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580if test "${ac_cv_header_stdc+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 cat >conftest.$ac_ext <<_ACEOF
4584#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004590#include <stdlib.h>
4591#include <stdarg.h>
4592#include <string.h>
4593#include <float.h>
4594
John Criswell0c38eaf2003-09-10 15:17:25 +00004595int
4596main ()
4597{
4598
4599 ;
4600 return 0;
4601}
John Criswell7a73b802003-06-30 21:59:07 +00004602_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004603rm -f conftest.$ac_objext
4604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004606 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004608 (exit $ac_status); } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004615 ac_cv_header_stdc=yes
4616else
4617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004618sed 's/^/| /' conftest.$ac_ext >&5
4619
4620ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004621fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004622rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004623
4624if test $ac_cv_header_stdc = yes; then
4625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4626 cat >conftest.$ac_ext <<_ACEOF
4627#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004633#include <string.h>
4634
4635_ACEOF
4636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004637 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004638 :
4639else
4640 ac_cv_header_stdc=no
4641fi
4642rm -f conftest*
4643
4644fi
4645
4646if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004650/* confdefs.h. */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004655#include <stdlib.h>
4656
4657_ACEOF
4658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004659 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004660 :
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f conftest*
4665
4666fi
4667
4668if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then
4671 :
4672else
4673 cat >conftest.$ac_ext <<_ACEOF
4674#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004675/* confdefs.h. */
4676_ACEOF
4677cat confdefs.h >>conftest.$ac_ext
4678cat >>conftest.$ac_ext <<_ACEOF
4679/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004680#include <ctype.h>
4681#if ((' ' & 0x0FF) == 0x020)
4682# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4683# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4684#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004685# define ISLOWER(c) \
4686 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004687 || ('j' <= (c) && (c) <= 'r') \
4688 || ('s' <= (c) && (c) <= 'z'))
4689# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4690#endif
4691
4692#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4693int
4694main ()
4695{
4696 int i;
4697 for (i = 0; i < 256; i++)
4698 if (XOR (islower (i), ISLOWER (i))
4699 || toupper (i) != TOUPPER (i))
4700 exit(2);
4701 exit (0);
4702}
4703_ACEOF
4704rm -f conftest$ac_exeext
4705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4706 (eval $ac_link) 2>&5
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 (eval $ac_try) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 :
4716else
4717 echo "$as_me: program exited with status $ac_status" >&5
4718echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004719sed 's/^/| /' conftest.$ac_ext >&5
4720
John Criswell7a73b802003-06-30 21:59:07 +00004721( exit $ac_status )
4722ac_cv_header_stdc=no
4723fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004724rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004725fi
4726fi
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4729echo "${ECHO_T}$ac_cv_header_stdc" >&6
4730if test $ac_cv_header_stdc = yes; then
4731
4732cat >>confdefs.h <<\_ACEOF
4733#define STDC_HEADERS 1
4734_ACEOF
4735
4736fi
4737
4738# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4749 inttypes.h stdint.h unistd.h
4750do
4751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752echo "$as_me:$LINENO: checking for $ac_header" >&5
4753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4754if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 cat >conftest.$ac_ext <<_ACEOF
4758#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004764$ac_includes_default
4765
4766#include <$ac_header>
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 eval "$as_ac_Header=yes"
4781else
4782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004783sed 's/^/| /' conftest.$ac_ext >&5
4784
John Criswell7a73b802003-06-30 21:59:07 +00004785eval "$as_ac_Header=no"
4786fi
4787rm -f conftest.$ac_objext conftest.$ac_ext
4788fi
4789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4791if test `eval echo '${'$as_ac_Header'}'` = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794_ACEOF
4795
4796fi
4797
4798done
4799
4800
4801
4802for ac_header in dlfcn.h
4803do
4804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805if eval "test \"\${$as_ac_Header+set}\" = set"; then
4806 echo "$as_me:$LINENO: checking for $ac_header" >&5
4807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810fi
4811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4813else
4814 # Is the header compilable?
4815echo "$as_me:$LINENO: checking $ac_header usability" >&5
4816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4817cat >conftest.$ac_ext <<_ACEOF
4818#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004819/* confdefs.h. */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004824$ac_includes_default
4825#include <$ac_header>
4826_ACEOF
4827rm -f conftest.$ac_objext
4828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_header_compiler=yes
4840else
4841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004842sed 's/^/| /' conftest.$ac_ext >&5
4843
John Criswell7a73b802003-06-30 21:59:07 +00004844ac_header_compiler=no
4845fi
4846rm -f conftest.$ac_objext conftest.$ac_ext
4847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4848echo "${ECHO_T}$ac_header_compiler" >&6
4849
4850# Is the header present?
4851echo "$as_me:$LINENO: checking $ac_header presence" >&5
4852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4853cat >conftest.$ac_ext <<_ACEOF
4854#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004860#include <$ac_header>
4861_ACEOF
4862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4864 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004865 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_c_preproc_warn_flag
4872 else
4873 ac_cpp_err=
4874 fi
4875else
4876 ac_cpp_err=yes
4877fi
4878if test -z "$ac_cpp_err"; then
4879 ac_header_preproc=yes
4880else
4881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004882sed 's/^/| /' conftest.$ac_ext >&5
4883
John Criswell7a73b802003-06-30 21:59:07 +00004884 ac_header_preproc=no
4885fi
4886rm -f conftest.err conftest.$ac_ext
4887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4888echo "${ECHO_T}$ac_header_preproc" >&6
4889
4890# So? What about this header?
4891case $ac_header_compiler:$ac_header_preproc in
4892 yes:no )
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4897 (
4898 cat <<\_ASBOX
4899## ------------------------------------ ##
4900## Report this to bug-autoconf@gnu.org. ##
4901## ------------------------------------ ##
4902_ASBOX
4903 ) |
4904 sed "s/^/$as_me: WARNING: /" >&2
4905 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004906 no:yes )
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4913 (
4914 cat <<\_ASBOX
4915## ------------------------------------ ##
4916## Report this to bug-autoconf@gnu.org. ##
4917## ------------------------------------ ##
4918_ASBOX
4919 ) |
4920 sed "s/^/$as_me: WARNING: /" >&2
4921 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004922esac
4923echo "$as_me:$LINENO: checking for $ac_header" >&5
4924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4925if eval "test \"\${$as_ac_Header+set}\" = set"; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 eval "$as_ac_Header=$ac_header_preproc"
4929fi
4930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4932
4933fi
4934if test `eval echo '${'$as_ac_Header'}'` = yes; then
4935 cat >>confdefs.h <<_ACEOF
4936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4937_ACEOF
4938
4939fi
4940
4941done
4942
John Criswell47fdd832003-07-14 16:52:07 +00004943ac_ext=cc
4944ac_cpp='$CXXCPP $CPPFLAGS'
4945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4948echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4949echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4950if test -z "$CXXCPP"; then
4951 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
John Criswell47fdd832003-07-14 16:52:07 +00004954 # Double quotes because CXXCPP needs to be expanded
4955 for CXXCPP in "$CXX -E" "/lib/cpp"
4956 do
4957 ac_preproc_ok=false
4958for ac_cxx_preproc_warn_flag in '' yes
4959do
4960 # Use a header file that comes with gcc, so configuring glibc
4961 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004964 # On the NeXT, cc -E runs the code through the compiler's parser,
4965 # not just through cpp. "Syntax error" is here to catch this case.
4966 cat >conftest.$ac_ext <<_ACEOF
4967#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#ifdef __STDC__
4974# include <limits.h>
4975#else
4976# include <assert.h>
4977#endif
John Criswell47fdd832003-07-14 16:52:07 +00004978 Syntax error
4979_ACEOF
4980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004983 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004990 else
John Criswell47fdd832003-07-14 16:52:07 +00004991 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004992 fi
John Criswell47fdd832003-07-14 16:52:07 +00004993else
4994 ac_cpp_err=yes
4995fi
4996if test -z "$ac_cpp_err"; then
4997 :
4998else
4999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005000sed 's/^/| /' conftest.$ac_ext >&5
5001
John Criswell47fdd832003-07-14 16:52:07 +00005002 # Broken: fails on valid input.
5003continue
5004fi
5005rm -f conftest.err conftest.$ac_ext
5006
5007 # OK, works on sane cases. Now check whether non-existent headers
5008 # can be detected and how.
5009 cat >conftest.$ac_ext <<_ACEOF
5010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005016#include <ac_nonexistent.h>
5017_ACEOF
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005021 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 else
5029 ac_cpp_err=
5030 fi
5031else
5032 ac_cpp_err=yes
5033fi
5034if test -z "$ac_cpp_err"; then
5035 # Broken: success on invalid input.
5036continue
5037else
5038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005039sed 's/^/| /' conftest.$ac_ext >&5
5040
John Criswell47fdd832003-07-14 16:52:07 +00005041 # Passes both tests.
5042ac_preproc_ok=:
5043break
5044fi
5045rm -f conftest.err conftest.$ac_ext
5046
5047done
5048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049rm -f conftest.err conftest.$ac_ext
5050if $ac_preproc_ok; then
5051 break
John Criswell7a73b802003-06-30 21:59:07 +00005052fi
5053
John Criswell47fdd832003-07-14 16:52:07 +00005054 done
5055 ac_cv_prog_CXXCPP=$CXXCPP
5056
5057fi
5058 CXXCPP=$ac_cv_prog_CXXCPP
5059else
5060 ac_cv_prog_CXXCPP=$CXXCPP
5061fi
5062echo "$as_me:$LINENO: result: $CXXCPP" >&5
5063echo "${ECHO_T}$CXXCPP" >&6
5064ac_preproc_ok=false
5065for ac_cxx_preproc_warn_flag in '' yes
5066do
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
5073 cat >conftest.$ac_ext <<_ACEOF
5074#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#ifdef __STDC__
5081# include <limits.h>
5082#else
5083# include <assert.h>
5084#endif
John Criswell47fdd832003-07-14 16:52:07 +00005085 Syntax error
5086_ACEOF
5087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005090 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 else
5098 ac_cpp_err=
5099 fi
5100else
5101 ac_cpp_err=yes
5102fi
5103if test -z "$ac_cpp_err"; then
5104 :
5105else
5106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005107sed 's/^/| /' conftest.$ac_ext >&5
5108
John Criswell47fdd832003-07-14 16:52:07 +00005109 # Broken: fails on valid input.
5110continue
5111fi
5112rm -f conftest.err conftest.$ac_ext
5113
5114 # OK, works on sane cases. Now check whether non-existent headers
5115 # can be detected and how.
5116 cat >conftest.$ac_ext <<_ACEOF
5117#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005118/* confdefs.h. */
5119_ACEOF
5120cat confdefs.h >>conftest.$ac_ext
5121cat >>conftest.$ac_ext <<_ACEOF
5122/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005123#include <ac_nonexistent.h>
5124_ACEOF
5125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005128 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 else
5136 ac_cpp_err=
5137 fi
5138else
5139 ac_cpp_err=yes
5140fi
5141if test -z "$ac_cpp_err"; then
5142 # Broken: success on invalid input.
5143continue
5144else
5145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005146sed 's/^/| /' conftest.$ac_ext >&5
5147
John Criswell47fdd832003-07-14 16:52:07 +00005148 # Passes both tests.
5149ac_preproc_ok=:
5150break
5151fi
5152rm -f conftest.err conftest.$ac_ext
5153
5154done
5155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156rm -f conftest.err conftest.$ac_ext
5157if $ac_preproc_ok; then
5158 :
5159else
John Criswell0c38eaf2003-09-10 15:17:25 +00005160 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5161See \`config.log' for more details." >&5
5162echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5163See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005164 { (exit 1); exit 1; }; }
5165fi
5166
5167ac_ext=cc
5168ac_cpp='$CXXCPP $CPPFLAGS'
5169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5172
5173
5174ac_ext=f
5175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5178if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005179 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 +00005180 do
5181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185if test "${ac_cv_prog_F77+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 if test -n "$F77"; then
5189 ac_cv_prog_F77="$F77" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205fi
5206fi
5207F77=$ac_cv_prog_F77
5208if test -n "$F77"; then
5209 echo "$as_me:$LINENO: result: $F77" >&5
5210echo "${ECHO_T}$F77" >&6
5211else
5212 echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214fi
5215
5216 test -n "$F77" && break
5217 done
5218fi
5219if test -z "$F77"; then
5220 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005221 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 +00005222do
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224set dummy $ac_prog; ac_word=$2
5225echo "$as_me:$LINENO: checking for $ac_word" >&5
5226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 if test -n "$ac_ct_F77"; then
5231 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5232else
5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234for as_dir in $PATH
5235do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_ac_ct_F77="$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244done
5245done
5246
5247fi
5248fi
5249ac_ct_F77=$ac_cv_prog_ac_ct_F77
5250if test -n "$ac_ct_F77"; then
5251 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5252echo "${ECHO_T}$ac_ct_F77" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258 test -n "$ac_ct_F77" && break
5259done
5260
5261 F77=$ac_ct_F77
5262fi
5263
5264
5265# Provide some information about the compiler.
John Criswell55126592003-10-07 21:57:39 +00005266echo "$as_me:5266:" \
John Criswell47fdd832003-07-14 16:52:07 +00005267 "checking for Fortran 77 compiler version" >&5
5268ac_compiler=`set X $ac_compile; echo $2`
5269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5270 (eval $ac_compiler --version </dev/null >&5) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5275 (eval $ac_compiler -v </dev/null >&5) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }
5279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5280 (eval $ac_compiler -V </dev/null >&5) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284
5285# If we don't use `.F' as extension, the preprocessor is not run on the
5286# input file.
5287ac_save_ext=$ac_ext
5288ac_ext=F
5289echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5290echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5291if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 program main
5296#ifndef __GNUC__
5297 choke me
5298#endif
5299
5300 end
5301_ACEOF
5302rm -f conftest.$ac_objext
5303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -s conftest.$ac_objext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_compiler_gnu=yes
5315else
5316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005317sed 's/^/| /' conftest.$ac_ext >&5
5318
John Criswell47fdd832003-07-14 16:52:07 +00005319ac_compiler_gnu=no
5320fi
5321rm -f conftest.$ac_objext conftest.$ac_ext
5322ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5323
5324fi
5325echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5326echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5327ac_ext=$ac_save_ext
5328G77=`test $ac_compiler_gnu = yes && echo yes`
5329ac_test_FFLAGS=${FFLAGS+set}
5330ac_save_FFLAGS=$FFLAGS
5331FFLAGS=
5332echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5333echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5334if test "${ac_cv_prog_f77_g+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337 FFLAGS=-g
5338cat >conftest.$ac_ext <<_ACEOF
5339 program main
5340
5341 end
5342_ACEOF
5343rm -f conftest.$ac_objext
5344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_prog_f77_g=yes
5356else
5357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005358sed 's/^/| /' conftest.$ac_ext >&5
5359
John Criswell47fdd832003-07-14 16:52:07 +00005360ac_cv_prog_f77_g=no
5361fi
5362rm -f conftest.$ac_objext conftest.$ac_ext
5363
5364fi
5365echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5366echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5367if test "$ac_test_FFLAGS" = set; then
5368 FFLAGS=$ac_save_FFLAGS
5369elif test $ac_cv_prog_f77_g = yes; then
5370 if test "$G77" = yes; then
5371 FFLAGS="-g -O2"
5372 else
5373 FFLAGS="-g"
5374 fi
5375else
5376 if test "$G77" = yes; then
5377 FFLAGS="-O2"
5378 else
5379 FFLAGS=
5380 fi
5381fi
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392# find the maximum length of command line arguments
5393echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 i=0
5399 testring="ABCD"
5400
5401 case $build_os in
5402 msdosdjgpp*)
5403 # On DJGPP, this test can blow up pretty badly due to problems in libc
5404 # (any single argument exceeding 2000 bytes causes a buffer overrun
5405 # during glob expansion). Even if it were fixed, the result of this
5406 # check would be larger than it should be.
5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5408 ;;
5409
5410 gnu*)
5411 # Under GNU Hurd, this test is not required because there is
5412 # no limit to the length of command line arguments.
5413 # Libtool will interpret -1 as no limit whatsoever
5414 lt_cv_sys_max_cmd_len=-1;
5415 ;;
5416
5417 cygwin* | mingw*)
5418 # On Win9x/ME, this test blows up -- it succeeds, but takes
5419 # about 5 minutes as the teststring grows exponentially.
5420 # Worse, since 9x/ME are not pre-emptively multitasking,
5421 # you end up with a "frozen" computer, even though with patience
5422 # the test eventually succeeds (with a max line length of 256k).
5423 # Instead, let's just punt: use the minimum linelength reported by
5424 # all of the supported platforms: 8192 (on NT/2K/XP).
5425 lt_cv_sys_max_cmd_len=8192;
5426 ;;
5427
5428 *)
5429 # If test is not a shell built-in, we'll probably end up computing a
5430 # maximum length that is only half of the actual maximum length, but
5431 # we can't tell.
5432 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5433 = "XX$testring") >/dev/null 2>&1 &&
5434 new_result=`expr "X$testring" : ".*" 2>&1` &&
5435 lt_cv_sys_max_cmd_len=$new_result &&
5436 test $i != 17 # 1/2 MB should be enough
5437 do
5438 i=`expr $i + 1`
5439 testring=$testring$testring
5440 done
5441 testring=
5442 # Add a significant safety factor because C++ compilers can tack on massive
5443 # amounts of additional arguments before passing them to the linker.
5444 # It appears as though 1/2 is a usable value.
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5446 ;;
5447 esac
5448
5449fi
5450
5451if test -n $lt_cv_sys_max_cmd_len ; then
5452 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5453echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5454else
5455 echo "$as_me:$LINENO: result: none" >&5
5456echo "${ECHO_T}none" >&6
5457fi
5458
5459
5460
5461
5462# Check for command to grab the raw symbol name followed by C symbol from nm.
5463echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5464echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5465if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468
5469# These are sane defaults that work on at least a few old systems.
5470# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5471
5472# Character class describing NM global symbol codes.
5473symcode='[BCDEGRST]'
5474
5475# Regexp to match symbols that can be accessed directly from C.
5476sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5477
5478# Transform the above into a raw symbol and a C symbol.
5479symxfrm='\1 \2\3 \3'
5480
5481# Transform an extracted symbol line into a proper C declaration
5482lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5483
5484# Transform an extracted symbol line into symbol name and symbol address
5485lt_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'"
5486
5487# Define system-specific variables.
5488case $host_os in
5489aix*)
5490 symcode='[BCDT]'
5491 ;;
5492cygwin* | mingw* | pw32*)
5493 symcode='[ABCDGISTW]'
5494 ;;
5495hpux*) # Its linker distinguishes data from code symbols
5496 if test "$host_cpu" = ia64; then
5497 symcode='[ABCDEGRST]'
5498 fi
5499 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5500 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'"
5501 ;;
5502irix* | nonstopux*)
5503 symcode='[BCDEGRST]'
5504 ;;
5505osf*)
5506 symcode='[BCDEGQRST]'
5507 ;;
5508solaris* | sysv5*)
5509 symcode='[BDT]'
5510 ;;
5511sysv4)
5512 symcode='[DFNSTU]'
5513 ;;
5514esac
5515
5516# Handle CRLF in mingw tool chain
5517opt_cr=
5518case $build_os in
5519mingw*)
5520 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5521 ;;
5522esac
5523
5524# If we're using GNU nm, then use its standard symbol codes.
5525case `$NM -V 2>&1` in
5526*GNU* | *'with BFD'*)
5527 symcode='[ABCDGISTW]' ;;
5528esac
5529
5530# Try without a prefix undercore, then with it.
5531for ac_symprfx in "" "_"; do
5532
5533 # Write the raw and C identifiers.
5534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5535
5536 # Check to see that the pipe works correctly.
5537 pipe_works=no
5538
5539 rm -f conftest*
5540 cat > conftest.$ac_ext <<EOF
5541#ifdef __cplusplus
5542extern "C" {
5543#endif
5544char nm_test_var;
5545void nm_test_func(){}
5546#ifdef __cplusplus
5547}
5548#endif
5549int main(){nm_test_var='a';nm_test_func();return(0);}
5550EOF
5551
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; then
5557 # Now try to grab the symbols.
5558 nlist=conftest.nm
5559 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5560 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && test -s "$nlist"; then
5564 # Try sorting and uniquifying the output.
5565 if sort "$nlist" | uniq > "$nlist"T; then
5566 mv -f "$nlist"T "$nlist"
5567 else
5568 rm -f "$nlist"T
5569 fi
5570
5571 # Make sure that we snagged all the symbols we need.
5572 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5573 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5574 cat <<EOF > conftest.$ac_ext
5575#ifdef __cplusplus
5576extern "C" {
5577#endif
5578
5579EOF
5580 # Now generate the symbol file.
5581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5582
5583 cat <<EOF >> conftest.$ac_ext
5584#if defined (__STDC__) && __STDC__
5585# define lt_ptr_t void *
5586#else
5587# define lt_ptr_t char *
5588# define const
5589#endif
5590
5591/* The mapping between symbol names and symbols. */
5592const struct {
5593 const char *name;
5594 lt_ptr_t address;
5595}
5596lt_preloaded_symbols[] =
5597{
5598EOF
5599 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5600 cat <<\EOF >> conftest.$ac_ext
5601 {0, (lt_ptr_t) 0}
5602};
5603
5604#ifdef __cplusplus
5605}
5606#endif
5607EOF
5608 # Now try linking the two files.
5609 mv conftest.$ac_objext conftstm.$ac_objext
5610 lt_save_LIBS="$LIBS"
5611 lt_save_CFLAGS="$CFLAGS"
5612 LIBS="conftstm.$ac_objext"
5613 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5619 pipe_works=yes
5620 fi
5621 LIBS="$lt_save_LIBS"
5622 CFLAGS="$lt_save_CFLAGS"
5623 else
5624 echo "cannot find nm_test_func in $nlist" >&5
5625 fi
5626 else
5627 echo "cannot find nm_test_var in $nlist" >&5
5628 fi
5629 else
5630 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5631 fi
5632 else
5633 echo "$progname: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5635 fi
5636 rm -f conftest* conftst*
5637
5638 # Do not use the global_symbol_pipe unless it works.
5639 if test "$pipe_works" = yes; then
5640 break
5641 else
5642 lt_cv_sys_global_symbol_pipe=
5643 fi
5644done
5645
5646fi
5647
5648if test -z "$lt_cv_sys_global_symbol_pipe"; then
5649 lt_cv_sys_global_symbol_to_cdecl=
5650fi
5651if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5652 echo "$as_me:$LINENO: result: failed" >&5
5653echo "${ECHO_T}failed" >&6
5654else
5655 echo "$as_me:$LINENO: result: ok" >&5
5656echo "${ECHO_T}ok" >&6
5657fi
5658
5659echo "$as_me:$LINENO: checking for objdir" >&5
5660echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5661if test "${lt_cv_objdir+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664 rm -f .libs 2>/dev/null
5665mkdir .libs 2>/dev/null
5666if test -d .libs; then
5667 lt_cv_objdir=.libs
5668else
5669 # MS-DOS does not allow filenames that begin with a dot.
5670 lt_cv_objdir=_libs
5671fi
5672rmdir .libs 2>/dev/null
5673fi
5674echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5675echo "${ECHO_T}$lt_cv_objdir" >&6
5676objdir=$lt_cv_objdir
5677
5678
5679
5680
5681
5682case $host_os in
5683aix3*)
5684 # AIX sometimes has problems with the GCC collect2 program. For some
5685 # reason, if we set the COLLECT_NAMES environment variable, the problems
5686 # vanish in a puff of smoke.
5687 if test "X${COLLECT_NAMES+set}" != Xset; then
5688 COLLECT_NAMES=
5689 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005690 fi
5691 ;;
5692esac
5693
John Criswell47fdd832003-07-14 16:52:07 +00005694# Sed substitution that helps us do robust quoting. It backslashifies
5695# metacharacters that are still active within double-quoted strings.
5696Xsed='sed -e s/^X//'
5697sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5698
5699# Same as above, but do not quote variable references.
5700double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5701
5702# Sed substitution to delay expansion of an escaped shell variable in a
5703# double_quote_subst'ed string.
5704delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5705
5706# Sed substitution to avoid accidental globbing in evaled expressions
5707no_glob_subst='s/\*/\\\*/g'
5708
5709# Constants:
5710rm="rm -f"
5711
5712# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005713default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005714can_build_shared=yes
5715
5716# All known linkers require a `.a' archive for static linking (except M$VC,
5717# which needs '.lib').
5718libext=a
5719ltmain="$ac_aux_dir/ltmain.sh"
5720ofile="$default_ofile"
5721with_gnu_ld="$lt_cv_prog_gnu_ld"
5722
5723if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}ar; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_AR+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731 if test -n "$AR"; then
5732 ac_cv_prog_AR="$AR" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_AR="${ac_tool_prefix}ar"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745done
5746done
5747
5748fi
5749fi
5750AR=$ac_cv_prog_AR
5751if test -n "$AR"; then
5752 echo "$as_me:$LINENO: result: $AR" >&5
5753echo "${ECHO_T}$AR" >&6
5754else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757fi
5758
5759fi
5760if test -z "$ac_cv_prog_AR"; then
5761 ac_ct_AR=$AR
5762 # Extract the first word of "ar", so it can be a program name with args.
5763set dummy ar; ac_word=$2
5764echo "$as_me:$LINENO: checking for $ac_word" >&5
5765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769 if test -n "$ac_ct_AR"; then
5770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_AR="ar"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784done
5785
5786 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5787fi
5788fi
5789ac_ct_AR=$ac_cv_prog_ac_ct_AR
5790if test -n "$ac_ct_AR"; then
5791 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5792echo "${ECHO_T}$ac_ct_AR" >&6
5793else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798 AR=$ac_ct_AR
5799else
5800 AR="$ac_cv_prog_AR"
5801fi
5802
John Criswell7a73b802003-06-30 21:59:07 +00005803if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806echo "$as_me:$LINENO: checking for $ac_word" >&5
5807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808if test "${ac_cv_prog_RANLIB+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811 if test -n "$RANLIB"; then
5812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825done
5826done
5827
5828fi
5829fi
5830RANLIB=$ac_cv_prog_RANLIB
5831if test -n "$RANLIB"; then
5832 echo "$as_me:$LINENO: result: $RANLIB" >&5
5833echo "${ECHO_T}$RANLIB" >&6
5834else
5835 echo "$as_me:$LINENO: result: no" >&5
5836echo "${ECHO_T}no" >&6
5837fi
5838
5839fi
5840if test -z "$ac_cv_prog_RANLIB"; then
5841 ac_ct_RANLIB=$RANLIB
5842 # Extract the first word of "ranlib", so it can be a program name with args.
5843set dummy ranlib; ac_word=$2
5844echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 if test -n "$ac_ct_RANLIB"; then
5850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_RANLIB="ranlib"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864done
5865
5866 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5867fi
5868fi
5869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5870if test -n "$ac_ct_RANLIB"; then
5871 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5872echo "${ECHO_T}$ac_ct_RANLIB" >&6
5873else
5874 echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6
5876fi
5877
5878 RANLIB=$ac_ct_RANLIB
5879else
5880 RANLIB="$ac_cv_prog_RANLIB"
5881fi
5882
5883if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5885set dummy ${ac_tool_prefix}strip; ac_word=$2
5886echo "$as_me:$LINENO: checking for $ac_word" >&5
5887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888if test "${ac_cv_prog_STRIP+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890else
5891 if test -n "$STRIP"; then
5892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5893else
5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895for as_dir in $PATH
5896do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905done
5906done
5907
5908fi
5909fi
5910STRIP=$ac_cv_prog_STRIP
5911if test -n "$STRIP"; then
5912 echo "$as_me:$LINENO: result: $STRIP" >&5
5913echo "${ECHO_T}$STRIP" >&6
5914else
5915 echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
5917fi
5918
5919fi
5920if test -z "$ac_cv_prog_STRIP"; then
5921 ac_ct_STRIP=$STRIP
5922 # Extract the first word of "strip", so it can be a program name with args.
5923set dummy strip; ac_word=$2
5924echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 if test -n "$ac_ct_STRIP"; then
5930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_STRIP="strip"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945
5946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5947fi
5948fi
5949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5950if test -n "$ac_ct_STRIP"; then
5951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5952echo "${ECHO_T}$ac_ct_STRIP" >&6
5953else
5954 echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956fi
5957
5958 STRIP=$ac_ct_STRIP
5959else
5960 STRIP="$ac_cv_prog_STRIP"
5961fi
5962
5963
John Criswell7a73b802003-06-30 21:59:07 +00005964old_CC="$CC"
5965old_CFLAGS="$CFLAGS"
5966
5967# Set sane defaults for various variables
5968test -z "$AR" && AR=ar
5969test -z "$AR_FLAGS" && AR_FLAGS=cru
5970test -z "$AS" && AS=as
5971test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005972test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005973test -z "$DLLTOOL" && DLLTOOL=dlltool
5974test -z "$LD" && LD=ld
5975test -z "$LN_S" && LN_S="ln -s"
5976test -z "$MAGIC_CMD" && MAGIC_CMD=file
5977test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005978test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005979test -z "$OBJDUMP" && OBJDUMP=objdump
5980test -z "$RANLIB" && RANLIB=:
5981test -z "$STRIP" && STRIP=:
5982test -z "$ac_objext" && ac_objext=o
5983
John Criswell7a73b802003-06-30 21:59:07 +00005984# Determine commands to create old-style static archives.
5985old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5986old_postinstall_cmds='chmod 644 $oldlib'
5987old_postuninstall_cmds=
5988
5989if test -n "$RANLIB"; then
5990 case $host_os in
5991 openbsd*)
5992 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5993 ;;
5994 *)
5995 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5996 ;;
5997 esac
5998 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5999fi
6000
John Criswell47fdd832003-07-14 16:52:07 +00006001# Only perform the check for file, if the check method requires it
6002case $deplibs_check_method in
6003file_magic*)
6004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6005 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6006echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6007if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006009else
John Criswell47fdd832003-07-14 16:52:07 +00006010 case $MAGIC_CMD in
6011[\\/*] | ?:[\\/]*)
6012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6013 ;;
6014*)
6015 lt_save_MAGIC_CMD="$MAGIC_CMD"
6016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6018 for ac_dir in $ac_dummy; do
6019 IFS="$lt_save_ifs"
6020 test -z "$ac_dir" && ac_dir=.
6021 if test -f $ac_dir/${ac_tool_prefix}file; then
6022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6023 if test -n "$file_magic_test_file"; then
6024 case $deplibs_check_method in
6025 "file_magic "*)
6026 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6029 $EGREP "$file_magic_regex" > /dev/null; then
6030 :
6031 else
6032 cat <<EOF 1>&2
6033
6034*** Warning: the command libtool uses to detect shared libraries,
6035*** $file_magic_cmd, produces output that libtool cannot recognize.
6036*** The result is that libtool may fail to recognize shared libraries
6037*** as such. This will affect the creation of libtool libraries that
6038*** depend on shared libraries, but programs linked with such libtool
6039*** libraries will work regardless of this problem. Nevertheless, you
6040*** may want to report the problem to your system manager and/or to
6041*** bug-libtool@gnu.org
6042
6043EOF
6044 fi ;;
6045 esac
6046 fi
6047 break
6048 fi
6049 done
6050 IFS="$lt_save_ifs"
6051 MAGIC_CMD="$lt_save_MAGIC_CMD"
6052 ;;
6053esac
John Criswell7a73b802003-06-30 21:59:07 +00006054fi
John Criswell7a73b802003-06-30 21:59:07 +00006055
John Criswell47fdd832003-07-14 16:52:07 +00006056MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057if test -n "$MAGIC_CMD"; then
6058 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6059echo "${ECHO_T}$MAGIC_CMD" >&6
6060else
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063fi
John Criswell7a73b802003-06-30 21:59:07 +00006064
John Criswell47fdd832003-07-14 16:52:07 +00006065if test -z "$lt_cv_path_MAGIC_CMD"; then
6066 if test -n "$ac_tool_prefix"; then
6067 echo "$as_me:$LINENO: checking for file" >&5
6068echo $ECHO_N "checking for file... $ECHO_C" >&6
6069if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 case $MAGIC_CMD in
6073[\\/*] | ?:[\\/]*)
6074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6075 ;;
6076*)
6077 lt_save_MAGIC_CMD="$MAGIC_CMD"
6078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6080 for ac_dir in $ac_dummy; do
6081 IFS="$lt_save_ifs"
6082 test -z "$ac_dir" && ac_dir=.
6083 if test -f $ac_dir/file; then
6084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6085 if test -n "$file_magic_test_file"; then
6086 case $deplibs_check_method in
6087 "file_magic "*)
6088 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6091 $EGREP "$file_magic_regex" > /dev/null; then
6092 :
6093 else
6094 cat <<EOF 1>&2
6095
6096*** Warning: the command libtool uses to detect shared libraries,
6097*** $file_magic_cmd, produces output that libtool cannot recognize.
6098*** The result is that libtool may fail to recognize shared libraries
6099*** as such. This will affect the creation of libtool libraries that
6100*** depend on shared libraries, but programs linked with such libtool
6101*** libraries will work regardless of this problem. Nevertheless, you
6102*** may want to report the problem to your system manager and/or to
6103*** bug-libtool@gnu.org
6104
6105EOF
6106 fi ;;
6107 esac
6108 fi
6109 break
6110 fi
6111 done
6112 IFS="$lt_save_ifs"
6113 MAGIC_CMD="$lt_save_MAGIC_CMD"
6114 ;;
6115esac
6116fi
6117
6118MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119if test -n "$MAGIC_CMD"; then
6120 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6121echo "${ECHO_T}$MAGIC_CMD" >&6
6122else
6123 echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125fi
6126
6127 else
6128 MAGIC_CMD=:
6129 fi
6130fi
6131
6132 fi
6133 ;;
6134esac
6135
6136enable_dlopen=no
6137enable_win32_dll=no
6138
6139# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6140if test "${enable_libtool_lock+set}" = set; then
6141 enableval="$enable_libtool_lock"
6142
6143fi;
6144test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6145
John Criswell7a73b802003-06-30 21:59:07 +00006146
6147# Check whether --with-pic or --without-pic was given.
6148if test "${with_pic+set}" = set; then
6149 withval="$with_pic"
6150 pic_mode="$withval"
6151else
6152 pic_mode=default
6153fi;
6154test -z "$pic_mode" && pic_mode=default
6155
John Criswell47fdd832003-07-14 16:52:07 +00006156# Use C for the default configuration in the libtool script
6157tagname=
6158lt_save_CC="$CC"
6159ac_ext=c
6160ac_cpp='$CPP $CPPFLAGS'
6161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164
6165
6166# Source file extension for C test sources.
6167ac_ext=c
6168
6169# Object file extension for compiled C test sources.
6170objext=o
6171objext=$objext
6172
6173# Code to be used in simple compile tests
6174lt_simple_compile_test_code="int some_variable = 0;\n"
6175
6176# Code to be used in simple link tests
6177lt_simple_link_test_code='int main(){return(0);}\n'
6178
6179
6180# If no C compiler was specified, use CC.
6181LTCC=${LTCC-"$CC"}
6182
6183# Allow CC to be a program name with arguments.
6184compiler=$CC
6185
6186
6187#
6188# Check for any special shared library compilation flags.
6189#
6190lt_prog_cc_shlib=
6191if test "$GCC" = no; then
6192 case $host_os in
6193 sco3.2v5*)
6194 lt_prog_cc_shlib='-belf'
6195 ;;
6196 esac
6197fi
6198if test -n "$lt_prog_cc_shlib"; then
6199 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6200echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6201 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6202 else
6203 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6204echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6205 lt_cv_prog_cc_can_build_shared=no
6206 fi
6207fi
6208
6209
6210#
6211# Check to make sure the static flag actually works.
6212#
6213echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6214echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6215if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
John Criswell47fdd832003-07-14 16:52:07 +00006218 lt_prog_compiler_static_works=no
6219 save_LDFLAGS="$LDFLAGS"
6220 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6221 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6223 # The compiler can only warn and ignore the option if not recognized
6224 # So say no if there are warnings
6225 if test -s conftest.err; then
6226 # Append any errors to the config.log.
6227 cat conftest.err 1>&5
6228 else
6229 lt_prog_compiler_static_works=yes
6230 fi
6231 fi
6232 $rm conftest*
6233 LDFLAGS="$save_LDFLAGS"
6234
6235fi
6236echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6237echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6238
6239if test x"$lt_prog_compiler_static_works" = xyes; then
6240 :
6241else
6242 lt_prog_compiler_static=
6243fi
6244
6245
6246
6247## CAVEAT EMPTOR:
6248## There is no encapsulation within the following macros, do not change
6249## the running order or otherwise move them around unless you know exactly
6250## what you are doing...
6251
6252lt_prog_compiler_no_builtin_flag=
6253
6254if test "$GCC" = yes; then
6255 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6256
6257 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6258echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6259if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262 lt_cv_prog_compiler_rtti_exceptions=no
6263 ac_outfile=conftest.$ac_objext
6264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6265 lt_compiler_flag="-fno-rtti -fno-exceptions"
6266 # Insert the option either (1) after the last *FLAGS variable, or
6267 # (2) before a word containing "conftest.", or (3) at the end.
6268 # Note that $ac_compile itself does not contain backslashes and begins
6269 # with a dollar sign (not a hyphen), so the echo should work correctly.
6270 # The option is referenced via a variable to avoid confusing sed.
6271 lt_compile=`echo "$ac_compile" | $SED \
6272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6274 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +00006275 (eval echo "\"\$as_me:6275: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006276 (eval "$lt_compile" 2>conftest.err)
6277 ac_status=$?
6278 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +00006279 echo "$as_me:6279: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006280 if (exit $ac_status) && test -s "$ac_outfile"; then
6281 # The compiler can only warn and ignore the option if not recognized
6282 # So say no if there are warnings
6283 if test ! -s conftest.err; then
6284 lt_cv_prog_compiler_rtti_exceptions=yes
6285 fi
6286 fi
6287 $rm conftest*
6288
6289fi
6290echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6291echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6292
6293if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6294 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6295else
6296 :
6297fi
6298
6299fi
6300
6301lt_prog_compiler_wl=
6302lt_prog_compiler_pic=
6303lt_prog_compiler_static=
6304
6305echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6306echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006307
6308 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006309 lt_prog_compiler_wl='-Wl,'
6310 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006311
6312 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006313 aix*)
6314 # All AIX code is PIC.
6315 if test "$host_cpu" = ia64; then
6316 # AIX 5 now supports IA64 processor
6317 lt_prog_compiler_static='-Bstatic'
6318 fi
John Criswell7a73b802003-06-30 21:59:07 +00006319 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006320
John Criswell7a73b802003-06-30 21:59:07 +00006321 amigaos*)
6322 # FIXME: we need at least 68020 code to build shared libraries, but
6323 # adding the `-m68020' flag to GCC prevents building anything better,
6324 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006325 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006326 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006327
6328 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006329 # PIC is the default for these OSes.
6330 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006331
6332 mingw* | pw32* | os2*)
6333 # This hack is so that the source file can tell whether it is being
6334 # built for inclusion in a dll (and should export symbols for example).
6335 lt_prog_compiler_pic='-DDLL_EXPORT'
6336 ;;
6337
John Criswell7a73b802003-06-30 21:59:07 +00006338 darwin* | rhapsody*)
6339 # PIC is the default on this platform
6340 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006341 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006342 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006343
6344 msdosdjgpp*)
6345 # Just because we use GCC doesn't mean we suddenly get shared libraries
6346 # on systems that don't support them.
6347 lt_prog_compiler_can_build_shared=no
6348 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006349 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006350
John Criswell7a73b802003-06-30 21:59:07 +00006351 sysv4*MP*)
6352 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006353 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006354 fi
6355 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006356
6357 hpux*)
6358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6359 # not for PA HP-UX.
6360 case "$host_cpu" in
6361 hppa*64*|ia64*)
6362 # +Z the default
6363 ;;
6364 *)
6365 lt_prog_compiler_pic='-fPIC'
6366 ;;
6367 esac
6368 ;;
6369
John Criswell7a73b802003-06-30 21:59:07 +00006370 *)
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006372 ;;
6373 esac
6374 else
John Criswell47fdd832003-07-14 16:52:07 +00006375 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006376 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006377 aix*)
6378 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006379 if test "$host_cpu" = ia64; then
6380 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006381 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006382 else
John Criswell47fdd832003-07-14 16:52:07 +00006383 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006384 fi
6385 ;;
6386
John Criswell47fdd832003-07-14 16:52:07 +00006387 mingw* | pw32* | os2*)
6388 # This hack is so that the source file can tell whether it is being
6389 # built for inclusion in a dll (and should export symbols for example).
6390 lt_prog_compiler_pic='-DDLL_EXPORT'
6391 ;;
6392
John Criswell7a73b802003-06-30 21:59:07 +00006393 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006394 lt_prog_compiler_wl='-Wl,'
6395 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396 # not for PA HP-UX.
6397 case "$host_cpu" in
6398 hppa*64*|ia64*)
6399 # +Z the default
6400 ;;
6401 *)
6402 lt_prog_compiler_pic='+Z'
6403 ;;
6404 esac
6405 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6406 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006407 ;;
6408
John Criswell47fdd832003-07-14 16:52:07 +00006409 irix5* | irix6* | nonstopux*)
6410 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006411 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006412 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006413 ;;
6414
6415 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006416 lt_prog_compiler_pic='-KPIC'
6417 lt_prog_compiler_static='-Bstatic'
6418 ;;
6419
6420 linux*)
6421 case $CC in
6422 icc|ecc)
6423 lt_prog_compiler_wl='-Wl,'
6424 lt_prog_compiler_pic='-KPIC'
6425 lt_prog_compiler_static='-static'
6426 ;;
6427 ccc)
6428 lt_prog_compiler_wl='-Wl,'
6429 # All Alpha code is PIC.
6430 lt_prog_compiler_static='-non_shared'
6431 ;;
6432 esac
John Criswell7a73b802003-06-30 21:59:07 +00006433 ;;
6434
6435 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006436 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006437 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006438 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006439 ;;
6440
6441 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_pic='-Kpic'
6443 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006444 ;;
6445
6446 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006447 lt_prog_compiler_wl='-Wl,'
6448 lt_prog_compiler_pic='-KPIC'
6449 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006450 ;;
6451
6452 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006453 lt_prog_compiler_wl='-Qoption ld '
6454 lt_prog_compiler_pic='-PIC'
6455 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006456 ;;
6457
6458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006459 lt_prog_compiler_wl='-Wl,'
6460 lt_prog_compiler_pic='-KPIC'
6461 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006462 ;;
6463
6464 sysv4*MP*)
6465 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006466 lt_prog_compiler_pic='-Kconform_pic'
6467 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006468 fi
6469 ;;
6470
John Criswell47fdd832003-07-14 16:52:07 +00006471 uts4*)
6472 lt_prog_compiler_pic='-pic'
6473 lt_prog_compiler_static='-Bstatic'
6474 ;;
6475
John Criswell7a73b802003-06-30 21:59:07 +00006476 *)
John Criswell47fdd832003-07-14 16:52:07 +00006477 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006478 ;;
6479 esac
6480 fi
6481
John Criswell47fdd832003-07-14 16:52:07 +00006482echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6483echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006484
John Criswell47fdd832003-07-14 16:52:07 +00006485#
6486# Check to make sure the PIC flag actually works.
6487#
6488if test -n "$lt_prog_compiler_pic"; then
6489 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6490echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6491if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
John Criswell47fdd832003-07-14 16:52:07 +00006494 lt_prog_compiler_pic_works=no
6495 ac_outfile=conftest.$ac_objext
6496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6498 # Insert the option either (1) after the last *FLAGS variable, or
6499 # (2) before a word containing "conftest.", or (3) at the end.
6500 # Note that $ac_compile itself does not contain backslashes and begins
6501 # with a dollar sign (not a hyphen), so the echo should work correctly.
6502 # The option is referenced via a variable to avoid confusing sed.
6503 lt_compile=`echo "$ac_compile" | $SED \
6504 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6506 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +00006507 (eval echo "\"\$as_me:6507: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006508 (eval "$lt_compile" 2>conftest.err)
6509 ac_status=$?
6510 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +00006511 echo "$as_me:6511: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006512 if (exit $ac_status) && test -s "$ac_outfile"; then
6513 # The compiler can only warn and ignore the option if not recognized
6514 # So say no if there are warnings
6515 if test ! -s conftest.err; then
6516 lt_prog_compiler_pic_works=yes
6517 fi
6518 fi
6519 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006520
John Criswell47fdd832003-07-14 16:52:07 +00006521fi
6522echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6523echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006524
John Criswell47fdd832003-07-14 16:52:07 +00006525if test x"$lt_prog_compiler_pic_works" = xyes; then
6526 case $lt_prog_compiler_pic in
6527 "" | " "*) ;;
6528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6529 esac
John Criswell7a73b802003-06-30 21:59:07 +00006530else
John Criswell47fdd832003-07-14 16:52:07 +00006531 lt_prog_compiler_pic=
6532 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006533fi
6534
John Criswell7a73b802003-06-30 21:59:07 +00006535fi
John Criswell47fdd832003-07-14 16:52:07 +00006536case "$host_os" in
6537 # For platforms which do not support PIC, -DPIC is meaningless:
6538 *djgpp*)
6539 lt_prog_compiler_pic=
6540 ;;
6541 *)
6542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6543 ;;
6544esac
John Criswell7a73b802003-06-30 21:59:07 +00006545
John Criswell7a73b802003-06-30 21:59:07 +00006546echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6547echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006548if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
John Criswell47fdd832003-07-14 16:52:07 +00006551 lt_cv_prog_compiler_c_o=no
6552 $rm -r conftest 2>/dev/null
6553 mkdir conftest
6554 cd conftest
6555 mkdir out
6556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006557
John Criswell47fdd832003-07-14 16:52:07 +00006558 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6559 # that will create temporary files in the current directory regardless of
6560 # the output directory. Thus, making CWD read-only will cause this test
6561 # to fail, enabling locking or at least warning the user not to do parallel
6562 # builds.
6563 chmod -w .
6564
6565 lt_compiler_flag="-o out/conftest2.$ac_objext"
6566 # Insert the option either (1) after the last *FLAGS variable, or
6567 # (2) before a word containing "conftest.", or (3) at the end.
6568 # Note that $ac_compile itself does not contain backslashes and begins
6569 # with a dollar sign (not a hyphen), so the echo should work correctly.
6570 lt_compile=`echo "$ac_compile" | $SED \
6571 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6573 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +00006574 (eval echo "\"\$as_me:6574: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006575 (eval "$lt_compile" 2>out/conftest.err)
6576 ac_status=$?
6577 cat out/conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +00006578 echo "$as_me:6578: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6580 then
6581 # The compiler can only warn and ignore the option if not recognized
6582 # So say no if there are warnings
6583 if test ! -s out/conftest.err; then
6584 lt_cv_prog_compiler_c_o=yes
6585 fi
6586 fi
6587 chmod u+w .
6588 $rm conftest* out/*
6589 rmdir out
6590 cd ..
6591 rmdir conftest
6592 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006593
6594fi
John Criswell47fdd832003-07-14 16:52:07 +00006595echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6596echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006597
John Criswell7a73b802003-06-30 21:59:07 +00006598
John Criswell7a73b802003-06-30 21:59:07 +00006599hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006600if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006601 # do not overwrite the value of need_locks provided by the user
6602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6603echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6604 hard_links=yes
6605 $rm conftest*
6606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607 touch conftest.a
6608 ln conftest.a conftest.b 2>&5 || hard_links=no
6609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6610 echo "$as_me:$LINENO: result: $hard_links" >&5
6611echo "${ECHO_T}$hard_links" >&6
6612 if test "$hard_links" = no; then
6613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6614echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6615 need_locks=warn
6616 fi
6617else
6618 need_locks=no
6619fi
John Criswell7a73b802003-06-30 21:59:07 +00006620
John Criswell47fdd832003-07-14 16:52:07 +00006621echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6622echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6623
6624 runpath_var=
6625 allow_undefined_flag=
6626 enable_shared_with_static_runtimes=no
6627 archive_cmds=
6628 archive_expsym_cmds=
6629 old_archive_From_new_cmds=
6630 old_archive_from_expsyms_cmds=
6631 export_dynamic_flag_spec=
6632 whole_archive_flag_spec=
6633 thread_safe_flag_spec=
6634 hardcode_libdir_flag_spec=
6635 hardcode_libdir_flag_spec_ld=
6636 hardcode_libdir_separator=
6637 hardcode_direct=no
6638 hardcode_minus_L=no
6639 hardcode_shlibpath_var=unsupported
6640 link_all_deplibs=unknown
6641 hardcode_automatic=no
6642 module_cmds=
6643 module_expsym_cmds=
6644 always_export_symbols=no
6645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6646 # include_expsyms should be a list of space-separated symbols to be *always*
6647 # included in the symbol list
6648 include_expsyms=
6649 # exclude_expsyms can be an extended regexp of symbols to exclude
6650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6652 # as well as any symbol that contains `d'.
6653 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6655 # platforms (ab)use it in PIC code, but their linkers get confused if
6656 # the symbol is explicitly referenced. Since portable code cannot
6657 # rely on this symbol name, it's probably fine to never include it in
6658 # preloaded symbol tables.
6659 extract_expsyms_cmds=
6660
6661 case $host_os in
6662 cygwin* | mingw* | pw32*)
6663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6664 # When not using gcc, we currently assume that we are using
6665 # Microsoft Visual C++.
6666 if test "$GCC" != yes; then
6667 with_gnu_ld=no
6668 fi
6669 ;;
6670 openbsd*)
6671 with_gnu_ld=no
6672 ;;
6673 esac
6674
6675 ld_shlibs=yes
6676 if test "$with_gnu_ld" = yes; then
6677 # If archive_cmds runs LD, not CC, wlarc should be empty
6678 wlarc='${wl}'
6679
6680 # See if GNU ld supports shared libraries.
6681 case $host_os in
6682 aix3* | aix4* | aix5*)
6683 # On AIX/PPC, the GNU linker is very broken
6684 if test "$host_cpu" != ia64; then
6685 ld_shlibs=no
6686 cat <<EOF 1>&2
6687
6688*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6689*** to be unable to reliably create shared libraries on AIX.
6690*** Therefore, libtool is disabling shared libraries support. If you
6691*** really care for shared libraries, you may want to modify your PATH
6692*** so that a non-GNU linker is found, and then restart.
6693
6694EOF
6695 fi
6696 ;;
6697
6698 amigaos*)
6699 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)'
6700 hardcode_libdir_flag_spec='-L$libdir'
6701 hardcode_minus_L=yes
6702
6703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6704 # that the semantics of dynamic libraries on AmigaOS, at least up
6705 # to version 4, is to share data among multiple programs linked
6706 # with the same dynamic library. Since this doesn't match the
6707 # behavior of shared libraries on other platforms, we can't use
6708 # them.
6709 ld_shlibs=no
6710 ;;
6711
6712 beos*)
6713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6714 allow_undefined_flag=unsupported
6715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6716 # support --undefined. This deserves some investigation. FIXME
6717 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718 else
6719 ld_shlibs=no
6720 fi
6721 ;;
6722
6723 cygwin* | mingw* | pw32*)
6724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6725 # as there is no search path for DLLs.
6726 hardcode_libdir_flag_spec='-L$libdir'
6727 allow_undefined_flag=unsupported
6728 always_export_symbols=no
6729 enable_shared_with_static_runtimes=yes
6730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6731
6732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6734 # If the export-symbols file already is a .def file (1st line
6735 # is EXPORTS), use it as is; otherwise, prepend...
6736 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6737 cp $export_symbols $output_objdir/$soname.def;
6738 else
6739 echo EXPORTS > $output_objdir/$soname.def;
6740 cat $export_symbols >> $output_objdir/$soname.def;
6741 fi~
6742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6743 else
6744 ld_shlibs=no
6745 fi
6746 ;;
6747
6748 netbsd*)
6749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6751 wlarc=
6752 else
6753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755 fi
6756 ;;
6757
6758 solaris* | sysv5*)
6759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6760 ld_shlibs=no
6761 cat <<EOF 1>&2
6762
6763*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764*** create shared libraries on Solaris systems. Therefore, libtool
6765*** is disabling shared libraries support. We urge you to upgrade GNU
6766*** binutils to release 2.9.1 or newer. Another option is to modify
6767*** your PATH or compiler configuration so that the native linker is
6768*** used, and then restart.
6769
6770EOF
6771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6774 else
6775 ld_shlibs=no
6776 fi
6777 ;;
6778
6779 sunos4*)
6780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6781 wlarc=
6782 hardcode_direct=yes
6783 hardcode_shlibpath_var=no
6784 ;;
6785
6786 *)
6787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6790 else
6791 ld_shlibs=no
6792 fi
6793 ;;
6794 esac
6795
6796 if test "$ld_shlibs" = yes; then
6797 runpath_var=LD_RUN_PATH
6798 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6799 export_dynamic_flag_spec='${wl}--export-dynamic'
6800 # ancient GNU ld didn't support --whole-archive et. al.
6801 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6802 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6803 else
6804 whole_archive_flag_spec=
6805 fi
6806 fi
6807 else
6808 # PORTME fill in a description of your system's linker (not GNU ld)
6809 case $host_os in
6810 aix3*)
6811 allow_undefined_flag=unsupported
6812 always_export_symbols=yes
6813 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'
6814 # Note: this linker hardcodes the directories in LIBPATH if there
6815 # are no directories specified by -L.
6816 hardcode_minus_L=yes
6817 if test "$GCC" = yes && test -z "$link_static_flag"; then
6818 # Neither direct hardcoding nor static linking is supported with a
6819 # broken collect2.
6820 hardcode_direct=unsupported
6821 fi
6822 ;;
6823
6824 aix4* | aix5*)
6825 if test "$host_cpu" = ia64; then
6826 # On IA64, the linker does run time linking by default, so we don't
6827 # have to do anything special.
6828 aix_use_runtimelinking=no
6829 exp_sym_flag='-Bexport'
6830 no_entry_flag=""
6831 else
6832 # If we're using GNU nm, then we don't want the "-C" option.
6833 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6834 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6835 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'
6836 else
6837 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'
6838 fi
6839 aix_use_runtimelinking=no
6840
6841 # Test if we are trying to use run time linking or normal
6842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6843 # need to do runtime linking.
6844 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6845 for ld_flag in $LDFLAGS; do
6846 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6847 aix_use_runtimelinking=yes
6848 break
6849 fi
6850 done
6851 esac
6852
6853 exp_sym_flag='-bexport'
6854 no_entry_flag='-bnoentry'
6855 fi
6856
6857 # When large executables or shared objects are built, AIX ld can
6858 # have problems creating the table of contents. If linking a library
6859 # or program results in "error TOC overflow" add -mminimal-toc to
6860 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6861 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6862
6863 archive_cmds=''
6864 hardcode_direct=yes
6865 hardcode_libdir_separator=':'
6866 link_all_deplibs=yes
6867
6868 if test "$GCC" = yes; then
6869 case $host_os in aix4.012|aix4.012.*)
6870 # We only want to do this on AIX 4.2 and lower, the check
6871 # below for broken collect2 doesn't work under 4.3+
6872 collect2name=`${CC} -print-prog-name=collect2`
6873 if test -f "$collect2name" && \
6874 strings "$collect2name" | grep resolve_lib_name >/dev/null
6875 then
6876 # We have reworked collect2
6877 hardcode_direct=yes
6878 else
6879 # We have old collect2
6880 hardcode_direct=unsupported
6881 # It fails to find uninstalled libraries when the uninstalled
6882 # path is not listed in the libpath. Setting hardcode_minus_L
6883 # to unsupported forces relinking
6884 hardcode_minus_L=yes
6885 hardcode_libdir_flag_spec='-L$libdir'
6886 hardcode_libdir_separator=
6887 fi
6888 esac
6889 shared_flag='-shared'
6890 else
6891 # not using gcc
6892 if test "$host_cpu" = ia64; then
6893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6894 # chokes on -Wl,-G. The following line is correct:
6895 shared_flag='-G'
6896 else
6897 if test "$aix_use_runtimelinking" = yes; then
6898 shared_flag='${wl}-G'
6899 else
6900 shared_flag='${wl}-bM:SRE'
6901 fi
6902 fi
6903 fi
6904
6905 # It seems that -bexpall does not export symbols beginning with
6906 # underscore (_), so it is better to generate a list of symbols to export.
6907 always_export_symbols=yes
6908 if test "$aix_use_runtimelinking" = yes; then
6909 # Warning - without using the other runtime loading flags (-brtl),
6910 # -berok will link without error, but may produce a broken library.
6911 allow_undefined_flag='-berok'
6912 # Determine the default libpath from the value encoded in an empty executable.
6913 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006914#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006920
John Criswell7a73b802003-06-30 21:59:07 +00006921int
6922main ()
6923{
John Criswell47fdd832003-07-14 16:52:07 +00006924
John Criswell7a73b802003-06-30 21:59:07 +00006925 ;
6926 return 0;
6927}
6928_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006929rm -f conftest.$ac_objext conftest$ac_exeext
6930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006935 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006941
John Criswell47fdd832003-07-14 16:52:07 +00006942aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6943}'`
6944# Check for a 64-bit object if we didn't find anything.
6945if 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; }
6946}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006947else
6948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006949sed 's/^/| /' conftest.$ac_ext >&5
6950
John Criswell7a73b802003-06-30 21:59:07 +00006951fi
John Criswell47fdd832003-07-14 16:52:07 +00006952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6953if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006954
John Criswell47fdd832003-07-14 16:52:07 +00006955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6956 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"
6957 else
6958 if test "$host_cpu" = ia64; then
6959 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6960 allow_undefined_flag="-z nodefs"
6961 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"
6962 else
6963 # Determine the default libpath from the value encoded in an empty executable.
6964 cat >conftest.$ac_ext <<_ACEOF
6965#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
6970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006971
John Criswell47fdd832003-07-14 16:52:07 +00006972int
6973main ()
6974{
John Criswell7a73b802003-06-30 21:59:07 +00006975
John Criswell47fdd832003-07-14 16:52:07 +00006976 ;
6977 return 0;
6978}
6979_ACEOF
6980rm -f conftest.$ac_objext conftest$ac_exeext
6981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006992
John Criswell47fdd832003-07-14 16:52:07 +00006993aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6994}'`
6995# Check for a 64-bit object if we didn't find anything.
6996if 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; }
6997}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006998else
John Criswell47fdd832003-07-14 16:52:07 +00006999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007000sed 's/^/| /' conftest.$ac_ext >&5
7001
John Criswell47fdd832003-07-14 16:52:07 +00007002fi
7003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7004if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007005
John Criswell47fdd832003-07-14 16:52:07 +00007006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7007 # Warning - without using the other run time loading flags,
7008 # -berok will link without error, but may produce a broken library.
7009 no_undefined_flag=' ${wl}-bernotok'
7010 allow_undefined_flag=' ${wl}-berok'
7011 # -bexpall does not export symbols beginning with underscore (_)
7012 always_export_symbols=yes
7013 # Exported symbols can be pulled into shared objects from archives
7014 whole_archive_flag_spec=' '
7015 archive_cmds_need_lc=yes
7016 # This is similar to how AIX traditionally builds it's shared libraries.
7017 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 +00007018 fi
7019 fi
John Criswell7a73b802003-06-30 21:59:07 +00007020 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007021
7022 amigaos*)
7023 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)'
7024 hardcode_libdir_flag_spec='-L$libdir'
7025 hardcode_minus_L=yes
7026 # see comment about different semantics on the GNU ld section
7027 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007028 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007029
John Criswell47fdd832003-07-14 16:52:07 +00007030 bsdi4*)
7031 export_dynamic_flag_spec=-rdynamic
7032 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007033
John Criswell47fdd832003-07-14 16:52:07 +00007034 cygwin* | mingw* | pw32*)
7035 # When not using gcc, we currently assume that we are using
7036 # Microsoft Visual C++.
7037 # hardcode_libdir_flag_spec is actually meaningless, as there is
7038 # no search path for DLLs.
7039 hardcode_libdir_flag_spec=' '
7040 allow_undefined_flag=unsupported
7041 # Tell ltmain to make .lib files, not .a files.
7042 libext=lib
7043 # Tell ltmain to make .dll files, not .so files.
7044 shrext=".dll"
7045 # FIXME: Setting linknames here is a bad hack.
7046 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7047 # The linker will automatically build a .lib file if we build a DLL.
7048 old_archive_From_new_cmds='true'
7049 # FIXME: Should let the user specify the lib program.
7050 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7051 fix_srcfile_path='`cygpath -w "$srcfile"`'
7052 enable_shared_with_static_runtimes=yes
7053 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007054
John Criswell47fdd832003-07-14 16:52:07 +00007055 darwin* | rhapsody*)
7056 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7057 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007058 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007059 rhapsody* | darwin1.[012])
7060 allow_undefined_flag='-undefined suppress'
7061 ;;
7062 *) # Darwin 1.3 on
7063 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007064 ;;
7065 esac
John Criswell47fdd832003-07-14 16:52:07 +00007066 # FIXME: Relying on posixy $() will cause problems for
7067 # cross-compilation, but unfortunately the echo tests do not
7068 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7069 # `"' quotes if we put them in here... so don't!
7070 lt_int_apple_cc_single_mod=no
7071 output_verbose_link_cmd='echo'
7072 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7073 lt_int_apple_cc_single_mod=yes
7074 fi
7075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7076 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7077 else
7078 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'
7079 fi
7080 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7083 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}'
7084 else
7085 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}'
7086 fi
7087 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}'
7088 hardcode_direct=no
7089 hardcode_automatic=yes
7090 hardcode_shlibpath_var=unsupported
7091 whole_archive_flag_spec='-all_load $convenience'
7092 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007093 fi
John Criswell47fdd832003-07-14 16:52:07 +00007094 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007095
John Criswell47fdd832003-07-14 16:52:07 +00007096 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007098 hardcode_libdir_flag_spec='-L$libdir'
7099 hardcode_shlibpath_var=no
7100 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007101
John Criswell47fdd832003-07-14 16:52:07 +00007102 freebsd1*)
7103 ld_shlibs=no
7104 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007105
John Criswell47fdd832003-07-14 16:52:07 +00007106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7107 # support. Future versions do this automatically, but an explicit c++rt0.o
7108 # does not break anything, and helps significantly (at the cost of a little
7109 # extra space).
7110 freebsd2.2*)
7111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7112 hardcode_libdir_flag_spec='-R$libdir'
7113 hardcode_direct=yes
7114 hardcode_shlibpath_var=no
7115 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007116
John Criswell47fdd832003-07-14 16:52:07 +00007117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7118 freebsd2*)
7119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7120 hardcode_direct=yes
7121 hardcode_minus_L=yes
7122 hardcode_shlibpath_var=no
7123 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007124
John Criswell47fdd832003-07-14 16:52:07 +00007125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7126 freebsd*)
7127 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7128 hardcode_libdir_flag_spec='-R$libdir'
7129 hardcode_direct=yes
7130 hardcode_shlibpath_var=no
7131 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007132
John Criswell47fdd832003-07-14 16:52:07 +00007133 hpux9*)
7134 if test "$GCC" = yes; then
7135 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'
7136 else
7137 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'
7138 fi
7139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7140 hardcode_libdir_separator=:
7141 hardcode_direct=yes
7142
7143 # hardcode_minus_L: Not really in the search PATH,
7144 # but as the default location of the library.
7145 hardcode_minus_L=yes
7146 export_dynamic_flag_spec='${wl}-E'
7147 ;;
7148
7149 hpux10* | hpux11*)
7150 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7151 case "$host_cpu" in
7152 hppa*64*|ia64*)
7153 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7154 ;;
7155 *)
7156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7157 ;;
7158 esac
7159 else
7160 case "$host_cpu" in
7161 hppa*64*|ia64*)
7162 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7163 ;;
7164 *)
7165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7166 ;;
7167 esac
7168 fi
7169 if test "$with_gnu_ld" = no; then
7170 case "$host_cpu" in
7171 hppa*64*)
7172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7173 hardcode_libdir_flag_spec_ld='+b $libdir'
7174 hardcode_libdir_separator=:
7175 hardcode_direct=no
7176 hardcode_shlibpath_var=no
7177 ;;
7178 ia64*)
7179 hardcode_libdir_flag_spec='-L$libdir'
7180 hardcode_direct=no
7181 hardcode_shlibpath_var=no
7182
7183 # hardcode_minus_L: Not really in the search PATH,
7184 # but as the default location of the library.
7185 hardcode_minus_L=yes
7186 ;;
7187 *)
7188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7189 hardcode_libdir_separator=:
7190 hardcode_direct=yes
7191 export_dynamic_flag_spec='${wl}-E'
7192
7193 # hardcode_minus_L: Not really in the search PATH,
7194 # but as the default location of the library.
7195 hardcode_minus_L=yes
7196 ;;
7197 esac
7198 fi
7199 ;;
7200
7201 irix5* | irix6* | nonstopux*)
7202 if test "$GCC" = yes; then
7203 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'
7204 else
7205 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'
7206 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7207 fi
7208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7209 hardcode_libdir_separator=:
7210 link_all_deplibs=yes
7211 ;;
7212
7213 netbsd*)
7214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7216 else
7217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7218 fi
7219 hardcode_libdir_flag_spec='-R$libdir'
7220 hardcode_direct=yes
7221 hardcode_shlibpath_var=no
7222 ;;
7223
7224 newsos6)
7225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7226 hardcode_direct=yes
7227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7228 hardcode_libdir_separator=:
7229 hardcode_shlibpath_var=no
7230 ;;
7231
7232 openbsd*)
7233 hardcode_direct=yes
7234 hardcode_shlibpath_var=no
7235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7238 export_dynamic_flag_spec='${wl}-E'
7239 else
7240 case $host_os in
7241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243 hardcode_libdir_flag_spec='-R$libdir'
7244 ;;
7245 *)
7246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7248 ;;
7249 esac
7250 fi
7251 ;;
7252
7253 os2*)
7254 hardcode_libdir_flag_spec='-L$libdir'
7255 hardcode_minus_L=yes
7256 allow_undefined_flag=unsupported
7257 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'
7258 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7259 ;;
7260
7261 osf3*)
7262 if test "$GCC" = yes; then
7263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7264 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'
7265 else
7266 allow_undefined_flag=' -expect_unresolved \*'
7267 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'
7268 fi
7269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7270 hardcode_libdir_separator=:
7271 ;;
7272
7273 osf4* | osf5*) # as osf3* with the addition of -msym flag
7274 if test "$GCC" = yes; then
7275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7276 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'
7277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7278 else
7279 allow_undefined_flag=' -expect_unresolved \*'
7280 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'
7281 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7282 $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'
7283
7284 # Both c and cxx compiler support -rpath directly
7285 hardcode_libdir_flag_spec='-rpath $libdir'
7286 fi
7287 hardcode_libdir_separator=:
7288 ;;
7289
7290 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7292 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007293 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007294 runpath_var=LD_RUN_PATH
7295 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007296 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007297
John Criswell47fdd832003-07-14 16:52:07 +00007298 solaris*)
7299 no_undefined_flag=' -z text'
7300 if test "$GCC" = yes; then
7301 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7302 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7303 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7304 else
7305 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7308 fi
7309 hardcode_libdir_flag_spec='-R$libdir'
7310 hardcode_shlibpath_var=no
7311 case $host_os in
7312 solaris2.[0-5] | solaris2.[0-5].*) ;;
7313 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7314 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7315 esac
7316 link_all_deplibs=yes
7317 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007318
John Criswell47fdd832003-07-14 16:52:07 +00007319 sunos4*)
7320 if test "x$host_vendor" = xsequent; then
7321 # Use $CC to link under sequent, because it throws in some extra .o
7322 # files that make .init and .fini sections work.
7323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7324 else
7325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7326 fi
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 hardcode_direct=yes
7329 hardcode_minus_L=yes
7330 hardcode_shlibpath_var=no
7331 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007332
John Criswell47fdd832003-07-14 16:52:07 +00007333 sysv4)
7334 case $host_vendor in
7335 sni)
7336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7337 hardcode_direct=yes # is this really true???
7338 ;;
7339 siemens)
7340 ## LD is ld it makes a PLAMLIB
7341 ## CC just makes a GrossModule.
7342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7343 reload_cmds='$CC -r -o $output$reload_objs'
7344 hardcode_direct=no
7345 ;;
7346 motorola)
7347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7349 ;;
7350 esac
7351 runpath_var='LD_RUN_PATH'
7352 hardcode_shlibpath_var=no
7353 ;;
7354
7355 sysv4.3*)
7356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357 hardcode_shlibpath_var=no
7358 export_dynamic_flag_spec='-Bexport'
7359 ;;
7360
7361 sysv4*MP*)
7362 if test -d /usr/nec; then
7363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7364 hardcode_shlibpath_var=no
7365 runpath_var=LD_RUN_PATH
7366 hardcode_runpath_var=yes
7367 ld_shlibs=yes
7368 fi
7369 ;;
7370
7371 sysv4.2uw2*)
7372 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7373 hardcode_direct=yes
7374 hardcode_minus_L=no
7375 hardcode_shlibpath_var=no
7376 hardcode_runpath_var=yes
7377 runpath_var=LD_RUN_PATH
7378 ;;
7379
7380 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7381 no_undefined_flag='${wl}-z ${wl}text'
7382 if test "$GCC" = yes; then
7383 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7384 else
7385 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7386 fi
7387 runpath_var='LD_RUN_PATH'
7388 hardcode_shlibpath_var=no
7389 ;;
7390
7391 sysv5*)
7392 no_undefined_flag=' -z text'
7393 # $CC -shared without GNU ld will not create a library from C++
7394 # object files and a static libstdc++, better avoid it by now
7395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7398 hardcode_libdir_flag_spec=
7399 hardcode_shlibpath_var=no
7400 runpath_var='LD_RUN_PATH'
7401 ;;
7402
7403 uts4*)
7404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405 hardcode_libdir_flag_spec='-L$libdir'
7406 hardcode_shlibpath_var=no
7407 ;;
7408
7409 *)
7410 ld_shlibs=no
7411 ;;
7412 esac
7413 fi
7414
John Criswell7a73b802003-06-30 21:59:07 +00007415echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7416echo "${ECHO_T}$ld_shlibs" >&6
7417test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007418
John Criswell47fdd832003-07-14 16:52:07 +00007419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7420if test "$GCC" = yes; then
7421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7422fi
7423
7424#
7425# Do we need to explicitly link libc?
7426#
7427case "x$archive_cmds_need_lc" in
7428x|xyes)
7429 # Assume -lc should be added
7430 archive_cmds_need_lc=yes
7431
7432 if test "$enable_shared" = yes && test "$GCC" = yes; then
7433 case $archive_cmds in
7434 *'~'*)
7435 # FIXME: we may have to deal with multi-command sequences.
7436 ;;
7437 '$CC '*)
7438 # Test whether the compiler implicitly links with -lc since on some
7439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7440 # to ld, don't add -lc before -lgcc.
7441 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7442echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7443 $rm conftest*
7444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7445
7446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7447 (eval $ac_compile) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } 2>conftest.err; then
7451 soname=conftest
7452 lib=conftest
7453 libobjs=conftest.$ac_objext
7454 deplibs=
7455 wl=$lt_prog_compiler_wl
7456 compiler_flags=-v
7457 linker_flags=-v
7458 verstring=
7459 output_objdir=.
7460 libname=conftest
7461 lt_save_allow_undefined_flag=$allow_undefined_flag
7462 allow_undefined_flag=
7463 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7464 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }
7468 then
7469 archive_cmds_need_lc=no
7470 else
7471 archive_cmds_need_lc=yes
7472 fi
7473 allow_undefined_flag=$lt_save_allow_undefined_flag
7474 else
7475 cat conftest.err 1>&5
7476 fi
7477 $rm conftest*
7478 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7479echo "${ECHO_T}$archive_cmds_need_lc" >&6
7480 ;;
7481 esac
7482 fi
7483 ;;
7484esac
7485
John Criswell7a73b802003-06-30 21:59:07 +00007486echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7487echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7488hardcode_action=
7489if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007490 test -n "$runpath_var " || \
7491 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007492
7493 # We can hardcode non-existant directories.
7494 if test "$hardcode_direct" != no &&
7495 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7496 # have to relink, otherwise we might link with an installed library
7497 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007498 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007499 test "$hardcode_minus_L" != no; then
7500 # Linking always hardcodes the temporary library directory.
7501 hardcode_action=relink
7502 else
7503 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7504 hardcode_action=immediate
7505 fi
7506else
7507 # We cannot hardcode anything, or else we can only hardcode existing
7508 # directories.
7509 hardcode_action=unsupported
7510fi
7511echo "$as_me:$LINENO: result: $hardcode_action" >&5
7512echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007513
John Criswell47fdd832003-07-14 16:52:07 +00007514if test "$hardcode_action" = relink; then
7515 # Fast installation is not supported
7516 enable_fast_install=no
7517elif test "$shlibpath_overrides_runpath" = yes ||
7518 test "$enable_shared" = no; then
7519 # Fast installation is not necessary
7520 enable_fast_install=needless
7521fi
7522
John Criswell7a73b802003-06-30 21:59:07 +00007523striplib=
7524old_striplib=
7525echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7526echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7527if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7528 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7529 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7530 echo "$as_me:$LINENO: result: yes" >&5
7531echo "${ECHO_T}yes" >&6
7532else
John Criswell47fdd832003-07-14 16:52:07 +00007533# FIXME - insert some real tests, host_os isn't really good enough
7534 case $host_os in
7535 darwin*)
7536 if test -n "$STRIP" ; then
7537 striplib="$STRIP -x"
7538 echo "$as_me:$LINENO: result: yes" >&5
7539echo "${ECHO_T}yes" >&6
7540 else
John Criswell7a73b802003-06-30 21:59:07 +00007541 echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543fi
John Criswell47fdd832003-07-14 16:52:07 +00007544 ;;
7545 *)
7546 echo "$as_me:$LINENO: result: no" >&5
7547echo "${ECHO_T}no" >&6
7548 ;;
7549 esac
7550fi
John Criswell7a73b802003-06-30 21:59:07 +00007551
John Criswell7a73b802003-06-30 21:59:07 +00007552echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7553echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7554library_names_spec=
7555libname_spec='lib$name'
7556soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007557shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007558postinstall_cmds=
7559postuninstall_cmds=
7560finish_cmds=
7561finish_eval=
7562shlibpath_var=
7563shlibpath_overrides_runpath=unknown
7564version_type=none
7565dynamic_linker="$host_os ld.so"
7566sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007567if test "$GCC" = yes; then
7568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7570 # if the path contains ";" then we assume it to be the separator
7571 # otherwise default to the standard path separator (i.e. ":") - it is
7572 # assumed that no part of a normal pathname contains ";" but that should
7573 # okay in the real world where ";" in dirpaths is itself problematic.
7574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7575 else
7576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7577 fi
7578else
7579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7580fi
7581need_lib_prefix=unknown
7582hardcode_into_libs=no
7583
7584# when you set need_version to no, make sure it does not cause -set_version
7585# flags to be left without arguments
7586need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007587
7588case $host_os in
7589aix3*)
7590 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007592 shlibpath_var=LIBPATH
7593
John Criswell47fdd832003-07-14 16:52:07 +00007594 # AIX 3 has no versioning support, so we append a major version to the name.
7595 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007596 ;;
7597
7598aix4* | aix5*)
7599 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007600 need_lib_prefix=no
7601 need_version=no
7602 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007603 if test "$host_cpu" = ia64; then
7604 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007606 shlibpath_var=LD_LIBRARY_PATH
7607 else
7608 # With GCC up to 2.95.x, collect2 would create an import file
7609 # for dependence libraries. The import file would start with
7610 # the line `#! .'. This would cause the generated library to
7611 # depend on `.', always an invalid library. This was fixed in
7612 # development snapshots of GCC prior to 3.0.
7613 case $host_os in
7614 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7616 echo ' yes '
7617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7618 :
7619 else
7620 can_build_shared=no
7621 fi
7622 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007623 esac
John Criswell47fdd832003-07-14 16:52:07 +00007624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7625 # soname into executable. Probably we can add versioning support to
7626 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007627 if test "$aix_use_runtimelinking" = yes; then
7628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7629 # instead of lib<name>.a to let people know that these are not
7630 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007632 else
7633 # We preserve .a as extension for shared libraries through AIX4.2
7634 # and later when we are not doing run time linking.
7635 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007636 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007637 fi
7638 shlibpath_var=LIBPATH
7639 fi
7640 ;;
7641
7642amigaos*)
7643 library_names_spec='$libname.ixlibrary $libname.a'
7644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7645 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'
7646 ;;
7647
7648beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007649 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007650 dynamic_linker="$host_os ld.so"
7651 shlibpath_var=LIBRARY_PATH
7652 ;;
7653
7654bsdi4*)
7655 version_type=linux
7656 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7658 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7660 shlibpath_var=LD_LIBRARY_PATH
7661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007663 # the default ld.so.conf also contains /usr/contrib/lib and
7664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7665 # libtool to hard-code these into programs
7666 ;;
7667
7668cygwin* | mingw* | pw32*)
7669 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007670 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007671 need_version=no
7672 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007673
John Criswell7a73b802003-06-30 21:59:07 +00007674 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007675 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007676 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7678 postinstall_cmds='base_file=`basename \${file}`~
7679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007680 dldir=$destdir/`dirname \$dlpath`~
7681 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007682 $install_prog $dir/$dlname \$dldir/$dlname'
7683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007684 dlpath=$dir/\$dldll~
7685 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007686 shlibpath_overrides_runpath=yes
7687
7688 case $host_os in
7689 cygwin*)
7690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7692 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7693 ;;
7694 mingw*)
7695 # MinGW DLLs use traditional 'lib' prefix
7696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7699 # It is most probably a Windows format PATH printed by
7700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7701 # path with ; separators, and with drive letters. We can handle the
7702 # drive letters (cygwin fileutils understands them), so leave them,
7703 # especially as we might pass files found there to a mingw objdump,
7704 # which wouldn't understand a cygwinified path. Ahh.
7705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7706 else
7707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7708 fi
7709 ;;
7710 pw32*)
7711 # pw32 DLLs use 'pw' prefix rather than 'lib'
7712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7713 ;;
7714 esac
John Criswell7a73b802003-06-30 21:59:07 +00007715 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007716
John Criswell7a73b802003-06-30 21:59:07 +00007717 *)
John Criswell47fdd832003-07-14 16:52:07 +00007718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007719 ;;
7720 esac
7721 dynamic_linker='Win32 ld.exe'
7722 # FIXME: first we should search . and the directory the executable is in
7723 shlibpath_var=PATH
7724 ;;
7725
7726darwin* | rhapsody*)
7727 dynamic_linker="$host_os dyld"
7728 version_type=darwin
7729 need_lib_prefix=no
7730 need_version=no
7731 # FIXME: Relying on posixy $() will cause problems for
7732 # cross-compilation, but unfortunately the echo tests do not
7733 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7735 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007736 shlibpath_overrides_runpath=yes
7737 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007738 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7740 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7741 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"`
7742 fi
7743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7744 ;;
7745
7746dgux*)
7747 version_type=linux
7748 need_lib_prefix=no
7749 need_version=no
7750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7751 soname_spec='${libname}${release}${shared_ext}$major'
7752 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007753 ;;
7754
7755freebsd1*)
7756 dynamic_linker=no
7757 ;;
7758
7759freebsd*)
7760 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7761 version_type=freebsd-$objformat
7762 case $version_type in
7763 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007765 need_version=no
7766 need_lib_prefix=no
7767 ;;
7768 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007770 need_version=yes
7771 ;;
7772 esac
7773 shlibpath_var=LD_LIBRARY_PATH
7774 case $host_os in
7775 freebsd2*)
7776 shlibpath_overrides_runpath=yes
7777 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007778 freebsd3.01* | freebsdelf3.01*)
7779 shlibpath_overrides_runpath=yes
7780 hardcode_into_libs=yes
7781 ;;
7782 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007783 shlibpath_overrides_runpath=no
7784 hardcode_into_libs=yes
7785 ;;
7786 esac
7787 ;;
7788
7789gnu*)
7790 version_type=linux
7791 need_lib_prefix=no
7792 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7794 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007795 shlibpath_var=LD_LIBRARY_PATH
7796 hardcode_into_libs=yes
7797 ;;
7798
7799hpux9* | hpux10* | hpux11*)
7800 # Give a soname corresponding to the major version so that dld.sl refuses to
7801 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007802 version_type=sunos
7803 need_lib_prefix=no
7804 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007805 case "$host_cpu" in
7806 ia64*)
7807 shrext='.so'
7808 hardcode_into_libs=yes
7809 dynamic_linker="$host_os dld.so"
7810 shlibpath_var=LD_LIBRARY_PATH
7811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813 soname_spec='${libname}${release}${shared_ext}$major'
7814 if test "X$HPUX_IA64_MODE" = X32; then
7815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7816 else
7817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7818 fi
7819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820 ;;
7821 hppa*64*)
7822 shrext='.sl'
7823 hardcode_into_libs=yes
7824 dynamic_linker="$host_os dld.sl"
7825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7828 soname_spec='${libname}${release}${shared_ext}$major'
7829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831 ;;
7832 *)
7833 shrext='.sl'
7834 dynamic_linker="$host_os dld.sl"
7835 shlibpath_var=SHLIB_PATH
7836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7838 soname_spec='${libname}${release}${shared_ext}$major'
7839 ;;
7840 esac
John Criswell7a73b802003-06-30 21:59:07 +00007841 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7842 postinstall_cmds='chmod 555 $lib'
7843 ;;
7844
John Criswell47fdd832003-07-14 16:52:07 +00007845irix5* | irix6* | nonstopux*)
7846 case $host_os in
7847 nonstopux*) version_type=nonstopux ;;
7848 *)
7849 if test "$lt_cv_prog_gnu_ld" = yes; then
7850 version_type=linux
7851 else
7852 version_type=irix
7853 fi ;;
7854 esac
John Criswell7a73b802003-06-30 21:59:07 +00007855 need_lib_prefix=no
7856 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007857 soname_spec='${libname}${release}${shared_ext}$major'
7858 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 +00007859 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007860 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007861 libsuff= shlibsuff=
7862 ;;
7863 *)
7864 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7866 libsuff= shlibsuff= libmagic=32-bit;;
7867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7868 libsuff=32 shlibsuff=N32 libmagic=N32;;
7869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007871 *) libsuff= shlibsuff= libmagic=never-match;;
7872 esac
7873 ;;
7874 esac
7875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7876 shlibpath_overrides_runpath=no
7877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007879 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007880 ;;
7881
7882# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007883linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007884 dynamic_linker=no
7885 ;;
7886
7887# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007888linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007889 version_type=linux
7890 need_lib_prefix=no
7891 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7895 shlibpath_var=LD_LIBRARY_PATH
7896 shlibpath_overrides_runpath=no
7897 # This implies no fast_install, which is unacceptable.
7898 # Some rework will be needed to allow for fast_install
7899 # before this can be enabled.
7900 hardcode_into_libs=yes
7901
7902 # We used to test for /lib/ld.so.1 and disable shared libraries on
7903 # powerpc, because MkLinux only supported shared libraries with the
7904 # GNU dynamic linker. Since this was broken with cross compilers,
7905 # most powerpc-linux boxes support dynamic linking these days and
7906 # people can always --disable-shared, the test was removed, and we
7907 # assume the GNU/Linux dynamic linker is in use.
7908 dynamic_linker='GNU/Linux ld.so'
7909 ;;
7910
7911netbsd*)
7912 version_type=sunos
7913 need_lib_prefix=no
7914 need_version=no
7915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7918 dynamic_linker='NetBSD (a.out) ld.so'
7919 else
John Criswell47fdd832003-07-14 16:52:07 +00007920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007922 dynamic_linker='NetBSD ld.elf_so'
7923 fi
7924 shlibpath_var=LD_LIBRARY_PATH
7925 shlibpath_overrides_runpath=yes
7926 hardcode_into_libs=yes
7927 ;;
7928
7929newsos6)
7930 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7932 shlibpath_var=LD_LIBRARY_PATH
7933 shlibpath_overrides_runpath=yes
7934 ;;
7935
7936nto-qnx)
7937 version_type=linux
7938 need_lib_prefix=no
7939 need_version=no
7940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7941 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007942 shlibpath_var=LD_LIBRARY_PATH
7943 shlibpath_overrides_runpath=yes
7944 ;;
7945
7946openbsd*)
7947 version_type=sunos
7948 need_lib_prefix=no
7949 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7952 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007953 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 +00007954 case $host_os in
7955 openbsd2.[89] | openbsd2.[89].*)
7956 shlibpath_overrides_runpath=no
7957 ;;
7958 *)
7959 shlibpath_overrides_runpath=yes
7960 ;;
7961 esac
John Criswell7a73b802003-06-30 21:59:07 +00007962 else
7963 shlibpath_overrides_runpath=yes
7964 fi
John Criswell7a73b802003-06-30 21:59:07 +00007965 ;;
7966
7967os2*)
7968 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007969 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007970 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007971 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007972 dynamic_linker='OS/2 ld.exe'
7973 shlibpath_var=LIBPATH
7974 ;;
7975
7976osf3* | osf4* | osf5*)
7977 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007978 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007979 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007980 soname_spec='${libname}${release}${shared_ext}$major'
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007982 shlibpath_var=LD_LIBRARY_PATH
7983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7985 ;;
7986
7987sco3.2v5*)
7988 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007989 soname_spec='${libname}${release}${shared_ext}$major'
7990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007991 shlibpath_var=LD_LIBRARY_PATH
7992 ;;
7993
7994solaris*)
7995 version_type=linux
7996 need_lib_prefix=no
7997 need_version=no
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 shlibpath_overrides_runpath=yes
8002 hardcode_into_libs=yes
8003 # ldd complains unless libraries are executable
8004 postinstall_cmds='chmod +x $lib'
8005 ;;
8006
8007sunos4*)
8008 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8011 shlibpath_var=LD_LIBRARY_PATH
8012 shlibpath_overrides_runpath=yes
8013 if test "$with_gnu_ld" = yes; then
8014 need_lib_prefix=no
8015 fi
8016 need_version=yes
8017 ;;
8018
8019sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8020 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008023 shlibpath_var=LD_LIBRARY_PATH
8024 case $host_vendor in
8025 sni)
8026 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008027 need_lib_prefix=no
8028 export_dynamic_flag_spec='${wl}-Blargedynsym'
8029 runpath_var=LD_RUN_PATH
8030 ;;
8031 siemens)
8032 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008033 ;;
8034 motorola)
8035 need_lib_prefix=no
8036 need_version=no
8037 shlibpath_overrides_runpath=no
8038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8039 ;;
8040 esac
8041 ;;
8042
John Criswell7a73b802003-06-30 21:59:07 +00008043sysv4*MP*)
8044 if test -d /usr/nec ;then
8045 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8047 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008048 shlibpath_var=LD_LIBRARY_PATH
8049 fi
8050 ;;
8051
John Criswell47fdd832003-07-14 16:52:07 +00008052uts4*)
8053 version_type=linux
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8055 soname_spec='${libname}${release}${shared_ext}$major'
8056 shlibpath_var=LD_LIBRARY_PATH
8057 ;;
8058
John Criswell7a73b802003-06-30 21:59:07 +00008059*)
8060 dynamic_linker=no
8061 ;;
8062esac
8063echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8064echo "${ECHO_T}$dynamic_linker" >&6
8065test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008066
8067if test "x$enable_dlopen" != xyes; then
8068 enable_dlopen=unknown
8069 enable_dlopen_self=unknown
8070 enable_dlopen_self_static=unknown
8071else
8072 lt_cv_dlopen=no
8073 lt_cv_dlopen_libs=
8074
8075 case $host_os in
8076 beos*)
8077 lt_cv_dlopen="load_add_on"
8078 lt_cv_dlopen_libs=
8079 lt_cv_dlopen_self=yes
8080 ;;
8081
John Criswell47fdd832003-07-14 16:52:07 +00008082 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008083 lt_cv_dlopen="LoadLibrary"
8084 lt_cv_dlopen_libs=
8085 ;;
8086
John Criswell47fdd832003-07-14 16:52:07 +00008087 cygwin*)
8088 lt_cv_dlopen="dlopen"
8089 lt_cv_dlopen_libs=
8090 ;;
8091
8092 darwin*)
8093 # if libdl is installed we need to link against it
8094 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8095echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8096if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 ac_check_lib_save_LIBS=$LIBS
8100LIBS="-ldl $LIBS"
8101cat >conftest.$ac_ext <<_ACEOF
8102#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008103/* confdefs.h. */
8104_ACEOF
8105cat confdefs.h >>conftest.$ac_ext
8106cat >>conftest.$ac_ext <<_ACEOF
8107/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008108
8109/* Override any gcc2 internal prototype to avoid an error. */
8110#ifdef __cplusplus
8111extern "C"
8112#endif
8113/* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008116int
8117main ()
8118{
8119dlopen ();
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext conftest$ac_exeext
8125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_lib_dl_dlopen=yes
8137else
8138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008139sed 's/^/| /' conftest.$ac_ext >&5
8140
John Criswell47fdd832003-07-14 16:52:07 +00008141ac_cv_lib_dl_dlopen=no
8142fi
8143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8144LIBS=$ac_check_lib_save_LIBS
8145fi
8146echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8147echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8148if test $ac_cv_lib_dl_dlopen = yes; then
8149 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8150else
8151
8152 lt_cv_dlopen="dyld"
8153 lt_cv_dlopen_libs=
8154 lt_cv_dlopen_self=yes
8155
8156fi
8157
8158 ;;
8159
John Criswell7a73b802003-06-30 21:59:07 +00008160 *)
8161 echo "$as_me:$LINENO: checking for shl_load" >&5
8162echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8163if test "${ac_cv_func_shl_load+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 cat >conftest.$ac_ext <<_ACEOF
8167#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008168/* confdefs.h. */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008173/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008174 which can conflict with char shl_load (); below.
8175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8176 <limits.h> exists even on freestanding compilers. */
8177#ifdef __STDC__
8178# include <limits.h>
8179#else
8180# include <assert.h>
8181#endif
John Criswell7a73b802003-06-30 21:59:07 +00008182/* Override any gcc2 internal prototype to avoid an error. */
8183#ifdef __cplusplus
8184extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008185{
John Criswell7a73b802003-06-30 21:59:07 +00008186#endif
8187/* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8189char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008190/* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193#if defined (__stub_shl_load) || defined (__stub___shl_load)
8194choke me
8195#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008196char (*f) () = shl_load;
8197#endif
8198#ifdef __cplusplus
8199}
John Criswell7a73b802003-06-30 21:59:07 +00008200#endif
8201
John Criswell0c38eaf2003-09-10 15:17:25 +00008202int
8203main ()
8204{
8205return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008206 ;
8207 return 0;
8208}
8209_ACEOF
8210rm -f conftest.$ac_objext conftest$ac_exeext
8211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -s conftest$ac_exeext'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 ac_cv_func_shl_load=yes
8223else
8224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008225sed 's/^/| /' conftest.$ac_ext >&5
8226
John Criswell7a73b802003-06-30 21:59:07 +00008227ac_cv_func_shl_load=no
8228fi
8229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8230fi
8231echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8232echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8233if test $ac_cv_func_shl_load = yes; then
8234 lt_cv_dlopen="shl_load"
8235else
8236 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8237echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8238if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241 ac_check_lib_save_LIBS=$LIBS
8242LIBS="-ldld $LIBS"
8243cat >conftest.$ac_ext <<_ACEOF
8244#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008245/* confdefs.h. */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008250
8251/* Override any gcc2 internal prototype to avoid an error. */
8252#ifdef __cplusplus
8253extern "C"
8254#endif
8255/* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008258int
8259main ()
8260{
8261shl_load ();
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext conftest$ac_exeext
8267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_dld_shl_load=yes
8279else
8280 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008281sed 's/^/| /' conftest.$ac_ext >&5
8282
John Criswell7a73b802003-06-30 21:59:07 +00008283ac_cv_lib_dld_shl_load=no
8284fi
8285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8286LIBS=$ac_check_lib_save_LIBS
8287fi
8288echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8289echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8290if test $ac_cv_lib_dld_shl_load = yes; then
8291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8292else
8293 echo "$as_me:$LINENO: checking for dlopen" >&5
8294echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8295if test "${ac_cv_func_dlopen+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 cat >conftest.$ac_ext <<_ACEOF
8299#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008300/* confdefs.h. */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008305/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008306 which can conflict with char dlopen (); below.
8307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8308 <limits.h> exists even on freestanding compilers. */
8309#ifdef __STDC__
8310# include <limits.h>
8311#else
8312# include <assert.h>
8313#endif
John Criswell7a73b802003-06-30 21:59:07 +00008314/* Override any gcc2 internal prototype to avoid an error. */
8315#ifdef __cplusplus
8316extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008317{
John Criswell7a73b802003-06-30 21:59:07 +00008318#endif
8319/* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
8321char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008322/* The GNU C library defines this for functions which it implements
8323 to always fail with ENOSYS. Some functions are actually named
8324 something starting with __ and the normal name is an alias. */
8325#if defined (__stub_dlopen) || defined (__stub___dlopen)
8326choke me
8327#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008328char (*f) () = dlopen;
8329#endif
8330#ifdef __cplusplus
8331}
John Criswell7a73b802003-06-30 21:59:07 +00008332#endif
8333
John Criswell0c38eaf2003-09-10 15:17:25 +00008334int
8335main ()
8336{
8337return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
8348 { ac_try='test -s conftest$ac_exeext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_func_dlopen=yes
8355else
8356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008357sed 's/^/| /' conftest.$ac_ext >&5
8358
John Criswell7a73b802003-06-30 21:59:07 +00008359ac_cv_func_dlopen=no
8360fi
8361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8362fi
8363echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8364echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8365if test $ac_cv_func_dlopen = yes; then
8366 lt_cv_dlopen="dlopen"
8367else
8368 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8369echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8370if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372else
8373 ac_check_lib_save_LIBS=$LIBS
8374LIBS="-ldl $LIBS"
8375cat >conftest.$ac_ext <<_ACEOF
8376#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008382
8383/* Override any gcc2 internal prototype to avoid an error. */
8384#ifdef __cplusplus
8385extern "C"
8386#endif
8387/* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8389char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008390int
8391main ()
8392{
8393dlopen ();
8394 ;
8395 return 0;
8396}
8397_ACEOF
8398rm -f conftest.$ac_objext conftest$ac_exeext
8399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>&5
8401 ac_status=$?
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_lib_dl_dlopen=yes
8411else
8412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008413sed 's/^/| /' conftest.$ac_ext >&5
8414
John Criswell7a73b802003-06-30 21:59:07 +00008415ac_cv_lib_dl_dlopen=no
8416fi
8417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8418LIBS=$ac_check_lib_save_LIBS
8419fi
8420echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8421echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8422if test $ac_cv_lib_dl_dlopen = yes; then
8423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8424else
8425 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8426echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8427if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 ac_check_lib_save_LIBS=$LIBS
8431LIBS="-lsvld $LIBS"
8432cat >conftest.$ac_ext <<_ACEOF
8433#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008439
8440/* Override any gcc2 internal prototype to avoid an error. */
8441#ifdef __cplusplus
8442extern "C"
8443#endif
8444/* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8446char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008447int
8448main ()
8449{
8450dlopen ();
8451 ;
8452 return 0;
8453}
8454_ACEOF
8455rm -f conftest.$ac_objext conftest$ac_exeext
8456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -s conftest$ac_exeext'
8462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_svld_dlopen=yes
8468else
8469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008470sed 's/^/| /' conftest.$ac_ext >&5
8471
John Criswell7a73b802003-06-30 21:59:07 +00008472ac_cv_lib_svld_dlopen=no
8473fi
8474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8475LIBS=$ac_check_lib_save_LIBS
8476fi
8477echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8478echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8479if test $ac_cv_lib_svld_dlopen = yes; then
8480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8481else
8482 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8483echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8484if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487 ac_check_lib_save_LIBS=$LIBS
8488LIBS="-ldld $LIBS"
8489cat >conftest.$ac_ext <<_ACEOF
8490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008496
8497/* Override any gcc2 internal prototype to avoid an error. */
8498#ifdef __cplusplus
8499extern "C"
8500#endif
8501/* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008504int
8505main ()
8506{
8507dld_link ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_cv_lib_dld_dld_link=yes
8525else
8526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008527sed 's/^/| /' conftest.$ac_ext >&5
8528
John Criswell7a73b802003-06-30 21:59:07 +00008529ac_cv_lib_dld_dld_link=no
8530fi
8531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8532LIBS=$ac_check_lib_save_LIBS
8533fi
8534echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8535echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8536if test $ac_cv_lib_dld_dld_link = yes; then
8537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8538fi
8539
8540
8541fi
8542
8543
8544fi
8545
8546
8547fi
8548
8549
8550fi
8551
8552
8553fi
8554
8555 ;;
8556 esac
8557
8558 if test "x$lt_cv_dlopen" != xno; then
8559 enable_dlopen=yes
8560 else
8561 enable_dlopen=no
8562 fi
8563
8564 case $lt_cv_dlopen in
8565 dlopen)
8566 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008568
8569 save_LDFLAGS="$LDFLAGS"
8570 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8571
8572 save_LIBS="$LIBS"
8573 LIBS="$lt_cv_dlopen_libs $LIBS"
8574
8575 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8576echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8577if test "${lt_cv_dlopen_self+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579else
8580 if test "$cross_compiling" = yes; then :
8581 lt_cv_dlopen_self=cross
8582else
John Criswell47fdd832003-07-14 16:52:07 +00008583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008584 lt_status=$lt_dlunknown
8585 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +00008586#line 8586 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008587#include "confdefs.h"
8588
8589#if HAVE_DLFCN_H
8590#include <dlfcn.h>
8591#endif
8592
8593#include <stdio.h>
8594
8595#ifdef RTLD_GLOBAL
8596# define LT_DLGLOBAL RTLD_GLOBAL
8597#else
8598# ifdef DL_GLOBAL
8599# define LT_DLGLOBAL DL_GLOBAL
8600# else
8601# define LT_DLGLOBAL 0
8602# endif
8603#endif
8604
8605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8606 find out it does not work in some platform. */
8607#ifndef LT_DLLAZY_OR_NOW
8608# ifdef RTLD_LAZY
8609# define LT_DLLAZY_OR_NOW RTLD_LAZY
8610# else
8611# ifdef DL_LAZY
8612# define LT_DLLAZY_OR_NOW DL_LAZY
8613# else
8614# ifdef RTLD_NOW
8615# define LT_DLLAZY_OR_NOW RTLD_NOW
8616# else
8617# ifdef DL_NOW
8618# define LT_DLLAZY_OR_NOW DL_NOW
8619# else
8620# define LT_DLLAZY_OR_NOW 0
8621# endif
8622# endif
8623# endif
8624# endif
8625#endif
8626
8627#ifdef __cplusplus
8628extern "C" void exit (int);
8629#endif
8630
8631void fnord() { int i=42;}
8632int main ()
8633{
8634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8635 int status = $lt_dlunknown;
8636
8637 if (self)
8638 {
8639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8641 /* dlclose (self); */
8642 }
8643
8644 exit (status);
8645}
8646EOF
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8652 (./conftest; exit; ) 2>/dev/null
8653 lt_status=$?
8654 case x$lt_status in
8655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8657 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8658 esac
8659 else :
8660 # compilation failed
8661 lt_cv_dlopen_self=no
8662 fi
8663fi
8664rm -fr conftest*
8665
8666
8667fi
8668echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8669echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8670
8671 if test "x$lt_cv_dlopen_self" = xyes; then
8672 LDFLAGS="$LDFLAGS $link_static_flag"
8673 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8674echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8675if test "${lt_cv_dlopen_self_static+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678 if test "$cross_compiling" = yes; then :
8679 lt_cv_dlopen_self_static=cross
8680else
John Criswell47fdd832003-07-14 16:52:07 +00008681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008682 lt_status=$lt_dlunknown
8683 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +00008684#line 8684 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008685#include "confdefs.h"
8686
8687#if HAVE_DLFCN_H
8688#include <dlfcn.h>
8689#endif
8690
8691#include <stdio.h>
8692
8693#ifdef RTLD_GLOBAL
8694# define LT_DLGLOBAL RTLD_GLOBAL
8695#else
8696# ifdef DL_GLOBAL
8697# define LT_DLGLOBAL DL_GLOBAL
8698# else
8699# define LT_DLGLOBAL 0
8700# endif
8701#endif
8702
8703/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8704 find out it does not work in some platform. */
8705#ifndef LT_DLLAZY_OR_NOW
8706# ifdef RTLD_LAZY
8707# define LT_DLLAZY_OR_NOW RTLD_LAZY
8708# else
8709# ifdef DL_LAZY
8710# define LT_DLLAZY_OR_NOW DL_LAZY
8711# else
8712# ifdef RTLD_NOW
8713# define LT_DLLAZY_OR_NOW RTLD_NOW
8714# else
8715# ifdef DL_NOW
8716# define LT_DLLAZY_OR_NOW DL_NOW
8717# else
8718# define LT_DLLAZY_OR_NOW 0
8719# endif
8720# endif
8721# endif
8722# endif
8723#endif
8724
8725#ifdef __cplusplus
8726extern "C" void exit (int);
8727#endif
8728
8729void fnord() { int i=42;}
8730int main ()
8731{
8732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8733 int status = $lt_dlunknown;
8734
8735 if (self)
8736 {
8737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8739 /* dlclose (self); */
8740 }
8741
8742 exit (status);
8743}
8744EOF
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8750 (./conftest; exit; ) 2>/dev/null
8751 lt_status=$?
8752 case x$lt_status in
8753 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8754 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8755 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8756 esac
8757 else :
8758 # compilation failed
8759 lt_cv_dlopen_self_static=no
8760 fi
8761fi
8762rm -fr conftest*
8763
8764
8765fi
8766echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8767echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8768 fi
8769
8770 CPPFLAGS="$save_CPPFLAGS"
8771 LDFLAGS="$save_LDFLAGS"
8772 LIBS="$save_LIBS"
8773 ;;
8774 esac
8775
8776 case $lt_cv_dlopen_self in
8777 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8778 *) enable_dlopen_self=unknown ;;
8779 esac
8780
8781 case $lt_cv_dlopen_self_static in
8782 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8783 *) enable_dlopen_self_static=unknown ;;
8784 esac
8785fi
8786
8787
John Criswell47fdd832003-07-14 16:52:07 +00008788# Report which librarie types wil actually be built
8789echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8790echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8791echo "$as_me:$LINENO: result: $can_build_shared" >&5
8792echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008793
John Criswell47fdd832003-07-14 16:52:07 +00008794echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8795echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8796test "$can_build_shared" = "no" && enable_shared=no
8797
8798# On AIX, shared libraries and static libraries use the same namespace, and
8799# are all built from PIC.
8800case "$host_os" in
8801aix3*)
8802 test "$enable_shared" = yes && enable_static=no
8803 if test -n "$RANLIB"; then
8804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8805 postinstall_cmds='$RANLIB $lib'
8806 fi
8807 ;;
8808
8809aix4*)
8810 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8811 test "$enable_shared" = yes && enable_static=no
8812 fi
8813 ;;
8814 darwin* | rhapsody*)
8815 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8816 archive_cmds_need_lc=no
8817 case "$host_os" in
8818 rhapsody* | darwin1.[012])
8819 allow_undefined_flag='-undefined suppress'
8820 ;;
8821 *) # Darwin 1.3 on
8822 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8823 ;;
8824 esac
8825 # FIXME: Relying on posixy $() will cause problems for
8826 # cross-compilation, but unfortunately the echo tests do not
8827 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8828 # `"' quotes if we put them in here... so don't!
8829 output_verbose_link_cmd='echo'
8830 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8831 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8832 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8833 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}'
8834 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}'
8835 hardcode_direct=no
8836 hardcode_automatic=yes
8837 hardcode_shlibpath_var=unsupported
8838 whole_archive_flag_spec='-all_load $convenience'
8839 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008840 fi
John Criswell7a73b802003-06-30 21:59:07 +00008841 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008842esac
8843echo "$as_me:$LINENO: result: $enable_shared" >&5
8844echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008845
John Criswell47fdd832003-07-14 16:52:07 +00008846echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8847echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8848# Make sure either enable_shared or enable_static is yes.
8849test "$enable_shared" = yes || enable_static=yes
8850echo "$as_me:$LINENO: result: $enable_static" >&5
8851echo "${ECHO_T}$enable_static" >&6
8852
8853# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008854# libtool distribution, otherwise you forgot to ship ltmain.sh
8855# with your package, and you will get complaints that there are
8856# no rules to generate ltmain.sh.
8857if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008858 # See if we are running on zsh, and set the options which allow our commands through
8859 # without removal of \ escapes.
8860 if test -n "${ZSH_VERSION+set}" ; then
8861 setopt NO_GLOB_SUBST
8862 fi
John Criswell7a73b802003-06-30 21:59:07 +00008863 # Now quote all the things that may contain metacharacters while being
8864 # careful not to overquote the AC_SUBSTed values. We take copies of the
8865 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008866 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8869 deplibs_check_method reload_flag reload_cmds need_locks \
8870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8871 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008873 old_postinstall_cmds old_postuninstall_cmds \
8874 compiler \
8875 CC \
8876 LD \
8877 lt_prog_compiler_wl \
8878 lt_prog_compiler_pic \
8879 lt_prog_compiler_static \
8880 lt_prog_compiler_no_builtin_flag \
8881 export_dynamic_flag_spec \
8882 thread_safe_flag_spec \
8883 whole_archive_flag_spec \
8884 enable_shared_with_static_runtimes \
8885 old_archive_cmds \
8886 old_archive_from_new_cmds \
8887 predep_objects \
8888 postdep_objects \
8889 predeps \
8890 postdeps \
8891 compiler_lib_search_path \
8892 archive_cmds \
8893 archive_expsym_cmds \
8894 postinstall_cmds \
8895 postuninstall_cmds \
8896 old_archive_from_expsyms_cmds \
8897 allow_undefined_flag \
8898 no_undefined_flag \
8899 export_symbols_cmds \
8900 hardcode_libdir_flag_spec \
8901 hardcode_libdir_flag_spec_ld \
8902 hardcode_libdir_separator \
8903 hardcode_automatic \
8904 module_cmds \
8905 module_expsym_cmds \
8906 lt_cv_prog_compiler_c_o \
8907 exclude_expsyms \
8908 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008909
8910 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008911 old_archive_cmds | \
8912 old_archive_from_new_cmds | \
8913 archive_cmds | \
8914 archive_expsym_cmds | \
8915 module_cmds | \
8916 module_expsym_cmds | \
8917 old_archive_from_expsyms_cmds | \
8918 export_symbols_cmds | \
8919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008920 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008921 old_postinstall_cmds | old_postuninstall_cmds | \
8922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008923 # Double-quote double-evaled strings.
8924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8925 ;;
8926 *)
8927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8928 ;;
8929 esac
8930 done
8931
John Criswell47fdd832003-07-14 16:52:07 +00008932 case $lt_echo in
8933 *'\$0 --fallback-echo"')
8934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8935 ;;
8936 esac
8937
8938cfgfile="${ofile}T"
8939 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8940 $rm -f "$cfgfile"
8941 { echo "$as_me:$LINENO: creating $ofile" >&5
8942echo "$as_me: creating $ofile" >&6;}
8943
8944 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008945#! $SHELL
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008948# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8949# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8950#
John Criswell47fdd832003-07-14 16:52:07 +00008951# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8952# Free Software Foundation, Inc.
8953#
8954# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008955# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8956#
8957# This program is free software; you can redistribute it and/or modify
8958# it under the terms of the GNU General Public License as published by
8959# the Free Software Foundation; either version 2 of the License, or
8960# (at your option) any later version.
8961#
8962# This program is distributed in the hope that it will be useful, but
8963# WITHOUT ANY WARRANTY; without even the implied warranty of
8964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8965# General Public License for more details.
8966#
8967# You should have received a copy of the GNU General Public License
8968# along with this program; if not, write to the Free Software
8969# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8970#
8971# As a special exception to the GNU General Public License, if you
8972# distribute this file as part of a program that contains a
8973# configuration script generated by Autoconf, you may include it under
8974# the same distribution terms that you use for the rest of that program.
8975
John Criswell47fdd832003-07-14 16:52:07 +00008976# A sed program that does not truncate output.
8977SED=$lt_SED
8978
John Criswell7a73b802003-06-30 21:59:07 +00008979# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008980Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008981
8982# The HP-UX ksh and POSIX shell print the target directory to stdout
8983# if CDPATH is set.
8984if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8985
John Criswell47fdd832003-07-14 16:52:07 +00008986# The names of the tagged configurations supported by this script.
8987available_tags=
8988
John Criswell7a73b802003-06-30 21:59:07 +00008989# ### BEGIN LIBTOOL CONFIG
8990
8991# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8992
8993# Shell to use when invoking shell scripts.
8994SHELL=$lt_SHELL
8995
8996# Whether or not to build shared libraries.
8997build_libtool_libs=$enable_shared
8998
8999# Whether or not to build static libraries.
9000build_old_libs=$enable_static
9001
9002# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009003build_libtool_need_lc=$archive_cmds_need_lc
9004
9005# Whether or not to disallow shared libs when runtime libs are static
9006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009007
9008# Whether or not to optimize for fast installation.
9009fast_install=$enable_fast_install
9010
9011# The host system.
9012host_alias=$host_alias
9013host=$host
9014
9015# An echo program that does not interpret backslashes.
9016echo=$lt_echo
9017
9018# The archiver.
9019AR=$lt_AR
9020AR_FLAGS=$lt_AR_FLAGS
9021
John Criswell47fdd832003-07-14 16:52:07 +00009022# A C compiler.
9023LTCC=$lt_LTCC
9024
9025# A language-specific compiler.
9026CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009027
9028# Is the compiler the GNU C compiler?
9029with_gcc=$GCC
9030
John Criswell47fdd832003-07-14 16:52:07 +00009031# An ERE matcher.
9032EGREP=$lt_EGREP
9033
John Criswell7a73b802003-06-30 21:59:07 +00009034# The linker used to build libraries.
9035LD=$lt_LD
9036
9037# Whether we need hard or soft links.
9038LN_S=$lt_LN_S
9039
9040# A BSD-compatible nm program.
9041NM=$lt_NM
9042
9043# A symbol stripping program
9044STRIP=$STRIP
9045
9046# Used to examine libraries when file_magic_cmd begins "file"
9047MAGIC_CMD=$MAGIC_CMD
9048
9049# Used on cygwin: DLL creation program.
9050DLLTOOL="$DLLTOOL"
9051
9052# Used on cygwin: object dumper.
9053OBJDUMP="$OBJDUMP"
9054
9055# Used on cygwin: assembler.
9056AS="$AS"
9057
9058# The name of the directory that contains temporary libtool files.
9059objdir=$objdir
9060
9061# How to create reloadable object files.
9062reload_flag=$lt_reload_flag
9063reload_cmds=$lt_reload_cmds
9064
9065# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009066wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009067
9068# Object file suffix (normally "o").
9069objext="$ac_objext"
9070
9071# Old archive suffix (normally "a").
9072libext="$libext"
9073
John Criswell47fdd832003-07-14 16:52:07 +00009074# Shared library suffix (normally ".so").
9075shrext='$shrext'
9076
John Criswell7a73b802003-06-30 21:59:07 +00009077# Executable file suffix (normally "").
9078exeext="$exeext"
9079
9080# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009081pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009082pic_mode=$pic_mode
9083
John Criswell47fdd832003-07-14 16:52:07 +00009084# What is the maximum length of a command?
9085max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009086
John Criswell47fdd832003-07-14 16:52:07 +00009087# Does compiler simultaneously support -c and -o options?
9088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009089
9090# Must we lock files when doing compilation ?
9091need_locks=$lt_need_locks
9092
9093# Do we need the lib prefix for modules?
9094need_lib_prefix=$need_lib_prefix
9095
9096# Do we need a version for libraries?
9097need_version=$need_version
9098
9099# Whether dlopen is supported.
9100dlopen_support=$enable_dlopen
9101
9102# Whether dlopen of programs is supported.
9103dlopen_self=$enable_dlopen_self
9104
9105# Whether dlopen of statically linked programs is supported.
9106dlopen_self_static=$enable_dlopen_self_static
9107
9108# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009109link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009110
9111# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009113
9114# Compiler flag to allow reflexive dlopens.
9115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9116
9117# Compiler flag to generate shared objects directly from archives.
9118whole_archive_flag_spec=$lt_whole_archive_flag_spec
9119
9120# Compiler flag to generate thread-safe objects.
9121thread_safe_flag_spec=$lt_thread_safe_flag_spec
9122
9123# Library versioning type.
9124version_type=$version_type
9125
9126# Format of library name prefix.
9127libname_spec=$lt_libname_spec
9128
9129# List of archive names. First name is the real one, the rest are links.
9130# The last name is the one that the linker finds with -lNAME.
9131library_names_spec=$lt_library_names_spec
9132
9133# The coded name of the library, if different from the real name.
9134soname_spec=$lt_soname_spec
9135
9136# Commands used to build and install an old-style archive.
9137RANLIB=$lt_RANLIB
9138old_archive_cmds=$lt_old_archive_cmds
9139old_postinstall_cmds=$lt_old_postinstall_cmds
9140old_postuninstall_cmds=$lt_old_postuninstall_cmds
9141
9142# Create an old-style archive from a shared archive.
9143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9144
9145# Create a temporary old-style archive to link instead of a shared archive.
9146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9147
9148# Commands used to build and install a shared archive.
9149archive_cmds=$lt_archive_cmds
9150archive_expsym_cmds=$lt_archive_expsym_cmds
9151postinstall_cmds=$lt_postinstall_cmds
9152postuninstall_cmds=$lt_postuninstall_cmds
9153
John Criswell47fdd832003-07-14 16:52:07 +00009154# Commands used to build a loadable module (assumed same as above if empty)
9155module_cmds=$lt_module_cmds
9156module_expsym_cmds=$lt_module_expsym_cmds
9157
John Criswell7a73b802003-06-30 21:59:07 +00009158# Commands to strip libraries.
9159old_striplib=$lt_old_striplib
9160striplib=$lt_striplib
9161
John Criswell47fdd832003-07-14 16:52:07 +00009162# Dependencies to place before the objects being linked to create a
9163# shared library.
9164predep_objects=$lt_predep_objects
9165
9166# Dependencies to place after the objects being linked to create a
9167# shared library.
9168postdep_objects=$lt_postdep_objects
9169
9170# Dependencies to place before the objects being linked to create a
9171# shared library.
9172predeps=$lt_predeps
9173
9174# Dependencies to place after the objects being linked to create a
9175# shared library.
9176postdeps=$lt_postdeps
9177
9178# The library search path used internally by the compiler when linking
9179# a shared library.
9180compiler_lib_search_path=$lt_compiler_lib_search_path
9181
John Criswell7a73b802003-06-30 21:59:07 +00009182# Method to check whether dependent libraries are shared objects.
9183deplibs_check_method=$lt_deplibs_check_method
9184
9185# Command to use when deplibs_check_method == file_magic.
9186file_magic_cmd=$lt_file_magic_cmd
9187
9188# Flag that allows shared libraries with undefined symbols to be built.
9189allow_undefined_flag=$lt_allow_undefined_flag
9190
9191# Flag that forces no undefined symbols.
9192no_undefined_flag=$lt_no_undefined_flag
9193
9194# Commands used to finish a libtool library installation in a directory.
9195finish_cmds=$lt_finish_cmds
9196
9197# Same as above, but a single script fragment to be evaled but not shown.
9198finish_eval=$lt_finish_eval
9199
9200# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009202
9203# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009205
9206# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009208
9209# This is the shared library runtime path variable.
9210runpath_var=$runpath_var
9211
9212# This is the shared library path variable.
9213shlibpath_var=$shlibpath_var
9214
9215# Is shlibpath searched before the hard-coded library search path?
9216shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9217
9218# How to hardcode a shared library path into an executable.
9219hardcode_action=$hardcode_action
9220
9221# Whether we should hardcode library paths into libraries.
9222hardcode_into_libs=$hardcode_into_libs
9223
9224# Flag to hardcode \$libdir into a binary during linking.
9225# This must work even if \$libdir does not exist.
9226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9227
John Criswell47fdd832003-07-14 16:52:07 +00009228# If ld is used when linking, flag to hardcode \$libdir into
9229# a binary during linking. This must work even if \$libdir does
9230# not exist.
9231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9232
John Criswell7a73b802003-06-30 21:59:07 +00009233# Whether we need a single -rpath flag with a separated argument.
9234hardcode_libdir_separator=$lt_hardcode_libdir_separator
9235
John Criswell47fdd832003-07-14 16:52:07 +00009236# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009237# resulting binary.
9238hardcode_direct=$hardcode_direct
9239
9240# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9241# resulting binary.
9242hardcode_minus_L=$hardcode_minus_L
9243
9244# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9245# the resulting binary.
9246hardcode_shlibpath_var=$hardcode_shlibpath_var
9247
John Criswell47fdd832003-07-14 16:52:07 +00009248# Set to yes if building a shared library automatically hardcodes DIR into the library
9249# and all subsequent libraries and executables linked against it.
9250hardcode_automatic=$hardcode_automatic
9251
John Criswell7a73b802003-06-30 21:59:07 +00009252# Variables whose values should be saved in libtool wrapper scripts and
9253# restored at relink time.
9254variables_saved_for_relink="$variables_saved_for_relink"
9255
9256# Whether libtool must link a program against all its dependency libraries.
9257link_all_deplibs=$link_all_deplibs
9258
9259# Compile-time system search path for libraries
9260sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9261
9262# Run-time system search path for libraries
9263sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9264
9265# Fix the shell variable \$srcfile for the compiler.
9266fix_srcfile_path="$fix_srcfile_path"
9267
9268# Set to yes if exported symbols are required.
9269always_export_symbols=$always_export_symbols
9270
9271# The commands to list exported symbols.
9272export_symbols_cmds=$lt_export_symbols_cmds
9273
9274# The commands to extract the exported symbol list from a shared archive.
9275extract_expsyms_cmds=$lt_extract_expsyms_cmds
9276
9277# Symbols that should not be listed in the preloaded symbols.
9278exclude_expsyms=$lt_exclude_expsyms
9279
9280# Symbols that must always be exported.
9281include_expsyms=$lt_include_expsyms
9282
9283# ### END LIBTOOL CONFIG
9284
9285__EOF__
9286
John Criswell47fdd832003-07-14 16:52:07 +00009287
John Criswell7a73b802003-06-30 21:59:07 +00009288 case $host_os in
9289 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009290 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009291
9292# AIX sometimes has problems with the GCC collect2 program. For some
9293# reason, if we set the COLLECT_NAMES environment variable, the problems
9294# vanish in a puff of smoke.
9295if test "X${COLLECT_NAMES+set}" != Xset; then
9296 COLLECT_NAMES=
9297 export COLLECT_NAMES
9298fi
9299EOF
9300 ;;
9301 esac
9302
John Criswell7a73b802003-06-30 21:59:07 +00009303 # We use sed instead of cat because bash on DJGPP gets confused if
9304 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9305 # text mode, it properly converts lines to CR/LF. This bash problem
9306 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009307 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009308
John Criswell47fdd832003-07-14 16:52:07 +00009309 mv -f "$cfgfile" "$ofile" || \
9310 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009311 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009312
9313else
9314 # If there is no Makefile yet, we rely on a make rule to execute
9315 # `config.status --recheck' to rerun these tests and create the
9316 # libtool script then.
9317 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009318fi
John Criswell7a73b802003-06-30 21:59:07 +00009319
9320
John Criswell47fdd832003-07-14 16:52:07 +00009321ac_ext=c
9322ac_cpp='$CPP $CPPFLAGS'
9323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327CC="$lt_save_CC"
9328
9329
9330# Check whether --with-tags or --without-tags was given.
9331if test "${with_tags+set}" = set; then
9332 withval="$with_tags"
9333 tagnames="$withval"
9334fi;
9335
9336if test -f "$ltmain" && test -n "$tagnames"; then
9337 if test ! -f "${ofile}"; then
9338 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9339echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9340 fi
9341
9342 if test -z "$LTCC"; then
9343 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9344 if test -z "$LTCC"; then
9345 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9346echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9347 else
9348 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9349echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9350 fi
9351 fi
9352
9353 # Extract list of available tagged configurations in $ofile.
9354 # Note that this assumes the entire list is on one line.
9355 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9356
9357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9358 for tagname in $tagnames; do
9359 IFS="$lt_save_ifs"
9360 # Check whether tagname contains only valid characters
9361 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9362 "") ;;
9363 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9364echo "$as_me: error: invalid tag name: $tagname" >&2;}
9365 { (exit 1); exit 1; }; }
9366 ;;
9367 esac
9368
9369 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9370 then
9371 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9372echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9373 { (exit 1); exit 1; }; }
9374 fi
9375
9376 # Update the list of available tags.
9377 if test -n "$tagname"; then
9378 echo appending configuration tag \"$tagname\" to $ofile
9379
9380 case $tagname in
9381 CXX)
9382 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9383 ac_ext=cc
9384ac_cpp='$CXXCPP $CPPFLAGS'
9385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9388
9389
9390
9391
9392archive_cmds_need_lc_CXX=no
9393allow_undefined_flag_CXX=
9394always_export_symbols_CXX=no
9395archive_expsym_cmds_CXX=
9396export_dynamic_flag_spec_CXX=
9397hardcode_direct_CXX=no
9398hardcode_libdir_flag_spec_CXX=
9399hardcode_libdir_flag_spec_ld_CXX=
9400hardcode_libdir_separator_CXX=
9401hardcode_minus_L_CXX=no
9402hardcode_automatic_CXX=no
9403module_cmds_CXX=
9404module_expsym_cmds_CXX=
9405link_all_deplibs_CXX=unknown
9406old_archive_cmds_CXX=$old_archive_cmds
9407no_undefined_flag_CXX=
9408whole_archive_flag_spec_CXX=
9409enable_shared_with_static_runtimes_CXX=no
9410
9411# Dependencies to place before and after the object being linked:
9412predep_objects_CXX=
9413postdep_objects_CXX=
9414predeps_CXX=
9415postdeps_CXX=
9416compiler_lib_search_path_CXX=
9417
9418# Source file extension for C++ test sources.
9419ac_ext=cc
9420
9421# Object file extension for compiled C++ test sources.
9422objext=o
9423objext_CXX=$objext
9424
9425# Code to be used in simple compile tests
9426lt_simple_compile_test_code="int some_variable = 0;\n"
9427
9428# Code to be used in simple link tests
9429lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9430
9431# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9432
9433# If no C compiler was specified, use CC.
9434LTCC=${LTCC-"$CC"}
9435
9436# Allow CC to be a program name with arguments.
9437compiler=$CC
9438
9439
9440# Allow CC to be a program name with arguments.
9441lt_save_CC=$CC
9442lt_save_LD=$LD
9443lt_save_GCC=$GCC
9444GCC=$GXX
9445lt_save_with_gnu_ld=$with_gnu_ld
9446lt_save_path_LD=$lt_cv_path_LD
9447if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9448 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9449else
9450 unset lt_cv_prog_gnu_ld
9451fi
9452if test -n "${lt_cv_path_LDCXX+set}"; then
9453 lt_cv_path_LD=$lt_cv_path_LDCXX
9454else
9455 unset lt_cv_path_LD
9456fi
9457test -z "${LDCXX+set}" || LD=$LDCXX
9458CC=${CXX-"c++"}
9459compiler=$CC
9460compiler_CXX=$CC
9461cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9462
9463# We don't want -fno-exception wen compiling C++ code, so set the
9464# no_builtin_flag separately
9465if test "$GXX" = yes; then
9466 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9467else
9468 lt_prog_compiler_no_builtin_flag_CXX=
9469fi
9470
9471if test "$GXX" = yes; then
9472 # Set up default GNU C++ configuration
9473
9474
9475# Check whether --with-gnu-ld or --without-gnu-ld was given.
9476if test "${with_gnu_ld+set}" = set; then
9477 withval="$with_gnu_ld"
9478 test "$withval" = no || with_gnu_ld=yes
9479else
9480 with_gnu_ld=no
9481fi;
9482ac_prog=ld
9483if test "$GCC" = yes; then
9484 # Check if gcc -print-prog-name=ld gives a path.
9485 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9486echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9487 case $host in
9488 *-*-mingw*)
9489 # gcc leaves a trailing carriage return which upsets mingw
9490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9491 *)
9492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9493 esac
9494 case $ac_prog in
9495 # Accept absolute paths.
9496 [\\/]* | ?:[\\/]*)
9497 re_direlt='/[^/][^/]*/\.\./'
9498 # Canonicalize the path of ld
9499 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9500 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9501 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9502 done
9503 test -z "$LD" && LD="$ac_prog"
9504 ;;
9505 "")
9506 # If it fails, then pretend we aren't using GCC.
9507 ac_prog=ld
9508 ;;
9509 *)
9510 # If it is relative, then search for the first ld in PATH.
9511 with_gnu_ld=unknown
9512 ;;
9513 esac
9514elif test "$with_gnu_ld" = yes; then
9515 echo "$as_me:$LINENO: checking for GNU ld" >&5
9516echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9517else
9518 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9519echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9520fi
9521if test "${lt_cv_path_LD+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524 if test -z "$LD"; then
9525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9526 for ac_dir in $PATH; do
9527 IFS="$lt_save_ifs"
9528 test -z "$ac_dir" && ac_dir=.
9529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9530 lt_cv_path_LD="$ac_dir/$ac_prog"
9531 # Check to see if the program is GNU ld. I'd rather use --version,
9532 # but apparently some GNU ld's only accept -v.
9533 # Break only if it was the GNU/non-GNU ld that we prefer.
9534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9535 *GNU* | *'with BFD'*)
9536 test "$with_gnu_ld" != no && break
9537 ;;
9538 *)
9539 test "$with_gnu_ld" != yes && break
9540 ;;
9541 esac
9542 fi
9543 done
9544 IFS="$lt_save_ifs"
9545else
9546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9547fi
9548fi
9549
9550LD="$lt_cv_path_LD"
9551if test -n "$LD"; then
9552 echo "$as_me:$LINENO: result: $LD" >&5
9553echo "${ECHO_T}$LD" >&6
9554else
9555 echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6
9557fi
9558test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9559echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9560 { (exit 1); exit 1; }; }
9561echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9562echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9563if test "${lt_cv_prog_gnu_ld+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565else
9566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9567case `"$LD" -v 2>&1 </dev/null` in
9568*GNU* | *'with BFD'*)
9569 lt_cv_prog_gnu_ld=yes
9570 ;;
9571*)
9572 lt_cv_prog_gnu_ld=no
9573 ;;
9574esac
9575fi
9576echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9577echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9578with_gnu_ld=$lt_cv_prog_gnu_ld
9579
9580
9581
9582 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9583 # archiving commands below assume that GNU ld is being used.
9584 if test "$with_gnu_ld" = yes; then
9585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586 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'
9587
9588 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9590
9591 # If archive_cmds runs LD, not CC, wlarc should be empty
9592 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9593 # investigate it a little bit more. (MM)
9594 wlarc='${wl}'
9595
9596 # ancient GNU ld didn't support --whole-archive et. al.
9597 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9598 grep 'no-whole-archive' > /dev/null; then
9599 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9600 else
9601 whole_archive_flag_spec_CXX=
9602 fi
9603 else
9604 with_gnu_ld=no
9605 wlarc=
9606
9607 # A generic and very simple default shared library creation
9608 # command for GNU C++ for the case where it uses the native
9609 # linker, instead of GNU ld. If possible, this setting should
9610 # overridden to take advantage of the native linker features on
9611 # the platform it is being used on.
9612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9613 fi
9614
9615 # Commands to make compiler produce verbose output that lists
9616 # what "hidden" libraries, object files and flags are used when
9617 # linking a shared library.
9618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9619
9620else
9621 GXX=no
9622 with_gnu_ld=no
9623 wlarc=
9624fi
9625
9626# PORTME: fill in a description of your system's C++ link characteristics
9627echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9628echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9629ld_shlibs_CXX=yes
9630case $host_os in
9631 aix3*)
9632 # FIXME: insert proper C++ library support
9633 ld_shlibs_CXX=no
9634 ;;
9635 aix4* | aix5*)
9636 if test "$host_cpu" = ia64; then
9637 # On IA64, the linker does run time linking by default, so we don't
9638 # have to do anything special.
9639 aix_use_runtimelinking=no
9640 exp_sym_flag='-Bexport'
9641 no_entry_flag=""
9642 else
9643 aix_use_runtimelinking=no
9644
9645 # Test if we are trying to use run time linking or normal
9646 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9647 # need to do runtime linking.
9648 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9649 for ld_flag in $LDFLAGS; do
9650 case $ld_flag in
9651 *-brtl*)
9652 aix_use_runtimelinking=yes
9653 break
9654 ;;
9655 esac
9656 done
9657 esac
9658
9659 exp_sym_flag='-bexport'
9660 no_entry_flag='-bnoentry'
9661 fi
9662
9663 # When large executables or shared objects are built, AIX ld can
9664 # have problems creating the table of contents. If linking a library
9665 # or program results in "error TOC overflow" add -mminimal-toc to
9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668
9669 archive_cmds_CXX=''
9670 hardcode_direct_CXX=yes
9671 hardcode_libdir_separator_CXX=':'
9672 link_all_deplibs_CXX=yes
9673
9674 if test "$GXX" = yes; then
9675 case $host_os in aix4.012|aix4.012.*)
9676 # We only want to do this on AIX 4.2 and lower, the check
9677 # below for broken collect2 doesn't work under 4.3+
9678 collect2name=`${CC} -print-prog-name=collect2`
9679 if test -f "$collect2name" && \
9680 strings "$collect2name" | grep resolve_lib_name >/dev/null
9681 then
9682 # We have reworked collect2
9683 hardcode_direct_CXX=yes
9684 else
9685 # We have old collect2
9686 hardcode_direct_CXX=unsupported
9687 # It fails to find uninstalled libraries when the uninstalled
9688 # path is not listed in the libpath. Setting hardcode_minus_L
9689 # to unsupported forces relinking
9690 hardcode_minus_L_CXX=yes
9691 hardcode_libdir_flag_spec_CXX='-L$libdir'
9692 hardcode_libdir_separator_CXX=
9693 fi
9694 esac
9695 shared_flag='-shared'
9696 else
9697 # not using gcc
9698 if test "$host_cpu" = ia64; then
9699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9700 # chokes on -Wl,-G. The following line is correct:
9701 shared_flag='-G'
9702 else
9703 if test "$aix_use_runtimelinking" = yes; then
9704 shared_flag='${wl}-G'
9705 else
9706 shared_flag='${wl}-bM:SRE'
9707 fi
9708 fi
9709 fi
9710
9711 # It seems that -bexpall does not export symbols beginning with
9712 # underscore (_), so it is better to generate a list of symbols to export.
9713 always_export_symbols_CXX=yes
9714 if test "$aix_use_runtimelinking" = yes; then
9715 # Warning - without using the other runtime loading flags (-brtl),
9716 # -berok will link without error, but may produce a broken library.
9717 allow_undefined_flag_CXX='-berok'
9718 # Determine the default libpath from the value encoded in an empty executable.
9719 cat >conftest.$ac_ext <<_ACEOF
9720#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009726
John Criswell47fdd832003-07-14 16:52:07 +00009727int
9728main ()
9729{
9730
9731 ;
9732 return 0;
9733}
9734_ACEOF
9735rm -f conftest.$ac_objext conftest$ac_exeext
9736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747
9748aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9749}'`
9750# Check for a 64-bit object if we didn't find anything.
9751if 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; }
9752}'`; fi
9753else
9754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009755sed 's/^/| /' conftest.$ac_ext >&5
9756
John Criswell47fdd832003-07-14 16:52:07 +00009757fi
9758rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9759if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9760
9761 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9762
9763 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"
9764 else
9765 if test "$host_cpu" = ia64; then
9766 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9767 allow_undefined_flag_CXX="-z nodefs"
9768 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"
9769 else
9770 # Determine the default libpath from the value encoded in an empty executable.
9771 cat >conftest.$ac_ext <<_ACEOF
9772#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009773/* confdefs.h. */
9774_ACEOF
9775cat confdefs.h >>conftest.$ac_ext
9776cat >>conftest.$ac_ext <<_ACEOF
9777/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009778
John Criswell47fdd832003-07-14 16:52:07 +00009779int
9780main ()
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext conftest$ac_exeext
9788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799
9800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9801}'`
9802# Check for a 64-bit object if we didn't find anything.
9803if 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; }
9804}'`; fi
9805else
9806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009807sed 's/^/| /' conftest.$ac_ext >&5
9808
John Criswell47fdd832003-07-14 16:52:07 +00009809fi
9810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9812
9813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9814 # Warning - without using the other run time loading flags,
9815 # -berok will link without error, but may produce a broken library.
9816 no_undefined_flag_CXX=' ${wl}-bernotok'
9817 allow_undefined_flag_CXX=' ${wl}-berok'
9818 # -bexpall does not export symbols beginning with underscore (_)
9819 always_export_symbols_CXX=yes
9820 # Exported symbols can be pulled into shared objects from archives
9821 whole_archive_flag_spec_CXX=' '
9822 archive_cmds_need_lc_CXX=yes
9823 # This is similar to how AIX traditionally builds it's shared libraries.
9824 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'
9825 fi
9826 fi
9827 ;;
9828 chorus*)
9829 case $cc_basename in
9830 *)
9831 # FIXME: insert proper C++ library support
9832 ld_shlibs_CXX=no
9833 ;;
9834 esac
9835 ;;
9836
9837 cygwin* | mingw* | pw32*)
9838 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9839 # as there is no search path for DLLs.
9840 hardcode_libdir_flag_spec_CXX='-L$libdir'
9841 allow_undefined_flag_CXX=unsupported
9842 always_export_symbols_CXX=no
9843 enable_shared_with_static_runtimes_CXX=yes
9844
9845 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9846 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'
9847 # If the export-symbols file already is a .def file (1st line
9848 # is EXPORTS), use it as is; otherwise, prepend...
9849 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9850 cp $export_symbols $output_objdir/$soname.def;
9851 else
9852 echo EXPORTS > $output_objdir/$soname.def;
9853 cat $export_symbols >> $output_objdir/$soname.def;
9854 fi~
9855 $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'
9856 else
9857 ld_shlibs_CXX=no
9858 fi
9859 ;;
9860
9861 darwin* | rhapsody*)
9862 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9863 archive_cmds_need_lc_CXX=no
9864 case "$host_os" in
9865 rhapsody* | darwin1.[012])
9866 allow_undefined_flag_CXX='-undefined suppress'
9867 ;;
9868 *) # Darwin 1.3 on
9869 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9870 ;;
9871 esac
9872 lt_int_apple_cc_single_mod=no
9873 output_verbose_link_cmd='echo'
9874 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9875 lt_int_apple_cc_single_mod=yes
9876 fi
9877 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9878 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9879 else
9880 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'
9881 fi
9882 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9883
9884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9885 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9886 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}'
9887 else
9888 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}'
9889 fi
9890 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}'
9891 hardcode_direct_CXX=no
9892 hardcode_automatic_CXX=yes
9893 hardcode_shlibpath_var_CXX=unsupported
9894 whole_archive_flag_spec_CXX='-all_load $convenience'
9895 link_all_deplibs_CXX=yes
9896 fi
9897 ;;
9898
9899 dgux*)
9900 case $cc_basename in
9901 ec++)
9902 # FIXME: insert proper C++ library support
9903 ld_shlibs_CXX=no
9904 ;;
9905 ghcx)
9906 # Green Hills C++ Compiler
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 *)
9911 # FIXME: insert proper C++ library support
9912 ld_shlibs_CXX=no
9913 ;;
9914 esac
9915 ;;
9916 freebsd12*)
9917 # C++ shared libraries reported to be fairly broken before switch to ELF
9918 ld_shlibs_CXX=no
9919 ;;
9920 freebsd-elf*)
9921 archive_cmds_need_lc_CXX=no
9922 ;;
9923 freebsd*)
9924 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9925 # conventions
9926 ld_shlibs_CXX=yes
9927 ;;
9928 gnu*)
9929 ;;
9930 hpux9*)
9931 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9932 hardcode_libdir_separator_CXX=:
9933 export_dynamic_flag_spec_CXX='${wl}-E'
9934 hardcode_direct_CXX=yes
9935 hardcode_minus_L_CXX=yes # Not in the search PATH,
9936 # but as the default
9937 # location of the library.
9938
9939 case $cc_basename in
9940 CC)
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 ;;
9944 aCC)
9945 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'
9946 # Commands to make compiler produce verbose output that lists
9947 # what "hidden" libraries, object files and flags are used when
9948 # linking a shared library.
9949 #
9950 # There doesn't appear to be a way to prevent this compiler from
9951 # explicitly linking system object files so we need to strip them
9952 # from the output so that they don't get included in the library
9953 # dependencies.
9954 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'
9955 ;;
9956 *)
9957 if test "$GXX" = yes; then
9958 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'
9959 else
9960 # FIXME: insert proper C++ library support
9961 ld_shlibs_CXX=no
9962 fi
9963 ;;
9964 esac
9965 ;;
9966 hpux10*|hpux11*)
9967 if test $with_gnu_ld = no; then
9968 case "$host_cpu" in
9969 hppa*64*)
9970 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9972 hardcode_libdir_separator_CXX=:
9973 ;;
9974 ia64*)
9975 hardcode_libdir_flag_spec_CXX='-L$libdir'
9976 ;;
9977 *)
9978 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator_CXX=:
9980 export_dynamic_flag_spec_CXX='${wl}-E'
9981 ;;
9982 esac
9983 fi
9984 case "$host_cpu" in
9985 hppa*64*)
9986 hardcode_direct_CXX=no
9987 hardcode_shlibpath_var_CXX=no
9988 ;;
9989 ia64*)
9990 hardcode_direct_CXX=no
9991 hardcode_shlibpath_var_CXX=no
9992 hardcode_minus_L_CXX=yes # Not in the search PATH,
9993 # but as the default
9994 # location of the library.
9995 ;;
9996 *)
9997 hardcode_direct_CXX=yes
9998 hardcode_minus_L_CXX=yes # Not in the search PATH,
9999 # but as the default
10000 # location of the library.
10001 ;;
10002 esac
10003
10004 case $cc_basename in
10005 CC)
10006 # FIXME: insert proper C++ library support
10007 ld_shlibs_CXX=no
10008 ;;
10009 aCC)
10010 case "$host_cpu" in
10011 hppa*64*|ia64*)
10012 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10013 ;;
10014 *)
10015 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10016 ;;
10017 esac
10018 # Commands to make compiler produce verbose output that lists
10019 # what "hidden" libraries, object files and flags are used when
10020 # linking a shared library.
10021 #
10022 # There doesn't appear to be a way to prevent this compiler from
10023 # explicitly linking system object files so we need to strip them
10024 # from the output so that they don't get included in the library
10025 # dependencies.
10026 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'
10027 ;;
10028 *)
10029 if test "$GXX" = yes; then
10030 if test $with_gnu_ld = no; then
10031 case "$host_cpu" in
10032 ia64*|hppa*64*)
10033 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10034 ;;
10035 *)
10036 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'
10037 ;;
10038 esac
10039 fi
10040 else
10041 # FIXME: insert proper C++ library support
10042 ld_shlibs_CXX=no
10043 fi
10044 ;;
10045 esac
10046 ;;
10047 irix5* | irix6*)
10048 case $cc_basename in
10049 CC)
10050 # SGI C++
10051 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'
10052
10053 # Archives containing C++ object files must be created using
10054 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10055 # necessary to make sure instantiated templates are included
10056 # in the archive.
10057 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10058 ;;
10059 *)
10060 if test "$GXX" = yes; then
10061 if test "$with_gnu_ld" = no; then
10062 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'
10063 else
10064 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'
10065 fi
10066 fi
10067 link_all_deplibs_CXX=yes
10068 ;;
10069 esac
10070 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator_CXX=:
10072 ;;
10073 linux*)
10074 case $cc_basename in
10075 KCC)
10076 # Kuck and Associates, Inc. (KAI) C++ Compiler
10077
10078 # KCC will only create a shared library if the output file
10079 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10080 # to its proper name (with version) after linking.
10081 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'
10082 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'
10083 # Commands to make compiler produce verbose output that lists
10084 # what "hidden" libraries, object files and flags are used when
10085 # linking a shared library.
10086 #
10087 # There doesn't appear to be a way to prevent this compiler from
10088 # explicitly linking system object files so we need to strip them
10089 # from the output so that they don't get included in the library
10090 # dependencies.
10091 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'
10092
10093 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10095
10096 # Archives containing C++ object files must be created using
10097 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10098 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10099 ;;
10100 icpc)
10101 # Intel C++
10102 with_gnu_ld=yes
10103 archive_cmds_need_lc_CXX=no
10104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 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'
10106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10108 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10109 ;;
10110 cxx)
10111 # Compaq C++
10112 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113 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'
10114
10115 runpath_var=LD_RUN_PATH
10116 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10117 hardcode_libdir_separator_CXX=:
10118
10119 # Commands to make compiler produce verbose output that lists
10120 # what "hidden" libraries, object files and flags are used when
10121 # linking a shared library.
10122 #
10123 # There doesn't appear to be a way to prevent this compiler from
10124 # explicitly linking system object files so we need to strip them
10125 # from the output so that they don't get included in the library
10126 # dependencies.
10127 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'
10128 ;;
10129 esac
10130 ;;
10131 lynxos*)
10132 # FIXME: insert proper C++ library support
10133 ld_shlibs_CXX=no
10134 ;;
10135 m88k*)
10136 # FIXME: insert proper C++ library support
10137 ld_shlibs_CXX=no
10138 ;;
10139 mvs*)
10140 case $cc_basename in
10141 cxx)
10142 # FIXME: insert proper C++ library support
10143 ld_shlibs_CXX=no
10144 ;;
10145 *)
10146 # FIXME: insert proper C++ library support
10147 ld_shlibs_CXX=no
10148 ;;
10149 esac
10150 ;;
10151 netbsd*)
10152 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10153 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10154 wlarc=
10155 hardcode_libdir_flag_spec_CXX='-R$libdir'
10156 hardcode_direct_CXX=yes
10157 hardcode_shlibpath_var_CXX=no
10158 fi
10159 # Workaround some broken pre-1.5 toolchains
10160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10161 ;;
10162 osf3*)
10163 case $cc_basename in
10164 KCC)
10165 # Kuck and Associates, Inc. (KAI) C++ Compiler
10166
10167 # KCC will only create a shared library if the output file
10168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10169 # to its proper name (with version) after linking.
10170 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'
10171
10172 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10173 hardcode_libdir_separator_CXX=:
10174
10175 # Archives containing C++ object files must be created using
10176 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10177 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10178
10179 ;;
10180 RCC)
10181 # Rational C++ 2.4.1
10182 # FIXME: insert proper C++ library support
10183 ld_shlibs_CXX=no
10184 ;;
10185 cxx)
10186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10187 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'
10188
10189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10190 hardcode_libdir_separator_CXX=:
10191
10192 # Commands to make compiler produce verbose output that lists
10193 # what "hidden" libraries, object files and flags are used when
10194 # linking a shared library.
10195 #
10196 # There doesn't appear to be a way to prevent this compiler from
10197 # explicitly linking system object files so we need to strip them
10198 # from the output so that they don't get included in the library
10199 # dependencies.
10200 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | 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'
10201 ;;
10202 *)
10203 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10204 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10205 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'
10206
10207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10208 hardcode_libdir_separator_CXX=:
10209
10210 # Commands to make compiler produce verbose output that lists
10211 # what "hidden" libraries, object files and flags are used when
10212 # linking a shared library.
10213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10214
10215 else
10216 # FIXME: insert proper C++ library support
10217 ld_shlibs_CXX=no
10218 fi
10219 ;;
10220 esac
10221 ;;
10222 osf4* | osf5*)
10223 case $cc_basename in
10224 KCC)
10225 # Kuck and Associates, Inc. (KAI) C++ Compiler
10226
10227 # KCC will only create a shared library if the output file
10228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10229 # to its proper name (with version) after linking.
10230 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'
10231
10232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233 hardcode_libdir_separator_CXX=:
10234
10235 # Archives containing C++ object files must be created using
10236 # the KAI C++ compiler.
10237 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10238 ;;
10239 RCC)
10240 # Rational C++ 2.4.1
10241 # FIXME: insert proper C++ library support
10242 ld_shlibs_CXX=no
10243 ;;
10244 cxx)
10245 allow_undefined_flag_CXX=' -expect_unresolved \*'
10246 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'
10247 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10248 echo "-hidden">> $lib.exp~
10249 $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~
10250 $rm $lib.exp'
10251
10252 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10253 hardcode_libdir_separator_CXX=:
10254
10255 # Commands to make compiler produce verbose output that lists
10256 # what "hidden" libraries, object files and flags are used when
10257 # linking a shared library.
10258 #
10259 # There doesn't appear to be a way to prevent this compiler from
10260 # explicitly linking system object files so we need to strip them
10261 # from the output so that they don't get included in the library
10262 # dependencies.
10263 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'
10264 ;;
10265 *)
10266 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10267 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10268 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'
10269
10270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10271 hardcode_libdir_separator_CXX=:
10272
10273 # Commands to make compiler produce verbose output that lists
10274 # what "hidden" libraries, object files and flags are used when
10275 # linking a shared library.
10276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10277
10278 else
10279 # FIXME: insert proper C++ library support
10280 ld_shlibs_CXX=no
10281 fi
10282 ;;
10283 esac
10284 ;;
10285 psos*)
10286 # FIXME: insert proper C++ library support
10287 ld_shlibs_CXX=no
10288 ;;
10289 sco*)
10290 archive_cmds_need_lc_CXX=no
10291 case $cc_basename in
10292 CC)
10293 # FIXME: insert proper C++ library support
10294 ld_shlibs_CXX=no
10295 ;;
10296 *)
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 esac
10301 ;;
10302 sunos4*)
10303 case $cc_basename in
10304 CC)
10305 # Sun C++ 4.x
10306 # FIXME: insert proper C++ library support
10307 ld_shlibs_CXX=no
10308 ;;
10309 lcc)
10310 # Lucid
10311 # FIXME: insert proper C++ library support
10312 ld_shlibs_CXX=no
10313 ;;
10314 *)
10315 # FIXME: insert proper C++ library support
10316 ld_shlibs_CXX=no
10317 ;;
10318 esac
10319 ;;
10320 solaris*)
10321 case $cc_basename in
10322 CC)
10323 # Sun C++ 4.2, 5.x and Centerline C++
10324 no_undefined_flag_CXX=' -zdefs'
10325 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10326 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10327 $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'
10328
10329 hardcode_libdir_flag_spec_CXX='-R$libdir'
10330 hardcode_shlibpath_var_CXX=no
10331 case $host_os in
10332 solaris2.0-5 | solaris2.0-5.*) ;;
10333 *)
10334 # The C++ compiler is used as linker so we must use $wl
10335 # flag to pass the commands to the underlying system
10336 # linker.
10337 # Supported since Solaris 2.6 (maybe 2.5.1?)
10338 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10339 ;;
10340 esac
10341 link_all_deplibs_CXX=yes
10342
10343 # Commands to make compiler produce verbose output that lists
10344 # what "hidden" libraries, object files and flags are used when
10345 # linking a shared library.
10346 #
10347 # There doesn't appear to be a way to prevent this compiler from
10348 # explicitly linking system object files so we need to strip them
10349 # from the output so that they don't get included in the library
10350 # dependencies.
10351 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'
10352
10353 # Archives containing C++ object files must be created using
10354 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10355 # necessary to make sure instantiated templates are included
10356 # in the archive.
10357 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10358 ;;
10359 gcx)
10360 # Green Hills C++ Compiler
10361 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10362
10363 # The C++ compiler must be used to create the archive.
10364 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10365 ;;
10366 *)
10367 # GNU C++ compiler with Solaris linker
10368 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10369 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10370 if $CC --version | grep -v '^2\.7' > /dev/null; then
10371 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10372 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10373 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10374
10375 # Commands to make compiler produce verbose output that lists
10376 # what "hidden" libraries, object files and flags are used when
10377 # linking a shared library.
10378 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10379 else
10380 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10381 # platform.
10382 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10383 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10384 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10385
10386 # Commands to make compiler produce verbose output that lists
10387 # what "hidden" libraries, object files and flags are used when
10388 # linking a shared library.
10389 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10390 fi
10391
10392 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10393 fi
10394 ;;
10395 esac
10396 ;;
10397 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10398 archive_cmds_need_lc_CXX=no
10399 ;;
10400 tandem*)
10401 case $cc_basename in
10402 NCC)
10403 # NonStop-UX NCC 3.20
10404 # FIXME: insert proper C++ library support
10405 ld_shlibs_CXX=no
10406 ;;
10407 *)
10408 # FIXME: insert proper C++ library support
10409 ld_shlibs_CXX=no
10410 ;;
10411 esac
10412 ;;
10413 vxworks*)
10414 # FIXME: insert proper C++ library support
10415 ld_shlibs_CXX=no
10416 ;;
10417 *)
10418 # FIXME: insert proper C++ library support
10419 ld_shlibs_CXX=no
10420 ;;
10421esac
10422echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10423echo "${ECHO_T}$ld_shlibs_CXX" >&6
10424test "$ld_shlibs_CXX" = no && can_build_shared=no
10425
10426GCC_CXX="$GXX"
10427LD_CXX="$LD"
10428
10429## CAVEAT EMPTOR:
10430## There is no encapsulation within the following macros, do not change
10431## the running order or otherwise move them around unless you know exactly
10432## what you are doing...
10433
10434cat > conftest.$ac_ext <<EOF
10435class Foo
10436{
10437public:
10438 Foo (void) { a = 0; }
10439private:
10440 int a;
10441};
10442EOF
10443
10444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; then
10449 # Parse the compiler output and extract the necessary
10450 # objects, libraries and library flags.
10451
10452 # Sentinel used to keep track of whether or not we are before
10453 # the conftest object file.
10454 pre_test_object_deps_done=no
10455
10456 # The `*' in the case matches for architectures that use `case' in
10457 # $output_verbose_cmd can trigger glob expansion during the loop
10458 # eval without this substitution.
10459 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10460
10461 for p in `eval $output_verbose_link_cmd`; do
10462 case $p in
10463
10464 -L* | -R* | -l*)
10465 # Some compilers place space between "-{L,R}" and the path.
10466 # Remove the space.
10467 if test $p = "-L" \
10468 || test $p = "-R"; then
10469 prev=$p
10470 continue
10471 else
10472 prev=
10473 fi
10474
10475 if test "$pre_test_object_deps_done" = no; then
10476 case $p in
10477 -L* | -R*)
10478 # Internal compiler library paths should come after those
10479 # provided the user. The postdeps already come after the
10480 # user supplied libs so there is no need to process them.
10481 if test -z "$compiler_lib_search_path_CXX"; then
10482 compiler_lib_search_path_CXX="${prev}${p}"
10483 else
10484 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10485 fi
10486 ;;
10487 # The "-l" case would never come before the object being
10488 # linked, so don't bother handling this case.
10489 esac
10490 else
10491 if test -z "$postdeps_CXX"; then
10492 postdeps_CXX="${prev}${p}"
10493 else
10494 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10495 fi
10496 fi
10497 ;;
10498
10499 *.$objext)
10500 # This assumes that the test object file only shows up
10501 # once in the compiler output.
10502 if test "$p" = "conftest.$objext"; then
10503 pre_test_object_deps_done=yes
10504 continue
10505 fi
10506
10507 if test "$pre_test_object_deps_done" = no; then
10508 if test -z "$predep_objects_CXX"; then
10509 predep_objects_CXX="$p"
10510 else
10511 predep_objects_CXX="$predep_objects_CXX $p"
10512 fi
10513 else
10514 if test -z "$postdep_objects_CXX"; then
10515 postdep_objects_CXX="$p"
10516 else
10517 postdep_objects_CXX="$postdep_objects_CXX $p"
10518 fi
10519 fi
10520 ;;
10521
10522 *) ;; # Ignore the rest.
10523
10524 esac
10525 done
10526
10527 # Clean up.
10528 rm -f a.out a.exe
10529else
10530 echo "libtool.m4: error: problem compiling CXX test program"
10531fi
10532
10533$rm -f confest.$objext
10534
10535case " $postdeps_CXX " in
10536*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10537esac
10538
10539lt_prog_compiler_wl_CXX=
10540lt_prog_compiler_pic_CXX=
10541lt_prog_compiler_static_CXX=
10542
10543echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10544echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10545
10546 # C++ specific cases for pic, static, wl, etc.
10547 if test "$GXX" = yes; then
10548 lt_prog_compiler_wl_CXX='-Wl,'
10549 lt_prog_compiler_static_CXX='-static'
10550
10551 case $host_os in
10552 aix*)
10553 # All AIX code is PIC.
10554 if test "$host_cpu" = ia64; then
10555 # AIX 5 now supports IA64 processor
10556 lt_prog_compiler_static_CXX='-Bstatic'
10557 fi
10558 ;;
10559 amigaos*)
10560 # FIXME: we need at least 68020 code to build shared libraries, but
10561 # adding the `-m68020' flag to GCC prevents building anything better,
10562 # like `-m68040'.
10563 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10564 ;;
10565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10566 # PIC is the default for these OSes.
10567 ;;
10568 mingw* | os2* | pw32*)
10569 # This hack is so that the source file can tell whether it is being
10570 # built for inclusion in a dll (and should export symbols for example).
10571 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10572 ;;
10573 darwin* | rhapsody*)
10574 # PIC is the default on this platform
10575 # Common symbols not allowed in MH_DYLIB files
10576 lt_prog_compiler_pic_CXX='-fno-common'
10577 ;;
10578 *djgpp*)
10579 # DJGPP does not support shared libraries at all
10580 lt_prog_compiler_pic_CXX=
10581 ;;
10582 sysv4*MP*)
10583 if test -d /usr/nec; then
10584 lt_prog_compiler_pic_CXX=-Kconform_pic
10585 fi
10586 ;;
10587 hpux*)
10588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10589 # not for PA HP-UX.
10590 case "$host_cpu" in
10591 hppa*64*|ia64*)
10592 ;;
10593 *)
10594 lt_prog_compiler_pic_CXX='-fPIC'
10595 ;;
10596 esac
10597 ;;
10598 *)
10599 lt_prog_compiler_pic_CXX='-fPIC'
10600 ;;
10601 esac
10602 else
10603 case $host_os in
10604 aix4* | aix5*)
10605 # All AIX code is PIC.
10606 if test "$host_cpu" = ia64; then
10607 # AIX 5 now supports IA64 processor
10608 lt_prog_compiler_static_CXX='-Bstatic'
10609 else
10610 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10611 fi
10612 ;;
10613 chorus*)
10614 case $cc_basename in
10615 cxch68)
10616 # Green Hills C++ Compiler
10617 # _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"
10618 ;;
10619 esac
10620 ;;
10621 dgux*)
10622 case $cc_basename in
10623 ec++)
10624 lt_prog_compiler_pic_CXX='-KPIC'
10625 ;;
10626 ghcx)
10627 # Green Hills C++ Compiler
10628 lt_prog_compiler_pic_CXX='-pic'
10629 ;;
10630 *)
10631 ;;
10632 esac
10633 ;;
10634 freebsd*)
10635 # FreeBSD uses GNU C++
10636 ;;
10637 hpux9* | hpux10* | hpux11*)
10638 case $cc_basename in
10639 CC)
10640 lt_prog_compiler_wl_CXX='-Wl,'
10641 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10642 if test "$host_cpu" != ia64; then
10643 lt_prog_compiler_pic_CXX='+Z'
10644 fi
10645 ;;
10646 aCC)
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10649 case "$host_cpu" in
10650 hppa*64*|ia64*)
10651 # +Z the default
10652 ;;
10653 *)
10654 lt_prog_compiler_pic_CXX='+Z'
10655 ;;
10656 esac
10657 ;;
10658 *)
10659 ;;
10660 esac
10661 ;;
10662 irix5* | irix6* | nonstopux*)
10663 case $cc_basename in
10664 CC)
10665 lt_prog_compiler_wl_CXX='-Wl,'
10666 lt_prog_compiler_static_CXX='-non_shared'
10667 # CC pic flag -KPIC is the default.
10668 ;;
10669 *)
10670 ;;
10671 esac
10672 ;;
10673 linux*)
10674 case $cc_basename in
10675 KCC)
10676 # KAI C++ Compiler
10677 lt_prog_compiler_wl_CXX='--backend -Wl,'
10678 lt_prog_compiler_pic_CXX='-fPIC'
10679 ;;
10680 icpc)
10681 # Intel C++
10682 lt_prog_compiler_wl_CXX='-Wl,'
10683 lt_prog_compiler_pic_CXX='-KPIC'
10684 lt_prog_compiler_static_CXX='-static'
10685 ;;
10686 cxx)
10687 # Compaq C++
10688 # Make sure the PIC flag is empty. It appears that all Alpha
10689 # Linux and Compaq Tru64 Unix objects are PIC.
10690 lt_prog_compiler_pic_CXX=
10691 lt_prog_compiler_static_CXX='-non_shared'
10692 ;;
10693 *)
10694 ;;
10695 esac
10696 ;;
10697 lynxos*)
10698 ;;
10699 m88k*)
10700 ;;
10701 mvs*)
10702 case $cc_basename in
10703 cxx)
10704 lt_prog_compiler_pic_CXX='-W c,exportall'
10705 ;;
10706 *)
10707 ;;
10708 esac
10709 ;;
10710 netbsd*)
10711 ;;
10712 osf3* | osf4* | osf5*)
10713 case $cc_basename in
10714 KCC)
10715 lt_prog_compiler_wl_CXX='--backend -Wl,'
10716 ;;
10717 RCC)
10718 # Rational C++ 2.4.1
10719 lt_prog_compiler_pic_CXX='-pic'
10720 ;;
10721 cxx)
10722 # Digital/Compaq C++
10723 lt_prog_compiler_wl_CXX='-Wl,'
10724 # Make sure the PIC flag is empty. It appears that all Alpha
10725 # Linux and Compaq Tru64 Unix objects are PIC.
10726 lt_prog_compiler_pic_CXX=
10727 lt_prog_compiler_static_CXX='-non_shared'
10728 ;;
10729 *)
10730 ;;
10731 esac
10732 ;;
10733 psos*)
10734 ;;
10735 sco*)
10736 case $cc_basename in
10737 CC)
10738 lt_prog_compiler_pic_CXX='-fPIC'
10739 ;;
10740 *)
10741 ;;
10742 esac
10743 ;;
10744 solaris*)
10745 case $cc_basename in
10746 CC)
10747 # Sun C++ 4.2, 5.x and Centerline C++
10748 lt_prog_compiler_pic_CXX='-KPIC'
10749 lt_prog_compiler_static_CXX='-Bstatic'
10750 lt_prog_compiler_wl_CXX='-Qoption ld '
10751 ;;
10752 gcx)
10753 # Green Hills C++ Compiler
10754 lt_prog_compiler_pic_CXX='-PIC'
10755 ;;
10756 *)
10757 ;;
10758 esac
10759 ;;
10760 sunos4*)
10761 case $cc_basename in
10762 CC)
10763 # Sun C++ 4.x
10764 lt_prog_compiler_pic_CXX='-pic'
10765 lt_prog_compiler_static_CXX='-Bstatic'
10766 ;;
10767 lcc)
10768 # Lucid
10769 lt_prog_compiler_pic_CXX='-pic'
10770 ;;
10771 *)
10772 ;;
10773 esac
10774 ;;
10775 tandem*)
10776 case $cc_basename in
10777 NCC)
10778 # NonStop-UX NCC 3.20
10779 lt_prog_compiler_pic_CXX='-KPIC'
10780 ;;
10781 *)
10782 ;;
10783 esac
10784 ;;
10785 unixware*)
10786 ;;
10787 vxworks*)
10788 ;;
10789 *)
10790 lt_prog_compiler_can_build_shared_CXX=no
10791 ;;
10792 esac
10793 fi
10794
10795echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10796echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10797
10798#
10799# Check to make sure the PIC flag actually works.
10800#
10801if test -n "$lt_prog_compiler_pic_CXX"; then
10802 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10803echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10804if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 lt_prog_compiler_pic_works_CXX=no
10808 ac_outfile=conftest.$ac_objext
10809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10810 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10811 # Insert the option either (1) after the last *FLAGS variable, or
10812 # (2) before a word containing "conftest.", or (3) at the end.
10813 # Note that $ac_compile itself does not contain backslashes and begins
10814 # with a dollar sign (not a hyphen), so the echo should work correctly.
10815 # The option is referenced via a variable to avoid confusing sed.
10816 lt_compile=`echo "$ac_compile" | $SED \
10817 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000010820 (eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010821 (eval "$lt_compile" 2>conftest.err)
10822 ac_status=$?
10823 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000010824 echo "$as_me:10824: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010825 if (exit $ac_status) && test -s "$ac_outfile"; then
10826 # The compiler can only warn and ignore the option if not recognized
10827 # So say no if there are warnings
10828 if test ! -s conftest.err; then
10829 lt_prog_compiler_pic_works_CXX=yes
10830 fi
10831 fi
10832 $rm conftest*
10833
10834fi
10835echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10836echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10837
10838if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10839 case $lt_prog_compiler_pic_CXX in
10840 "" | " "*) ;;
10841 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10842 esac
10843else
10844 lt_prog_compiler_pic_CXX=
10845 lt_prog_compiler_can_build_shared_CXX=no
10846fi
10847
10848fi
10849case "$host_os" in
10850 # For platforms which do not support PIC, -DPIC is meaningless:
10851 *djgpp*)
10852 lt_prog_compiler_pic_CXX=
10853 ;;
10854 *)
10855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10856 ;;
10857esac
10858
10859echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10860echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10861if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864 lt_cv_prog_compiler_c_o_CXX=no
10865 $rm -r conftest 2>/dev/null
10866 mkdir conftest
10867 cd conftest
10868 mkdir out
10869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10870
10871 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10872 # that will create temporary files in the current directory regardless of
10873 # the output directory. Thus, making CWD read-only will cause this test
10874 # to fail, enabling locking or at least warning the user not to do parallel
10875 # builds.
10876 chmod -w .
10877
10878 lt_compiler_flag="-o out/conftest2.$ac_objext"
10879 # Insert the option either (1) after the last *FLAGS variable, or
10880 # (2) before a word containing "conftest.", or (3) at the end.
10881 # Note that $ac_compile itself does not contain backslashes and begins
10882 # with a dollar sign (not a hyphen), so the echo should work correctly.
10883 lt_compile=`echo "$ac_compile" | $SED \
10884 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10886 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000010887 (eval echo "\"\$as_me:10887: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010888 (eval "$lt_compile" 2>out/conftest.err)
10889 ac_status=$?
10890 cat out/conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000010891 echo "$as_me:10891: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10893 then
10894 # The compiler can only warn and ignore the option if not recognized
10895 # So say no if there are warnings
10896 if test ! -s out/conftest.err; then
10897 lt_cv_prog_compiler_c_o_CXX=yes
10898 fi
10899 fi
10900 chmod u+w .
10901 $rm conftest* out/*
10902 rmdir out
10903 cd ..
10904 rmdir conftest
10905 $rm conftest*
10906
10907fi
10908echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10909echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10910
10911
10912hard_links="nottested"
10913if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10914 # do not overwrite the value of need_locks provided by the user
10915 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10916echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10917 hard_links=yes
10918 $rm conftest*
10919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10920 touch conftest.a
10921 ln conftest.a conftest.b 2>&5 || hard_links=no
10922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10923 echo "$as_me:$LINENO: result: $hard_links" >&5
10924echo "${ECHO_T}$hard_links" >&6
10925 if test "$hard_links" = no; then
10926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10927echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10928 need_locks=warn
10929 fi
10930else
10931 need_locks=no
10932fi
10933
10934echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10935echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10936
10937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10938 case $host_os in
10939 aix4* | aix5*)
10940 # If we're using GNU nm, then we don't want the "-C" option.
10941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10943 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'
10944 else
10945 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'
10946 fi
10947 ;;
10948 pw32*)
10949 export_symbols_cmds_CXX="$ltdll_cmds"
10950 ;;
10951 cygwin* | mingw*)
10952 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10953 ;;
10954 *)
10955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10956 ;;
10957 esac
10958
10959echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10960echo "${ECHO_T}$ld_shlibs_CXX" >&6
10961test "$ld_shlibs_CXX" = no && can_build_shared=no
10962
10963variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10964if test "$GCC" = yes; then
10965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10966fi
10967
10968#
10969# Do we need to explicitly link libc?
10970#
10971case "x$archive_cmds_need_lc_CXX" in
10972x|xyes)
10973 # Assume -lc should be added
10974 archive_cmds_need_lc_CXX=yes
10975
10976 if test "$enable_shared" = yes && test "$GCC" = yes; then
10977 case $archive_cmds_CXX in
10978 *'~'*)
10979 # FIXME: we may have to deal with multi-command sequences.
10980 ;;
10981 '$CC '*)
10982 # Test whether the compiler implicitly links with -lc since on some
10983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10984 # to ld, don't add -lc before -lgcc.
10985 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10986echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10987 $rm conftest*
10988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10989
10990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } 2>conftest.err; then
10995 soname=conftest
10996 lib=conftest
10997 libobjs=conftest.$ac_objext
10998 deplibs=
10999 wl=$lt_prog_compiler_wl_CXX
11000 compiler_flags=-v
11001 linker_flags=-v
11002 verstring=
11003 output_objdir=.
11004 libname=conftest
11005 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11006 allow_undefined_flag_CXX=
11007 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11008 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }
11012 then
11013 archive_cmds_need_lc_CXX=no
11014 else
11015 archive_cmds_need_lc_CXX=yes
11016 fi
11017 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11018 else
11019 cat conftest.err 1>&5
11020 fi
11021 $rm conftest*
11022 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11023echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11024 ;;
11025 esac
11026 fi
11027 ;;
11028esac
11029
11030echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11031echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11032hardcode_action_CXX=
11033if test -n "$hardcode_libdir_flag_spec_CXX" || \
11034 test -n "$runpath_var CXX" || \
11035 test "X$hardcode_automatic_CXX"="Xyes" ; then
11036
11037 # We can hardcode non-existant directories.
11038 if test "$hardcode_direct_CXX" != no &&
11039 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11040 # have to relink, otherwise we might link with an installed library
11041 # when we should be linking with a yet-to-be-installed one
11042 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11043 test "$hardcode_minus_L_CXX" != no; then
11044 # Linking always hardcodes the temporary library directory.
11045 hardcode_action_CXX=relink
11046 else
11047 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11048 hardcode_action_CXX=immediate
11049 fi
11050else
11051 # We cannot hardcode anything, or else we can only hardcode existing
11052 # directories.
11053 hardcode_action_CXX=unsupported
11054fi
11055echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11056echo "${ECHO_T}$hardcode_action_CXX" >&6
11057
11058if test "$hardcode_action_CXX" = relink; then
11059 # Fast installation is not supported
11060 enable_fast_install=no
11061elif test "$shlibpath_overrides_runpath" = yes ||
11062 test "$enable_shared" = no; then
11063 # Fast installation is not necessary
11064 enable_fast_install=needless
11065fi
11066
11067striplib=
11068old_striplib=
11069echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11070echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11071if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11072 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11073 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11074 echo "$as_me:$LINENO: result: yes" >&5
11075echo "${ECHO_T}yes" >&6
11076else
11077# FIXME - insert some real tests, host_os isn't really good enough
11078 case $host_os in
11079 darwin*)
11080 if test -n "$STRIP" ; then
11081 striplib="$STRIP -x"
11082 echo "$as_me:$LINENO: result: yes" >&5
11083echo "${ECHO_T}yes" >&6
11084 else
11085 echo "$as_me:$LINENO: result: no" >&5
11086echo "${ECHO_T}no" >&6
11087fi
11088 ;;
11089 *)
11090 echo "$as_me:$LINENO: result: no" >&5
11091echo "${ECHO_T}no" >&6
11092 ;;
11093 esac
11094fi
11095
11096echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11097echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11098library_names_spec=
11099libname_spec='lib$name'
11100soname_spec=
11101shrext=".so"
11102postinstall_cmds=
11103postuninstall_cmds=
11104finish_cmds=
11105finish_eval=
11106shlibpath_var=
11107shlibpath_overrides_runpath=unknown
11108version_type=none
11109dynamic_linker="$host_os ld.so"
11110sys_lib_dlsearch_path_spec="/lib /usr/lib"
11111if test "$GCC" = yes; then
11112 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11113 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11114 # if the path contains ";" then we assume it to be the separator
11115 # otherwise default to the standard path separator (i.e. ":") - it is
11116 # assumed that no part of a normal pathname contains ";" but that should
11117 # okay in the real world where ";" in dirpaths is itself problematic.
11118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11119 else
11120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11121 fi
11122else
11123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124fi
11125need_lib_prefix=unknown
11126hardcode_into_libs=no
11127
11128# when you set need_version to no, make sure it does not cause -set_version
11129# flags to be left without arguments
11130need_version=unknown
11131
11132case $host_os in
11133aix3*)
11134 version_type=linux
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11136 shlibpath_var=LIBPATH
11137
11138 # AIX 3 has no versioning support, so we append a major version to the name.
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 ;;
11141
11142aix4* | aix5*)
11143 version_type=linux
11144 need_lib_prefix=no
11145 need_version=no
11146 hardcode_into_libs=yes
11147 if test "$host_cpu" = ia64; then
11148 # AIX 5 supports IA64
11149 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 else
11152 # With GCC up to 2.95.x, collect2 would create an import file
11153 # for dependence libraries. The import file would start with
11154 # the line `#! .'. This would cause the generated library to
11155 # depend on `.', always an invalid library. This was fixed in
11156 # development snapshots of GCC prior to 3.0.
11157 case $host_os in
11158 aix4 | aix4.[01] | aix4.[01].*)
11159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11160 echo ' yes '
11161 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11162 :
11163 else
11164 can_build_shared=no
11165 fi
11166 ;;
11167 esac
11168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11169 # soname into executable. Probably we can add versioning support to
11170 # collect2, so additional links can be useful in future.
11171 if test "$aix_use_runtimelinking" = yes; then
11172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11173 # instead of lib<name>.a to let people know that these are not
11174 # typical AIX shared libraries.
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 else
11177 # We preserve .a as extension for shared libraries through AIX4.2
11178 # and later when we are not doing run time linking.
11179 library_names_spec='${libname}${release}.a $libname.a'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 fi
11182 shlibpath_var=LIBPATH
11183 fi
11184 ;;
11185
11186amigaos*)
11187 library_names_spec='$libname.ixlibrary $libname.a'
11188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11189 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'
11190 ;;
11191
11192beos*)
11193 library_names_spec='${libname}${shared_ext}'
11194 dynamic_linker="$host_os ld.so"
11195 shlibpath_var=LIBRARY_PATH
11196 ;;
11197
11198bsdi4*)
11199 version_type=linux
11200 need_version=no
11201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11207 # the default ld.so.conf also contains /usr/contrib/lib and
11208 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11209 # libtool to hard-code these into programs
11210 ;;
11211
11212cygwin* | mingw* | pw32*)
11213 version_type=windows
11214 shrext=".dll"
11215 need_version=no
11216 need_lib_prefix=no
11217
11218 case $GCC,$host_os in
11219 yes,cygwin* | yes,mingw* | yes,pw32*)
11220 library_names_spec='$libname.dll.a'
11221 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11222 postinstall_cmds='base_file=`basename \${file}`~
11223 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11224 dldir=$destdir/`dirname \$dlpath`~
11225 test -d \$dldir || mkdir -p \$dldir~
11226 $install_prog $dir/$dlname \$dldir/$dlname'
11227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11228 dlpath=$dir/\$dldll~
11229 $rm \$dlpath'
11230 shlibpath_overrides_runpath=yes
11231
11232 case $host_os in
11233 cygwin*)
11234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11236 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11237 ;;
11238 mingw*)
11239 # MinGW DLLs use traditional 'lib' prefix
11240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11242 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11243 # It is most probably a Windows format PATH printed by
11244 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11245 # path with ; separators, and with drive letters. We can handle the
11246 # drive letters (cygwin fileutils understands them), so leave them,
11247 # especially as we might pass files found there to a mingw objdump,
11248 # which wouldn't understand a cygwinified path. Ahh.
11249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11250 else
11251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11252 fi
11253 ;;
11254 pw32*)
11255 # pw32 DLLs use 'pw' prefix rather than 'lib'
11256 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11257 ;;
11258 esac
11259 ;;
11260
11261 *)
11262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11263 ;;
11264 esac
11265 dynamic_linker='Win32 ld.exe'
11266 # FIXME: first we should search . and the directory the executable is in
11267 shlibpath_var=PATH
11268 ;;
11269
11270darwin* | rhapsody*)
11271 dynamic_linker="$host_os dyld"
11272 version_type=darwin
11273 need_lib_prefix=no
11274 need_version=no
11275 # FIXME: Relying on posixy $() will cause problems for
11276 # cross-compilation, but unfortunately the echo tests do not
11277 # yet detect zsh echo's removal of \ escapes.
11278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11279 soname_spec='${libname}${release}${major}$shared_ext'
11280 shlibpath_overrides_runpath=yes
11281 shlibpath_var=DYLD_LIBRARY_PATH
11282 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11283 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11284 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11285 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"`
11286 fi
11287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11288 ;;
11289
11290dgux*)
11291 version_type=linux
11292 need_lib_prefix=no
11293 need_version=no
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 ;;
11298
11299freebsd1*)
11300 dynamic_linker=no
11301 ;;
11302
11303freebsd*)
11304 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11305 version_type=freebsd-$objformat
11306 case $version_type in
11307 freebsd-elf*)
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11309 need_version=no
11310 need_lib_prefix=no
11311 ;;
11312 freebsd-*)
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11314 need_version=yes
11315 ;;
11316 esac
11317 shlibpath_var=LD_LIBRARY_PATH
11318 case $host_os in
11319 freebsd2*)
11320 shlibpath_overrides_runpath=yes
11321 ;;
11322 freebsd3.01* | freebsdelf3.01*)
11323 shlibpath_overrides_runpath=yes
11324 hardcode_into_libs=yes
11325 ;;
11326 *) # from 3.2 on
11327 shlibpath_overrides_runpath=no
11328 hardcode_into_libs=yes
11329 ;;
11330 esac
11331 ;;
11332
11333gnu*)
11334 version_type=linux
11335 need_lib_prefix=no
11336 need_version=no
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 hardcode_into_libs=yes
11341 ;;
11342
11343hpux9* | hpux10* | hpux11*)
11344 # Give a soname corresponding to the major version so that dld.sl refuses to
11345 # link against other versions.
11346 version_type=sunos
11347 need_lib_prefix=no
11348 need_version=no
11349 case "$host_cpu" in
11350 ia64*)
11351 shrext='.so'
11352 hardcode_into_libs=yes
11353 dynamic_linker="$host_os dld.so"
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 if test "X$HPUX_IA64_MODE" = X32; then
11359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11360 else
11361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 fi
11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364 ;;
11365 hppa*64*)
11366 shrext='.sl'
11367 hardcode_into_libs=yes
11368 dynamic_linker="$host_os dld.sl"
11369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375 ;;
11376 *)
11377 shrext='.sl'
11378 dynamic_linker="$host_os dld.sl"
11379 shlibpath_var=SHLIB_PATH
11380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 ;;
11384 esac
11385 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11386 postinstall_cmds='chmod 555 $lib'
11387 ;;
11388
11389irix5* | irix6* | nonstopux*)
11390 case $host_os in
11391 nonstopux*) version_type=nonstopux ;;
11392 *)
11393 if test "$lt_cv_prog_gnu_ld" = yes; then
11394 version_type=linux
11395 else
11396 version_type=irix
11397 fi ;;
11398 esac
11399 need_lib_prefix=no
11400 need_version=no
11401 soname_spec='${libname}${release}${shared_ext}$major'
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11403 case $host_os in
11404 irix5* | nonstopux*)
11405 libsuff= shlibsuff=
11406 ;;
11407 *)
11408 case $LD in # libtool.m4 will add one of these switches to LD
11409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11410 libsuff= shlibsuff= libmagic=32-bit;;
11411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11412 libsuff=32 shlibsuff=N32 libmagic=N32;;
11413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11415 *) libsuff= shlibsuff= libmagic=never-match;;
11416 esac
11417 ;;
11418 esac
11419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11420 shlibpath_overrides_runpath=no
11421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11423 hardcode_into_libs=yes
11424 ;;
11425
11426# No shared lib support for Linux oldld, aout, or coff.
11427linux*oldld* | linux*aout* | linux*coff*)
11428 dynamic_linker=no
11429 ;;
11430
11431# This must be Linux ELF.
11432linux*)
11433 version_type=linux
11434 need_lib_prefix=no
11435 need_version=no
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11437 soname_spec='${libname}${release}${shared_ext}$major'
11438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=no
11441 # This implies no fast_install, which is unacceptable.
11442 # Some rework will be needed to allow for fast_install
11443 # before this can be enabled.
11444 hardcode_into_libs=yes
11445
11446 # We used to test for /lib/ld.so.1 and disable shared libraries on
11447 # powerpc, because MkLinux only supported shared libraries with the
11448 # GNU dynamic linker. Since this was broken with cross compilers,
11449 # most powerpc-linux boxes support dynamic linking these days and
11450 # people can always --disable-shared, the test was removed, and we
11451 # assume the GNU/Linux dynamic linker is in use.
11452 dynamic_linker='GNU/Linux ld.so'
11453 ;;
11454
11455netbsd*)
11456 version_type=sunos
11457 need_lib_prefix=no
11458 need_version=no
11459 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11462 dynamic_linker='NetBSD (a.out) ld.so'
11463 else
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 dynamic_linker='NetBSD ld.elf_so'
11467 fi
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 hardcode_into_libs=yes
11471 ;;
11472
11473newsos6)
11474 version_type=linux
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath=yes
11478 ;;
11479
11480nto-qnx)
11481 version_type=linux
11482 need_lib_prefix=no
11483 need_version=no
11484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 soname_spec='${libname}${release}${shared_ext}$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=yes
11488 ;;
11489
11490openbsd*)
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11498 case $host_os in
11499 openbsd2.[89] | openbsd2.[89].*)
11500 shlibpath_overrides_runpath=no
11501 ;;
11502 *)
11503 shlibpath_overrides_runpath=yes
11504 ;;
11505 esac
11506 else
11507 shlibpath_overrides_runpath=yes
11508 fi
11509 ;;
11510
11511os2*)
11512 libname_spec='$name'
11513 shrext=".dll"
11514 need_lib_prefix=no
11515 library_names_spec='$libname${shared_ext} $libname.a'
11516 dynamic_linker='OS/2 ld.exe'
11517 shlibpath_var=LIBPATH
11518 ;;
11519
11520osf3* | osf4* | osf5*)
11521 version_type=osf
11522 need_lib_prefix=no
11523 need_version=no
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11529 ;;
11530
11531sco3.2v5*)
11532 version_type=osf
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 ;;
11537
11538solaris*)
11539 version_type=linux
11540 need_lib_prefix=no
11541 need_version=no
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 shlibpath_overrides_runpath=yes
11546 hardcode_into_libs=yes
11547 # ldd complains unless libraries are executable
11548 postinstall_cmds='chmod +x $lib'
11549 ;;
11550
11551sunos4*)
11552 version_type=sunos
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11557 if test "$with_gnu_ld" = yes; then
11558 need_lib_prefix=no
11559 fi
11560 need_version=yes
11561 ;;
11562
11563sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11564 version_type=linux
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 case $host_vendor in
11569 sni)
11570 shlibpath_overrides_runpath=no
11571 need_lib_prefix=no
11572 export_dynamic_flag_spec='${wl}-Blargedynsym'
11573 runpath_var=LD_RUN_PATH
11574 ;;
11575 siemens)
11576 need_lib_prefix=no
11577 ;;
11578 motorola)
11579 need_lib_prefix=no
11580 need_version=no
11581 shlibpath_overrides_runpath=no
11582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11583 ;;
11584 esac
11585 ;;
11586
11587sysv4*MP*)
11588 if test -d /usr/nec ;then
11589 version_type=linux
11590 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11591 soname_spec='$libname${shared_ext}.$major'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 fi
11594 ;;
11595
11596uts4*)
11597 version_type=linux
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 ;;
11602
11603*)
11604 dynamic_linker=no
11605 ;;
11606esac
11607echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11608echo "${ECHO_T}$dynamic_linker" >&6
11609test "$dynamic_linker" = no && can_build_shared=no
11610
11611if test "x$enable_dlopen" != xyes; then
11612 enable_dlopen=unknown
11613 enable_dlopen_self=unknown
11614 enable_dlopen_self_static=unknown
11615else
11616 lt_cv_dlopen=no
11617 lt_cv_dlopen_libs=
11618
11619 case $host_os in
11620 beos*)
11621 lt_cv_dlopen="load_add_on"
11622 lt_cv_dlopen_libs=
11623 lt_cv_dlopen_self=yes
11624 ;;
11625
11626 mingw* | pw32*)
11627 lt_cv_dlopen="LoadLibrary"
11628 lt_cv_dlopen_libs=
11629 ;;
11630
11631 cygwin*)
11632 lt_cv_dlopen="dlopen"
11633 lt_cv_dlopen_libs=
11634 ;;
11635
11636 darwin*)
11637 # if libdl is installed we need to link against it
11638 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11639echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11640if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11641 echo $ECHO_N "(cached) $ECHO_C" >&6
11642else
11643 ac_check_lib_save_LIBS=$LIBS
11644LIBS="-ldl $LIBS"
11645cat >conftest.$ac_ext <<_ACEOF
11646#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011652
11653/* Override any gcc2 internal prototype to avoid an error. */
11654#ifdef __cplusplus
11655extern "C"
11656#endif
11657/* We use char because int might match the return type of a gcc2
11658 builtin and then its argument prototype would still apply. */
11659char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011660int
11661main ()
11662{
11663dlopen ();
11664 ;
11665 return 0;
11666}
11667_ACEOF
11668rm -f conftest.$ac_objext conftest$ac_exeext
11669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_dl_dlopen=yes
11681else
11682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011683sed 's/^/| /' conftest.$ac_ext >&5
11684
John Criswell47fdd832003-07-14 16:52:07 +000011685ac_cv_lib_dl_dlopen=no
11686fi
11687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688LIBS=$ac_check_lib_save_LIBS
11689fi
11690echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11691echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11692if test $ac_cv_lib_dl_dlopen = yes; then
11693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11694else
11695
11696 lt_cv_dlopen="dyld"
11697 lt_cv_dlopen_libs=
11698 lt_cv_dlopen_self=yes
11699
11700fi
11701
11702 ;;
11703
11704 *)
11705 echo "$as_me:$LINENO: checking for shl_load" >&5
11706echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11707if test "${ac_cv_func_shl_load+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709else
11710 cat >conftest.$ac_ext <<_ACEOF
11711#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011717/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011718 which can conflict with char shl_load (); below.
11719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11720 <limits.h> exists even on freestanding compilers. */
11721#ifdef __STDC__
11722# include <limits.h>
11723#else
11724# include <assert.h>
11725#endif
John Criswell47fdd832003-07-14 16:52:07 +000011726/* Override any gcc2 internal prototype to avoid an error. */
11727#ifdef __cplusplus
11728extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011729{
John Criswell47fdd832003-07-14 16:52:07 +000011730#endif
11731/* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11733char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011734/* The GNU C library defines this for functions which it implements
11735 to always fail with ENOSYS. Some functions are actually named
11736 something starting with __ and the normal name is an alias. */
11737#if defined (__stub_shl_load) || defined (__stub___shl_load)
11738choke me
11739#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011740char (*f) () = shl_load;
11741#endif
11742#ifdef __cplusplus
11743}
John Criswell47fdd832003-07-14 16:52:07 +000011744#endif
11745
John Criswell0c38eaf2003-09-10 15:17:25 +000011746int
11747main ()
11748{
11749return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011750 ;
11751 return 0;
11752}
11753_ACEOF
11754rm -f conftest.$ac_objext conftest$ac_exeext
11755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_func_shl_load=yes
11767else
11768 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011769sed 's/^/| /' conftest.$ac_ext >&5
11770
John Criswell47fdd832003-07-14 16:52:07 +000011771ac_cv_func_shl_load=no
11772fi
11773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11774fi
11775echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11776echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11777if test $ac_cv_func_shl_load = yes; then
11778 lt_cv_dlopen="shl_load"
11779else
11780 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11781echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11782if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784else
11785 ac_check_lib_save_LIBS=$LIBS
11786LIBS="-ldld $LIBS"
11787cat >conftest.$ac_ext <<_ACEOF
11788#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011794
11795/* Override any gcc2 internal prototype to avoid an error. */
11796#ifdef __cplusplus
11797extern "C"
11798#endif
11799/* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11801char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011802int
11803main ()
11804{
11805shl_load ();
11806 ;
11807 return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext conftest$ac_exeext
11811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -s conftest$ac_exeext'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
11822 ac_cv_lib_dld_shl_load=yes
11823else
11824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011825sed 's/^/| /' conftest.$ac_ext >&5
11826
John Criswell47fdd832003-07-14 16:52:07 +000011827ac_cv_lib_dld_shl_load=no
11828fi
11829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11830LIBS=$ac_check_lib_save_LIBS
11831fi
11832echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11833echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11834if test $ac_cv_lib_dld_shl_load = yes; then
11835 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11836else
11837 echo "$as_me:$LINENO: checking for dlopen" >&5
11838echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11839if test "${ac_cv_func_dlopen+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841else
11842 cat >conftest.$ac_ext <<_ACEOF
11843#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011849/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011850 which can conflict with char dlopen (); below.
11851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852 <limits.h> exists even on freestanding compilers. */
11853#ifdef __STDC__
11854# include <limits.h>
11855#else
11856# include <assert.h>
11857#endif
John Criswell47fdd832003-07-14 16:52:07 +000011858/* Override any gcc2 internal prototype to avoid an error. */
11859#ifdef __cplusplus
11860extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011861{
John Criswell47fdd832003-07-14 16:52:07 +000011862#endif
11863/* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11865char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011866/* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869#if defined (__stub_dlopen) || defined (__stub___dlopen)
11870choke me
11871#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011872char (*f) () = dlopen;
11873#endif
11874#ifdef __cplusplus
11875}
John Criswell47fdd832003-07-14 16:52:07 +000011876#endif
11877
John Criswell0c38eaf2003-09-10 15:17:25 +000011878int
11879main ()
11880{
11881return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011882 ;
11883 return 0;
11884}
11885_ACEOF
11886rm -f conftest.$ac_objext conftest$ac_exeext
11887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888 (eval $ac_link) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_func_dlopen=yes
11899else
11900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011901sed 's/^/| /' conftest.$ac_ext >&5
11902
John Criswell47fdd832003-07-14 16:52:07 +000011903ac_cv_func_dlopen=no
11904fi
11905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906fi
11907echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11908echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11909if test $ac_cv_func_dlopen = yes; then
11910 lt_cv_dlopen="dlopen"
11911else
11912 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11913echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916else
11917 ac_check_lib_save_LIBS=$LIBS
11918LIBS="-ldl $LIBS"
11919cat >conftest.$ac_ext <<_ACEOF
11920#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011926
11927/* Override any gcc2 internal prototype to avoid an error. */
11928#ifdef __cplusplus
11929extern "C"
11930#endif
11931/* We use char because int might match the return type of a gcc2
11932 builtin and then its argument prototype would still apply. */
11933char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011934int
11935main ()
11936{
11937dlopen ();
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext conftest$ac_exeext
11943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944 (eval $ac_link) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_lib_dl_dlopen=yes
11955else
11956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011957sed 's/^/| /' conftest.$ac_ext >&5
11958
John Criswell47fdd832003-07-14 16:52:07 +000011959ac_cv_lib_dl_dlopen=no
11960fi
11961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11962LIBS=$ac_check_lib_save_LIBS
11963fi
11964echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11965echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11966if test $ac_cv_lib_dl_dlopen = yes; then
11967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11968else
11969 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11970echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11971if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973else
11974 ac_check_lib_save_LIBS=$LIBS
11975LIBS="-lsvld $LIBS"
11976cat >conftest.$ac_ext <<_ACEOF
11977#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011983
11984/* Override any gcc2 internal prototype to avoid an error. */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988/* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11990char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011991int
11992main ()
11993{
11994dlopen ();
11995 ;
11996 return 0;
11997}
11998_ACEOF
11999rm -f conftest.$ac_objext conftest$ac_exeext
12000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -s conftest$ac_exeext'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_lib_svld_dlopen=yes
12012else
12013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012014sed 's/^/| /' conftest.$ac_ext >&5
12015
John Criswell47fdd832003-07-14 16:52:07 +000012016ac_cv_lib_svld_dlopen=no
12017fi
12018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12019LIBS=$ac_check_lib_save_LIBS
12020fi
12021echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12022echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12023if test $ac_cv_lib_svld_dlopen = yes; then
12024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12025else
12026 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12027echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12028if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 ac_check_lib_save_LIBS=$LIBS
12032LIBS="-ldld $LIBS"
12033cat >conftest.$ac_ext <<_ACEOF
12034#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012040
12041/* Override any gcc2 internal prototype to avoid an error. */
12042#ifdef __cplusplus
12043extern "C"
12044#endif
12045/* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12047char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012048int
12049main ()
12050{
12051dld_link ();
12052 ;
12053 return 0;
12054}
12055_ACEOF
12056rm -f conftest.$ac_objext conftest$ac_exeext
12057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 ac_cv_lib_dld_dld_link=yes
12069else
12070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012071sed 's/^/| /' conftest.$ac_ext >&5
12072
John Criswell47fdd832003-07-14 16:52:07 +000012073ac_cv_lib_dld_dld_link=no
12074fi
12075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12079echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12080if test $ac_cv_lib_dld_dld_link = yes; then
12081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12082fi
12083
12084
12085fi
12086
12087
12088fi
12089
12090
12091fi
12092
12093
12094fi
12095
12096
12097fi
12098
12099 ;;
12100 esac
12101
12102 if test "x$lt_cv_dlopen" != xno; then
12103 enable_dlopen=yes
12104 else
12105 enable_dlopen=no
12106 fi
12107
12108 case $lt_cv_dlopen in
12109 dlopen)
12110 save_CPPFLAGS="$CPPFLAGS"
12111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12112
12113 save_LDFLAGS="$LDFLAGS"
12114 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12115
12116 save_LIBS="$LIBS"
12117 LIBS="$lt_cv_dlopen_libs $LIBS"
12118
12119 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12120echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12121if test "${lt_cv_dlopen_self+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self=cross
12126else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +000012130#line 12130 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012131#include "confdefs.h"
12132
12133#if HAVE_DLFCN_H
12134#include <dlfcn.h>
12135#endif
12136
12137#include <stdio.h>
12138
12139#ifdef RTLD_GLOBAL
12140# define LT_DLGLOBAL RTLD_GLOBAL
12141#else
12142# ifdef DL_GLOBAL
12143# define LT_DLGLOBAL DL_GLOBAL
12144# else
12145# define LT_DLGLOBAL 0
12146# endif
12147#endif
12148
12149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151#ifndef LT_DLLAZY_OR_NOW
12152# ifdef RTLD_LAZY
12153# define LT_DLLAZY_OR_NOW RTLD_LAZY
12154# else
12155# ifdef DL_LAZY
12156# define LT_DLLAZY_OR_NOW DL_LAZY
12157# else
12158# ifdef RTLD_NOW
12159# define LT_DLLAZY_OR_NOW RTLD_NOW
12160# else
12161# ifdef DL_NOW
12162# define LT_DLLAZY_OR_NOW DL_NOW
12163# else
12164# define LT_DLLAZY_OR_NOW 0
12165# endif
12166# endif
12167# endif
12168# endif
12169#endif
12170
12171#ifdef __cplusplus
12172extern "C" void exit (int);
12173#endif
12174
12175void fnord() { int i=42;}
12176int main ()
12177{
12178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12179 int status = $lt_dlunknown;
12180
12181 if (self)
12182 {
12183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12185 /* dlclose (self); */
12186 }
12187
12188 exit (status);
12189}
12190EOF
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12196 (./conftest; exit; ) 2>/dev/null
12197 lt_status=$?
12198 case x$lt_status in
12199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12201 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12202 esac
12203 else :
12204 # compilation failed
12205 lt_cv_dlopen_self=no
12206 fi
12207fi
12208rm -fr conftest*
12209
12210
12211fi
12212echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12213echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12214
12215 if test "x$lt_cv_dlopen_self" = xyes; then
12216 LDFLAGS="$LDFLAGS $link_static_flag"
12217 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12218echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12219if test "${lt_cv_dlopen_self_static+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 if test "$cross_compiling" = yes; then :
12223 lt_cv_dlopen_self_static=cross
12224else
12225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12226 lt_status=$lt_dlunknown
12227 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +000012228#line 12228 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012229#include "confdefs.h"
12230
12231#if HAVE_DLFCN_H
12232#include <dlfcn.h>
12233#endif
12234
12235#include <stdio.h>
12236
12237#ifdef RTLD_GLOBAL
12238# define LT_DLGLOBAL RTLD_GLOBAL
12239#else
12240# ifdef DL_GLOBAL
12241# define LT_DLGLOBAL DL_GLOBAL
12242# else
12243# define LT_DLGLOBAL 0
12244# endif
12245#endif
12246
12247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12248 find out it does not work in some platform. */
12249#ifndef LT_DLLAZY_OR_NOW
12250# ifdef RTLD_LAZY
12251# define LT_DLLAZY_OR_NOW RTLD_LAZY
12252# else
12253# ifdef DL_LAZY
12254# define LT_DLLAZY_OR_NOW DL_LAZY
12255# else
12256# ifdef RTLD_NOW
12257# define LT_DLLAZY_OR_NOW RTLD_NOW
12258# else
12259# ifdef DL_NOW
12260# define LT_DLLAZY_OR_NOW DL_NOW
12261# else
12262# define LT_DLLAZY_OR_NOW 0
12263# endif
12264# endif
12265# endif
12266# endif
12267#endif
12268
12269#ifdef __cplusplus
12270extern "C" void exit (int);
12271#endif
12272
12273void fnord() { int i=42;}
12274int main ()
12275{
12276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12277 int status = $lt_dlunknown;
12278
12279 if (self)
12280 {
12281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12283 /* dlclose (self); */
12284 }
12285
12286 exit (status);
12287}
12288EOF
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12294 (./conftest; exit; ) 2>/dev/null
12295 lt_status=$?
12296 case x$lt_status in
12297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12300 esac
12301 else :
12302 # compilation failed
12303 lt_cv_dlopen_self_static=no
12304 fi
12305fi
12306rm -fr conftest*
12307
12308
12309fi
12310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12311echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12312 fi
12313
12314 CPPFLAGS="$save_CPPFLAGS"
12315 LDFLAGS="$save_LDFLAGS"
12316 LIBS="$save_LIBS"
12317 ;;
12318 esac
12319
12320 case $lt_cv_dlopen_self in
12321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12322 *) enable_dlopen_self=unknown ;;
12323 esac
12324
12325 case $lt_cv_dlopen_self_static in
12326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12327 *) enable_dlopen_self_static=unknown ;;
12328 esac
12329fi
12330
12331
12332# The else clause should only fire when bootstrapping the
12333# libtool distribution, otherwise you forgot to ship ltmain.sh
12334# with your package, and you will get complaints that there are
12335# no rules to generate ltmain.sh.
12336if test -f "$ltmain"; then
12337 # See if we are running on zsh, and set the options which allow our commands through
12338 # without removal of \ escapes.
12339 if test -n "${ZSH_VERSION+set}" ; then
12340 setopt NO_GLOB_SUBST
12341 fi
12342 # Now quote all the things that may contain metacharacters while being
12343 # careful not to overquote the AC_SUBSTed values. We take copies of the
12344 # variables and quote the copies for generation of the libtool script.
12345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12348 deplibs_check_method reload_flag reload_cmds need_locks \
12349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12350 lt_cv_sys_global_symbol_to_c_name_address \
12351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12352 old_postinstall_cmds old_postuninstall_cmds \
12353 compiler_CXX \
12354 CC_CXX \
12355 LD_CXX \
12356 lt_prog_compiler_wl_CXX \
12357 lt_prog_compiler_pic_CXX \
12358 lt_prog_compiler_static_CXX \
12359 lt_prog_compiler_no_builtin_flag_CXX \
12360 export_dynamic_flag_spec_CXX \
12361 thread_safe_flag_spec_CXX \
12362 whole_archive_flag_spec_CXX \
12363 enable_shared_with_static_runtimes_CXX \
12364 old_archive_cmds_CXX \
12365 old_archive_from_new_cmds_CXX \
12366 predep_objects_CXX \
12367 postdep_objects_CXX \
12368 predeps_CXX \
12369 postdeps_CXX \
12370 compiler_lib_search_path_CXX \
12371 archive_cmds_CXX \
12372 archive_expsym_cmds_CXX \
12373 postinstall_cmds_CXX \
12374 postuninstall_cmds_CXX \
12375 old_archive_from_expsyms_cmds_CXX \
12376 allow_undefined_flag_CXX \
12377 no_undefined_flag_CXX \
12378 export_symbols_cmds_CXX \
12379 hardcode_libdir_flag_spec_CXX \
12380 hardcode_libdir_flag_spec_ld_CXX \
12381 hardcode_libdir_separator_CXX \
12382 hardcode_automatic_CXX \
12383 module_cmds_CXX \
12384 module_expsym_cmds_CXX \
12385 lt_cv_prog_compiler_c_o_CXX \
12386 exclude_expsyms_CXX \
12387 include_expsyms_CXX; do
12388
12389 case $var in
12390 old_archive_cmds_CXX | \
12391 old_archive_from_new_cmds_CXX | \
12392 archive_cmds_CXX | \
12393 archive_expsym_cmds_CXX | \
12394 module_cmds_CXX | \
12395 module_expsym_cmds_CXX | \
12396 old_archive_from_expsyms_cmds_CXX | \
12397 export_symbols_cmds_CXX | \
12398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12399 postinstall_cmds | postuninstall_cmds | \
12400 old_postinstall_cmds | old_postuninstall_cmds | \
12401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12402 # Double-quote double-evaled strings.
12403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12404 ;;
12405 *)
12406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12407 ;;
12408 esac
12409 done
12410
12411 case $lt_echo in
12412 *'\$0 --fallback-echo"')
12413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12414 ;;
12415 esac
12416
12417cfgfile="$ofile"
12418
12419 cat <<__EOF__ >> "$cfgfile"
12420# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12421
12422# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12423
12424# Shell to use when invoking shell scripts.
12425SHELL=$lt_SHELL
12426
12427# Whether or not to build shared libraries.
12428build_libtool_libs=$enable_shared
12429
12430# Whether or not to build static libraries.
12431build_old_libs=$enable_static
12432
12433# Whether or not to add -lc for building shared libraries.
12434build_libtool_need_lc=$archive_cmds_need_lc_CXX
12435
12436# Whether or not to disallow shared libs when runtime libs are static
12437allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12438
12439# Whether or not to optimize for fast installation.
12440fast_install=$enable_fast_install
12441
12442# The host system.
12443host_alias=$host_alias
12444host=$host
12445
12446# An echo program that does not interpret backslashes.
12447echo=$lt_echo
12448
12449# The archiver.
12450AR=$lt_AR
12451AR_FLAGS=$lt_AR_FLAGS
12452
12453# A C compiler.
12454LTCC=$lt_LTCC
12455
12456# A language-specific compiler.
12457CC=$lt_compiler_CXX
12458
12459# Is the compiler the GNU C compiler?
12460with_gcc=$GCC_CXX
12461
12462# An ERE matcher.
12463EGREP=$lt_EGREP
12464
12465# The linker used to build libraries.
12466LD=$lt_LD_CXX
12467
12468# Whether we need hard or soft links.
12469LN_S=$lt_LN_S
12470
12471# A BSD-compatible nm program.
12472NM=$lt_NM
12473
12474# A symbol stripping program
12475STRIP=$STRIP
12476
12477# Used to examine libraries when file_magic_cmd begins "file"
12478MAGIC_CMD=$MAGIC_CMD
12479
12480# Used on cygwin: DLL creation program.
12481DLLTOOL="$DLLTOOL"
12482
12483# Used on cygwin: object dumper.
12484OBJDUMP="$OBJDUMP"
12485
12486# Used on cygwin: assembler.
12487AS="$AS"
12488
12489# The name of the directory that contains temporary libtool files.
12490objdir=$objdir
12491
12492# How to create reloadable object files.
12493reload_flag=$lt_reload_flag
12494reload_cmds=$lt_reload_cmds
12495
12496# How to pass a linker flag through the compiler.
12497wl=$lt_lt_prog_compiler_wl_CXX
12498
12499# Object file suffix (normally "o").
12500objext="$ac_objext"
12501
12502# Old archive suffix (normally "a").
12503libext="$libext"
12504
12505# Shared library suffix (normally ".so").
12506shrext='$shrext'
12507
12508# Executable file suffix (normally "").
12509exeext="$exeext"
12510
12511# Additional compiler flags for building library objects.
12512pic_flag=$lt_lt_prog_compiler_pic_CXX
12513pic_mode=$pic_mode
12514
12515# What is the maximum length of a command?
12516max_cmd_len=$lt_cv_sys_max_cmd_len
12517
12518# Does compiler simultaneously support -c and -o options?
12519compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12520
12521# Must we lock files when doing compilation ?
12522need_locks=$lt_need_locks
12523
12524# Do we need the lib prefix for modules?
12525need_lib_prefix=$need_lib_prefix
12526
12527# Do we need a version for libraries?
12528need_version=$need_version
12529
12530# Whether dlopen is supported.
12531dlopen_support=$enable_dlopen
12532
12533# Whether dlopen of programs is supported.
12534dlopen_self=$enable_dlopen_self
12535
12536# Whether dlopen of statically linked programs is supported.
12537dlopen_self_static=$enable_dlopen_self_static
12538
12539# Compiler flag to prevent dynamic linking.
12540link_static_flag=$lt_lt_prog_compiler_static_CXX
12541
12542# Compiler flag to turn off builtin functions.
12543no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12544
12545# Compiler flag to allow reflexive dlopens.
12546export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12547
12548# Compiler flag to generate shared objects directly from archives.
12549whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12550
12551# Compiler flag to generate thread-safe objects.
12552thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12553
12554# Library versioning type.
12555version_type=$version_type
12556
12557# Format of library name prefix.
12558libname_spec=$lt_libname_spec
12559
12560# List of archive names. First name is the real one, the rest are links.
12561# The last name is the one that the linker finds with -lNAME.
12562library_names_spec=$lt_library_names_spec
12563
12564# The coded name of the library, if different from the real name.
12565soname_spec=$lt_soname_spec
12566
12567# Commands used to build and install an old-style archive.
12568RANLIB=$lt_RANLIB
12569old_archive_cmds=$lt_old_archive_cmds_CXX
12570old_postinstall_cmds=$lt_old_postinstall_cmds
12571old_postuninstall_cmds=$lt_old_postuninstall_cmds
12572
12573# Create an old-style archive from a shared archive.
12574old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12575
12576# Create a temporary old-style archive to link instead of a shared archive.
12577old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12578
12579# Commands used to build and install a shared archive.
12580archive_cmds=$lt_archive_cmds_CXX
12581archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12582postinstall_cmds=$lt_postinstall_cmds
12583postuninstall_cmds=$lt_postuninstall_cmds
12584
12585# Commands used to build a loadable module (assumed same as above if empty)
12586module_cmds=$lt_module_cmds_CXX
12587module_expsym_cmds=$lt_module_expsym_cmds_CXX
12588
12589# Commands to strip libraries.
12590old_striplib=$lt_old_striplib
12591striplib=$lt_striplib
12592
12593# Dependencies to place before the objects being linked to create a
12594# shared library.
12595predep_objects=$lt_predep_objects_CXX
12596
12597# Dependencies to place after the objects being linked to create a
12598# shared library.
12599postdep_objects=$lt_postdep_objects_CXX
12600
12601# Dependencies to place before the objects being linked to create a
12602# shared library.
12603predeps=$lt_predeps_CXX
12604
12605# Dependencies to place after the objects being linked to create a
12606# shared library.
12607postdeps=$lt_postdeps_CXX
12608
12609# The library search path used internally by the compiler when linking
12610# a shared library.
12611compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12612
12613# Method to check whether dependent libraries are shared objects.
12614deplibs_check_method=$lt_deplibs_check_method
12615
12616# Command to use when deplibs_check_method == file_magic.
12617file_magic_cmd=$lt_file_magic_cmd
12618
12619# Flag that allows shared libraries with undefined symbols to be built.
12620allow_undefined_flag=$lt_allow_undefined_flag_CXX
12621
12622# Flag that forces no undefined symbols.
12623no_undefined_flag=$lt_no_undefined_flag_CXX
12624
12625# Commands used to finish a libtool library installation in a directory.
12626finish_cmds=$lt_finish_cmds
12627
12628# Same as above, but a single script fragment to be evaled but not shown.
12629finish_eval=$lt_finish_eval
12630
12631# Take the output of nm and produce a listing of raw symbols and C names.
12632global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12633
12634# Transform the output of nm in a proper C declaration
12635global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12636
12637# Transform the output of nm in a C name address pair
12638global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12639
12640# This is the shared library runtime path variable.
12641runpath_var=$runpath_var
12642
12643# This is the shared library path variable.
12644shlibpath_var=$shlibpath_var
12645
12646# Is shlibpath searched before the hard-coded library search path?
12647shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12648
12649# How to hardcode a shared library path into an executable.
12650hardcode_action=$hardcode_action_CXX
12651
12652# Whether we should hardcode library paths into libraries.
12653hardcode_into_libs=$hardcode_into_libs
12654
12655# Flag to hardcode \$libdir into a binary during linking.
12656# This must work even if \$libdir does not exist.
12657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12658
12659# If ld is used when linking, flag to hardcode \$libdir into
12660# a binary during linking. This must work even if \$libdir does
12661# not exist.
12662hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12663
12664# Whether we need a single -rpath flag with a separated argument.
12665hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12666
12667# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12668# resulting binary.
12669hardcode_direct=$hardcode_direct_CXX
12670
12671# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12672# resulting binary.
12673hardcode_minus_L=$hardcode_minus_L_CXX
12674
12675# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12676# the resulting binary.
12677hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12678
12679# Set to yes if building a shared library automatically hardcodes DIR into the library
12680# and all subsequent libraries and executables linked against it.
12681hardcode_automatic=$hardcode_automatic_CXX
12682
12683# Variables whose values should be saved in libtool wrapper scripts and
12684# restored at relink time.
12685variables_saved_for_relink="$variables_saved_for_relink"
12686
12687# Whether libtool must link a program against all its dependency libraries.
12688link_all_deplibs=$link_all_deplibs_CXX
12689
12690# Compile-time system search path for libraries
12691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12692
12693# Run-time system search path for libraries
12694sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12695
12696# Fix the shell variable \$srcfile for the compiler.
12697fix_srcfile_path="$fix_srcfile_path_CXX"
12698
12699# Set to yes if exported symbols are required.
12700always_export_symbols=$always_export_symbols_CXX
12701
12702# The commands to list exported symbols.
12703export_symbols_cmds=$lt_export_symbols_cmds_CXX
12704
12705# The commands to extract the exported symbol list from a shared archive.
12706extract_expsyms_cmds=$lt_extract_expsyms_cmds
12707
12708# Symbols that should not be listed in the preloaded symbols.
12709exclude_expsyms=$lt_exclude_expsyms_CXX
12710
12711# Symbols that must always be exported.
12712include_expsyms=$lt_include_expsyms_CXX
12713
12714# ### END LIBTOOL TAG CONFIG: $tagname
12715
12716__EOF__
12717
12718
12719else
12720 # If there is no Makefile yet, we rely on a make rule to execute
12721 # `config.status --recheck' to rerun these tests and create the
12722 # libtool script then.
12723 test -f Makefile && make "$ltmain"
12724fi
12725
12726
12727ac_ext=c
12728ac_cpp='$CPP $CPPFLAGS'
12729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732
12733CC=$lt_save_CC
12734LDCXX=$LD
12735LD=$lt_save_LD
12736GCC=$lt_save_GCC
12737with_gnu_ldcxx=$with_gnu_ld
12738with_gnu_ld=$lt_save_with_gnu_ld
12739lt_cv_path_LDCXX=$lt_cv_path_LD
12740lt_cv_path_LD=$lt_save_path_LD
12741lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12742lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12743
12744 else
12745 tagname=""
12746 fi
12747 ;;
12748
12749 F77)
12750 if test -n "$F77" && test "X$F77" != "Xno"; then
12751
12752ac_ext=f
12753ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12754ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12756
12757
12758archive_cmds_need_lc_F77=no
12759allow_undefined_flag_F77=
12760always_export_symbols_F77=no
12761archive_expsym_cmds_F77=
12762export_dynamic_flag_spec_F77=
12763hardcode_direct_F77=no
12764hardcode_libdir_flag_spec_F77=
12765hardcode_libdir_flag_spec_ld_F77=
12766hardcode_libdir_separator_F77=
12767hardcode_minus_L_F77=no
12768hardcode_automatic_F77=no
12769module_cmds_F77=
12770module_expsym_cmds_F77=
12771link_all_deplibs_F77=unknown
12772old_archive_cmds_F77=$old_archive_cmds
12773no_undefined_flag_F77=
12774whole_archive_flag_spec_F77=
12775enable_shared_with_static_runtimes_F77=no
12776
12777# Source file extension for f77 test sources.
12778ac_ext=f
12779
12780# Object file extension for compiled f77 test sources.
12781objext=o
12782objext_F77=$objext
12783
12784# Code to be used in simple compile tests
12785lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12786
12787# Code to be used in simple link tests
12788lt_simple_link_test_code=" program t\n end\n"
12789
12790# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12791
12792# If no C compiler was specified, use CC.
12793LTCC=${LTCC-"$CC"}
12794
12795# Allow CC to be a program name with arguments.
12796compiler=$CC
12797
12798
12799# Allow CC to be a program name with arguments.
12800lt_save_CC="$CC"
12801CC=${F77-"f77"}
12802compiler=$CC
12803compiler_F77=$CC
12804cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12805
12806echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12807echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12808echo "$as_me:$LINENO: result: $can_build_shared" >&5
12809echo "${ECHO_T}$can_build_shared" >&6
12810
12811echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12812echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12813test "$can_build_shared" = "no" && enable_shared=no
12814
12815# On AIX, shared libraries and static libraries use the same namespace, and
12816# are all built from PIC.
12817case "$host_os" in
12818aix3*)
12819 test "$enable_shared" = yes && enable_static=no
12820 if test -n "$RANLIB"; then
12821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12822 postinstall_cmds='$RANLIB $lib'
12823 fi
12824 ;;
12825aix4*)
12826 test "$enable_shared" = yes && enable_static=no
12827 ;;
12828esac
12829echo "$as_me:$LINENO: result: $enable_shared" >&5
12830echo "${ECHO_T}$enable_shared" >&6
12831
12832echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12833echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12834# Make sure either enable_shared or enable_static is yes.
12835test "$enable_shared" = yes || enable_static=yes
12836echo "$as_me:$LINENO: result: $enable_static" >&5
12837echo "${ECHO_T}$enable_static" >&6
12838
12839test "$ld_shlibs_F77" = no && can_build_shared=no
12840
12841GCC_F77="$G77"
12842LD_F77="$LD"
12843
12844lt_prog_compiler_wl_F77=
12845lt_prog_compiler_pic_F77=
12846lt_prog_compiler_static_F77=
12847
12848echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12849echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12850
12851 if test "$GCC" = yes; then
12852 lt_prog_compiler_wl_F77='-Wl,'
12853 lt_prog_compiler_static_F77='-static'
12854
12855 case $host_os in
12856 aix*)
12857 # All AIX code is PIC.
12858 if test "$host_cpu" = ia64; then
12859 # AIX 5 now supports IA64 processor
12860 lt_prog_compiler_static_F77='-Bstatic'
12861 fi
12862 ;;
12863
12864 amigaos*)
12865 # FIXME: we need at least 68020 code to build shared libraries, but
12866 # adding the `-m68020' flag to GCC prevents building anything better,
12867 # like `-m68040'.
12868 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12869 ;;
12870
12871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12872 # PIC is the default for these OSes.
12873 ;;
12874
12875 mingw* | pw32* | os2*)
12876 # This hack is so that the source file can tell whether it is being
12877 # built for inclusion in a dll (and should export symbols for example).
12878 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12879 ;;
12880
12881 darwin* | rhapsody*)
12882 # PIC is the default on this platform
12883 # Common symbols not allowed in MH_DYLIB files
12884 lt_prog_compiler_pic_F77='-fno-common'
12885 ;;
12886
12887 msdosdjgpp*)
12888 # Just because we use GCC doesn't mean we suddenly get shared libraries
12889 # on systems that don't support them.
12890 lt_prog_compiler_can_build_shared_F77=no
12891 enable_shared=no
12892 ;;
12893
12894 sysv4*MP*)
12895 if test -d /usr/nec; then
12896 lt_prog_compiler_pic_F77=-Kconform_pic
12897 fi
12898 ;;
12899
12900 hpux*)
12901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12902 # not for PA HP-UX.
12903 case "$host_cpu" in
12904 hppa*64*|ia64*)
12905 # +Z the default
12906 ;;
12907 *)
12908 lt_prog_compiler_pic_F77='-fPIC'
12909 ;;
12910 esac
12911 ;;
12912
12913 *)
12914 lt_prog_compiler_pic_F77='-fPIC'
12915 ;;
12916 esac
12917 else
12918 # PORTME Check for flag to pass linker flags through the system compiler.
12919 case $host_os in
12920 aix*)
12921 lt_prog_compiler_wl_F77='-Wl,'
12922 if test "$host_cpu" = ia64; then
12923 # AIX 5 now supports IA64 processor
12924 lt_prog_compiler_static_F77='-Bstatic'
12925 else
12926 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12927 fi
12928 ;;
12929
12930 mingw* | pw32* | os2*)
12931 # This hack is so that the source file can tell whether it is being
12932 # built for inclusion in a dll (and should export symbols for example).
12933 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12934 ;;
12935
12936 hpux9* | hpux10* | hpux11*)
12937 lt_prog_compiler_wl_F77='-Wl,'
12938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12939 # not for PA HP-UX.
12940 case "$host_cpu" in
12941 hppa*64*|ia64*)
12942 # +Z the default
12943 ;;
12944 *)
12945 lt_prog_compiler_pic_F77='+Z'
12946 ;;
12947 esac
12948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12949 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12950 ;;
12951
12952 irix5* | irix6* | nonstopux*)
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 # PIC (with -KPIC) is the default.
12955 lt_prog_compiler_static_F77='-non_shared'
12956 ;;
12957
12958 newsos6)
12959 lt_prog_compiler_pic_F77='-KPIC'
12960 lt_prog_compiler_static_F77='-Bstatic'
12961 ;;
12962
12963 linux*)
12964 case $CC in
12965 icc|ecc)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 lt_prog_compiler_pic_F77='-KPIC'
12968 lt_prog_compiler_static_F77='-static'
12969 ;;
12970 ccc)
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 # All Alpha code is PIC.
12973 lt_prog_compiler_static_F77='-non_shared'
12974 ;;
12975 esac
12976 ;;
12977
12978 osf3* | osf4* | osf5*)
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 # All OSF/1 code is PIC.
12981 lt_prog_compiler_static_F77='-non_shared'
12982 ;;
12983
12984 sco3.2v5*)
12985 lt_prog_compiler_pic_F77='-Kpic'
12986 lt_prog_compiler_static_F77='-dn'
12987 ;;
12988
12989 solaris*)
12990 lt_prog_compiler_wl_F77='-Wl,'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 ;;
12994
12995 sunos4*)
12996 lt_prog_compiler_wl_F77='-Qoption ld '
12997 lt_prog_compiler_pic_F77='-PIC'
12998 lt_prog_compiler_static_F77='-Bstatic'
12999 ;;
13000
13001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_pic_F77='-KPIC'
13004 lt_prog_compiler_static_F77='-Bstatic'
13005 ;;
13006
13007 sysv4*MP*)
13008 if test -d /usr/nec ;then
13009 lt_prog_compiler_pic_F77='-Kconform_pic'
13010 lt_prog_compiler_static_F77='-Bstatic'
13011 fi
13012 ;;
13013
13014 uts4*)
13015 lt_prog_compiler_pic_F77='-pic'
13016 lt_prog_compiler_static_F77='-Bstatic'
13017 ;;
13018
13019 *)
13020 lt_prog_compiler_can_build_shared_F77=no
13021 ;;
13022 esac
13023 fi
13024
13025echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13026echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13027
13028#
13029# Check to make sure the PIC flag actually works.
13030#
13031if test -n "$lt_prog_compiler_pic_F77"; then
13032 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13033echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13034if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036else
13037 lt_prog_compiler_pic_works_F77=no
13038 ac_outfile=conftest.$ac_objext
13039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13040 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13041 # Insert the option either (1) after the last *FLAGS variable, or
13042 # (2) before a word containing "conftest.", or (3) at the end.
13043 # Note that $ac_compile itself does not contain backslashes and begins
13044 # with a dollar sign (not a hyphen), so the echo should work correctly.
13045 # The option is referenced via a variable to avoid confusing sed.
13046 lt_compile=`echo "$ac_compile" | $SED \
13047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13049 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000013050 (eval echo "\"\$as_me:13050: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013051 (eval "$lt_compile" 2>conftest.err)
13052 ac_status=$?
13053 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000013054 echo "$as_me:13054: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013055 if (exit $ac_status) && test -s "$ac_outfile"; then
13056 # The compiler can only warn and ignore the option if not recognized
13057 # So say no if there are warnings
13058 if test ! -s conftest.err; then
13059 lt_prog_compiler_pic_works_F77=yes
13060 fi
13061 fi
13062 $rm conftest*
13063
13064fi
13065echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13066echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13067
13068if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13069 case $lt_prog_compiler_pic_F77 in
13070 "" | " "*) ;;
13071 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13072 esac
13073else
13074 lt_prog_compiler_pic_F77=
13075 lt_prog_compiler_can_build_shared_F77=no
13076fi
13077
13078fi
13079case "$host_os" in
13080 # For platforms which do not support PIC, -DPIC is meaningless:
13081 *djgpp*)
13082 lt_prog_compiler_pic_F77=
13083 ;;
13084 *)
13085 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13086 ;;
13087esac
13088
13089echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13090echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13091if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 lt_cv_prog_compiler_c_o_F77=no
13095 $rm -r conftest 2>/dev/null
13096 mkdir conftest
13097 cd conftest
13098 mkdir out
13099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13100
13101 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13102 # that will create temporary files in the current directory regardless of
13103 # the output directory. Thus, making CWD read-only will cause this test
13104 # to fail, enabling locking or at least warning the user not to do parallel
13105 # builds.
13106 chmod -w .
13107
13108 lt_compiler_flag="-o out/conftest2.$ac_objext"
13109 # Insert the option either (1) after the last *FLAGS variable, or
13110 # (2) before a word containing "conftest.", or (3) at the end.
13111 # Note that $ac_compile itself does not contain backslashes and begins
13112 # with a dollar sign (not a hyphen), so the echo should work correctly.
13113 lt_compile=`echo "$ac_compile" | $SED \
13114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000013117 (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013118 (eval "$lt_compile" 2>out/conftest.err)
13119 ac_status=$?
13120 cat out/conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000013121 echo "$as_me:13121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13123 then
13124 # The compiler can only warn and ignore the option if not recognized
13125 # So say no if there are warnings
13126 if test ! -s out/conftest.err; then
13127 lt_cv_prog_compiler_c_o_F77=yes
13128 fi
13129 fi
13130 chmod u+w .
13131 $rm conftest* out/*
13132 rmdir out
13133 cd ..
13134 rmdir conftest
13135 $rm conftest*
13136
13137fi
13138echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13139echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13140
13141
13142hard_links="nottested"
13143if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13144 # do not overwrite the value of need_locks provided by the user
13145 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13146echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13147 hard_links=yes
13148 $rm conftest*
13149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13150 touch conftest.a
13151 ln conftest.a conftest.b 2>&5 || hard_links=no
13152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13153 echo "$as_me:$LINENO: result: $hard_links" >&5
13154echo "${ECHO_T}$hard_links" >&6
13155 if test "$hard_links" = no; then
13156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13157echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13158 need_locks=warn
13159 fi
13160else
13161 need_locks=no
13162fi
13163
13164echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13165echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13166
13167 runpath_var=
13168 allow_undefined_flag_F77=
13169 enable_shared_with_static_runtimes_F77=no
13170 archive_cmds_F77=
13171 archive_expsym_cmds_F77=
13172 old_archive_From_new_cmds_F77=
13173 old_archive_from_expsyms_cmds_F77=
13174 export_dynamic_flag_spec_F77=
13175 whole_archive_flag_spec_F77=
13176 thread_safe_flag_spec_F77=
13177 hardcode_libdir_flag_spec_F77=
13178 hardcode_libdir_flag_spec_ld_F77=
13179 hardcode_libdir_separator_F77=
13180 hardcode_direct_F77=no
13181 hardcode_minus_L_F77=no
13182 hardcode_shlibpath_var_F77=unsupported
13183 link_all_deplibs_F77=unknown
13184 hardcode_automatic_F77=no
13185 module_cmds_F77=
13186 module_expsym_cmds_F77=
13187 always_export_symbols_F77=no
13188 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13189 # include_expsyms should be a list of space-separated symbols to be *always*
13190 # included in the symbol list
13191 include_expsyms_F77=
13192 # exclude_expsyms can be an extended regexp of symbols to exclude
13193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13195 # as well as any symbol that contains `d'.
13196 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13198 # platforms (ab)use it in PIC code, but their linkers get confused if
13199 # the symbol is explicitly referenced. Since portable code cannot
13200 # rely on this symbol name, it's probably fine to never include it in
13201 # preloaded symbol tables.
13202 extract_expsyms_cmds=
13203
13204 case $host_os in
13205 cygwin* | mingw* | pw32*)
13206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13207 # When not using gcc, we currently assume that we are using
13208 # Microsoft Visual C++.
13209 if test "$GCC" != yes; then
13210 with_gnu_ld=no
13211 fi
13212 ;;
13213 openbsd*)
13214 with_gnu_ld=no
13215 ;;
13216 esac
13217
13218 ld_shlibs_F77=yes
13219 if test "$with_gnu_ld" = yes; then
13220 # If archive_cmds runs LD, not CC, wlarc should be empty
13221 wlarc='${wl}'
13222
13223 # See if GNU ld supports shared libraries.
13224 case $host_os in
13225 aix3* | aix4* | aix5*)
13226 # On AIX/PPC, the GNU linker is very broken
13227 if test "$host_cpu" != ia64; then
13228 ld_shlibs_F77=no
13229 cat <<EOF 1>&2
13230
13231*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13232*** to be unable to reliably create shared libraries on AIX.
13233*** Therefore, libtool is disabling shared libraries support. If you
13234*** really care for shared libraries, you may want to modify your PATH
13235*** so that a non-GNU linker is found, and then restart.
13236
13237EOF
13238 fi
13239 ;;
13240
13241 amigaos*)
13242 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)'
13243 hardcode_libdir_flag_spec_F77='-L$libdir'
13244 hardcode_minus_L_F77=yes
13245
13246 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13247 # that the semantics of dynamic libraries on AmigaOS, at least up
13248 # to version 4, is to share data among multiple programs linked
13249 # with the same dynamic library. Since this doesn't match the
13250 # behavior of shared libraries on other platforms, we can't use
13251 # them.
13252 ld_shlibs_F77=no
13253 ;;
13254
13255 beos*)
13256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13257 allow_undefined_flag_F77=unsupported
13258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13259 # support --undefined. This deserves some investigation. FIXME
13260 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 else
13262 ld_shlibs_F77=no
13263 fi
13264 ;;
13265
13266 cygwin* | mingw* | pw32*)
13267 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13268 # as there is no search path for DLLs.
13269 hardcode_libdir_flag_spec_F77='-L$libdir'
13270 allow_undefined_flag_F77=unsupported
13271 always_export_symbols_F77=no
13272 enable_shared_with_static_runtimes_F77=yes
13273 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13274
13275 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13277 # If the export-symbols file already is a .def file (1st line
13278 # is EXPORTS), use it as is; otherwise, prepend...
13279 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13280 cp $export_symbols $output_objdir/$soname.def;
13281 else
13282 echo EXPORTS > $output_objdir/$soname.def;
13283 cat $export_symbols >> $output_objdir/$soname.def;
13284 fi~
13285 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13286 else
13287 ld_shlibs=no
13288 fi
13289 ;;
13290
13291 netbsd*)
13292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13293 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13294 wlarc=
13295 else
13296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298 fi
13299 ;;
13300
13301 solaris* | sysv5*)
13302 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13303 ld_shlibs_F77=no
13304 cat <<EOF 1>&2
13305
13306*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13307*** create shared libraries on Solaris systems. Therefore, libtool
13308*** is disabling shared libraries support. We urge you to upgrade GNU
13309*** binutils to release 2.9.1 or newer. Another option is to modify
13310*** your PATH or compiler configuration so that the native linker is
13311*** used, and then restart.
13312
13313EOF
13314 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13315 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13316 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13317 else
13318 ld_shlibs_F77=no
13319 fi
13320 ;;
13321
13322 sunos4*)
13323 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13324 wlarc=
13325 hardcode_direct_F77=yes
13326 hardcode_shlibpath_var_F77=no
13327 ;;
13328
13329 *)
13330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13331 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13332 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13333 else
13334 ld_shlibs_F77=no
13335 fi
13336 ;;
13337 esac
13338
13339 if test "$ld_shlibs_F77" = yes; then
13340 runpath_var=LD_RUN_PATH
13341 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13342 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13343 # ancient GNU ld didn't support --whole-archive et. al.
13344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13345 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13346 else
13347 whole_archive_flag_spec_F77=
13348 fi
13349 fi
13350 else
13351 # PORTME fill in a description of your system's linker (not GNU ld)
13352 case $host_os in
13353 aix3*)
13354 allow_undefined_flag_F77=unsupported
13355 always_export_symbols_F77=yes
13356 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'
13357 # Note: this linker hardcodes the directories in LIBPATH if there
13358 # are no directories specified by -L.
13359 hardcode_minus_L_F77=yes
13360 if test "$GCC" = yes && test -z "$link_static_flag"; then
13361 # Neither direct hardcoding nor static linking is supported with a
13362 # broken collect2.
13363 hardcode_direct_F77=unsupported
13364 fi
13365 ;;
13366
13367 aix4* | aix5*)
13368 if test "$host_cpu" = ia64; then
13369 # On IA64, the linker does run time linking by default, so we don't
13370 # have to do anything special.
13371 aix_use_runtimelinking=no
13372 exp_sym_flag='-Bexport'
13373 no_entry_flag=""
13374 else
13375 # If we're using GNU nm, then we don't want the "-C" option.
13376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13378 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'
13379 else
13380 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'
13381 fi
13382 aix_use_runtimelinking=no
13383
13384 # Test if we are trying to use run time linking or normal
13385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13386 # need to do runtime linking.
13387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13388 for ld_flag in $LDFLAGS; do
13389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13390 aix_use_runtimelinking=yes
13391 break
13392 fi
13393 done
13394 esac
13395
13396 exp_sym_flag='-bexport'
13397 no_entry_flag='-bnoentry'
13398 fi
13399
13400 # When large executables or shared objects are built, AIX ld can
13401 # have problems creating the table of contents. If linking a library
13402 # or program results in "error TOC overflow" add -mminimal-toc to
13403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13405
13406 archive_cmds_F77=''
13407 hardcode_direct_F77=yes
13408 hardcode_libdir_separator_F77=':'
13409 link_all_deplibs_F77=yes
13410
13411 if test "$GCC" = yes; then
13412 case $host_os in aix4.012|aix4.012.*)
13413 # We only want to do this on AIX 4.2 and lower, the check
13414 # below for broken collect2 doesn't work under 4.3+
13415 collect2name=`${CC} -print-prog-name=collect2`
13416 if test -f "$collect2name" && \
13417 strings "$collect2name" | grep resolve_lib_name >/dev/null
13418 then
13419 # We have reworked collect2
13420 hardcode_direct_F77=yes
13421 else
13422 # We have old collect2
13423 hardcode_direct_F77=unsupported
13424 # It fails to find uninstalled libraries when the uninstalled
13425 # path is not listed in the libpath. Setting hardcode_minus_L
13426 # to unsupported forces relinking
13427 hardcode_minus_L_F77=yes
13428 hardcode_libdir_flag_spec_F77='-L$libdir'
13429 hardcode_libdir_separator_F77=
13430 fi
13431 esac
13432 shared_flag='-shared'
13433 else
13434 # not using gcc
13435 if test "$host_cpu" = ia64; then
13436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13437 # chokes on -Wl,-G. The following line is correct:
13438 shared_flag='-G'
13439 else
13440 if test "$aix_use_runtimelinking" = yes; then
13441 shared_flag='${wl}-G'
13442 else
13443 shared_flag='${wl}-bM:SRE'
13444 fi
13445 fi
13446 fi
13447
13448 # It seems that -bexpall does not export symbols beginning with
13449 # underscore (_), so it is better to generate a list of symbols to export.
13450 always_export_symbols_F77=yes
13451 if test "$aix_use_runtimelinking" = yes; then
13452 # Warning - without using the other runtime loading flags (-brtl),
13453 # -berok will link without error, but may produce a broken library.
13454 allow_undefined_flag_F77='-berok'
13455 # Determine the default libpath from the value encoded in an empty executable.
13456 cat >conftest.$ac_ext <<_ACEOF
13457 program main
13458
13459 end
13460_ACEOF
13461rm -f conftest.$ac_objext conftest$ac_exeext
13462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473
13474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13475}'`
13476# Check for a 64-bit object if we didn't find anything.
13477if 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; }
13478}'`; fi
13479else
13480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013481sed 's/^/| /' conftest.$ac_ext >&5
13482
John Criswell47fdd832003-07-14 16:52:07 +000013483fi
13484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13486
13487 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13488 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"
13489 else
13490 if test "$host_cpu" = ia64; then
13491 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13492 allow_undefined_flag_F77="-z nodefs"
13493 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"
13494 else
13495 # Determine the default libpath from the value encoded in an empty executable.
13496 cat >conftest.$ac_ext <<_ACEOF
13497 program main
13498
13499 end
13500_ACEOF
13501rm -f conftest.$ac_objext conftest$ac_exeext
13502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13503 (eval $ac_link) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513
13514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13515}'`
13516# Check for a 64-bit object if we didn't find anything.
13517if 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; }
13518}'`; fi
13519else
13520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013521sed 's/^/| /' conftest.$ac_ext >&5
13522
John Criswell47fdd832003-07-14 16:52:07 +000013523fi
13524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13526
13527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13528 # Warning - without using the other run time loading flags,
13529 # -berok will link without error, but may produce a broken library.
13530 no_undefined_flag_F77=' ${wl}-bernotok'
13531 allow_undefined_flag_F77=' ${wl}-berok'
13532 # -bexpall does not export symbols beginning with underscore (_)
13533 always_export_symbols_F77=yes
13534 # Exported symbols can be pulled into shared objects from archives
13535 whole_archive_flag_spec_F77=' '
13536 archive_cmds_need_lc_F77=yes
13537 # This is similar to how AIX traditionally builds it's shared libraries.
13538 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'
13539 fi
13540 fi
13541 ;;
13542
13543 amigaos*)
13544 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)'
13545 hardcode_libdir_flag_spec_F77='-L$libdir'
13546 hardcode_minus_L_F77=yes
13547 # see comment about different semantics on the GNU ld section
13548 ld_shlibs_F77=no
13549 ;;
13550
13551 bsdi4*)
13552 export_dynamic_flag_spec_F77=-rdynamic
13553 ;;
13554
13555 cygwin* | mingw* | pw32*)
13556 # When not using gcc, we currently assume that we are using
13557 # Microsoft Visual C++.
13558 # hardcode_libdir_flag_spec is actually meaningless, as there is
13559 # no search path for DLLs.
13560 hardcode_libdir_flag_spec_F77=' '
13561 allow_undefined_flag_F77=unsupported
13562 # Tell ltmain to make .lib files, not .a files.
13563 libext=lib
13564 # Tell ltmain to make .dll files, not .so files.
13565 shrext=".dll"
13566 # FIXME: Setting linknames here is a bad hack.
13567 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13568 # The linker will automatically build a .lib file if we build a DLL.
13569 old_archive_From_new_cmds_F77='true'
13570 # FIXME: Should let the user specify the lib program.
13571 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13572 fix_srcfile_path='`cygpath -w "$srcfile"`'
13573 enable_shared_with_static_runtimes_F77=yes
13574 ;;
13575
13576 darwin* | rhapsody*)
13577 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13578 archive_cmds_need_lc_F77=no
13579 case "$host_os" in
13580 rhapsody* | darwin1.[012])
13581 allow_undefined_flag_F77='-undefined suppress'
13582 ;;
13583 *) # Darwin 1.3 on
13584 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13585 ;;
13586 esac
13587 # FIXME: Relying on posixy $() will cause problems for
13588 # cross-compilation, but unfortunately the echo tests do not
13589 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13590 # `"' quotes if we put them in here... so don't!
13591 lt_int_apple_cc_single_mod=no
13592 output_verbose_link_cmd='echo'
13593 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13594 lt_int_apple_cc_single_mod=yes
13595 fi
13596 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13597 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13598 else
13599 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'
13600 fi
13601 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13603 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604 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}'
13605 else
13606 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}'
13607 fi
13608 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}'
13609 hardcode_direct_F77=no
13610 hardcode_automatic_F77=yes
13611 hardcode_shlibpath_var_F77=unsupported
13612 whole_archive_flag_spec_F77='-all_load $convenience'
13613 link_all_deplibs_F77=yes
13614 fi
13615 ;;
13616
13617 dgux*)
13618 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13619 hardcode_libdir_flag_spec_F77='-L$libdir'
13620 hardcode_shlibpath_var_F77=no
13621 ;;
13622
13623 freebsd1*)
13624 ld_shlibs_F77=no
13625 ;;
13626
13627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13628 # support. Future versions do this automatically, but an explicit c++rt0.o
13629 # does not break anything, and helps significantly (at the cost of a little
13630 # extra space).
13631 freebsd2.2*)
13632 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13633 hardcode_libdir_flag_spec_F77='-R$libdir'
13634 hardcode_direct_F77=yes
13635 hardcode_shlibpath_var_F77=no
13636 ;;
13637
13638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13639 freebsd2*)
13640 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_direct_F77=yes
13642 hardcode_minus_L_F77=yes
13643 hardcode_shlibpath_var_F77=no
13644 ;;
13645
13646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13647 freebsd*)
13648 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13649 hardcode_libdir_flag_spec_F77='-R$libdir'
13650 hardcode_direct_F77=yes
13651 hardcode_shlibpath_var_F77=no
13652 ;;
13653
13654 hpux9*)
13655 if test "$GCC" = yes; then
13656 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'
13657 else
13658 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'
13659 fi
13660 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13661 hardcode_libdir_separator_F77=:
13662 hardcode_direct_F77=yes
13663
13664 # hardcode_minus_L: Not really in the search PATH,
13665 # but as the default location of the library.
13666 hardcode_minus_L_F77=yes
13667 export_dynamic_flag_spec_F77='${wl}-E'
13668 ;;
13669
13670 hpux10* | hpux11*)
13671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13672 case "$host_cpu" in
13673 hppa*64*|ia64*)
13674 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 ;;
13676 *)
13677 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13678 ;;
13679 esac
13680 else
13681 case "$host_cpu" in
13682 hppa*64*|ia64*)
13683 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 ;;
13685 *)
13686 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13687 ;;
13688 esac
13689 fi
13690 if test "$with_gnu_ld" = no; then
13691 case "$host_cpu" in
13692 hppa*64*)
13693 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13694 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13695 hardcode_libdir_separator_F77=:
13696 hardcode_direct_F77=no
13697 hardcode_shlibpath_var_F77=no
13698 ;;
13699 ia64*)
13700 hardcode_libdir_flag_spec_F77='-L$libdir'
13701 hardcode_direct_F77=no
13702 hardcode_shlibpath_var_F77=no
13703
13704 # hardcode_minus_L: Not really in the search PATH,
13705 # but as the default location of the library.
13706 hardcode_minus_L_F77=yes
13707 ;;
13708 *)
13709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13710 hardcode_libdir_separator_F77=:
13711 hardcode_direct_F77=yes
13712 export_dynamic_flag_spec_F77='${wl}-E'
13713
13714 # hardcode_minus_L: Not really in the search PATH,
13715 # but as the default location of the library.
13716 hardcode_minus_L_F77=yes
13717 ;;
13718 esac
13719 fi
13720 ;;
13721
13722 irix5* | irix6* | nonstopux*)
13723 if test "$GCC" = yes; then
13724 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'
13725 else
13726 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'
13727 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13728 fi
13729 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13730 hardcode_libdir_separator_F77=:
13731 link_all_deplibs_F77=yes
13732 ;;
13733
13734 netbsd*)
13735 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13736 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13737 else
13738 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13739 fi
13740 hardcode_libdir_flag_spec_F77='-R$libdir'
13741 hardcode_direct_F77=yes
13742 hardcode_shlibpath_var_F77=no
13743 ;;
13744
13745 newsos6)
13746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13747 hardcode_direct_F77=yes
13748 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13749 hardcode_libdir_separator_F77=:
13750 hardcode_shlibpath_var_F77=no
13751 ;;
13752
13753 openbsd*)
13754 hardcode_direct_F77=yes
13755 hardcode_shlibpath_var_F77=no
13756 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13757 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13758 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13759 export_dynamic_flag_spec_F77='${wl}-E'
13760 else
13761 case $host_os in
13762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13763 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13764 hardcode_libdir_flag_spec_F77='-R$libdir'
13765 ;;
13766 *)
13767 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13768 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13769 ;;
13770 esac
13771 fi
13772 ;;
13773
13774 os2*)
13775 hardcode_libdir_flag_spec_F77='-L$libdir'
13776 hardcode_minus_L_F77=yes
13777 allow_undefined_flag_F77=unsupported
13778 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'
13779 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13780 ;;
13781
13782 osf3*)
13783 if test "$GCC" = yes; then
13784 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13785 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'
13786 else
13787 allow_undefined_flag_F77=' -expect_unresolved \*'
13788 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'
13789 fi
13790 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13791 hardcode_libdir_separator_F77=:
13792 ;;
13793
13794 osf4* | osf5*) # as osf3* with the addition of -msym flag
13795 if test "$GCC" = yes; then
13796 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13797 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'
13798 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13799 else
13800 allow_undefined_flag_F77=' -expect_unresolved \*'
13801 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'
13802 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~
13803 $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'
13804
13805 # Both c and cxx compiler support -rpath directly
13806 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13807 fi
13808 hardcode_libdir_separator_F77=:
13809 ;;
13810
13811 sco3.2v5*)
13812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13813 hardcode_shlibpath_var_F77=no
13814 export_dynamic_flag_spec_F77='${wl}-Bexport'
13815 runpath_var=LD_RUN_PATH
13816 hardcode_runpath_var=yes
13817 ;;
13818
13819 solaris*)
13820 no_undefined_flag_F77=' -z text'
13821 if test "$GCC" = yes; then
13822 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13824 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13825 else
13826 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13827 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13829 fi
13830 hardcode_libdir_flag_spec_F77='-R$libdir'
13831 hardcode_shlibpath_var_F77=no
13832 case $host_os in
13833 solaris2.[0-5] | solaris2.[0-5].*) ;;
13834 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13835 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13836 esac
13837 link_all_deplibs_F77=yes
13838 ;;
13839
13840 sunos4*)
13841 if test "x$host_vendor" = xsequent; then
13842 # Use $CC to link under sequent, because it throws in some extra .o
13843 # files that make .init and .fini sections work.
13844 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13845 else
13846 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13847 fi
13848 hardcode_libdir_flag_spec_F77='-L$libdir'
13849 hardcode_direct_F77=yes
13850 hardcode_minus_L_F77=yes
13851 hardcode_shlibpath_var_F77=no
13852 ;;
13853
13854 sysv4)
13855 case $host_vendor in
13856 sni)
13857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_direct_F77=yes # is this really true???
13859 ;;
13860 siemens)
13861 ## LD is ld it makes a PLAMLIB
13862 ## CC just makes a GrossModule.
13863 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13864 reload_cmds_F77='$CC -r -o $output$reload_objs'
13865 hardcode_direct_F77=no
13866 ;;
13867 motorola)
13868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13869 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13870 ;;
13871 esac
13872 runpath_var='LD_RUN_PATH'
13873 hardcode_shlibpath_var_F77=no
13874 ;;
13875
13876 sysv4.3*)
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_shlibpath_var_F77=no
13879 export_dynamic_flag_spec_F77='-Bexport'
13880 ;;
13881
13882 sysv4*MP*)
13883 if test -d /usr/nec; then
13884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13885 hardcode_shlibpath_var_F77=no
13886 runpath_var=LD_RUN_PATH
13887 hardcode_runpath_var=yes
13888 ld_shlibs_F77=yes
13889 fi
13890 ;;
13891
13892 sysv4.2uw2*)
13893 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13894 hardcode_direct_F77=yes
13895 hardcode_minus_L_F77=no
13896 hardcode_shlibpath_var_F77=no
13897 hardcode_runpath_var=yes
13898 runpath_var=LD_RUN_PATH
13899 ;;
13900
13901 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13902 no_undefined_flag_F77='${wl}-z ${wl}text'
13903 if test "$GCC" = yes; then
13904 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 else
13906 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907 fi
13908 runpath_var='LD_RUN_PATH'
13909 hardcode_shlibpath_var_F77=no
13910 ;;
13911
13912 sysv5*)
13913 no_undefined_flag_F77=' -z text'
13914 # $CC -shared without GNU ld will not create a library from C++
13915 # object files and a static libstdc++, better avoid it by now
13916 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13918 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13919 hardcode_libdir_flag_spec_F77=
13920 hardcode_shlibpath_var_F77=no
13921 runpath_var='LD_RUN_PATH'
13922 ;;
13923
13924 uts4*)
13925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926 hardcode_libdir_flag_spec_F77='-L$libdir'
13927 hardcode_shlibpath_var_F77=no
13928 ;;
13929
13930 *)
13931 ld_shlibs_F77=no
13932 ;;
13933 esac
13934 fi
13935
13936echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13937echo "${ECHO_T}$ld_shlibs_F77" >&6
13938test "$ld_shlibs_F77" = no && can_build_shared=no
13939
13940variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13941if test "$GCC" = yes; then
13942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13943fi
13944
13945#
13946# Do we need to explicitly link libc?
13947#
13948case "x$archive_cmds_need_lc_F77" in
13949x|xyes)
13950 # Assume -lc should be added
13951 archive_cmds_need_lc_F77=yes
13952
13953 if test "$enable_shared" = yes && test "$GCC" = yes; then
13954 case $archive_cmds_F77 in
13955 *'~'*)
13956 # FIXME: we may have to deal with multi-command sequences.
13957 ;;
13958 '$CC '*)
13959 # Test whether the compiler implicitly links with -lc since on some
13960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13961 # to ld, don't add -lc before -lgcc.
13962 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13964 $rm conftest*
13965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13966
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } 2>conftest.err; then
13972 soname=conftest
13973 lib=conftest
13974 libobjs=conftest.$ac_objext
13975 deplibs=
13976 wl=$lt_prog_compiler_wl_F77
13977 compiler_flags=-v
13978 linker_flags=-v
13979 verstring=
13980 output_objdir=.
13981 libname=conftest
13982 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13983 allow_undefined_flag_F77=
13984 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13985 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13986 ac_status=$?
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }
13989 then
13990 archive_cmds_need_lc_F77=no
13991 else
13992 archive_cmds_need_lc_F77=yes
13993 fi
13994 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13995 else
13996 cat conftest.err 1>&5
13997 fi
13998 $rm conftest*
13999 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14000echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14001 ;;
14002 esac
14003 fi
14004 ;;
14005esac
14006
14007echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14008echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14009hardcode_action_F77=
14010if test -n "$hardcode_libdir_flag_spec_F77" || \
14011 test -n "$runpath_var F77" || \
14012 test "X$hardcode_automatic_F77"="Xyes" ; then
14013
14014 # We can hardcode non-existant directories.
14015 if test "$hardcode_direct_F77" != no &&
14016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14017 # have to relink, otherwise we might link with an installed library
14018 # when we should be linking with a yet-to-be-installed one
14019 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14020 test "$hardcode_minus_L_F77" != no; then
14021 # Linking always hardcodes the temporary library directory.
14022 hardcode_action_F77=relink
14023 else
14024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14025 hardcode_action_F77=immediate
14026 fi
14027else
14028 # We cannot hardcode anything, or else we can only hardcode existing
14029 # directories.
14030 hardcode_action_F77=unsupported
14031fi
14032echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14033echo "${ECHO_T}$hardcode_action_F77" >&6
14034
14035if test "$hardcode_action_F77" = relink; then
14036 # Fast installation is not supported
14037 enable_fast_install=no
14038elif test "$shlibpath_overrides_runpath" = yes ||
14039 test "$enable_shared" = no; then
14040 # Fast installation is not necessary
14041 enable_fast_install=needless
14042fi
14043
14044striplib=
14045old_striplib=
14046echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14047echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14048if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14049 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14050 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14051 echo "$as_me:$LINENO: result: yes" >&5
14052echo "${ECHO_T}yes" >&6
14053else
14054# FIXME - insert some real tests, host_os isn't really good enough
14055 case $host_os in
14056 darwin*)
14057 if test -n "$STRIP" ; then
14058 striplib="$STRIP -x"
14059 echo "$as_me:$LINENO: result: yes" >&5
14060echo "${ECHO_T}yes" >&6
14061 else
14062 echo "$as_me:$LINENO: result: no" >&5
14063echo "${ECHO_T}no" >&6
14064fi
14065 ;;
14066 *)
14067 echo "$as_me:$LINENO: result: no" >&5
14068echo "${ECHO_T}no" >&6
14069 ;;
14070 esac
14071fi
14072
14073echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14075library_names_spec=
14076libname_spec='lib$name'
14077soname_spec=
14078shrext=".so"
14079postinstall_cmds=
14080postuninstall_cmds=
14081finish_cmds=
14082finish_eval=
14083shlibpath_var=
14084shlibpath_overrides_runpath=unknown
14085version_type=none
14086dynamic_linker="$host_os ld.so"
14087sys_lib_dlsearch_path_spec="/lib /usr/lib"
14088if test "$GCC" = yes; then
14089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14091 # if the path contains ";" then we assume it to be the separator
14092 # otherwise default to the standard path separator (i.e. ":") - it is
14093 # assumed that no part of a normal pathname contains ";" but that should
14094 # okay in the real world where ";" in dirpaths is itself problematic.
14095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14096 else
14097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14098 fi
14099else
14100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14101fi
14102need_lib_prefix=unknown
14103hardcode_into_libs=no
14104
14105# when you set need_version to no, make sure it does not cause -set_version
14106# flags to be left without arguments
14107need_version=unknown
14108
14109case $host_os in
14110aix3*)
14111 version_type=linux
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14113 shlibpath_var=LIBPATH
14114
14115 # AIX 3 has no versioning support, so we append a major version to the name.
14116 soname_spec='${libname}${release}${shared_ext}$major'
14117 ;;
14118
14119aix4* | aix5*)
14120 version_type=linux
14121 need_lib_prefix=no
14122 need_version=no
14123 hardcode_into_libs=yes
14124 if test "$host_cpu" = ia64; then
14125 # AIX 5 supports IA64
14126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 else
14129 # With GCC up to 2.95.x, collect2 would create an import file
14130 # for dependence libraries. The import file would start with
14131 # the line `#! .'. This would cause the generated library to
14132 # depend on `.', always an invalid library. This was fixed in
14133 # development snapshots of GCC prior to 3.0.
14134 case $host_os in
14135 aix4 | aix4.[01] | aix4.[01].*)
14136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14137 echo ' yes '
14138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14139 :
14140 else
14141 can_build_shared=no
14142 fi
14143 ;;
14144 esac
14145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14146 # soname into executable. Probably we can add versioning support to
14147 # collect2, so additional links can be useful in future.
14148 if test "$aix_use_runtimelinking" = yes; then
14149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14150 # instead of lib<name>.a to let people know that these are not
14151 # typical AIX shared libraries.
14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14153 else
14154 # We preserve .a as extension for shared libraries through AIX4.2
14155 # and later when we are not doing run time linking.
14156 library_names_spec='${libname}${release}.a $libname.a'
14157 soname_spec='${libname}${release}${shared_ext}$major'
14158 fi
14159 shlibpath_var=LIBPATH
14160 fi
14161 ;;
14162
14163amigaos*)
14164 library_names_spec='$libname.ixlibrary $libname.a'
14165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14166 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'
14167 ;;
14168
14169beos*)
14170 library_names_spec='${libname}${shared_ext}'
14171 dynamic_linker="$host_os ld.so"
14172 shlibpath_var=LIBRARY_PATH
14173 ;;
14174
14175bsdi4*)
14176 version_type=linux
14177 need_version=no
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14184 # the default ld.so.conf also contains /usr/contrib/lib and
14185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14186 # libtool to hard-code these into programs
14187 ;;
14188
14189cygwin* | mingw* | pw32*)
14190 version_type=windows
14191 shrext=".dll"
14192 need_version=no
14193 need_lib_prefix=no
14194
14195 case $GCC,$host_os in
14196 yes,cygwin* | yes,mingw* | yes,pw32*)
14197 library_names_spec='$libname.dll.a'
14198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14199 postinstall_cmds='base_file=`basename \${file}`~
14200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14201 dldir=$destdir/`dirname \$dlpath`~
14202 test -d \$dldir || mkdir -p \$dldir~
14203 $install_prog $dir/$dlname \$dldir/$dlname'
14204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14205 dlpath=$dir/\$dldll~
14206 $rm \$dlpath'
14207 shlibpath_overrides_runpath=yes
14208
14209 case $host_os in
14210 cygwin*)
14211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14213 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14214 ;;
14215 mingw*)
14216 # MinGW DLLs use traditional 'lib' prefix
14217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14220 # It is most probably a Windows format PATH printed by
14221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14222 # path with ; separators, and with drive letters. We can handle the
14223 # drive letters (cygwin fileutils understands them), so leave them,
14224 # especially as we might pass files found there to a mingw objdump,
14225 # which wouldn't understand a cygwinified path. Ahh.
14226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14227 else
14228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14229 fi
14230 ;;
14231 pw32*)
14232 # pw32 DLLs use 'pw' prefix rather than 'lib'
14233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14234 ;;
14235 esac
14236 ;;
14237
14238 *)
14239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14240 ;;
14241 esac
14242 dynamic_linker='Win32 ld.exe'
14243 # FIXME: first we should search . and the directory the executable is in
14244 shlibpath_var=PATH
14245 ;;
14246
14247darwin* | rhapsody*)
14248 dynamic_linker="$host_os dyld"
14249 version_type=darwin
14250 need_lib_prefix=no
14251 need_version=no
14252 # FIXME: Relying on posixy $() will cause problems for
14253 # cross-compilation, but unfortunately the echo tests do not
14254 # yet detect zsh echo's removal of \ escapes.
14255 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14256 soname_spec='${libname}${release}${major}$shared_ext'
14257 shlibpath_overrides_runpath=yes
14258 shlibpath_var=DYLD_LIBRARY_PATH
14259 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14260 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14261 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14262 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"`
14263 fi
14264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14265 ;;
14266
14267dgux*)
14268 version_type=linux
14269 need_lib_prefix=no
14270 need_version=no
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 ;;
14275
14276freebsd1*)
14277 dynamic_linker=no
14278 ;;
14279
14280freebsd*)
14281 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14282 version_type=freebsd-$objformat
14283 case $version_type in
14284 freebsd-elf*)
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14286 need_version=no
14287 need_lib_prefix=no
14288 ;;
14289 freebsd-*)
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14291 need_version=yes
14292 ;;
14293 esac
14294 shlibpath_var=LD_LIBRARY_PATH
14295 case $host_os in
14296 freebsd2*)
14297 shlibpath_overrides_runpath=yes
14298 ;;
14299 freebsd3.01* | freebsdelf3.01*)
14300 shlibpath_overrides_runpath=yes
14301 hardcode_into_libs=yes
14302 ;;
14303 *) # from 3.2 on
14304 shlibpath_overrides_runpath=no
14305 hardcode_into_libs=yes
14306 ;;
14307 esac
14308 ;;
14309
14310gnu*)
14311 version_type=linux
14312 need_lib_prefix=no
14313 need_version=no
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14315 soname_spec='${libname}${release}${shared_ext}$major'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 hardcode_into_libs=yes
14318 ;;
14319
14320hpux9* | hpux10* | hpux11*)
14321 # Give a soname corresponding to the major version so that dld.sl refuses to
14322 # link against other versions.
14323 version_type=sunos
14324 need_lib_prefix=no
14325 need_version=no
14326 case "$host_cpu" in
14327 ia64*)
14328 shrext='.so'
14329 hardcode_into_libs=yes
14330 dynamic_linker="$host_os dld.so"
14331 shlibpath_var=LD_LIBRARY_PATH
14332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 if test "X$HPUX_IA64_MODE" = X32; then
14336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14337 else
14338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14339 fi
14340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14341 ;;
14342 hppa*64*)
14343 shrext='.sl'
14344 hardcode_into_libs=yes
14345 dynamic_linker="$host_os dld.sl"
14346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14352 ;;
14353 *)
14354 shrext='.sl'
14355 dynamic_linker="$host_os dld.sl"
14356 shlibpath_var=SHLIB_PATH
14357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14359 soname_spec='${libname}${release}${shared_ext}$major'
14360 ;;
14361 esac
14362 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14363 postinstall_cmds='chmod 555 $lib'
14364 ;;
14365
14366irix5* | irix6* | nonstopux*)
14367 case $host_os in
14368 nonstopux*) version_type=nonstopux ;;
14369 *)
14370 if test "$lt_cv_prog_gnu_ld" = yes; then
14371 version_type=linux
14372 else
14373 version_type=irix
14374 fi ;;
14375 esac
14376 need_lib_prefix=no
14377 need_version=no
14378 soname_spec='${libname}${release}${shared_ext}$major'
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14380 case $host_os in
14381 irix5* | nonstopux*)
14382 libsuff= shlibsuff=
14383 ;;
14384 *)
14385 case $LD in # libtool.m4 will add one of these switches to LD
14386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14387 libsuff= shlibsuff= libmagic=32-bit;;
14388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14389 libsuff=32 shlibsuff=N32 libmagic=N32;;
14390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14392 *) libsuff= shlibsuff= libmagic=never-match;;
14393 esac
14394 ;;
14395 esac
14396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14397 shlibpath_overrides_runpath=no
14398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14400 hardcode_into_libs=yes
14401 ;;
14402
14403# No shared lib support for Linux oldld, aout, or coff.
14404linux*oldld* | linux*aout* | linux*coff*)
14405 dynamic_linker=no
14406 ;;
14407
14408# This must be Linux ELF.
14409linux*)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=no
14418 # This implies no fast_install, which is unacceptable.
14419 # Some rework will be needed to allow for fast_install
14420 # before this can be enabled.
14421 hardcode_into_libs=yes
14422
14423 # We used to test for /lib/ld.so.1 and disable shared libraries on
14424 # powerpc, because MkLinux only supported shared libraries with the
14425 # GNU dynamic linker. Since this was broken with cross compilers,
14426 # most powerpc-linux boxes support dynamic linking these days and
14427 # people can always --disable-shared, the test was removed, and we
14428 # assume the GNU/Linux dynamic linker is in use.
14429 dynamic_linker='GNU/Linux ld.so'
14430 ;;
14431
14432netbsd*)
14433 version_type=sunos
14434 need_lib_prefix=no
14435 need_version=no
14436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14439 dynamic_linker='NetBSD (a.out) ld.so'
14440 else
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 dynamic_linker='NetBSD ld.elf_so'
14444 fi
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes
14447 hardcode_into_libs=yes
14448 ;;
14449
14450newsos6)
14451 version_type=linux
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 shlibpath_var=LD_LIBRARY_PATH
14454 shlibpath_overrides_runpath=yes
14455 ;;
14456
14457nto-qnx)
14458 version_type=linux
14459 need_lib_prefix=no
14460 need_version=no
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 shlibpath_overrides_runpath=yes
14465 ;;
14466
14467openbsd*)
14468 version_type=sunos
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14475 case $host_os in
14476 openbsd2.[89] | openbsd2.[89].*)
14477 shlibpath_overrides_runpath=no
14478 ;;
14479 *)
14480 shlibpath_overrides_runpath=yes
14481 ;;
14482 esac
14483 else
14484 shlibpath_overrides_runpath=yes
14485 fi
14486 ;;
14487
14488os2*)
14489 libname_spec='$name'
14490 shrext=".dll"
14491 need_lib_prefix=no
14492 library_names_spec='$libname${shared_ext} $libname.a'
14493 dynamic_linker='OS/2 ld.exe'
14494 shlibpath_var=LIBPATH
14495 ;;
14496
14497osf3* | osf4* | osf5*)
14498 version_type=osf
14499 need_lib_prefix=no
14500 need_version=no
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14506 ;;
14507
14508sco3.2v5*)
14509 version_type=osf
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 shlibpath_var=LD_LIBRARY_PATH
14513 ;;
14514
14515solaris*)
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
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 shlibpath_overrides_runpath=yes
14523 hardcode_into_libs=yes
14524 # ldd complains unless libraries are executable
14525 postinstall_cmds='chmod +x $lib'
14526 ;;
14527
14528sunos4*)
14529 version_type=sunos
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes
14534 if test "$with_gnu_ld" = yes; then
14535 need_lib_prefix=no
14536 fi
14537 need_version=yes
14538 ;;
14539
14540sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14541 version_type=linux
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 case $host_vendor in
14546 sni)
14547 shlibpath_overrides_runpath=no
14548 need_lib_prefix=no
14549 export_dynamic_flag_spec='${wl}-Blargedynsym'
14550 runpath_var=LD_RUN_PATH
14551 ;;
14552 siemens)
14553 need_lib_prefix=no
14554 ;;
14555 motorola)
14556 need_lib_prefix=no
14557 need_version=no
14558 shlibpath_overrides_runpath=no
14559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14560 ;;
14561 esac
14562 ;;
14563
14564sysv4*MP*)
14565 if test -d /usr/nec ;then
14566 version_type=linux
14567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14568 soname_spec='$libname${shared_ext}.$major'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 fi
14571 ;;
14572
14573uts4*)
14574 version_type=linux
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 ;;
14579
14580*)
14581 dynamic_linker=no
14582 ;;
14583esac
14584echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14585echo "${ECHO_T}$dynamic_linker" >&6
14586test "$dynamic_linker" = no && can_build_shared=no
14587
14588
14589# The else clause should only fire when bootstrapping the
14590# libtool distribution, otherwise you forgot to ship ltmain.sh
14591# with your package, and you will get complaints that there are
14592# no rules to generate ltmain.sh.
14593if test -f "$ltmain"; then
14594 # See if we are running on zsh, and set the options which allow our commands through
14595 # without removal of \ escapes.
14596 if test -n "${ZSH_VERSION+set}" ; then
14597 setopt NO_GLOB_SUBST
14598 fi
14599 # Now quote all the things that may contain metacharacters while being
14600 # careful not to overquote the AC_SUBSTed values. We take copies of the
14601 # variables and quote the copies for generation of the libtool script.
14602 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14603 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14604 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14605 deplibs_check_method reload_flag reload_cmds need_locks \
14606 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14607 lt_cv_sys_global_symbol_to_c_name_address \
14608 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14609 old_postinstall_cmds old_postuninstall_cmds \
14610 compiler_F77 \
14611 CC_F77 \
14612 LD_F77 \
14613 lt_prog_compiler_wl_F77 \
14614 lt_prog_compiler_pic_F77 \
14615 lt_prog_compiler_static_F77 \
14616 lt_prog_compiler_no_builtin_flag_F77 \
14617 export_dynamic_flag_spec_F77 \
14618 thread_safe_flag_spec_F77 \
14619 whole_archive_flag_spec_F77 \
14620 enable_shared_with_static_runtimes_F77 \
14621 old_archive_cmds_F77 \
14622 old_archive_from_new_cmds_F77 \
14623 predep_objects_F77 \
14624 postdep_objects_F77 \
14625 predeps_F77 \
14626 postdeps_F77 \
14627 compiler_lib_search_path_F77 \
14628 archive_cmds_F77 \
14629 archive_expsym_cmds_F77 \
14630 postinstall_cmds_F77 \
14631 postuninstall_cmds_F77 \
14632 old_archive_from_expsyms_cmds_F77 \
14633 allow_undefined_flag_F77 \
14634 no_undefined_flag_F77 \
14635 export_symbols_cmds_F77 \
14636 hardcode_libdir_flag_spec_F77 \
14637 hardcode_libdir_flag_spec_ld_F77 \
14638 hardcode_libdir_separator_F77 \
14639 hardcode_automatic_F77 \
14640 module_cmds_F77 \
14641 module_expsym_cmds_F77 \
14642 lt_cv_prog_compiler_c_o_F77 \
14643 exclude_expsyms_F77 \
14644 include_expsyms_F77; do
14645
14646 case $var in
14647 old_archive_cmds_F77 | \
14648 old_archive_from_new_cmds_F77 | \
14649 archive_cmds_F77 | \
14650 archive_expsym_cmds_F77 | \
14651 module_cmds_F77 | \
14652 module_expsym_cmds_F77 | \
14653 old_archive_from_expsyms_cmds_F77 | \
14654 export_symbols_cmds_F77 | \
14655 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14656 postinstall_cmds | postuninstall_cmds | \
14657 old_postinstall_cmds | old_postuninstall_cmds | \
14658 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14659 # Double-quote double-evaled strings.
14660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14661 ;;
14662 *)
14663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14664 ;;
14665 esac
14666 done
14667
14668 case $lt_echo in
14669 *'\$0 --fallback-echo"')
14670 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14671 ;;
14672 esac
14673
14674cfgfile="$ofile"
14675
14676 cat <<__EOF__ >> "$cfgfile"
14677# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14678
14679# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14680
14681# Shell to use when invoking shell scripts.
14682SHELL=$lt_SHELL
14683
14684# Whether or not to build shared libraries.
14685build_libtool_libs=$enable_shared
14686
14687# Whether or not to build static libraries.
14688build_old_libs=$enable_static
14689
14690# Whether or not to add -lc for building shared libraries.
14691build_libtool_need_lc=$archive_cmds_need_lc_F77
14692
14693# Whether or not to disallow shared libs when runtime libs are static
14694allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14695
14696# Whether or not to optimize for fast installation.
14697fast_install=$enable_fast_install
14698
14699# The host system.
14700host_alias=$host_alias
14701host=$host
14702
14703# An echo program that does not interpret backslashes.
14704echo=$lt_echo
14705
14706# The archiver.
14707AR=$lt_AR
14708AR_FLAGS=$lt_AR_FLAGS
14709
14710# A C compiler.
14711LTCC=$lt_LTCC
14712
14713# A language-specific compiler.
14714CC=$lt_compiler_F77
14715
14716# Is the compiler the GNU C compiler?
14717with_gcc=$GCC_F77
14718
14719# An ERE matcher.
14720EGREP=$lt_EGREP
14721
14722# The linker used to build libraries.
14723LD=$lt_LD_F77
14724
14725# Whether we need hard or soft links.
14726LN_S=$lt_LN_S
14727
14728# A BSD-compatible nm program.
14729NM=$lt_NM
14730
14731# A symbol stripping program
14732STRIP=$STRIP
14733
14734# Used to examine libraries when file_magic_cmd begins "file"
14735MAGIC_CMD=$MAGIC_CMD
14736
14737# Used on cygwin: DLL creation program.
14738DLLTOOL="$DLLTOOL"
14739
14740# Used on cygwin: object dumper.
14741OBJDUMP="$OBJDUMP"
14742
14743# Used on cygwin: assembler.
14744AS="$AS"
14745
14746# The name of the directory that contains temporary libtool files.
14747objdir=$objdir
14748
14749# How to create reloadable object files.
14750reload_flag=$lt_reload_flag
14751reload_cmds=$lt_reload_cmds
14752
14753# How to pass a linker flag through the compiler.
14754wl=$lt_lt_prog_compiler_wl_F77
14755
14756# Object file suffix (normally "o").
14757objext="$ac_objext"
14758
14759# Old archive suffix (normally "a").
14760libext="$libext"
14761
14762# Shared library suffix (normally ".so").
14763shrext='$shrext'
14764
14765# Executable file suffix (normally "").
14766exeext="$exeext"
14767
14768# Additional compiler flags for building library objects.
14769pic_flag=$lt_lt_prog_compiler_pic_F77
14770pic_mode=$pic_mode
14771
14772# What is the maximum length of a command?
14773max_cmd_len=$lt_cv_sys_max_cmd_len
14774
14775# Does compiler simultaneously support -c and -o options?
14776compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14777
14778# Must we lock files when doing compilation ?
14779need_locks=$lt_need_locks
14780
14781# Do we need the lib prefix for modules?
14782need_lib_prefix=$need_lib_prefix
14783
14784# Do we need a version for libraries?
14785need_version=$need_version
14786
14787# Whether dlopen is supported.
14788dlopen_support=$enable_dlopen
14789
14790# Whether dlopen of programs is supported.
14791dlopen_self=$enable_dlopen_self
14792
14793# Whether dlopen of statically linked programs is supported.
14794dlopen_self_static=$enable_dlopen_self_static
14795
14796# Compiler flag to prevent dynamic linking.
14797link_static_flag=$lt_lt_prog_compiler_static_F77
14798
14799# Compiler flag to turn off builtin functions.
14800no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14801
14802# Compiler flag to allow reflexive dlopens.
14803export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14804
14805# Compiler flag to generate shared objects directly from archives.
14806whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14807
14808# Compiler flag to generate thread-safe objects.
14809thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14810
14811# Library versioning type.
14812version_type=$version_type
14813
14814# Format of library name prefix.
14815libname_spec=$lt_libname_spec
14816
14817# List of archive names. First name is the real one, the rest are links.
14818# The last name is the one that the linker finds with -lNAME.
14819library_names_spec=$lt_library_names_spec
14820
14821# The coded name of the library, if different from the real name.
14822soname_spec=$lt_soname_spec
14823
14824# Commands used to build and install an old-style archive.
14825RANLIB=$lt_RANLIB
14826old_archive_cmds=$lt_old_archive_cmds_F77
14827old_postinstall_cmds=$lt_old_postinstall_cmds
14828old_postuninstall_cmds=$lt_old_postuninstall_cmds
14829
14830# Create an old-style archive from a shared archive.
14831old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14832
14833# Create a temporary old-style archive to link instead of a shared archive.
14834old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14835
14836# Commands used to build and install a shared archive.
14837archive_cmds=$lt_archive_cmds_F77
14838archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14839postinstall_cmds=$lt_postinstall_cmds
14840postuninstall_cmds=$lt_postuninstall_cmds
14841
14842# Commands used to build a loadable module (assumed same as above if empty)
14843module_cmds=$lt_module_cmds_F77
14844module_expsym_cmds=$lt_module_expsym_cmds_F77
14845
14846# Commands to strip libraries.
14847old_striplib=$lt_old_striplib
14848striplib=$lt_striplib
14849
14850# Dependencies to place before the objects being linked to create a
14851# shared library.
14852predep_objects=$lt_predep_objects_F77
14853
14854# Dependencies to place after the objects being linked to create a
14855# shared library.
14856postdep_objects=$lt_postdep_objects_F77
14857
14858# Dependencies to place before the objects being linked to create a
14859# shared library.
14860predeps=$lt_predeps_F77
14861
14862# Dependencies to place after the objects being linked to create a
14863# shared library.
14864postdeps=$lt_postdeps_F77
14865
14866# The library search path used internally by the compiler when linking
14867# a shared library.
14868compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14869
14870# Method to check whether dependent libraries are shared objects.
14871deplibs_check_method=$lt_deplibs_check_method
14872
14873# Command to use when deplibs_check_method == file_magic.
14874file_magic_cmd=$lt_file_magic_cmd
14875
14876# Flag that allows shared libraries with undefined symbols to be built.
14877allow_undefined_flag=$lt_allow_undefined_flag_F77
14878
14879# Flag that forces no undefined symbols.
14880no_undefined_flag=$lt_no_undefined_flag_F77
14881
14882# Commands used to finish a libtool library installation in a directory.
14883finish_cmds=$lt_finish_cmds
14884
14885# Same as above, but a single script fragment to be evaled but not shown.
14886finish_eval=$lt_finish_eval
14887
14888# Take the output of nm and produce a listing of raw symbols and C names.
14889global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14890
14891# Transform the output of nm in a proper C declaration
14892global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14893
14894# Transform the output of nm in a C name address pair
14895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14896
14897# This is the shared library runtime path variable.
14898runpath_var=$runpath_var
14899
14900# This is the shared library path variable.
14901shlibpath_var=$shlibpath_var
14902
14903# Is shlibpath searched before the hard-coded library search path?
14904shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14905
14906# How to hardcode a shared library path into an executable.
14907hardcode_action=$hardcode_action_F77
14908
14909# Whether we should hardcode library paths into libraries.
14910hardcode_into_libs=$hardcode_into_libs
14911
14912# Flag to hardcode \$libdir into a binary during linking.
14913# This must work even if \$libdir does not exist.
14914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14915
14916# If ld is used when linking, flag to hardcode \$libdir into
14917# a binary during linking. This must work even if \$libdir does
14918# not exist.
14919hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14920
14921# Whether we need a single -rpath flag with a separated argument.
14922hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14923
14924# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14925# resulting binary.
14926hardcode_direct=$hardcode_direct_F77
14927
14928# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14929# resulting binary.
14930hardcode_minus_L=$hardcode_minus_L_F77
14931
14932# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14933# the resulting binary.
14934hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14935
14936# Set to yes if building a shared library automatically hardcodes DIR into the library
14937# and all subsequent libraries and executables linked against it.
14938hardcode_automatic=$hardcode_automatic_F77
14939
14940# Variables whose values should be saved in libtool wrapper scripts and
14941# restored at relink time.
14942variables_saved_for_relink="$variables_saved_for_relink"
14943
14944# Whether libtool must link a program against all its dependency libraries.
14945link_all_deplibs=$link_all_deplibs_F77
14946
14947# Compile-time system search path for libraries
14948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14949
14950# Run-time system search path for libraries
14951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14952
14953# Fix the shell variable \$srcfile for the compiler.
14954fix_srcfile_path="$fix_srcfile_path_F77"
14955
14956# Set to yes if exported symbols are required.
14957always_export_symbols=$always_export_symbols_F77
14958
14959# The commands to list exported symbols.
14960export_symbols_cmds=$lt_export_symbols_cmds_F77
14961
14962# The commands to extract the exported symbol list from a shared archive.
14963extract_expsyms_cmds=$lt_extract_expsyms_cmds
14964
14965# Symbols that should not be listed in the preloaded symbols.
14966exclude_expsyms=$lt_exclude_expsyms_F77
14967
14968# Symbols that must always be exported.
14969include_expsyms=$lt_include_expsyms_F77
14970
14971# ### END LIBTOOL TAG CONFIG: $tagname
14972
14973__EOF__
14974
14975
14976else
14977 # If there is no Makefile yet, we rely on a make rule to execute
14978 # `config.status --recheck' to rerun these tests and create the
14979 # libtool script then.
14980 test -f Makefile && make "$ltmain"
14981fi
14982
14983
14984ac_ext=c
14985ac_cpp='$CPP $CPPFLAGS'
14986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14988ac_compiler_gnu=$ac_cv_c_compiler_gnu
14989
14990CC="$lt_save_CC"
14991
14992 else
14993 tagname=""
14994 fi
14995 ;;
14996
14997 GCJ)
14998 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14999
15000
15001
15002# Source file extension for Java test sources.
15003ac_ext=java
15004
15005# Object file extension for compiled Java test sources.
15006objext=o
15007objext_GCJ=$objext
15008
15009# Code to be used in simple compile tests
15010lt_simple_compile_test_code="class foo {}\n"
15011
15012# Code to be used in simple link tests
15013lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15014
15015# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15016
15017# If no C compiler was specified, use CC.
15018LTCC=${LTCC-"$CC"}
15019
15020# Allow CC to be a program name with arguments.
15021compiler=$CC
15022
15023
15024# Allow CC to be a program name with arguments.
15025lt_save_CC="$CC"
15026CC=${GCJ-"gcj"}
15027compiler=$CC
15028compiler_GCJ=$CC
15029
15030# GCJ did not exist at the time GCC didn't implicitly link libc in.
15031archive_cmds_need_lc_GCJ=no
15032
15033## CAVEAT EMPTOR:
15034## There is no encapsulation within the following macros, do not change
15035## the running order or otherwise move them around unless you know exactly
15036## what you are doing...
15037
15038lt_prog_compiler_no_builtin_flag_GCJ=
15039
15040if test "$GCC" = yes; then
15041 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15042
15043 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15044echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15045if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
15048 lt_cv_prog_compiler_rtti_exceptions=no
15049 ac_outfile=conftest.$ac_objext
15050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15051 lt_compiler_flag="-fno-rtti -fno-exceptions"
15052 # Insert the option either (1) after the last *FLAGS variable, or
15053 # (2) before a word containing "conftest.", or (3) at the end.
15054 # Note that $ac_compile itself does not contain backslashes and begins
15055 # with a dollar sign (not a hyphen), so the echo should work correctly.
15056 # The option is referenced via a variable to avoid confusing sed.
15057 lt_compile=`echo "$ac_compile" | $SED \
15058 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15060 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000015061 (eval echo "\"\$as_me:15061: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015062 (eval "$lt_compile" 2>conftest.err)
15063 ac_status=$?
15064 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000015065 echo "$as_me:15065: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015066 if (exit $ac_status) && test -s "$ac_outfile"; then
15067 # The compiler can only warn and ignore the option if not recognized
15068 # So say no if there are warnings
15069 if test ! -s conftest.err; then
15070 lt_cv_prog_compiler_rtti_exceptions=yes
15071 fi
15072 fi
15073 $rm conftest*
15074
15075fi
15076echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15077echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15078
15079if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15080 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15081else
15082 :
15083fi
15084
15085fi
15086
15087lt_prog_compiler_wl_GCJ=
15088lt_prog_compiler_pic_GCJ=
15089lt_prog_compiler_static_GCJ=
15090
15091echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15092echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15093
15094 if test "$GCC" = yes; then
15095 lt_prog_compiler_wl_GCJ='-Wl,'
15096 lt_prog_compiler_static_GCJ='-static'
15097
15098 case $host_os in
15099 aix*)
15100 # All AIX code is PIC.
15101 if test "$host_cpu" = ia64; then
15102 # AIX 5 now supports IA64 processor
15103 lt_prog_compiler_static_GCJ='-Bstatic'
15104 fi
15105 ;;
15106
15107 amigaos*)
15108 # FIXME: we need at least 68020 code to build shared libraries, but
15109 # adding the `-m68020' flag to GCC prevents building anything better,
15110 # like `-m68040'.
15111 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15112 ;;
15113
15114 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15115 # PIC is the default for these OSes.
15116 ;;
15117
15118 mingw* | pw32* | os2*)
15119 # This hack is so that the source file can tell whether it is being
15120 # built for inclusion in a dll (and should export symbols for example).
15121 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15122 ;;
15123
15124 darwin* | rhapsody*)
15125 # PIC is the default on this platform
15126 # Common symbols not allowed in MH_DYLIB files
15127 lt_prog_compiler_pic_GCJ='-fno-common'
15128 ;;
15129
15130 msdosdjgpp*)
15131 # Just because we use GCC doesn't mean we suddenly get shared libraries
15132 # on systems that don't support them.
15133 lt_prog_compiler_can_build_shared_GCJ=no
15134 enable_shared=no
15135 ;;
15136
15137 sysv4*MP*)
15138 if test -d /usr/nec; then
15139 lt_prog_compiler_pic_GCJ=-Kconform_pic
15140 fi
15141 ;;
15142
15143 hpux*)
15144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15145 # not for PA HP-UX.
15146 case "$host_cpu" in
15147 hppa*64*|ia64*)
15148 # +Z the default
15149 ;;
15150 *)
15151 lt_prog_compiler_pic_GCJ='-fPIC'
15152 ;;
15153 esac
15154 ;;
15155
15156 *)
15157 lt_prog_compiler_pic_GCJ='-fPIC'
15158 ;;
15159 esac
15160 else
15161 # PORTME Check for flag to pass linker flags through the system compiler.
15162 case $host_os in
15163 aix*)
15164 lt_prog_compiler_wl_GCJ='-Wl,'
15165 if test "$host_cpu" = ia64; then
15166 # AIX 5 now supports IA64 processor
15167 lt_prog_compiler_static_GCJ='-Bstatic'
15168 else
15169 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15170 fi
15171 ;;
15172
15173 mingw* | pw32* | os2*)
15174 # This hack is so that the source file can tell whether it is being
15175 # built for inclusion in a dll (and should export symbols for example).
15176 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15177 ;;
15178
15179 hpux9* | hpux10* | hpux11*)
15180 lt_prog_compiler_wl_GCJ='-Wl,'
15181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15182 # not for PA HP-UX.
15183 case "$host_cpu" in
15184 hppa*64*|ia64*)
15185 # +Z the default
15186 ;;
15187 *)
15188 lt_prog_compiler_pic_GCJ='+Z'
15189 ;;
15190 esac
15191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15192 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15193 ;;
15194
15195 irix5* | irix6* | nonstopux*)
15196 lt_prog_compiler_wl_GCJ='-Wl,'
15197 # PIC (with -KPIC) is the default.
15198 lt_prog_compiler_static_GCJ='-non_shared'
15199 ;;
15200
15201 newsos6)
15202 lt_prog_compiler_pic_GCJ='-KPIC'
15203 lt_prog_compiler_static_GCJ='-Bstatic'
15204 ;;
15205
15206 linux*)
15207 case $CC in
15208 icc|ecc)
15209 lt_prog_compiler_wl_GCJ='-Wl,'
15210 lt_prog_compiler_pic_GCJ='-KPIC'
15211 lt_prog_compiler_static_GCJ='-static'
15212 ;;
15213 ccc)
15214 lt_prog_compiler_wl_GCJ='-Wl,'
15215 # All Alpha code is PIC.
15216 lt_prog_compiler_static_GCJ='-non_shared'
15217 ;;
15218 esac
15219 ;;
15220
15221 osf3* | osf4* | osf5*)
15222 lt_prog_compiler_wl_GCJ='-Wl,'
15223 # All OSF/1 code is PIC.
15224 lt_prog_compiler_static_GCJ='-non_shared'
15225 ;;
15226
15227 sco3.2v5*)
15228 lt_prog_compiler_pic_GCJ='-Kpic'
15229 lt_prog_compiler_static_GCJ='-dn'
15230 ;;
15231
15232 solaris*)
15233 lt_prog_compiler_wl_GCJ='-Wl,'
15234 lt_prog_compiler_pic_GCJ='-KPIC'
15235 lt_prog_compiler_static_GCJ='-Bstatic'
15236 ;;
15237
15238 sunos4*)
15239 lt_prog_compiler_wl_GCJ='-Qoption ld '
15240 lt_prog_compiler_pic_GCJ='-PIC'
15241 lt_prog_compiler_static_GCJ='-Bstatic'
15242 ;;
15243
15244 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15245 lt_prog_compiler_wl_GCJ='-Wl,'
15246 lt_prog_compiler_pic_GCJ='-KPIC'
15247 lt_prog_compiler_static_GCJ='-Bstatic'
15248 ;;
15249
15250 sysv4*MP*)
15251 if test -d /usr/nec ;then
15252 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15253 lt_prog_compiler_static_GCJ='-Bstatic'
15254 fi
15255 ;;
15256
15257 uts4*)
15258 lt_prog_compiler_pic_GCJ='-pic'
15259 lt_prog_compiler_static_GCJ='-Bstatic'
15260 ;;
15261
15262 *)
15263 lt_prog_compiler_can_build_shared_GCJ=no
15264 ;;
15265 esac
15266 fi
15267
15268echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15269echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15270
15271#
15272# Check to make sure the PIC flag actually works.
15273#
15274if test -n "$lt_prog_compiler_pic_GCJ"; then
15275 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15276echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15277if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 lt_prog_compiler_pic_works_GCJ=no
15281 ac_outfile=conftest.$ac_objext
15282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15283 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15284 # Insert the option either (1) after the last *FLAGS variable, or
15285 # (2) before a word containing "conftest.", or (3) at the end.
15286 # Note that $ac_compile itself does not contain backslashes and begins
15287 # with a dollar sign (not a hyphen), so the echo should work correctly.
15288 # The option is referenced via a variable to avoid confusing sed.
15289 lt_compile=`echo "$ac_compile" | $SED \
15290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15292 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000015293 (eval echo "\"\$as_me:15293: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015294 (eval "$lt_compile" 2>conftest.err)
15295 ac_status=$?
15296 cat conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000015297 echo "$as_me:15297: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015298 if (exit $ac_status) && test -s "$ac_outfile"; then
15299 # The compiler can only warn and ignore the option if not recognized
15300 # So say no if there are warnings
15301 if test ! -s conftest.err; then
15302 lt_prog_compiler_pic_works_GCJ=yes
15303 fi
15304 fi
15305 $rm conftest*
15306
15307fi
15308echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15309echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15310
15311if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15312 case $lt_prog_compiler_pic_GCJ in
15313 "" | " "*) ;;
15314 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15315 esac
15316else
15317 lt_prog_compiler_pic_GCJ=
15318 lt_prog_compiler_can_build_shared_GCJ=no
15319fi
15320
15321fi
15322case "$host_os" in
15323 # For platforms which do not support PIC, -DPIC is meaningless:
15324 *djgpp*)
15325 lt_prog_compiler_pic_GCJ=
15326 ;;
15327 *)
15328 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15329 ;;
15330esac
15331
15332echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15334if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 lt_cv_prog_compiler_c_o_GCJ=no
15338 $rm -r conftest 2>/dev/null
15339 mkdir conftest
15340 cd conftest
15341 mkdir out
15342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15343
15344 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15345 # that will create temporary files in the current directory regardless of
15346 # the output directory. Thus, making CWD read-only will cause this test
15347 # to fail, enabling locking or at least warning the user not to do parallel
15348 # builds.
15349 chmod -w .
15350
15351 lt_compiler_flag="-o out/conftest2.$ac_objext"
15352 # Insert the option either (1) after the last *FLAGS variable, or
15353 # (2) before a word containing "conftest.", or (3) at the end.
15354 # Note that $ac_compile itself does not contain backslashes and begins
15355 # with a dollar sign (not a hyphen), so the echo should work correctly.
15356 lt_compile=`echo "$ac_compile" | $SED \
15357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15359 -e 's:$: $lt_compiler_flag:'`
John Criswell55126592003-10-07 21:57:39 +000015360 (eval echo "\"\$as_me:15360: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015361 (eval "$lt_compile" 2>out/conftest.err)
15362 ac_status=$?
15363 cat out/conftest.err >&5
John Criswell55126592003-10-07 21:57:39 +000015364 echo "$as_me:15364: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15366 then
15367 # The compiler can only warn and ignore the option if not recognized
15368 # So say no if there are warnings
15369 if test ! -s out/conftest.err; then
15370 lt_cv_prog_compiler_c_o_GCJ=yes
15371 fi
15372 fi
15373 chmod u+w .
15374 $rm conftest* out/*
15375 rmdir out
15376 cd ..
15377 rmdir conftest
15378 $rm conftest*
15379
15380fi
15381echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15382echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15383
15384
15385hard_links="nottested"
15386if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15387 # do not overwrite the value of need_locks provided by the user
15388 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15389echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15390 hard_links=yes
15391 $rm conftest*
15392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393 touch conftest.a
15394 ln conftest.a conftest.b 2>&5 || hard_links=no
15395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396 echo "$as_me:$LINENO: result: $hard_links" >&5
15397echo "${ECHO_T}$hard_links" >&6
15398 if test "$hard_links" = no; then
15399 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15400echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15401 need_locks=warn
15402 fi
15403else
15404 need_locks=no
15405fi
15406
15407echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15408echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15409
15410 runpath_var=
15411 allow_undefined_flag_GCJ=
15412 enable_shared_with_static_runtimes_GCJ=no
15413 archive_cmds_GCJ=
15414 archive_expsym_cmds_GCJ=
15415 old_archive_From_new_cmds_GCJ=
15416 old_archive_from_expsyms_cmds_GCJ=
15417 export_dynamic_flag_spec_GCJ=
15418 whole_archive_flag_spec_GCJ=
15419 thread_safe_flag_spec_GCJ=
15420 hardcode_libdir_flag_spec_GCJ=
15421 hardcode_libdir_flag_spec_ld_GCJ=
15422 hardcode_libdir_separator_GCJ=
15423 hardcode_direct_GCJ=no
15424 hardcode_minus_L_GCJ=no
15425 hardcode_shlibpath_var_GCJ=unsupported
15426 link_all_deplibs_GCJ=unknown
15427 hardcode_automatic_GCJ=no
15428 module_cmds_GCJ=
15429 module_expsym_cmds_GCJ=
15430 always_export_symbols_GCJ=no
15431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15432 # include_expsyms should be a list of space-separated symbols to be *always*
15433 # included in the symbol list
15434 include_expsyms_GCJ=
15435 # exclude_expsyms can be an extended regexp of symbols to exclude
15436 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15438 # as well as any symbol that contains `d'.
15439 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15441 # platforms (ab)use it in PIC code, but their linkers get confused if
15442 # the symbol is explicitly referenced. Since portable code cannot
15443 # rely on this symbol name, it's probably fine to never include it in
15444 # preloaded symbol tables.
15445 extract_expsyms_cmds=
15446
15447 case $host_os in
15448 cygwin* | mingw* | pw32*)
15449 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15450 # When not using gcc, we currently assume that we are using
15451 # Microsoft Visual C++.
15452 if test "$GCC" != yes; then
15453 with_gnu_ld=no
15454 fi
15455 ;;
15456 openbsd*)
15457 with_gnu_ld=no
15458 ;;
15459 esac
15460
15461 ld_shlibs_GCJ=yes
15462 if test "$with_gnu_ld" = yes; then
15463 # If archive_cmds runs LD, not CC, wlarc should be empty
15464 wlarc='${wl}'
15465
15466 # See if GNU ld supports shared libraries.
15467 case $host_os in
15468 aix3* | aix4* | aix5*)
15469 # On AIX/PPC, the GNU linker is very broken
15470 if test "$host_cpu" != ia64; then
15471 ld_shlibs_GCJ=no
15472 cat <<EOF 1>&2
15473
15474*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15475*** to be unable to reliably create shared libraries on AIX.
15476*** Therefore, libtool is disabling shared libraries support. If you
15477*** really care for shared libraries, you may want to modify your PATH
15478*** so that a non-GNU linker is found, and then restart.
15479
15480EOF
15481 fi
15482 ;;
15483
15484 amigaos*)
15485 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)'
15486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15487 hardcode_minus_L_GCJ=yes
15488
15489 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15490 # that the semantics of dynamic libraries on AmigaOS, at least up
15491 # to version 4, is to share data among multiple programs linked
15492 # with the same dynamic library. Since this doesn't match the
15493 # behavior of shared libraries on other platforms, we can't use
15494 # them.
15495 ld_shlibs_GCJ=no
15496 ;;
15497
15498 beos*)
15499 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15500 allow_undefined_flag_GCJ=unsupported
15501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15502 # support --undefined. This deserves some investigation. FIXME
15503 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15504 else
15505 ld_shlibs_GCJ=no
15506 fi
15507 ;;
15508
15509 cygwin* | mingw* | pw32*)
15510 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15511 # as there is no search path for DLLs.
15512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15513 allow_undefined_flag_GCJ=unsupported
15514 always_export_symbols_GCJ=no
15515 enable_shared_with_static_runtimes_GCJ=yes
15516 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15517
15518 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15520 # If the export-symbols file already is a .def file (1st line
15521 # is EXPORTS), use it as is; otherwise, prepend...
15522 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15523 cp $export_symbols $output_objdir/$soname.def;
15524 else
15525 echo EXPORTS > $output_objdir/$soname.def;
15526 cat $export_symbols >> $output_objdir/$soname.def;
15527 fi~
15528 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15529 else
15530 ld_shlibs=no
15531 fi
15532 ;;
15533
15534 netbsd*)
15535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15536 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15537 wlarc=
15538 else
15539 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15541 fi
15542 ;;
15543
15544 solaris* | sysv5*)
15545 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15546 ld_shlibs_GCJ=no
15547 cat <<EOF 1>&2
15548
15549*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15550*** create shared libraries on Solaris systems. Therefore, libtool
15551*** is disabling shared libraries support. We urge you to upgrade GNU
15552*** binutils to release 2.9.1 or newer. Another option is to modify
15553*** your PATH or compiler configuration so that the native linker is
15554*** used, and then restart.
15555
15556EOF
15557 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 else
15561 ld_shlibs_GCJ=no
15562 fi
15563 ;;
15564
15565 sunos4*)
15566 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567 wlarc=
15568 hardcode_direct_GCJ=yes
15569 hardcode_shlibpath_var_GCJ=no
15570 ;;
15571
15572 *)
15573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15574 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15575 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15576 else
15577 ld_shlibs_GCJ=no
15578 fi
15579 ;;
15580 esac
15581
15582 if test "$ld_shlibs_GCJ" = yes; then
15583 runpath_var=LD_RUN_PATH
15584 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15585 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15586 # ancient GNU ld didn't support --whole-archive et. al.
15587 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15588 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15589 else
15590 whole_archive_flag_spec_GCJ=
15591 fi
15592 fi
15593 else
15594 # PORTME fill in a description of your system's linker (not GNU ld)
15595 case $host_os in
15596 aix3*)
15597 allow_undefined_flag_GCJ=unsupported
15598 always_export_symbols_GCJ=yes
15599 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'
15600 # Note: this linker hardcodes the directories in LIBPATH if there
15601 # are no directories specified by -L.
15602 hardcode_minus_L_GCJ=yes
15603 if test "$GCC" = yes && test -z "$link_static_flag"; then
15604 # Neither direct hardcoding nor static linking is supported with a
15605 # broken collect2.
15606 hardcode_direct_GCJ=unsupported
15607 fi
15608 ;;
15609
15610 aix4* | aix5*)
15611 if test "$host_cpu" = ia64; then
15612 # On IA64, the linker does run time linking by default, so we don't
15613 # have to do anything special.
15614 aix_use_runtimelinking=no
15615 exp_sym_flag='-Bexport'
15616 no_entry_flag=""
15617 else
15618 # If we're using GNU nm, then we don't want the "-C" option.
15619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15621 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'
15622 else
15623 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'
15624 fi
15625 aix_use_runtimelinking=no
15626
15627 # Test if we are trying to use run time linking or normal
15628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15629 # need to do runtime linking.
15630 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15631 for ld_flag in $LDFLAGS; do
15632 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15633 aix_use_runtimelinking=yes
15634 break
15635 fi
15636 done
15637 esac
15638
15639 exp_sym_flag='-bexport'
15640 no_entry_flag='-bnoentry'
15641 fi
15642
15643 # When large executables or shared objects are built, AIX ld can
15644 # have problems creating the table of contents. If linking a library
15645 # or program results in "error TOC overflow" add -mminimal-toc to
15646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15648
15649 archive_cmds_GCJ=''
15650 hardcode_direct_GCJ=yes
15651 hardcode_libdir_separator_GCJ=':'
15652 link_all_deplibs_GCJ=yes
15653
15654 if test "$GCC" = yes; then
15655 case $host_os in aix4.012|aix4.012.*)
15656 # We only want to do this on AIX 4.2 and lower, the check
15657 # below for broken collect2 doesn't work under 4.3+
15658 collect2name=`${CC} -print-prog-name=collect2`
15659 if test -f "$collect2name" && \
15660 strings "$collect2name" | grep resolve_lib_name >/dev/null
15661 then
15662 # We have reworked collect2
15663 hardcode_direct_GCJ=yes
15664 else
15665 # We have old collect2
15666 hardcode_direct_GCJ=unsupported
15667 # It fails to find uninstalled libraries when the uninstalled
15668 # path is not listed in the libpath. Setting hardcode_minus_L
15669 # to unsupported forces relinking
15670 hardcode_minus_L_GCJ=yes
15671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15672 hardcode_libdir_separator_GCJ=
15673 fi
15674 esac
15675 shared_flag='-shared'
15676 else
15677 # not using gcc
15678 if test "$host_cpu" = ia64; then
15679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15680 # chokes on -Wl,-G. The following line is correct:
15681 shared_flag='-G'
15682 else
15683 if test "$aix_use_runtimelinking" = yes; then
15684 shared_flag='${wl}-G'
15685 else
15686 shared_flag='${wl}-bM:SRE'
15687 fi
15688 fi
15689 fi
15690
15691 # It seems that -bexpall does not export symbols beginning with
15692 # underscore (_), so it is better to generate a list of symbols to export.
15693 always_export_symbols_GCJ=yes
15694 if test "$aix_use_runtimelinking" = yes; then
15695 # Warning - without using the other runtime loading flags (-brtl),
15696 # -berok will link without error, but may produce a broken library.
15697 allow_undefined_flag_GCJ='-berok'
15698 # Determine the default libpath from the value encoded in an empty executable.
15699 cat >conftest.$ac_ext <<_ACEOF
15700#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015706
John Criswell47fdd832003-07-14 16:52:07 +000015707int
15708main ()
15709{
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext conftest$ac_exeext
15716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -s conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727
15728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15729}'`
15730# Check for a 64-bit object if we didn't find anything.
15731if 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; }
15732}'`; fi
15733else
15734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015735sed 's/^/| /' conftest.$ac_ext >&5
15736
John Criswell47fdd832003-07-14 16:52:07 +000015737fi
15738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15740
15741 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15742 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"
15743 else
15744 if test "$host_cpu" = ia64; then
15745 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15746 allow_undefined_flag_GCJ="-z nodefs"
15747 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"
15748 else
15749 # Determine the default libpath from the value encoded in an empty executable.
15750 cat >conftest.$ac_ext <<_ACEOF
15751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015757
John Criswell47fdd832003-07-14 16:52:07 +000015758int
15759main ()
15760{
15761
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766rm -f conftest.$ac_objext conftest$ac_exeext
15767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15768 (eval $ac_link) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -s conftest$ac_exeext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778
15779aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15780}'`
15781# Check for a 64-bit object if we didn't find anything.
15782if 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; }
15783}'`; fi
15784else
15785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015786sed 's/^/| /' conftest.$ac_ext >&5
15787
John Criswell47fdd832003-07-14 16:52:07 +000015788fi
15789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15791
15792 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15793 # Warning - without using the other run time loading flags,
15794 # -berok will link without error, but may produce a broken library.
15795 no_undefined_flag_GCJ=' ${wl}-bernotok'
15796 allow_undefined_flag_GCJ=' ${wl}-berok'
15797 # -bexpall does not export symbols beginning with underscore (_)
15798 always_export_symbols_GCJ=yes
15799 # Exported symbols can be pulled into shared objects from archives
15800 whole_archive_flag_spec_GCJ=' '
15801 archive_cmds_need_lc_GCJ=yes
15802 # This is similar to how AIX traditionally builds it's shared libraries.
15803 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'
15804 fi
15805 fi
15806 ;;
15807
15808 amigaos*)
15809 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)'
15810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15811 hardcode_minus_L_GCJ=yes
15812 # see comment about different semantics on the GNU ld section
15813 ld_shlibs_GCJ=no
15814 ;;
15815
15816 bsdi4*)
15817 export_dynamic_flag_spec_GCJ=-rdynamic
15818 ;;
15819
15820 cygwin* | mingw* | pw32*)
15821 # When not using gcc, we currently assume that we are using
15822 # Microsoft Visual C++.
15823 # hardcode_libdir_flag_spec is actually meaningless, as there is
15824 # no search path for DLLs.
15825 hardcode_libdir_flag_spec_GCJ=' '
15826 allow_undefined_flag_GCJ=unsupported
15827 # Tell ltmain to make .lib files, not .a files.
15828 libext=lib
15829 # Tell ltmain to make .dll files, not .so files.
15830 shrext=".dll"
15831 # FIXME: Setting linknames here is a bad hack.
15832 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15833 # The linker will automatically build a .lib file if we build a DLL.
15834 old_archive_From_new_cmds_GCJ='true'
15835 # FIXME: Should let the user specify the lib program.
15836 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15837 fix_srcfile_path='`cygpath -w "$srcfile"`'
15838 enable_shared_with_static_runtimes_GCJ=yes
15839 ;;
15840
15841 darwin* | rhapsody*)
15842 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15843 archive_cmds_need_lc_GCJ=no
15844 case "$host_os" in
15845 rhapsody* | darwin1.[012])
15846 allow_undefined_flag_GCJ='-undefined suppress'
15847 ;;
15848 *) # Darwin 1.3 on
15849 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15850 ;;
15851 esac
15852 # FIXME: Relying on posixy $() will cause problems for
15853 # cross-compilation, but unfortunately the echo tests do not
15854 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15855 # `"' quotes if we put them in here... so don't!
15856 lt_int_apple_cc_single_mod=no
15857 output_verbose_link_cmd='echo'
15858 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15859 lt_int_apple_cc_single_mod=yes
15860 fi
15861 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15862 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15863 else
15864 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'
15865 fi
15866 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15867 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15868 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15869 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}'
15870 else
15871 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}'
15872 fi
15873 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}'
15874 hardcode_direct_GCJ=no
15875 hardcode_automatic_GCJ=yes
15876 hardcode_shlibpath_var_GCJ=unsupported
15877 whole_archive_flag_spec_GCJ='-all_load $convenience'
15878 link_all_deplibs_GCJ=yes
15879 fi
15880 ;;
15881
15882 dgux*)
15883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15885 hardcode_shlibpath_var_GCJ=no
15886 ;;
15887
15888 freebsd1*)
15889 ld_shlibs_GCJ=no
15890 ;;
15891
15892 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15893 # support. Future versions do this automatically, but an explicit c++rt0.o
15894 # does not break anything, and helps significantly (at the cost of a little
15895 # extra space).
15896 freebsd2.2*)
15897 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15898 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15899 hardcode_direct_GCJ=yes
15900 hardcode_shlibpath_var_GCJ=no
15901 ;;
15902
15903 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15904 freebsd2*)
15905 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_direct_GCJ=yes
15907 hardcode_minus_L_GCJ=yes
15908 hardcode_shlibpath_var_GCJ=no
15909 ;;
15910
15911 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15912 freebsd*)
15913 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15914 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15915 hardcode_direct_GCJ=yes
15916 hardcode_shlibpath_var_GCJ=no
15917 ;;
15918
15919 hpux9*)
15920 if test "$GCC" = yes; then
15921 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'
15922 else
15923 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'
15924 fi
15925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15926 hardcode_libdir_separator_GCJ=:
15927 hardcode_direct_GCJ=yes
15928
15929 # hardcode_minus_L: Not really in the search PATH,
15930 # but as the default location of the library.
15931 hardcode_minus_L_GCJ=yes
15932 export_dynamic_flag_spec_GCJ='${wl}-E'
15933 ;;
15934
15935 hpux10* | hpux11*)
15936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15937 case "$host_cpu" in
15938 hppa*64*|ia64*)
15939 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 ;;
15941 *)
15942 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15943 ;;
15944 esac
15945 else
15946 case "$host_cpu" in
15947 hppa*64*|ia64*)
15948 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15949 ;;
15950 *)
15951 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15952 ;;
15953 esac
15954 fi
15955 if test "$with_gnu_ld" = no; then
15956 case "$host_cpu" in
15957 hppa*64*)
15958 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15960 hardcode_libdir_separator_GCJ=:
15961 hardcode_direct_GCJ=no
15962 hardcode_shlibpath_var_GCJ=no
15963 ;;
15964 ia64*)
15965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15966 hardcode_direct_GCJ=no
15967 hardcode_shlibpath_var_GCJ=no
15968
15969 # hardcode_minus_L: Not really in the search PATH,
15970 # but as the default location of the library.
15971 hardcode_minus_L_GCJ=yes
15972 ;;
15973 *)
15974 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15975 hardcode_libdir_separator_GCJ=:
15976 hardcode_direct_GCJ=yes
15977 export_dynamic_flag_spec_GCJ='${wl}-E'
15978
15979 # hardcode_minus_L: Not really in the search PATH,
15980 # but as the default location of the library.
15981 hardcode_minus_L_GCJ=yes
15982 ;;
15983 esac
15984 fi
15985 ;;
15986
15987 irix5* | irix6* | nonstopux*)
15988 if test "$GCC" = yes; then
15989 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'
15990 else
15991 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'
15992 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15993 fi
15994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15995 hardcode_libdir_separator_GCJ=:
15996 link_all_deplibs_GCJ=yes
15997 ;;
15998
15999 netbsd*)
16000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16002 else
16003 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16004 fi
16005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16006 hardcode_direct_GCJ=yes
16007 hardcode_shlibpath_var_GCJ=no
16008 ;;
16009
16010 newsos6)
16011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16012 hardcode_direct_GCJ=yes
16013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16014 hardcode_libdir_separator_GCJ=:
16015 hardcode_shlibpath_var_GCJ=no
16016 ;;
16017
16018 openbsd*)
16019 hardcode_direct_GCJ=yes
16020 hardcode_shlibpath_var_GCJ=no
16021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16022 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16024 export_dynamic_flag_spec_GCJ='${wl}-E'
16025 else
16026 case $host_os in
16027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16029 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16030 ;;
16031 *)
16032 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16033 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16034 ;;
16035 esac
16036 fi
16037 ;;
16038
16039 os2*)
16040 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16041 hardcode_minus_L_GCJ=yes
16042 allow_undefined_flag_GCJ=unsupported
16043 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'
16044 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16045 ;;
16046
16047 osf3*)
16048 if test "$GCC" = yes; then
16049 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16050 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'
16051 else
16052 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16053 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'
16054 fi
16055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16056 hardcode_libdir_separator_GCJ=:
16057 ;;
16058
16059 osf4* | osf5*) # as osf3* with the addition of -msym flag
16060 if test "$GCC" = yes; then
16061 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16062 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'
16063 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16064 else
16065 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16066 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'
16067 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~
16068 $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'
16069
16070 # Both c and cxx compiler support -rpath directly
16071 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16072 fi
16073 hardcode_libdir_separator_GCJ=:
16074 ;;
16075
16076 sco3.2v5*)
16077 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_shlibpath_var_GCJ=no
16079 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16080 runpath_var=LD_RUN_PATH
16081 hardcode_runpath_var=yes
16082 ;;
16083
16084 solaris*)
16085 no_undefined_flag_GCJ=' -z text'
16086 if test "$GCC" = yes; then
16087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16090 else
16091 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16094 fi
16095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16096 hardcode_shlibpath_var_GCJ=no
16097 case $host_os in
16098 solaris2.[0-5] | solaris2.[0-5].*) ;;
16099 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16101 esac
16102 link_all_deplibs_GCJ=yes
16103 ;;
16104
16105 sunos4*)
16106 if test "x$host_vendor" = xsequent; then
16107 # Use $CC to link under sequent, because it throws in some extra .o
16108 # files that make .init and .fini sections work.
16109 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16110 else
16111 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16112 fi
16113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16114 hardcode_direct_GCJ=yes
16115 hardcode_minus_L_GCJ=yes
16116 hardcode_shlibpath_var_GCJ=no
16117 ;;
16118
16119 sysv4)
16120 case $host_vendor in
16121 sni)
16122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_direct_GCJ=yes # is this really true???
16124 ;;
16125 siemens)
16126 ## LD is ld it makes a PLAMLIB
16127 ## CC just makes a GrossModule.
16128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16129 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16130 hardcode_direct_GCJ=no
16131 ;;
16132 motorola)
16133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16134 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16135 ;;
16136 esac
16137 runpath_var='LD_RUN_PATH'
16138 hardcode_shlibpath_var_GCJ=no
16139 ;;
16140
16141 sysv4.3*)
16142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_shlibpath_var_GCJ=no
16144 export_dynamic_flag_spec_GCJ='-Bexport'
16145 ;;
16146
16147 sysv4*MP*)
16148 if test -d /usr/nec; then
16149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_shlibpath_var_GCJ=no
16151 runpath_var=LD_RUN_PATH
16152 hardcode_runpath_var=yes
16153 ld_shlibs_GCJ=yes
16154 fi
16155 ;;
16156
16157 sysv4.2uw2*)
16158 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16159 hardcode_direct_GCJ=yes
16160 hardcode_minus_L_GCJ=no
16161 hardcode_shlibpath_var_GCJ=no
16162 hardcode_runpath_var=yes
16163 runpath_var=LD_RUN_PATH
16164 ;;
16165
16166 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16167 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16168 if test "$GCC" = yes; then
16169 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 else
16171 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 fi
16173 runpath_var='LD_RUN_PATH'
16174 hardcode_shlibpath_var_GCJ=no
16175 ;;
16176
16177 sysv5*)
16178 no_undefined_flag_GCJ=' -z text'
16179 # $CC -shared without GNU ld will not create a library from C++
16180 # object files and a static libstdc++, better avoid it by now
16181 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16183 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16184 hardcode_libdir_flag_spec_GCJ=
16185 hardcode_shlibpath_var_GCJ=no
16186 runpath_var='LD_RUN_PATH'
16187 ;;
16188
16189 uts4*)
16190 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16192 hardcode_shlibpath_var_GCJ=no
16193 ;;
16194
16195 *)
16196 ld_shlibs_GCJ=no
16197 ;;
16198 esac
16199 fi
16200
16201echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16202echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16203test "$ld_shlibs_GCJ" = no && can_build_shared=no
16204
16205variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16206if test "$GCC" = yes; then
16207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16208fi
16209
16210#
16211# Do we need to explicitly link libc?
16212#
16213case "x$archive_cmds_need_lc_GCJ" in
16214x|xyes)
16215 # Assume -lc should be added
16216 archive_cmds_need_lc_GCJ=yes
16217
16218 if test "$enable_shared" = yes && test "$GCC" = yes; then
16219 case $archive_cmds_GCJ in
16220 *'~'*)
16221 # FIXME: we may have to deal with multi-command sequences.
16222 ;;
16223 '$CC '*)
16224 # Test whether the compiler implicitly links with -lc since on some
16225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16226 # to ld, don't add -lc before -lgcc.
16227 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16228echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16229 $rm conftest*
16230 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16231
16232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16233 (eval $ac_compile) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } 2>conftest.err; then
16237 soname=conftest
16238 lib=conftest
16239 libobjs=conftest.$ac_objext
16240 deplibs=
16241 wl=$lt_prog_compiler_wl_GCJ
16242 compiler_flags=-v
16243 linker_flags=-v
16244 verstring=
16245 output_objdir=.
16246 libname=conftest
16247 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16248 allow_undefined_flag_GCJ=
16249 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16250 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }
16254 then
16255 archive_cmds_need_lc_GCJ=no
16256 else
16257 archive_cmds_need_lc_GCJ=yes
16258 fi
16259 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16260 else
16261 cat conftest.err 1>&5
16262 fi
16263 $rm conftest*
16264 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16265echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16266 ;;
16267 esac
16268 fi
16269 ;;
16270esac
16271
16272echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16273echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16274hardcode_action_GCJ=
16275if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16276 test -n "$runpath_var GCJ" || \
16277 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16278
16279 # We can hardcode non-existant directories.
16280 if test "$hardcode_direct_GCJ" != no &&
16281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16282 # have to relink, otherwise we might link with an installed library
16283 # when we should be linking with a yet-to-be-installed one
16284 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16285 test "$hardcode_minus_L_GCJ" != no; then
16286 # Linking always hardcodes the temporary library directory.
16287 hardcode_action_GCJ=relink
16288 else
16289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16290 hardcode_action_GCJ=immediate
16291 fi
16292else
16293 # We cannot hardcode anything, or else we can only hardcode existing
16294 # directories.
16295 hardcode_action_GCJ=unsupported
16296fi
16297echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16298echo "${ECHO_T}$hardcode_action_GCJ" >&6
16299
16300if test "$hardcode_action_GCJ" = relink; then
16301 # Fast installation is not supported
16302 enable_fast_install=no
16303elif test "$shlibpath_overrides_runpath" = yes ||
16304 test "$enable_shared" = no; then
16305 # Fast installation is not necessary
16306 enable_fast_install=needless
16307fi
16308
16309striplib=
16310old_striplib=
16311echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16312echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16313if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16316 echo "$as_me:$LINENO: result: yes" >&5
16317echo "${ECHO_T}yes" >&6
16318else
16319# FIXME - insert some real tests, host_os isn't really good enough
16320 case $host_os in
16321 darwin*)
16322 if test -n "$STRIP" ; then
16323 striplib="$STRIP -x"
16324 echo "$as_me:$LINENO: result: yes" >&5
16325echo "${ECHO_T}yes" >&6
16326 else
16327 echo "$as_me:$LINENO: result: no" >&5
16328echo "${ECHO_T}no" >&6
16329fi
16330 ;;
16331 *)
16332 echo "$as_me:$LINENO: result: no" >&5
16333echo "${ECHO_T}no" >&6
16334 ;;
16335 esac
16336fi
16337
16338echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16339echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16340library_names_spec=
16341libname_spec='lib$name'
16342soname_spec=
16343shrext=".so"
16344postinstall_cmds=
16345postuninstall_cmds=
16346finish_cmds=
16347finish_eval=
16348shlibpath_var=
16349shlibpath_overrides_runpath=unknown
16350version_type=none
16351dynamic_linker="$host_os ld.so"
16352sys_lib_dlsearch_path_spec="/lib /usr/lib"
16353if test "$GCC" = yes; then
16354 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16355 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16356 # if the path contains ";" then we assume it to be the separator
16357 # otherwise default to the standard path separator (i.e. ":") - it is
16358 # assumed that no part of a normal pathname contains ";" but that should
16359 # okay in the real world where ";" in dirpaths is itself problematic.
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16361 else
16362 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16363 fi
16364else
16365 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16366fi
16367need_lib_prefix=unknown
16368hardcode_into_libs=no
16369
16370# when you set need_version to no, make sure it does not cause -set_version
16371# flags to be left without arguments
16372need_version=unknown
16373
16374case $host_os in
16375aix3*)
16376 version_type=linux
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16378 shlibpath_var=LIBPATH
16379
16380 # AIX 3 has no versioning support, so we append a major version to the name.
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 ;;
16383
16384aix4* | aix5*)
16385 version_type=linux
16386 need_lib_prefix=no
16387 need_version=no
16388 hardcode_into_libs=yes
16389 if test "$host_cpu" = ia64; then
16390 # AIX 5 supports IA64
16391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 else
16394 # With GCC up to 2.95.x, collect2 would create an import file
16395 # for dependence libraries. The import file would start with
16396 # the line `#! .'. This would cause the generated library to
16397 # depend on `.', always an invalid library. This was fixed in
16398 # development snapshots of GCC prior to 3.0.
16399 case $host_os in
16400 aix4 | aix4.[01] | aix4.[01].*)
16401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16402 echo ' yes '
16403 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16404 :
16405 else
16406 can_build_shared=no
16407 fi
16408 ;;
16409 esac
16410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16411 # soname into executable. Probably we can add versioning support to
16412 # collect2, so additional links can be useful in future.
16413 if test "$aix_use_runtimelinking" = yes; then
16414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16415 # instead of lib<name>.a to let people know that these are not
16416 # typical AIX shared libraries.
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 else
16419 # We preserve .a as extension for shared libraries through AIX4.2
16420 # and later when we are not doing run time linking.
16421 library_names_spec='${libname}${release}.a $libname.a'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 fi
16424 shlibpath_var=LIBPATH
16425 fi
16426 ;;
16427
16428amigaos*)
16429 library_names_spec='$libname.ixlibrary $libname.a'
16430 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16431 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'
16432 ;;
16433
16434beos*)
16435 library_names_spec='${libname}${shared_ext}'
16436 dynamic_linker="$host_os ld.so"
16437 shlibpath_var=LIBRARY_PATH
16438 ;;
16439
16440bsdi4*)
16441 version_type=linux
16442 need_version=no
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444 soname_spec='${libname}${release}${shared_ext}$major'
16445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16449 # the default ld.so.conf also contains /usr/contrib/lib and
16450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16451 # libtool to hard-code these into programs
16452 ;;
16453
16454cygwin* | mingw* | pw32*)
16455 version_type=windows
16456 shrext=".dll"
16457 need_version=no
16458 need_lib_prefix=no
16459
16460 case $GCC,$host_os in
16461 yes,cygwin* | yes,mingw* | yes,pw32*)
16462 library_names_spec='$libname.dll.a'
16463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16464 postinstall_cmds='base_file=`basename \${file}`~
16465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16466 dldir=$destdir/`dirname \$dlpath`~
16467 test -d \$dldir || mkdir -p \$dldir~
16468 $install_prog $dir/$dlname \$dldir/$dlname'
16469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16470 dlpath=$dir/\$dldll~
16471 $rm \$dlpath'
16472 shlibpath_overrides_runpath=yes
16473
16474 case $host_os in
16475 cygwin*)
16476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16478 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16479 ;;
16480 mingw*)
16481 # MinGW DLLs use traditional 'lib' prefix
16482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16484 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16485 # It is most probably a Windows format PATH printed by
16486 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16487 # path with ; separators, and with drive letters. We can handle the
16488 # drive letters (cygwin fileutils understands them), so leave them,
16489 # especially as we might pass files found there to a mingw objdump,
16490 # which wouldn't understand a cygwinified path. Ahh.
16491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16492 else
16493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16494 fi
16495 ;;
16496 pw32*)
16497 # pw32 DLLs use 'pw' prefix rather than 'lib'
16498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16499 ;;
16500 esac
16501 ;;
16502
16503 *)
16504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16505 ;;
16506 esac
16507 dynamic_linker='Win32 ld.exe'
16508 # FIXME: first we should search . and the directory the executable is in
16509 shlibpath_var=PATH
16510 ;;
16511
16512darwin* | rhapsody*)
16513 dynamic_linker="$host_os dyld"
16514 version_type=darwin
16515 need_lib_prefix=no
16516 need_version=no
16517 # FIXME: Relying on posixy $() will cause problems for
16518 # cross-compilation, but unfortunately the echo tests do not
16519 # yet detect zsh echo's removal of \ escapes.
16520 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16521 soname_spec='${libname}${release}${major}$shared_ext'
16522 shlibpath_overrides_runpath=yes
16523 shlibpath_var=DYLD_LIBRARY_PATH
16524 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16525 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16526 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16527 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"`
16528 fi
16529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16530 ;;
16531
16532dgux*)
16533 version_type=linux
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 ;;
16540
16541freebsd1*)
16542 dynamic_linker=no
16543 ;;
16544
16545freebsd*)
16546 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16547 version_type=freebsd-$objformat
16548 case $version_type in
16549 freebsd-elf*)
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16551 need_version=no
16552 need_lib_prefix=no
16553 ;;
16554 freebsd-*)
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16556 need_version=yes
16557 ;;
16558 esac
16559 shlibpath_var=LD_LIBRARY_PATH
16560 case $host_os in
16561 freebsd2*)
16562 shlibpath_overrides_runpath=yes
16563 ;;
16564 freebsd3.01* | freebsdelf3.01*)
16565 shlibpath_overrides_runpath=yes
16566 hardcode_into_libs=yes
16567 ;;
16568 *) # from 3.2 on
16569 shlibpath_overrides_runpath=no
16570 hardcode_into_libs=yes
16571 ;;
16572 esac
16573 ;;
16574
16575gnu*)
16576 version_type=linux
16577 need_lib_prefix=no
16578 need_version=no
16579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16580 soname_spec='${libname}${release}${shared_ext}$major'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 hardcode_into_libs=yes
16583 ;;
16584
16585hpux9* | hpux10* | hpux11*)
16586 # Give a soname corresponding to the major version so that dld.sl refuses to
16587 # link against other versions.
16588 version_type=sunos
16589 need_lib_prefix=no
16590 need_version=no
16591 case "$host_cpu" in
16592 ia64*)
16593 shrext='.so'
16594 hardcode_into_libs=yes
16595 dynamic_linker="$host_os dld.so"
16596 shlibpath_var=LD_LIBRARY_PATH
16597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 if test "X$HPUX_IA64_MODE" = X32; then
16601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16602 else
16603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16604 fi
16605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16606 ;;
16607 hppa*64*)
16608 shrext='.sl'
16609 hardcode_into_libs=yes
16610 dynamic_linker="$host_os dld.sl"
16611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614 soname_spec='${libname}${release}${shared_ext}$major'
16615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16617 ;;
16618 *)
16619 shrext='.sl'
16620 dynamic_linker="$host_os dld.sl"
16621 shlibpath_var=SHLIB_PATH
16622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 soname_spec='${libname}${release}${shared_ext}$major'
16625 ;;
16626 esac
16627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16628 postinstall_cmds='chmod 555 $lib'
16629 ;;
16630
16631irix5* | irix6* | nonstopux*)
16632 case $host_os in
16633 nonstopux*) version_type=nonstopux ;;
16634 *)
16635 if test "$lt_cv_prog_gnu_ld" = yes; then
16636 version_type=linux
16637 else
16638 version_type=irix
16639 fi ;;
16640 esac
16641 need_lib_prefix=no
16642 need_version=no
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16645 case $host_os in
16646 irix5* | nonstopux*)
16647 libsuff= shlibsuff=
16648 ;;
16649 *)
16650 case $LD in # libtool.m4 will add one of these switches to LD
16651 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16652 libsuff= shlibsuff= libmagic=32-bit;;
16653 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16654 libsuff=32 shlibsuff=N32 libmagic=N32;;
16655 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16656 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16657 *) libsuff= shlibsuff= libmagic=never-match;;
16658 esac
16659 ;;
16660 esac
16661 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16662 shlibpath_overrides_runpath=no
16663 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16664 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16665 hardcode_into_libs=yes
16666 ;;
16667
16668# No shared lib support for Linux oldld, aout, or coff.
16669linux*oldld* | linux*aout* | linux*coff*)
16670 dynamic_linker=no
16671 ;;
16672
16673# This must be Linux ELF.
16674linux*)
16675 version_type=linux
16676 need_lib_prefix=no
16677 need_version=no
16678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16681 shlibpath_var=LD_LIBRARY_PATH
16682 shlibpath_overrides_runpath=no
16683 # This implies no fast_install, which is unacceptable.
16684 # Some rework will be needed to allow for fast_install
16685 # before this can be enabled.
16686 hardcode_into_libs=yes
16687
16688 # We used to test for /lib/ld.so.1 and disable shared libraries on
16689 # powerpc, because MkLinux only supported shared libraries with the
16690 # GNU dynamic linker. Since this was broken with cross compilers,
16691 # most powerpc-linux boxes support dynamic linking these days and
16692 # people can always --disable-shared, the test was removed, and we
16693 # assume the GNU/Linux dynamic linker is in use.
16694 dynamic_linker='GNU/Linux ld.so'
16695 ;;
16696
16697netbsd*)
16698 version_type=sunos
16699 need_lib_prefix=no
16700 need_version=no
16701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16704 dynamic_linker='NetBSD (a.out) ld.so'
16705 else
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16708 dynamic_linker='NetBSD ld.elf_so'
16709 fi
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 hardcode_into_libs=yes
16713 ;;
16714
16715newsos6)
16716 version_type=linux
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 shlibpath_var=LD_LIBRARY_PATH
16719 shlibpath_overrides_runpath=yes
16720 ;;
16721
16722nto-qnx)
16723 version_type=linux
16724 need_lib_prefix=no
16725 need_version=no
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=yes
16730 ;;
16731
16732openbsd*)
16733 version_type=sunos
16734 need_lib_prefix=no
16735 need_version=no
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16740 case $host_os in
16741 openbsd2.[89] | openbsd2.[89].*)
16742 shlibpath_overrides_runpath=no
16743 ;;
16744 *)
16745 shlibpath_overrides_runpath=yes
16746 ;;
16747 esac
16748 else
16749 shlibpath_overrides_runpath=yes
16750 fi
16751 ;;
16752
16753os2*)
16754 libname_spec='$name'
16755 shrext=".dll"
16756 need_lib_prefix=no
16757 library_names_spec='$libname${shared_ext} $libname.a'
16758 dynamic_linker='OS/2 ld.exe'
16759 shlibpath_var=LIBPATH
16760 ;;
16761
16762osf3* | osf4* | osf5*)
16763 version_type=osf
16764 need_lib_prefix=no
16765 need_version=no
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16771 ;;
16772
16773sco3.2v5*)
16774 version_type=osf
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 ;;
16779
16780solaris*)
16781 version_type=linux
16782 need_lib_prefix=no
16783 need_version=no
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 shlibpath_overrides_runpath=yes
16788 hardcode_into_libs=yes
16789 # ldd complains unless libraries are executable
16790 postinstall_cmds='chmod +x $lib'
16791 ;;
16792
16793sunos4*)
16794 version_type=sunos
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16799 if test "$with_gnu_ld" = yes; then
16800 need_lib_prefix=no
16801 fi
16802 need_version=yes
16803 ;;
16804
16805sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16806 version_type=linux
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 case $host_vendor in
16811 sni)
16812 shlibpath_overrides_runpath=no
16813 need_lib_prefix=no
16814 export_dynamic_flag_spec='${wl}-Blargedynsym'
16815 runpath_var=LD_RUN_PATH
16816 ;;
16817 siemens)
16818 need_lib_prefix=no
16819 ;;
16820 motorola)
16821 need_lib_prefix=no
16822 need_version=no
16823 shlibpath_overrides_runpath=no
16824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16825 ;;
16826 esac
16827 ;;
16828
16829sysv4*MP*)
16830 if test -d /usr/nec ;then
16831 version_type=linux
16832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16833 soname_spec='$libname${shared_ext}.$major'
16834 shlibpath_var=LD_LIBRARY_PATH
16835 fi
16836 ;;
16837
16838uts4*)
16839 version_type=linux
16840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16841 soname_spec='${libname}${release}${shared_ext}$major'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 ;;
16844
16845*)
16846 dynamic_linker=no
16847 ;;
16848esac
16849echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16850echo "${ECHO_T}$dynamic_linker" >&6
16851test "$dynamic_linker" = no && can_build_shared=no
16852
16853if test "x$enable_dlopen" != xyes; then
16854 enable_dlopen=unknown
16855 enable_dlopen_self=unknown
16856 enable_dlopen_self_static=unknown
16857else
16858 lt_cv_dlopen=no
16859 lt_cv_dlopen_libs=
16860
16861 case $host_os in
16862 beos*)
16863 lt_cv_dlopen="load_add_on"
16864 lt_cv_dlopen_libs=
16865 lt_cv_dlopen_self=yes
16866 ;;
16867
16868 mingw* | pw32*)
16869 lt_cv_dlopen="LoadLibrary"
16870 lt_cv_dlopen_libs=
16871 ;;
16872
16873 cygwin*)
16874 lt_cv_dlopen="dlopen"
16875 lt_cv_dlopen_libs=
16876 ;;
16877
16878 darwin*)
16879 # if libdl is installed we need to link against it
16880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16881echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16882if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884else
16885 ac_check_lib_save_LIBS=$LIBS
16886LIBS="-ldl $LIBS"
16887cat >conftest.$ac_ext <<_ACEOF
16888#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016894
16895/* Override any gcc2 internal prototype to avoid an error. */
16896#ifdef __cplusplus
16897extern "C"
16898#endif
16899/* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016902int
16903main ()
16904{
16905dlopen ();
16906 ;
16907 return 0;
16908}
16909_ACEOF
16910rm -f conftest.$ac_objext conftest$ac_exeext
16911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_lib_dl_dlopen=yes
16923else
16924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016925sed 's/^/| /' conftest.$ac_ext >&5
16926
John Criswell47fdd832003-07-14 16:52:07 +000016927ac_cv_lib_dl_dlopen=no
16928fi
16929rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16930LIBS=$ac_check_lib_save_LIBS
16931fi
16932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16933echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16934if test $ac_cv_lib_dl_dlopen = yes; then
16935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16936else
16937
16938 lt_cv_dlopen="dyld"
16939 lt_cv_dlopen_libs=
16940 lt_cv_dlopen_self=yes
16941
16942fi
16943
16944 ;;
16945
16946 *)
16947 echo "$as_me:$LINENO: checking for shl_load" >&5
16948echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16949if test "${ac_cv_func_shl_load+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 cat >conftest.$ac_ext <<_ACEOF
16953#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016959/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016960 which can conflict with char shl_load (); below.
16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962 <limits.h> exists even on freestanding compilers. */
16963#ifdef __STDC__
16964# include <limits.h>
16965#else
16966# include <assert.h>
16967#endif
John Criswell47fdd832003-07-14 16:52:07 +000016968/* Override any gcc2 internal prototype to avoid an error. */
16969#ifdef __cplusplus
16970extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016971{
John Criswell47fdd832003-07-14 16:52:07 +000016972#endif
16973/* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016976/* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979#if defined (__stub_shl_load) || defined (__stub___shl_load)
16980choke me
16981#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016982char (*f) () = shl_load;
16983#endif
16984#ifdef __cplusplus
16985}
John Criswell47fdd832003-07-14 16:52:07 +000016986#endif
16987
John Criswell0c38eaf2003-09-10 15:17:25 +000016988int
16989main ()
16990{
16991return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext conftest$ac_exeext
16997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998 (eval $ac_link) 2>&5
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
17002 { ac_try='test -s conftest$ac_exeext'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_cv_func_shl_load=yes
17009else
17010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017011sed 's/^/| /' conftest.$ac_ext >&5
17012
John Criswell47fdd832003-07-14 16:52:07 +000017013ac_cv_func_shl_load=no
17014fi
17015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17016fi
17017echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17018echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17019if test $ac_cv_func_shl_load = yes; then
17020 lt_cv_dlopen="shl_load"
17021else
17022 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17023echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17024if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026else
17027 ac_check_lib_save_LIBS=$LIBS
17028LIBS="-ldld $LIBS"
17029cat >conftest.$ac_ext <<_ACEOF
17030#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017031/* confdefs.h. */
17032_ACEOF
17033cat confdefs.h >>conftest.$ac_ext
17034cat >>conftest.$ac_ext <<_ACEOF
17035/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017036
17037/* Override any gcc2 internal prototype to avoid an error. */
17038#ifdef __cplusplus
17039extern "C"
17040#endif
17041/* We use char because int might match the return type of a gcc2
17042 builtin and then its argument prototype would still apply. */
17043char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017044int
17045main ()
17046{
17047shl_load ();
17048 ;
17049 return 0;
17050}
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
17053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17054 (eval $ac_link) 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 ac_cv_lib_dld_shl_load=yes
17065else
17066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017067sed 's/^/| /' conftest.$ac_ext >&5
17068
John Criswell47fdd832003-07-14 16:52:07 +000017069ac_cv_lib_dld_shl_load=no
17070fi
17071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17072LIBS=$ac_check_lib_save_LIBS
17073fi
17074echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17076if test $ac_cv_lib_dld_shl_load = yes; then
17077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17078else
17079 echo "$as_me:$LINENO: checking for dlopen" >&5
17080echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17081if test "${ac_cv_func_dlopen+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 cat >conftest.$ac_ext <<_ACEOF
17085#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017091/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017092 which can conflict with char dlopen (); below.
17093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17094 <limits.h> exists even on freestanding compilers. */
17095#ifdef __STDC__
17096# include <limits.h>
17097#else
17098# include <assert.h>
17099#endif
John Criswell47fdd832003-07-14 16:52:07 +000017100/* Override any gcc2 internal prototype to avoid an error. */
17101#ifdef __cplusplus
17102extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017103{
John Criswell47fdd832003-07-14 16:52:07 +000017104#endif
17105/* We use char because int might match the return type of a gcc2
17106 builtin and then its argument prototype would still apply. */
17107char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017108/* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111#if defined (__stub_dlopen) || defined (__stub___dlopen)
17112choke me
17113#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017114char (*f) () = dlopen;
17115#endif
17116#ifdef __cplusplus
17117}
John Criswell47fdd832003-07-14 16:52:07 +000017118#endif
17119
John Criswell0c38eaf2003-09-10 15:17:25 +000017120int
17121main ()
17122{
17123return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017124 ;
17125 return 0;
17126}
17127_ACEOF
17128rm -f conftest.$ac_objext conftest$ac_exeext
17129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>&5
17131 ac_status=$?
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -s conftest$ac_exeext'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140 ac_cv_func_dlopen=yes
17141else
17142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017143sed 's/^/| /' conftest.$ac_ext >&5
17144
John Criswell47fdd832003-07-14 16:52:07 +000017145ac_cv_func_dlopen=no
17146fi
17147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17148fi
17149echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17150echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17151if test $ac_cv_func_dlopen = yes; then
17152 lt_cv_dlopen="dlopen"
17153else
17154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17155echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17156if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 ac_check_lib_save_LIBS=$LIBS
17160LIBS="-ldl $LIBS"
17161cat >conftest.$ac_ext <<_ACEOF
17162#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017163/* confdefs.h. */
17164_ACEOF
17165cat confdefs.h >>conftest.$ac_ext
17166cat >>conftest.$ac_ext <<_ACEOF
17167/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017168
17169/* Override any gcc2 internal prototype to avoid an error. */
17170#ifdef __cplusplus
17171extern "C"
17172#endif
17173/* We use char because int might match the return type of a gcc2
17174 builtin and then its argument prototype would still apply. */
17175char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017176int
17177main ()
17178{
17179dlopen ();
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext conftest$ac_exeext
17185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17186 (eval $ac_link) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_lib_dl_dlopen=yes
17197else
17198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017199sed 's/^/| /' conftest.$ac_ext >&5
17200
John Criswell47fdd832003-07-14 16:52:07 +000017201ac_cv_lib_dl_dlopen=no
17202fi
17203rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17204LIBS=$ac_check_lib_save_LIBS
17205fi
17206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17208if test $ac_cv_lib_dl_dlopen = yes; then
17209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17210else
17211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17212echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17213if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17215else
17216 ac_check_lib_save_LIBS=$LIBS
17217LIBS="-lsvld $LIBS"
17218cat >conftest.$ac_ext <<_ACEOF
17219#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017225
17226/* Override any gcc2 internal prototype to avoid an error. */
17227#ifdef __cplusplus
17228extern "C"
17229#endif
17230/* We use char because int might match the return type of a gcc2
17231 builtin and then its argument prototype would still apply. */
17232char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017233int
17234main ()
17235{
17236dlopen ();
17237 ;
17238 return 0;
17239}
17240_ACEOF
17241rm -f conftest.$ac_objext conftest$ac_exeext
17242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17243 (eval $ac_link) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -s conftest$ac_exeext'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_lib_svld_dlopen=yes
17254else
17255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017256sed 's/^/| /' conftest.$ac_ext >&5
17257
John Criswell47fdd832003-07-14 16:52:07 +000017258ac_cv_lib_svld_dlopen=no
17259fi
17260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17261LIBS=$ac_check_lib_save_LIBS
17262fi
17263echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17264echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17265if test $ac_cv_lib_svld_dlopen = yes; then
17266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17267else
17268 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17269echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17270if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272else
17273 ac_check_lib_save_LIBS=$LIBS
17274LIBS="-ldld $LIBS"
17275cat >conftest.$ac_ext <<_ACEOF
17276#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017282
17283/* Override any gcc2 internal prototype to avoid an error. */
17284#ifdef __cplusplus
17285extern "C"
17286#endif
17287/* We use char because int might match the return type of a gcc2
17288 builtin and then its argument prototype would still apply. */
17289char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017290int
17291main ()
17292{
17293dld_link ();
17294 ;
17295 return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext conftest$ac_exeext
17299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17300 (eval $ac_link) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } &&
17304 { ac_try='test -s conftest$ac_exeext'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_cv_lib_dld_dld_link=yes
17311else
17312 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017313sed 's/^/| /' conftest.$ac_ext >&5
17314
John Criswell47fdd832003-07-14 16:52:07 +000017315ac_cv_lib_dld_dld_link=no
17316fi
17317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17318LIBS=$ac_check_lib_save_LIBS
17319fi
17320echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17321echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17322if test $ac_cv_lib_dld_dld_link = yes; then
17323 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17324fi
17325
17326
17327fi
17328
17329
17330fi
17331
17332
17333fi
17334
17335
17336fi
17337
17338
17339fi
17340
17341 ;;
17342 esac
17343
17344 if test "x$lt_cv_dlopen" != xno; then
17345 enable_dlopen=yes
17346 else
17347 enable_dlopen=no
17348 fi
17349
17350 case $lt_cv_dlopen in
17351 dlopen)
17352 save_CPPFLAGS="$CPPFLAGS"
17353 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17354
17355 save_LDFLAGS="$LDFLAGS"
17356 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17357
17358 save_LIBS="$LIBS"
17359 LIBS="$lt_cv_dlopen_libs $LIBS"
17360
17361 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17362echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17363if test "${lt_cv_dlopen_self+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17365else
17366 if test "$cross_compiling" = yes; then :
17367 lt_cv_dlopen_self=cross
17368else
17369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17370 lt_status=$lt_dlunknown
17371 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +000017372#line 17372 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017373#include "confdefs.h"
17374
17375#if HAVE_DLFCN_H
17376#include <dlfcn.h>
17377#endif
17378
17379#include <stdio.h>
17380
17381#ifdef RTLD_GLOBAL
17382# define LT_DLGLOBAL RTLD_GLOBAL
17383#else
17384# ifdef DL_GLOBAL
17385# define LT_DLGLOBAL DL_GLOBAL
17386# else
17387# define LT_DLGLOBAL 0
17388# endif
17389#endif
17390
17391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17392 find out it does not work in some platform. */
17393#ifndef LT_DLLAZY_OR_NOW
17394# ifdef RTLD_LAZY
17395# define LT_DLLAZY_OR_NOW RTLD_LAZY
17396# else
17397# ifdef DL_LAZY
17398# define LT_DLLAZY_OR_NOW DL_LAZY
17399# else
17400# ifdef RTLD_NOW
17401# define LT_DLLAZY_OR_NOW RTLD_NOW
17402# else
17403# ifdef DL_NOW
17404# define LT_DLLAZY_OR_NOW DL_NOW
17405# else
17406# define LT_DLLAZY_OR_NOW 0
17407# endif
17408# endif
17409# endif
17410# endif
17411#endif
17412
17413#ifdef __cplusplus
17414extern "C" void exit (int);
17415#endif
17416
17417void fnord() { int i=42;}
17418int main ()
17419{
17420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17421 int status = $lt_dlunknown;
17422
17423 if (self)
17424 {
17425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17427 /* dlclose (self); */
17428 }
17429
17430 exit (status);
17431}
17432EOF
17433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17434 (eval $ac_link) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17438 (./conftest; exit; ) 2>/dev/null
17439 lt_status=$?
17440 case x$lt_status in
17441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17443 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17444 esac
17445 else :
17446 # compilation failed
17447 lt_cv_dlopen_self=no
17448 fi
17449fi
17450rm -fr conftest*
17451
17452
17453fi
17454echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17455echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17456
17457 if test "x$lt_cv_dlopen_self" = xyes; then
17458 LDFLAGS="$LDFLAGS $link_static_flag"
17459 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17460echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17461if test "${lt_cv_dlopen_self_static+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463else
17464 if test "$cross_compiling" = yes; then :
17465 lt_cv_dlopen_self_static=cross
17466else
17467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17468 lt_status=$lt_dlunknown
17469 cat > conftest.$ac_ext <<EOF
John Criswell55126592003-10-07 21:57:39 +000017470#line 17470 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017471#include "confdefs.h"
17472
17473#if HAVE_DLFCN_H
17474#include <dlfcn.h>
17475#endif
17476
17477#include <stdio.h>
17478
17479#ifdef RTLD_GLOBAL
17480# define LT_DLGLOBAL RTLD_GLOBAL
17481#else
17482# ifdef DL_GLOBAL
17483# define LT_DLGLOBAL DL_GLOBAL
17484# else
17485# define LT_DLGLOBAL 0
17486# endif
17487#endif
17488
17489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17490 find out it does not work in some platform. */
17491#ifndef LT_DLLAZY_OR_NOW
17492# ifdef RTLD_LAZY
17493# define LT_DLLAZY_OR_NOW RTLD_LAZY
17494# else
17495# ifdef DL_LAZY
17496# define LT_DLLAZY_OR_NOW DL_LAZY
17497# else
17498# ifdef RTLD_NOW
17499# define LT_DLLAZY_OR_NOW RTLD_NOW
17500# else
17501# ifdef DL_NOW
17502# define LT_DLLAZY_OR_NOW DL_NOW
17503# else
17504# define LT_DLLAZY_OR_NOW 0
17505# endif
17506# endif
17507# endif
17508# endif
17509#endif
17510
17511#ifdef __cplusplus
17512extern "C" void exit (int);
17513#endif
17514
17515void fnord() { int i=42;}
17516int main ()
17517{
17518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17519 int status = $lt_dlunknown;
17520
17521 if (self)
17522 {
17523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17525 /* dlclose (self); */
17526 }
17527
17528 exit (status);
17529}
17530EOF
17531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17532 (eval $ac_link) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17536 (./conftest; exit; ) 2>/dev/null
17537 lt_status=$?
17538 case x$lt_status in
17539 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17540 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17541 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17542 esac
17543 else :
17544 # compilation failed
17545 lt_cv_dlopen_self_static=no
17546 fi
17547fi
17548rm -fr conftest*
17549
17550
17551fi
17552echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17553echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17554 fi
17555
17556 CPPFLAGS="$save_CPPFLAGS"
17557 LDFLAGS="$save_LDFLAGS"
17558 LIBS="$save_LIBS"
17559 ;;
17560 esac
17561
17562 case $lt_cv_dlopen_self in
17563 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17564 *) enable_dlopen_self=unknown ;;
17565 esac
17566
17567 case $lt_cv_dlopen_self_static in
17568 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17569 *) enable_dlopen_self_static=unknown ;;
17570 esac
17571fi
17572
17573
17574# The else clause should only fire when bootstrapping the
17575# libtool distribution, otherwise you forgot to ship ltmain.sh
17576# with your package, and you will get complaints that there are
17577# no rules to generate ltmain.sh.
17578if test -f "$ltmain"; then
17579 # See if we are running on zsh, and set the options which allow our commands through
17580 # without removal of \ escapes.
17581 if test -n "${ZSH_VERSION+set}" ; then
17582 setopt NO_GLOB_SUBST
17583 fi
17584 # Now quote all the things that may contain metacharacters while being
17585 # careful not to overquote the AC_SUBSTed values. We take copies of the
17586 # variables and quote the copies for generation of the libtool script.
17587 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17590 deplibs_check_method reload_flag reload_cmds need_locks \
17591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17592 lt_cv_sys_global_symbol_to_c_name_address \
17593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17594 old_postinstall_cmds old_postuninstall_cmds \
17595 compiler_GCJ \
17596 CC_GCJ \
17597 LD_GCJ \
17598 lt_prog_compiler_wl_GCJ \
17599 lt_prog_compiler_pic_GCJ \
17600 lt_prog_compiler_static_GCJ \
17601 lt_prog_compiler_no_builtin_flag_GCJ \
17602 export_dynamic_flag_spec_GCJ \
17603 thread_safe_flag_spec_GCJ \
17604 whole_archive_flag_spec_GCJ \
17605 enable_shared_with_static_runtimes_GCJ \
17606 old_archive_cmds_GCJ \
17607 old_archive_from_new_cmds_GCJ \
17608 predep_objects_GCJ \
17609 postdep_objects_GCJ \
17610 predeps_GCJ \
17611 postdeps_GCJ \
17612 compiler_lib_search_path_GCJ \
17613 archive_cmds_GCJ \
17614 archive_expsym_cmds_GCJ \
17615 postinstall_cmds_GCJ \
17616 postuninstall_cmds_GCJ \
17617 old_archive_from_expsyms_cmds_GCJ \
17618 allow_undefined_flag_GCJ \
17619 no_undefined_flag_GCJ \
17620 export_symbols_cmds_GCJ \
17621 hardcode_libdir_flag_spec_GCJ \
17622 hardcode_libdir_flag_spec_ld_GCJ \
17623 hardcode_libdir_separator_GCJ \
17624 hardcode_automatic_GCJ \
17625 module_cmds_GCJ \
17626 module_expsym_cmds_GCJ \
17627 lt_cv_prog_compiler_c_o_GCJ \
17628 exclude_expsyms_GCJ \
17629 include_expsyms_GCJ; do
17630
17631 case $var in
17632 old_archive_cmds_GCJ | \
17633 old_archive_from_new_cmds_GCJ | \
17634 archive_cmds_GCJ | \
17635 archive_expsym_cmds_GCJ | \
17636 module_cmds_GCJ | \
17637 module_expsym_cmds_GCJ | \
17638 old_archive_from_expsyms_cmds_GCJ | \
17639 export_symbols_cmds_GCJ | \
17640 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17641 postinstall_cmds | postuninstall_cmds | \
17642 old_postinstall_cmds | old_postuninstall_cmds | \
17643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17644 # Double-quote double-evaled strings.
17645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17646 ;;
17647 *)
17648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17649 ;;
17650 esac
17651 done
17652
17653 case $lt_echo in
17654 *'\$0 --fallback-echo"')
17655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17656 ;;
17657 esac
17658
17659cfgfile="$ofile"
17660
17661 cat <<__EOF__ >> "$cfgfile"
17662# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17663
17664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17665
17666# Shell to use when invoking shell scripts.
17667SHELL=$lt_SHELL
17668
17669# Whether or not to build shared libraries.
17670build_libtool_libs=$enable_shared
17671
17672# Whether or not to build static libraries.
17673build_old_libs=$enable_static
17674
17675# Whether or not to add -lc for building shared libraries.
17676build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17677
17678# Whether or not to disallow shared libs when runtime libs are static
17679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17680
17681# Whether or not to optimize for fast installation.
17682fast_install=$enable_fast_install
17683
17684# The host system.
17685host_alias=$host_alias
17686host=$host
17687
17688# An echo program that does not interpret backslashes.
17689echo=$lt_echo
17690
17691# The archiver.
17692AR=$lt_AR
17693AR_FLAGS=$lt_AR_FLAGS
17694
17695# A C compiler.
17696LTCC=$lt_LTCC
17697
17698# A language-specific compiler.
17699CC=$lt_compiler_GCJ
17700
17701# Is the compiler the GNU C compiler?
17702with_gcc=$GCC_GCJ
17703
17704# An ERE matcher.
17705EGREP=$lt_EGREP
17706
17707# The linker used to build libraries.
17708LD=$lt_LD_GCJ
17709
17710# Whether we need hard or soft links.
17711LN_S=$lt_LN_S
17712
17713# A BSD-compatible nm program.
17714NM=$lt_NM
17715
17716# A symbol stripping program
17717STRIP=$STRIP
17718
17719# Used to examine libraries when file_magic_cmd begins "file"
17720MAGIC_CMD=$MAGIC_CMD
17721
17722# Used on cygwin: DLL creation program.
17723DLLTOOL="$DLLTOOL"
17724
17725# Used on cygwin: object dumper.
17726OBJDUMP="$OBJDUMP"
17727
17728# Used on cygwin: assembler.
17729AS="$AS"
17730
17731# The name of the directory that contains temporary libtool files.
17732objdir=$objdir
17733
17734# How to create reloadable object files.
17735reload_flag=$lt_reload_flag
17736reload_cmds=$lt_reload_cmds
17737
17738# How to pass a linker flag through the compiler.
17739wl=$lt_lt_prog_compiler_wl_GCJ
17740
17741# Object file suffix (normally "o").
17742objext="$ac_objext"
17743
17744# Old archive suffix (normally "a").
17745libext="$libext"
17746
17747# Shared library suffix (normally ".so").
17748shrext='$shrext'
17749
17750# Executable file suffix (normally "").
17751exeext="$exeext"
17752
17753# Additional compiler flags for building library objects.
17754pic_flag=$lt_lt_prog_compiler_pic_GCJ
17755pic_mode=$pic_mode
17756
17757# What is the maximum length of a command?
17758max_cmd_len=$lt_cv_sys_max_cmd_len
17759
17760# Does compiler simultaneously support -c and -o options?
17761compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17762
17763# Must we lock files when doing compilation ?
17764need_locks=$lt_need_locks
17765
17766# Do we need the lib prefix for modules?
17767need_lib_prefix=$need_lib_prefix
17768
17769# Do we need a version for libraries?
17770need_version=$need_version
17771
17772# Whether dlopen is supported.
17773dlopen_support=$enable_dlopen
17774
17775# Whether dlopen of programs is supported.
17776dlopen_self=$enable_dlopen_self
17777
17778# Whether dlopen of statically linked programs is supported.
17779dlopen_self_static=$enable_dlopen_self_static
17780
17781# Compiler flag to prevent dynamic linking.
17782link_static_flag=$lt_lt_prog_compiler_static_GCJ
17783
17784# Compiler flag to turn off builtin functions.
17785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17786
17787# Compiler flag to allow reflexive dlopens.
17788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17789
17790# Compiler flag to generate shared objects directly from archives.
17791whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17792
17793# Compiler flag to generate thread-safe objects.
17794thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17795
17796# Library versioning type.
17797version_type=$version_type
17798
17799# Format of library name prefix.
17800libname_spec=$lt_libname_spec
17801
17802# List of archive names. First name is the real one, the rest are links.
17803# The last name is the one that the linker finds with -lNAME.
17804library_names_spec=$lt_library_names_spec
17805
17806# The coded name of the library, if different from the real name.
17807soname_spec=$lt_soname_spec
17808
17809# Commands used to build and install an old-style archive.
17810RANLIB=$lt_RANLIB
17811old_archive_cmds=$lt_old_archive_cmds_GCJ
17812old_postinstall_cmds=$lt_old_postinstall_cmds
17813old_postuninstall_cmds=$lt_old_postuninstall_cmds
17814
17815# Create an old-style archive from a shared archive.
17816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17817
17818# Create a temporary old-style archive to link instead of a shared archive.
17819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17820
17821# Commands used to build and install a shared archive.
17822archive_cmds=$lt_archive_cmds_GCJ
17823archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17824postinstall_cmds=$lt_postinstall_cmds
17825postuninstall_cmds=$lt_postuninstall_cmds
17826
17827# Commands used to build a loadable module (assumed same as above if empty)
17828module_cmds=$lt_module_cmds_GCJ
17829module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17830
17831# Commands to strip libraries.
17832old_striplib=$lt_old_striplib
17833striplib=$lt_striplib
17834
17835# Dependencies to place before the objects being linked to create a
17836# shared library.
17837predep_objects=$lt_predep_objects_GCJ
17838
17839# Dependencies to place after the objects being linked to create a
17840# shared library.
17841postdep_objects=$lt_postdep_objects_GCJ
17842
17843# Dependencies to place before the objects being linked to create a
17844# shared library.
17845predeps=$lt_predeps_GCJ
17846
17847# Dependencies to place after the objects being linked to create a
17848# shared library.
17849postdeps=$lt_postdeps_GCJ
17850
17851# The library search path used internally by the compiler when linking
17852# a shared library.
17853compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17854
17855# Method to check whether dependent libraries are shared objects.
17856deplibs_check_method=$lt_deplibs_check_method
17857
17858# Command to use when deplibs_check_method == file_magic.
17859file_magic_cmd=$lt_file_magic_cmd
17860
17861# Flag that allows shared libraries with undefined symbols to be built.
17862allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17863
17864# Flag that forces no undefined symbols.
17865no_undefined_flag=$lt_no_undefined_flag_GCJ
17866
17867# Commands used to finish a libtool library installation in a directory.
17868finish_cmds=$lt_finish_cmds
17869
17870# Same as above, but a single script fragment to be evaled but not shown.
17871finish_eval=$lt_finish_eval
17872
17873# Take the output of nm and produce a listing of raw symbols and C names.
17874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17875
17876# Transform the output of nm in a proper C declaration
17877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17878
17879# Transform the output of nm in a C name address pair
17880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17881
17882# This is the shared library runtime path variable.
17883runpath_var=$runpath_var
17884
17885# This is the shared library path variable.
17886shlibpath_var=$shlibpath_var
17887
17888# Is shlibpath searched before the hard-coded library search path?
17889shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17890
17891# How to hardcode a shared library path into an executable.
17892hardcode_action=$hardcode_action_GCJ
17893
17894# Whether we should hardcode library paths into libraries.
17895hardcode_into_libs=$hardcode_into_libs
17896
17897# Flag to hardcode \$libdir into a binary during linking.
17898# This must work even if \$libdir does not exist.
17899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17900
17901# If ld is used when linking, flag to hardcode \$libdir into
17902# a binary during linking. This must work even if \$libdir does
17903# not exist.
17904hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17905
17906# Whether we need a single -rpath flag with a separated argument.
17907hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17908
17909# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17910# resulting binary.
17911hardcode_direct=$hardcode_direct_GCJ
17912
17913# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17914# resulting binary.
17915hardcode_minus_L=$hardcode_minus_L_GCJ
17916
17917# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17918# the resulting binary.
17919hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17920
17921# Set to yes if building a shared library automatically hardcodes DIR into the library
17922# and all subsequent libraries and executables linked against it.
17923hardcode_automatic=$hardcode_automatic_GCJ
17924
17925# Variables whose values should be saved in libtool wrapper scripts and
17926# restored at relink time.
17927variables_saved_for_relink="$variables_saved_for_relink"
17928
17929# Whether libtool must link a program against all its dependency libraries.
17930link_all_deplibs=$link_all_deplibs_GCJ
17931
17932# Compile-time system search path for libraries
17933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17934
17935# Run-time system search path for libraries
17936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17937
17938# Fix the shell variable \$srcfile for the compiler.
17939fix_srcfile_path="$fix_srcfile_path_GCJ"
17940
17941# Set to yes if exported symbols are required.
17942always_export_symbols=$always_export_symbols_GCJ
17943
17944# The commands to list exported symbols.
17945export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17946
17947# The commands to extract the exported symbol list from a shared archive.
17948extract_expsyms_cmds=$lt_extract_expsyms_cmds
17949
17950# Symbols that should not be listed in the preloaded symbols.
17951exclude_expsyms=$lt_exclude_expsyms_GCJ
17952
17953# Symbols that must always be exported.
17954include_expsyms=$lt_include_expsyms_GCJ
17955
17956# ### END LIBTOOL TAG CONFIG: $tagname
17957
17958__EOF__
17959
17960
17961else
17962 # If there is no Makefile yet, we rely on a make rule to execute
17963 # `config.status --recheck' to rerun these tests and create the
17964 # libtool script then.
17965 test -f Makefile && make "$ltmain"
17966fi
17967
17968
17969ac_ext=c
17970ac_cpp='$CPP $CPPFLAGS'
17971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975CC="$lt_save_CC"
17976
17977 else
17978 tagname=""
17979 fi
17980 ;;
17981
17982 RC)
17983
17984
17985
17986# Source file extension for RC test sources.
17987ac_ext=rc
17988
17989# Object file extension for compiled RC test sources.
17990objext=o
17991objext_RC=$objext
17992
17993# Code to be used in simple compile tests
17994lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17995
17996# Code to be used in simple link tests
17997lt_simple_link_test_code="$lt_simple_compile_test_code"
17998
17999# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18000
18001# If no C compiler was specified, use CC.
18002LTCC=${LTCC-"$CC"}
18003
18004# Allow CC to be a program name with arguments.
18005compiler=$CC
18006
18007
18008# Allow CC to be a program name with arguments.
18009lt_save_CC="$CC"
18010CC=${RC-"windres"}
18011compiler=$CC
18012compiler_RC=$CC
18013lt_cv_prog_compiler_c_o_RC=yes
18014
18015# The else clause should only fire when bootstrapping the
18016# libtool distribution, otherwise you forgot to ship ltmain.sh
18017# with your package, and you will get complaints that there are
18018# no rules to generate ltmain.sh.
18019if test -f "$ltmain"; then
18020 # See if we are running on zsh, and set the options which allow our commands through
18021 # without removal of \ escapes.
18022 if test -n "${ZSH_VERSION+set}" ; then
18023 setopt NO_GLOB_SUBST
18024 fi
18025 # Now quote all the things that may contain metacharacters while being
18026 # careful not to overquote the AC_SUBSTed values. We take copies of the
18027 # variables and quote the copies for generation of the libtool script.
18028 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18029 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18030 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18031 deplibs_check_method reload_flag reload_cmds need_locks \
18032 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18033 lt_cv_sys_global_symbol_to_c_name_address \
18034 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18035 old_postinstall_cmds old_postuninstall_cmds \
18036 compiler_RC \
18037 CC_RC \
18038 LD_RC \
18039 lt_prog_compiler_wl_RC \
18040 lt_prog_compiler_pic_RC \
18041 lt_prog_compiler_static_RC \
18042 lt_prog_compiler_no_builtin_flag_RC \
18043 export_dynamic_flag_spec_RC \
18044 thread_safe_flag_spec_RC \
18045 whole_archive_flag_spec_RC \
18046 enable_shared_with_static_runtimes_RC \
18047 old_archive_cmds_RC \
18048 old_archive_from_new_cmds_RC \
18049 predep_objects_RC \
18050 postdep_objects_RC \
18051 predeps_RC \
18052 postdeps_RC \
18053 compiler_lib_search_path_RC \
18054 archive_cmds_RC \
18055 archive_expsym_cmds_RC \
18056 postinstall_cmds_RC \
18057 postuninstall_cmds_RC \
18058 old_archive_from_expsyms_cmds_RC \
18059 allow_undefined_flag_RC \
18060 no_undefined_flag_RC \
18061 export_symbols_cmds_RC \
18062 hardcode_libdir_flag_spec_RC \
18063 hardcode_libdir_flag_spec_ld_RC \
18064 hardcode_libdir_separator_RC \
18065 hardcode_automatic_RC \
18066 module_cmds_RC \
18067 module_expsym_cmds_RC \
18068 lt_cv_prog_compiler_c_o_RC \
18069 exclude_expsyms_RC \
18070 include_expsyms_RC; do
18071
18072 case $var in
18073 old_archive_cmds_RC | \
18074 old_archive_from_new_cmds_RC | \
18075 archive_cmds_RC | \
18076 archive_expsym_cmds_RC | \
18077 module_cmds_RC | \
18078 module_expsym_cmds_RC | \
18079 old_archive_from_expsyms_cmds_RC | \
18080 export_symbols_cmds_RC | \
18081 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18082 postinstall_cmds | postuninstall_cmds | \
18083 old_postinstall_cmds | old_postuninstall_cmds | \
18084 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18085 # Double-quote double-evaled strings.
18086 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18087 ;;
18088 *)
18089 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18090 ;;
18091 esac
18092 done
18093
18094 case $lt_echo in
18095 *'\$0 --fallback-echo"')
18096 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18097 ;;
18098 esac
18099
18100cfgfile="$ofile"
18101
18102 cat <<__EOF__ >> "$cfgfile"
18103# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18104
18105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18106
18107# Shell to use when invoking shell scripts.
18108SHELL=$lt_SHELL
18109
18110# Whether or not to build shared libraries.
18111build_libtool_libs=$enable_shared
18112
18113# Whether or not to build static libraries.
18114build_old_libs=$enable_static
18115
18116# Whether or not to add -lc for building shared libraries.
18117build_libtool_need_lc=$archive_cmds_need_lc_RC
18118
18119# Whether or not to disallow shared libs when runtime libs are static
18120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18121
18122# Whether or not to optimize for fast installation.
18123fast_install=$enable_fast_install
18124
18125# The host system.
18126host_alias=$host_alias
18127host=$host
18128
18129# An echo program that does not interpret backslashes.
18130echo=$lt_echo
18131
18132# The archiver.
18133AR=$lt_AR
18134AR_FLAGS=$lt_AR_FLAGS
18135
18136# A C compiler.
18137LTCC=$lt_LTCC
18138
18139# A language-specific compiler.
18140CC=$lt_compiler_RC
18141
18142# Is the compiler the GNU C compiler?
18143with_gcc=$GCC_RC
18144
18145# An ERE matcher.
18146EGREP=$lt_EGREP
18147
18148# The linker used to build libraries.
18149LD=$lt_LD_RC
18150
18151# Whether we need hard or soft links.
18152LN_S=$lt_LN_S
18153
18154# A BSD-compatible nm program.
18155NM=$lt_NM
18156
18157# A symbol stripping program
18158STRIP=$STRIP
18159
18160# Used to examine libraries when file_magic_cmd begins "file"
18161MAGIC_CMD=$MAGIC_CMD
18162
18163# Used on cygwin: DLL creation program.
18164DLLTOOL="$DLLTOOL"
18165
18166# Used on cygwin: object dumper.
18167OBJDUMP="$OBJDUMP"
18168
18169# Used on cygwin: assembler.
18170AS="$AS"
18171
18172# The name of the directory that contains temporary libtool files.
18173objdir=$objdir
18174
18175# How to create reloadable object files.
18176reload_flag=$lt_reload_flag
18177reload_cmds=$lt_reload_cmds
18178
18179# How to pass a linker flag through the compiler.
18180wl=$lt_lt_prog_compiler_wl_RC
18181
18182# Object file suffix (normally "o").
18183objext="$ac_objext"
18184
18185# Old archive suffix (normally "a").
18186libext="$libext"
18187
18188# Shared library suffix (normally ".so").
18189shrext='$shrext'
18190
18191# Executable file suffix (normally "").
18192exeext="$exeext"
18193
18194# Additional compiler flags for building library objects.
18195pic_flag=$lt_lt_prog_compiler_pic_RC
18196pic_mode=$pic_mode
18197
18198# What is the maximum length of a command?
18199max_cmd_len=$lt_cv_sys_max_cmd_len
18200
18201# Does compiler simultaneously support -c and -o options?
18202compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18203
18204# Must we lock files when doing compilation ?
18205need_locks=$lt_need_locks
18206
18207# Do we need the lib prefix for modules?
18208need_lib_prefix=$need_lib_prefix
18209
18210# Do we need a version for libraries?
18211need_version=$need_version
18212
18213# Whether dlopen is supported.
18214dlopen_support=$enable_dlopen
18215
18216# Whether dlopen of programs is supported.
18217dlopen_self=$enable_dlopen_self
18218
18219# Whether dlopen of statically linked programs is supported.
18220dlopen_self_static=$enable_dlopen_self_static
18221
18222# Compiler flag to prevent dynamic linking.
18223link_static_flag=$lt_lt_prog_compiler_static_RC
18224
18225# Compiler flag to turn off builtin functions.
18226no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18227
18228# Compiler flag to allow reflexive dlopens.
18229export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18230
18231# Compiler flag to generate shared objects directly from archives.
18232whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18233
18234# Compiler flag to generate thread-safe objects.
18235thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18236
18237# Library versioning type.
18238version_type=$version_type
18239
18240# Format of library name prefix.
18241libname_spec=$lt_libname_spec
18242
18243# List of archive names. First name is the real one, the rest are links.
18244# The last name is the one that the linker finds with -lNAME.
18245library_names_spec=$lt_library_names_spec
18246
18247# The coded name of the library, if different from the real name.
18248soname_spec=$lt_soname_spec
18249
18250# Commands used to build and install an old-style archive.
18251RANLIB=$lt_RANLIB
18252old_archive_cmds=$lt_old_archive_cmds_RC
18253old_postinstall_cmds=$lt_old_postinstall_cmds
18254old_postuninstall_cmds=$lt_old_postuninstall_cmds
18255
18256# Create an old-style archive from a shared archive.
18257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18258
18259# Create a temporary old-style archive to link instead of a shared archive.
18260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18261
18262# Commands used to build and install a shared archive.
18263archive_cmds=$lt_archive_cmds_RC
18264archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18265postinstall_cmds=$lt_postinstall_cmds
18266postuninstall_cmds=$lt_postuninstall_cmds
18267
18268# Commands used to build a loadable module (assumed same as above if empty)
18269module_cmds=$lt_module_cmds_RC
18270module_expsym_cmds=$lt_module_expsym_cmds_RC
18271
18272# Commands to strip libraries.
18273old_striplib=$lt_old_striplib
18274striplib=$lt_striplib
18275
18276# Dependencies to place before the objects being linked to create a
18277# shared library.
18278predep_objects=$lt_predep_objects_RC
18279
18280# Dependencies to place after the objects being linked to create a
18281# shared library.
18282postdep_objects=$lt_postdep_objects_RC
18283
18284# Dependencies to place before the objects being linked to create a
18285# shared library.
18286predeps=$lt_predeps_RC
18287
18288# Dependencies to place after the objects being linked to create a
18289# shared library.
18290postdeps=$lt_postdeps_RC
18291
18292# The library search path used internally by the compiler when linking
18293# a shared library.
18294compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18295
18296# Method to check whether dependent libraries are shared objects.
18297deplibs_check_method=$lt_deplibs_check_method
18298
18299# Command to use when deplibs_check_method == file_magic.
18300file_magic_cmd=$lt_file_magic_cmd
18301
18302# Flag that allows shared libraries with undefined symbols to be built.
18303allow_undefined_flag=$lt_allow_undefined_flag_RC
18304
18305# Flag that forces no undefined symbols.
18306no_undefined_flag=$lt_no_undefined_flag_RC
18307
18308# Commands used to finish a libtool library installation in a directory.
18309finish_cmds=$lt_finish_cmds
18310
18311# Same as above, but a single script fragment to be evaled but not shown.
18312finish_eval=$lt_finish_eval
18313
18314# Take the output of nm and produce a listing of raw symbols and C names.
18315global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18316
18317# Transform the output of nm in a proper C declaration
18318global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18319
18320# Transform the output of nm in a C name address pair
18321global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18322
18323# This is the shared library runtime path variable.
18324runpath_var=$runpath_var
18325
18326# This is the shared library path variable.
18327shlibpath_var=$shlibpath_var
18328
18329# Is shlibpath searched before the hard-coded library search path?
18330shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18331
18332# How to hardcode a shared library path into an executable.
18333hardcode_action=$hardcode_action_RC
18334
18335# Whether we should hardcode library paths into libraries.
18336hardcode_into_libs=$hardcode_into_libs
18337
18338# Flag to hardcode \$libdir into a binary during linking.
18339# This must work even if \$libdir does not exist.
18340hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18341
18342# If ld is used when linking, flag to hardcode \$libdir into
18343# a binary during linking. This must work even if \$libdir does
18344# not exist.
18345hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18346
18347# Whether we need a single -rpath flag with a separated argument.
18348hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18349
18350# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18351# resulting binary.
18352hardcode_direct=$hardcode_direct_RC
18353
18354# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18355# resulting binary.
18356hardcode_minus_L=$hardcode_minus_L_RC
18357
18358# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18359# the resulting binary.
18360hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18361
18362# Set to yes if building a shared library automatically hardcodes DIR into the library
18363# and all subsequent libraries and executables linked against it.
18364hardcode_automatic=$hardcode_automatic_RC
18365
18366# Variables whose values should be saved in libtool wrapper scripts and
18367# restored at relink time.
18368variables_saved_for_relink="$variables_saved_for_relink"
18369
18370# Whether libtool must link a program against all its dependency libraries.
18371link_all_deplibs=$link_all_deplibs_RC
18372
18373# Compile-time system search path for libraries
18374sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18375
18376# Run-time system search path for libraries
18377sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18378
18379# Fix the shell variable \$srcfile for the compiler.
18380fix_srcfile_path="$fix_srcfile_path_RC"
18381
18382# Set to yes if exported symbols are required.
18383always_export_symbols=$always_export_symbols_RC
18384
18385# The commands to list exported symbols.
18386export_symbols_cmds=$lt_export_symbols_cmds_RC
18387
18388# The commands to extract the exported symbol list from a shared archive.
18389extract_expsyms_cmds=$lt_extract_expsyms_cmds
18390
18391# Symbols that should not be listed in the preloaded symbols.
18392exclude_expsyms=$lt_exclude_expsyms_RC
18393
18394# Symbols that must always be exported.
18395include_expsyms=$lt_include_expsyms_RC
18396
18397# ### END LIBTOOL TAG CONFIG: $tagname
18398
18399__EOF__
18400
18401
18402else
18403 # If there is no Makefile yet, we rely on a make rule to execute
18404 # `config.status --recheck' to rerun these tests and create the
18405 # libtool script then.
18406 test -f Makefile && make "$ltmain"
18407fi
18408
18409
18410ac_ext=c
18411ac_cpp='$CPP $CPPFLAGS'
18412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18414ac_compiler_gnu=$ac_cv_c_compiler_gnu
18415
18416CC="$lt_save_CC"
18417
18418 ;;
18419
18420 *)
18421 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18422echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18423 { (exit 1); exit 1; }; }
18424 ;;
18425 esac
18426
18427 # Append the new tag name to the list of available tags.
18428 if test -n "$tagname" ; then
18429 available_tags="$available_tags $tagname"
18430 fi
18431 fi
18432 done
18433 IFS="$lt_save_ifs"
18434
18435 # Now substitute the updated list of available tags.
18436 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18437 mv "${ofile}T" "$ofile"
18438 chmod +x "$ofile"
18439 else
18440 rm -f "${ofile}T"
18441 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18442echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18443 { (exit 1); exit 1; }; }
18444 fi
18445fi
John Criswell7a73b802003-06-30 21:59:07 +000018446
18447
18448
18449# This can be used to rebuild libtool when needed
18450LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18451
18452# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018453LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018454
18455# Prevent multiple expansion
18456
18457
18458
John Criswell47fdd832003-07-14 16:52:07 +000018459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
John Criswellde00db22003-08-25 16:49:54 +000018477# Extract the first word of "pwd", so it can be a program name with args.
18478set dummy pwd; ac_word=$2
18479echo "$as_me:$LINENO: checking for $ac_word" >&5
18480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18481if test "${ac_cv_path_RPWD+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483else
18484 case $RPWD in
18485 [\\/]* | ?:[\\/]*)
18486 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18487 ;;
18488 *)
18489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490for as_dir in $PATH
18491do
18492 IFS=$as_save_IFS
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18498 break 2
18499 fi
18500done
18501done
18502
John Criswell39827c82003-09-23 15:28:52 +000018503 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018504 ;;
18505esac
18506fi
18507RPWD=$ac_cv_path_RPWD
18508
18509if test -n "$RPWD"; then
18510 echo "$as_me:$LINENO: result: $RPWD" >&5
18511echo "${ECHO_T}$RPWD" >&6
18512else
18513 echo "$as_me:$LINENO: result: no" >&5
18514echo "${ECHO_T}no" >&6
18515fi
18516
John Criswell39827c82003-09-23 15:28:52 +000018517if test ${RPWD} = "false"
18518then
18519 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18520echo "$as_me: error: pwd required but not found" >&2;}
18521 { (exit 1); exit 1; }; }
18522fi
18523
John Criswell7a73b802003-06-30 21:59:07 +000018524# Extract the first word of "ar", so it can be a program name with args.
18525set dummy ar; ac_word=$2
18526echo "$as_me:$LINENO: checking for $ac_word" >&5
18527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18528if test "${ac_cv_path_AR+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530else
18531 case $AR in
18532 [\\/]* | ?:[\\/]*)
18533 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18534 ;;
18535 *)
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537for as_dir in $PATH
18538do
18539 IFS=$as_save_IFS
18540 test -z "$as_dir" && as_dir=.
18541 for ac_exec_ext in '' $ac_executable_extensions; do
18542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18543 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 break 2
18546 fi
18547done
18548done
18549
John Criswell39827c82003-09-23 15:28:52 +000018550 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018551 ;;
18552esac
18553fi
18554AR=$ac_cv_path_AR
18555
18556if test -n "$AR"; then
18557 echo "$as_me:$LINENO: result: $AR" >&5
18558echo "${ECHO_T}$AR" >&6
18559else
18560 echo "$as_me:$LINENO: result: no" >&5
18561echo "${ECHO_T}no" >&6
18562fi
18563
John Criswell39827c82003-09-23 15:28:52 +000018564if test ${AR} = "false"
18565then
18566 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18567echo "$as_me: error: ar required but not found" >&2;}
18568 { (exit 1); exit 1; }; }
18569fi
18570
John Criswell7a73b802003-06-30 21:59:07 +000018571# Extract the first word of "sed", so it can be a program name with args.
18572set dummy sed; ac_word=$2
18573echo "$as_me:$LINENO: checking for $ac_word" >&5
18574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18575if test "${ac_cv_path_SED+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577else
18578 case $SED in
18579 [\\/]* | ?:[\\/]*)
18580 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18581 ;;
18582 *)
18583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586 IFS=$as_save_IFS
18587 test -z "$as_dir" && as_dir=.
18588 for ac_exec_ext in '' $ac_executable_extensions; do
18589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18590 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18592 break 2
18593 fi
18594done
18595done
18596
John Criswell39827c82003-09-23 15:28:52 +000018597 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018598 ;;
18599esac
18600fi
18601SED=$ac_cv_path_SED
18602
18603if test -n "$SED"; then
18604 echo "$as_me:$LINENO: result: $SED" >&5
18605echo "${ECHO_T}$SED" >&6
18606else
18607 echo "$as_me:$LINENO: result: no" >&5
18608echo "${ECHO_T}no" >&6
18609fi
18610
John Criswell39827c82003-09-23 15:28:52 +000018611if test ${SED} = "false"
18612then
18613 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18614echo "$as_me: error: sed required but not found" >&2;}
18615 { (exit 1); exit 1; }; }
18616fi
18617
John Criswell7a73b802003-06-30 21:59:07 +000018618# Extract the first word of "rm", so it can be a program name with args.
18619set dummy rm; ac_word=$2
18620echo "$as_me:$LINENO: checking for $ac_word" >&5
18621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18622if test "${ac_cv_path_RM+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624else
18625 case $RM in
18626 [\\/]* | ?:[\\/]*)
18627 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18628 ;;
18629 *)
18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18631for as_dir in $PATH
18632do
18633 IFS=$as_save_IFS
18634 test -z "$as_dir" && as_dir=.
18635 for ac_exec_ext in '' $ac_executable_extensions; do
18636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18637 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18639 break 2
18640 fi
18641done
18642done
18643
John Criswell39827c82003-09-23 15:28:52 +000018644 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018645 ;;
18646esac
18647fi
18648RM=$ac_cv_path_RM
18649
18650if test -n "$RM"; then
18651 echo "$as_me:$LINENO: result: $RM" >&5
18652echo "${ECHO_T}$RM" >&6
18653else
18654 echo "$as_me:$LINENO: result: no" >&5
18655echo "${ECHO_T}no" >&6
18656fi
18657
John Criswell39827c82003-09-23 15:28:52 +000018658if test ${RM} = "false"
18659then
18660 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18661echo "$as_me: error: rm required but not found" >&2;}
18662 { (exit 1); exit 1; }; }
18663fi
18664
John Criswell7a73b802003-06-30 21:59:07 +000018665# Extract the first word of "echo", so it can be a program name with args.
18666set dummy echo; ac_word=$2
18667echo "$as_me:$LINENO: checking for $ac_word" >&5
18668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18669if test "${ac_cv_path_ECHO+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671else
18672 case $ECHO in
18673 [\\/]* | ?:[\\/]*)
18674 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18675 ;;
18676 *)
18677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678for as_dir in $PATH
18679do
18680 IFS=$as_save_IFS
18681 test -z "$as_dir" && as_dir=.
18682 for ac_exec_ext in '' $ac_executable_extensions; do
18683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18686 break 2
18687 fi
18688done
18689done
18690
John Criswell39827c82003-09-23 15:28:52 +000018691 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018692 ;;
18693esac
18694fi
18695ECHO=$ac_cv_path_ECHO
18696
18697if test -n "$ECHO"; then
18698 echo "$as_me:$LINENO: result: $ECHO" >&5
18699echo "${ECHO_T}$ECHO" >&6
18700else
18701 echo "$as_me:$LINENO: result: no" >&5
18702echo "${ECHO_T}no" >&6
18703fi
18704
John Criswell39827c82003-09-23 15:28:52 +000018705if test ${ECHO} = "false"
18706then
18707 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18708echo "$as_me: error: echo required but not found" >&2;}
18709 { (exit 1); exit 1; }; }
18710fi
18711
John Criswell7a73b802003-06-30 21:59:07 +000018712# Extract the first word of "mkdir", so it can be a program name with args.
18713set dummy mkdir; ac_word=$2
18714echo "$as_me:$LINENO: checking for $ac_word" >&5
18715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716if test "${ac_cv_path_MKDIR+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719 case $MKDIR in
18720 [\\/]* | ?:[\\/]*)
18721 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18722 ;;
18723 *)
18724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725for as_dir in $PATH
18726do
18727 IFS=$as_save_IFS
18728 test -z "$as_dir" && as_dir=.
18729 for ac_exec_ext in '' $ac_executable_extensions; do
18730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18733 break 2
18734 fi
18735done
18736done
18737
John Criswell39827c82003-09-23 15:28:52 +000018738 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018739 ;;
18740esac
18741fi
18742MKDIR=$ac_cv_path_MKDIR
18743
18744if test -n "$MKDIR"; then
18745 echo "$as_me:$LINENO: result: $MKDIR" >&5
18746echo "${ECHO_T}$MKDIR" >&6
18747else
18748 echo "$as_me:$LINENO: result: no" >&5
18749echo "${ECHO_T}no" >&6
18750fi
18751
John Criswell39827c82003-09-23 15:28:52 +000018752if test ${MKDIR} = "false"
18753then
18754 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18755echo "$as_me: error: mkdir required but not found" >&2;}
18756 { (exit 1); exit 1; }; }
18757fi
18758
John Criswell7a73b802003-06-30 21:59:07 +000018759# Extract the first word of "date", so it can be a program name with args.
18760set dummy date; ac_word=$2
18761echo "$as_me:$LINENO: checking for $ac_word" >&5
18762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18763if test "${ac_cv_path_DATE+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18765else
18766 case $DATE in
18767 [\\/]* | ?:[\\/]*)
18768 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18769 ;;
18770 *)
18771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18772for as_dir in $PATH
18773do
18774 IFS=$as_save_IFS
18775 test -z "$as_dir" && as_dir=.
18776 for ac_exec_ext in '' $ac_executable_extensions; do
18777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18778 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18780 break 2
18781 fi
18782done
18783done
18784
John Criswell39827c82003-09-23 15:28:52 +000018785 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018786 ;;
18787esac
18788fi
18789DATE=$ac_cv_path_DATE
18790
18791if test -n "$DATE"; then
18792 echo "$as_me:$LINENO: result: $DATE" >&5
18793echo "${ECHO_T}$DATE" >&6
18794else
18795 echo "$as_me:$LINENO: result: no" >&5
18796echo "${ECHO_T}no" >&6
18797fi
18798
John Criswell39827c82003-09-23 15:28:52 +000018799if test ${DATE} = "false"
18800then
18801 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18802echo "$as_me: error: date required but not found" >&2;}
18803 { (exit 1); exit 1; }; }
18804fi
18805
John Criswell7a73b802003-06-30 21:59:07 +000018806# Extract the first word of "mv", so it can be a program name with args.
18807set dummy mv; ac_word=$2
18808echo "$as_me:$LINENO: checking for $ac_word" >&5
18809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18810if test "${ac_cv_path_MV+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18812else
18813 case $MV in
18814 [\\/]* | ?:[\\/]*)
18815 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18816 ;;
18817 *)
18818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819for as_dir in $PATH
18820do
18821 IFS=$as_save_IFS
18822 test -z "$as_dir" && as_dir=.
18823 for ac_exec_ext in '' $ac_executable_extensions; do
18824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18825 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18827 break 2
18828 fi
18829done
18830done
18831
John Criswell39827c82003-09-23 15:28:52 +000018832 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018833 ;;
18834esac
18835fi
18836MV=$ac_cv_path_MV
18837
18838if test -n "$MV"; then
18839 echo "$as_me:$LINENO: result: $MV" >&5
18840echo "${ECHO_T}$MV" >&6
18841else
18842 echo "$as_me:$LINENO: result: no" >&5
18843echo "${ECHO_T}no" >&6
18844fi
18845
John Criswell39827c82003-09-23 15:28:52 +000018846if test ${MV} = "false"
18847then
18848 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18849echo "$as_me: error: mv required but not found" >&2;}
18850 { (exit 1); exit 1; }; }
18851fi
18852
John Criswell7a73b802003-06-30 21:59:07 +000018853# Extract the first word of "dot", so it can be a program name with args.
18854set dummy dot; ac_word=$2
18855echo "$as_me:$LINENO: checking for $ac_word" >&5
18856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18857if test "${ac_cv_path_DOT+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 case $DOT in
18861 [\\/]* | ?:[\\/]*)
18862 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18863 ;;
18864 *)
18865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18866for as_dir in $PATH
18867do
18868 IFS=$as_save_IFS
18869 test -z "$as_dir" && as_dir=.
18870 for ac_exec_ext in '' $ac_executable_extensions; do
18871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18872 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18874 break 2
18875 fi
18876done
18877done
18878
John Criswell39827c82003-09-23 15:28:52 +000018879 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018880 ;;
18881esac
18882fi
18883DOT=$ac_cv_path_DOT
18884
18885if test -n "$DOT"; then
18886 echo "$as_me:$LINENO: result: $DOT" >&5
18887echo "${ECHO_T}$DOT" >&6
18888else
18889 echo "$as_me:$LINENO: result: no" >&5
18890echo "${ECHO_T}no" >&6
18891fi
18892
John Criswell39827c82003-09-23 15:28:52 +000018893
John Criswell7a73b802003-06-30 21:59:07 +000018894# Extract the first word of "etags", so it can be a program name with args.
18895set dummy etags; ac_word=$2
18896echo "$as_me:$LINENO: checking for $ac_word" >&5
18897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18898if test "${ac_cv_path_ETAGS+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18900else
18901 case $ETAGS in
18902 [\\/]* | ?:[\\/]*)
18903 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18904 ;;
18905 *)
18906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907for as_dir in $PATH
18908do
18909 IFS=$as_save_IFS
18910 test -z "$as_dir" && as_dir=.
18911 for ac_exec_ext in '' $ac_executable_extensions; do
18912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18913 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18915 break 2
18916 fi
18917done
18918done
18919
John Criswell39827c82003-09-23 15:28:52 +000018920 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018921 ;;
18922esac
18923fi
18924ETAGS=$ac_cv_path_ETAGS
18925
18926if test -n "$ETAGS"; then
18927 echo "$as_me:$LINENO: result: $ETAGS" >&5
18928echo "${ECHO_T}$ETAGS" >&6
18929else
18930 echo "$as_me:$LINENO: result: no" >&5
18931echo "${ECHO_T}no" >&6
18932fi
18933
John Criswell39827c82003-09-23 15:28:52 +000018934
John Criswellde00db22003-08-25 16:49:54 +000018935# Extract the first word of "python", so it can be a program name with args.
18936set dummy python; ac_word=$2
18937echo "$as_me:$LINENO: checking for $ac_word" >&5
18938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18939if test "${ac_cv_path_PYTHON+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941else
18942 case $PYTHON in
18943 [\\/]* | ?:[\\/]*)
18944 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18945 ;;
18946 *)
18947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18948for as_dir in $PATH
18949do
18950 IFS=$as_save_IFS
18951 test -z "$as_dir" && as_dir=.
18952 for ac_exec_ext in '' $ac_executable_extensions; do
18953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18954 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18956 break 2
18957 fi
18958done
18959done
18960
John Criswell39827c82003-09-23 15:28:52 +000018961 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018962 ;;
18963esac
18964fi
18965PYTHON=$ac_cv_path_PYTHON
18966
18967if test -n "$PYTHON"; then
18968 echo "$as_me:$LINENO: result: $PYTHON" >&5
18969echo "${ECHO_T}$PYTHON" >&6
18970else
18971 echo "$as_me:$LINENO: result: no" >&5
18972echo "${ECHO_T}no" >&6
18973fi
18974
John Criswell39827c82003-09-23 15:28:52 +000018975if test ${PYTHON} = "false"
18976then
John Criswell61095982003-09-23 20:46:32 +000018977 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18978echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018979fi
18980
John Criswellde00db22003-08-25 16:49:54 +000018981# Extract the first word of "qmtest", so it can be a program name with args.
18982set dummy qmtest; ac_word=$2
18983echo "$as_me:$LINENO: checking for $ac_word" >&5
18984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18985if test "${ac_cv_path_QMTEST+set}" = set; then
18986 echo $ECHO_N "(cached) $ECHO_C" >&6
18987else
18988 case $QMTEST in
18989 [\\/]* | ?:[\\/]*)
18990 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18991 ;;
18992 *)
18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994for as_dir in $PATH
18995do
18996 IFS=$as_save_IFS
18997 test -z "$as_dir" && as_dir=.
18998 for ac_exec_ext in '' $ac_executable_extensions; do
18999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19002 break 2
19003 fi
19004done
19005done
19006
John Criswell39827c82003-09-23 15:28:52 +000019007 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019008 ;;
19009esac
19010fi
19011QMTEST=$ac_cv_path_QMTEST
19012
19013if test -n "$QMTEST"; then
19014 echo "$as_me:$LINENO: result: $QMTEST" >&5
19015echo "${ECHO_T}$QMTEST" >&6
19016else
19017 echo "$as_me:$LINENO: result: no" >&5
19018echo "${ECHO_T}no" >&6
19019fi
19020
John Criswell39827c82003-09-23 15:28:52 +000019021if test ${QMTEST} = "false"
19022then
John Criswell61095982003-09-23 20:46:32 +000019023 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19024echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019025fi
John Criswellde00db22003-08-25 16:49:54 +000019026
19027pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19028pymajor=`echo $pyversion | cut -d. -f1`
19029pyminor=`echo $pyversion | cut -d. -f2`
19030
19031if test "$pymajor" -ge "2"
19032then
19033 if test "$pymajor" -eq "2"
19034 then
19035 if test "$pyminor" -lt "2"
19036 then
19037 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19038echo "$as_me: error: Python 2.2 or greater required" >&2;}
19039 { (exit 1); exit 1; }; }
19040 fi
19041 fi
19042else
19043 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19044echo "$as_me: error: Python 2.2 or greater required" >&2;}
19045 { (exit 1); exit 1; }; }
19046fi
John Criswell7a73b802003-06-30 21:59:07 +000019047
19048
19049
19050
19051
19052echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19053echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19054if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19055 echo $ECHO_N "(cached) $ECHO_C" >&6
19056else
19057 ac_check_lib_save_LIBS=$LIBS
19058LIBS="-lelf $LIBS"
19059cat >conftest.$ac_ext <<_ACEOF
19060#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019066
19067/* Override any gcc2 internal prototype to avoid an error. */
19068#ifdef __cplusplus
19069extern "C"
19070#endif
19071/* We use char because int might match the return type of a gcc2
19072 builtin and then its argument prototype would still apply. */
19073char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019074int
19075main ()
19076{
19077elf_begin ();
19078 ;
19079 return 0;
19080}
19081_ACEOF
19082rm -f conftest.$ac_objext conftest$ac_exeext
19083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19084 (eval $ac_link) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -s conftest$ac_exeext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 ac_cv_lib_elf_elf_begin=yes
19095else
19096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019097sed 's/^/| /' conftest.$ac_ext >&5
19098
John Criswell7a73b802003-06-30 21:59:07 +000019099ac_cv_lib_elf_elf_begin=no
19100fi
19101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19102LIBS=$ac_check_lib_save_LIBS
19103fi
19104echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19105echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19106if test $ac_cv_lib_elf_elf_begin = yes; then
19107 cat >>confdefs.h <<_ACEOF
19108#define HAVE_LIBELF 1
19109_ACEOF
19110
19111 LIBS="-lelf $LIBS"
19112
19113fi
19114
19115
19116echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19117echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19118if test "${ac_cv_search_dlopen+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120else
19121 ac_func_search_save_LIBS=$LIBS
19122ac_cv_search_dlopen=no
19123cat >conftest.$ac_ext <<_ACEOF
19124#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019130
19131/* Override any gcc2 internal prototype to avoid an error. */
19132#ifdef __cplusplus
19133extern "C"
19134#endif
19135/* We use char because int might match the return type of a gcc2
19136 builtin and then its argument prototype would still apply. */
19137char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019138int
19139main ()
19140{
19141dlopen ();
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146rm -f conftest.$ac_objext conftest$ac_exeext
19147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19148 (eval $ac_link) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -s conftest$ac_exeext'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; }; then
19158 ac_cv_search_dlopen="none required"
19159else
19160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019161sed 's/^/| /' conftest.$ac_ext >&5
19162
John Criswell7a73b802003-06-30 21:59:07 +000019163fi
19164rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19165if test "$ac_cv_search_dlopen" = no; then
19166 for ac_lib in dl; do
19167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19168 cat >conftest.$ac_ext <<_ACEOF
19169#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019175
19176/* Override any gcc2 internal prototype to avoid an error. */
19177#ifdef __cplusplus
19178extern "C"
19179#endif
19180/* We use char because int might match the return type of a gcc2
19181 builtin and then its argument prototype would still apply. */
19182char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019183int
19184main ()
19185{
19186dlopen ();
19187 ;
19188 return 0;
19189}
19190_ACEOF
19191rm -f conftest.$ac_objext conftest$ac_exeext
19192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19193 (eval $ac_link) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -s conftest$ac_exeext'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
19203 ac_cv_search_dlopen="-l$ac_lib"
19204break
19205else
19206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019207sed 's/^/| /' conftest.$ac_ext >&5
19208
John Criswell7a73b802003-06-30 21:59:07 +000019209fi
19210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19211 done
19212fi
19213LIBS=$ac_func_search_save_LIBS
19214fi
19215echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19216echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19217if test "$ac_cv_search_dlopen" != no; then
19218 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
Brian Gaekec45be042003-10-07 06:01:34 +000019219 cat >>confdefs.h <<\_ACEOF
19220#define HAVE_DLOPEN 1
19221_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019222
19223else
Brian Gaekec45be042003-10-07 06:01:34 +000019224 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19225echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019226fi
19227
19228
19229echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19230echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19231if test "${ac_cv_search_mallinfo+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 ac_func_search_save_LIBS=$LIBS
19235ac_cv_search_mallinfo=no
19236cat >conftest.$ac_ext <<_ACEOF
19237#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019238/* confdefs.h. */
19239_ACEOF
19240cat confdefs.h >>conftest.$ac_ext
19241cat >>conftest.$ac_ext <<_ACEOF
19242/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019243
19244/* Override any gcc2 internal prototype to avoid an error. */
19245#ifdef __cplusplus
19246extern "C"
19247#endif
19248/* We use char because int might match the return type of a gcc2
19249 builtin and then its argument prototype would still apply. */
19250char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019251int
19252main ()
19253{
19254mallinfo ();
19255 ;
19256 return 0;
19257}
19258_ACEOF
19259rm -f conftest.$ac_objext conftest$ac_exeext
19260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261 (eval $ac_link) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -s conftest$ac_exeext'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19268 ac_status=$?
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; }; then
19271 ac_cv_search_mallinfo="none required"
19272else
19273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019274sed 's/^/| /' conftest.$ac_ext >&5
19275
John Criswell7a73b802003-06-30 21:59:07 +000019276fi
19277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19278if test "$ac_cv_search_mallinfo" = no; then
19279 for ac_lib in malloc; do
19280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19281 cat >conftest.$ac_ext <<_ACEOF
19282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019283/* confdefs.h. */
19284_ACEOF
19285cat confdefs.h >>conftest.$ac_ext
19286cat >>conftest.$ac_ext <<_ACEOF
19287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019288
19289/* Override any gcc2 internal prototype to avoid an error. */
19290#ifdef __cplusplus
19291extern "C"
19292#endif
19293/* We use char because int might match the return type of a gcc2
19294 builtin and then its argument prototype would still apply. */
19295char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019296int
19297main ()
19298{
19299mallinfo ();
19300 ;
19301 return 0;
19302}
19303_ACEOF
19304rm -f conftest.$ac_objext conftest$ac_exeext
19305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -s conftest$ac_exeext'
19311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312 (eval $ac_try) 2>&5
19313 ac_status=$?
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); }; }; then
19316 ac_cv_search_mallinfo="-l$ac_lib"
19317break
19318else
19319 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019320sed 's/^/| /' conftest.$ac_ext >&5
19321
John Criswell7a73b802003-06-30 21:59:07 +000019322fi
19323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19324 done
19325fi
19326LIBS=$ac_func_search_save_LIBS
19327fi
19328echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19329echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19330if test "$ac_cv_search_mallinfo" != no; then
19331 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19332 cat >>confdefs.h <<\_ACEOF
19333#define HAVE_MALLINFO 1
19334_ACEOF
19335
19336fi
19337
19338
19339
19340echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19341echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19342if test "${ac_cv_header_stdc+set}" = set; then
19343 echo $ECHO_N "(cached) $ECHO_C" >&6
19344else
19345 cat >conftest.$ac_ext <<_ACEOF
19346#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
19351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019352#include <stdlib.h>
19353#include <stdarg.h>
19354#include <string.h>
19355#include <float.h>
19356
John Criswell0c38eaf2003-09-10 15:17:25 +000019357int
19358main ()
19359{
19360
19361 ;
19362 return 0;
19363}
John Criswell7a73b802003-06-30 21:59:07 +000019364_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019365rm -f conftest.$ac_objext
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019368 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019370 (exit $ac_status); } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019377 ac_cv_header_stdc=yes
19378else
19379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019383fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019384rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019385
19386if test $ac_cv_header_stdc = yes; then
19387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19388 cat >conftest.$ac_ext <<_ACEOF
19389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019390/* confdefs.h. */
19391_ACEOF
19392cat confdefs.h >>conftest.$ac_ext
19393cat >>conftest.$ac_ext <<_ACEOF
19394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019395#include <string.h>
19396
19397_ACEOF
19398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019399 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019400 :
19401else
19402 ac_cv_header_stdc=no
19403fi
19404rm -f conftest*
19405
19406fi
19407
19408if test $ac_cv_header_stdc = yes; then
19409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19410 cat >conftest.$ac_ext <<_ACEOF
19411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019412/* confdefs.h. */
19413_ACEOF
19414cat confdefs.h >>conftest.$ac_ext
19415cat >>conftest.$ac_ext <<_ACEOF
19416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019417#include <stdlib.h>
19418
19419_ACEOF
19420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019421 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019422 :
19423else
19424 ac_cv_header_stdc=no
19425fi
19426rm -f conftest*
19427
19428fi
19429
19430if test $ac_cv_header_stdc = yes; then
19431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19432 if test "$cross_compiling" = yes; then
19433 :
19434else
19435 cat >conftest.$ac_ext <<_ACEOF
19436#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019437/* confdefs.h. */
19438_ACEOF
19439cat confdefs.h >>conftest.$ac_ext
19440cat >>conftest.$ac_ext <<_ACEOF
19441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019442#include <ctype.h>
19443#if ((' ' & 0x0FF) == 0x020)
19444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19446#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019447# define ISLOWER(c) \
19448 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019449 || ('j' <= (c) && (c) <= 'r') \
19450 || ('s' <= (c) && (c) <= 'z'))
19451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19452#endif
19453
19454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19455int
19456main ()
19457{
19458 int i;
19459 for (i = 0; i < 256; i++)
19460 if (XOR (islower (i), ISLOWER (i))
19461 || toupper (i) != TOUPPER (i))
19462 exit(2);
19463 exit (0);
19464}
19465_ACEOF
19466rm -f conftest$ac_exeext
19467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 :
19478else
19479 echo "$as_me: program exited with status $ac_status" >&5
19480echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019481sed 's/^/| /' conftest.$ac_ext >&5
19482
John Criswell7a73b802003-06-30 21:59:07 +000019483( exit $ac_status )
19484ac_cv_header_stdc=no
19485fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019486rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019487fi
19488fi
19489fi
19490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19491echo "${ECHO_T}$ac_cv_header_stdc" >&6
19492if test $ac_cv_header_stdc = yes; then
19493
19494cat >>confdefs.h <<\_ACEOF
19495#define STDC_HEADERS 1
19496_ACEOF
19497
19498fi
19499
19500echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19501echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19502if test "${ac_cv_header_sys_wait_h+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504else
19505 cat >conftest.$ac_ext <<_ACEOF
19506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019507/* confdefs.h. */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
19511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019512#include <sys/types.h>
19513#include <sys/wait.h>
19514#ifndef WEXITSTATUS
19515# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19516#endif
19517#ifndef WIFEXITED
19518# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19519#endif
19520
John Criswell7a73b802003-06-30 21:59:07 +000019521int
19522main ()
19523{
19524 int s;
19525 wait (&s);
19526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19527 ;
19528 return 0;
19529}
19530_ACEOF
19531rm -f conftest.$ac_objext
19532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19533 (eval $ac_compile) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -s conftest.$ac_objext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_header_sys_wait_h=yes
19544else
19545 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019546sed 's/^/| /' conftest.$ac_ext >&5
19547
John Criswell7a73b802003-06-30 21:59:07 +000019548ac_cv_header_sys_wait_h=no
19549fi
19550rm -f conftest.$ac_objext conftest.$ac_ext
19551fi
19552echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19553echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19554if test $ac_cv_header_sys_wait_h = yes; then
19555
19556cat >>confdefs.h <<\_ACEOF
19557#define HAVE_SYS_WAIT_H 1
19558_ACEOF
19559
19560fi
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19572do
19573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19574if eval "test \"\${$as_ac_Header+set}\" = set"; then
19575 echo "$as_me:$LINENO: checking for $ac_header" >&5
19576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19577if eval "test \"\${$as_ac_Header+set}\" = set"; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579fi
19580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19582else
19583 # Is the header compilable?
19584echo "$as_me:$LINENO: checking $ac_header usability" >&5
19585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19586cat >conftest.$ac_ext <<_ACEOF
19587#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019593$ac_includes_default
19594#include <$ac_header>
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_header_compiler=yes
19609else
19610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019611sed 's/^/| /' conftest.$ac_ext >&5
19612
John Criswell7a73b802003-06-30 21:59:07 +000019613ac_header_compiler=no
19614fi
19615rm -f conftest.$ac_objext conftest.$ac_ext
19616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617echo "${ECHO_T}$ac_header_compiler" >&6
19618
19619# Is the header present?
19620echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622cat >conftest.$ac_ext <<_ACEOF
19623#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019629#include <$ac_header>
19630_ACEOF
19631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19633 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019634 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } >/dev/null; then
19639 if test -s conftest.err; then
19640 ac_cpp_err=$ac_c_preproc_warn_flag
19641 else
19642 ac_cpp_err=
19643 fi
19644else
19645 ac_cpp_err=yes
19646fi
19647if test -z "$ac_cpp_err"; then
19648 ac_header_preproc=yes
19649else
19650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019651sed 's/^/| /' conftest.$ac_ext >&5
19652
John Criswell7a73b802003-06-30 21:59:07 +000019653 ac_header_preproc=no
19654fi
19655rm -f conftest.err conftest.$ac_ext
19656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657echo "${ECHO_T}$ac_header_preproc" >&6
19658
19659# So? What about this header?
19660case $ac_header_compiler:$ac_header_preproc in
19661 yes:no )
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19666 (
19667 cat <<\_ASBOX
19668## ------------------------------------ ##
19669## Report this to bug-autoconf@gnu.org. ##
19670## ------------------------------------ ##
19671_ASBOX
19672 ) |
19673 sed "s/^/$as_me: WARNING: /" >&2
19674 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019675 no:yes )
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 +000019691esac
19692echo "$as_me:$LINENO: checking for $ac_header" >&5
19693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696else
19697 eval "$as_ac_Header=$ac_header_preproc"
19698fi
19699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19701
19702fi
19703if test `eval echo '${'$as_ac_Header'}'` = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706_ACEOF
19707
19708fi
19709
19710done
19711
19712
19713
19714
19715
19716
19717for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19718do
19719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19720if eval "test \"\${$as_ac_Header+set}\" = set"; then
19721 echo "$as_me:$LINENO: checking for $ac_header" >&5
19722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19723if eval "test \"\${$as_ac_Header+set}\" = set"; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19725fi
19726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19728else
19729 # Is the header compilable?
19730echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19732cat >conftest.$ac_ext <<_ACEOF
19733#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019734/* confdefs.h. */
19735_ACEOF
19736cat confdefs.h >>conftest.$ac_ext
19737cat >>conftest.$ac_ext <<_ACEOF
19738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019739$ac_includes_default
19740#include <$ac_header>
19741_ACEOF
19742rm -f conftest.$ac_objext
19743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744 (eval $ac_compile) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_header_compiler=yes
19755else
19756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019757sed 's/^/| /' conftest.$ac_ext >&5
19758
John Criswell7a73b802003-06-30 21:59:07 +000019759ac_header_compiler=no
19760fi
19761rm -f conftest.$ac_objext conftest.$ac_ext
19762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19763echo "${ECHO_T}$ac_header_compiler" >&6
19764
19765# Is the header present?
19766echo "$as_me:$LINENO: checking $ac_header presence" >&5
19767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19768cat >conftest.$ac_ext <<_ACEOF
19769#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019775#include <$ac_header>
19776_ACEOF
19777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19779 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019780 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019781 rm -f conftest.er1
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } >/dev/null; then
19785 if test -s conftest.err; then
19786 ac_cpp_err=$ac_c_preproc_warn_flag
19787 else
19788 ac_cpp_err=
19789 fi
19790else
19791 ac_cpp_err=yes
19792fi
19793if test -z "$ac_cpp_err"; then
19794 ac_header_preproc=yes
19795else
19796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019797sed 's/^/| /' conftest.$ac_ext >&5
19798
John Criswell7a73b802003-06-30 21:59:07 +000019799 ac_header_preproc=no
19800fi
19801rm -f conftest.err conftest.$ac_ext
19802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19803echo "${ECHO_T}$ac_header_preproc" >&6
19804
19805# So? What about this header?
19806case $ac_header_compiler:$ac_header_preproc in
19807 yes:no )
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19812 (
19813 cat <<\_ASBOX
19814## ------------------------------------ ##
19815## Report this to bug-autoconf@gnu.org. ##
19816## ------------------------------------ ##
19817_ASBOX
19818 ) |
19819 sed "s/^/$as_me: WARNING: /" >&2
19820 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019821 no:yes )
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 +000019837esac
19838echo "$as_me:$LINENO: checking for $ac_header" >&5
19839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842else
19843 eval "$as_ac_Header=$ac_header_preproc"
19844fi
19845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847
19848fi
19849if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850 cat >>confdefs.h <<_ACEOF
19851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852_ACEOF
19853
19854fi
19855
19856done
19857
19858
19859
19860
19861for ac_header in dlfcn.h link.h
19862do
19863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19864if eval "test \"\${$as_ac_Header+set}\" = set"; then
19865 echo "$as_me:$LINENO: checking for $ac_header" >&5
19866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19867if eval "test \"\${$as_ac_Header+set}\" = set"; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869fi
19870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19872else
19873 # Is the header compilable?
19874echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19876cat >conftest.$ac_ext <<_ACEOF
19877#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019878/* confdefs.h. */
19879_ACEOF
19880cat confdefs.h >>conftest.$ac_ext
19881cat >>conftest.$ac_ext <<_ACEOF
19882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019883$ac_includes_default
19884#include <$ac_header>
19885_ACEOF
19886rm -f conftest.$ac_objext
19887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_header_compiler=yes
19899else
19900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019901sed 's/^/| /' conftest.$ac_ext >&5
19902
John Criswell7a73b802003-06-30 21:59:07 +000019903ac_header_compiler=no
19904fi
19905rm -f conftest.$ac_objext conftest.$ac_ext
19906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19907echo "${ECHO_T}$ac_header_compiler" >&6
19908
19909# Is the header present?
19910echo "$as_me:$LINENO: checking $ac_header presence" >&5
19911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19912cat >conftest.$ac_ext <<_ACEOF
19913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019919#include <$ac_header>
19920_ACEOF
19921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19923 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019924 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019925 rm -f conftest.er1
19926 cat conftest.err >&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } >/dev/null; then
19929 if test -s conftest.err; then
19930 ac_cpp_err=$ac_c_preproc_warn_flag
19931 else
19932 ac_cpp_err=
19933 fi
19934else
19935 ac_cpp_err=yes
19936fi
19937if test -z "$ac_cpp_err"; then
19938 ac_header_preproc=yes
19939else
19940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019941sed 's/^/| /' conftest.$ac_ext >&5
19942
John Criswell7a73b802003-06-30 21:59:07 +000019943 ac_header_preproc=no
19944fi
19945rm -f conftest.err conftest.$ac_ext
19946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947echo "${ECHO_T}$ac_header_preproc" >&6
19948
19949# So? What about this header?
19950case $ac_header_compiler:$ac_header_preproc in
19951 yes:no )
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19956 (
19957 cat <<\_ASBOX
19958## ------------------------------------ ##
19959## Report this to bug-autoconf@gnu.org. ##
19960## ------------------------------------ ##
19961_ASBOX
19962 ) |
19963 sed "s/^/$as_me: WARNING: /" >&2
19964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019965 no:yes )
19966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 +000019981esac
19982echo "$as_me:$LINENO: checking for $ac_header" >&5
19983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19984if eval "test \"\${$as_ac_Header+set}\" = set"; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19986else
19987 eval "$as_ac_Header=$ac_header_preproc"
19988fi
19989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19991
19992fi
19993if test `eval echo '${'$as_ac_Header'}'` = yes; then
19994 cat >>confdefs.h <<_ACEOF
19995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19996_ACEOF
19997
19998fi
19999
20000done
20001
20002
20003
John Criswell7a73b802003-06-30 21:59:07 +000020004echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20005echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20006if test "${ac_cv_c_const+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20008else
20009 cat >conftest.$ac_ext <<_ACEOF
20010#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020016
John Criswell7a73b802003-06-30 21:59:07 +000020017int
20018main ()
20019{
20020/* FIXME: Include the comments suggested by Paul. */
20021#ifndef __cplusplus
20022 /* Ultrix mips cc rejects this. */
20023 typedef int charset[2];
20024 const charset x;
20025 /* SunOS 4.1.1 cc rejects this. */
20026 char const *const *ccp;
20027 char **p;
20028 /* NEC SVR4.0.2 mips cc rejects this. */
20029 struct point {int x, y;};
20030 static struct point const zero = {0,0};
20031 /* AIX XL C 1.02.0.0 rejects this.
20032 It does not let you subtract one const X* pointer from another in
20033 an arm of an if-expression whose if-part is not a constant
20034 expression */
20035 const char *g = "string";
20036 ccp = &g + (g ? g-g : 0);
20037 /* HPUX 7.0 cc rejects these. */
20038 ++ccp;
20039 p = (char**) ccp;
20040 ccp = (char const *const *) p;
20041 { /* SCO 3.2v4 cc rejects this. */
20042 char *t;
20043 char const *s = 0 ? (char *) 0 : (char const *) 0;
20044
20045 *t++ = 0;
20046 }
20047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20048 int x[] = {25, 17};
20049 const int *foo = &x[0];
20050 ++foo;
20051 }
20052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20053 typedef const int *iptr;
20054 iptr p = 0;
20055 ++p;
20056 }
20057 { /* AIX XL C 1.02.0.0 rejects this saying
20058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20059 struct s { int j; const int *ap[3]; };
20060 struct s *b; b->j = 5;
20061 }
20062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20063 const int foo = 10;
20064 }
20065#endif
20066
20067 ;
20068 return 0;
20069}
20070_ACEOF
20071rm -f conftest.$ac_objext
20072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_cv_c_const=yes
20084else
20085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020086sed 's/^/| /' conftest.$ac_ext >&5
20087
John Criswell7a73b802003-06-30 21:59:07 +000020088ac_cv_c_const=no
20089fi
20090rm -f conftest.$ac_objext conftest.$ac_ext
20091fi
20092echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20093echo "${ECHO_T}$ac_cv_c_const" >&6
20094if test $ac_cv_c_const = no; then
20095
20096cat >>confdefs.h <<\_ACEOF
20097#define const
20098_ACEOF
20099
20100fi
20101
20102echo "$as_me:$LINENO: checking for inline" >&5
20103echo $ECHO_N "checking for inline... $ECHO_C" >&6
20104if test "${ac_cv_c_inline+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107 ac_cv_c_inline=no
20108for ac_kw in inline __inline__ __inline; do
20109 cat >conftest.$ac_ext <<_ACEOF
20110#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020116#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020117typedef int foo_t;
20118static $ac_kw foo_t static_foo () {return 0; }
20119$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020120#endif
20121
20122_ACEOF
20123rm -f conftest.$ac_objext
20124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20125 (eval $ac_compile) 2>&5
20126 ac_status=$?
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
20129 { ac_try='test -s conftest.$ac_objext'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; }; then
20135 ac_cv_c_inline=$ac_kw; break
20136else
20137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020138sed 's/^/| /' conftest.$ac_ext >&5
20139
John Criswell7a73b802003-06-30 21:59:07 +000020140fi
20141rm -f conftest.$ac_objext conftest.$ac_ext
20142done
20143
20144fi
20145echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20146echo "${ECHO_T}$ac_cv_c_inline" >&6
20147case $ac_cv_c_inline in
20148 inline | yes) ;;
20149 no)
20150cat >>confdefs.h <<\_ACEOF
20151#define inline
20152_ACEOF
20153 ;;
20154 *) cat >>confdefs.h <<_ACEOF
20155#define inline $ac_cv_c_inline
20156_ACEOF
20157 ;;
20158esac
20159
20160
20161echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20162echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20163if test "${ac_cv_c_bigendian+set}" = set; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20165else
20166 # See if sys/param.h defines the BYTE_ORDER macro.
20167cat >conftest.$ac_ext <<_ACEOF
20168#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020174#include <sys/types.h>
20175#include <sys/param.h>
20176
John Criswell7a73b802003-06-30 21:59:07 +000020177int
20178main ()
20179{
20180#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20181 bogus endian macros
20182#endif
20183
20184 ;
20185 return 0;
20186}
20187_ACEOF
20188rm -f conftest.$ac_objext
20189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190 (eval $ac_compile) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
20194 { ac_try='test -s conftest.$ac_objext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20197 ac_status=$?
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 # It does; now see whether it defined to BIG_ENDIAN or not.
20201cat >conftest.$ac_ext <<_ACEOF
20202#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020203/* confdefs.h. */
20204_ACEOF
20205cat confdefs.h >>conftest.$ac_ext
20206cat >>conftest.$ac_ext <<_ACEOF
20207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020208#include <sys/types.h>
20209#include <sys/param.h>
20210
John Criswell7a73b802003-06-30 21:59:07 +000020211int
20212main ()
20213{
20214#if BYTE_ORDER != BIG_ENDIAN
20215 not big endian
20216#endif
20217
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext
20223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } &&
20228 { ac_try='test -s conftest.$ac_objext'
20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230 (eval $ac_try) 2>&5
20231 ac_status=$?
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); }; }; then
20234 ac_cv_c_bigendian=yes
20235else
20236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020237sed 's/^/| /' conftest.$ac_ext >&5
20238
John Criswell7a73b802003-06-30 21:59:07 +000020239ac_cv_c_bigendian=no
20240fi
20241rm -f conftest.$ac_objext conftest.$ac_ext
20242else
20243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020244sed 's/^/| /' conftest.$ac_ext >&5
20245
John Criswell7a73b802003-06-30 21:59:07 +000020246# It does not; compile a test program.
20247if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020248 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020249 ac_cv_c_bigendian=unknown
20250 cat >conftest.$ac_ext <<_ACEOF
20251#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020252/* confdefs.h. */
20253_ACEOF
20254cat confdefs.h >>conftest.$ac_ext
20255cat >>conftest.$ac_ext <<_ACEOF
20256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020257short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20258short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20259void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20260short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20261short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20262void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020263int
20264main ()
20265{
20266 _ascii (); _ebcdic ();
20267 ;
20268 return 0;
20269}
20270_ACEOF
20271rm -f conftest.$ac_objext
20272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
20277 { ac_try='test -s conftest.$ac_objext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020284 ac_cv_c_bigendian=yes
20285fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020287 if test "$ac_cv_c_bigendian" = unknown; then
20288 ac_cv_c_bigendian=no
20289 else
20290 # finding both strings is unlikely to happen, but who knows?
20291 ac_cv_c_bigendian=unknown
20292 fi
20293fi
20294else
20295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020296sed 's/^/| /' conftest.$ac_ext >&5
20297
John Criswell7a73b802003-06-30 21:59:07 +000020298fi
20299rm -f conftest.$ac_objext conftest.$ac_ext
20300else
20301 cat >conftest.$ac_ext <<_ACEOF
20302#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020308int
20309main ()
20310{
20311 /* Are we little or big endian? From Harbison&Steele. */
20312 union
20313 {
20314 long l;
20315 char c[sizeof (long)];
20316 } u;
20317 u.l = 1;
20318 exit (u.c[sizeof (long) - 1] == 1);
20319}
20320_ACEOF
20321rm -f conftest$ac_exeext
20322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20323 (eval $ac_link) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_cv_c_bigendian=no
20333else
20334 echo "$as_me: program exited with status $ac_status" >&5
20335echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020336sed 's/^/| /' conftest.$ac_ext >&5
20337
John Criswell7a73b802003-06-30 21:59:07 +000020338( exit $ac_status )
20339ac_cv_c_bigendian=yes
20340fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020341rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020342fi
20343fi
20344rm -f conftest.$ac_objext conftest.$ac_ext
20345fi
20346echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20347echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20348case $ac_cv_c_bigendian in
20349 yes)
20350 cat >>confdefs.h <<\_ACEOF
20351#define ENDIAN_BIG 1
20352_ACEOF
20353 ;;
20354 no)
20355 cat >>confdefs.h <<\_ACEOF
20356#define ENDIAN_LITTLE 1
20357_ACEOF
20358 ;;
20359 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020360 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020361presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020362echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020363presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20364 { (exit 1); exit 1; }; } ;;
20365esac
20366
20367
20368echo "$as_me:$LINENO: checking for pid_t" >&5
20369echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20370if test "${ac_cv_type_pid_t+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372else
20373 cat >conftest.$ac_ext <<_ACEOF
20374#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020380$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020381int
20382main ()
20383{
20384if ((pid_t *) 0)
20385 return 0;
20386if (sizeof (pid_t))
20387 return 0;
20388 ;
20389 return 0;
20390}
20391_ACEOF
20392rm -f conftest.$ac_objext
20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20394 (eval $ac_compile) 2>&5
20395 ac_status=$?
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } &&
20398 { ac_try='test -s conftest.$ac_objext'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_type_pid_t=yes
20405else
20406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020407sed 's/^/| /' conftest.$ac_ext >&5
20408
John Criswell7a73b802003-06-30 21:59:07 +000020409ac_cv_type_pid_t=no
20410fi
20411rm -f conftest.$ac_objext conftest.$ac_ext
20412fi
20413echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20414echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20415if test $ac_cv_type_pid_t = yes; then
20416 :
20417else
20418
20419cat >>confdefs.h <<_ACEOF
20420#define pid_t int
20421_ACEOF
20422
20423fi
20424
20425echo "$as_me:$LINENO: checking for size_t" >&5
20426echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20427if test "${ac_cv_type_size_t+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 cat >conftest.$ac_ext <<_ACEOF
20431#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020432/* confdefs.h. */
20433_ACEOF
20434cat confdefs.h >>conftest.$ac_ext
20435cat >>conftest.$ac_ext <<_ACEOF
20436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020437$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020438int
20439main ()
20440{
20441if ((size_t *) 0)
20442 return 0;
20443if (sizeof (size_t))
20444 return 0;
20445 ;
20446 return 0;
20447}
20448_ACEOF
20449rm -f conftest.$ac_objext
20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451 (eval $ac_compile) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } &&
20455 { ac_try='test -s conftest.$ac_objext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_cv_type_size_t=yes
20462else
20463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020464sed 's/^/| /' conftest.$ac_ext >&5
20465
John Criswell7a73b802003-06-30 21:59:07 +000020466ac_cv_type_size_t=no
20467fi
20468rm -f conftest.$ac_objext conftest.$ac_ext
20469fi
20470echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20471echo "${ECHO_T}$ac_cv_type_size_t" >&6
20472if test $ac_cv_type_size_t = yes; then
20473 :
20474else
20475
20476cat >>confdefs.h <<_ACEOF
20477#define size_t unsigned
20478_ACEOF
20479
20480fi
20481
20482echo "$as_me:$LINENO: checking for int64_t" >&5
20483echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20484if test "${ac_cv_type_int64_t+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20486else
20487 cat >conftest.$ac_ext <<_ACEOF
20488#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020489/* confdefs.h. */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020494$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020495int
20496main ()
20497{
20498if ((int64_t *) 0)
20499 return 0;
20500if (sizeof (int64_t))
20501 return 0;
20502 ;
20503 return 0;
20504}
20505_ACEOF
20506rm -f conftest.$ac_objext
20507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20508 (eval $ac_compile) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -s conftest.$ac_objext'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_cv_type_int64_t=yes
20519else
20520 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020521sed 's/^/| /' conftest.$ac_ext >&5
20522
John Criswell7a73b802003-06-30 21:59:07 +000020523ac_cv_type_int64_t=no
20524fi
20525rm -f conftest.$ac_objext conftest.$ac_ext
20526fi
20527echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20528echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20529if test $ac_cv_type_int64_t = yes; then
20530
20531cat >>confdefs.h <<_ACEOF
20532#define HAVE_INT64_T 1
20533_ACEOF
20534
20535
20536else
20537 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20538echo "$as_me: error: Type int64_t required but not found" >&2;}
20539 { (exit 1); exit 1; }; }
20540fi
20541
20542echo "$as_me:$LINENO: checking for uint64_t" >&5
20543echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20544if test "${ac_cv_type_uint64_t+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546else
20547 cat >conftest.$ac_ext <<_ACEOF
20548#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020554$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020555int
20556main ()
20557{
20558if ((uint64_t *) 0)
20559 return 0;
20560if (sizeof (uint64_t))
20561 return 0;
20562 ;
20563 return 0;
20564}
20565_ACEOF
20566rm -f conftest.$ac_objext
20567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -s conftest.$ac_objext'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_cv_type_uint64_t=yes
20579else
20580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020581sed 's/^/| /' conftest.$ac_ext >&5
20582
John Criswell7a73b802003-06-30 21:59:07 +000020583ac_cv_type_uint64_t=no
20584fi
20585rm -f conftest.$ac_objext conftest.$ac_ext
20586fi
20587echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20588echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20589if test $ac_cv_type_uint64_t = yes; then
20590
20591cat >>confdefs.h <<_ACEOF
20592#define HAVE_UINT64_T 1
20593_ACEOF
20594
20595
20596else
20597 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20598echo "$as_me: error: Type uint64_t required but not found" >&2;}
20599 { (exit 1); exit 1; }; }
20600fi
20601
20602echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20603echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20604if test "${ac_cv_header_time+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606else
20607 cat >conftest.$ac_ext <<_ACEOF
20608#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020614#include <sys/types.h>
20615#include <sys/time.h>
20616#include <time.h>
20617
John Criswell7a73b802003-06-30 21:59:07 +000020618int
20619main ()
20620{
20621if ((struct tm *) 0)
20622return 0;
20623 ;
20624 return 0;
20625}
20626_ACEOF
20627rm -f conftest.$ac_objext
20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20629 (eval $ac_compile) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_cv_header_time=yes
20640else
20641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020642sed 's/^/| /' conftest.$ac_ext >&5
20643
John Criswell7a73b802003-06-30 21:59:07 +000020644ac_cv_header_time=no
20645fi
20646rm -f conftest.$ac_objext conftest.$ac_ext
20647fi
20648echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20649echo "${ECHO_T}$ac_cv_header_time" >&6
20650if test $ac_cv_header_time = yes; then
20651
20652cat >>confdefs.h <<\_ACEOF
20653#define TIME_WITH_SYS_TIME 1
20654_ACEOF
20655
20656fi
20657
20658echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20659echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20660if test "${ac_cv_struct_tm+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 cat >conftest.$ac_ext <<_ACEOF
20664#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020665/* confdefs.h. */
20666_ACEOF
20667cat confdefs.h >>conftest.$ac_ext
20668cat >>conftest.$ac_ext <<_ACEOF
20669/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020670#include <sys/types.h>
20671#include <time.h>
20672
John Criswell7a73b802003-06-30 21:59:07 +000020673int
20674main ()
20675{
20676struct tm *tp; tp->tm_sec;
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest.$ac_objext
20682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20683 (eval $ac_compile) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; }; then
20693 ac_cv_struct_tm=time.h
20694else
20695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020696sed 's/^/| /' conftest.$ac_ext >&5
20697
John Criswell7a73b802003-06-30 21:59:07 +000020698ac_cv_struct_tm=sys/time.h
20699fi
20700rm -f conftest.$ac_objext conftest.$ac_ext
20701fi
20702echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20703echo "${ECHO_T}$ac_cv_struct_tm" >&6
20704if test $ac_cv_struct_tm = sys/time.h; then
20705
20706cat >>confdefs.h <<\_ACEOF
20707#define TM_IN_SYS_TIME 1
20708_ACEOF
20709
20710fi
20711
20712
John Criswell7a73b802003-06-30 21:59:07 +000020713echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20714echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20715if test "${ac_cv_cxx_namespaces+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717else
20718
20719
20720 ac_ext=cc
20721ac_cpp='$CXXCPP $CPPFLAGS'
20722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20725
20726 cat >conftest.$ac_ext <<_ACEOF
20727#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020728/* confdefs.h. */
20729_ACEOF
20730cat confdefs.h >>conftest.$ac_ext
20731cat >>conftest.$ac_ext <<_ACEOF
20732/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020733namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020734int
20735main ()
20736{
20737using namespace Outer::Inner; return i;
20738 ;
20739 return 0;
20740}
20741_ACEOF
20742rm -f conftest.$ac_objext
20743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744 (eval $ac_compile) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_cxx_namespaces=yes
20755else
20756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020757sed 's/^/| /' conftest.$ac_ext >&5
20758
John Criswell7a73b802003-06-30 21:59:07 +000020759ac_cv_cxx_namespaces=no
20760fi
20761rm -f conftest.$ac_objext conftest.$ac_ext
20762 ac_ext=c
20763ac_cpp='$CPP $CPPFLAGS'
20764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20766ac_compiler_gnu=$ac_cv_c_compiler_gnu
20767
20768
20769fi
20770echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20771echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20772if test "$ac_cv_cxx_namespaces" = yes; then
20773
20774cat >>confdefs.h <<\_ACEOF
20775#define HAVE_NAMESPACES
20776_ACEOF
20777
20778fi
20779
20780echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20781echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20782if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20784else
20785
20786
20787
20788 ac_ext=cc
20789ac_cpp='$CXXCPP $CPPFLAGS'
20790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20793
20794 cat >conftest.$ac_ext <<_ACEOF
20795#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020796/* confdefs.h. */
20797_ACEOF
20798cat confdefs.h >>conftest.$ac_ext
20799cat >>conftest.$ac_ext <<_ACEOF
20800/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020801#include <ext/hash_map>
20802#ifdef HAVE_NAMESPACES
20803using namespace std;
20804#endif
John Criswell7a73b802003-06-30 21:59:07 +000020805int
20806main ()
20807{
20808hash_map<int, int> t; return 0;
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20815 (eval $ac_compile) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -s conftest.$ac_objext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 ac_cv_cxx_have_ext_hash_map=std
20826else
20827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020828sed 's/^/| /' conftest.$ac_ext >&5
20829
John Criswell7a73b802003-06-30 21:59:07 +000020830ac_cv_cxx_have_ext_hash_map=no
20831fi
20832rm -f conftest.$ac_objext conftest.$ac_ext
20833 cat >conftest.$ac_ext <<_ACEOF
20834#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020835/* confdefs.h. */
20836_ACEOF
20837cat confdefs.h >>conftest.$ac_ext
20838cat >>conftest.$ac_ext <<_ACEOF
20839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020840#include <ext/hash_map>
20841#ifdef HAVE_NAMESPACES
20842using namespace __gnu_cxx;
20843#endif
John Criswell7a73b802003-06-30 21:59:07 +000020844int
20845main ()
20846{
20847hash_map<int, int> t; return 0;
20848 ;
20849 return 0;
20850}
20851_ACEOF
20852rm -f conftest.$ac_objext
20853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20854 (eval $ac_compile) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } &&
20858 { ac_try='test -s conftest.$ac_objext'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; }; then
20864 ac_cv_cxx_have_ext_hash_map=gnu
20865else
20866 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020867sed 's/^/| /' conftest.$ac_ext >&5
20868
John Criswell7a73b802003-06-30 21:59:07 +000020869ac_cv_cxx_have_ext_hash_map=no
20870fi
20871rm -f conftest.$ac_objext conftest.$ac_ext
20872 ac_ext=c
20873ac_cpp='$CPP $CPPFLAGS'
20874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20876ac_compiler_gnu=$ac_cv_c_compiler_gnu
20877
20878
20879fi
20880echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20881echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20882if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20883
20884cat >>confdefs.h <<\_ACEOF
20885#define HAVE_STD_EXT_HASH_MAP
20886_ACEOF
20887
20888fi
20889if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20890
20891cat >>confdefs.h <<\_ACEOF
20892#define HAVE_GNU_EXT_HASH_MAP
20893_ACEOF
20894
20895fi
20896
20897echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20898echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20899if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20901else
20902
20903
20904
20905 ac_ext=cc
20906ac_cpp='$CXXCPP $CPPFLAGS'
20907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20910
20911 cat >conftest.$ac_ext <<_ACEOF
20912#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020913/* confdefs.h. */
20914_ACEOF
20915cat confdefs.h >>conftest.$ac_ext
20916cat >>conftest.$ac_ext <<_ACEOF
20917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020918#include <ext/hash_set>
20919#ifdef HAVE_NAMESPACES
20920using namespace std;
20921#endif
John Criswell7a73b802003-06-30 21:59:07 +000020922int
20923main ()
20924{
20925hash_set<int> t; return 0;
20926 ;
20927 return 0;
20928}
20929_ACEOF
20930rm -f conftest.$ac_objext
20931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932 (eval $ac_compile) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } &&
20936 { ac_try='test -s conftest.$ac_objext'
20937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938 (eval $ac_try) 2>&5
20939 ac_status=$?
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); }; }; then
20942 ac_cv_cxx_have_ext_hash_set=std
20943else
20944 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020945sed 's/^/| /' conftest.$ac_ext >&5
20946
John Criswell7a73b802003-06-30 21:59:07 +000020947ac_cv_cxx_have_ext_hash_set=no
20948fi
20949rm -f conftest.$ac_objext conftest.$ac_ext
20950 cat >conftest.$ac_ext <<_ACEOF
20951#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020952/* confdefs.h. */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020957#include <ext/hash_set>
20958#ifdef HAVE_NAMESPACES
20959using namespace __gnu_cxx;
20960#endif
John Criswell7a73b802003-06-30 21:59:07 +000020961int
20962main ()
20963{
20964hash_set<int> t; return 0;
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest.$ac_objext
20970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971 (eval $ac_compile) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
20975 { ac_try='test -s conftest.$ac_objext'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; }; then
20981 ac_cv_cxx_have_ext_hash_set=gnu
20982else
20983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020984sed 's/^/| /' conftest.$ac_ext >&5
20985
John Criswell7a73b802003-06-30 21:59:07 +000020986ac_cv_cxx_have_ext_hash_set=no
20987fi
20988rm -f conftest.$ac_objext conftest.$ac_ext
20989 ac_ext=c
20990ac_cpp='$CPP $CPPFLAGS'
20991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993ac_compiler_gnu=$ac_cv_c_compiler_gnu
20994
20995
20996fi
20997echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20998echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20999if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21000
21001cat >>confdefs.h <<\_ACEOF
21002#define HAVE_STD_EXT_HASH_SET
21003_ACEOF
21004
21005fi
21006if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21007
21008cat >>confdefs.h <<\_ACEOF
21009#define HAVE_GNU_EXT_HASH_SET
21010_ACEOF
21011
21012fi
21013
21014echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21015echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21016if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21018else
21019
21020
21021
21022 ac_ext=cc
21023ac_cpp='$CXXCPP $CPPFLAGS'
21024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21027
21028 cat >conftest.$ac_ext <<_ACEOF
21029#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021030/* confdefs.h. */
21031_ACEOF
21032cat confdefs.h >>conftest.$ac_ext
21033cat >>conftest.$ac_ext <<_ACEOF
21034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021035#include <ext/slist>
21036#ifdef HAVE_NAMESPACES
21037using namespace std;
21038#endif
John Criswell7a73b802003-06-30 21:59:07 +000021039int
21040main ()
21041{
21042slist<int> s; return 0;
21043 ;
21044 return 0;
21045}
21046_ACEOF
21047rm -f conftest.$ac_objext
21048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21049 (eval $ac_compile) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -s conftest.$ac_objext'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; }; then
21059 ac_cv_cxx_have_ext_slist=std
21060else
21061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021062sed 's/^/| /' conftest.$ac_ext >&5
21063
John Criswell7a73b802003-06-30 21:59:07 +000021064ac_cv_cxx_have_ext_slist=no
21065fi
21066rm -f conftest.$ac_objext conftest.$ac_ext
21067 cat >conftest.$ac_ext <<_ACEOF
21068#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021069/* confdefs.h. */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021074#include <ext/slist>
21075#ifdef HAVE_NAMESPACES
21076using namespace __gnu_cxx;
21077#endif
John Criswell7a73b802003-06-30 21:59:07 +000021078int
21079main ()
21080{
21081slist<int> s; return 0;
21082 ;
21083 return 0;
21084}
21085_ACEOF
21086rm -f conftest.$ac_objext
21087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088 (eval $ac_compile) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_cxx_have_ext_slist=gnu
21099else
21100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021101sed 's/^/| /' conftest.$ac_ext >&5
21102
John Criswell7a73b802003-06-30 21:59:07 +000021103ac_cv_cxx_have_ext_slist=no
21104fi
21105rm -f conftest.$ac_objext conftest.$ac_ext
21106
21107 ac_ext=c
21108ac_cpp='$CPP $CPPFLAGS'
21109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111ac_compiler_gnu=$ac_cv_c_compiler_gnu
21112
21113
21114fi
21115echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21116echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21117if test "$ac_cv_cxx_have_ext_slist" = std; then
21118
21119cat >>confdefs.h <<\_ACEOF
21120#define HAVE_EXT_SLIST std
21121_ACEOF
21122
21123fi
21124if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21125
21126cat >>confdefs.h <<\_ACEOF
21127#define HAVE_EXT_SLIST gnu
21128_ACEOF
21129
21130fi
21131
21132echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21133echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21134if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136else
21137
21138
21139
21140 ac_ext=cc
21141ac_cpp='$CXXCPP $CPPFLAGS'
21142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21145
21146 cat >conftest.$ac_ext <<_ACEOF
21147#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021148/* confdefs.h. */
21149_ACEOF
21150cat confdefs.h >>conftest.$ac_ext
21151cat >>conftest.$ac_ext <<_ACEOF
21152/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021153#include <iterator>
21154#ifdef HAVE_NAMESPACES
21155using namespace std;
21156#endif
John Criswell7a73b802003-06-30 21:59:07 +000021157int
21158main ()
21159{
21160iterator<int,int,int> t; return 0;
21161 ;
21162 return 0;
21163}
21164_ACEOF
21165rm -f conftest.$ac_objext
21166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21167 (eval $ac_compile) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -s conftest.$ac_objext'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_cxx_have_std_iterator=yes
21178else
21179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021180sed 's/^/| /' conftest.$ac_ext >&5
21181
John Criswell7a73b802003-06-30 21:59:07 +000021182ac_cv_cxx_have_std_iterator=no
21183fi
21184rm -f conftest.$ac_objext conftest.$ac_ext
21185 ac_ext=c
21186ac_cpp='$CPP $CPPFLAGS'
21187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21189ac_compiler_gnu=$ac_cv_c_compiler_gnu
21190
21191
21192fi
21193echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21194echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21195if test "$ac_cv_cxx_have_std_iterator" = yes; then
21196
21197cat >>confdefs.h <<\_ACEOF
21198#define HAVE_STD_ITERATOR
21199_ACEOF
21200
21201fi
21202
21203echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21204echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21205if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207else
21208
21209
21210
21211 ac_ext=cc
21212ac_cpp='$CXXCPP $CPPFLAGS'
21213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21216
21217 cat >conftest.$ac_ext <<_ACEOF
21218#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021219/* confdefs.h. */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021224#include <iterator>
21225#ifdef HAVE_NAMESPACES
21226using namespace std;
21227#endif
John Criswell7a73b802003-06-30 21:59:07 +000021228int
21229main ()
21230{
John Criswellc78022e2003-07-29 19:11:58 +000021231bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021232 ;
21233 return 0;
21234}
21235_ACEOF
21236rm -f conftest.$ac_objext
21237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21238 (eval $ac_compile) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } &&
21242 { ac_try='test -s conftest.$ac_objext'
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
21248 ac_cv_cxx_have_bi_iterator=yes
21249else
21250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021251sed 's/^/| /' conftest.$ac_ext >&5
21252
John Criswell7a73b802003-06-30 21:59:07 +000021253ac_cv_cxx_have_bi_iterator=no
21254fi
21255rm -f conftest.$ac_objext conftest.$ac_ext
21256 ac_ext=c
21257ac_cpp='$CPP $CPPFLAGS'
21258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262
21263fi
21264echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21265echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21266if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21267
21268cat >>confdefs.h <<\_ACEOF
21269#define HAVE_BI_ITERATOR
21270_ACEOF
21271
21272fi
21273
21274echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21275echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21276if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278else
21279
21280
21281
21282 ac_ext=cc
21283ac_cpp='$CXXCPP $CPPFLAGS'
21284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21287
21288 cat >conftest.$ac_ext <<_ACEOF
21289#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021290/* confdefs.h. */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021295#include <iterator>
21296#ifdef HAVE_NAMESPACES
21297using namespace std;
21298#endif
John Criswell7a73b802003-06-30 21:59:07 +000021299int
21300main ()
21301{
John Criswellc78022e2003-07-29 19:11:58 +000021302forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021303 ;
21304 return 0;
21305}
21306_ACEOF
21307rm -f conftest.$ac_objext
21308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21309 (eval $ac_compile) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_cv_cxx_have_fwd_iterator=yes
21320else
21321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021322sed 's/^/| /' conftest.$ac_ext >&5
21323
John Criswell7a73b802003-06-30 21:59:07 +000021324ac_cv_cxx_have_fwd_iterator=no
21325fi
21326rm -f conftest.$ac_objext conftest.$ac_ext
21327 ac_ext=c
21328ac_cpp='$CPP $CPPFLAGS'
21329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21331ac_compiler_gnu=$ac_cv_c_compiler_gnu
21332
21333
21334fi
21335echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21336echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21337if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21338
21339cat >>confdefs.h <<\_ACEOF
21340#define HAVE_FWD_ITERATOR
21341_ACEOF
21342
21343fi
21344
21345
21346# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21347# for constant arguments. Useless!
21348echo "$as_me:$LINENO: checking for working alloca.h" >&5
21349echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21350if test "${ac_cv_working_alloca_h+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352else
21353 cat >conftest.$ac_ext <<_ACEOF
21354#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021355/* confdefs.h. */
21356_ACEOF
21357cat confdefs.h >>conftest.$ac_ext
21358cat >>conftest.$ac_ext <<_ACEOF
21359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021360#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021361int
21362main ()
21363{
21364char *p = (char *) alloca (2 * sizeof (int));
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext conftest$ac_exeext
21370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371 (eval $ac_link) 2>&5
21372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -s conftest$ac_exeext'
21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21377 (eval $ac_try) 2>&5
21378 ac_status=$?
21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380 (exit $ac_status); }; }; then
21381 ac_cv_working_alloca_h=yes
21382else
21383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021384sed 's/^/| /' conftest.$ac_ext >&5
21385
John Criswell7a73b802003-06-30 21:59:07 +000021386ac_cv_working_alloca_h=no
21387fi
21388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21389fi
21390echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21391echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21392if test $ac_cv_working_alloca_h = yes; then
21393
21394cat >>confdefs.h <<\_ACEOF
21395#define HAVE_ALLOCA_H 1
21396_ACEOF
21397
21398fi
21399
21400echo "$as_me:$LINENO: checking for alloca" >&5
21401echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21402if test "${ac_cv_func_alloca_works+set}" = set; then
21403 echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405 cat >conftest.$ac_ext <<_ACEOF
21406#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021412#ifdef __GNUC__
21413# define alloca __builtin_alloca
21414#else
21415# ifdef _MSC_VER
21416# include <malloc.h>
21417# define alloca _alloca
21418# else
21419# if HAVE_ALLOCA_H
21420# include <alloca.h>
21421# else
21422# ifdef _AIX
21423 #pragma alloca
21424# else
21425# ifndef alloca /* predefined by HP cc +Olibcalls */
21426char *alloca ();
21427# endif
21428# endif
21429# endif
21430# endif
21431#endif
21432
John Criswell7a73b802003-06-30 21:59:07 +000021433int
21434main ()
21435{
21436char *p = (char *) alloca (1);
21437 ;
21438 return 0;
21439}
21440_ACEOF
21441rm -f conftest.$ac_objext conftest$ac_exeext
21442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21443 (eval $ac_link) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -s conftest$ac_exeext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_cv_func_alloca_works=yes
21454else
21455 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021456sed 's/^/| /' conftest.$ac_ext >&5
21457
John Criswell7a73b802003-06-30 21:59:07 +000021458ac_cv_func_alloca_works=no
21459fi
21460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21461fi
21462echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21463echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21464
21465if test $ac_cv_func_alloca_works = yes; then
21466
21467cat >>confdefs.h <<\_ACEOF
21468#define HAVE_ALLOCA 1
21469_ACEOF
21470
21471else
21472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21473# that cause trouble. Some versions do not even contain alloca or
21474# contain a buggy version. If you still want to use their alloca,
21475# use ar to extract alloca.o from them instead of compiling alloca.c.
21476
21477ALLOCA=alloca.$ac_objext
21478
21479cat >>confdefs.h <<\_ACEOF
21480#define C_ALLOCA 1
21481_ACEOF
21482
21483
21484echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21485echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21486if test "${ac_cv_os_cray+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488else
21489 cat >conftest.$ac_ext <<_ACEOF
21490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021491/* confdefs.h. */
21492_ACEOF
21493cat confdefs.h >>conftest.$ac_ext
21494cat >>conftest.$ac_ext <<_ACEOF
21495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021496#if defined(CRAY) && ! defined(CRAY2)
21497webecray
21498#else
21499wenotbecray
21500#endif
21501
21502_ACEOF
21503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021504 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021505 ac_cv_os_cray=yes
21506else
21507 ac_cv_os_cray=no
21508fi
21509rm -f conftest*
21510
21511fi
21512echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21513echo "${ECHO_T}$ac_cv_os_cray" >&6
21514if test $ac_cv_os_cray = yes; then
21515 for ac_func in _getb67 GETB67 getb67; do
21516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21517echo "$as_me:$LINENO: checking for $ac_func" >&5
21518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21519if eval "test \"\${$as_ac_var+set}\" = set"; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521else
21522 cat >conftest.$ac_ext <<_ACEOF
21523#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021529/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021530 which can conflict with char $ac_func (); below.
21531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21532 <limits.h> exists even on freestanding compilers. */
21533#ifdef __STDC__
21534# include <limits.h>
21535#else
21536# include <assert.h>
21537#endif
John Criswell7a73b802003-06-30 21:59:07 +000021538/* Override any gcc2 internal prototype to avoid an error. */
21539#ifdef __cplusplus
21540extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021541{
John Criswell7a73b802003-06-30 21:59:07 +000021542#endif
21543/* We use char because int might match the return type of a gcc2
21544 builtin and then its argument prototype would still apply. */
21545char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021546/* The GNU C library defines this for functions which it implements
21547 to always fail with ENOSYS. Some functions are actually named
21548 something starting with __ and the normal name is an alias. */
21549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21550choke me
21551#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021552char (*f) () = $ac_func;
21553#endif
21554#ifdef __cplusplus
21555}
John Criswell7a73b802003-06-30 21:59:07 +000021556#endif
21557
John Criswell0c38eaf2003-09-10 15:17:25 +000021558int
21559main ()
21560{
21561return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext conftest$ac_exeext
21567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568 (eval $ac_link) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
21572 { ac_try='test -s conftest$ac_exeext'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; }; then
21578 eval "$as_ac_var=yes"
21579else
21580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021581sed 's/^/| /' conftest.$ac_ext >&5
21582
John Criswell7a73b802003-06-30 21:59:07 +000021583eval "$as_ac_var=no"
21584fi
21585rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21586fi
21587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21589if test `eval echo '${'$as_ac_var'}'` = yes; then
21590
21591cat >>confdefs.h <<_ACEOF
21592#define CRAY_STACKSEG_END $ac_func
21593_ACEOF
21594
21595 break
21596fi
21597
21598 done
21599fi
21600
21601echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21602echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21603if test "${ac_cv_c_stack_direction+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605else
21606 if test "$cross_compiling" = yes; then
21607 ac_cv_c_stack_direction=0
21608else
21609 cat >conftest.$ac_ext <<_ACEOF
21610#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021611/* confdefs.h. */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021616int
21617find_stack_direction ()
21618{
21619 static char *addr = 0;
21620 auto char dummy;
21621 if (addr == 0)
21622 {
21623 addr = &dummy;
21624 return find_stack_direction ();
21625 }
21626 else
21627 return (&dummy > addr) ? 1 : -1;
21628}
21629
21630int
21631main ()
21632{
21633 exit (find_stack_direction () < 0);
21634}
21635_ACEOF
21636rm -f conftest$ac_exeext
21637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638 (eval $ac_link) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 ac_cv_c_stack_direction=1
21648else
21649 echo "$as_me: program exited with status $ac_status" >&5
21650echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021651sed 's/^/| /' conftest.$ac_ext >&5
21652
John Criswell7a73b802003-06-30 21:59:07 +000021653( exit $ac_status )
21654ac_cv_c_stack_direction=-1
21655fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021656rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021657fi
21658fi
21659echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21660echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21661
21662cat >>confdefs.h <<_ACEOF
21663#define STACK_DIRECTION $ac_cv_c_stack_direction
21664_ACEOF
21665
21666
21667fi
21668
21669if test $ac_cv_c_compiler_gnu = yes; then
21670 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21671echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21672if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21674else
21675 ac_pattern="Autoconf.*'x'"
21676 cat >conftest.$ac_ext <<_ACEOF
21677#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021678/* confdefs.h. */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021683#include <sgtty.h>
21684Autoconf TIOCGETP
21685_ACEOF
21686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021687 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021688 ac_cv_prog_gcc_traditional=yes
21689else
21690 ac_cv_prog_gcc_traditional=no
21691fi
21692rm -f conftest*
21693
21694
21695 if test $ac_cv_prog_gcc_traditional = no; then
21696 cat >conftest.$ac_ext <<_ACEOF
21697#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021698/* confdefs.h. */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021703#include <termio.h>
21704Autoconf TCGETA
21705_ACEOF
21706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021707 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021708 ac_cv_prog_gcc_traditional=yes
21709fi
21710rm -f conftest*
21711
21712 fi
21713fi
21714echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21715echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21716 if test $ac_cv_prog_gcc_traditional = yes; then
21717 CC="$CC -traditional"
21718 fi
21719fi
21720
21721echo "$as_me:$LINENO: checking for working memcmp" >&5
21722echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21723if test "${ac_cv_func_memcmp_working+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21725else
21726 if test "$cross_compiling" = yes; then
21727 ac_cv_func_memcmp_working=no
21728else
21729 cat >conftest.$ac_ext <<_ACEOF
21730#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021731/* confdefs.h. */
21732_ACEOF
21733cat confdefs.h >>conftest.$ac_ext
21734cat >>conftest.$ac_ext <<_ACEOF
21735/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021736
John Criswell7a73b802003-06-30 21:59:07 +000021737int
21738main ()
21739{
21740
21741 /* Some versions of memcmp are not 8-bit clean. */
21742 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21743 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21744 exit (1);
21745
21746 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21747 or more and with at least one buffer not starting on a 4-byte boundary.
21748 William Lewis provided this test program. */
21749 {
21750 char foo[21];
21751 char bar[21];
21752 int i;
21753 for (i = 0; i < 4; i++)
21754 {
21755 char *a = foo + i;
21756 char *b = bar + i;
21757 strcpy (a, "--------01111111");
21758 strcpy (b, "--------10000000");
21759 if (memcmp (a, b, 16) >= 0)
21760 exit (1);
21761 }
21762 exit (0);
21763 }
21764
21765 ;
21766 return 0;
21767}
21768_ACEOF
21769rm -f conftest$ac_exeext
21770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21771 (eval $ac_link) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; }; then
21780 ac_cv_func_memcmp_working=yes
21781else
21782 echo "$as_me: program exited with status $ac_status" >&5
21783echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021784sed 's/^/| /' conftest.$ac_ext >&5
21785
John Criswell7a73b802003-06-30 21:59:07 +000021786( exit $ac_status )
21787ac_cv_func_memcmp_working=no
21788fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021789rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021790fi
21791fi
21792echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21793echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21794test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21795
21796
21797
21798for ac_header in stdlib.h unistd.h
21799do
21800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21801if eval "test \"\${$as_ac_Header+set}\" = set"; then
21802 echo "$as_me:$LINENO: checking for $ac_header" >&5
21803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21804if eval "test \"\${$as_ac_Header+set}\" = set"; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21806fi
21807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21809else
21810 # Is the header compilable?
21811echo "$as_me:$LINENO: checking $ac_header usability" >&5
21812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21813cat >conftest.$ac_ext <<_ACEOF
21814#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021820$ac_includes_default
21821#include <$ac_header>
21822_ACEOF
21823rm -f conftest.$ac_objext
21824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21825 (eval $ac_compile) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } &&
21829 { ac_try='test -s conftest.$ac_objext'
21830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); }; }; then
21835 ac_header_compiler=yes
21836else
21837 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021838sed 's/^/| /' conftest.$ac_ext >&5
21839
John Criswell7a73b802003-06-30 21:59:07 +000021840ac_header_compiler=no
21841fi
21842rm -f conftest.$ac_objext conftest.$ac_ext
21843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21844echo "${ECHO_T}$ac_header_compiler" >&6
21845
21846# Is the header present?
21847echo "$as_me:$LINENO: checking $ac_header presence" >&5
21848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21849cat >conftest.$ac_ext <<_ACEOF
21850#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021851/* confdefs.h. */
21852_ACEOF
21853cat confdefs.h >>conftest.$ac_ext
21854cat >>conftest.$ac_ext <<_ACEOF
21855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021856#include <$ac_header>
21857_ACEOF
21858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21860 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021861 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021862 rm -f conftest.er1
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } >/dev/null; then
21866 if test -s conftest.err; then
21867 ac_cpp_err=$ac_c_preproc_warn_flag
21868 else
21869 ac_cpp_err=
21870 fi
21871else
21872 ac_cpp_err=yes
21873fi
21874if test -z "$ac_cpp_err"; then
21875 ac_header_preproc=yes
21876else
21877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021878sed 's/^/| /' conftest.$ac_ext >&5
21879
John Criswell7a73b802003-06-30 21:59:07 +000021880 ac_header_preproc=no
21881fi
21882rm -f conftest.err conftest.$ac_ext
21883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21884echo "${ECHO_T}$ac_header_preproc" >&6
21885
21886# So? What about this header?
21887case $ac_header_compiler:$ac_header_preproc in
21888 yes:no )
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21893 (
21894 cat <<\_ASBOX
21895## ------------------------------------ ##
21896## Report this to bug-autoconf@gnu.org. ##
21897## ------------------------------------ ##
21898_ASBOX
21899 ) |
21900 sed "s/^/$as_me: WARNING: /" >&2
21901 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021902 no:yes )
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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 +000021918esac
21919echo "$as_me:$LINENO: checking for $ac_header" >&5
21920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21921if eval "test \"\${$as_ac_Header+set}\" = set"; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923else
21924 eval "$as_ac_Header=$ac_header_preproc"
21925fi
21926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21928
21929fi
21930if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21933_ACEOF
21934
21935fi
21936
21937done
21938
21939
21940for ac_func in getpagesize
21941do
21942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21943echo "$as_me:$LINENO: checking for $ac_func" >&5
21944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21945if eval "test \"\${$as_ac_var+set}\" = set"; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947else
21948 cat >conftest.$ac_ext <<_ACEOF
21949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021955/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021956 which can conflict with char $ac_func (); below.
21957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21958 <limits.h> exists even on freestanding compilers. */
21959#ifdef __STDC__
21960# include <limits.h>
21961#else
21962# include <assert.h>
21963#endif
John Criswell7a73b802003-06-30 21:59:07 +000021964/* Override any gcc2 internal prototype to avoid an error. */
21965#ifdef __cplusplus
21966extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021967{
John Criswell7a73b802003-06-30 21:59:07 +000021968#endif
21969/* We use char because int might match the return type of a gcc2
21970 builtin and then its argument prototype would still apply. */
21971char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021972/* The GNU C library defines this for functions which it implements
21973 to always fail with ENOSYS. Some functions are actually named
21974 something starting with __ and the normal name is an alias. */
21975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21976choke me
21977#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021978char (*f) () = $ac_func;
21979#endif
21980#ifdef __cplusplus
21981}
John Criswell7a73b802003-06-30 21:59:07 +000021982#endif
21983
John Criswell0c38eaf2003-09-10 15:17:25 +000021984int
21985main ()
21986{
21987return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021988 ;
21989 return 0;
21990}
21991_ACEOF
21992rm -f conftest.$ac_objext conftest$ac_exeext
21993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21994 (eval $ac_link) 2>&5
21995 ac_status=$?
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -s conftest$ac_exeext'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22004 eval "$as_ac_var=yes"
22005else
22006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022007sed 's/^/| /' conftest.$ac_ext >&5
22008
John Criswell7a73b802003-06-30 21:59:07 +000022009eval "$as_ac_var=no"
22010fi
22011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22012fi
22013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22015if test `eval echo '${'$as_ac_var'}'` = yes; then
22016 cat >>confdefs.h <<_ACEOF
22017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22018_ACEOF
22019
22020fi
22021done
22022
22023echo "$as_me:$LINENO: checking for working mmap" >&5
22024echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22025if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22026 echo $ECHO_N "(cached) $ECHO_C" >&6
22027else
22028 if test "$cross_compiling" = yes; then
22029 ac_cv_func_mmap_fixed_mapped=no
22030else
22031 cat >conftest.$ac_ext <<_ACEOF
22032#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022038$ac_includes_default
22039/* malloc might have been renamed as rpl_malloc. */
22040#undef malloc
22041
22042/* Thanks to Mike Haertel and Jim Avera for this test.
22043 Here is a matrix of mmap possibilities:
22044 mmap private not fixed
22045 mmap private fixed at somewhere currently unmapped
22046 mmap private fixed at somewhere already mapped
22047 mmap shared not fixed
22048 mmap shared fixed at somewhere currently unmapped
22049 mmap shared fixed at somewhere already mapped
22050 For private mappings, we should verify that changes cannot be read()
22051 back from the file, nor mmap's back from the file at a different
22052 address. (There have been systems where private was not correctly
22053 implemented like the infamous i386 svr4.0, and systems where the
22054 VM page cache was not coherent with the file system buffer cache
22055 like early versions of FreeBSD and possibly contemporary NetBSD.)
22056 For shared mappings, we should conversely verify that changes get
22057 propagated back to all the places they're supposed to be.
22058
22059 Grep wants private fixed already mapped.
22060 The main things grep needs to know about mmap are:
22061 * does it exist and is it safe to write into the mmap'd area
22062 * how to use it (BSD variants) */
22063
22064#include <fcntl.h>
22065#include <sys/mman.h>
22066
22067#if !STDC_HEADERS && !HAVE_STDLIB_H
22068char *malloc ();
22069#endif
22070
22071/* This mess was copied from the GNU getpagesize.h. */
22072#if !HAVE_GETPAGESIZE
22073/* Assume that all systems that can run configure have sys/param.h. */
22074# if !HAVE_SYS_PARAM_H
22075# define HAVE_SYS_PARAM_H 1
22076# endif
22077
22078# ifdef _SC_PAGESIZE
22079# define getpagesize() sysconf(_SC_PAGESIZE)
22080# else /* no _SC_PAGESIZE */
22081# if HAVE_SYS_PARAM_H
22082# include <sys/param.h>
22083# ifdef EXEC_PAGESIZE
22084# define getpagesize() EXEC_PAGESIZE
22085# else /* no EXEC_PAGESIZE */
22086# ifdef NBPG
22087# define getpagesize() NBPG * CLSIZE
22088# ifndef CLSIZE
22089# define CLSIZE 1
22090# endif /* no CLSIZE */
22091# else /* no NBPG */
22092# ifdef NBPC
22093# define getpagesize() NBPC
22094# else /* no NBPC */
22095# ifdef PAGESIZE
22096# define getpagesize() PAGESIZE
22097# endif /* PAGESIZE */
22098# endif /* no NBPC */
22099# endif /* no NBPG */
22100# endif /* no EXEC_PAGESIZE */
22101# else /* no HAVE_SYS_PARAM_H */
22102# define getpagesize() 8192 /* punt totally */
22103# endif /* no HAVE_SYS_PARAM_H */
22104# endif /* no _SC_PAGESIZE */
22105
22106#endif /* no HAVE_GETPAGESIZE */
22107
22108int
22109main ()
22110{
22111 char *data, *data2, *data3;
22112 int i, pagesize;
22113 int fd;
22114
22115 pagesize = getpagesize ();
22116
22117 /* First, make a file with some known garbage in it. */
22118 data = (char *) malloc (pagesize);
22119 if (!data)
22120 exit (1);
22121 for (i = 0; i < pagesize; ++i)
22122 *(data + i) = rand ();
22123 umask (0);
22124 fd = creat ("conftest.mmap", 0600);
22125 if (fd < 0)
22126 exit (1);
22127 if (write (fd, data, pagesize) != pagesize)
22128 exit (1);
22129 close (fd);
22130
22131 /* Next, try to mmap the file at a fixed address which already has
22132 something else allocated at it. If we can, also make sure that
22133 we see the same garbage. */
22134 fd = open ("conftest.mmap", O_RDWR);
22135 if (fd < 0)
22136 exit (1);
22137 data2 = (char *) malloc (2 * pagesize);
22138 if (!data2)
22139 exit (1);
22140 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22141 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22143 exit (1);
22144 for (i = 0; i < pagesize; ++i)
22145 if (*(data + i) != *(data2 + i))
22146 exit (1);
22147
22148 /* Finally, make sure that changes to the mapped area do not
22149 percolate back to the file as seen by read(). (This is a bug on
22150 some variants of i386 svr4.0.) */
22151 for (i = 0; i < pagesize; ++i)
22152 *(data2 + i) = *(data2 + i) + 1;
22153 data3 = (char *) malloc (pagesize);
22154 if (!data3)
22155 exit (1);
22156 if (read (fd, data3, pagesize) != pagesize)
22157 exit (1);
22158 for (i = 0; i < pagesize; ++i)
22159 if (*(data + i) != *(data3 + i))
22160 exit (1);
22161 close (fd);
22162 exit (0);
22163}
22164_ACEOF
22165rm -f conftest$ac_exeext
22166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22167 (eval $ac_link) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 ac_cv_func_mmap_fixed_mapped=yes
22177else
22178 echo "$as_me: program exited with status $ac_status" >&5
22179echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022180sed 's/^/| /' conftest.$ac_ext >&5
22181
John Criswell7a73b802003-06-30 21:59:07 +000022182( exit $ac_status )
22183ac_cv_func_mmap_fixed_mapped=no
22184fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022185rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022186fi
22187fi
22188echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22189echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22190if test $ac_cv_func_mmap_fixed_mapped = yes; then
22191
22192cat >>confdefs.h <<\_ACEOF
22193#define HAVE_MMAP 1
22194_ACEOF
22195
22196fi
22197rm -f conftest.mmap
22198
22199echo "$as_me:$LINENO: checking for mmap of files" >&5
22200echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22201if test "${ac_cv_func_mmap_file+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203else
22204
22205
22206 ac_ext=c
22207ac_cpp='$CPP $CPPFLAGS'
22208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22210ac_compiler_gnu=$ac_cv_c_compiler_gnu
22211
22212 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022213 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22214See \`config.log' for more details." >&5
22215echo "$as_me: error: cannot run test program while cross compiling
22216See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022217 { (exit 1); exit 1; }; }
22218else
22219 cat >conftest.$ac_ext <<_ACEOF
22220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022221/* confdefs.h. */
22222_ACEOF
22223cat confdefs.h >>conftest.$ac_ext
22224cat >>conftest.$ac_ext <<_ACEOF
22225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022226
22227#ifdef HAVE_SYS_MMAN_H
22228#include <sys/mman.h>
22229#endif
22230
22231#ifdef HAVE_SYS_TYPES_H
22232#include <sys/types.h>
22233#endif
22234
22235#ifdef HAVE_FCNTL_H
22236#include <fcntl.h>
22237#endif
22238
22239 int fd;
22240 int main () {
22241 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22242_ACEOF
22243rm -f conftest$ac_exeext
22244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245 (eval $ac_link) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); }; }; then
22254 ac_cv_func_mmap_file=yes
22255else
22256 echo "$as_me: program exited with status $ac_status" >&5
22257echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022258sed 's/^/| /' conftest.$ac_ext >&5
22259
John Criswell7a73b802003-06-30 21:59:07 +000022260( exit $ac_status )
22261ac_cv_func_mmap_file=no
22262fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022263rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022264fi
22265 ac_ext=c
22266ac_cpp='$CPP $CPPFLAGS'
22267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22269ac_compiler_gnu=$ac_cv_c_compiler_gnu
22270
22271
22272fi
22273echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22274echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22275if test "$ac_cv_func_mmap_file" = yes; then
22276 cat >>confdefs.h <<\_ACEOF
22277#define HAVE_MMAP_FILE 1
22278_ACEOF
22279
22280 MMAP_FILE=yes
22281
22282fi
22283
22284if test ${ac_cv_func_mmap_file} = "no"
22285then
22286 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22287echo "$as_me: error: mmap() of files required but not found" >&2;}
22288 { (exit 1); exit 1; }; }
22289fi
22290echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22291echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22292if test "${ac_cv_header_mmap_anon+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22294else
22295
22296
22297 ac_ext=c
22298ac_cpp='$CPP $CPPFLAGS'
22299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22301ac_compiler_gnu=$ac_cv_c_compiler_gnu
22302
22303 cat >conftest.$ac_ext <<_ACEOF
22304#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022305/* confdefs.h. */
22306_ACEOF
22307cat confdefs.h >>conftest.$ac_ext
22308cat >>conftest.$ac_ext <<_ACEOF
22309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022310#include <sys/mman.h>
22311 #include <unistd.h>
22312 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022313int
22314main ()
22315{
22316mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22317 ;
22318 return 0;
22319}
22320_ACEOF
22321rm -f conftest.$ac_objext
22322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323 (eval $ac_compile) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
22327 { ac_try='test -s conftest.$ac_objext'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; }; then
22333 ac_cv_header_mmap_anon=yes
22334else
22335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022336sed 's/^/| /' conftest.$ac_ext >&5
22337
John Criswell7a73b802003-06-30 21:59:07 +000022338ac_cv_header_mmap_anon=no
22339fi
22340rm -f conftest.$ac_objext conftest.$ac_ext
22341 ac_ext=c
22342ac_cpp='$CPP $CPPFLAGS'
22343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22345ac_compiler_gnu=$ac_cv_c_compiler_gnu
22346
22347
22348fi
22349echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22350echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22351if test "$ac_cv_header_mmap_anon" = yes; then
22352 cat >>confdefs.h <<\_ACEOF
22353#define HAVE_MMAP_ANONYMOUS 1
22354_ACEOF
22355
22356fi
22357
22358echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22359echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22360if test "${ac_cv_type_signal+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363 cat >conftest.$ac_ext <<_ACEOF
22364#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022370#include <sys/types.h>
22371#include <signal.h>
22372#ifdef signal
22373# undef signal
22374#endif
22375#ifdef __cplusplus
22376extern "C" void (*signal (int, void (*)(int)))(int);
22377#else
22378void (*signal ()) ();
22379#endif
22380
John Criswell7a73b802003-06-30 21:59:07 +000022381int
22382main ()
22383{
22384int i;
22385 ;
22386 return 0;
22387}
22388_ACEOF
22389rm -f conftest.$ac_objext
22390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22391 (eval $ac_compile) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -s conftest.$ac_objext'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401 ac_cv_type_signal=void
22402else
22403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022404sed 's/^/| /' conftest.$ac_ext >&5
22405
John Criswell7a73b802003-06-30 21:59:07 +000022406ac_cv_type_signal=int
22407fi
22408rm -f conftest.$ac_objext conftest.$ac_ext
22409fi
22410echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22411echo "${ECHO_T}$ac_cv_type_signal" >&6
22412
22413cat >>confdefs.h <<_ACEOF
22414#define RETSIGTYPE $ac_cv_type_signal
22415_ACEOF
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
Brian Gaekec45be042003-10-07 06:01:34 +000022427
22428
22429for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022430do
22431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22432echo "$as_me:$LINENO: checking for $ac_func" >&5
22433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22434if eval "test \"\${$as_ac_var+set}\" = set"; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22436else
22437 cat >conftest.$ac_ext <<_ACEOF
22438#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022439/* confdefs.h. */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022444/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022445 which can conflict with char $ac_func (); below.
22446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447 <limits.h> exists even on freestanding compilers. */
22448#ifdef __STDC__
22449# include <limits.h>
22450#else
22451# include <assert.h>
22452#endif
John Criswell7a73b802003-06-30 21:59:07 +000022453/* Override any gcc2 internal prototype to avoid an error. */
22454#ifdef __cplusplus
22455extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022456{
John Criswell7a73b802003-06-30 21:59:07 +000022457#endif
22458/* We use char because int might match the return type of a gcc2
22459 builtin and then its argument prototype would still apply. */
22460char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022461/* The GNU C library defines this for functions which it implements
22462 to always fail with ENOSYS. Some functions are actually named
22463 something starting with __ and the normal name is an alias. */
22464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22465choke me
22466#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022467char (*f) () = $ac_func;
22468#endif
22469#ifdef __cplusplus
22470}
John Criswell7a73b802003-06-30 21:59:07 +000022471#endif
22472
John Criswell0c38eaf2003-09-10 15:17:25 +000022473int
22474main ()
22475{
22476return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022477 ;
22478 return 0;
22479}
22480_ACEOF
22481rm -f conftest.$ac_objext conftest$ac_exeext
22482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22483 (eval $ac_link) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } &&
22487 { ac_try='test -s conftest$ac_exeext'
22488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489 (eval $ac_try) 2>&5
22490 ac_status=$?
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); }; }; then
22493 eval "$as_ac_var=yes"
22494else
22495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022496sed 's/^/| /' conftest.$ac_ext >&5
22497
John Criswell7a73b802003-06-30 21:59:07 +000022498eval "$as_ac_var=no"
22499fi
22500rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22501fi
22502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22504if test `eval echo '${'$as_ac_var'}'` = yes; then
22505 cat >>confdefs.h <<_ACEOF
22506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507_ACEOF
22508
22509fi
22510done
22511
22512
22513
22514echo "$as_me:$LINENO: checking for mmap" >&5
22515echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22516if test "${ac_cv_func_mmap+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518else
22519 cat >conftest.$ac_ext <<_ACEOF
22520#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022521/* confdefs.h. */
22522_ACEOF
22523cat confdefs.h >>conftest.$ac_ext
22524cat >>conftest.$ac_ext <<_ACEOF
22525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022526/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022527 which can conflict with char mmap (); below.
22528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22529 <limits.h> exists even on freestanding compilers. */
22530#ifdef __STDC__
22531# include <limits.h>
22532#else
22533# include <assert.h>
22534#endif
John Criswell7a73b802003-06-30 21:59:07 +000022535/* Override any gcc2 internal prototype to avoid an error. */
22536#ifdef __cplusplus
22537extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022538{
John Criswell7a73b802003-06-30 21:59:07 +000022539#endif
22540/* We use char because int might match the return type of a gcc2
22541 builtin and then its argument prototype would still apply. */
22542char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022543/* The GNU C library defines this for functions which it implements
22544 to always fail with ENOSYS. Some functions are actually named
22545 something starting with __ and the normal name is an alias. */
22546#if defined (__stub_mmap) || defined (__stub___mmap)
22547choke me
22548#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022549char (*f) () = mmap;
22550#endif
22551#ifdef __cplusplus
22552}
John Criswell7a73b802003-06-30 21:59:07 +000022553#endif
22554
John Criswell0c38eaf2003-09-10 15:17:25 +000022555int
22556main ()
22557{
22558return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022559 ;
22560 return 0;
22561}
22562_ACEOF
22563rm -f conftest.$ac_objext conftest$ac_exeext
22564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22565 (eval $ac_link) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
22569 { ac_try='test -s conftest$ac_exeext'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 ac_cv_func_mmap=yes
22576else
22577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022578sed 's/^/| /' conftest.$ac_ext >&5
22579
John Criswell7a73b802003-06-30 21:59:07 +000022580ac_cv_func_mmap=no
22581fi
22582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22583fi
22584echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22585echo "${ECHO_T}$ac_cv_func_mmap" >&6
22586if test $ac_cv_func_mmap = yes; then
22587 :
22588else
22589 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22590echo "$as_me: error: Function mmap() required but not found" >&2;}
22591 { (exit 1); exit 1; }; }
22592fi
22593
22594echo "$as_me:$LINENO: checking for mprotect" >&5
22595echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22596if test "${ac_cv_func_mprotect+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598else
22599 cat >conftest.$ac_ext <<_ACEOF
22600#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022601/* confdefs.h. */
22602_ACEOF
22603cat confdefs.h >>conftest.$ac_ext
22604cat >>conftest.$ac_ext <<_ACEOF
22605/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022606/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022607 which can conflict with char mprotect (); below.
22608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22609 <limits.h> exists even on freestanding compilers. */
22610#ifdef __STDC__
22611# include <limits.h>
22612#else
22613# include <assert.h>
22614#endif
John Criswell7a73b802003-06-30 21:59:07 +000022615/* Override any gcc2 internal prototype to avoid an error. */
22616#ifdef __cplusplus
22617extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022618{
John Criswell7a73b802003-06-30 21:59:07 +000022619#endif
22620/* We use char because int might match the return type of a gcc2
22621 builtin and then its argument prototype would still apply. */
22622char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022623/* The GNU C library defines this for functions which it implements
22624 to always fail with ENOSYS. Some functions are actually named
22625 something starting with __ and the normal name is an alias. */
22626#if defined (__stub_mprotect) || defined (__stub___mprotect)
22627choke me
22628#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022629char (*f) () = mprotect;
22630#endif
22631#ifdef __cplusplus
22632}
John Criswell7a73b802003-06-30 21:59:07 +000022633#endif
22634
John Criswell0c38eaf2003-09-10 15:17:25 +000022635int
22636main ()
22637{
22638return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022639 ;
22640 return 0;
22641}
22642_ACEOF
22643rm -f conftest.$ac_objext conftest$ac_exeext
22644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22645 (eval $ac_link) 2>&5
22646 ac_status=$?
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } &&
22649 { ac_try='test -s conftest$ac_exeext'
22650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651 (eval $ac_try) 2>&5
22652 ac_status=$?
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_func_mprotect=yes
22656else
22657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022658sed 's/^/| /' conftest.$ac_ext >&5
22659
John Criswell7a73b802003-06-30 21:59:07 +000022660ac_cv_func_mprotect=no
22661fi
22662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22663fi
22664echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22665echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22666if test $ac_cv_func_mprotect = yes; then
22667 :
22668else
22669 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22670echo "$as_me: error: Function mprotect() required but not found" >&2;}
22671 { (exit 1); exit 1; }; }
22672fi
22673
22674
John Criswellb13092b2003-07-22 21:00:24 +000022675
John Criswell7a73b802003-06-30 21:59:07 +000022676# Check whether --enable-purify or --disable-purify was given.
22677if test "${enable_purify+set}" = set; then
22678 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022679
22680else
John Criswellb13092b2003-07-22 21:00:24 +000022681 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022682fi;
John Criswellb13092b2003-07-22 21:00:24 +000022683if test ${enableval} = "no"
22684then
22685 ENABLE_PURIFY=
22686
22687else
22688 ENABLE_PURIFY=ENABLE_PURIFY=1
22689
22690fi
22691
John Criswell7a73b802003-06-30 21:59:07 +000022692# Check whether --enable-optimized or --disable-optimized was given.
22693if test "${enable_optimized+set}" = set; then
22694 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022695
22696else
John Criswellb13092b2003-07-22 21:00:24 +000022697 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022698fi;
John Criswellb13092b2003-07-22 21:00:24 +000022699if test ${enableval} = "no"
22700then
22701 ENABLE_OPTIMIZED=
22702
22703else
22704 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22705
22706fi
22707
John Criswell55126592003-10-07 21:57:39 +000022708# Check whether --enable-spec2000 or --disable-spec2000 was given.
22709if test "${enable_spec2000+set}" = set; then
22710 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022711
22712else
John Criswellb13092b2003-07-22 21:00:24 +000022713 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022714fi;
John Criswellb13092b2003-07-22 21:00:24 +000022715if test ${enableval} = "no"
22716then
John Criswell55126592003-10-07 21:57:39 +000022717 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22718 then
22719 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022720
John Criswell55126592003-10-07 21:57:39 +000022721 USE_SPEC=USE_SPEC=1
22722
22723 else
22724 USE_SPEC=
22725
22726
22727 fi
John Criswellb13092b2003-07-22 21:00:24 +000022728else
John Criswell55126592003-10-07 21:57:39 +000022729 if test ${enableval} = ""
22730 then
22731 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22732
22733 else
22734 SPEC_ROOT=${enableval}
22735
22736 fi
John Criswellb13092b2003-07-22 21:00:24 +000022737 USE_SPEC=USE_SPEC=1
22738
22739fi
22740
John Criswell7a73b802003-06-30 21:59:07 +000022741# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22742if test "${enable_precompiled_bytecode+set}" = set; then
22743 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022744
22745else
John Criswellb13092b2003-07-22 21:00:24 +000022746 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022747fi;
John Criswellb13092b2003-07-22 21:00:24 +000022748if test ${enableval} = "no"
22749then
22750 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022751
John Criswellb13092b2003-07-22 21:00:24 +000022752else
22753 UPB=USE_PRECOMPILED_BYTECODE=1
22754
22755fi
John Criswellf02dbf02003-07-22 20:07:49 +000022756
22757
22758# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22759if test "${enable_llc_diffs+set}" = set; then
22760 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022761
22762else
John Criswellb13092b2003-07-22 21:00:24 +000022763 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022764fi;
John Criswellb13092b2003-07-22 21:00:24 +000022765if test ${enableval} = "no"
22766then
22767 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022768
John Criswellb13092b2003-07-22 21:00:24 +000022769else
22770 DISABLE_LLC_DIFFS=
22771
22772fi
22773
22774# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022775if test "${enable_jit+set}" = set; then
22776 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022777
22778else
John Criswellc78022e2003-07-29 19:11:58 +000022779 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022780fi;
John Criswellb13092b2003-07-22 21:00:24 +000022781
22782if test ${enableval} = "no"
22783then
22784 JIT=
22785
22786else
John Criswellc78022e2003-07-29 19:11:58 +000022787 case $target in
22788 *i*86*)
22789 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022790
John Criswellc78022e2003-07-29 19:11:58 +000022791 ;;
22792 *sparc*)
22793 JIT=TARGET_HAS_JIT=1
22794
22795 ;;
22796 *)
22797 JIT=
22798
22799 ;;
22800 esac
John Criswellb13092b2003-07-22 21:00:24 +000022801fi
John Criswell7a73b802003-06-30 21:59:07 +000022802
22803
John Criswellc78022e2003-07-29 19:11:58 +000022804
John Criswell7a73b802003-06-30 21:59:07 +000022805# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22806if test "${with_llvmgccdir+set}" = set; then
22807 withval="$with_llvmgccdir"
22808 LLVMGCCDIR=$withval
22809
22810fi;
22811
John Criswellc78022e2003-07-29 19:11:58 +000022812
John Criswell7a73b802003-06-30 21:59:07 +000022813# Check whether --with-bcrepos or --without-bcrepos was given.
22814if test "${with_bcrepos+set}" = set; then
22815 withval="$with_bcrepos"
22816 BCR=$withval
22817
22818else
22819 BCR=/home/vadve/lattner/LLVMPrograms
22820
22821fi;
22822
John Criswellc78022e2003-07-29 19:11:58 +000022823
John Criswell7a73b802003-06-30 21:59:07 +000022824# Check whether --with-papi or --without-papi was given.
22825if test "${with_papi+set}" = set; then
22826 withval="$with_papi"
22827 PAPIDIR=$withval
22828
22829else
John Criswellde00db22003-08-25 16:49:54 +000022830 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022831
22832fi;
22833
John Criswell7a73b802003-06-30 21:59:07 +000022834
22835# Check whether --with-purify or --without-purify was given.
22836if test "${with_purify+set}" = set; then
22837 withval="$with_purify"
22838 PURIFY=$withval
22839
22840fi;
22841
John Criswellde00db22003-08-25 16:49:54 +000022842
John Criswell0c38eaf2003-09-10 15:17:25 +000022843 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022844cat >confcache <<\_ACEOF
22845# This file is a shell script that caches the results of configure
22846# tests run on this system so they can be shared between configure
22847# scripts and configure runs, see configure's option --config-cache.
22848# It is not useful on other systems. If it contains results you don't
22849# want to keep, you may remove or edit it.
22850#
22851# config.status only pays attention to the cache file if you give it
22852# the --recheck option to rerun configure.
22853#
John Criswell0c38eaf2003-09-10 15:17:25 +000022854# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022855# loading this file, other *unset* `ac_cv_foo' will be assigned the
22856# following values.
22857
22858_ACEOF
22859
22860# The following way of writing the cache mishandles newlines in values,
22861# but we know of no workaround that is simple, portable, and efficient.
22862# So, don't put newlines in cache variables' values.
22863# Ultrix sh set writes to stderr and can't be redirected directly,
22864# and sets the high bit in the cache file unless we assign to the vars.
22865{
22866 (set) 2>&1 |
22867 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22868 *ac_space=\ *)
22869 # `set' does not quote correctly, so add quotes (double-quote
22870 # substitution turns \\\\ into \\, and sed turns \\ into \).
22871 sed -n \
22872 "s/'/'\\\\''/g;
22873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22874 ;;
22875 *)
22876 # `set' quotes correctly as required by POSIX, so do not add quotes.
22877 sed -n \
22878 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22879 ;;
22880 esac;
22881} |
22882 sed '
22883 t clear
22884 : clear
22885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22886 t end
22887 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22888 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022889if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022890 if test -w $cache_file; then
22891 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22892 cat confcache >$cache_file
22893 else
22894 echo "not updating unwritable cache $cache_file"
22895 fi
22896fi
22897rm -f confcache
22898
22899test "x$prefix" = xNONE && prefix=$ac_default_prefix
22900# Let make expand exec_prefix.
22901test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22902
22903# VPATH may cause trouble with some makes, so we remove $(srcdir),
22904# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22905# trailing colons and then remove the whole line if VPATH becomes empty
22906# (actually we leave an empty line to preserve line numbers).
22907if test "x$srcdir" = x.; then
22908 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22909s/:*\$(srcdir):*/:/;
22910s/:*\${srcdir}:*/:/;
22911s/:*@srcdir@:*/:/;
22912s/^\([^=]*=[ ]*\):*/\1/;
22913s/:*$//;
22914s/^[^=]*=[ ]*$//;
22915}'
22916fi
22917
22918DEFS=-DHAVE_CONFIG_H
22919
John Criswell0c38eaf2003-09-10 15:17:25 +000022920ac_libobjs=
22921ac_ltlibobjs=
22922for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22923 # 1. Remove the extension, and $U if already installed.
22924 ac_i=`echo "$ac_i" |
22925 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22926 # 2. Add them.
22927 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22928 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22929done
22930LIBOBJS=$ac_libobjs
22931
22932LTLIBOBJS=$ac_ltlibobjs
22933
22934
John Criswell7a73b802003-06-30 21:59:07 +000022935
22936: ${CONFIG_STATUS=./config.status}
22937ac_clean_files_save=$ac_clean_files
22938ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22939{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22940echo "$as_me: creating $CONFIG_STATUS" >&6;}
22941cat >$CONFIG_STATUS <<_ACEOF
22942#! $SHELL
22943# Generated by $as_me.
22944# Run this file to recreate the current configuration.
22945# Compiler output produced by configure, useful for debugging
22946# configure, is in config.log if it exists.
22947
22948debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022949ac_cs_recheck=false
22950ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022951SHELL=\${CONFIG_SHELL-$SHELL}
22952_ACEOF
22953
22954cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022955## --------------------- ##
22956## M4sh Initialization. ##
22957## --------------------- ##
22958
22959# Be Bourne compatible
22960if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22961 emulate sh
22962 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022963 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22964 # is contrary to our usage. Disable this feature.
22965 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022966elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22967 set -o posix
22968fi
22969
John Criswell7a73b802003-06-30 21:59:07 +000022970# Support unset when possible.
22971if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22972 as_unset=unset
22973else
22974 as_unset=false
22975fi
22976
John Criswell0c38eaf2003-09-10 15:17:25 +000022977
22978# Work around bugs in pre-3.0 UWIN ksh.
22979$as_unset ENV MAIL MAILPATH
22980PS1='$ '
22981PS2='> '
22982PS4='+ '
22983
22984# NLS nuisances.
22985for as_var in \
22986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22988 LC_TELEPHONE LC_TIME
22989do
22990 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22991 eval $as_var=C; export $as_var
22992 else
22993 $as_unset $as_var
22994 fi
22995done
22996
22997# Required to use basename.
22998if expr a : '\(a\)' >/dev/null 2>&1; then
22999 as_expr=expr
23000else
23001 as_expr=false
23002fi
23003
23004if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23005 as_basename=basename
23006else
23007 as_basename=false
23008fi
John Criswell7a73b802003-06-30 21:59:07 +000023009
23010
23011# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023012as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023013$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23014 X"$0" : 'X\(//\)$' \| \
23015 X"$0" : 'X\(/\)$' \| \
23016 . : '\(.\)' 2>/dev/null ||
23017echo X/"$0" |
23018 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23019 /^X\/\(\/\/\)$/{ s//\1/; q; }
23020 /^X\/\(\/\).*/{ s//\1/; q; }
23021 s/.*/./; q'`
23022
John Criswell0c38eaf2003-09-10 15:17:25 +000023023
John Criswell7a73b802003-06-30 21:59:07 +000023024# PATH needs CR, and LINENO needs CR and PATH.
23025# Avoid depending upon Character Ranges.
23026as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23027as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23028as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23029as_cr_digits='0123456789'
23030as_cr_alnum=$as_cr_Letters$as_cr_digits
23031
23032# The user is always right.
23033if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023034 echo "#! /bin/sh" >conf$$.sh
23035 echo "exit 0" >>conf$$.sh
23036 chmod +x conf$$.sh
23037 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023038 PATH_SEPARATOR=';'
23039 else
23040 PATH_SEPARATOR=:
23041 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023042 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023043fi
23044
23045
23046 as_lineno_1=$LINENO
23047 as_lineno_2=$LINENO
23048 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23049 test "x$as_lineno_1" != "x$as_lineno_2" &&
23050 test "x$as_lineno_3" = "x$as_lineno_2" || {
23051 # Find who we are. Look in the path if we contain no path at all
23052 # relative or not.
23053 case $0 in
23054 *[\\/]* ) as_myself=$0 ;;
23055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23056for as_dir in $PATH
23057do
23058 IFS=$as_save_IFS
23059 test -z "$as_dir" && as_dir=.
23060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23061done
23062
23063 ;;
23064 esac
23065 # We did not find ourselves, most probably we were run as `sh COMMAND'
23066 # in which case we are not to be found in the path.
23067 if test "x$as_myself" = x; then
23068 as_myself=$0
23069 fi
23070 if test ! -f "$as_myself"; then
23071 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23072echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23073 { (exit 1); exit 1; }; }
23074 fi
23075 case $CONFIG_SHELL in
23076 '')
23077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23078for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23079do
23080 IFS=$as_save_IFS
23081 test -z "$as_dir" && as_dir=.
23082 for as_base in sh bash ksh sh5; do
23083 case $as_dir in
23084 /*)
23085 if ("$as_dir/$as_base" -c '
23086 as_lineno_1=$LINENO
23087 as_lineno_2=$LINENO
23088 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23089 test "x$as_lineno_1" != "x$as_lineno_2" &&
23090 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023091 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23092 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023093 CONFIG_SHELL=$as_dir/$as_base
23094 export CONFIG_SHELL
23095 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23096 fi;;
23097 esac
23098 done
23099done
23100;;
23101 esac
23102
23103 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23104 # uniformly replaced by the line number. The first 'sed' inserts a
23105 # line-number line before each line; the second 'sed' does the real
23106 # work. The second script uses 'N' to pair each line-number line
23107 # with the numbered line, and appends trailing '-' during
23108 # substitution so that $LINENO is not a special case at line end.
23109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23110 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23111 sed '=' <$as_myself |
23112 sed '
23113 N
23114 s,$,-,
23115 : loop
23116 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23117 t loop
23118 s,-$,,
23119 s,^['$as_cr_digits']*\n,,
23120 ' >$as_me.lineno &&
23121 chmod +x $as_me.lineno ||
23122 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23123echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23124 { (exit 1); exit 1; }; }
23125
23126 # Don't try to exec as it changes $[0], causing all sort of problems
23127 # (the dirname of $[0] is not the place where we might find the
23128 # original and so on. Autoconf is especially sensible to this).
23129 . ./$as_me.lineno
23130 # Exit status is that of the last command.
23131 exit
23132}
23133
23134
23135case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23136 *c*,-n*) ECHO_N= ECHO_C='
23137' ECHO_T=' ' ;;
23138 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23139 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23140esac
23141
23142if expr a : '\(a\)' >/dev/null 2>&1; then
23143 as_expr=expr
23144else
23145 as_expr=false
23146fi
23147
23148rm -f conf$$ conf$$.exe conf$$.file
23149echo >conf$$.file
23150if ln -s conf$$.file conf$$ 2>/dev/null; then
23151 # We could just check for DJGPP; but this test a) works b) is more generic
23152 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23153 if test -f conf$$.exe; then
23154 # Don't use ln at all; we don't have any links
23155 as_ln_s='cp -p'
23156 else
23157 as_ln_s='ln -s'
23158 fi
23159elif ln conf$$.file conf$$ 2>/dev/null; then
23160 as_ln_s=ln
23161else
23162 as_ln_s='cp -p'
23163fi
23164rm -f conf$$ conf$$.exe conf$$.file
23165
John Criswell0c38eaf2003-09-10 15:17:25 +000023166if mkdir -p . 2>/dev/null; then
23167 as_mkdir_p=:
23168else
23169 as_mkdir_p=false
23170fi
23171
John Criswell7a73b802003-06-30 21:59:07 +000023172as_executable_p="test -f"
23173
23174# Sed expression to map a string onto a valid CPP name.
23175as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23176
23177# Sed expression to map a string onto a valid variable name.
23178as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23179
23180
23181# IFS
23182# We need space, tab and new line, in precisely that order.
23183as_nl='
23184'
23185IFS=" $as_nl"
23186
23187# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023188$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023189
23190exec 6>&1
23191
23192# Open the log real soon, to keep \$[0] and so on meaningful, and to
23193# report actual input values of CONFIG_FILES etc. instead of their
23194# values after options handling. Logging --version etc. is OK.
23195exec 5>>config.log
23196{
23197 echo
23198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23199## Running $as_me. ##
23200_ASBOX
23201} >&5
23202cat >&5 <<_CSEOF
23203
23204This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023205generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023206
23207 CONFIG_FILES = $CONFIG_FILES
23208 CONFIG_HEADERS = $CONFIG_HEADERS
23209 CONFIG_LINKS = $CONFIG_LINKS
23210 CONFIG_COMMANDS = $CONFIG_COMMANDS
23211 $ $0 $@
23212
23213_CSEOF
23214echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23215echo >&5
23216_ACEOF
23217
23218# Files that config.status was made for.
23219if test -n "$ac_config_files"; then
23220 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23221fi
23222
23223if test -n "$ac_config_headers"; then
23224 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23225fi
23226
23227if test -n "$ac_config_links"; then
23228 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23229fi
23230
23231if test -n "$ac_config_commands"; then
23232 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23233fi
23234
23235cat >>$CONFIG_STATUS <<\_ACEOF
23236
23237ac_cs_usage="\
23238\`$as_me' instantiates files from templates according to the
23239current configuration.
23240
23241Usage: $0 [OPTIONS] [FILE]...
23242
23243 -h, --help print this help, then exit
23244 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023245 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023246 -d, --debug don't remove temporary files
23247 --recheck update $as_me by reconfiguring in the same conditions
23248 --file=FILE[:TEMPLATE]
23249 instantiate the configuration file FILE
23250 --header=FILE[:TEMPLATE]
23251 instantiate the configuration header FILE
23252
23253Configuration files:
23254$config_files
23255
23256Configuration headers:
23257$config_headers
23258
John Criswellc764fbc2003-09-06 15:17:13 +000023259Configuration commands:
23260$config_commands
23261
John Criswell7a73b802003-06-30 21:59:07 +000023262Report bugs to <bug-autoconf@gnu.org>."
23263_ACEOF
23264
23265cat >>$CONFIG_STATUS <<_ACEOF
23266ac_cs_version="\\
23267[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023268configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023269 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23270
23271Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23272Free Software Foundation, Inc.
23273This config.status script is free software; the Free Software Foundation
23274gives unlimited permission to copy, distribute and modify it."
23275srcdir=$srcdir
23276INSTALL="$INSTALL"
23277_ACEOF
23278
23279cat >>$CONFIG_STATUS <<\_ACEOF
23280# If no file are specified by the user, then we need to provide default
23281# value. By we need to know if files were specified by the user.
23282ac_need_defaults=:
23283while test $# != 0
23284do
23285 case $1 in
23286 --*=*)
23287 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23288 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023289 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023290 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023291 -*)
23292 ac_option=$1
23293 ac_optarg=$2
23294 ac_shift=shift
23295 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023296 *) # This is not an option, so the user has probably given explicit
23297 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023298 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023299 ac_need_defaults=false;;
23300 esac
23301
John Criswell0c38eaf2003-09-10 15:17:25 +000023302 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023303 # Handling of the options.
23304_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023305cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023306 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23307 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023308 --version | --vers* | -V )
23309 echo "$ac_cs_version"; exit 0 ;;
23310 --he | --h)
23311 # Conflict between --help and --header
23312 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23313Try \`$0 --help' for more information." >&5
23314echo "$as_me: error: ambiguous option: $1
23315Try \`$0 --help' for more information." >&2;}
23316 { (exit 1); exit 1; }; };;
23317 --help | --hel | -h )
23318 echo "$ac_cs_usage"; exit 0 ;;
23319 --debug | --d* | -d )
23320 debug=: ;;
23321 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023322 $ac_shift
23323 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023324 ac_need_defaults=false;;
23325 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023326 $ac_shift
23327 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023328 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23331 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023332
23333 # This is an error.
23334 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23335Try \`$0 --help' for more information." >&5
23336echo "$as_me: error: unrecognized option: $1
23337Try \`$0 --help' for more information." >&2;}
23338 { (exit 1); exit 1; }; } ;;
23339
23340 *) ac_config_targets="$ac_config_targets $1" ;;
23341
23342 esac
23343 shift
23344done
23345
John Criswell0c38eaf2003-09-10 15:17:25 +000023346ac_configure_extra_args=
23347
23348if $ac_cs_silent; then
23349 exec 6>/dev/null
23350 ac_configure_extra_args="$ac_configure_extra_args --silent"
23351fi
23352
23353_ACEOF
23354cat >>$CONFIG_STATUS <<_ACEOF
23355if \$ac_cs_recheck; then
23356 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23357 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23358fi
23359
John Criswell7a73b802003-06-30 21:59:07 +000023360_ACEOF
23361
John Criswellc764fbc2003-09-06 15:17:13 +000023362cat >>$CONFIG_STATUS <<_ACEOF
23363#
23364# INIT-COMMANDS section.
23365#
John Criswell7a73b802003-06-30 21:59:07 +000023366
John Criswellc764fbc2003-09-06 15:17:13 +000023367${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23368${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23369${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23370${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23371${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23372${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23373${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23374${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23375${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23376${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23377${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23378${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23379${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23380${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23381${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23382${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23383${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023384${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23385${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23386${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23387${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23388${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023389${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023390${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23391${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23392${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23393${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23394${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23395${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23396${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23397${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23398${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23399${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23400${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23401${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23402${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23404${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023405${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023406${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023410${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023411${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023412${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023414${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023418${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23419${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023420${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23422${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23424${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23425${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23426${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23431${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23433${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23435${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023438${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023439${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023515${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023517${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023518${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023521${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023522${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023523${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023524${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023525${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023526${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023527${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023529${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023533${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23537${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23538${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23544${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23546
23547_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023548
23549
23550
23551cat >>$CONFIG_STATUS <<\_ACEOF
23552for ac_config_target in $ac_config_targets
23553do
23554 case "$ac_config_target" in
23555 # Handling of arguments.
23556 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023557 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23558 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23559 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23560 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23561 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23562 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23563 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23564 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23565 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23566 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23567 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23568 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23569 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23570 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23571 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23572 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23573 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023574 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23575 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23576 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23577 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23578 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023579 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023580 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23581 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23582 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23583 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23584 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23585 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23586 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23587 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23588 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23589 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23590 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23591 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23592 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23593 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23594 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023595 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023596 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23597 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23598 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23599 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023600 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023601 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023602 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23603 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023604 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23605 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23606 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23607 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023608 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23609 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023610 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23611 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23612 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23613 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23614 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23615 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23616 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23617 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23618 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23619 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23620 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23621 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23622 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23623 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23624 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23625 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23626 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23627 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023628 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023629 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23630 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23631 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23632 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23633 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23634 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23635 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23636 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23637 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23638 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23639 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23640 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23641 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23642 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23643 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23644 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23645 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23646 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023647 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23648 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023649 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23650 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023651 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23652 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23653 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23654 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23655 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23656 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23657 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23658 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23659 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23660 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23661 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23662 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23663 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23664 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23665 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23666 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23667 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23668 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23669 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23670 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23671 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23672 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23673 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23674 "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 +000023675 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023676 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23677 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23678 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23679 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23680 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23681 "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 +000023682 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023683 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023684 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23685 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23686 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23687 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23688 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023689 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23690 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23691 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023692 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23693 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23694 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23695 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23696 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23697 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023698 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023699 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023700 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023701 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023702 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23703 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023704 "test/Programs/SingleSource/Regression/C++/EH/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/EH/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023705 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23706 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023707 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023708 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23709 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23710 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023711 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023712 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023713 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023714 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023715 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023716 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023717 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23718 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023719 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23720 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23721 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23722 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023723 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23724 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23725 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23726 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23727 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23728 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23729 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23730 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23731 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23732 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23733 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23734 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23735 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023736 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23737 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23738echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23739 { (exit 1); exit 1; }; };;
23740 esac
23741done
23742
23743# If the user did not use the arguments to specify the items to instantiate,
23744# then the envvar interface is used. Set only those that are not.
23745# We use the long form for the default assignment because of an extremely
23746# bizarre bug on SunOS 4.1.3.
23747if $ac_need_defaults; then
23748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023751fi
23752
John Criswell0c38eaf2003-09-10 15:17:25 +000023753# Have a temporary directory for convenience. Make it in the build tree
23754# simply because there is no reason to put it here, and in addition,
23755# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023756# Create a temporary directory, and hook for its removal unless debugging.
23757$debug ||
23758{
23759 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23760 trap '{ (exit 1); exit 1; }' 1 2 13 15
23761}
23762
23763# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023764
John Criswell7a73b802003-06-30 21:59:07 +000023765{
John Criswell0c38eaf2003-09-10 15:17:25 +000023766 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023767 test -n "$tmp" && test -d "$tmp"
23768} ||
23769{
John Criswell0c38eaf2003-09-10 15:17:25 +000023770 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023771 (umask 077 && mkdir $tmp)
23772} ||
23773{
John Criswell0c38eaf2003-09-10 15:17:25 +000023774 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023775 { (exit 1); exit 1; }
23776}
23777
23778_ACEOF
23779
23780cat >>$CONFIG_STATUS <<_ACEOF
23781
23782#
23783# CONFIG_FILES section.
23784#
23785
23786# No need to generate the scripts if there are no CONFIG_FILES.
23787# This happens for instance when ./config.status config.h
23788if test -n "\$CONFIG_FILES"; then
23789 # Protect against being on the right side of a sed subst in config.status.
23790 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23791 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23792s,@SHELL@,$SHELL,;t t
23793s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23794s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23795s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23796s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23797s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23798s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23799s,@exec_prefix@,$exec_prefix,;t t
23800s,@prefix@,$prefix,;t t
23801s,@program_transform_name@,$program_transform_name,;t t
23802s,@bindir@,$bindir,;t t
23803s,@sbindir@,$sbindir,;t t
23804s,@libexecdir@,$libexecdir,;t t
23805s,@datadir@,$datadir,;t t
23806s,@sysconfdir@,$sysconfdir,;t t
23807s,@sharedstatedir@,$sharedstatedir,;t t
23808s,@localstatedir@,$localstatedir,;t t
23809s,@libdir@,$libdir,;t t
23810s,@includedir@,$includedir,;t t
23811s,@oldincludedir@,$oldincludedir,;t t
23812s,@infodir@,$infodir,;t t
23813s,@mandir@,$mandir,;t t
23814s,@build_alias@,$build_alias,;t t
23815s,@host_alias@,$host_alias,;t t
23816s,@target_alias@,$target_alias,;t t
23817s,@DEFS@,$DEFS,;t t
23818s,@ECHO_C@,$ECHO_C,;t t
23819s,@ECHO_N@,$ECHO_N,;t t
23820s,@ECHO_T@,$ECHO_T,;t t
23821s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023822s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023823s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23824s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23825s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23826s,@build@,$build,;t t
23827s,@build_cpu@,$build_cpu,;t t
23828s,@build_vendor@,$build_vendor,;t t
23829s,@build_os@,$build_os,;t t
23830s,@host@,$host,;t t
23831s,@host_cpu@,$host_cpu,;t t
23832s,@host_vendor@,$host_vendor,;t t
23833s,@host_os@,$host_os,;t t
23834s,@target@,$target,;t t
23835s,@target_cpu@,$target_cpu,;t t
23836s,@target_vendor@,$target_vendor,;t t
23837s,@target_os@,$target_os,;t t
23838s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023839s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023840s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023841s,@CXX@,$CXX,;t t
23842s,@CXXFLAGS@,$CXXFLAGS,;t t
23843s,@LDFLAGS@,$LDFLAGS,;t t
23844s,@CPPFLAGS@,$CPPFLAGS,;t t
23845s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23846s,@EXEEXT@,$EXEEXT,;t t
23847s,@OBJEXT@,$OBJEXT,;t t
23848s,@CC@,$CC,;t t
23849s,@CFLAGS@,$CFLAGS,;t t
23850s,@ac_ct_CC@,$ac_ct_CC,;t t
23851s,@CPP@,$CPP,;t t
23852s,@ifGNUmake@,$ifGNUmake,;t t
23853s,@LEX@,$LEX,;t t
23854s,@LEXLIB@,$LEXLIB,;t t
23855s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23856s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023857s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023858s,@LN_S@,$LN_S,;t t
23859s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023860s,@AR@,$AR,;t t
23861s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023862s,@RANLIB@,$RANLIB,;t t
23863s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23864s,@STRIP@,$STRIP,;t t
23865s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023866s,@CXXCPP@,$CXXCPP,;t t
23867s,@F77@,$F77,;t t
23868s,@FFLAGS@,$FFLAGS,;t t
23869s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023870s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023871s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023872s,@SED@,$SED,;t t
23873s,@RM@,$RM,;t t
23874s,@MKDIR@,$MKDIR,;t t
23875s,@DATE@,$DATE,;t t
23876s,@MV@,$MV,;t t
23877s,@DOT@,$DOT,;t t
23878s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023879s,@PYTHON@,$PYTHON,;t t
23880s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023881s,@ALLOCA@,$ALLOCA,;t t
23882s,@LIBOBJS@,$LIBOBJS,;t t
23883s,@MMAP_FILE@,$MMAP_FILE,;t t
23884s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023885s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023886s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023887s,@USE_SPEC@,$USE_SPEC,;t t
23888s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023889s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023890s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023891s,@BCR@,$BCR,;t t
23892s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023893s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023894s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023895CEOF
23896
23897_ACEOF
23898
23899 cat >>$CONFIG_STATUS <<\_ACEOF
23900 # Split the substitutions into bite-sized pieces for seds with
23901 # small command number limits, like on Digital OSF/1 and HP-UX.
23902 ac_max_sed_lines=48
23903 ac_sed_frag=1 # Number of current file.
23904 ac_beg=1 # First line for current file.
23905 ac_end=$ac_max_sed_lines # Line after last line for current file.
23906 ac_more_lines=:
23907 ac_sed_cmds=
23908 while $ac_more_lines; do
23909 if test $ac_beg -gt 1; then
23910 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23911 else
23912 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23913 fi
23914 if test ! -s $tmp/subs.frag; then
23915 ac_more_lines=false
23916 else
23917 # The purpose of the label and of the branching condition is to
23918 # speed up the sed processing (if there are no `@' at all, there
23919 # is no need to browse any of the substitutions).
23920 # These are the two extra sed commands mentioned above.
23921 (echo ':t
23922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23923 if test -z "$ac_sed_cmds"; then
23924 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23925 else
23926 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23927 fi
23928 ac_sed_frag=`expr $ac_sed_frag + 1`
23929 ac_beg=$ac_end
23930 ac_end=`expr $ac_end + $ac_max_sed_lines`
23931 fi
23932 done
23933 if test -z "$ac_sed_cmds"; then
23934 ac_sed_cmds=cat
23935 fi
23936fi # test -n "$CONFIG_FILES"
23937
23938_ACEOF
23939cat >>$CONFIG_STATUS <<\_ACEOF
23940for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23942 case $ac_file in
23943 - | *:- | *:-:* ) # input from stdin
23944 cat >$tmp/stdin
23945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23949 * ) ac_file_in=$ac_file.in ;;
23950 esac
23951
23952 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23954$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23955 X"$ac_file" : 'X\(//\)[^/]' \| \
23956 X"$ac_file" : 'X\(//\)$' \| \
23957 X"$ac_file" : 'X\(/\)' \| \
23958 . : '\(.\)' 2>/dev/null ||
23959echo X"$ac_file" |
23960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23962 /^X\(\/\/\)$/{ s//\1/; q; }
23963 /^X\(\/\).*/{ s//\1/; q; }
23964 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023965 { if $as_mkdir_p; then
23966 mkdir -p "$ac_dir"
23967 else
23968 as_dir="$ac_dir"
23969 as_dirs=
23970 while test ! -d "$as_dir"; do
23971 as_dirs="$as_dir $as_dirs"
23972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23974 X"$as_dir" : 'X\(//\)[^/]' \| \
23975 X"$as_dir" : 'X\(//\)$' \| \
23976 X"$as_dir" : 'X\(/\)' \| \
23977 . : '\(.\)' 2>/dev/null ||
23978echo X"$as_dir" |
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981 /^X\(\/\/\)$/{ s//\1/; q; }
23982 /^X\(\/\).*/{ s//\1/; q; }
23983 s/.*/./; q'`
23984 done
23985 test ! -n "$as_dirs" || mkdir $as_dirs
23986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23987echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23988 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023989
23990 ac_builddir=.
23991
23992if test "$ac_dir" != .; then
23993 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23994 # A "../" for each directory in $ac_dir_suffix.
23995 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23996else
23997 ac_dir_suffix= ac_top_builddir=
23998fi
23999
24000case $srcdir in
24001 .) # No --srcdir option. We are building in place.
24002 ac_srcdir=.
24003 if test -z "$ac_top_builddir"; then
24004 ac_top_srcdir=.
24005 else
24006 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24007 fi ;;
24008 [\\/]* | ?:[\\/]* ) # Absolute path.
24009 ac_srcdir=$srcdir$ac_dir_suffix;
24010 ac_top_srcdir=$srcdir ;;
24011 *) # Relative path.
24012 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24013 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24014esac
24015# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24016# absolute.
24017ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024018ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024019ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24020ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24021
24022
24023 case $INSTALL in
24024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24025 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24026 esac
24027
24028 if test x"$ac_file" != x-; then
24029 { echo "$as_me:$LINENO: creating $ac_file" >&5
24030echo "$as_me: creating $ac_file" >&6;}
24031 rm -f "$ac_file"
24032 fi
24033 # Let's still pretend it is `configure' which instantiates (i.e., don't
24034 # use $as_me), people would be surprised to read:
24035 # /* config.h. Generated by config.status. */
24036 if test x"$ac_file" = x-; then
24037 configure_input=
24038 else
24039 configure_input="$ac_file. "
24040 fi
24041 configure_input=$configure_input"Generated from `echo $ac_file_in |
24042 sed 's,.*/,,'` by configure."
24043
24044 # First look for the input files in the build tree, otherwise in the
24045 # src tree.
24046 ac_file_inputs=`IFS=:
24047 for f in $ac_file_in; do
24048 case $f in
24049 -) echo $tmp/stdin ;;
24050 [\\/$]*)
24051 # Absolute (can't be DOS-style, as IFS=:)
24052 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24053echo "$as_me: error: cannot find input file: $f" >&2;}
24054 { (exit 1); exit 1; }; }
24055 echo $f;;
24056 *) # Relative
24057 if test -f "$f"; then
24058 # Build tree
24059 echo $f
24060 elif test -f "$srcdir/$f"; then
24061 # Source tree
24062 echo $srcdir/$f
24063 else
24064 # /dev/null tree
24065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24066echo "$as_me: error: cannot find input file: $f" >&2;}
24067 { (exit 1); exit 1; }; }
24068 fi;;
24069 esac
24070 done` || { (exit 1); exit 1; }
24071_ACEOF
24072cat >>$CONFIG_STATUS <<_ACEOF
24073 sed "$ac_vpsub
24074$extrasub
24075_ACEOF
24076cat >>$CONFIG_STATUS <<\_ACEOF
24077:t
24078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24079s,@configure_input@,$configure_input,;t t
24080s,@srcdir@,$ac_srcdir,;t t
24081s,@abs_srcdir@,$ac_abs_srcdir,;t t
24082s,@top_srcdir@,$ac_top_srcdir,;t t
24083s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24084s,@builddir@,$ac_builddir,;t t
24085s,@abs_builddir@,$ac_abs_builddir,;t t
24086s,@top_builddir@,$ac_top_builddir,;t t
24087s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24088s,@INSTALL@,$ac_INSTALL,;t t
24089" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24090 rm -f $tmp/stdin
24091 if test x"$ac_file" != x-; then
24092 mv $tmp/out $ac_file
24093 else
24094 cat $tmp/out
24095 rm -f $tmp/out
24096 fi
24097
24098done
24099_ACEOF
24100cat >>$CONFIG_STATUS <<\_ACEOF
24101
24102#
24103# CONFIG_HEADER section.
24104#
24105
24106# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24107# NAME is the cpp macro being defined and VALUE is the value it is being given.
24108#
24109# ac_d sets the value in "#define NAME VALUE" lines.
24110ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24111ac_dB='[ ].*$,\1#\2'
24112ac_dC=' '
24113ac_dD=',;t'
24114# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24115ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24116ac_uB='$,\1#\2define\3'
24117ac_uC=' '
24118ac_uD=',;t'
24119
24120for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24122 case $ac_file in
24123 - | *:- | *:-:* ) # input from stdin
24124 cat >$tmp/stdin
24125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24129 * ) ac_file_in=$ac_file.in ;;
24130 esac
24131
24132 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24133echo "$as_me: creating $ac_file" >&6;}
24134
24135 # First look for the input files in the build tree, otherwise in the
24136 # src tree.
24137 ac_file_inputs=`IFS=:
24138 for f in $ac_file_in; do
24139 case $f in
24140 -) echo $tmp/stdin ;;
24141 [\\/$]*)
24142 # Absolute (can't be DOS-style, as IFS=:)
24143 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24144echo "$as_me: error: cannot find input file: $f" >&2;}
24145 { (exit 1); exit 1; }; }
24146 echo $f;;
24147 *) # Relative
24148 if test -f "$f"; then
24149 # Build tree
24150 echo $f
24151 elif test -f "$srcdir/$f"; then
24152 # Source tree
24153 echo $srcdir/$f
24154 else
24155 # /dev/null tree
24156 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24157echo "$as_me: error: cannot find input file: $f" >&2;}
24158 { (exit 1); exit 1; }; }
24159 fi;;
24160 esac
24161 done` || { (exit 1); exit 1; }
24162 # Remove the trailing spaces.
24163 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24164
24165_ACEOF
24166
24167# Transform confdefs.h into two sed scripts, `conftest.defines' and
24168# `conftest.undefs', that substitutes the proper values into
24169# config.h.in to produce config.h. The first handles `#define'
24170# templates, and the second `#undef' templates.
24171# And first: Protect against being on the right side of a sed subst in
24172# config.status. Protect against being in an unquoted here document
24173# in config.status.
24174rm -f conftest.defines conftest.undefs
24175# Using a here document instead of a string reduces the quoting nightmare.
24176# Putting comments in sed scripts is not portable.
24177#
24178# `end' is used to avoid that the second main sed command (meant for
24179# 0-ary CPP macros) applies to n-ary macro definitions.
24180# See the Autoconf documentation for `clear'.
24181cat >confdef2sed.sed <<\_ACEOF
24182s/[\\&,]/\\&/g
24183s,[\\$`],\\&,g
24184t clear
24185: clear
24186s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24187t end
24188s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24189: end
24190_ACEOF
24191# If some macros were called several times there might be several times
24192# the same #defines, which is useless. Nevertheless, we may not want to
24193# sort them, since we want the *last* AC-DEFINE to be honored.
24194uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24195sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24196rm -f confdef2sed.sed
24197
24198# This sed command replaces #undef with comments. This is necessary, for
24199# example, in the case of _POSIX_SOURCE, which is predefined and required
24200# on some systems where configure will not decide to define it.
24201cat >>conftest.undefs <<\_ACEOF
24202s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24203_ACEOF
24204
24205# Break up conftest.defines because some shells have a limit on the size
24206# of here documents, and old seds have small limits too (100 cmds).
24207echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024208echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024209echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24210echo ' :' >>$CONFIG_STATUS
24211rm -f conftest.tail
24212while grep . conftest.defines >/dev/null
24213do
24214 # Write a limited-size here document to $tmp/defines.sed.
24215 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24216 # Speed up: don't consider the non `#define' lines.
24217 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24218 # Work around the forget-to-reset-the-flag bug.
24219 echo 't clr' >>$CONFIG_STATUS
24220 echo ': clr' >>$CONFIG_STATUS
24221 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24222 echo 'CEOF
24223 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24224 rm -f $tmp/in
24225 mv $tmp/out $tmp/in
24226' >>$CONFIG_STATUS
24227 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24228 rm -f conftest.defines
24229 mv conftest.tail conftest.defines
24230done
24231rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024232echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024233echo >>$CONFIG_STATUS
24234
24235# Break up conftest.undefs because some shells have a limit on the size
24236# of here documents, and old seds have small limits too (100 cmds).
24237echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24238rm -f conftest.tail
24239while grep . conftest.undefs >/dev/null
24240do
24241 # Write a limited-size here document to $tmp/undefs.sed.
24242 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24243 # Speed up: don't consider the non `#undef'
24244 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24245 # Work around the forget-to-reset-the-flag bug.
24246 echo 't clr' >>$CONFIG_STATUS
24247 echo ': clr' >>$CONFIG_STATUS
24248 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24249 echo 'CEOF
24250 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24251 rm -f $tmp/in
24252 mv $tmp/out $tmp/in
24253' >>$CONFIG_STATUS
24254 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24255 rm -f conftest.undefs
24256 mv conftest.tail conftest.undefs
24257done
24258rm -f conftest.undefs
24259
24260cat >>$CONFIG_STATUS <<\_ACEOF
24261 # Let's still pretend it is `configure' which instantiates (i.e., don't
24262 # use $as_me), people would be surprised to read:
24263 # /* config.h. Generated by config.status. */
24264 if test x"$ac_file" = x-; then
24265 echo "/* Generated by configure. */" >$tmp/config.h
24266 else
24267 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24268 fi
24269 cat $tmp/in >>$tmp/config.h
24270 rm -f $tmp/in
24271 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024272 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024273 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24274echo "$as_me: $ac_file is unchanged" >&6;}
24275 else
24276 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24278 X"$ac_file" : 'X\(//\)[^/]' \| \
24279 X"$ac_file" : 'X\(//\)$' \| \
24280 X"$ac_file" : 'X\(/\)' \| \
24281 . : '\(.\)' 2>/dev/null ||
24282echo X"$ac_file" |
24283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24285 /^X\(\/\/\)$/{ s//\1/; q; }
24286 /^X\(\/\).*/{ s//\1/; q; }
24287 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024288 { if $as_mkdir_p; then
24289 mkdir -p "$ac_dir"
24290 else
24291 as_dir="$ac_dir"
24292 as_dirs=
24293 while test ! -d "$as_dir"; do
24294 as_dirs="$as_dir $as_dirs"
24295 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24297 X"$as_dir" : 'X\(//\)[^/]' \| \
24298 X"$as_dir" : 'X\(//\)$' \| \
24299 X"$as_dir" : 'X\(/\)' \| \
24300 . : '\(.\)' 2>/dev/null ||
24301echo X"$as_dir" |
24302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24304 /^X\(\/\/\)$/{ s//\1/; q; }
24305 /^X\(\/\).*/{ s//\1/; q; }
24306 s/.*/./; q'`
24307 done
24308 test ! -n "$as_dirs" || mkdir $as_dirs
24309 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24310echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24311 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024312
24313 rm -f $ac_file
24314 mv $tmp/config.h $ac_file
24315 fi
24316 else
24317 cat $tmp/config.h
24318 rm -f $tmp/config.h
24319 fi
24320done
24321_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024322cat >>$CONFIG_STATUS <<\_ACEOF
24323
24324#
24325# CONFIG_COMMANDS section.
24326#
24327for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24328 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24329 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24330 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24331$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24332 X"$ac_dest" : 'X\(//\)[^/]' \| \
24333 X"$ac_dest" : 'X\(//\)$' \| \
24334 X"$ac_dest" : 'X\(/\)' \| \
24335 . : '\(.\)' 2>/dev/null ||
24336echo X"$ac_dest" |
24337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24339 /^X\(\/\/\)$/{ s//\1/; q; }
24340 /^X\(\/\).*/{ s//\1/; q; }
24341 s/.*/./; q'`
24342 ac_builddir=.
24343
24344if test "$ac_dir" != .; then
24345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24346 # A "../" for each directory in $ac_dir_suffix.
24347 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24348else
24349 ac_dir_suffix= ac_top_builddir=
24350fi
24351
24352case $srcdir in
24353 .) # No --srcdir option. We are building in place.
24354 ac_srcdir=.
24355 if test -z "$ac_top_builddir"; then
24356 ac_top_srcdir=.
24357 else
24358 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24359 fi ;;
24360 [\\/]* | ?:[\\/]* ) # Absolute path.
24361 ac_srcdir=$srcdir$ac_dir_suffix;
24362 ac_top_srcdir=$srcdir ;;
24363 *) # Relative path.
24364 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24365 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24366esac
24367# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24368# absolute.
24369ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024370ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024371ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24372ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24373
24374
24375 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24376echo "$as_me: executing $ac_dest commands" >&6;}
24377 case $ac_dest in
24378 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24379 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24380 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24381 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24382 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24383 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24384 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24385 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24386 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24387 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24388 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24389 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24390 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24391 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24392 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24393 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24394 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 +000024395 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24396 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24397 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24398 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24399 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024400 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024401 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24402 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24403 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24404 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24405 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24406 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24407 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24408 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24409 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24410 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24411 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24412 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24413 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24414 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24415 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 +000024416 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 +000024417 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24418 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24419 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24420 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 +000024421 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 +000024422 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 +000024423 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24424 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 +000024425 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24426 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24427 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24428 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024429 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24430 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024431 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24432 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24433 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24434 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24435 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24436 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24437 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24438 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24439 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24440 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24441 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24442 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24443 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24444 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24445 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24446 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24447 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24448 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 +000024449 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 +000024450 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 ;;
24451 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 ;;
24452 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 ;;
24453 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 ;;
24454 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 ;;
24455 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 ;;
24456 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 ;;
24457 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 ;;
24458 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 ;;
24459 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 ;;
24460 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 ;;
24461 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 ;;
24462 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 ;;
24463 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 ;;
24464 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 ;;
24465 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24466 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24467 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 +000024468 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24469 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 +000024470 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 ;;
24471 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 +000024472 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24473 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 ;;
24474 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 ;;
24475 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 ;;
24476 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 ;;
24477 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 ;;
24478 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 ;;
24479 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 ;;
24480 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 ;;
24481 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 ;;
24482 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 ;;
24483 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 ;;
24484 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 ;;
24485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 +000024496 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 +000024497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 +000024503 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 +000024504 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 +000024505 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24506 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24507 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24508 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 ;;
24509 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 +000024510 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24511 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24512 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 +000024513 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24514 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 +000024519 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 +000024520 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 +000024521 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 +000024522 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 +000024523 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 ;;
24524 test/Programs/SingleSource/Regression/C++/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/Makefile test/Programs/SingleSource/Regression/C++/Makefile ;;
John Criswellc66bbd52003-09-29 21:35:32 +000024525 test/Programs/SingleSource/Regression/C++/EH/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Regression/C++/EH/Makefile test/Programs/SingleSource/Regression/C++/EH/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024526 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24527 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024528 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024529 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24530 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24531 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024532 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024533 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024534 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024535 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 +000024536 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 +000024537 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 +000024538 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24539 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024540 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24541 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24542 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24543 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024544 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24545 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24546 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24547 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24548 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24549 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24550 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24551 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24552 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24553 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24554 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24555 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24556 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24557 esac
24558done
24559_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024560
24561cat >>$CONFIG_STATUS <<\_ACEOF
24562
24563{ (exit 0); exit 0; }
24564_ACEOF
24565chmod +x $CONFIG_STATUS
24566ac_clean_files=$ac_clean_files_save
24567
24568
24569# configure is writing to config.log, and then calls config.status.
24570# config.status does its own redirection, appending to config.log.
24571# Unfortunately, on DOS this fails, as config.log is still kept open
24572# by configure, so config.status won't be able to write to it; its
24573# output is simply discarded. So we exec the FD to /dev/null,
24574# effectively closing config.log, so it can be properly (re)opened and
24575# appended to by config.status. When coming back to configure, we
24576# need to make the FD available again.
24577if test "$no_create" != yes; then
24578 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024579 ac_config_status_args=
24580 test "$silent" = yes &&
24581 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024582 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024584 exec 5>>config.log
24585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24586 # would make configure fail if this is the last instruction.
24587 $ac_cs_success || { (exit 1); exit 1; }
24588fi
24589
John Criswell12399a12003-09-30 15:55:44 +000024590#
24591# CONFIG_SUBDIRS section.
24592#
24593if test "$no_recursion" != yes; then
24594
24595 # Remove --cache-file and --srcdir arguments so they do not pile up.
24596 ac_sub_configure_args=
24597 ac_prev=
24598 for ac_arg in $ac_configure_args; do
24599 if test -n "$ac_prev"; then
24600 ac_prev=
24601 continue
24602 fi
24603 case $ac_arg in
24604 -cache-file | --cache-file | --cache-fil | --cache-fi \
24605 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24606 ac_prev=cache_file ;;
24607 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24608 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24609 | --c=*)
24610 ;;
24611 --config-cache | -C)
24612 ;;
24613 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24614 ac_prev=srcdir ;;
24615 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24616 ;;
24617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24618 ac_prev=prefix ;;
24619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24620 ;;
24621 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24622 esac
24623 done
24624
24625 # Always prepend --prefix to ensure using the same prefix
24626 # in subdir configurations.
24627 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24628
24629 ac_popdir=`pwd`
24630 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24631
24632 # Do not complain, so a configure script can configure whichever
24633 # parts of a large source tree are present.
24634 test -d $srcdir/$ac_dir || continue
24635
24636 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24637echo "$as_me: configuring in $ac_dir" >&6;}
24638 { if $as_mkdir_p; then
24639 mkdir -p "$ac_dir"
24640 else
24641 as_dir="$ac_dir"
24642 as_dirs=
24643 while test ! -d "$as_dir"; do
24644 as_dirs="$as_dir $as_dirs"
24645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24647 X"$as_dir" : 'X\(//\)[^/]' \| \
24648 X"$as_dir" : 'X\(//\)$' \| \
24649 X"$as_dir" : 'X\(/\)' \| \
24650 . : '\(.\)' 2>/dev/null ||
24651echo X"$as_dir" |
24652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24654 /^X\(\/\/\)$/{ s//\1/; q; }
24655 /^X\(\/\).*/{ s//\1/; q; }
24656 s/.*/./; q'`
24657 done
24658 test ! -n "$as_dirs" || mkdir $as_dirs
24659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24660echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24661 { (exit 1); exit 1; }; }; }
24662
24663 ac_builddir=.
24664
24665if test "$ac_dir" != .; then
24666 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24667 # A "../" for each directory in $ac_dir_suffix.
24668 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24669else
24670 ac_dir_suffix= ac_top_builddir=
24671fi
24672
24673case $srcdir in
24674 .) # No --srcdir option. We are building in place.
24675 ac_srcdir=.
24676 if test -z "$ac_top_builddir"; then
24677 ac_top_srcdir=.
24678 else
24679 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24680 fi ;;
24681 [\\/]* | ?:[\\/]* ) # Absolute path.
24682 ac_srcdir=$srcdir$ac_dir_suffix;
24683 ac_top_srcdir=$srcdir ;;
24684 *) # Relative path.
24685 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24686 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24687esac
24688# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24689# absolute.
24690ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24691ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24692ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24693ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24694
24695
24696 cd $ac_dir
24697
24698 # Check for guested configure; otherwise get Cygnus style configure.
24699 if test -f $ac_srcdir/configure.gnu; then
24700 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24701 elif test -f $ac_srcdir/configure; then
24702 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24703 elif test -f $ac_srcdir/configure.in; then
24704 ac_sub_configure=$ac_configure
24705 else
24706 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24707echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24708 ac_sub_configure=
24709 fi
24710
24711 # The recursion is here.
24712 if test -n "$ac_sub_configure"; then
24713 # Make the cache file name correct relative to the subdirectory.
24714 case $cache_file in
24715 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24716 *) # Relative path.
24717 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24718 esac
24719
24720 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24721echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24722 # The eval makes quoting arguments work.
24723 eval $ac_sub_configure $ac_sub_configure_args \
24724 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24725 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24726echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24727 { (exit 1); exit 1; }; }
24728 fi
24729
24730 cd $ac_popdir
24731 done
24732fi
24733