blob: 003ae2eb81eb513bdf1b845d008100f82da7ef04 [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 Criswell12399a12003-09-30 15:55:44 +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 PURIFY PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED USE_SPEC UPB DISABLE_LLC_DIFFS JIT SPEC_ROOT BCR PAPIDIR 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)
1036 --enable-spec Compile SPEC benchmarks (default is NO)
1037 --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-spec Location of SPEC benchmarks
1051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell12399a12003-09-30 15:55:44 +00001524if test -d ${srcdir}/projects/reopt
1525then
1526
1527
1528subdirs="$subdirs projects/reopt"
1529
1530fi
1531
John Criswell559a6c12003-09-30 16:31:48 +00001532if test -d ${srcdir}/projects/poolalloc
1533then
1534
1535
1536subdirs="$subdirs projects/poolalloc"
1537
1538fi
1539
John Criswell0c38eaf2003-09-10 15:17:25 +00001540 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001541
John Criswell0c38eaf2003-09-10 15:17:25 +00001542 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001543
1544
John Criswell0c38eaf2003-09-10 15:17:25 +00001545 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001546
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001549
1550
John Criswell0c38eaf2003-09-10 15:17:25 +00001551 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001552
1553
John Criswell0c38eaf2003-09-10 15:17:25 +00001554 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001555
1556
John Criswell0c38eaf2003-09-10 15:17:25 +00001557 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001558
1559
John Criswell0c38eaf2003-09-10 15:17:25 +00001560 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001561
1562
John Criswell0c38eaf2003-09-10 15:17:25 +00001563 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001564
1565
John Criswell0c38eaf2003-09-10 15:17:25 +00001566 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001567
1568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001570
1571
John Criswell0c38eaf2003-09-10 15:17:25 +00001572 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
John Criswell0c38eaf2003-09-10 15:17:25 +00001581 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswell0c38eaf2003-09-10 15:17:25 +00001596 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001597
1598
John Criswell0c38eaf2003-09-10 15:17:25 +00001599 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell0c38eaf2003-09-10 15:17:25 +00001647 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell613758d2003-09-11 18:03:50 +00001653 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1654
1655
John Criswell0c38eaf2003-09-10 15:17:25 +00001656 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001657
1658
John Criswell0c38eaf2003-09-10 15:17:25 +00001659 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001660
1661
John Criswell0c38eaf2003-09-10 15:17:25 +00001662 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell613758d2003-09-11 18:03:50 +00001668 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1669
1670
John Criswell0c38eaf2003-09-10 15:17:25 +00001671 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001672
1673
John Criswell613758d2003-09-11 18:03:50 +00001674 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1678
1679
John Criswell0c38eaf2003-09-10 15:17:25 +00001680 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001681
1682
John Criswell0c38eaf2003-09-10 15:17:25 +00001683 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001684
1685
John Criswell0c38eaf2003-09-10 15:17:25 +00001686 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001687
1688
John Criswell0c38eaf2003-09-10 15:17:25 +00001689 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001690
1691
John Criswell08acb9b2003-09-16 02:12:45 +00001692 ac_config_commands="$ac_config_commands test/QMTestDB/QMTest/llvm.py"
1693
1694
John Criswell0c38eaf2003-09-10 15:17:25 +00001695 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001696
1697
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001699
1700
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001702
1703
John Criswell0c38eaf2003-09-10 15:17:25 +00001704 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001705
1706
John Criswell0c38eaf2003-09-10 15:17:25 +00001707 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell0c38eaf2003-09-10 15:17:25 +00001728 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001729
1730
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001732
1733
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001735
1736
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001738
1739
John Criswell0c38eaf2003-09-10 15:17:25 +00001740 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001741
1742
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001744
1745
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001747
1748
John Criswell613758d2003-09-11 18:03:50 +00001749 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1750
1751
John Criswell0c38eaf2003-09-10 15:17:25 +00001752 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001753
1754
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001756
1757
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001759
1760
John Criswell0c38eaf2003-09-10 15:17:25 +00001761 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001762
1763
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001765
1766
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001768
1769
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001771
1772
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001774
1775
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001777
1778
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001780
1781
John Criswell0c38eaf2003-09-10 15:17:25 +00001782 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001783
1784
John Criswell0c38eaf2003-09-10 15:17:25 +00001785 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001786
1787
John Criswell0c38eaf2003-09-10 15:17:25 +00001788 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001789
1790
John Criswell0c38eaf2003-09-10 15:17:25 +00001791 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001792
1793
John Criswell0c38eaf2003-09-10 15:17:25 +00001794 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001795
1796
John Criswell0c38eaf2003-09-10 15:17:25 +00001797 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001798
1799
John Criswell0c38eaf2003-09-10 15:17:25 +00001800 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001801
1802
John Criswell0c38eaf2003-09-10 15:17:25 +00001803 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001804
1805
John Criswell48e3cb92003-09-12 16:31:43 +00001806 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001807
1808
John Criswell48e3cb92003-09-12 16:31:43 +00001809 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001810
1811
John Criswell39e83892003-09-12 16:36:17 +00001812 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1813
1814
1815 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1816
1817
John Criswell48e3cb92003-09-12 16:31:43 +00001818 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001819
1820
John Criswell48e3cb92003-09-12 16:31:43 +00001821 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001822
1823
John Criswell48e3cb92003-09-12 16:31:43 +00001824 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001825
1826
John Criswell48e3cb92003-09-12 16:31:43 +00001827 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001828
1829
John Criswell48e3cb92003-09-12 16:31:43 +00001830 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001831
1832
John Criswell48e3cb92003-09-12 16:31:43 +00001833 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001834
1835
John Criswell48e3cb92003-09-12 16:31:43 +00001836 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001837
1838
John Criswell48e3cb92003-09-12 16:31:43 +00001839 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001840
1841
John Criswell48e3cb92003-09-12 16:31:43 +00001842 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001843
1844
John Criswell48e3cb92003-09-12 16:31:43 +00001845 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001846
1847
John Criswell48e3cb92003-09-12 16:31:43 +00001848 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001849
1850
John Criswell48e3cb92003-09-12 16:31:43 +00001851 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001852
1853
John Criswell48e3cb92003-09-12 16:31:43 +00001854 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001855
1856
John Criswell48e3cb92003-09-12 16:31:43 +00001857 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001858
1859
John Criswell48e3cb92003-09-12 16:31:43 +00001860 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001861
1862
John Criswell48e3cb92003-09-12 16:31:43 +00001863 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001864
1865
John Criswell48e3cb92003-09-12 16:31:43 +00001866 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001867
1868
John Criswell48e3cb92003-09-12 16:31:43 +00001869 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001870
1871
John Criswell48e3cb92003-09-12 16:31:43 +00001872 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001873
1874
John Criswell48e3cb92003-09-12 16:31:43 +00001875 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001876
1877
John Criswell48e3cb92003-09-12 16:31:43 +00001878 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001879
1880
John Criswell48e3cb92003-09-12 16:31:43 +00001881 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1882
1883
1884 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1885
1886
1887 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001888
1889
John Criswell39e83892003-09-12 16:36:17 +00001890 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001891
1892
John Criswell48e3cb92003-09-12 16:31:43 +00001893 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001894
1895
John Criswell48e3cb92003-09-12 16:31:43 +00001896 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001897
1898
John Criswell48e3cb92003-09-12 16:31:43 +00001899 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001900
1901
John Criswell48e3cb92003-09-12 16:31:43 +00001902 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001903
1904
John Criswell48e3cb92003-09-12 16:31:43 +00001905 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001906
1907
John Criswell48e3cb92003-09-12 16:31:43 +00001908 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001909
1910
John Criswell48e3cb92003-09-12 16:31:43 +00001911 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001912
1913
John Criswell48e3cb92003-09-12 16:31:43 +00001914 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001915
1916
John Criswell0c38eaf2003-09-10 15:17:25 +00001917 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001918
1919
John Criswell0c38eaf2003-09-10 15:17:25 +00001920 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001921
1922
John Criswell0c38eaf2003-09-10 15:17:25 +00001923 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001924
1925
John Criswell0c38eaf2003-09-10 15:17:25 +00001926 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001927
1928
John Criswell0c38eaf2003-09-10 15:17:25 +00001929 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001930
1931
John Criswell0c38eaf2003-09-10 15:17:25 +00001932 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001933
1934
John Criswell0c38eaf2003-09-10 15:17:25 +00001935 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001936
1937
John Criswell0c38eaf2003-09-10 15:17:25 +00001938 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001939
1940
John Criswellffaaf3b2003-09-10 18:38:44 +00001941 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1942
1943
1944 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1945
1946
1947 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1948
1949
1950 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1951
1952
1953 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1954
1955
1956 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1957
1958
John Criswell0c38eaf2003-09-10 15:17:25 +00001959 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001960
1961
John Criswell0c38eaf2003-09-10 15:17:25 +00001962 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001963
1964
John Criswell0afe8252003-09-11 20:53:48 +00001965 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1966
1967
John Criswell67181ca2003-09-26 14:53:17 +00001968 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1969
1970
John Criswell68886d42003-09-26 19:51:42 +00001971 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1972
1973
1974 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1975
1976
John Criswellc66bbd52003-09-29 21:35:32 +00001977 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1978
1979
John Criswell0c38eaf2003-09-10 15:17:25 +00001980 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001981
1982
John Criswell0c38eaf2003-09-10 15:17:25 +00001983 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001984
1985
John Criswell0c38eaf2003-09-10 15:17:25 +00001986 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001987
1988
John Criswell0c38eaf2003-09-10 15:17:25 +00001989 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001990
1991
John Criswell0c38eaf2003-09-10 15:17:25 +00001992 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001993
1994
John Criswell0c38eaf2003-09-10 15:17:25 +00001995 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001996
1997
John Criswell0c38eaf2003-09-10 15:17:25 +00001998 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001999
2000
John Criswell0c38eaf2003-09-10 15:17:25 +00002001 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002002
2003
John Criswellddb7b4e2003-09-16 15:54:19 +00002004 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002005
2006
Chris Lattnerebd70302003-09-13 03:29:53 +00002007 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2008
2009
John Criswellddb7b4e2003-09-16 15:54:19 +00002010 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2011
2012
John Criswell0c38eaf2003-09-10 15:17:25 +00002013 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002014
2015
John Criswellddb7b4e2003-09-16 15:54:19 +00002016 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2017
2018
2019 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2020
2021
John Criswell0c38eaf2003-09-10 15:17:25 +00002022 ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002023
2024
John Criswell0c38eaf2003-09-10 15:17:25 +00002025 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002026
2027
John Criswell0c38eaf2003-09-10 15:17:25 +00002028 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002029
2030
John Criswell0c38eaf2003-09-10 15:17:25 +00002031 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002032
2033
John Criswell0c38eaf2003-09-10 15:17:25 +00002034 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002035
2036
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002038
2039
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002041
2042
John Criswell0c38eaf2003-09-10 15:17:25 +00002043 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002044
2045
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002047
2048
John Criswell0c38eaf2003-09-10 15:17:25 +00002049 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002050
2051
John Criswell0c38eaf2003-09-10 15:17:25 +00002052 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002053
2054
John Criswell0c38eaf2003-09-10 15:17:25 +00002055 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002056
2057
John Criswell0c38eaf2003-09-10 15:17:25 +00002058 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002059
2060
John Criswell4e079782003-09-29 14:52:28 +00002061 ac_config_commands="$ac_config_commands support/Makefile"
2062
2063
2064 ac_config_commands="$ac_config_commands support/lib/Makefile"
2065
2066
2067 ac_config_commands="$ac_config_commands support/lib/Support/Makefile"
2068
2069
2070 ac_config_commands="$ac_config_commands support/tools/Makefile"
2071
2072
2073 ac_config_commands="$ac_config_commands support/tools/Burg/Makefile"
2074
2075
2076 ac_config_commands="$ac_config_commands support/tools/Burg/Doc/Makefile"
2077
2078
2079 ac_config_commands="$ac_config_commands support/tools/TableGen/Makefile"
2080
2081
John Criswell392aaa32003-07-22 19:18:09 +00002082
2083
John Criswell7a73b802003-06-30 21:59:07 +00002084# Find a good install program. We prefer a C program (faster),
2085# so one script is as good as another. But avoid the broken or
2086# incompatible versions:
2087# SysV /etc/install, /usr/sbin/install
2088# SunOS /usr/etc/install
2089# IRIX /sbin/install
2090# AIX /bin/install
2091# AmigaOS /C/install, which installs bootblocks on floppy discs
2092# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2093# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2094# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2095# ./install, which can be erroneously created by make from ./install.sh.
2096echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2098if test -z "$INSTALL"; then
2099if test "${ac_cv_path_install+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 # Account for people who put trailing slashes in PATH elements.
2108case $as_dir/ in
2109 ./ | .// | /cC/* | \
2110 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111 /usr/ucb/* ) ;;
2112 *)
2113 # OSF1 and SCO ODT 3.0 have their own names for install.
2114 # Don't use installbsd from OSF since it installs stuff as root
2115 # by default.
2116 for ac_prog in ginstall scoinst install; do
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2119 if test $ac_prog = install &&
2120 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # AIX install. It has an incompatible calling convention.
2122 :
2123 elif test $ac_prog = install &&
2124 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125 # program-specific install script used by HP pwplus--don't use.
2126 :
2127 else
2128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2129 break 3
2130 fi
2131 fi
2132 done
2133 done
2134 ;;
2135esac
2136done
2137
2138
2139fi
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2142 else
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2148 fi
2149fi
2150echo "$as_me:$LINENO: result: $INSTALL" >&5
2151echo "${ECHO_T}$INSTALL" >&6
2152
2153# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154# It thinks the first close brace ends the variable substitution.
2155test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2156
2157test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2158
2159test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2160
2161
2162# Make sure we can run config.sub.
2163$ac_config_sub sun4 >/dev/null 2>&1 ||
2164 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2165echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2166 { (exit 1); exit 1; }; }
2167
2168echo "$as_me:$LINENO: checking build system type" >&5
2169echo $ECHO_N "checking build system type... $ECHO_C" >&6
2170if test "${ac_cv_build+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 ac_cv_build_alias=$build_alias
2174test -z "$ac_cv_build_alias" &&
2175 ac_cv_build_alias=`$ac_config_guess`
2176test -z "$ac_cv_build_alias" &&
2177 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2178echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2179 { (exit 1); exit 1; }; }
2180ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2181 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2182echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2184
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2187echo "${ECHO_T}$ac_cv_build" >&6
2188build=$ac_cv_build
2189build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2190build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2191build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2192
2193
2194echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6
2196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 ac_cv_host_alias=$host_alias
2200test -z "$ac_cv_host_alias" &&
2201 ac_cv_host_alias=$ac_cv_build_alias
2202ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2204echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2206
2207fi
2208echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209echo "${ECHO_T}$ac_cv_host" >&6
2210host=$ac_cv_host
2211host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2212host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2213host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2214
2215
2216echo "$as_me:$LINENO: checking target system type" >&5
2217echo $ECHO_N "checking target system type... $ECHO_C" >&6
2218if test "${ac_cv_target+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 ac_cv_target_alias=$target_alias
2222test "x$ac_cv_target_alias" = "x" &&
2223 ac_cv_target_alias=$ac_cv_host_alias
2224ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2225 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2226echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2227 { (exit 1); exit 1; }; }
2228
2229fi
2230echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231echo "${ECHO_T}$ac_cv_target" >&6
2232target=$ac_cv_target
2233target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2234target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2235target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2236
2237
2238# The aliases save the names the user supplied, while $host etc.
2239# will get canonicalized.
2240test -n "$target_alias" &&
2241 test "$program_prefix$program_suffix$program_transform_name" = \
2242 NONENONEs,x,x, &&
2243 program_prefix=${target_alias}-
2244
2245case $build in
2246 *i*86*) OS=Linux
2247
John Criswellf02dbf02003-07-22 20:07:49 +00002248 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002249
2250 ;;
2251
2252 *sparc*) OS=SunOS
2253
2254 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2255
2256 ;;
2257
2258 *) OS=Unknown
2259
2260 ;;
2261esac
2262
2263case $target in
2264 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2265
2266 ;;
2267esac
2268
John Criswell76595452003-07-01 22:07:39 +00002269case $target in
2270 *i*86*) ARCH=x86
2271
2272 ;;
2273 *sparc*solaris*) ARCH=Sparc
2274
2275 ;;
2276esac
2277
John Criswell7a73b802003-06-30 21:59:07 +00002278
2279ac_ext=cc
2280ac_cpp='$CXXCPP $CPPFLAGS'
2281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2284if test -n "$ac_tool_prefix"; then
2285 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2286 do
2287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289echo "$as_me:$LINENO: checking for $ac_word" >&5
2290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291if test "${ac_cv_prog_CXX+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293else
2294 if test -n "$CXX"; then
2295 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308done
2309done
2310
2311fi
2312fi
2313CXX=$ac_cv_prog_CXX
2314if test -n "$CXX"; then
2315 echo "$as_me:$LINENO: result: $CXX" >&5
2316echo "${ECHO_T}$CXX" >&6
2317else
2318 echo "$as_me:$LINENO: result: no" >&5
2319echo "${ECHO_T}no" >&6
2320fi
2321
2322 test -n "$CXX" && break
2323 done
2324fi
2325if test -z "$CXX"; then
2326 ac_ct_CXX=$CXX
2327 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2328do
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330set dummy $ac_prog; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 if test -n "$ac_ct_CXX"; then
2337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346 ac_cv_prog_ac_ct_CXX="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2
2349 fi
2350done
2351done
2352
2353fi
2354fi
2355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2356if test -n "$ac_ct_CXX"; then
2357 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2358echo "${ECHO_T}$ac_ct_CXX" >&6
2359else
2360 echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364 test -n "$ac_ct_CXX" && break
2365done
2366test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2367
2368 CXX=$ac_ct_CXX
2369fi
2370
2371
2372# Provide some information about the compiler.
2373echo "$as_me:$LINENO:" \
2374 "checking for C++ compiler version" >&5
2375ac_compiler=`set X $ac_compile; echo $2`
2376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2377 (eval $ac_compiler --version </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2382 (eval $ac_compiler -v </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2387 (eval $ac_compiler -V </dev/null >&5) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }
2391
2392cat >conftest.$ac_ext <<_ACEOF
2393#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002394/* confdefs.h. */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002399
John Criswell7a73b802003-06-30 21:59:07 +00002400int
2401main ()
2402{
2403
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002409ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002410# Try to create an executable without -o first, disregard a.out.
2411# It will help us diagnose broken compilers, and finding out an intuition
2412# of exeext.
2413echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2414echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2415ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2416if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2417 (eval $ac_link_default) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # Find the output, starting from the most likely. This scheme is
2422# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2423# resort.
2424
2425# Be careful to initialize this variable, since it used to be cached.
2426# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2427ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002428# b.out is created by i960 compilers.
2429for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2430do
2431 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002432 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2434 ;;
2435 conftest.$ac_ext )
2436 # This is the source file.
2437 ;;
2438 [ab].out )
2439 # We found the default executable, but exeext='' is most
2440 # certainly right.
2441 break;;
2442 *.* )
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # FIXME: I believe we export ac_cv_exeext for Libtool,
2445 # but it would be cool to find out if it's true. Does anybody
2446 # maintain Libtool? --akim.
2447 export ac_cv_exeext
2448 break;;
2449 * )
2450 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002451 esac
2452done
2453else
2454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2458See \`config.log' for more details." >&5
2459echo "$as_me: error: C++ compiler cannot create executables
2460See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002461 { (exit 77); exit 77; }; }
2462fi
2463
2464ac_exeext=$ac_cv_exeext
2465echo "$as_me:$LINENO: result: $ac_file" >&5
2466echo "${ECHO_T}$ac_file" >&6
2467
2468# Check the compiler produces executables we can run. If not, either
2469# the compiler is broken, or we cross compile.
2470echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2471echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2472# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473# If not cross compiling, check that we can run a simple program.
2474if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 cross_compiling=no
2482 else
2483 if test "$cross_compiling" = maybe; then
2484 cross_compiling=yes
2485 else
2486 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002487If you meant to cross compile, use \`--host'.
2488See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002489echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002490If you meant to cross compile, use \`--host'.
2491See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002492 { (exit 1); exit 1; }; }
2493 fi
2494 fi
2495fi
2496echo "$as_me:$LINENO: result: yes" >&5
2497echo "${ECHO_T}yes" >&6
2498
John Criswell0c38eaf2003-09-10 15:17:25 +00002499rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002500ac_clean_files=$ac_clean_files_save
2501# Check the compiler produces executables we can run. If not, either
2502# the compiler is broken, or we cross compile.
2503echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2504echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2505echo "$as_me:$LINENO: result: $cross_compiling" >&5
2506echo "${ECHO_T}$cross_compiling" >&6
2507
2508echo "$as_me:$LINENO: checking for suffix of executables" >&5
2509echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2511 (eval $ac_link) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2517# work properly (i.e., refer to `conftest.exe'), while it won't with
2518# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002519for ac_file in conftest.exe conftest conftest.*; do
2520 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002521 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 export ac_cv_exeext
2525 break;;
2526 * ) break;;
2527 esac
2528done
2529else
John Criswell0c38eaf2003-09-10 15:17:25 +00002530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002534 { (exit 1); exit 1; }; }
2535fi
2536
2537rm -f conftest$ac_cv_exeext
2538echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541rm -f conftest.$ac_ext
2542EXEEXT=$ac_cv_exeext
2543ac_exeext=$EXEEXT
2544echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 cat >conftest.$ac_ext <<_ACEOF
2550#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002556
John Criswell7a73b802003-06-30 21:59:07 +00002557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.o conftest.obj
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; then
2571 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2572 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575 break;;
2576 esac
2577done
2578else
2579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2583See \`config.log' for more details." >&5
2584echo "$as_me: error: cannot compute suffix of object files: cannot compile
2585See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002586 { (exit 1); exit 1; }; }
2587fi
2588
2589rm -f conftest.$ac_cv_objext conftest.$ac_ext
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2592echo "${ECHO_T}$ac_cv_objext" >&6
2593OBJEXT=$ac_cv_objext
2594ac_objext=$OBJEXT
2595echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2596echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2597if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 cat >conftest.$ac_ext <<_ACEOF
2601#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002607
John Criswell7a73b802003-06-30 21:59:07 +00002608int
2609main ()
2610{
2611#ifndef __GNUC__
2612 choke me
2613#endif
2614
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_compiler_gnu=yes
2632else
2633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002634sed 's/^/| /' conftest.$ac_ext >&5
2635
John Criswell7a73b802003-06-30 21:59:07 +00002636ac_compiler_gnu=no
2637fi
2638rm -f conftest.$ac_objext conftest.$ac_ext
2639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2640
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2643echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2644GXX=`test $ac_compiler_gnu = yes && echo yes`
2645ac_test_CXXFLAGS=${CXXFLAGS+set}
2646ac_save_CXXFLAGS=$CXXFLAGS
2647CXXFLAGS="-g"
2648echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2649echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2650if test "${ac_cv_prog_cxx_g+set}" = set; then
2651 echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653 cat >conftest.$ac_ext <<_ACEOF
2654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002655/* confdefs.h. */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002660
John Criswell7a73b802003-06-30 21:59:07 +00002661int
2662main ()
2663{
2664
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext
2670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cxx_g=yes
2682else
2683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002684sed 's/^/| /' conftest.$ac_ext >&5
2685
John Criswell7a73b802003-06-30 21:59:07 +00002686ac_cv_prog_cxx_g=no
2687fi
2688rm -f conftest.$ac_objext conftest.$ac_ext
2689fi
2690echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692if test "$ac_test_CXXFLAGS" = set; then
2693 CXXFLAGS=$ac_save_CXXFLAGS
2694elif test $ac_cv_prog_cxx_g = yes; then
2695 if test "$GXX" = yes; then
2696 CXXFLAGS="-g -O2"
2697 else
2698 CXXFLAGS="-g"
2699 fi
2700else
2701 if test "$GXX" = yes; then
2702 CXXFLAGS="-O2"
2703 else
2704 CXXFLAGS=
2705 fi
2706fi
2707for ac_declaration in \
2708 ''\
2709 '#include <stdlib.h>' \
2710 'extern "C" void std::exit (int) throw (); using std::exit;' \
2711 'extern "C" void std::exit (int); using std::exit;' \
2712 'extern "C" void exit (int) throw ();' \
2713 'extern "C" void exit (int);' \
2714 'void exit (int);'
2715do
2716 cat >conftest.$ac_ext <<_ACEOF
2717#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002718/* confdefs.h. */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002723#include <stdlib.h>
2724$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002725int
2726main ()
2727{
2728exit (42);
2729 ;
2730 return 0;
2731}
2732_ACEOF
2733rm -f conftest.$ac_objext
2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 :
2746else
2747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002748sed 's/^/| /' conftest.$ac_ext >&5
2749
John Criswell7a73b802003-06-30 21:59:07 +00002750continue
2751fi
2752rm -f conftest.$ac_objext conftest.$ac_ext
2753 cat >conftest.$ac_ext <<_ACEOF
2754#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002760$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002761int
2762main ()
2763{
2764exit (42);
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769rm -f conftest.$ac_objext
2770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771 (eval $ac_compile) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 break
2782else
2783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002784sed 's/^/| /' conftest.$ac_ext >&5
2785
John Criswell7a73b802003-06-30 21:59:07 +00002786fi
2787rm -f conftest.$ac_objext conftest.$ac_ext
2788done
2789rm -f conftest*
2790if test -n "$ac_declaration"; then
2791 echo '#ifdef __cplusplus' >>confdefs.h
2792 echo $ac_declaration >>confdefs.h
2793 echo '#endif' >>confdefs.h
2794fi
2795
2796ac_ext=c
2797ac_cpp='$CPP $CPPFLAGS'
2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807if test -n "$ac_tool_prefix"; then
2808 for ac_prog in gcc
2809 do
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2814if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823 IFS=$as_save_IFS
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2830 fi
2831done
2832done
2833
2834fi
2835fi
2836CC=$ac_cv_prog_CC
2837if test -n "$CC"; then
2838 echo "$as_me:$LINENO: result: $CC" >&5
2839echo "${ECHO_T}$CC" >&6
2840else
2841 echo "$as_me:$LINENO: result: no" >&5
2842echo "${ECHO_T}no" >&6
2843fi
2844
2845 test -n "$CC" && break
2846 done
2847fi
2848if test -z "$CC"; then
2849 ac_ct_CC=$CC
2850 for ac_prog in gcc
2851do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853set dummy $ac_prog; ac_word=$2
2854echo "$as_me:$LINENO: checking for $ac_word" >&5
2855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858else
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861else
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_CC="$ac_prog"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873done
2874done
2875
2876fi
2877fi
2878ac_ct_CC=$ac_cv_prog_ac_ct_CC
2879if test -n "$ac_ct_CC"; then
2880 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2881echo "${ECHO_T}$ac_ct_CC" >&6
2882else
2883 echo "$as_me:$LINENO: result: no" >&5
2884echo "${ECHO_T}no" >&6
2885fi
2886
2887 test -n "$ac_ct_CC" && break
2888done
2889
2890 CC=$ac_ct_CC
2891fi
2892
2893
John Criswell0c38eaf2003-09-10 15:17:25 +00002894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2895See \`config.log' for more details." >&5
2896echo "$as_me: error: no acceptable C compiler found in \$PATH
2897See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002898 { (exit 1); exit 1; }; }
2899
2900# Provide some information about the compiler.
2901echo "$as_me:$LINENO:" \
2902 "checking for C compiler version" >&5
2903ac_compiler=`set X $ac_compile; echo $2`
2904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2905 (eval $ac_compiler --version </dev/null >&5) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2910 (eval $ac_compiler -v </dev/null >&5) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2915 (eval $ac_compiler -V </dev/null >&5) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919
2920echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2922if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
2926#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002932
John Criswell7a73b802003-06-30 21:59:07 +00002933int
2934main ()
2935{
2936#ifndef __GNUC__
2937 choke me
2938#endif
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_compiler_gnu=yes
2957else
2958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002959sed 's/^/| /' conftest.$ac_ext >&5
2960
John Criswell7a73b802003-06-30 21:59:07 +00002961ac_compiler_gnu=no
2962fi
2963rm -f conftest.$ac_objext conftest.$ac_ext
2964ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965
2966fi
2967echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2968echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2969GCC=`test $ac_compiler_gnu = yes && echo yes`
2970ac_test_CFLAGS=${CFLAGS+set}
2971ac_save_CFLAGS=$CFLAGS
2972CFLAGS="-g"
2973echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2974echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2975if test "${ac_cv_prog_cc_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977else
2978 cat >conftest.$ac_ext <<_ACEOF
2979#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002985
John Criswell7a73b802003-06-30 21:59:07 +00002986int
2987main ()
2988{
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext
2995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996 (eval $ac_compile) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -s conftest.$ac_objext'
3001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 (eval $ac_try) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; }; then
3006 ac_cv_prog_cc_g=yes
3007else
3008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003009sed 's/^/| /' conftest.$ac_ext >&5
3010
John Criswell7a73b802003-06-30 21:59:07 +00003011ac_cv_prog_cc_g=no
3012fi
3013rm -f conftest.$ac_objext conftest.$ac_ext
3014fi
3015echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3016echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3017if test "$ac_test_CFLAGS" = set; then
3018 CFLAGS=$ac_save_CFLAGS
3019elif test $ac_cv_prog_cc_g = yes; then
3020 if test "$GCC" = yes; then
3021 CFLAGS="-g -O2"
3022 else
3023 CFLAGS="-g"
3024 fi
3025else
3026 if test "$GCC" = yes; then
3027 CFLAGS="-O2"
3028 else
3029 CFLAGS=
3030 fi
3031fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003032echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3033echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3034if test "${ac_cv_prog_cc_stdc+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 ac_cv_prog_cc_stdc=no
3038ac_save_CC=$CC
3039cat >conftest.$ac_ext <<_ACEOF
3040#line $LINENO "configure"
3041/* confdefs.h. */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h. */
3046#include <stdarg.h>
3047#include <stdio.h>
3048#include <sys/types.h>
3049#include <sys/stat.h>
3050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3051struct buf { int x; };
3052FILE * (*rcsopen) (struct buf *, struct stat *, int);
3053static char *e (p, i)
3054 char **p;
3055 int i;
3056{
3057 return p[i];
3058}
3059static char *f (char * (*g) (char **, int), char **p, ...)
3060{
3061 char *s;
3062 va_list v;
3063 va_start (v,p);
3064 s = g (p, va_arg (v,int));
3065 va_end (v);
3066 return s;
3067}
3068int test (int i, double x);
3069struct s1 {int (*f) (int a);};
3070struct s2 {int (*f) (double a);};
3071int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3072int argc;
3073char **argv;
3074int
3075main ()
3076{
3077return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082# Don't try gcc -ansi; that turns off useful extensions and
3083# breaks some systems' header files.
3084# AIX -qlanglvl=ansi
3085# Ultrix and OSF/1 -std1
3086# HP-UX 10.20 and later -Ae
3087# HP-UX older versions -Aa -D_HPUX_SOURCE
3088# SVR4 -Xc -D__EXTENSIONS__
3089for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3090do
3091 CC="$ac_save_CC $ac_arg"
3092 rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_prog_cc_stdc=$ac_arg
3105break
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110fi
3111rm -f conftest.$ac_objext
3112done
3113rm -f conftest.$ac_ext conftest.$ac_objext
3114CC=$ac_save_CC
3115
3116fi
3117
3118case "x$ac_cv_prog_cc_stdc" in
3119 x|xno)
3120 echo "$as_me:$LINENO: result: none needed" >&5
3121echo "${ECHO_T}none needed" >&6 ;;
3122 *)
3123 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3124echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3125 CC="$CC $ac_cv_prog_cc_stdc" ;;
3126esac
3127
John Criswell7a73b802003-06-30 21:59:07 +00003128# Some people use a C++ compiler to compile C. Since we use `exit',
3129# in C++ we need to declare it. In case someone uses the same compiler
3130# for both compiling C and C++ we need to have the C++ compiler decide
3131# the declaration of exit, since it's the most demanding environment.
3132cat >conftest.$ac_ext <<_ACEOF
3133#ifndef __cplusplus
3134 choke me
3135#endif
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 for ac_declaration in \
3150 ''\
3151 '#include <stdlib.h>' \
3152 'extern "C" void std::exit (int) throw (); using std::exit;' \
3153 'extern "C" void std::exit (int); using std::exit;' \
3154 'extern "C" void exit (int) throw ();' \
3155 'extern "C" void exit (int);' \
3156 'void exit (int);'
3157do
3158 cat >conftest.$ac_ext <<_ACEOF
3159#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003165#include <stdlib.h>
3166$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003167int
3168main ()
3169{
3170exit (42);
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183 (eval $ac_try) 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 :
3188else
3189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003190sed 's/^/| /' conftest.$ac_ext >&5
3191
John Criswell7a73b802003-06-30 21:59:07 +00003192continue
3193fi
3194rm -f conftest.$ac_objext conftest.$ac_ext
3195 cat >conftest.$ac_ext <<_ACEOF
3196#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003202$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003203int
3204main ()
3205{
3206exit (42);
3207 ;
3208 return 0;
3209}
3210_ACEOF
3211rm -f conftest.$ac_objext
3212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 break
3224else
3225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003226sed 's/^/| /' conftest.$ac_ext >&5
3227
John Criswell7a73b802003-06-30 21:59:07 +00003228fi
3229rm -f conftest.$ac_objext conftest.$ac_ext
3230done
3231rm -f conftest*
3232if test -n "$ac_declaration"; then
3233 echo '#ifdef __cplusplus' >>confdefs.h
3234 echo $ac_declaration >>confdefs.h
3235 echo '#endif' >>confdefs.h
3236fi
3237
3238else
3239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003240sed 's/^/| /' conftest.$ac_ext >&5
3241
John Criswell7a73b802003-06-30 21:59:07 +00003242fi
3243rm -f conftest.$ac_objext conftest.$ac_ext
3244ac_ext=c
3245ac_cpp='$CPP $CPPFLAGS'
3246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3256echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3257# On Suns, sometimes $CPP names a directory.
3258if test -n "$CPP" && test -d "$CPP"; then
3259 CPP=
3260fi
3261if test -z "$CPP"; then
3262 if test "${ac_cv_prog_CPP+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265 # Double quotes because CPP needs to be expanded
3266 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3267 do
3268 ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
3284#ifdef __STDC__
3285# include <limits.h>
3286#else
3287# include <assert.h>
3288#endif
John Criswell7a73b802003-06-30 21:59:07 +00003289 Syntax error
3290_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003294 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 else
3302 ac_cpp_err=
3303 fi
3304else
3305 ac_cpp_err=yes
3306fi
3307if test -z "$ac_cpp_err"; then
3308 :
3309else
3310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003311sed 's/^/| /' conftest.$ac_ext >&5
3312
John Criswell7a73b802003-06-30 21:59:07 +00003313 # Broken: fails on valid input.
3314continue
3315fi
3316rm -f conftest.err conftest.$ac_ext
3317
3318 # OK, works on sane cases. Now check whether non-existent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3321#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003327#include <ac_nonexistent.h>
3328_ACEOF
3329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003332 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_c_preproc_warn_flag
3339 else
3340 ac_cpp_err=
3341 fi
3342else
3343 ac_cpp_err=yes
3344fi
3345if test -z "$ac_cpp_err"; then
3346 # Broken: success on invalid input.
3347continue
3348else
3349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003350sed 's/^/| /' conftest.$ac_ext >&5
3351
John Criswell7a73b802003-06-30 21:59:07 +00003352 # Passes both tests.
3353ac_preproc_ok=:
3354break
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358done
3359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360rm -f conftest.err conftest.$ac_ext
3361if $ac_preproc_ok; then
3362 break
3363fi
3364
3365 done
3366 ac_cv_prog_CPP=$CPP
3367
3368fi
3369 CPP=$ac_cv_prog_CPP
3370else
3371 ac_cv_prog_CPP=$CPP
3372fi
3373echo "$as_me:$LINENO: result: $CPP" >&5
3374echo "${ECHO_T}$CPP" >&6
3375ac_preproc_ok=false
3376for ac_c_preproc_warn_flag in '' yes
3377do
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
3391#ifdef __STDC__
3392# include <limits.h>
3393#else
3394# include <assert.h>
3395#endif
John Criswell7a73b802003-06-30 21:59:07 +00003396 Syntax error
3397_ACEOF
3398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003401 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 else
3409 ac_cpp_err=
3410 fi
3411else
3412 ac_cpp_err=yes
3413fi
3414if test -z "$ac_cpp_err"; then
3415 :
3416else
3417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003418sed 's/^/| /' conftest.$ac_ext >&5
3419
John Criswell7a73b802003-06-30 21:59:07 +00003420 # Broken: fails on valid input.
3421continue
3422fi
3423rm -f conftest.err conftest.$ac_ext
3424
3425 # OK, works on sane cases. Now check whether non-existent headers
3426 # can be detected and how.
3427 cat >conftest.$ac_ext <<_ACEOF
3428#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003434#include <ac_nonexistent.h>
3435_ACEOF
3436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003439 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_c_preproc_warn_flag
3446 else
3447 ac_cpp_err=
3448 fi
3449else
3450 ac_cpp_err=yes
3451fi
3452if test -z "$ac_cpp_err"; then
3453 # Broken: success on invalid input.
3454continue
3455else
3456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003457sed 's/^/| /' conftest.$ac_ext >&5
3458
John Criswell7a73b802003-06-30 21:59:07 +00003459 # Passes both tests.
3460ac_preproc_ok=:
3461break
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464
3465done
3466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467rm -f conftest.err conftest.$ac_ext
3468if $ac_preproc_ok; then
3469 :
3470else
John Criswell0c38eaf2003-09-10 15:17:25 +00003471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3472See \`config.log' for more details." >&5
3473echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3474See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003475 { (exit 1); exit 1; }; }
3476fi
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484
3485if test "$GCC" != "yes"
3486then
3487 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3488echo "$as_me: error: gcc required but not found" >&2;}
3489 { (exit 1); exit 1; }; }
3490fi
3491
3492if test "$GXX" != "yes"
3493then
3494 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3495echo "$as_me: error: g++ required but not found" >&2;}
3496 { (exit 1); exit 1; }; }
3497fi
3498
John Criswellde00db22003-08-25 16:49:54 +00003499gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3500if test "$gccmajor" -lt "3"
3501then
3502 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3503echo "$as_me: error: gcc 3.x required" >&2;}
3504 { (exit 1); exit 1; }; }
3505fi
3506
John Criswell7a73b802003-06-30 21:59:07 +00003507 echo "$as_me:$LINENO: checking for GNU make" >&5
3508echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3509if test "${_cv_gnu_make_command+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 _cv_gnu_make_command='' ;
3513 for a in "$MAKE" make gmake gnumake ; do
3514 if test -z "$a" ; then continue ; fi ;
3515 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3516 _cv_gnu_make_command=$a ;
3517 break;
3518 fi
3519 done ;
3520
3521fi
3522echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3523echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3524 if test "x$_cv_gnu_make_command" != "x" ; then
3525 ifGNUmake='' ;
3526 else
3527 ifGNUmake='#' ;
3528 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3529echo "${ECHO_T}\"Not found\"" >&6;
3530 fi
3531
3532
3533if test -z "$_cv_gnu_make_command"
3534then
3535 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3536echo "$as_me: error: GNU Make required but not found" >&2;}
3537 { (exit 1); exit 1; }; }
3538fi
3539
3540
3541echo "$as_me:$LINENO: checking " >&5
3542echo $ECHO_N "checking ... $ECHO_C" >&6
3543if test "${ac_cv_has_flex+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 for ac_prog in flex lex
3547do
3548 # Extract the first word of "$ac_prog", so it can be a program name with args.
3549set dummy $ac_prog; ac_word=$2
3550echo "$as_me:$LINENO: checking for $ac_word" >&5
3551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552if test "${ac_cv_prog_LEX+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 if test -n "$LEX"; then
3556 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3557else
3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_LEX="$ac_prog"
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569done
3570done
3571
3572fi
3573fi
3574LEX=$ac_cv_prog_LEX
3575if test -n "$LEX"; then
3576 echo "$as_me:$LINENO: result: $LEX" >&5
3577echo "${ECHO_T}$LEX" >&6
3578else
3579 echo "$as_me:$LINENO: result: no" >&5
3580echo "${ECHO_T}no" >&6
3581fi
3582
3583 test -n "$LEX" && break
3584done
3585test -n "$LEX" || LEX=":"
3586
3587if test -z "$LEXLIB"
3588then
3589 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3590echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3591if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 ac_check_lib_save_LIBS=$LIBS
3595LIBS="-lfl $LIBS"
3596cat >conftest.$ac_ext <<_ACEOF
3597#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003598/* confdefs.h. */
3599_ACEOF
3600cat confdefs.h >>conftest.$ac_ext
3601cat >>conftest.$ac_ext <<_ACEOF
3602/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003603
3604/* Override any gcc2 internal prototype to avoid an error. */
3605#ifdef __cplusplus
3606extern "C"
3607#endif
3608/* We use char because int might match the return type of a gcc2
3609 builtin and then its argument prototype would still apply. */
3610char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003611int
3612main ()
3613{
3614yywrap ();
3615 ;
3616 return 0;
3617}
3618_ACEOF
3619rm -f conftest.$ac_objext conftest$ac_exeext
3620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3621 (eval $ac_link) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -s conftest$ac_exeext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 ac_cv_lib_fl_yywrap=yes
3632else
3633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003634sed 's/^/| /' conftest.$ac_ext >&5
3635
John Criswell7a73b802003-06-30 21:59:07 +00003636ac_cv_lib_fl_yywrap=no
3637fi
3638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3639LIBS=$ac_check_lib_save_LIBS
3640fi
3641echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3642echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3643if test $ac_cv_lib_fl_yywrap = yes; then
3644 LEXLIB="-lfl"
3645else
3646 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3647echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3648if test "${ac_cv_lib_l_yywrap+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 ac_check_lib_save_LIBS=$LIBS
3652LIBS="-ll $LIBS"
3653cat >conftest.$ac_ext <<_ACEOF
3654#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003655/* confdefs.h. */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003660
3661/* Override any gcc2 internal prototype to avoid an error. */
3662#ifdef __cplusplus
3663extern "C"
3664#endif
3665/* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3667char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003668int
3669main ()
3670{
3671yywrap ();
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext conftest$ac_exeext
3677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678 (eval $ac_link) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_lib_l_yywrap=yes
3689else
3690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003691sed 's/^/| /' conftest.$ac_ext >&5
3692
John Criswell7a73b802003-06-30 21:59:07 +00003693ac_cv_lib_l_yywrap=no
3694fi
3695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3696LIBS=$ac_check_lib_save_LIBS
3697fi
3698echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3699echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3700if test $ac_cv_lib_l_yywrap = yes; then
3701 LEXLIB="-ll"
3702fi
3703
3704fi
3705
3706fi
3707
3708if test "x$LEX" != "x:"; then
3709 echo "$as_me:$LINENO: checking lex output file root" >&5
3710echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3711if test "${ac_cv_prog_lex_root+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 # The minimal lex program is just a single line: %%. But some broken lexes
3715# (Solaris, I think it was) want two %% lines, so accommodate them.
3716cat >conftest.l <<_ACEOF
3717%%
3718%%
3719_ACEOF
3720{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3721 (eval $LEX conftest.l) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }
3725if test -f lex.yy.c; then
3726 ac_cv_prog_lex_root=lex.yy
3727elif test -f lexyy.c; then
3728 ac_cv_prog_lex_root=lexyy
3729else
3730 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3731echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3732 { (exit 1); exit 1; }; }
3733fi
3734fi
3735echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3736echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3737rm -f conftest.l
3738LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3739
3740echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3741echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3742if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 # POSIX says lex can declare yytext either as a pointer or an array; the
3746# default is implementation-dependent. Figure out which it is, since
3747# not all implementations provide the %pointer and %array declarations.
3748ac_cv_prog_lex_yytext_pointer=no
3749echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3750ac_save_LIBS=$LIBS
3751LIBS="$LIBS $LEXLIB"
3752cat >conftest.$ac_ext <<_ACEOF
3753`cat $LEX_OUTPUT_ROOT.c`
3754_ACEOF
3755rm -f conftest.$ac_objext conftest$ac_exeext
3756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest$ac_exeext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 ac_cv_prog_lex_yytext_pointer=yes
3768else
3769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003770sed 's/^/| /' conftest.$ac_ext >&5
3771
John Criswell7a73b802003-06-30 21:59:07 +00003772fi
3773rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3774LIBS=$ac_save_LIBS
3775rm -f "${LEX_OUTPUT_ROOT}.c"
3776
3777fi
3778echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3779echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3780if test $ac_cv_prog_lex_yytext_pointer = yes; then
3781
3782cat >>confdefs.h <<\_ACEOF
3783#define YYTEXT_POINTER 1
3784_ACEOF
3785
3786fi
3787
3788fi
3789
3790fi
3791echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3792echo "${ECHO_T}$ac_cv_has_flex" >&6
3793if test "$LEX" != "flex"; then
3794 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3795echo "$as_me: error: flex not found but required" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
3799echo "$as_me:$LINENO: checking " >&5
3800echo $ECHO_N "checking ... $ECHO_C" >&6
3801if test "${ac_cv_has_bison+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804 for ac_prog in 'bison -y' byacc
3805do
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807set dummy $ac_prog; ac_word=$2
3808echo "$as_me:$LINENO: checking for $ac_word" >&5
3809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810if test "${ac_cv_prog_YACC+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813 if test -n "$YACC"; then
3814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_YACC="$ac_prog"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828done
3829
3830fi
3831fi
3832YACC=$ac_cv_prog_YACC
3833if test -n "$YACC"; then
3834 echo "$as_me:$LINENO: result: $YACC" >&5
3835echo "${ECHO_T}$YACC" >&6
3836else
3837 echo "$as_me:$LINENO: result: no" >&5
3838echo "${ECHO_T}no" >&6
3839fi
3840
3841 test -n "$YACC" && break
3842done
3843test -n "$YACC" || YACC="yacc"
3844
3845
3846fi
3847echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3848echo "${ECHO_T}$ac_cv_has_bison" >&6
3849if test "$YACC" != "bison -y"; then
3850 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3851echo "$as_me: error: bison not found but required" >&2;}
3852 { (exit 1); exit 1; }; }
3853else
3854 YACC=bison
3855
3856fi
3857
3858
3859# Check whether --enable-shared or --disable-shared was given.
3860if test "${enable_shared+set}" = set; then
3861 enableval="$enable_shared"
3862 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003863 case $enableval in
3864 yes) enable_shared=yes ;;
3865 no) enable_shared=no ;;
3866 *)
3867 enable_shared=no
3868 # Look at the argument we got. We use all the common list separators.
3869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3870 for pkg in $enableval; do
3871 IFS="$lt_save_ifs"
3872 if test "X$pkg" = "X$p"; then
3873 enable_shared=yes
3874 fi
3875 done
3876 IFS="$lt_save_ifs"
3877 ;;
3878 esac
John Criswell7a73b802003-06-30 21:59:07 +00003879else
3880 enable_shared=yes
3881fi;
John Criswell47fdd832003-07-14 16:52:07 +00003882
John Criswell7a73b802003-06-30 21:59:07 +00003883# Check whether --enable-static or --disable-static was given.
3884if test "${enable_static+set}" = set; then
3885 enableval="$enable_static"
3886 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003887 case $enableval in
3888 yes) enable_static=yes ;;
3889 no) enable_static=no ;;
3890 *)
3891 enable_static=no
3892 # Look at the argument we got. We use all the common list separators.
3893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3894 for pkg in $enableval; do
3895 IFS="$lt_save_ifs"
3896 if test "X$pkg" = "X$p"; then
3897 enable_static=yes
3898 fi
3899 done
3900 IFS="$lt_save_ifs"
3901 ;;
3902 esac
John Criswell7a73b802003-06-30 21:59:07 +00003903else
3904 enable_static=yes
3905fi;
John Criswell47fdd832003-07-14 16:52:07 +00003906
John Criswell7a73b802003-06-30 21:59:07 +00003907# Check whether --enable-fast-install or --disable-fast-install was given.
3908if test "${enable_fast_install+set}" = set; then
3909 enableval="$enable_fast_install"
3910 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003911 case $enableval in
3912 yes) enable_fast_install=yes ;;
3913 no) enable_fast_install=no ;;
3914 *)
3915 enable_fast_install=no
3916 # Look at the argument we got. We use all the common list separators.
3917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3918 for pkg in $enableval; do
3919 IFS="$lt_save_ifs"
3920 if test "X$pkg" = "X$p"; then
3921 enable_fast_install=yes
3922 fi
3923 done
3924 IFS="$lt_save_ifs"
3925 ;;
3926 esac
John Criswell7a73b802003-06-30 21:59:07 +00003927else
3928 enable_fast_install=yes
3929fi;
John Criswell47fdd832003-07-14 16:52:07 +00003930
3931echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3932echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3933if test "${lt_cv_path_SED+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 # Loop through the user's path and test for sed and gsed.
3937# Then use that list of sed's as ones to test for truncation.
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for lt_ac_prog in sed gsed; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3946 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3947 fi
3948 done
3949 done
3950done
3951lt_ac_max=0
3952lt_ac_count=0
3953# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3954# along with /bin/sed that truncates output.
3955for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3956 test ! -f $lt_ac_sed && break
3957 cat /dev/null > conftest.in
3958 lt_ac_count=0
3959 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3960 # Check for GNU sed and select it if it is found.
3961 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3962 lt_cv_path_SED=$lt_ac_sed
3963 break
3964 fi
3965 while true; do
3966 cat conftest.in conftest.in >conftest.tmp
3967 mv conftest.tmp conftest.in
3968 cp conftest.in conftest.nl
3969 echo >>conftest.nl
3970 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3971 cmp -s conftest.out conftest.nl || break
3972 # 10000 chars as input seems more than enough
3973 test $lt_ac_count -gt 10 && break
3974 lt_ac_count=`expr $lt_ac_count + 1`
3975 if test $lt_ac_count -gt $lt_ac_max; then
3976 lt_ac_max=$lt_ac_count
3977 lt_cv_path_SED=$lt_ac_sed
3978 fi
3979 done
3980done
3981SED=$lt_cv_path_SED
3982
John Criswell7a73b802003-06-30 21:59:07 +00003983fi
3984
John Criswell47fdd832003-07-14 16:52:07 +00003985echo "$as_me:$LINENO: result: $SED" >&5
3986echo "${ECHO_T}$SED" >&6
3987
3988echo "$as_me:$LINENO: checking for egrep" >&5
3989echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3990if test "${ac_cv_prog_egrep+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3994 then ac_cv_prog_egrep='grep -E'
3995 else ac_cv_prog_egrep='egrep'
3996 fi
3997fi
3998echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3999echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4000 EGREP=$ac_cv_prog_egrep
4001
4002
John Criswell7a73b802003-06-30 21:59:07 +00004003
4004# Check whether --with-gnu-ld or --without-gnu-ld was given.
4005if test "${with_gnu_ld+set}" = set; then
4006 withval="$with_gnu_ld"
4007 test "$withval" = no || with_gnu_ld=yes
4008else
4009 with_gnu_ld=no
4010fi;
4011ac_prog=ld
4012if test "$GCC" = yes; then
4013 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00004014 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4015echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004016 case $host in
4017 *-*-mingw*)
4018 # gcc leaves a trailing carriage return which upsets mingw
4019 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4020 *)
4021 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4022 esac
4023 case $ac_prog in
4024 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004025 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004026 re_direlt='/[^/][^/]*/\.\./'
4027 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004028 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004029 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004030 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004031 done
4032 test -z "$LD" && LD="$ac_prog"
4033 ;;
4034 "")
4035 # If it fails, then pretend we aren't using GCC.
4036 ac_prog=ld
4037 ;;
4038 *)
4039 # If it is relative, then search for the first ld in PATH.
4040 with_gnu_ld=unknown
4041 ;;
4042 esac
4043elif test "$with_gnu_ld" = yes; then
4044 echo "$as_me:$LINENO: checking for GNU ld" >&5
4045echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4046else
4047 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4048echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4049fi
4050if test "${lt_cv_path_LD+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4052else
4053 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004055 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004056 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004057 test -z "$ac_dir" && ac_dir=.
4058 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4059 lt_cv_path_LD="$ac_dir/$ac_prog"
4060 # Check to see if the program is GNU ld. I'd rather use --version,
4061 # but apparently some GNU ld's only accept -v.
4062 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004063 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004065 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004066 ;;
4067 *)
John Criswell7a73b802003-06-30 21:59:07 +00004068 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004069 ;;
4070 esac
John Criswell7a73b802003-06-30 21:59:07 +00004071 fi
4072 done
John Criswell47fdd832003-07-14 16:52:07 +00004073 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004074else
4075 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4076fi
4077fi
4078
4079LD="$lt_cv_path_LD"
4080if test -n "$LD"; then
4081 echo "$as_me:$LINENO: result: $LD" >&5
4082echo "${ECHO_T}$LD" >&6
4083else
4084 echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086fi
4087test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4088echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4089 { (exit 1); exit 1; }; }
4090echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4091echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4092if test "${lt_cv_prog_gnu_ld+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004096case `"$LD" -v 2>&1 </dev/null` in
4097*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004098 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004099 ;;
4100*)
John Criswell7a73b802003-06-30 21:59:07 +00004101 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004102 ;;
4103esac
John Criswell7a73b802003-06-30 21:59:07 +00004104fi
4105echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4106echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4107with_gnu_ld=$lt_cv_prog_gnu_ld
4108
4109
4110echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4111echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4112if test "${lt_cv_ld_reload_flag+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 lt_cv_ld_reload_flag='-r'
4116fi
4117echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4118echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4119reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004120case $reload_flag in
4121"" | " "*) ;;
4122*) reload_flag=" $reload_flag" ;;
4123esac
4124reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004125
4126echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4127echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4128if test "${lt_cv_path_NM+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131 if test -n "$NM"; then
4132 # Let the user override the test.
4133 lt_cv_path_NM="$NM"
4134else
John Criswell47fdd832003-07-14 16:52:07 +00004135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004136 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004137 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004138 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004139 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4140 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004141 # Check to see if the nm accepts a BSD-compat flag.
4142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4143 # nm: unknown option "B" ignored
4144 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004145 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4146 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004147 lt_cv_path_NM="$tmp_nm -B"
4148 break
John Criswell47fdd832003-07-14 16:52:07 +00004149 ;;
4150 *)
4151 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4152 */dev/null*)
4153 lt_cv_path_NM="$tmp_nm -p"
4154 break
4155 ;;
4156 *)
4157 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4158 continue # so that we can try to find one that supports BSD flags
4159 ;;
4160 esac
4161 esac
John Criswell7a73b802003-06-30 21:59:07 +00004162 fi
4163 done
John Criswell47fdd832003-07-14 16:52:07 +00004164 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004165 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4166fi
4167fi
John Criswell47fdd832003-07-14 16:52:07 +00004168echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4169echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004170NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004171
4172echo "$as_me:$LINENO: checking whether ln -s works" >&5
4173echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4174LN_S=$as_ln_s
4175if test "$LN_S" = "ln -s"; then
4176 echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
4178else
4179 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4180echo "${ECHO_T}no, using $LN_S" >&6
4181fi
4182
John Criswell47fdd832003-07-14 16:52:07 +00004183echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4184echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004185if test "${lt_cv_deplibs_check_method+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 lt_cv_file_magic_cmd='$MAGIC_CMD'
4189lt_cv_file_magic_test_file=
4190lt_cv_deplibs_check_method='unknown'
4191# Need to set the preceding variable on all platforms that support
4192# interlibrary dependencies.
4193# 'none' -- dependencies not supported.
4194# `unknown' -- same as none, but documents that we really don't know.
4195# 'pass_all' -- all dependencies passed with no checks.
4196# 'test_compile' -- check by making test program.
4197# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004198# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004199# If you have `file' or equivalent on your system and you're not sure
4200# whether `pass_all' will *always* work, you probably want this one.
4201
4202case $host_os in
4203aix4* | aix5*)
4204 lt_cv_deplibs_check_method=pass_all
4205 ;;
4206
4207beos*)
4208 lt_cv_deplibs_check_method=pass_all
4209 ;;
4210
4211bsdi4*)
4212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4213 lt_cv_file_magic_cmd='/usr/bin/file -L'
4214 lt_cv_file_magic_test_file=/shlib/libc.so
4215 ;;
4216
4217cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004218 # win32_libid is a shell function defined in ltmain.sh
4219 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4220 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004221 ;;
4222
4223darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004224 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004225 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4226 lt_cv_file_magic_cmd='/usr/bin/file -L'
4227 case "$host_os" in
4228 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004229 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004230 ;;
4231 *) # Darwin 1.3 on
4232 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4233 ;;
4234 esac
John Criswell47fdd832003-07-14 16:52:07 +00004235 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004236 ;;
4237
4238freebsd*)
4239 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4240 case $host_cpu in
4241 i*86 )
4242 # Not sure whether the presence of OpenBSD here was a mistake.
4243 # Let's accept both of them until this is cleared up.
4244 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4245 lt_cv_file_magic_cmd=/usr/bin/file
4246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4247 ;;
4248 esac
4249 else
4250 lt_cv_deplibs_check_method=pass_all
4251 fi
4252 ;;
4253
4254gnu*)
4255 lt_cv_deplibs_check_method=pass_all
4256 ;;
4257
John Criswell47fdd832003-07-14 16:52:07 +00004258hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004259 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004260 case "$host_cpu" in
4261 ia64*)
4262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4264 ;;
4265 hppa*64*)
4266 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]'
4267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4268 ;;
4269 *)
4270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4271 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4272 ;;
4273 esac
John Criswell7a73b802003-06-30 21:59:07 +00004274 ;;
4275
John Criswell47fdd832003-07-14 16:52:07 +00004276irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004277 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004278 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004279 # this will be overridden with pass_all, but let us keep it just in case
4280 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4281 ;;
4282 *)
4283 case $LD in
4284 *-32|*"-32 ") libmagic=32-bit;;
4285 *-n32|*"-n32 ") libmagic=N32;;
4286 *-64|*"-64 ") libmagic=64-bit;;
4287 *) libmagic=never-match;;
4288 esac
4289 # this will be overridden with pass_all, but let us keep it just in case
4290 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4291 ;;
4292 esac
4293 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296
4297# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004298linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004299 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004300 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004301 lt_cv_deplibs_check_method=pass_all ;;
4302 *)
4303 # glibc up to 2.1.1 does not perform some relocations on ARM
4304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4305 esac
4306 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4307 ;;
4308
4309netbsd*)
4310 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004312 else
John Criswell47fdd832003-07-14 16:52:07 +00004313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004314 fi
4315 ;;
4316
4317newos6*)
4318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4319 lt_cv_file_magic_cmd=/usr/bin/file
4320 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4321 ;;
4322
John Criswell47fdd832003-07-14 16:52:07 +00004323nto-qnx)
4324 lt_cv_deplibs_check_method=unknown
4325 ;;
4326
John Criswell7a73b802003-06-30 21:59:07 +00004327openbsd*)
4328 lt_cv_file_magic_cmd=/usr/bin/file
4329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4332 else
4333 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4334 fi
4335 ;;
4336
4337osf3* | osf4* | osf5*)
4338 # this will be overridden with pass_all, but let us keep it just in case
4339 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4340 lt_cv_file_magic_test_file=/shlib/libc.so
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344sco3.2v5*)
4345 lt_cv_deplibs_check_method=pass_all
4346 ;;
4347
4348solaris*)
4349 lt_cv_deplibs_check_method=pass_all
4350 lt_cv_file_magic_test_file=/lib/libc.so
4351 ;;
4352
John Criswell7a73b802003-06-30 21:59:07 +00004353sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4354 case $host_vendor in
4355 motorola)
4356 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]'
4357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4358 ;;
4359 ncr)
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362 sequent)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4365 ;;
4366 sni)
4367 lt_cv_file_magic_cmd='/bin/file'
4368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4369 lt_cv_file_magic_test_file=/lib/libc.so
4370 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004371 siemens)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004374 esac
4375 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004376
4377sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4379 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004380esac
4381
4382fi
4383echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4384echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4385file_magic_cmd=$lt_cv_file_magic_cmd
4386deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004387test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004388
4389
4390
4391
John Criswell47fdd832003-07-14 16:52:07 +00004392# If no C compiler was specified, use CC.
4393LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004394
John Criswell47fdd832003-07-14 16:52:07 +00004395# Allow CC to be a program name with arguments.
4396compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004397
John Criswell47fdd832003-07-14 16:52:07 +00004398# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4399if test "${enable_libtool_lock+set}" = set; then
4400 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004401
John Criswell47fdd832003-07-14 16:52:07 +00004402fi;
4403test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004404
John Criswell47fdd832003-07-14 16:52:07 +00004405# Some flags need to be propagated to the compiler or linker for good
4406# libtool support.
4407case $host in
4408ia64-*-hpux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004416 case `/usr/bin/file conftest.$ac_objext` in
4417 *ELF-32*)
4418 HPUX_IA64_MODE="32"
4419 ;;
4420 *ELF-64*)
4421 HPUX_IA64_MODE="64"
4422 ;;
4423 esac
4424 fi
4425 rm -rf conftest*
4426 ;;
4427*-*-irix6*)
4428 # Find out which ABI we are using.
John Criswell78227592003-09-30 19:41:15 +00004429 echo '#line 4429 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004434 (exit $ac_status); }; then
4435 if test "$lt_cv_prog_gnu_ld" = yes; then
4436 case `/usr/bin/file conftest.$ac_objext` in
4437 *32-bit*)
4438 LD="${LD-ld} -melf32bsmip"
4439 ;;
4440 *N32*)
4441 LD="${LD-ld} -melf32bmipn32"
4442 ;;
4443 *64-bit*)
4444 LD="${LD-ld} -melf64bmip"
4445 ;;
4446 esac
4447 else
4448 case `/usr/bin/file conftest.$ac_objext` in
4449 *32-bit*)
4450 LD="${LD-ld} -32"
4451 ;;
4452 *N32*)
4453 LD="${LD-ld} -n32"
4454 ;;
4455 *64-bit*)
4456 LD="${LD-ld} -64"
4457 ;;
4458 esac
4459 fi
4460 fi
4461 rm -rf conftest*
4462 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004463
John Criswell47fdd832003-07-14 16:52:07 +00004464x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4465 # Find out which ABI we are using.
4466 echo 'int i;' > conftest.$ac_ext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; then
4472 case "`/usr/bin/file conftest.o`" in
4473 *32-bit*)
4474 case $host in
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_i386"
4477 ;;
4478 ppc64-*linux*)
4479 LD="${LD-ld} -m elf32ppclinux"
4480 ;;
4481 s390x-*linux*)
4482 LD="${LD-ld} -m elf_s390"
4483 ;;
4484 sparc64-*linux*)
4485 LD="${LD-ld} -m elf32_sparc"
4486 ;;
4487 esac
4488 ;;
4489 *64-bit*)
4490 case $host in
4491 x86_64-*linux*)
4492 LD="${LD-ld} -m elf_x86_64"
4493 ;;
4494 ppc*-*linux*|powerpc*-*linux*)
4495 LD="${LD-ld} -m elf64ppc"
4496 ;;
4497 s390*-*linux*)
4498 LD="${LD-ld} -m elf64_s390"
4499 ;;
4500 sparc*-*linux*)
4501 LD="${LD-ld} -m elf64_sparc"
4502 ;;
4503 esac
4504 ;;
4505 esac
4506 fi
4507 rm -rf conftest*
4508 ;;
4509
4510*-*-sco3.2v5*)
4511 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4512 SAVE_CFLAGS="$CFLAGS"
4513 CFLAGS="$CFLAGS -belf"
4514 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4515echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4516if test "${lt_cv_cc_needs_belf+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 ac_ext=c
4520ac_cpp='$CPP $CPPFLAGS'
4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524
4525 cat >conftest.$ac_ext <<_ACEOF
4526#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004527/* confdefs.h. */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4531/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004532
John Criswell47fdd832003-07-14 16:52:07 +00004533int
4534main ()
John Criswell7a73b802003-06-30 21:59:07 +00004535{
John Criswell7a73b802003-06-30 21:59:07 +00004536
John Criswell47fdd832003-07-14 16:52:07 +00004537 ;
4538 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004539}
John Criswell47fdd832003-07-14 16:52:07 +00004540_ACEOF
4541rm -f conftest.$ac_objext conftest$ac_exeext
4542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004543 (eval $ac_link) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004554else
John Criswell47fdd832003-07-14 16:52:07 +00004555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004556sed 's/^/| /' conftest.$ac_ext >&5
4557
John Criswell47fdd832003-07-14 16:52:07 +00004558lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004559fi
John Criswell47fdd832003-07-14 16:52:07 +00004560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4561 ac_ext=c
4562ac_cpp='$CPP $CPPFLAGS'
4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
John Criswell7a73b802003-06-30 21:59:07 +00004567fi
John Criswell47fdd832003-07-14 16:52:07 +00004568echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4569echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4570 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4572 CFLAGS="$SAVE_CFLAGS"
4573 fi
4574 ;;
4575
4576esac
4577
4578need_locks="$enable_libtool_lock"
4579
John Criswell7a73b802003-06-30 21:59:07 +00004580
4581
4582echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4584if test "${ac_cv_header_stdc+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587 cat >conftest.$ac_ext <<_ACEOF
4588#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004594#include <stdlib.h>
4595#include <stdarg.h>
4596#include <string.h>
4597#include <float.h>
4598
John Criswell0c38eaf2003-09-10 15:17:25 +00004599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
John Criswell7a73b802003-06-30 21:59:07 +00004606_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004607rm -f conftest.$ac_objext
4608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004610 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004619 ac_cv_header_stdc=yes
4620else
4621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004625fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004626rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004627
4628if test $ac_cv_header_stdc = yes; then
4629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4630 cat >conftest.$ac_ext <<_ACEOF
4631#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004637#include <string.h>
4638
4639_ACEOF
4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004641 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004642 :
4643else
4644 ac_cv_header_stdc=no
4645fi
4646rm -f conftest*
4647
4648fi
4649
4650if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat >conftest.$ac_ext <<_ACEOF
4653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004659#include <stdlib.h>
4660
4661_ACEOF
4662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004663 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004664 :
4665else
4666 ac_cv_header_stdc=no
4667fi
4668rm -f conftest*
4669
4670fi
4671
4672if test $ac_cv_header_stdc = yes; then
4673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4674 if test "$cross_compiling" = yes; then
4675 :
4676else
4677 cat >conftest.$ac_ext <<_ACEOF
4678#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004679/* confdefs.h. */
4680_ACEOF
4681cat confdefs.h >>conftest.$ac_ext
4682cat >>conftest.$ac_ext <<_ACEOF
4683/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004684#include <ctype.h>
4685#if ((' ' & 0x0FF) == 0x020)
4686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4688#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004689# define ISLOWER(c) \
4690 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004691 || ('j' <= (c) && (c) <= 'r') \
4692 || ('s' <= (c) && (c) <= 'z'))
4693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694#endif
4695
4696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4697int
4698main ()
4699{
4700 int i;
4701 for (i = 0; i < 256; i++)
4702 if (XOR (islower (i), ISLOWER (i))
4703 || toupper (i) != TOUPPER (i))
4704 exit(2);
4705 exit (0);
4706}
4707_ACEOF
4708rm -f conftest$ac_exeext
4709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4710 (eval $ac_link) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 :
4720else
4721 echo "$as_me: program exited with status $ac_status" >&5
4722echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004723sed 's/^/| /' conftest.$ac_ext >&5
4724
John Criswell7a73b802003-06-30 21:59:07 +00004725( exit $ac_status )
4726ac_cv_header_stdc=no
4727fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004728rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004729fi
4730fi
4731fi
4732echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4733echo "${ECHO_T}$ac_cv_header_stdc" >&6
4734if test $ac_cv_header_stdc = yes; then
4735
4736cat >>confdefs.h <<\_ACEOF
4737#define STDC_HEADERS 1
4738_ACEOF
4739
4740fi
4741
4742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4753 inttypes.h stdint.h unistd.h
4754do
4755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4756echo "$as_me:$LINENO: checking for $ac_header" >&5
4757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
4761 cat >conftest.$ac_ext <<_ACEOF
4762#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004768$ac_includes_default
4769
4770#include <$ac_header>
4771_ACEOF
4772rm -f conftest.$ac_objext
4773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
4778 { ac_try='test -s conftest.$ac_objext'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 (eval $ac_try) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; }; then
4784 eval "$as_ac_Header=yes"
4785else
4786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004787sed 's/^/| /' conftest.$ac_ext >&5
4788
John Criswell7a73b802003-06-30 21:59:07 +00004789eval "$as_ac_Header=no"
4790fi
4791rm -f conftest.$ac_objext conftest.$ac_ext
4792fi
4793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795if test `eval echo '${'$as_ac_Header'}'` = yes; then
4796 cat >>confdefs.h <<_ACEOF
4797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4798_ACEOF
4799
4800fi
4801
4802done
4803
4804
4805
4806for ac_header in dlfcn.h
4807do
4808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4809if eval "test \"\${$as_ac_Header+set}\" = set"; then
4810 echo "$as_me:$LINENO: checking for $ac_header" >&5
4811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4812if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814fi
4815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4817else
4818 # Is the header compilable?
4819echo "$as_me:$LINENO: checking $ac_header usability" >&5
4820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4821cat >conftest.$ac_ext <<_ACEOF
4822#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004823/* confdefs.h. */
4824_ACEOF
4825cat confdefs.h >>conftest.$ac_ext
4826cat >>conftest.$ac_ext <<_ACEOF
4827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004828$ac_includes_default
4829#include <$ac_header>
4830_ACEOF
4831rm -f conftest.$ac_objext
4832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 ac_header_compiler=yes
4844else
4845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004846sed 's/^/| /' conftest.$ac_ext >&5
4847
John Criswell7a73b802003-06-30 21:59:07 +00004848ac_header_compiler=no
4849fi
4850rm -f conftest.$ac_objext conftest.$ac_ext
4851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4852echo "${ECHO_T}$ac_header_compiler" >&6
4853
4854# Is the header present?
4855echo "$as_me:$LINENO: checking $ac_header presence" >&5
4856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4857cat >conftest.$ac_ext <<_ACEOF
4858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004864#include <$ac_header>
4865_ACEOF
4866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004869 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null; then
4874 if test -s conftest.err; then
4875 ac_cpp_err=$ac_c_preproc_warn_flag
4876 else
4877 ac_cpp_err=
4878 fi
4879else
4880 ac_cpp_err=yes
4881fi
4882if test -z "$ac_cpp_err"; then
4883 ac_header_preproc=yes
4884else
4885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004886sed 's/^/| /' conftest.$ac_ext >&5
4887
John Criswell7a73b802003-06-30 21:59:07 +00004888 ac_header_preproc=no
4889fi
4890rm -f conftest.err conftest.$ac_ext
4891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4892echo "${ECHO_T}$ac_header_preproc" >&6
4893
4894# So? What about this header?
4895case $ac_header_compiler:$ac_header_preproc in
4896 yes:no )
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901 (
4902 cat <<\_ASBOX
4903## ------------------------------------ ##
4904## Report this to bug-autoconf@gnu.org. ##
4905## ------------------------------------ ##
4906_ASBOX
4907 ) |
4908 sed "s/^/$as_me: WARNING: /" >&2
4909 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004910 no:yes )
4911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004916echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4917 (
4918 cat <<\_ASBOX
4919## ------------------------------------ ##
4920## Report this to bug-autoconf@gnu.org. ##
4921## ------------------------------------ ##
4922_ASBOX
4923 ) |
4924 sed "s/^/$as_me: WARNING: /" >&2
4925 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004926esac
4927echo "$as_me:$LINENO: checking for $ac_header" >&5
4928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4929if eval "test \"\${$as_ac_Header+set}\" = set"; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932 eval "$as_ac_Header=$ac_header_preproc"
4933fi
4934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4936
4937fi
4938if test `eval echo '${'$as_ac_Header'}'` = yes; then
4939 cat >>confdefs.h <<_ACEOF
4940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941_ACEOF
4942
4943fi
4944
4945done
4946
John Criswell47fdd832003-07-14 16:52:07 +00004947ac_ext=cc
4948ac_cpp='$CXXCPP $CPPFLAGS'
4949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4952echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4953echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4954if test -z "$CXXCPP"; then
4955 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
John Criswell47fdd832003-07-14 16:52:07 +00004958 # Double quotes because CXXCPP needs to be expanded
4959 for CXXCPP in "$CXX -E" "/lib/cpp"
4960 do
4961 ac_preproc_ok=false
4962for ac_cxx_preproc_warn_flag in '' yes
4963do
4964 # Use a header file that comes with gcc, so configuring glibc
4965 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004968 # On the NeXT, cc -E runs the code through the compiler's parser,
4969 # not just through cpp. "Syntax error" is here to catch this case.
4970 cat >conftest.$ac_ext <<_ACEOF
4971#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004972/* confdefs.h. */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4976/* end confdefs.h. */
4977#ifdef __STDC__
4978# include <limits.h>
4979#else
4980# include <assert.h>
4981#endif
John Criswell47fdd832003-07-14 16:52:07 +00004982 Syntax error
4983_ACEOF
4984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4986 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004987 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev/null; then
4992 if test -s conftest.err; then
4993 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004994 else
John Criswell47fdd832003-07-14 16:52:07 +00004995 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004996 fi
John Criswell47fdd832003-07-14 16:52:07 +00004997else
4998 ac_cpp_err=yes
4999fi
5000if test -z "$ac_cpp_err"; then
5001 :
5002else
5003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005004sed 's/^/| /' conftest.$ac_ext >&5
5005
John Criswell47fdd832003-07-14 16:52:07 +00005006 # Broken: fails on valid input.
5007continue
5008fi
5009rm -f conftest.err conftest.$ac_ext
5010
5011 # OK, works on sane cases. Now check whether non-existent headers
5012 # can be detected and how.
5013 cat >conftest.$ac_ext <<_ACEOF
5014#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005015/* confdefs.h. */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005020#include <ac_nonexistent.h>
5021_ACEOF
5022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005025 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } >/dev/null; then
5030 if test -s conftest.err; then
5031 ac_cpp_err=$ac_cxx_preproc_warn_flag
5032 else
5033 ac_cpp_err=
5034 fi
5035else
5036 ac_cpp_err=yes
5037fi
5038if test -z "$ac_cpp_err"; then
5039 # Broken: success on invalid input.
5040continue
5041else
5042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005043sed 's/^/| /' conftest.$ac_ext >&5
5044
John Criswell47fdd832003-07-14 16:52:07 +00005045 # Passes both tests.
5046ac_preproc_ok=:
5047break
5048fi
5049rm -f conftest.err conftest.$ac_ext
5050
5051done
5052# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5053rm -f conftest.err conftest.$ac_ext
5054if $ac_preproc_ok; then
5055 break
John Criswell7a73b802003-06-30 21:59:07 +00005056fi
5057
John Criswell47fdd832003-07-14 16:52:07 +00005058 done
5059 ac_cv_prog_CXXCPP=$CXXCPP
5060
5061fi
5062 CXXCPP=$ac_cv_prog_CXXCPP
5063else
5064 ac_cv_prog_CXXCPP=$CXXCPP
5065fi
5066echo "$as_me:$LINENO: result: $CXXCPP" >&5
5067echo "${ECHO_T}$CXXCPP" >&6
5068ac_preproc_ok=false
5069for ac_cxx_preproc_warn_flag in '' yes
5070do
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat >conftest.$ac_ext <<_ACEOF
5078#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005079/* confdefs.h. */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
5084#ifdef __STDC__
5085# include <limits.h>
5086#else
5087# include <assert.h>
5088#endif
John Criswell47fdd832003-07-14 16:52:07 +00005089 Syntax error
5090_ACEOF
5091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005094 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_cxx_preproc_warn_flag
5101 else
5102 ac_cpp_err=
5103 fi
5104else
5105 ac_cpp_err=yes
5106fi
5107if test -z "$ac_cpp_err"; then
5108 :
5109else
5110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005111sed 's/^/| /' conftest.$ac_ext >&5
5112
John Criswell47fdd832003-07-14 16:52:07 +00005113 # Broken: fails on valid input.
5114continue
5115fi
5116rm -f conftest.err conftest.$ac_ext
5117
5118 # OK, works on sane cases. Now check whether non-existent headers
5119 # can be detected and how.
5120 cat >conftest.$ac_ext <<_ACEOF
5121#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005122/* confdefs.h. */
5123_ACEOF
5124cat confdefs.h >>conftest.$ac_ext
5125cat >>conftest.$ac_ext <<_ACEOF
5126/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005127#include <ac_nonexistent.h>
5128_ACEOF
5129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005132 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_cxx_preproc_warn_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142else
5143 ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
5146 # Broken: success on invalid input.
5147continue
5148else
5149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005150sed 's/^/| /' conftest.$ac_ext >&5
5151
John Criswell47fdd832003-07-14 16:52:07 +00005152 # Passes both tests.
5153ac_preproc_ok=:
5154break
5155fi
5156rm -f conftest.err conftest.$ac_ext
5157
5158done
5159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160rm -f conftest.err conftest.$ac_ext
5161if $ac_preproc_ok; then
5162 :
5163else
John Criswell0c38eaf2003-09-10 15:17:25 +00005164 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5165See \`config.log' for more details." >&5
5166echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5167See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005168 { (exit 1); exit 1; }; }
5169fi
5170
5171ac_ext=cc
5172ac_cpp='$CXXCPP $CPPFLAGS'
5173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5176
5177
5178ac_ext=f
5179ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5180ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5182if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005183 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 +00005184 do
5185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5187echo "$as_me:$LINENO: checking for $ac_word" >&5
5188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189if test "${ac_cv_prog_F77+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192 if test -n "$F77"; then
5193 ac_cv_prog_F77="$F77" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207done
5208
5209fi
5210fi
5211F77=$ac_cv_prog_F77
5212if test -n "$F77"; then
5213 echo "$as_me:$LINENO: result: $F77" >&5
5214echo "${ECHO_T}$F77" >&6
5215else
5216 echo "$as_me:$LINENO: result: no" >&5
5217echo "${ECHO_T}no" >&6
5218fi
5219
5220 test -n "$F77" && break
5221 done
5222fi
5223if test -z "$F77"; then
5224 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005225 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 +00005226do
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228set dummy $ac_prog; ac_word=$2
5229echo "$as_me:$LINENO: checking for $ac_word" >&5
5230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234 if test -n "$ac_ct_F77"; then
5235 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5236else
5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238for as_dir in $PATH
5239do
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5244 ac_cv_prog_ac_ct_F77="$ac_prog"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 break 2
5247 fi
5248done
5249done
5250
5251fi
5252fi
5253ac_ct_F77=$ac_cv_prog_ac_ct_F77
5254if test -n "$ac_ct_F77"; then
5255 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5256echo "${ECHO_T}$ac_ct_F77" >&6
5257else
5258 echo "$as_me:$LINENO: result: no" >&5
5259echo "${ECHO_T}no" >&6
5260fi
5261
5262 test -n "$ac_ct_F77" && break
5263done
5264
5265 F77=$ac_ct_F77
5266fi
5267
5268
5269# Provide some information about the compiler.
John Criswell78227592003-09-30 19:41:15 +00005270echo "$as_me:5270:" \
John Criswell47fdd832003-07-14 16:52:07 +00005271 "checking for Fortran 77 compiler version" >&5
5272ac_compiler=`set X $ac_compile; echo $2`
5273{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5274 (eval $ac_compiler --version </dev/null >&5) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }
5278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5279 (eval $ac_compiler -v </dev/null >&5) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5284 (eval $ac_compiler -V </dev/null >&5) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }
5288
5289# If we don't use `.F' as extension, the preprocessor is not run on the
5290# input file.
5291ac_save_ext=$ac_ext
5292ac_ext=F
5293echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5294echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5295if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298 cat >conftest.$ac_ext <<_ACEOF
5299 program main
5300#ifndef __GNUC__
5301 choke me
5302#endif
5303
5304 end
5305_ACEOF
5306rm -f conftest.$ac_objext
5307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308 (eval $ac_compile) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_compiler_gnu=yes
5319else
5320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005321sed 's/^/| /' conftest.$ac_ext >&5
5322
John Criswell47fdd832003-07-14 16:52:07 +00005323ac_compiler_gnu=no
5324fi
5325rm -f conftest.$ac_objext conftest.$ac_ext
5326ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5327
5328fi
5329echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5330echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5331ac_ext=$ac_save_ext
5332G77=`test $ac_compiler_gnu = yes && echo yes`
5333ac_test_FFLAGS=${FFLAGS+set}
5334ac_save_FFLAGS=$FFLAGS
5335FFLAGS=
5336echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5337echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5338if test "${ac_cv_prog_f77_g+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341 FFLAGS=-g
5342cat >conftest.$ac_ext <<_ACEOF
5343 program main
5344
5345 end
5346_ACEOF
5347rm -f conftest.$ac_objext
5348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_cv_prog_f77_g=yes
5360else
5361 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005362sed 's/^/| /' conftest.$ac_ext >&5
5363
John Criswell47fdd832003-07-14 16:52:07 +00005364ac_cv_prog_f77_g=no
5365fi
5366rm -f conftest.$ac_objext conftest.$ac_ext
5367
5368fi
5369echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5370echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5371if test "$ac_test_FFLAGS" = set; then
5372 FFLAGS=$ac_save_FFLAGS
5373elif test $ac_cv_prog_f77_g = yes; then
5374 if test "$G77" = yes; then
5375 FFLAGS="-g -O2"
5376 else
5377 FFLAGS="-g"
5378 fi
5379else
5380 if test "$G77" = yes; then
5381 FFLAGS="-O2"
5382 else
5383 FFLAGS=
5384 fi
5385fi
5386ac_ext=c
5387ac_cpp='$CPP $CPPFLAGS'
5388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_c_compiler_gnu
5391
5392
5393
5394# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5395
5396# find the maximum length of command line arguments
5397echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5398echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5399if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 i=0
5403 testring="ABCD"
5404
5405 case $build_os in
5406 msdosdjgpp*)
5407 # On DJGPP, this test can blow up pretty badly due to problems in libc
5408 # (any single argument exceeding 2000 bytes causes a buffer overrun
5409 # during glob expansion). Even if it were fixed, the result of this
5410 # check would be larger than it should be.
5411 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5412 ;;
5413
5414 gnu*)
5415 # Under GNU Hurd, this test is not required because there is
5416 # no limit to the length of command line arguments.
5417 # Libtool will interpret -1 as no limit whatsoever
5418 lt_cv_sys_max_cmd_len=-1;
5419 ;;
5420
5421 cygwin* | mingw*)
5422 # On Win9x/ME, this test blows up -- it succeeds, but takes
5423 # about 5 minutes as the teststring grows exponentially.
5424 # Worse, since 9x/ME are not pre-emptively multitasking,
5425 # you end up with a "frozen" computer, even though with patience
5426 # the test eventually succeeds (with a max line length of 256k).
5427 # Instead, let's just punt: use the minimum linelength reported by
5428 # all of the supported platforms: 8192 (on NT/2K/XP).
5429 lt_cv_sys_max_cmd_len=8192;
5430 ;;
5431
5432 *)
5433 # If test is not a shell built-in, we'll probably end up computing a
5434 # maximum length that is only half of the actual maximum length, but
5435 # we can't tell.
5436 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5437 = "XX$testring") >/dev/null 2>&1 &&
5438 new_result=`expr "X$testring" : ".*" 2>&1` &&
5439 lt_cv_sys_max_cmd_len=$new_result &&
5440 test $i != 17 # 1/2 MB should be enough
5441 do
5442 i=`expr $i + 1`
5443 testring=$testring$testring
5444 done
5445 testring=
5446 # Add a significant safety factor because C++ compilers can tack on massive
5447 # amounts of additional arguments before passing them to the linker.
5448 # It appears as though 1/2 is a usable value.
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5450 ;;
5451 esac
5452
5453fi
5454
5455if test -n $lt_cv_sys_max_cmd_len ; then
5456 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5457echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5458else
5459 echo "$as_me:$LINENO: result: none" >&5
5460echo "${ECHO_T}none" >&6
5461fi
5462
5463
5464
5465
5466# Check for command to grab the raw symbol name followed by C symbol from nm.
5467echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5468echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5469if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472
5473# These are sane defaults that work on at least a few old systems.
5474# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5475
5476# Character class describing NM global symbol codes.
5477symcode='[BCDEGRST]'
5478
5479# Regexp to match symbols that can be accessed directly from C.
5480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5481
5482# Transform the above into a raw symbol and a C symbol.
5483symxfrm='\1 \2\3 \3'
5484
5485# Transform an extracted symbol line into a proper C declaration
5486lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5487
5488# Transform an extracted symbol line into symbol name and symbol address
5489lt_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'"
5490
5491# Define system-specific variables.
5492case $host_os in
5493aix*)
5494 symcode='[BCDT]'
5495 ;;
5496cygwin* | mingw* | pw32*)
5497 symcode='[ABCDGISTW]'
5498 ;;
5499hpux*) # Its linker distinguishes data from code symbols
5500 if test "$host_cpu" = ia64; then
5501 symcode='[ABCDEGRST]'
5502 fi
5503 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5504 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'"
5505 ;;
5506irix* | nonstopux*)
5507 symcode='[BCDEGRST]'
5508 ;;
5509osf*)
5510 symcode='[BCDEGQRST]'
5511 ;;
5512solaris* | sysv5*)
5513 symcode='[BDT]'
5514 ;;
5515sysv4)
5516 symcode='[DFNSTU]'
5517 ;;
5518esac
5519
5520# Handle CRLF in mingw tool chain
5521opt_cr=
5522case $build_os in
5523mingw*)
5524 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5525 ;;
5526esac
5527
5528# If we're using GNU nm, then use its standard symbol codes.
5529case `$NM -V 2>&1` in
5530*GNU* | *'with BFD'*)
5531 symcode='[ABCDGISTW]' ;;
5532esac
5533
5534# Try without a prefix undercore, then with it.
5535for ac_symprfx in "" "_"; do
5536
5537 # Write the raw and C identifiers.
5538 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5539
5540 # Check to see that the pipe works correctly.
5541 pipe_works=no
5542
5543 rm -f conftest*
5544 cat > conftest.$ac_ext <<EOF
5545#ifdef __cplusplus
5546extern "C" {
5547#endif
5548char nm_test_var;
5549void nm_test_func(){}
5550#ifdef __cplusplus
5551}
5552#endif
5553int main(){nm_test_var='a';nm_test_func();return(0);}
5554EOF
5555
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; then
5561 # Now try to grab the symbols.
5562 nlist=conftest.nm
5563 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5564 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && test -s "$nlist"; then
5568 # Try sorting and uniquifying the output.
5569 if sort "$nlist" | uniq > "$nlist"T; then
5570 mv -f "$nlist"T "$nlist"
5571 else
5572 rm -f "$nlist"T
5573 fi
5574
5575 # Make sure that we snagged all the symbols we need.
5576 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5577 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5578 cat <<EOF > conftest.$ac_ext
5579#ifdef __cplusplus
5580extern "C" {
5581#endif
5582
5583EOF
5584 # Now generate the symbol file.
5585 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5586
5587 cat <<EOF >> conftest.$ac_ext
5588#if defined (__STDC__) && __STDC__
5589# define lt_ptr_t void *
5590#else
5591# define lt_ptr_t char *
5592# define const
5593#endif
5594
5595/* The mapping between symbol names and symbols. */
5596const struct {
5597 const char *name;
5598 lt_ptr_t address;
5599}
5600lt_preloaded_symbols[] =
5601{
5602EOF
5603 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5604 cat <<\EOF >> conftest.$ac_ext
5605 {0, (lt_ptr_t) 0}
5606};
5607
5608#ifdef __cplusplus
5609}
5610#endif
5611EOF
5612 # Now try linking the two files.
5613 mv conftest.$ac_objext conftstm.$ac_objext
5614 lt_save_LIBS="$LIBS"
5615 lt_save_CFLAGS="$CFLAGS"
5616 LIBS="conftstm.$ac_objext"
5617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5623 pipe_works=yes
5624 fi
5625 LIBS="$lt_save_LIBS"
5626 CFLAGS="$lt_save_CFLAGS"
5627 else
5628 echo "cannot find nm_test_func in $nlist" >&5
5629 fi
5630 else
5631 echo "cannot find nm_test_var in $nlist" >&5
5632 fi
5633 else
5634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5635 fi
5636 else
5637 echo "$progname: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 fi
5640 rm -f conftest* conftst*
5641
5642 # Do not use the global_symbol_pipe unless it works.
5643 if test "$pipe_works" = yes; then
5644 break
5645 else
5646 lt_cv_sys_global_symbol_pipe=
5647 fi
5648done
5649
5650fi
5651
5652if test -z "$lt_cv_sys_global_symbol_pipe"; then
5653 lt_cv_sys_global_symbol_to_cdecl=
5654fi
5655if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5656 echo "$as_me:$LINENO: result: failed" >&5
5657echo "${ECHO_T}failed" >&6
5658else
5659 echo "$as_me:$LINENO: result: ok" >&5
5660echo "${ECHO_T}ok" >&6
5661fi
5662
5663echo "$as_me:$LINENO: checking for objdir" >&5
5664echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5665if test "${lt_cv_objdir+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668 rm -f .libs 2>/dev/null
5669mkdir .libs 2>/dev/null
5670if test -d .libs; then
5671 lt_cv_objdir=.libs
5672else
5673 # MS-DOS does not allow filenames that begin with a dot.
5674 lt_cv_objdir=_libs
5675fi
5676rmdir .libs 2>/dev/null
5677fi
5678echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5679echo "${ECHO_T}$lt_cv_objdir" >&6
5680objdir=$lt_cv_objdir
5681
5682
5683
5684
5685
5686case $host_os in
5687aix3*)
5688 # AIX sometimes has problems with the GCC collect2 program. For some
5689 # reason, if we set the COLLECT_NAMES environment variable, the problems
5690 # vanish in a puff of smoke.
5691 if test "X${COLLECT_NAMES+set}" != Xset; then
5692 COLLECT_NAMES=
5693 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005694 fi
5695 ;;
5696esac
5697
John Criswell47fdd832003-07-14 16:52:07 +00005698# Sed substitution that helps us do robust quoting. It backslashifies
5699# metacharacters that are still active within double-quoted strings.
5700Xsed='sed -e s/^X//'
5701sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5702
5703# Same as above, but do not quote variable references.
5704double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5705
5706# Sed substitution to delay expansion of an escaped shell variable in a
5707# double_quote_subst'ed string.
5708delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5709
5710# Sed substitution to avoid accidental globbing in evaled expressions
5711no_glob_subst='s/\*/\\\*/g'
5712
5713# Constants:
5714rm="rm -f"
5715
5716# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005717default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005718can_build_shared=yes
5719
5720# All known linkers require a `.a' archive for static linking (except M$VC,
5721# which needs '.lib').
5722libext=a
5723ltmain="$ac_aux_dir/ltmain.sh"
5724ofile="$default_ofile"
5725with_gnu_ld="$lt_cv_prog_gnu_ld"
5726
5727if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5729set dummy ${ac_tool_prefix}ar; ac_word=$2
5730echo "$as_me:$LINENO: checking for $ac_word" >&5
5731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732if test "${ac_cv_prog_AR+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734else
5735 if test -n "$AR"; then
5736 ac_cv_prog_AR="$AR" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_AR="${ac_tool_prefix}ar"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749done
5750done
5751
5752fi
5753fi
5754AR=$ac_cv_prog_AR
5755if test -n "$AR"; then
5756 echo "$as_me:$LINENO: result: $AR" >&5
5757echo "${ECHO_T}$AR" >&6
5758else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761fi
5762
5763fi
5764if test -z "$ac_cv_prog_AR"; then
5765 ac_ct_AR=$AR
5766 # Extract the first word of "ar", so it can be a program name with args.
5767set dummy ar; ac_word=$2
5768echo "$as_me:$LINENO: checking for $ac_word" >&5
5769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 if test -n "$ac_ct_AR"; then
5774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_ac_ct_AR="ar"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788done
5789
5790 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5791fi
5792fi
5793ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794if test -n "$ac_ct_AR"; then
5795 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5796echo "${ECHO_T}$ac_ct_AR" >&6
5797else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800fi
5801
5802 AR=$ac_ct_AR
5803else
5804 AR="$ac_cv_prog_AR"
5805fi
5806
John Criswell7a73b802003-06-30 21:59:07 +00005807if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_RANLIB+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815 if test -n "$RANLIB"; then
5816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830done
5831
5832fi
5833fi
5834RANLIB=$ac_cv_prog_RANLIB
5835if test -n "$RANLIB"; then
5836 echo "$as_me:$LINENO: result: $RANLIB" >&5
5837echo "${ECHO_T}$RANLIB" >&6
5838else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841fi
5842
5843fi
5844if test -z "$ac_cv_prog_RANLIB"; then
5845 ac_ct_RANLIB=$RANLIB
5846 # Extract the first word of "ranlib", so it can be a program name with args.
5847set dummy ranlib; ac_word=$2
5848echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853 if test -n "$ac_ct_RANLIB"; then
5854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_RANLIB="ranlib"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868done
5869
5870 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5871fi
5872fi
5873ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5874if test -n "$ac_ct_RANLIB"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5876echo "${ECHO_T}$ac_ct_RANLIB" >&6
5877else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880fi
5881
5882 RANLIB=$ac_ct_RANLIB
5883else
5884 RANLIB="$ac_cv_prog_RANLIB"
5885fi
5886
5887if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5889set dummy ${ac_tool_prefix}strip; ac_word=$2
5890echo "$as_me:$LINENO: checking for $ac_word" >&5
5891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892if test "${ac_cv_prog_STRIP+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 if test -n "$STRIP"; then
5896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5908 fi
5909done
5910done
5911
5912fi
5913fi
5914STRIP=$ac_cv_prog_STRIP
5915if test -n "$STRIP"; then
5916 echo "$as_me:$LINENO: result: $STRIP" >&5
5917echo "${ECHO_T}$STRIP" >&6
5918else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921fi
5922
5923fi
5924if test -z "$ac_cv_prog_STRIP"; then
5925 ac_ct_STRIP=$STRIP
5926 # Extract the first word of "strip", so it can be a program name with args.
5927set dummy strip; ac_word=$2
5928echo "$as_me:$LINENO: checking for $ac_word" >&5
5929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933 if test -n "$ac_ct_STRIP"; then
5934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_STRIP="strip"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948done
5949
5950 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5951fi
5952fi
5953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5954if test -n "$ac_ct_STRIP"; then
5955 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5956echo "${ECHO_T}$ac_ct_STRIP" >&6
5957else
5958 echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960fi
5961
5962 STRIP=$ac_ct_STRIP
5963else
5964 STRIP="$ac_cv_prog_STRIP"
5965fi
5966
5967
John Criswell7a73b802003-06-30 21:59:07 +00005968old_CC="$CC"
5969old_CFLAGS="$CFLAGS"
5970
5971# Set sane defaults for various variables
5972test -z "$AR" && AR=ar
5973test -z "$AR_FLAGS" && AR_FLAGS=cru
5974test -z "$AS" && AS=as
5975test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005976test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005977test -z "$DLLTOOL" && DLLTOOL=dlltool
5978test -z "$LD" && LD=ld
5979test -z "$LN_S" && LN_S="ln -s"
5980test -z "$MAGIC_CMD" && MAGIC_CMD=file
5981test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005982test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005983test -z "$OBJDUMP" && OBJDUMP=objdump
5984test -z "$RANLIB" && RANLIB=:
5985test -z "$STRIP" && STRIP=:
5986test -z "$ac_objext" && ac_objext=o
5987
John Criswell7a73b802003-06-30 21:59:07 +00005988# Determine commands to create old-style static archives.
5989old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5990old_postinstall_cmds='chmod 644 $oldlib'
5991old_postuninstall_cmds=
5992
5993if test -n "$RANLIB"; then
5994 case $host_os in
5995 openbsd*)
5996 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5997 ;;
5998 *)
5999 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6000 ;;
6001 esac
6002 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6003fi
6004
John Criswell47fdd832003-07-14 16:52:07 +00006005# Only perform the check for file, if the check method requires it
6006case $deplibs_check_method in
6007file_magic*)
6008 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6009 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6010echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6011if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006013else
John Criswell47fdd832003-07-14 16:52:07 +00006014 case $MAGIC_CMD in
6015[\\/*] | ?:[\\/]*)
6016 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6017 ;;
6018*)
6019 lt_save_MAGIC_CMD="$MAGIC_CMD"
6020 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6021 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6022 for ac_dir in $ac_dummy; do
6023 IFS="$lt_save_ifs"
6024 test -z "$ac_dir" && ac_dir=.
6025 if test -f $ac_dir/${ac_tool_prefix}file; then
6026 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6027 if test -n "$file_magic_test_file"; then
6028 case $deplibs_check_method in
6029 "file_magic "*)
6030 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6032 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6033 $EGREP "$file_magic_regex" > /dev/null; then
6034 :
6035 else
6036 cat <<EOF 1>&2
6037
6038*** Warning: the command libtool uses to detect shared libraries,
6039*** $file_magic_cmd, produces output that libtool cannot recognize.
6040*** The result is that libtool may fail to recognize shared libraries
6041*** as such. This will affect the creation of libtool libraries that
6042*** depend on shared libraries, but programs linked with such libtool
6043*** libraries will work regardless of this problem. Nevertheless, you
6044*** may want to report the problem to your system manager and/or to
6045*** bug-libtool@gnu.org
6046
6047EOF
6048 fi ;;
6049 esac
6050 fi
6051 break
6052 fi
6053 done
6054 IFS="$lt_save_ifs"
6055 MAGIC_CMD="$lt_save_MAGIC_CMD"
6056 ;;
6057esac
John Criswell7a73b802003-06-30 21:59:07 +00006058fi
John Criswell7a73b802003-06-30 21:59:07 +00006059
John Criswell47fdd832003-07-14 16:52:07 +00006060MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6061if test -n "$MAGIC_CMD"; then
6062 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6063echo "${ECHO_T}$MAGIC_CMD" >&6
6064else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067fi
John Criswell7a73b802003-06-30 21:59:07 +00006068
John Criswell47fdd832003-07-14 16:52:07 +00006069if test -z "$lt_cv_path_MAGIC_CMD"; then
6070 if test -n "$ac_tool_prefix"; then
6071 echo "$as_me:$LINENO: checking for file" >&5
6072echo $ECHO_N "checking for file... $ECHO_C" >&6
6073if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 case $MAGIC_CMD in
6077[\\/*] | ?:[\\/]*)
6078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6079 ;;
6080*)
6081 lt_save_MAGIC_CMD="$MAGIC_CMD"
6082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6084 for ac_dir in $ac_dummy; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 if test -f $ac_dir/file; then
6088 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6089 if test -n "$file_magic_test_file"; then
6090 case $deplibs_check_method in
6091 "file_magic "*)
6092 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6095 $EGREP "$file_magic_regex" > /dev/null; then
6096 :
6097 else
6098 cat <<EOF 1>&2
6099
6100*** Warning: the command libtool uses to detect shared libraries,
6101*** $file_magic_cmd, produces output that libtool cannot recognize.
6102*** The result is that libtool may fail to recognize shared libraries
6103*** as such. This will affect the creation of libtool libraries that
6104*** depend on shared libraries, but programs linked with such libtool
6105*** libraries will work regardless of this problem. Nevertheless, you
6106*** may want to report the problem to your system manager and/or to
6107*** bug-libtool@gnu.org
6108
6109EOF
6110 fi ;;
6111 esac
6112 fi
6113 break
6114 fi
6115 done
6116 IFS="$lt_save_ifs"
6117 MAGIC_CMD="$lt_save_MAGIC_CMD"
6118 ;;
6119esac
6120fi
6121
6122MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6123if test -n "$MAGIC_CMD"; then
6124 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6125echo "${ECHO_T}$MAGIC_CMD" >&6
6126else
6127 echo "$as_me:$LINENO: result: no" >&5
6128echo "${ECHO_T}no" >&6
6129fi
6130
6131 else
6132 MAGIC_CMD=:
6133 fi
6134fi
6135
6136 fi
6137 ;;
6138esac
6139
6140enable_dlopen=no
6141enable_win32_dll=no
6142
6143# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6144if test "${enable_libtool_lock+set}" = set; then
6145 enableval="$enable_libtool_lock"
6146
6147fi;
6148test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6149
John Criswell7a73b802003-06-30 21:59:07 +00006150
6151# Check whether --with-pic or --without-pic was given.
6152if test "${with_pic+set}" = set; then
6153 withval="$with_pic"
6154 pic_mode="$withval"
6155else
6156 pic_mode=default
6157fi;
6158test -z "$pic_mode" && pic_mode=default
6159
John Criswell47fdd832003-07-14 16:52:07 +00006160# Use C for the default configuration in the libtool script
6161tagname=
6162lt_save_CC="$CC"
6163ac_ext=c
6164ac_cpp='$CPP $CPPFLAGS'
6165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6167ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168
6169
6170# Source file extension for C test sources.
6171ac_ext=c
6172
6173# Object file extension for compiled C test sources.
6174objext=o
6175objext=$objext
6176
6177# Code to be used in simple compile tests
6178lt_simple_compile_test_code="int some_variable = 0;\n"
6179
6180# Code to be used in simple link tests
6181lt_simple_link_test_code='int main(){return(0);}\n'
6182
6183
6184# If no C compiler was specified, use CC.
6185LTCC=${LTCC-"$CC"}
6186
6187# Allow CC to be a program name with arguments.
6188compiler=$CC
6189
6190
6191#
6192# Check for any special shared library compilation flags.
6193#
6194lt_prog_cc_shlib=
6195if test "$GCC" = no; then
6196 case $host_os in
6197 sco3.2v5*)
6198 lt_prog_cc_shlib='-belf'
6199 ;;
6200 esac
6201fi
6202if test -n "$lt_prog_cc_shlib"; then
6203 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6204echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6205 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6206 else
6207 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6208echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6209 lt_cv_prog_cc_can_build_shared=no
6210 fi
6211fi
6212
6213
6214#
6215# Check to make sure the static flag actually works.
6216#
6217echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6218echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6219if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
John Criswell47fdd832003-07-14 16:52:07 +00006222 lt_prog_compiler_static_works=no
6223 save_LDFLAGS="$LDFLAGS"
6224 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6225 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6227 # The compiler can only warn and ignore the option if not recognized
6228 # So say no if there are warnings
6229 if test -s conftest.err; then
6230 # Append any errors to the config.log.
6231 cat conftest.err 1>&5
6232 else
6233 lt_prog_compiler_static_works=yes
6234 fi
6235 fi
6236 $rm conftest*
6237 LDFLAGS="$save_LDFLAGS"
6238
6239fi
6240echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6241echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6242
6243if test x"$lt_prog_compiler_static_works" = xyes; then
6244 :
6245else
6246 lt_prog_compiler_static=
6247fi
6248
6249
6250
6251## CAVEAT EMPTOR:
6252## There is no encapsulation within the following macros, do not change
6253## the running order or otherwise move them around unless you know exactly
6254## what you are doing...
6255
6256lt_prog_compiler_no_builtin_flag=
6257
6258if test "$GCC" = yes; then
6259 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6260
6261 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6262echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6263if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 lt_cv_prog_compiler_rtti_exceptions=no
6267 ac_outfile=conftest.$ac_objext
6268 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6269 lt_compiler_flag="-fno-rtti -fno-exceptions"
6270 # Insert the option either (1) after the last *FLAGS variable, or
6271 # (2) before a word containing "conftest.", or (3) at the end.
6272 # Note that $ac_compile itself does not contain backslashes and begins
6273 # with a dollar sign (not a hyphen), so the echo should work correctly.
6274 # The option is referenced via a variable to avoid confusing sed.
6275 lt_compile=`echo "$ac_compile" | $SED \
6276 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6278 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006279 (eval echo "\"\$as_me:6279: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006280 (eval "$lt_compile" 2>conftest.err)
6281 ac_status=$?
6282 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006283 echo "$as_me:6283: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006284 if (exit $ac_status) && test -s "$ac_outfile"; then
6285 # The compiler can only warn and ignore the option if not recognized
6286 # So say no if there are warnings
6287 if test ! -s conftest.err; then
6288 lt_cv_prog_compiler_rtti_exceptions=yes
6289 fi
6290 fi
6291 $rm conftest*
6292
6293fi
6294echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6296
6297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6299else
6300 :
6301fi
6302
6303fi
6304
6305lt_prog_compiler_wl=
6306lt_prog_compiler_pic=
6307lt_prog_compiler_static=
6308
6309echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006311
6312 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006313 lt_prog_compiler_wl='-Wl,'
6314 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006315
6316 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006317 aix*)
6318 # All AIX code is PIC.
6319 if test "$host_cpu" = ia64; then
6320 # AIX 5 now supports IA64 processor
6321 lt_prog_compiler_static='-Bstatic'
6322 fi
John Criswell7a73b802003-06-30 21:59:07 +00006323 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006324
John Criswell7a73b802003-06-30 21:59:07 +00006325 amigaos*)
6326 # FIXME: we need at least 68020 code to build shared libraries, but
6327 # adding the `-m68020' flag to GCC prevents building anything better,
6328 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006330 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006331
6332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006333 # PIC is the default for these OSes.
6334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006335
6336 mingw* | pw32* | os2*)
6337 # This hack is so that the source file can tell whether it is being
6338 # built for inclusion in a dll (and should export symbols for example).
6339 lt_prog_compiler_pic='-DDLL_EXPORT'
6340 ;;
6341
John Criswell7a73b802003-06-30 21:59:07 +00006342 darwin* | rhapsody*)
6343 # PIC is the default on this platform
6344 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006345 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006346 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006347
6348 msdosdjgpp*)
6349 # Just because we use GCC doesn't mean we suddenly get shared libraries
6350 # on systems that don't support them.
6351 lt_prog_compiler_can_build_shared=no
6352 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006353 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006354
John Criswell7a73b802003-06-30 21:59:07 +00006355 sysv4*MP*)
6356 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006357 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006358 fi
6359 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006360
6361 hpux*)
6362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6363 # not for PA HP-UX.
6364 case "$host_cpu" in
6365 hppa*64*|ia64*)
6366 # +Z the default
6367 ;;
6368 *)
6369 lt_prog_compiler_pic='-fPIC'
6370 ;;
6371 esac
6372 ;;
6373
John Criswell7a73b802003-06-30 21:59:07 +00006374 *)
John Criswell47fdd832003-07-14 16:52:07 +00006375 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006376 ;;
6377 esac
6378 else
John Criswell47fdd832003-07-14 16:52:07 +00006379 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006380 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006381 aix*)
6382 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006383 if test "$host_cpu" = ia64; then
6384 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006385 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006386 else
John Criswell47fdd832003-07-14 16:52:07 +00006387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006388 fi
6389 ;;
6390
John Criswell47fdd832003-07-14 16:52:07 +00006391 mingw* | pw32* | os2*)
6392 # This hack is so that the source file can tell whether it is being
6393 # built for inclusion in a dll (and should export symbols for example).
6394 lt_prog_compiler_pic='-DDLL_EXPORT'
6395 ;;
6396
John Criswell7a73b802003-06-30 21:59:07 +00006397 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006398 lt_prog_compiler_wl='-Wl,'
6399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6400 # not for PA HP-UX.
6401 case "$host_cpu" in
6402 hppa*64*|ia64*)
6403 # +Z the default
6404 ;;
6405 *)
6406 lt_prog_compiler_pic='+Z'
6407 ;;
6408 esac
6409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6410 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006411 ;;
6412
John Criswell47fdd832003-07-14 16:52:07 +00006413 irix5* | irix6* | nonstopux*)
6414 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006415 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006416 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006417 ;;
6418
6419 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006420 lt_prog_compiler_pic='-KPIC'
6421 lt_prog_compiler_static='-Bstatic'
6422 ;;
6423
6424 linux*)
6425 case $CC in
6426 icc|ecc)
6427 lt_prog_compiler_wl='-Wl,'
6428 lt_prog_compiler_pic='-KPIC'
6429 lt_prog_compiler_static='-static'
6430 ;;
6431 ccc)
6432 lt_prog_compiler_wl='-Wl,'
6433 # All Alpha code is PIC.
6434 lt_prog_compiler_static='-non_shared'
6435 ;;
6436 esac
John Criswell7a73b802003-06-30 21:59:07 +00006437 ;;
6438
6439 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006440 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006441 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006442 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006443 ;;
6444
6445 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006446 lt_prog_compiler_pic='-Kpic'
6447 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006448 ;;
6449
6450 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006451 lt_prog_compiler_wl='-Wl,'
6452 lt_prog_compiler_pic='-KPIC'
6453 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006454 ;;
6455
6456 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006457 lt_prog_compiler_wl='-Qoption ld '
6458 lt_prog_compiler_pic='-PIC'
6459 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006460 ;;
6461
6462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006463 lt_prog_compiler_wl='-Wl,'
6464 lt_prog_compiler_pic='-KPIC'
6465 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006466 ;;
6467
6468 sysv4*MP*)
6469 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006470 lt_prog_compiler_pic='-Kconform_pic'
6471 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006472 fi
6473 ;;
6474
John Criswell47fdd832003-07-14 16:52:07 +00006475 uts4*)
6476 lt_prog_compiler_pic='-pic'
6477 lt_prog_compiler_static='-Bstatic'
6478 ;;
6479
John Criswell7a73b802003-06-30 21:59:07 +00006480 *)
John Criswell47fdd832003-07-14 16:52:07 +00006481 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006482 ;;
6483 esac
6484 fi
6485
John Criswell47fdd832003-07-14 16:52:07 +00006486echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6487echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006488
John Criswell47fdd832003-07-14 16:52:07 +00006489#
6490# Check to make sure the PIC flag actually works.
6491#
6492if test -n "$lt_prog_compiler_pic"; then
6493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6494echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6495if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
John Criswell47fdd832003-07-14 16:52:07 +00006498 lt_prog_compiler_pic_works=no
6499 ac_outfile=conftest.$ac_objext
6500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6501 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6502 # Insert the option either (1) after the last *FLAGS variable, or
6503 # (2) before a word containing "conftest.", or (3) at the end.
6504 # Note that $ac_compile itself does not contain backslashes and begins
6505 # with a dollar sign (not a hyphen), so the echo should work correctly.
6506 # The option is referenced via a variable to avoid confusing sed.
6507 lt_compile=`echo "$ac_compile" | $SED \
6508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006511 (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006512 (eval "$lt_compile" 2>conftest.err)
6513 ac_status=$?
6514 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006515 echo "$as_me:6515: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006516 if (exit $ac_status) && test -s "$ac_outfile"; then
6517 # The compiler can only warn and ignore the option if not recognized
6518 # So say no if there are warnings
6519 if test ! -s conftest.err; then
6520 lt_prog_compiler_pic_works=yes
6521 fi
6522 fi
6523 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006524
John Criswell47fdd832003-07-14 16:52:07 +00006525fi
6526echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6527echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006528
John Criswell47fdd832003-07-14 16:52:07 +00006529if test x"$lt_prog_compiler_pic_works" = xyes; then
6530 case $lt_prog_compiler_pic in
6531 "" | " "*) ;;
6532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6533 esac
John Criswell7a73b802003-06-30 21:59:07 +00006534else
John Criswell47fdd832003-07-14 16:52:07 +00006535 lt_prog_compiler_pic=
6536 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006537fi
6538
John Criswell7a73b802003-06-30 21:59:07 +00006539fi
John Criswell47fdd832003-07-14 16:52:07 +00006540case "$host_os" in
6541 # For platforms which do not support PIC, -DPIC is meaningless:
6542 *djgpp*)
6543 lt_prog_compiler_pic=
6544 ;;
6545 *)
6546 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547 ;;
6548esac
John Criswell7a73b802003-06-30 21:59:07 +00006549
John Criswell7a73b802003-06-30 21:59:07 +00006550echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6551echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006552if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
John Criswell47fdd832003-07-14 16:52:07 +00006555 lt_cv_prog_compiler_c_o=no
6556 $rm -r conftest 2>/dev/null
6557 mkdir conftest
6558 cd conftest
6559 mkdir out
6560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006561
John Criswell47fdd832003-07-14 16:52:07 +00006562 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6563 # that will create temporary files in the current directory regardless of
6564 # the output directory. Thus, making CWD read-only will cause this test
6565 # to fail, enabling locking or at least warning the user not to do parallel
6566 # builds.
6567 chmod -w .
6568
6569 lt_compiler_flag="-o out/conftest2.$ac_objext"
6570 # Insert the option either (1) after the last *FLAGS variable, or
6571 # (2) before a word containing "conftest.", or (3) at the end.
6572 # Note that $ac_compile itself does not contain backslashes and begins
6573 # with a dollar sign (not a hyphen), so the echo should work correctly.
6574 lt_compile=`echo "$ac_compile" | $SED \
6575 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6577 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +00006578 (eval echo "\"\$as_me:6578: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006579 (eval "$lt_compile" 2>out/conftest.err)
6580 ac_status=$?
6581 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +00006582 echo "$as_me:6582: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6584 then
6585 # The compiler can only warn and ignore the option if not recognized
6586 # So say no if there are warnings
6587 if test ! -s out/conftest.err; then
6588 lt_cv_prog_compiler_c_o=yes
6589 fi
6590 fi
6591 chmod u+w .
6592 $rm conftest* out/*
6593 rmdir out
6594 cd ..
6595 rmdir conftest
6596 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006597
6598fi
John Criswell47fdd832003-07-14 16:52:07 +00006599echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6600echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006601
John Criswell7a73b802003-06-30 21:59:07 +00006602
John Criswell7a73b802003-06-30 21:59:07 +00006603hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006604if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006605 # do not overwrite the value of need_locks provided by the user
6606 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6607echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6608 hard_links=yes
6609 $rm conftest*
6610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6611 touch conftest.a
6612 ln conftest.a conftest.b 2>&5 || hard_links=no
6613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6614 echo "$as_me:$LINENO: result: $hard_links" >&5
6615echo "${ECHO_T}$hard_links" >&6
6616 if test "$hard_links" = no; then
6617 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6618echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6619 need_locks=warn
6620 fi
6621else
6622 need_locks=no
6623fi
John Criswell7a73b802003-06-30 21:59:07 +00006624
John Criswell47fdd832003-07-14 16:52:07 +00006625echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6627
6628 runpath_var=
6629 allow_undefined_flag=
6630 enable_shared_with_static_runtimes=no
6631 archive_cmds=
6632 archive_expsym_cmds=
6633 old_archive_From_new_cmds=
6634 old_archive_from_expsyms_cmds=
6635 export_dynamic_flag_spec=
6636 whole_archive_flag_spec=
6637 thread_safe_flag_spec=
6638 hardcode_libdir_flag_spec=
6639 hardcode_libdir_flag_spec_ld=
6640 hardcode_libdir_separator=
6641 hardcode_direct=no
6642 hardcode_minus_L=no
6643 hardcode_shlibpath_var=unsupported
6644 link_all_deplibs=unknown
6645 hardcode_automatic=no
6646 module_cmds=
6647 module_expsym_cmds=
6648 always_export_symbols=no
6649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6650 # include_expsyms should be a list of space-separated symbols to be *always*
6651 # included in the symbol list
6652 include_expsyms=
6653 # exclude_expsyms can be an extended regexp of symbols to exclude
6654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6656 # as well as any symbol that contains `d'.
6657 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6659 # platforms (ab)use it in PIC code, but their linkers get confused if
6660 # the symbol is explicitly referenced. Since portable code cannot
6661 # rely on this symbol name, it's probably fine to never include it in
6662 # preloaded symbol tables.
6663 extract_expsyms_cmds=
6664
6665 case $host_os in
6666 cygwin* | mingw* | pw32*)
6667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6668 # When not using gcc, we currently assume that we are using
6669 # Microsoft Visual C++.
6670 if test "$GCC" != yes; then
6671 with_gnu_ld=no
6672 fi
6673 ;;
6674 openbsd*)
6675 with_gnu_ld=no
6676 ;;
6677 esac
6678
6679 ld_shlibs=yes
6680 if test "$with_gnu_ld" = yes; then
6681 # If archive_cmds runs LD, not CC, wlarc should be empty
6682 wlarc='${wl}'
6683
6684 # See if GNU ld supports shared libraries.
6685 case $host_os in
6686 aix3* | aix4* | aix5*)
6687 # On AIX/PPC, the GNU linker is very broken
6688 if test "$host_cpu" != ia64; then
6689 ld_shlibs=no
6690 cat <<EOF 1>&2
6691
6692*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6693*** to be unable to reliably create shared libraries on AIX.
6694*** Therefore, libtool is disabling shared libraries support. If you
6695*** really care for shared libraries, you may want to modify your PATH
6696*** so that a non-GNU linker is found, and then restart.
6697
6698EOF
6699 fi
6700 ;;
6701
6702 amigaos*)
6703 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)'
6704 hardcode_libdir_flag_spec='-L$libdir'
6705 hardcode_minus_L=yes
6706
6707 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6708 # that the semantics of dynamic libraries on AmigaOS, at least up
6709 # to version 4, is to share data among multiple programs linked
6710 # with the same dynamic library. Since this doesn't match the
6711 # behavior of shared libraries on other platforms, we can't use
6712 # them.
6713 ld_shlibs=no
6714 ;;
6715
6716 beos*)
6717 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6718 allow_undefined_flag=unsupported
6719 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6720 # support --undefined. This deserves some investigation. FIXME
6721 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6722 else
6723 ld_shlibs=no
6724 fi
6725 ;;
6726
6727 cygwin* | mingw* | pw32*)
6728 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6729 # as there is no search path for DLLs.
6730 hardcode_libdir_flag_spec='-L$libdir'
6731 allow_undefined_flag=unsupported
6732 always_export_symbols=no
6733 enable_shared_with_static_runtimes=yes
6734 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6735
6736 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6738 # If the export-symbols file already is a .def file (1st line
6739 # is EXPORTS), use it as is; otherwise, prepend...
6740 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6741 cp $export_symbols $output_objdir/$soname.def;
6742 else
6743 echo EXPORTS > $output_objdir/$soname.def;
6744 cat $export_symbols >> $output_objdir/$soname.def;
6745 fi~
6746 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6747 else
6748 ld_shlibs=no
6749 fi
6750 ;;
6751
6752 netbsd*)
6753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6755 wlarc=
6756 else
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 fi
6760 ;;
6761
6762 solaris* | sysv5*)
6763 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6764 ld_shlibs=no
6765 cat <<EOF 1>&2
6766
6767*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6768*** create shared libraries on Solaris systems. Therefore, libtool
6769*** is disabling shared libraries support. We urge you to upgrade GNU
6770*** binutils to release 2.9.1 or newer. Another option is to modify
6771*** your PATH or compiler configuration so that the native linker is
6772*** used, and then restart.
6773
6774EOF
6775 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778 else
6779 ld_shlibs=no
6780 fi
6781 ;;
6782
6783 sunos4*)
6784 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6785 wlarc=
6786 hardcode_direct=yes
6787 hardcode_shlibpath_var=no
6788 ;;
6789
6790 *)
6791 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6794 else
6795 ld_shlibs=no
6796 fi
6797 ;;
6798 esac
6799
6800 if test "$ld_shlibs" = yes; then
6801 runpath_var=LD_RUN_PATH
6802 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6803 export_dynamic_flag_spec='${wl}--export-dynamic'
6804 # ancient GNU ld didn't support --whole-archive et. al.
6805 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6806 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6807 else
6808 whole_archive_flag_spec=
6809 fi
6810 fi
6811 else
6812 # PORTME fill in a description of your system's linker (not GNU ld)
6813 case $host_os in
6814 aix3*)
6815 allow_undefined_flag=unsupported
6816 always_export_symbols=yes
6817 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'
6818 # Note: this linker hardcodes the directories in LIBPATH if there
6819 # are no directories specified by -L.
6820 hardcode_minus_L=yes
6821 if test "$GCC" = yes && test -z "$link_static_flag"; then
6822 # Neither direct hardcoding nor static linking is supported with a
6823 # broken collect2.
6824 hardcode_direct=unsupported
6825 fi
6826 ;;
6827
6828 aix4* | aix5*)
6829 if test "$host_cpu" = ia64; then
6830 # On IA64, the linker does run time linking by default, so we don't
6831 # have to do anything special.
6832 aix_use_runtimelinking=no
6833 exp_sym_flag='-Bexport'
6834 no_entry_flag=""
6835 else
6836 # If we're using GNU nm, then we don't want the "-C" option.
6837 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6838 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6839 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'
6840 else
6841 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'
6842 fi
6843 aix_use_runtimelinking=no
6844
6845 # Test if we are trying to use run time linking or normal
6846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6847 # need to do runtime linking.
6848 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6849 for ld_flag in $LDFLAGS; do
6850 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6851 aix_use_runtimelinking=yes
6852 break
6853 fi
6854 done
6855 esac
6856
6857 exp_sym_flag='-bexport'
6858 no_entry_flag='-bnoentry'
6859 fi
6860
6861 # When large executables or shared objects are built, AIX ld can
6862 # have problems creating the table of contents. If linking a library
6863 # or program results in "error TOC overflow" add -mminimal-toc to
6864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6866
6867 archive_cmds=''
6868 hardcode_direct=yes
6869 hardcode_libdir_separator=':'
6870 link_all_deplibs=yes
6871
6872 if test "$GCC" = yes; then
6873 case $host_os in aix4.012|aix4.012.*)
6874 # We only want to do this on AIX 4.2 and lower, the check
6875 # below for broken collect2 doesn't work under 4.3+
6876 collect2name=`${CC} -print-prog-name=collect2`
6877 if test -f "$collect2name" && \
6878 strings "$collect2name" | grep resolve_lib_name >/dev/null
6879 then
6880 # We have reworked collect2
6881 hardcode_direct=yes
6882 else
6883 # We have old collect2
6884 hardcode_direct=unsupported
6885 # It fails to find uninstalled libraries when the uninstalled
6886 # path is not listed in the libpath. Setting hardcode_minus_L
6887 # to unsupported forces relinking
6888 hardcode_minus_L=yes
6889 hardcode_libdir_flag_spec='-L$libdir'
6890 hardcode_libdir_separator=
6891 fi
6892 esac
6893 shared_flag='-shared'
6894 else
6895 # not using gcc
6896 if test "$host_cpu" = ia64; then
6897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6898 # chokes on -Wl,-G. The following line is correct:
6899 shared_flag='-G'
6900 else
6901 if test "$aix_use_runtimelinking" = yes; then
6902 shared_flag='${wl}-G'
6903 else
6904 shared_flag='${wl}-bM:SRE'
6905 fi
6906 fi
6907 fi
6908
6909 # It seems that -bexpall does not export symbols beginning with
6910 # underscore (_), so it is better to generate a list of symbols to export.
6911 always_export_symbols=yes
6912 if test "$aix_use_runtimelinking" = yes; then
6913 # Warning - without using the other runtime loading flags (-brtl),
6914 # -berok will link without error, but may produce a broken library.
6915 allow_undefined_flag='-berok'
6916 # Determine the default libpath from the value encoded in an empty executable.
6917 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006918#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006924
John Criswell7a73b802003-06-30 21:59:07 +00006925int
6926main ()
6927{
John Criswell47fdd832003-07-14 16:52:07 +00006928
John Criswell7a73b802003-06-30 21:59:07 +00006929 ;
6930 return 0;
6931}
6932_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006933rm -f conftest.$ac_objext conftest$ac_exeext
6934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006939 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941 (eval $ac_try) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006945
John Criswell47fdd832003-07-14 16:52:07 +00006946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6947}'`
6948# Check for a 64-bit object if we didn't find anything.
6949if 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; }
6950}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006951else
6952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006953sed 's/^/| /' conftest.$ac_ext >&5
6954
John Criswell7a73b802003-06-30 21:59:07 +00006955fi
John Criswell47fdd832003-07-14 16:52:07 +00006956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006958
John Criswell47fdd832003-07-14 16:52:07 +00006959 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6960 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"
6961 else
6962 if test "$host_cpu" = ia64; then
6963 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6964 allow_undefined_flag="-z nodefs"
6965 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"
6966 else
6967 # Determine the default libpath from the value encoded in an empty executable.
6968 cat >conftest.$ac_ext <<_ACEOF
6969#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006975
John Criswell47fdd832003-07-14 16:52:07 +00006976int
6977main ()
6978{
John Criswell7a73b802003-06-30 21:59:07 +00006979
John Criswell47fdd832003-07-14 16:52:07 +00006980 ;
6981 return 0;
6982}
6983_ACEOF
6984rm -f conftest.$ac_objext conftest$ac_exeext
6985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -s conftest$ac_exeext'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 (eval $ac_try) 2>&5
6993 ac_status=$?
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006996
John Criswell47fdd832003-07-14 16:52:07 +00006997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6998}'`
6999# Check for a 64-bit object if we didn't find anything.
7000if 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; }
7001}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00007002else
John Criswell47fdd832003-07-14 16:52:07 +00007003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007004sed 's/^/| /' conftest.$ac_ext >&5
7005
John Criswell47fdd832003-07-14 16:52:07 +00007006fi
7007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00007009
John Criswell47fdd832003-07-14 16:52:07 +00007010 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7011 # Warning - without using the other run time loading flags,
7012 # -berok will link without error, but may produce a broken library.
7013 no_undefined_flag=' ${wl}-bernotok'
7014 allow_undefined_flag=' ${wl}-berok'
7015 # -bexpall does not export symbols beginning with underscore (_)
7016 always_export_symbols=yes
7017 # Exported symbols can be pulled into shared objects from archives
7018 whole_archive_flag_spec=' '
7019 archive_cmds_need_lc=yes
7020 # This is similar to how AIX traditionally builds it's shared libraries.
7021 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 +00007022 fi
7023 fi
John Criswell7a73b802003-06-30 21:59:07 +00007024 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007025
7026 amigaos*)
7027 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)'
7028 hardcode_libdir_flag_spec='-L$libdir'
7029 hardcode_minus_L=yes
7030 # see comment about different semantics on the GNU ld section
7031 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007032 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007033
John Criswell47fdd832003-07-14 16:52:07 +00007034 bsdi4*)
7035 export_dynamic_flag_spec=-rdynamic
7036 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007037
John Criswell47fdd832003-07-14 16:52:07 +00007038 cygwin* | mingw* | pw32*)
7039 # When not using gcc, we currently assume that we are using
7040 # Microsoft Visual C++.
7041 # hardcode_libdir_flag_spec is actually meaningless, as there is
7042 # no search path for DLLs.
7043 hardcode_libdir_flag_spec=' '
7044 allow_undefined_flag=unsupported
7045 # Tell ltmain to make .lib files, not .a files.
7046 libext=lib
7047 # Tell ltmain to make .dll files, not .so files.
7048 shrext=".dll"
7049 # FIXME: Setting linknames here is a bad hack.
7050 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7051 # The linker will automatically build a .lib file if we build a DLL.
7052 old_archive_From_new_cmds='true'
7053 # FIXME: Should let the user specify the lib program.
7054 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7055 fix_srcfile_path='`cygpath -w "$srcfile"`'
7056 enable_shared_with_static_runtimes=yes
7057 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007058
John Criswell47fdd832003-07-14 16:52:07 +00007059 darwin* | rhapsody*)
7060 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7061 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007062 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007063 rhapsody* | darwin1.[012])
7064 allow_undefined_flag='-undefined suppress'
7065 ;;
7066 *) # Darwin 1.3 on
7067 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007068 ;;
7069 esac
John Criswell47fdd832003-07-14 16:52:07 +00007070 # FIXME: Relying on posixy $() will cause problems for
7071 # cross-compilation, but unfortunately the echo tests do not
7072 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7073 # `"' quotes if we put them in here... so don't!
7074 lt_int_apple_cc_single_mod=no
7075 output_verbose_link_cmd='echo'
7076 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7077 lt_int_apple_cc_single_mod=yes
7078 fi
7079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7080 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7081 else
7082 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'
7083 fi
7084 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7086 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7087 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}'
7088 else
7089 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}'
7090 fi
7091 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}'
7092 hardcode_direct=no
7093 hardcode_automatic=yes
7094 hardcode_shlibpath_var=unsupported
7095 whole_archive_flag_spec='-all_load $convenience'
7096 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007097 fi
John Criswell47fdd832003-07-14 16:52:07 +00007098 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007099
John Criswell47fdd832003-07-14 16:52:07 +00007100 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007102 hardcode_libdir_flag_spec='-L$libdir'
7103 hardcode_shlibpath_var=no
7104 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007105
John Criswell47fdd832003-07-14 16:52:07 +00007106 freebsd1*)
7107 ld_shlibs=no
7108 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007109
John Criswell47fdd832003-07-14 16:52:07 +00007110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7111 # support. Future versions do this automatically, but an explicit c++rt0.o
7112 # does not break anything, and helps significantly (at the cost of a little
7113 # extra space).
7114 freebsd2.2*)
7115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7116 hardcode_libdir_flag_spec='-R$libdir'
7117 hardcode_direct=yes
7118 hardcode_shlibpath_var=no
7119 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007120
John Criswell47fdd832003-07-14 16:52:07 +00007121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7122 freebsd2*)
7123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7124 hardcode_direct=yes
7125 hardcode_minus_L=yes
7126 hardcode_shlibpath_var=no
7127 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007128
John Criswell47fdd832003-07-14 16:52:07 +00007129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7130 freebsd*)
7131 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7132 hardcode_libdir_flag_spec='-R$libdir'
7133 hardcode_direct=yes
7134 hardcode_shlibpath_var=no
7135 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007136
John Criswell47fdd832003-07-14 16:52:07 +00007137 hpux9*)
7138 if test "$GCC" = yes; then
7139 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'
7140 else
7141 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'
7142 fi
7143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7144 hardcode_libdir_separator=:
7145 hardcode_direct=yes
7146
7147 # hardcode_minus_L: Not really in the search PATH,
7148 # but as the default location of the library.
7149 hardcode_minus_L=yes
7150 export_dynamic_flag_spec='${wl}-E'
7151 ;;
7152
7153 hpux10* | hpux11*)
7154 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7155 case "$host_cpu" in
7156 hppa*64*|ia64*)
7157 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7158 ;;
7159 *)
7160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7161 ;;
7162 esac
7163 else
7164 case "$host_cpu" in
7165 hppa*64*|ia64*)
7166 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7167 ;;
7168 *)
7169 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7170 ;;
7171 esac
7172 fi
7173 if test "$with_gnu_ld" = no; then
7174 case "$host_cpu" in
7175 hppa*64*)
7176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7177 hardcode_libdir_flag_spec_ld='+b $libdir'
7178 hardcode_libdir_separator=:
7179 hardcode_direct=no
7180 hardcode_shlibpath_var=no
7181 ;;
7182 ia64*)
7183 hardcode_libdir_flag_spec='-L$libdir'
7184 hardcode_direct=no
7185 hardcode_shlibpath_var=no
7186
7187 # hardcode_minus_L: Not really in the search PATH,
7188 # but as the default location of the library.
7189 hardcode_minus_L=yes
7190 ;;
7191 *)
7192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7193 hardcode_libdir_separator=:
7194 hardcode_direct=yes
7195 export_dynamic_flag_spec='${wl}-E'
7196
7197 # hardcode_minus_L: Not really in the search PATH,
7198 # but as the default location of the library.
7199 hardcode_minus_L=yes
7200 ;;
7201 esac
7202 fi
7203 ;;
7204
7205 irix5* | irix6* | nonstopux*)
7206 if test "$GCC" = yes; then
7207 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'
7208 else
7209 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'
7210 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7211 fi
7212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7213 hardcode_libdir_separator=:
7214 link_all_deplibs=yes
7215 ;;
7216
7217 netbsd*)
7218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7220 else
7221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7222 fi
7223 hardcode_libdir_flag_spec='-R$libdir'
7224 hardcode_direct=yes
7225 hardcode_shlibpath_var=no
7226 ;;
7227
7228 newsos6)
7229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7230 hardcode_direct=yes
7231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7232 hardcode_libdir_separator=:
7233 hardcode_shlibpath_var=no
7234 ;;
7235
7236 openbsd*)
7237 hardcode_direct=yes
7238 hardcode_shlibpath_var=no
7239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7242 export_dynamic_flag_spec='${wl}-E'
7243 else
7244 case $host_os in
7245 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7247 hardcode_libdir_flag_spec='-R$libdir'
7248 ;;
7249 *)
7250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7252 ;;
7253 esac
7254 fi
7255 ;;
7256
7257 os2*)
7258 hardcode_libdir_flag_spec='-L$libdir'
7259 hardcode_minus_L=yes
7260 allow_undefined_flag=unsupported
7261 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'
7262 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7263 ;;
7264
7265 osf3*)
7266 if test "$GCC" = yes; then
7267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7268 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'
7269 else
7270 allow_undefined_flag=' -expect_unresolved \*'
7271 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'
7272 fi
7273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274 hardcode_libdir_separator=:
7275 ;;
7276
7277 osf4* | osf5*) # as osf3* with the addition of -msym flag
7278 if test "$GCC" = yes; then
7279 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7280 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'
7281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7282 else
7283 allow_undefined_flag=' -expect_unresolved \*'
7284 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'
7285 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7286 $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'
7287
7288 # Both c and cxx compiler support -rpath directly
7289 hardcode_libdir_flag_spec='-rpath $libdir'
7290 fi
7291 hardcode_libdir_separator=:
7292 ;;
7293
7294 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7296 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007297 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007298 runpath_var=LD_RUN_PATH
7299 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007300 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007301
John Criswell47fdd832003-07-14 16:52:07 +00007302 solaris*)
7303 no_undefined_flag=' -z text'
7304 if test "$GCC" = yes; then
7305 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7306 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7307 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7308 else
7309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7312 fi
7313 hardcode_libdir_flag_spec='-R$libdir'
7314 hardcode_shlibpath_var=no
7315 case $host_os in
7316 solaris2.[0-5] | solaris2.[0-5].*) ;;
7317 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7319 esac
7320 link_all_deplibs=yes
7321 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007322
John Criswell47fdd832003-07-14 16:52:07 +00007323 sunos4*)
7324 if test "x$host_vendor" = xsequent; then
7325 # Use $CC to link under sequent, because it throws in some extra .o
7326 # files that make .init and .fini sections work.
7327 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7328 else
7329 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7330 fi
7331 hardcode_libdir_flag_spec='-L$libdir'
7332 hardcode_direct=yes
7333 hardcode_minus_L=yes
7334 hardcode_shlibpath_var=no
7335 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007336
John Criswell47fdd832003-07-14 16:52:07 +00007337 sysv4)
7338 case $host_vendor in
7339 sni)
7340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 hardcode_direct=yes # is this really true???
7342 ;;
7343 siemens)
7344 ## LD is ld it makes a PLAMLIB
7345 ## CC just makes a GrossModule.
7346 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7347 reload_cmds='$CC -r -o $output$reload_objs'
7348 hardcode_direct=no
7349 ;;
7350 motorola)
7351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7353 ;;
7354 esac
7355 runpath_var='LD_RUN_PATH'
7356 hardcode_shlibpath_var=no
7357 ;;
7358
7359 sysv4.3*)
7360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361 hardcode_shlibpath_var=no
7362 export_dynamic_flag_spec='-Bexport'
7363 ;;
7364
7365 sysv4*MP*)
7366 if test -d /usr/nec; then
7367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7368 hardcode_shlibpath_var=no
7369 runpath_var=LD_RUN_PATH
7370 hardcode_runpath_var=yes
7371 ld_shlibs=yes
7372 fi
7373 ;;
7374
7375 sysv4.2uw2*)
7376 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7377 hardcode_direct=yes
7378 hardcode_minus_L=no
7379 hardcode_shlibpath_var=no
7380 hardcode_runpath_var=yes
7381 runpath_var=LD_RUN_PATH
7382 ;;
7383
7384 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7385 no_undefined_flag='${wl}-z ${wl}text'
7386 if test "$GCC" = yes; then
7387 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388 else
7389 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7390 fi
7391 runpath_var='LD_RUN_PATH'
7392 hardcode_shlibpath_var=no
7393 ;;
7394
7395 sysv5*)
7396 no_undefined_flag=' -z text'
7397 # $CC -shared without GNU ld will not create a library from C++
7398 # object files and a static libstdc++, better avoid it by now
7399 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7401 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7402 hardcode_libdir_flag_spec=
7403 hardcode_shlibpath_var=no
7404 runpath_var='LD_RUN_PATH'
7405 ;;
7406
7407 uts4*)
7408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_libdir_flag_spec='-L$libdir'
7410 hardcode_shlibpath_var=no
7411 ;;
7412
7413 *)
7414 ld_shlibs=no
7415 ;;
7416 esac
7417 fi
7418
John Criswell7a73b802003-06-30 21:59:07 +00007419echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7420echo "${ECHO_T}$ld_shlibs" >&6
7421test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007422
John Criswell47fdd832003-07-14 16:52:07 +00007423variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7424if test "$GCC" = yes; then
7425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7426fi
7427
7428#
7429# Do we need to explicitly link libc?
7430#
7431case "x$archive_cmds_need_lc" in
7432x|xyes)
7433 # Assume -lc should be added
7434 archive_cmds_need_lc=yes
7435
7436 if test "$enable_shared" = yes && test "$GCC" = yes; then
7437 case $archive_cmds in
7438 *'~'*)
7439 # FIXME: we may have to deal with multi-command sequences.
7440 ;;
7441 '$CC '*)
7442 # Test whether the compiler implicitly links with -lc since on some
7443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7444 # to ld, don't add -lc before -lgcc.
7445 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7446echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7447 $rm conftest*
7448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7449
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } 2>conftest.err; then
7455 soname=conftest
7456 lib=conftest
7457 libobjs=conftest.$ac_objext
7458 deplibs=
7459 wl=$lt_prog_compiler_wl
7460 compiler_flags=-v
7461 linker_flags=-v
7462 verstring=
7463 output_objdir=.
7464 libname=conftest
7465 lt_save_allow_undefined_flag=$allow_undefined_flag
7466 allow_undefined_flag=
7467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7468 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }
7472 then
7473 archive_cmds_need_lc=no
7474 else
7475 archive_cmds_need_lc=yes
7476 fi
7477 allow_undefined_flag=$lt_save_allow_undefined_flag
7478 else
7479 cat conftest.err 1>&5
7480 fi
7481 $rm conftest*
7482 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7483echo "${ECHO_T}$archive_cmds_need_lc" >&6
7484 ;;
7485 esac
7486 fi
7487 ;;
7488esac
7489
John Criswell7a73b802003-06-30 21:59:07 +00007490echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7491echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7492hardcode_action=
7493if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007494 test -n "$runpath_var " || \
7495 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007496
7497 # We can hardcode non-existant directories.
7498 if test "$hardcode_direct" != no &&
7499 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7500 # have to relink, otherwise we might link with an installed library
7501 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007502 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007503 test "$hardcode_minus_L" != no; then
7504 # Linking always hardcodes the temporary library directory.
7505 hardcode_action=relink
7506 else
7507 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7508 hardcode_action=immediate
7509 fi
7510else
7511 # We cannot hardcode anything, or else we can only hardcode existing
7512 # directories.
7513 hardcode_action=unsupported
7514fi
7515echo "$as_me:$LINENO: result: $hardcode_action" >&5
7516echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007517
John Criswell47fdd832003-07-14 16:52:07 +00007518if test "$hardcode_action" = relink; then
7519 # Fast installation is not supported
7520 enable_fast_install=no
7521elif test "$shlibpath_overrides_runpath" = yes ||
7522 test "$enable_shared" = no; then
7523 # Fast installation is not necessary
7524 enable_fast_install=needless
7525fi
7526
John Criswell7a73b802003-06-30 21:59:07 +00007527striplib=
7528old_striplib=
7529echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7530echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7531if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7532 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7533 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536else
John Criswell47fdd832003-07-14 16:52:07 +00007537# FIXME - insert some real tests, host_os isn't really good enough
7538 case $host_os in
7539 darwin*)
7540 if test -n "$STRIP" ; then
7541 striplib="$STRIP -x"
7542 echo "$as_me:$LINENO: result: yes" >&5
7543echo "${ECHO_T}yes" >&6
7544 else
John Criswell7a73b802003-06-30 21:59:07 +00007545 echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
John Criswell47fdd832003-07-14 16:52:07 +00007548 ;;
7549 *)
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552 ;;
7553 esac
7554fi
John Criswell7a73b802003-06-30 21:59:07 +00007555
John Criswell7a73b802003-06-30 21:59:07 +00007556echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7557echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7558library_names_spec=
7559libname_spec='lib$name'
7560soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007561shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007562postinstall_cmds=
7563postuninstall_cmds=
7564finish_cmds=
7565finish_eval=
7566shlibpath_var=
7567shlibpath_overrides_runpath=unknown
7568version_type=none
7569dynamic_linker="$host_os ld.so"
7570sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007571if test "$GCC" = yes; then
7572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7573 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7574 # if the path contains ";" then we assume it to be the separator
7575 # otherwise default to the standard path separator (i.e. ":") - it is
7576 # assumed that no part of a normal pathname contains ";" but that should
7577 # okay in the real world where ";" in dirpaths is itself problematic.
7578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7579 else
7580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7581 fi
7582else
7583 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7584fi
7585need_lib_prefix=unknown
7586hardcode_into_libs=no
7587
7588# when you set need_version to no, make sure it does not cause -set_version
7589# flags to be left without arguments
7590need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007591
7592case $host_os in
7593aix3*)
7594 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007596 shlibpath_var=LIBPATH
7597
John Criswell47fdd832003-07-14 16:52:07 +00007598 # AIX 3 has no versioning support, so we append a major version to the name.
7599 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007600 ;;
7601
7602aix4* | aix5*)
7603 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007604 need_lib_prefix=no
7605 need_version=no
7606 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007607 if test "$host_cpu" = ia64; then
7608 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007610 shlibpath_var=LD_LIBRARY_PATH
7611 else
7612 # With GCC up to 2.95.x, collect2 would create an import file
7613 # for dependence libraries. The import file would start with
7614 # the line `#! .'. This would cause the generated library to
7615 # depend on `.', always an invalid library. This was fixed in
7616 # development snapshots of GCC prior to 3.0.
7617 case $host_os in
7618 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7620 echo ' yes '
7621 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7622 :
7623 else
7624 can_build_shared=no
7625 fi
7626 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007627 esac
John Criswell47fdd832003-07-14 16:52:07 +00007628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7629 # soname into executable. Probably we can add versioning support to
7630 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007631 if test "$aix_use_runtimelinking" = yes; then
7632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7633 # instead of lib<name>.a to let people know that these are not
7634 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007636 else
7637 # We preserve .a as extension for shared libraries through AIX4.2
7638 # and later when we are not doing run time linking.
7639 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007640 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007641 fi
7642 shlibpath_var=LIBPATH
7643 fi
7644 ;;
7645
7646amigaos*)
7647 library_names_spec='$libname.ixlibrary $libname.a'
7648 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7649 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'
7650 ;;
7651
7652beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007653 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007654 dynamic_linker="$host_os ld.so"
7655 shlibpath_var=LIBRARY_PATH
7656 ;;
7657
7658bsdi4*)
7659 version_type=linux
7660 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007663 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7664 shlibpath_var=LD_LIBRARY_PATH
7665 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7666 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007667 # the default ld.so.conf also contains /usr/contrib/lib and
7668 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7669 # libtool to hard-code these into programs
7670 ;;
7671
7672cygwin* | mingw* | pw32*)
7673 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007674 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007675 need_version=no
7676 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007677
John Criswell7a73b802003-06-30 21:59:07 +00007678 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007679 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007680 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007681 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7682 postinstall_cmds='base_file=`basename \${file}`~
7683 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007684 dldir=$destdir/`dirname \$dlpath`~
7685 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007686 $install_prog $dir/$dlname \$dldir/$dlname'
7687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007688 dlpath=$dir/\$dldll~
7689 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007690 shlibpath_overrides_runpath=yes
7691
7692 case $host_os in
7693 cygwin*)
7694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7696 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7697 ;;
7698 mingw*)
7699 # MinGW DLLs use traditional 'lib' prefix
7700 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7701 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7702 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7703 # It is most probably a Windows format PATH printed by
7704 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7705 # path with ; separators, and with drive letters. We can handle the
7706 # drive letters (cygwin fileutils understands them), so leave them,
7707 # especially as we might pass files found there to a mingw objdump,
7708 # which wouldn't understand a cygwinified path. Ahh.
7709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7710 else
7711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7712 fi
7713 ;;
7714 pw32*)
7715 # pw32 DLLs use 'pw' prefix rather than 'lib'
7716 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7717 ;;
7718 esac
John Criswell7a73b802003-06-30 21:59:07 +00007719 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007720
John Criswell7a73b802003-06-30 21:59:07 +00007721 *)
John Criswell47fdd832003-07-14 16:52:07 +00007722 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007723 ;;
7724 esac
7725 dynamic_linker='Win32 ld.exe'
7726 # FIXME: first we should search . and the directory the executable is in
7727 shlibpath_var=PATH
7728 ;;
7729
7730darwin* | rhapsody*)
7731 dynamic_linker="$host_os dyld"
7732 version_type=darwin
7733 need_lib_prefix=no
7734 need_version=no
7735 # FIXME: Relying on posixy $() will cause problems for
7736 # cross-compilation, but unfortunately the echo tests do not
7737 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007738 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7739 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007740 shlibpath_overrides_runpath=yes
7741 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007742 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7743 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7744 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7745 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"`
7746 fi
7747 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7748 ;;
7749
7750dgux*)
7751 version_type=linux
7752 need_lib_prefix=no
7753 need_version=no
7754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7755 soname_spec='${libname}${release}${shared_ext}$major'
7756 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007757 ;;
7758
7759freebsd1*)
7760 dynamic_linker=no
7761 ;;
7762
7763freebsd*)
7764 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7765 version_type=freebsd-$objformat
7766 case $version_type in
7767 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007769 need_version=no
7770 need_lib_prefix=no
7771 ;;
7772 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007774 need_version=yes
7775 ;;
7776 esac
7777 shlibpath_var=LD_LIBRARY_PATH
7778 case $host_os in
7779 freebsd2*)
7780 shlibpath_overrides_runpath=yes
7781 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007782 freebsd3.01* | freebsdelf3.01*)
7783 shlibpath_overrides_runpath=yes
7784 hardcode_into_libs=yes
7785 ;;
7786 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007787 shlibpath_overrides_runpath=no
7788 hardcode_into_libs=yes
7789 ;;
7790 esac
7791 ;;
7792
7793gnu*)
7794 version_type=linux
7795 need_lib_prefix=no
7796 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7798 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007799 shlibpath_var=LD_LIBRARY_PATH
7800 hardcode_into_libs=yes
7801 ;;
7802
7803hpux9* | hpux10* | hpux11*)
7804 # Give a soname corresponding to the major version so that dld.sl refuses to
7805 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007806 version_type=sunos
7807 need_lib_prefix=no
7808 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007809 case "$host_cpu" in
7810 ia64*)
7811 shrext='.so'
7812 hardcode_into_libs=yes
7813 dynamic_linker="$host_os dld.so"
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7818 if test "X$HPUX_IA64_MODE" = X32; then
7819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7820 else
7821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7822 fi
7823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7824 ;;
7825 hppa*64*)
7826 shrext='.sl'
7827 hardcode_into_libs=yes
7828 dynamic_linker="$host_os dld.sl"
7829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832 soname_spec='${libname}${release}${shared_ext}$major'
7833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7835 ;;
7836 *)
7837 shrext='.sl'
7838 dynamic_linker="$host_os dld.sl"
7839 shlibpath_var=SHLIB_PATH
7840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842 soname_spec='${libname}${release}${shared_ext}$major'
7843 ;;
7844 esac
John Criswell7a73b802003-06-30 21:59:07 +00007845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7846 postinstall_cmds='chmod 555 $lib'
7847 ;;
7848
John Criswell47fdd832003-07-14 16:52:07 +00007849irix5* | irix6* | nonstopux*)
7850 case $host_os in
7851 nonstopux*) version_type=nonstopux ;;
7852 *)
7853 if test "$lt_cv_prog_gnu_ld" = yes; then
7854 version_type=linux
7855 else
7856 version_type=irix
7857 fi ;;
7858 esac
John Criswell7a73b802003-06-30 21:59:07 +00007859 need_lib_prefix=no
7860 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007861 soname_spec='${libname}${release}${shared_ext}$major'
7862 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 +00007863 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007864 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007865 libsuff= shlibsuff=
7866 ;;
7867 *)
7868 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7870 libsuff= shlibsuff= libmagic=32-bit;;
7871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7872 libsuff=32 shlibsuff=N32 libmagic=N32;;
7873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007875 *) libsuff= shlibsuff= libmagic=never-match;;
7876 esac
7877 ;;
7878 esac
7879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7880 shlibpath_overrides_runpath=no
7881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007883 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007884 ;;
7885
7886# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007887linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007888 dynamic_linker=no
7889 ;;
7890
7891# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007892linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007893 version_type=linux
7894 need_lib_prefix=no
7895 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7899 shlibpath_var=LD_LIBRARY_PATH
7900 shlibpath_overrides_runpath=no
7901 # This implies no fast_install, which is unacceptable.
7902 # Some rework will be needed to allow for fast_install
7903 # before this can be enabled.
7904 hardcode_into_libs=yes
7905
7906 # We used to test for /lib/ld.so.1 and disable shared libraries on
7907 # powerpc, because MkLinux only supported shared libraries with the
7908 # GNU dynamic linker. Since this was broken with cross compilers,
7909 # most powerpc-linux boxes support dynamic linking these days and
7910 # people can always --disable-shared, the test was removed, and we
7911 # assume the GNU/Linux dynamic linker is in use.
7912 dynamic_linker='GNU/Linux ld.so'
7913 ;;
7914
7915netbsd*)
7916 version_type=sunos
7917 need_lib_prefix=no
7918 need_version=no
7919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7922 dynamic_linker='NetBSD (a.out) ld.so'
7923 else
John Criswell47fdd832003-07-14 16:52:07 +00007924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007926 dynamic_linker='NetBSD ld.elf_so'
7927 fi
7928 shlibpath_var=LD_LIBRARY_PATH
7929 shlibpath_overrides_runpath=yes
7930 hardcode_into_libs=yes
7931 ;;
7932
7933newsos6)
7934 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 shlibpath_overrides_runpath=yes
7938 ;;
7939
7940nto-qnx)
7941 version_type=linux
7942 need_lib_prefix=no
7943 need_version=no
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=yes
7948 ;;
7949
7950openbsd*)
7951 version_type=sunos
7952 need_lib_prefix=no
7953 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7956 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007957 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 +00007958 case $host_os in
7959 openbsd2.[89] | openbsd2.[89].*)
7960 shlibpath_overrides_runpath=no
7961 ;;
7962 *)
7963 shlibpath_overrides_runpath=yes
7964 ;;
7965 esac
John Criswell7a73b802003-06-30 21:59:07 +00007966 else
7967 shlibpath_overrides_runpath=yes
7968 fi
John Criswell7a73b802003-06-30 21:59:07 +00007969 ;;
7970
7971os2*)
7972 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007973 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007974 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007975 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007976 dynamic_linker='OS/2 ld.exe'
7977 shlibpath_var=LIBPATH
7978 ;;
7979
7980osf3* | osf4* | osf5*)
7981 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007982 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007983 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007984 soname_spec='${libname}${release}${shared_ext}$major'
7985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007986 shlibpath_var=LD_LIBRARY_PATH
7987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7989 ;;
7990
7991sco3.2v5*)
7992 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007993 soname_spec='${libname}${release}${shared_ext}$major'
7994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007995 shlibpath_var=LD_LIBRARY_PATH
7996 ;;
7997
7998solaris*)
7999 version_type=linux
8000 need_lib_prefix=no
8001 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00008002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8003 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008004 shlibpath_var=LD_LIBRARY_PATH
8005 shlibpath_overrides_runpath=yes
8006 hardcode_into_libs=yes
8007 # ldd complains unless libraries are executable
8008 postinstall_cmds='chmod +x $lib'
8009 ;;
8010
8011sunos4*)
8012 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00008013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00008014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 shlibpath_overrides_runpath=yes
8017 if test "$with_gnu_ld" = yes; then
8018 need_lib_prefix=no
8019 fi
8020 need_version=yes
8021 ;;
8022
8023sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8024 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008027 shlibpath_var=LD_LIBRARY_PATH
8028 case $host_vendor in
8029 sni)
8030 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008031 need_lib_prefix=no
8032 export_dynamic_flag_spec='${wl}-Blargedynsym'
8033 runpath_var=LD_RUN_PATH
8034 ;;
8035 siemens)
8036 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008037 ;;
8038 motorola)
8039 need_lib_prefix=no
8040 need_version=no
8041 shlibpath_overrides_runpath=no
8042 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8043 ;;
8044 esac
8045 ;;
8046
John Criswell7a73b802003-06-30 21:59:07 +00008047sysv4*MP*)
8048 if test -d /usr/nec ;then
8049 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008050 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8051 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008052 shlibpath_var=LD_LIBRARY_PATH
8053 fi
8054 ;;
8055
John Criswell47fdd832003-07-14 16:52:07 +00008056uts4*)
8057 version_type=linux
8058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8059 soname_spec='${libname}${release}${shared_ext}$major'
8060 shlibpath_var=LD_LIBRARY_PATH
8061 ;;
8062
John Criswell7a73b802003-06-30 21:59:07 +00008063*)
8064 dynamic_linker=no
8065 ;;
8066esac
8067echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8068echo "${ECHO_T}$dynamic_linker" >&6
8069test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008070
8071if test "x$enable_dlopen" != xyes; then
8072 enable_dlopen=unknown
8073 enable_dlopen_self=unknown
8074 enable_dlopen_self_static=unknown
8075else
8076 lt_cv_dlopen=no
8077 lt_cv_dlopen_libs=
8078
8079 case $host_os in
8080 beos*)
8081 lt_cv_dlopen="load_add_on"
8082 lt_cv_dlopen_libs=
8083 lt_cv_dlopen_self=yes
8084 ;;
8085
John Criswell47fdd832003-07-14 16:52:07 +00008086 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008087 lt_cv_dlopen="LoadLibrary"
8088 lt_cv_dlopen_libs=
8089 ;;
8090
John Criswell47fdd832003-07-14 16:52:07 +00008091 cygwin*)
8092 lt_cv_dlopen="dlopen"
8093 lt_cv_dlopen_libs=
8094 ;;
8095
8096 darwin*)
8097 # if libdl is installed we need to link against it
8098 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8099echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8100if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103 ac_check_lib_save_LIBS=$LIBS
8104LIBS="-ldl $LIBS"
8105cat >conftest.$ac_ext <<_ACEOF
8106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008112
8113/* Override any gcc2 internal prototype to avoid an error. */
8114#ifdef __cplusplus
8115extern "C"
8116#endif
8117/* We use char because int might match the return type of a gcc2
8118 builtin and then its argument prototype would still apply. */
8119char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008120int
8121main ()
8122{
8123dlopen ();
8124 ;
8125 return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext conftest$ac_exeext
8129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_lib_dl_dlopen=yes
8141else
8142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008143sed 's/^/| /' conftest.$ac_ext >&5
8144
John Criswell47fdd832003-07-14 16:52:07 +00008145ac_cv_lib_dl_dlopen=no
8146fi
8147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148LIBS=$ac_check_lib_save_LIBS
8149fi
8150echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8151echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8152if test $ac_cv_lib_dl_dlopen = yes; then
8153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8154else
8155
8156 lt_cv_dlopen="dyld"
8157 lt_cv_dlopen_libs=
8158 lt_cv_dlopen_self=yes
8159
8160fi
8161
8162 ;;
8163
John Criswell7a73b802003-06-30 21:59:07 +00008164 *)
8165 echo "$as_me:$LINENO: checking for shl_load" >&5
8166echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8167if test "${ac_cv_func_shl_load+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 cat >conftest.$ac_ext <<_ACEOF
8171#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008177/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008178 which can conflict with char shl_load (); below.
8179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8180 <limits.h> exists even on freestanding compilers. */
8181#ifdef __STDC__
8182# include <limits.h>
8183#else
8184# include <assert.h>
8185#endif
John Criswell7a73b802003-06-30 21:59:07 +00008186/* Override any gcc2 internal prototype to avoid an error. */
8187#ifdef __cplusplus
8188extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008189{
John Criswell7a73b802003-06-30 21:59:07 +00008190#endif
8191/* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8193char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008194/* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197#if defined (__stub_shl_load) || defined (__stub___shl_load)
8198choke me
8199#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008200char (*f) () = shl_load;
8201#endif
8202#ifdef __cplusplus
8203}
John Criswell7a73b802003-06-30 21:59:07 +00008204#endif
8205
John Criswell0c38eaf2003-09-10 15:17:25 +00008206int
8207main ()
8208{
8209return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008210 ;
8211 return 0;
8212}
8213_ACEOF
8214rm -f conftest.$ac_objext conftest$ac_exeext
8215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_func_shl_load=yes
8227else
8228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008229sed 's/^/| /' conftest.$ac_ext >&5
8230
John Criswell7a73b802003-06-30 21:59:07 +00008231ac_cv_func_shl_load=no
8232fi
8233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8234fi
8235echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8236echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8237if test $ac_cv_func_shl_load = yes; then
8238 lt_cv_dlopen="shl_load"
8239else
8240 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8241echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8242if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244else
8245 ac_check_lib_save_LIBS=$LIBS
8246LIBS="-ldld $LIBS"
8247cat >conftest.$ac_ext <<_ACEOF
8248#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008254
8255/* Override any gcc2 internal prototype to avoid an error. */
8256#ifdef __cplusplus
8257extern "C"
8258#endif
8259/* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8261char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008262int
8263main ()
8264{
8265shl_load ();
8266 ;
8267 return 0;
8268}
8269_ACEOF
8270rm -f conftest.$ac_objext conftest$ac_exeext
8271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8272 (eval $ac_link) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_lib_dld_shl_load=yes
8283else
8284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008285sed 's/^/| /' conftest.$ac_ext >&5
8286
John Criswell7a73b802003-06-30 21:59:07 +00008287ac_cv_lib_dld_shl_load=no
8288fi
8289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290LIBS=$ac_check_lib_save_LIBS
8291fi
8292echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8293echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8294if test $ac_cv_lib_dld_shl_load = yes; then
8295 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8296else
8297 echo "$as_me:$LINENO: checking for dlopen" >&5
8298echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8299if test "${ac_cv_func_dlopen+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8301else
8302 cat >conftest.$ac_ext <<_ACEOF
8303#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008304/* confdefs.h. */
8305_ACEOF
8306cat confdefs.h >>conftest.$ac_ext
8307cat >>conftest.$ac_ext <<_ACEOF
8308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008309/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008310 which can conflict with char dlopen (); below.
8311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312 <limits.h> exists even on freestanding compilers. */
8313#ifdef __STDC__
8314# include <limits.h>
8315#else
8316# include <assert.h>
8317#endif
John Criswell7a73b802003-06-30 21:59:07 +00008318/* Override any gcc2 internal prototype to avoid an error. */
8319#ifdef __cplusplus
8320extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008321{
John Criswell7a73b802003-06-30 21:59:07 +00008322#endif
8323/* We use char because int might match the return type of a gcc2
8324 builtin and then its argument prototype would still apply. */
8325char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008326/* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329#if defined (__stub_dlopen) || defined (__stub___dlopen)
8330choke me
8331#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008332char (*f) () = dlopen;
8333#endif
8334#ifdef __cplusplus
8335}
John Criswell7a73b802003-06-30 21:59:07 +00008336#endif
8337
John Criswell0c38eaf2003-09-10 15:17:25 +00008338int
8339main ()
8340{
8341return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008342 ;
8343 return 0;
8344}
8345_ACEOF
8346rm -f conftest.$ac_objext conftest$ac_exeext
8347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_func_dlopen=yes
8359else
8360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008361sed 's/^/| /' conftest.$ac_ext >&5
8362
John Criswell7a73b802003-06-30 21:59:07 +00008363ac_cv_func_dlopen=no
8364fi
8365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366fi
8367echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8368echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8369if test $ac_cv_func_dlopen = yes; then
8370 lt_cv_dlopen="dlopen"
8371else
8372 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8373echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8374if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377 ac_check_lib_save_LIBS=$LIBS
8378LIBS="-ldl $LIBS"
8379cat >conftest.$ac_ext <<_ACEOF
8380#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008386
8387/* Override any gcc2 internal prototype to avoid an error. */
8388#ifdef __cplusplus
8389extern "C"
8390#endif
8391/* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */
8393char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008394int
8395main ()
8396{
8397dlopen ();
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402rm -f conftest.$ac_objext conftest$ac_exeext
8403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_lib_dl_dlopen=yes
8415else
8416 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008417sed 's/^/| /' conftest.$ac_ext >&5
8418
John Criswell7a73b802003-06-30 21:59:07 +00008419ac_cv_lib_dl_dlopen=no
8420fi
8421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8422LIBS=$ac_check_lib_save_LIBS
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8425echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8426if test $ac_cv_lib_dl_dlopen = yes; then
8427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8428else
8429 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8430echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8431if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433else
8434 ac_check_lib_save_LIBS=$LIBS
8435LIBS="-lsvld $LIBS"
8436cat >conftest.$ac_ext <<_ACEOF
8437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008443
8444/* Override any gcc2 internal prototype to avoid an error. */
8445#ifdef __cplusplus
8446extern "C"
8447#endif
8448/* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8450char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008451int
8452main ()
8453{
8454dlopen ();
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest.$ac_objext conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } &&
8465 { ac_try='test -s conftest$ac_exeext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
8471 ac_cv_lib_svld_dlopen=yes
8472else
8473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008474sed 's/^/| /' conftest.$ac_ext >&5
8475
John Criswell7a73b802003-06-30 21:59:07 +00008476ac_cv_lib_svld_dlopen=no
8477fi
8478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479LIBS=$ac_check_lib_save_LIBS
8480fi
8481echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8482echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8483if test $ac_cv_lib_svld_dlopen = yes; then
8484 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8485else
8486 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8487echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8488if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491 ac_check_lib_save_LIBS=$LIBS
8492LIBS="-ldld $LIBS"
8493cat >conftest.$ac_ext <<_ACEOF
8494#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008495/* confdefs.h. */
8496_ACEOF
8497cat confdefs.h >>conftest.$ac_ext
8498cat >>conftest.$ac_ext <<_ACEOF
8499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008500
8501/* Override any gcc2 internal prototype to avoid an error. */
8502#ifdef __cplusplus
8503extern "C"
8504#endif
8505/* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008508int
8509main ()
8510{
8511dld_link ();
8512 ;
8513 return 0;
8514}
8515_ACEOF
8516rm -f conftest.$ac_objext conftest$ac_exeext
8517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_cv_lib_dld_dld_link=yes
8529else
8530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008531sed 's/^/| /' conftest.$ac_ext >&5
8532
John Criswell7a73b802003-06-30 21:59:07 +00008533ac_cv_lib_dld_dld_link=no
8534fi
8535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536LIBS=$ac_check_lib_save_LIBS
8537fi
8538echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8539echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8540if test $ac_cv_lib_dld_dld_link = yes; then
8541 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8542fi
8543
8544
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553
8554fi
8555
8556
8557fi
8558
8559 ;;
8560 esac
8561
8562 if test "x$lt_cv_dlopen" != xno; then
8563 enable_dlopen=yes
8564 else
8565 enable_dlopen=no
8566 fi
8567
8568 case $lt_cv_dlopen in
8569 dlopen)
8570 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008571 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008572
8573 save_LDFLAGS="$LDFLAGS"
8574 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8575
8576 save_LIBS="$LIBS"
8577 LIBS="$lt_cv_dlopen_libs $LIBS"
8578
8579 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8580echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8581if test "${lt_cv_dlopen_self+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584 if test "$cross_compiling" = yes; then :
8585 lt_cv_dlopen_self=cross
8586else
John Criswell47fdd832003-07-14 16:52:07 +00008587 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008588 lt_status=$lt_dlunknown
8589 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +00008590#line 8590 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008591#include "confdefs.h"
8592
8593#if HAVE_DLFCN_H
8594#include <dlfcn.h>
8595#endif
8596
8597#include <stdio.h>
8598
8599#ifdef RTLD_GLOBAL
8600# define LT_DLGLOBAL RTLD_GLOBAL
8601#else
8602# ifdef DL_GLOBAL
8603# define LT_DLGLOBAL DL_GLOBAL
8604# else
8605# define LT_DLGLOBAL 0
8606# endif
8607#endif
8608
8609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8610 find out it does not work in some platform. */
8611#ifndef LT_DLLAZY_OR_NOW
8612# ifdef RTLD_LAZY
8613# define LT_DLLAZY_OR_NOW RTLD_LAZY
8614# else
8615# ifdef DL_LAZY
8616# define LT_DLLAZY_OR_NOW DL_LAZY
8617# else
8618# ifdef RTLD_NOW
8619# define LT_DLLAZY_OR_NOW RTLD_NOW
8620# else
8621# ifdef DL_NOW
8622# define LT_DLLAZY_OR_NOW DL_NOW
8623# else
8624# define LT_DLLAZY_OR_NOW 0
8625# endif
8626# endif
8627# endif
8628# endif
8629#endif
8630
8631#ifdef __cplusplus
8632extern "C" void exit (int);
8633#endif
8634
8635void fnord() { int i=42;}
8636int main ()
8637{
8638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8639 int status = $lt_dlunknown;
8640
8641 if (self)
8642 {
8643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8644 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8645 /* dlclose (self); */
8646 }
8647
8648 exit (status);
8649}
8650EOF
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8656 (./conftest; exit; ) 2>/dev/null
8657 lt_status=$?
8658 case x$lt_status in
8659 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8660 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8661 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8662 esac
8663 else :
8664 # compilation failed
8665 lt_cv_dlopen_self=no
8666 fi
8667fi
8668rm -fr conftest*
8669
8670
8671fi
8672echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8673echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8674
8675 if test "x$lt_cv_dlopen_self" = xyes; then
8676 LDFLAGS="$LDFLAGS $link_static_flag"
8677 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8678echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8679if test "${lt_cv_dlopen_self_static+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682 if test "$cross_compiling" = yes; then :
8683 lt_cv_dlopen_self_static=cross
8684else
John Criswell47fdd832003-07-14 16:52:07 +00008685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008686 lt_status=$lt_dlunknown
8687 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +00008688#line 8688 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008689#include "confdefs.h"
8690
8691#if HAVE_DLFCN_H
8692#include <dlfcn.h>
8693#endif
8694
8695#include <stdio.h>
8696
8697#ifdef RTLD_GLOBAL
8698# define LT_DLGLOBAL RTLD_GLOBAL
8699#else
8700# ifdef DL_GLOBAL
8701# define LT_DLGLOBAL DL_GLOBAL
8702# else
8703# define LT_DLGLOBAL 0
8704# endif
8705#endif
8706
8707/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8708 find out it does not work in some platform. */
8709#ifndef LT_DLLAZY_OR_NOW
8710# ifdef RTLD_LAZY
8711# define LT_DLLAZY_OR_NOW RTLD_LAZY
8712# else
8713# ifdef DL_LAZY
8714# define LT_DLLAZY_OR_NOW DL_LAZY
8715# else
8716# ifdef RTLD_NOW
8717# define LT_DLLAZY_OR_NOW RTLD_NOW
8718# else
8719# ifdef DL_NOW
8720# define LT_DLLAZY_OR_NOW DL_NOW
8721# else
8722# define LT_DLLAZY_OR_NOW 0
8723# endif
8724# endif
8725# endif
8726# endif
8727#endif
8728
8729#ifdef __cplusplus
8730extern "C" void exit (int);
8731#endif
8732
8733void fnord() { int i=42;}
8734int main ()
8735{
8736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8737 int status = $lt_dlunknown;
8738
8739 if (self)
8740 {
8741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8743 /* dlclose (self); */
8744 }
8745
8746 exit (status);
8747}
8748EOF
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750 (eval $ac_link) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8754 (./conftest; exit; ) 2>/dev/null
8755 lt_status=$?
8756 case x$lt_status in
8757 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8758 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8759 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8760 esac
8761 else :
8762 # compilation failed
8763 lt_cv_dlopen_self_static=no
8764 fi
8765fi
8766rm -fr conftest*
8767
8768
8769fi
8770echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8771echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8772 fi
8773
8774 CPPFLAGS="$save_CPPFLAGS"
8775 LDFLAGS="$save_LDFLAGS"
8776 LIBS="$save_LIBS"
8777 ;;
8778 esac
8779
8780 case $lt_cv_dlopen_self in
8781 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8782 *) enable_dlopen_self=unknown ;;
8783 esac
8784
8785 case $lt_cv_dlopen_self_static in
8786 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8787 *) enable_dlopen_self_static=unknown ;;
8788 esac
8789fi
8790
8791
John Criswell47fdd832003-07-14 16:52:07 +00008792# Report which librarie types wil actually be built
8793echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8794echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8795echo "$as_me:$LINENO: result: $can_build_shared" >&5
8796echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008797
John Criswell47fdd832003-07-14 16:52:07 +00008798echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8799echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8800test "$can_build_shared" = "no" && enable_shared=no
8801
8802# On AIX, shared libraries and static libraries use the same namespace, and
8803# are all built from PIC.
8804case "$host_os" in
8805aix3*)
8806 test "$enable_shared" = yes && enable_static=no
8807 if test -n "$RANLIB"; then
8808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8809 postinstall_cmds='$RANLIB $lib'
8810 fi
8811 ;;
8812
8813aix4*)
8814 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8815 test "$enable_shared" = yes && enable_static=no
8816 fi
8817 ;;
8818 darwin* | rhapsody*)
8819 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8820 archive_cmds_need_lc=no
8821 case "$host_os" in
8822 rhapsody* | darwin1.[012])
8823 allow_undefined_flag='-undefined suppress'
8824 ;;
8825 *) # Darwin 1.3 on
8826 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8827 ;;
8828 esac
8829 # FIXME: Relying on posixy $() will cause problems for
8830 # cross-compilation, but unfortunately the echo tests do not
8831 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8832 # `"' quotes if we put them in here... so don't!
8833 output_verbose_link_cmd='echo'
8834 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8835 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8836 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8837 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}'
8838 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}'
8839 hardcode_direct=no
8840 hardcode_automatic=yes
8841 hardcode_shlibpath_var=unsupported
8842 whole_archive_flag_spec='-all_load $convenience'
8843 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008844 fi
John Criswell7a73b802003-06-30 21:59:07 +00008845 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008846esac
8847echo "$as_me:$LINENO: result: $enable_shared" >&5
8848echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008849
John Criswell47fdd832003-07-14 16:52:07 +00008850echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8851echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8852# Make sure either enable_shared or enable_static is yes.
8853test "$enable_shared" = yes || enable_static=yes
8854echo "$as_me:$LINENO: result: $enable_static" >&5
8855echo "${ECHO_T}$enable_static" >&6
8856
8857# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008858# libtool distribution, otherwise you forgot to ship ltmain.sh
8859# with your package, and you will get complaints that there are
8860# no rules to generate ltmain.sh.
8861if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008862 # See if we are running on zsh, and set the options which allow our commands through
8863 # without removal of \ escapes.
8864 if test -n "${ZSH_VERSION+set}" ; then
8865 setopt NO_GLOB_SUBST
8866 fi
John Criswell7a73b802003-06-30 21:59:07 +00008867 # Now quote all the things that may contain metacharacters while being
8868 # careful not to overquote the AC_SUBSTed values. We take copies of the
8869 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008870 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8871 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8872 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8873 deplibs_check_method reload_flag reload_cmds need_locks \
8874 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8875 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008876 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008877 old_postinstall_cmds old_postuninstall_cmds \
8878 compiler \
8879 CC \
8880 LD \
8881 lt_prog_compiler_wl \
8882 lt_prog_compiler_pic \
8883 lt_prog_compiler_static \
8884 lt_prog_compiler_no_builtin_flag \
8885 export_dynamic_flag_spec \
8886 thread_safe_flag_spec \
8887 whole_archive_flag_spec \
8888 enable_shared_with_static_runtimes \
8889 old_archive_cmds \
8890 old_archive_from_new_cmds \
8891 predep_objects \
8892 postdep_objects \
8893 predeps \
8894 postdeps \
8895 compiler_lib_search_path \
8896 archive_cmds \
8897 archive_expsym_cmds \
8898 postinstall_cmds \
8899 postuninstall_cmds \
8900 old_archive_from_expsyms_cmds \
8901 allow_undefined_flag \
8902 no_undefined_flag \
8903 export_symbols_cmds \
8904 hardcode_libdir_flag_spec \
8905 hardcode_libdir_flag_spec_ld \
8906 hardcode_libdir_separator \
8907 hardcode_automatic \
8908 module_cmds \
8909 module_expsym_cmds \
8910 lt_cv_prog_compiler_c_o \
8911 exclude_expsyms \
8912 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008913
8914 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008915 old_archive_cmds | \
8916 old_archive_from_new_cmds | \
8917 archive_cmds | \
8918 archive_expsym_cmds | \
8919 module_cmds | \
8920 module_expsym_cmds | \
8921 old_archive_from_expsyms_cmds | \
8922 export_symbols_cmds | \
8923 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008924 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008925 old_postinstall_cmds | old_postuninstall_cmds | \
8926 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008927 # Double-quote double-evaled strings.
8928 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8929 ;;
8930 *)
8931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8932 ;;
8933 esac
8934 done
8935
John Criswell47fdd832003-07-14 16:52:07 +00008936 case $lt_echo in
8937 *'\$0 --fallback-echo"')
8938 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8939 ;;
8940 esac
8941
8942cfgfile="${ofile}T"
8943 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8944 $rm -f "$cfgfile"
8945 { echo "$as_me:$LINENO: creating $ofile" >&5
8946echo "$as_me: creating $ofile" >&6;}
8947
8948 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008949#! $SHELL
8950
John Criswell47fdd832003-07-14 16:52:07 +00008951# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008952# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8953# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8954#
John Criswell47fdd832003-07-14 16:52:07 +00008955# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8956# Free Software Foundation, Inc.
8957#
8958# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008959# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8960#
8961# This program is free software; you can redistribute it and/or modify
8962# it under the terms of the GNU General Public License as published by
8963# the Free Software Foundation; either version 2 of the License, or
8964# (at your option) any later version.
8965#
8966# This program is distributed in the hope that it will be useful, but
8967# WITHOUT ANY WARRANTY; without even the implied warranty of
8968# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8969# General Public License for more details.
8970#
8971# You should have received a copy of the GNU General Public License
8972# along with this program; if not, write to the Free Software
8973# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8974#
8975# As a special exception to the GNU General Public License, if you
8976# distribute this file as part of a program that contains a
8977# configuration script generated by Autoconf, you may include it under
8978# the same distribution terms that you use for the rest of that program.
8979
John Criswell47fdd832003-07-14 16:52:07 +00008980# A sed program that does not truncate output.
8981SED=$lt_SED
8982
John Criswell7a73b802003-06-30 21:59:07 +00008983# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008984Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008985
8986# The HP-UX ksh and POSIX shell print the target directory to stdout
8987# if CDPATH is set.
8988if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8989
John Criswell47fdd832003-07-14 16:52:07 +00008990# The names of the tagged configurations supported by this script.
8991available_tags=
8992
John Criswell7a73b802003-06-30 21:59:07 +00008993# ### BEGIN LIBTOOL CONFIG
8994
8995# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8996
8997# Shell to use when invoking shell scripts.
8998SHELL=$lt_SHELL
8999
9000# Whether or not to build shared libraries.
9001build_libtool_libs=$enable_shared
9002
9003# Whether or not to build static libraries.
9004build_old_libs=$enable_static
9005
9006# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00009007build_libtool_need_lc=$archive_cmds_need_lc
9008
9009# Whether or not to disallow shared libs when runtime libs are static
9010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00009011
9012# Whether or not to optimize for fast installation.
9013fast_install=$enable_fast_install
9014
9015# The host system.
9016host_alias=$host_alias
9017host=$host
9018
9019# An echo program that does not interpret backslashes.
9020echo=$lt_echo
9021
9022# The archiver.
9023AR=$lt_AR
9024AR_FLAGS=$lt_AR_FLAGS
9025
John Criswell47fdd832003-07-14 16:52:07 +00009026# A C compiler.
9027LTCC=$lt_LTCC
9028
9029# A language-specific compiler.
9030CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009031
9032# Is the compiler the GNU C compiler?
9033with_gcc=$GCC
9034
John Criswell47fdd832003-07-14 16:52:07 +00009035# An ERE matcher.
9036EGREP=$lt_EGREP
9037
John Criswell7a73b802003-06-30 21:59:07 +00009038# The linker used to build libraries.
9039LD=$lt_LD
9040
9041# Whether we need hard or soft links.
9042LN_S=$lt_LN_S
9043
9044# A BSD-compatible nm program.
9045NM=$lt_NM
9046
9047# A symbol stripping program
9048STRIP=$STRIP
9049
9050# Used to examine libraries when file_magic_cmd begins "file"
9051MAGIC_CMD=$MAGIC_CMD
9052
9053# Used on cygwin: DLL creation program.
9054DLLTOOL="$DLLTOOL"
9055
9056# Used on cygwin: object dumper.
9057OBJDUMP="$OBJDUMP"
9058
9059# Used on cygwin: assembler.
9060AS="$AS"
9061
9062# The name of the directory that contains temporary libtool files.
9063objdir=$objdir
9064
9065# How to create reloadable object files.
9066reload_flag=$lt_reload_flag
9067reload_cmds=$lt_reload_cmds
9068
9069# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009070wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009071
9072# Object file suffix (normally "o").
9073objext="$ac_objext"
9074
9075# Old archive suffix (normally "a").
9076libext="$libext"
9077
John Criswell47fdd832003-07-14 16:52:07 +00009078# Shared library suffix (normally ".so").
9079shrext='$shrext'
9080
John Criswell7a73b802003-06-30 21:59:07 +00009081# Executable file suffix (normally "").
9082exeext="$exeext"
9083
9084# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009085pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009086pic_mode=$pic_mode
9087
John Criswell47fdd832003-07-14 16:52:07 +00009088# What is the maximum length of a command?
9089max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009090
John Criswell47fdd832003-07-14 16:52:07 +00009091# Does compiler simultaneously support -c and -o options?
9092compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009093
9094# Must we lock files when doing compilation ?
9095need_locks=$lt_need_locks
9096
9097# Do we need the lib prefix for modules?
9098need_lib_prefix=$need_lib_prefix
9099
9100# Do we need a version for libraries?
9101need_version=$need_version
9102
9103# Whether dlopen is supported.
9104dlopen_support=$enable_dlopen
9105
9106# Whether dlopen of programs is supported.
9107dlopen_self=$enable_dlopen_self
9108
9109# Whether dlopen of statically linked programs is supported.
9110dlopen_self_static=$enable_dlopen_self_static
9111
9112# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009113link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009114
9115# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009116no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009117
9118# Compiler flag to allow reflexive dlopens.
9119export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9120
9121# Compiler flag to generate shared objects directly from archives.
9122whole_archive_flag_spec=$lt_whole_archive_flag_spec
9123
9124# Compiler flag to generate thread-safe objects.
9125thread_safe_flag_spec=$lt_thread_safe_flag_spec
9126
9127# Library versioning type.
9128version_type=$version_type
9129
9130# Format of library name prefix.
9131libname_spec=$lt_libname_spec
9132
9133# List of archive names. First name is the real one, the rest are links.
9134# The last name is the one that the linker finds with -lNAME.
9135library_names_spec=$lt_library_names_spec
9136
9137# The coded name of the library, if different from the real name.
9138soname_spec=$lt_soname_spec
9139
9140# Commands used to build and install an old-style archive.
9141RANLIB=$lt_RANLIB
9142old_archive_cmds=$lt_old_archive_cmds
9143old_postinstall_cmds=$lt_old_postinstall_cmds
9144old_postuninstall_cmds=$lt_old_postuninstall_cmds
9145
9146# Create an old-style archive from a shared archive.
9147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9148
9149# Create a temporary old-style archive to link instead of a shared archive.
9150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9151
9152# Commands used to build and install a shared archive.
9153archive_cmds=$lt_archive_cmds
9154archive_expsym_cmds=$lt_archive_expsym_cmds
9155postinstall_cmds=$lt_postinstall_cmds
9156postuninstall_cmds=$lt_postuninstall_cmds
9157
John Criswell47fdd832003-07-14 16:52:07 +00009158# Commands used to build a loadable module (assumed same as above if empty)
9159module_cmds=$lt_module_cmds
9160module_expsym_cmds=$lt_module_expsym_cmds
9161
John Criswell7a73b802003-06-30 21:59:07 +00009162# Commands to strip libraries.
9163old_striplib=$lt_old_striplib
9164striplib=$lt_striplib
9165
John Criswell47fdd832003-07-14 16:52:07 +00009166# Dependencies to place before the objects being linked to create a
9167# shared library.
9168predep_objects=$lt_predep_objects
9169
9170# Dependencies to place after the objects being linked to create a
9171# shared library.
9172postdep_objects=$lt_postdep_objects
9173
9174# Dependencies to place before the objects being linked to create a
9175# shared library.
9176predeps=$lt_predeps
9177
9178# Dependencies to place after the objects being linked to create a
9179# shared library.
9180postdeps=$lt_postdeps
9181
9182# The library search path used internally by the compiler when linking
9183# a shared library.
9184compiler_lib_search_path=$lt_compiler_lib_search_path
9185
John Criswell7a73b802003-06-30 21:59:07 +00009186# Method to check whether dependent libraries are shared objects.
9187deplibs_check_method=$lt_deplibs_check_method
9188
9189# Command to use when deplibs_check_method == file_magic.
9190file_magic_cmd=$lt_file_magic_cmd
9191
9192# Flag that allows shared libraries with undefined symbols to be built.
9193allow_undefined_flag=$lt_allow_undefined_flag
9194
9195# Flag that forces no undefined symbols.
9196no_undefined_flag=$lt_no_undefined_flag
9197
9198# Commands used to finish a libtool library installation in a directory.
9199finish_cmds=$lt_finish_cmds
9200
9201# Same as above, but a single script fragment to be evaled but not shown.
9202finish_eval=$lt_finish_eval
9203
9204# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009205global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009206
9207# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009208global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009209
9210# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009211global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009212
9213# This is the shared library runtime path variable.
9214runpath_var=$runpath_var
9215
9216# This is the shared library path variable.
9217shlibpath_var=$shlibpath_var
9218
9219# Is shlibpath searched before the hard-coded library search path?
9220shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9221
9222# How to hardcode a shared library path into an executable.
9223hardcode_action=$hardcode_action
9224
9225# Whether we should hardcode library paths into libraries.
9226hardcode_into_libs=$hardcode_into_libs
9227
9228# Flag to hardcode \$libdir into a binary during linking.
9229# This must work even if \$libdir does not exist.
9230hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9231
John Criswell47fdd832003-07-14 16:52:07 +00009232# If ld is used when linking, flag to hardcode \$libdir into
9233# a binary during linking. This must work even if \$libdir does
9234# not exist.
9235hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9236
John Criswell7a73b802003-06-30 21:59:07 +00009237# Whether we need a single -rpath flag with a separated argument.
9238hardcode_libdir_separator=$lt_hardcode_libdir_separator
9239
John Criswell47fdd832003-07-14 16:52:07 +00009240# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009241# resulting binary.
9242hardcode_direct=$hardcode_direct
9243
9244# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9245# resulting binary.
9246hardcode_minus_L=$hardcode_minus_L
9247
9248# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9249# the resulting binary.
9250hardcode_shlibpath_var=$hardcode_shlibpath_var
9251
John Criswell47fdd832003-07-14 16:52:07 +00009252# Set to yes if building a shared library automatically hardcodes DIR into the library
9253# and all subsequent libraries and executables linked against it.
9254hardcode_automatic=$hardcode_automatic
9255
John Criswell7a73b802003-06-30 21:59:07 +00009256# Variables whose values should be saved in libtool wrapper scripts and
9257# restored at relink time.
9258variables_saved_for_relink="$variables_saved_for_relink"
9259
9260# Whether libtool must link a program against all its dependency libraries.
9261link_all_deplibs=$link_all_deplibs
9262
9263# Compile-time system search path for libraries
9264sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9265
9266# Run-time system search path for libraries
9267sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9268
9269# Fix the shell variable \$srcfile for the compiler.
9270fix_srcfile_path="$fix_srcfile_path"
9271
9272# Set to yes if exported symbols are required.
9273always_export_symbols=$always_export_symbols
9274
9275# The commands to list exported symbols.
9276export_symbols_cmds=$lt_export_symbols_cmds
9277
9278# The commands to extract the exported symbol list from a shared archive.
9279extract_expsyms_cmds=$lt_extract_expsyms_cmds
9280
9281# Symbols that should not be listed in the preloaded symbols.
9282exclude_expsyms=$lt_exclude_expsyms
9283
9284# Symbols that must always be exported.
9285include_expsyms=$lt_include_expsyms
9286
9287# ### END LIBTOOL CONFIG
9288
9289__EOF__
9290
John Criswell47fdd832003-07-14 16:52:07 +00009291
John Criswell7a73b802003-06-30 21:59:07 +00009292 case $host_os in
9293 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009294 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009295
9296# AIX sometimes has problems with the GCC collect2 program. For some
9297# reason, if we set the COLLECT_NAMES environment variable, the problems
9298# vanish in a puff of smoke.
9299if test "X${COLLECT_NAMES+set}" != Xset; then
9300 COLLECT_NAMES=
9301 export COLLECT_NAMES
9302fi
9303EOF
9304 ;;
9305 esac
9306
John Criswell7a73b802003-06-30 21:59:07 +00009307 # We use sed instead of cat because bash on DJGPP gets confused if
9308 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9309 # text mode, it properly converts lines to CR/LF. This bash problem
9310 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009311 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009312
John Criswell47fdd832003-07-14 16:52:07 +00009313 mv -f "$cfgfile" "$ofile" || \
9314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009315 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009316
9317else
9318 # If there is no Makefile yet, we rely on a make rule to execute
9319 # `config.status --recheck' to rerun these tests and create the
9320 # libtool script then.
9321 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009322fi
John Criswell7a73b802003-06-30 21:59:07 +00009323
9324
John Criswell47fdd832003-07-14 16:52:07 +00009325ac_ext=c
9326ac_cpp='$CPP $CPPFLAGS'
9327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329ac_compiler_gnu=$ac_cv_c_compiler_gnu
9330
9331CC="$lt_save_CC"
9332
9333
9334# Check whether --with-tags or --without-tags was given.
9335if test "${with_tags+set}" = set; then
9336 withval="$with_tags"
9337 tagnames="$withval"
9338fi;
9339
9340if test -f "$ltmain" && test -n "$tagnames"; then
9341 if test ! -f "${ofile}"; then
9342 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9343echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9344 fi
9345
9346 if test -z "$LTCC"; then
9347 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9348 if test -z "$LTCC"; then
9349 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9350echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9351 else
9352 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9353echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9354 fi
9355 fi
9356
9357 # Extract list of available tagged configurations in $ofile.
9358 # Note that this assumes the entire list is on one line.
9359 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9360
9361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9362 for tagname in $tagnames; do
9363 IFS="$lt_save_ifs"
9364 # Check whether tagname contains only valid characters
9365 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9366 "") ;;
9367 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9368echo "$as_me: error: invalid tag name: $tagname" >&2;}
9369 { (exit 1); exit 1; }; }
9370 ;;
9371 esac
9372
9373 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9374 then
9375 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9376echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9377 { (exit 1); exit 1; }; }
9378 fi
9379
9380 # Update the list of available tags.
9381 if test -n "$tagname"; then
9382 echo appending configuration tag \"$tagname\" to $ofile
9383
9384 case $tagname in
9385 CXX)
9386 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9387 ac_ext=cc
9388ac_cpp='$CXXCPP $CPPFLAGS'
9389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9392
9393
9394
9395
9396archive_cmds_need_lc_CXX=no
9397allow_undefined_flag_CXX=
9398always_export_symbols_CXX=no
9399archive_expsym_cmds_CXX=
9400export_dynamic_flag_spec_CXX=
9401hardcode_direct_CXX=no
9402hardcode_libdir_flag_spec_CXX=
9403hardcode_libdir_flag_spec_ld_CXX=
9404hardcode_libdir_separator_CXX=
9405hardcode_minus_L_CXX=no
9406hardcode_automatic_CXX=no
9407module_cmds_CXX=
9408module_expsym_cmds_CXX=
9409link_all_deplibs_CXX=unknown
9410old_archive_cmds_CXX=$old_archive_cmds
9411no_undefined_flag_CXX=
9412whole_archive_flag_spec_CXX=
9413enable_shared_with_static_runtimes_CXX=no
9414
9415# Dependencies to place before and after the object being linked:
9416predep_objects_CXX=
9417postdep_objects_CXX=
9418predeps_CXX=
9419postdeps_CXX=
9420compiler_lib_search_path_CXX=
9421
9422# Source file extension for C++ test sources.
9423ac_ext=cc
9424
9425# Object file extension for compiled C++ test sources.
9426objext=o
9427objext_CXX=$objext
9428
9429# Code to be used in simple compile tests
9430lt_simple_compile_test_code="int some_variable = 0;\n"
9431
9432# Code to be used in simple link tests
9433lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9434
9435# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9436
9437# If no C compiler was specified, use CC.
9438LTCC=${LTCC-"$CC"}
9439
9440# Allow CC to be a program name with arguments.
9441compiler=$CC
9442
9443
9444# Allow CC to be a program name with arguments.
9445lt_save_CC=$CC
9446lt_save_LD=$LD
9447lt_save_GCC=$GCC
9448GCC=$GXX
9449lt_save_with_gnu_ld=$with_gnu_ld
9450lt_save_path_LD=$lt_cv_path_LD
9451if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9452 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9453else
9454 unset lt_cv_prog_gnu_ld
9455fi
9456if test -n "${lt_cv_path_LDCXX+set}"; then
9457 lt_cv_path_LD=$lt_cv_path_LDCXX
9458else
9459 unset lt_cv_path_LD
9460fi
9461test -z "${LDCXX+set}" || LD=$LDCXX
9462CC=${CXX-"c++"}
9463compiler=$CC
9464compiler_CXX=$CC
9465cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9466
9467# We don't want -fno-exception wen compiling C++ code, so set the
9468# no_builtin_flag separately
9469if test "$GXX" = yes; then
9470 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9471else
9472 lt_prog_compiler_no_builtin_flag_CXX=
9473fi
9474
9475if test "$GXX" = yes; then
9476 # Set up default GNU C++ configuration
9477
9478
9479# Check whether --with-gnu-ld or --without-gnu-ld was given.
9480if test "${with_gnu_ld+set}" = set; then
9481 withval="$with_gnu_ld"
9482 test "$withval" = no || with_gnu_ld=yes
9483else
9484 with_gnu_ld=no
9485fi;
9486ac_prog=ld
9487if test "$GCC" = yes; then
9488 # Check if gcc -print-prog-name=ld gives a path.
9489 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9490echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9491 case $host in
9492 *-*-mingw*)
9493 # gcc leaves a trailing carriage return which upsets mingw
9494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9495 *)
9496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9497 esac
9498 case $ac_prog in
9499 # Accept absolute paths.
9500 [\\/]* | ?:[\\/]*)
9501 re_direlt='/[^/][^/]*/\.\./'
9502 # Canonicalize the path of ld
9503 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9504 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9505 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9506 done
9507 test -z "$LD" && LD="$ac_prog"
9508 ;;
9509 "")
9510 # If it fails, then pretend we aren't using GCC.
9511 ac_prog=ld
9512 ;;
9513 *)
9514 # If it is relative, then search for the first ld in PATH.
9515 with_gnu_ld=unknown
9516 ;;
9517 esac
9518elif test "$with_gnu_ld" = yes; then
9519 echo "$as_me:$LINENO: checking for GNU ld" >&5
9520echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9521else
9522 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9523echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9524fi
9525if test "${lt_cv_path_LD+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 if test -z "$LD"; then
9529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9530 for ac_dir in $PATH; do
9531 IFS="$lt_save_ifs"
9532 test -z "$ac_dir" && ac_dir=.
9533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9534 lt_cv_path_LD="$ac_dir/$ac_prog"
9535 # Check to see if the program is GNU ld. I'd rather use --version,
9536 # but apparently some GNU ld's only accept -v.
9537 # Break only if it was the GNU/non-GNU ld that we prefer.
9538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9539 *GNU* | *'with BFD'*)
9540 test "$with_gnu_ld" != no && break
9541 ;;
9542 *)
9543 test "$with_gnu_ld" != yes && break
9544 ;;
9545 esac
9546 fi
9547 done
9548 IFS="$lt_save_ifs"
9549else
9550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9551fi
9552fi
9553
9554LD="$lt_cv_path_LD"
9555if test -n "$LD"; then
9556 echo "$as_me:$LINENO: result: $LD" >&5
9557echo "${ECHO_T}$LD" >&6
9558else
9559 echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
9561fi
9562test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9563echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9564 { (exit 1); exit 1; }; }
9565echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9566echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9567if test "${lt_cv_prog_gnu_ld+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569else
9570 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9571case `"$LD" -v 2>&1 </dev/null` in
9572*GNU* | *'with BFD'*)
9573 lt_cv_prog_gnu_ld=yes
9574 ;;
9575*)
9576 lt_cv_prog_gnu_ld=no
9577 ;;
9578esac
9579fi
9580echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9581echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9582with_gnu_ld=$lt_cv_prog_gnu_ld
9583
9584
9585
9586 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9587 # archiving commands below assume that GNU ld is being used.
9588 if test "$with_gnu_ld" = yes; then
9589 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590 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'
9591
9592 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9593 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9594
9595 # If archive_cmds runs LD, not CC, wlarc should be empty
9596 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9597 # investigate it a little bit more. (MM)
9598 wlarc='${wl}'
9599
9600 # ancient GNU ld didn't support --whole-archive et. al.
9601 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9602 grep 'no-whole-archive' > /dev/null; then
9603 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9604 else
9605 whole_archive_flag_spec_CXX=
9606 fi
9607 else
9608 with_gnu_ld=no
9609 wlarc=
9610
9611 # A generic and very simple default shared library creation
9612 # command for GNU C++ for the case where it uses the native
9613 # linker, instead of GNU ld. If possible, this setting should
9614 # overridden to take advantage of the native linker features on
9615 # the platform it is being used on.
9616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9617 fi
9618
9619 # Commands to make compiler produce verbose output that lists
9620 # what "hidden" libraries, object files and flags are used when
9621 # linking a shared library.
9622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9623
9624else
9625 GXX=no
9626 with_gnu_ld=no
9627 wlarc=
9628fi
9629
9630# PORTME: fill in a description of your system's C++ link characteristics
9631echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9632echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9633ld_shlibs_CXX=yes
9634case $host_os in
9635 aix3*)
9636 # FIXME: insert proper C++ library support
9637 ld_shlibs_CXX=no
9638 ;;
9639 aix4* | aix5*)
9640 if test "$host_cpu" = ia64; then
9641 # On IA64, the linker does run time linking by default, so we don't
9642 # have to do anything special.
9643 aix_use_runtimelinking=no
9644 exp_sym_flag='-Bexport'
9645 no_entry_flag=""
9646 else
9647 aix_use_runtimelinking=no
9648
9649 # Test if we are trying to use run time linking or normal
9650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9651 # need to do runtime linking.
9652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9653 for ld_flag in $LDFLAGS; do
9654 case $ld_flag in
9655 *-brtl*)
9656 aix_use_runtimelinking=yes
9657 break
9658 ;;
9659 esac
9660 done
9661 esac
9662
9663 exp_sym_flag='-bexport'
9664 no_entry_flag='-bnoentry'
9665 fi
9666
9667 # When large executables or shared objects are built, AIX ld can
9668 # have problems creating the table of contents. If linking a library
9669 # or program results in "error TOC overflow" add -mminimal-toc to
9670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9672
9673 archive_cmds_CXX=''
9674 hardcode_direct_CXX=yes
9675 hardcode_libdir_separator_CXX=':'
9676 link_all_deplibs_CXX=yes
9677
9678 if test "$GXX" = yes; then
9679 case $host_os in aix4.012|aix4.012.*)
9680 # We only want to do this on AIX 4.2 and lower, the check
9681 # below for broken collect2 doesn't work under 4.3+
9682 collect2name=`${CC} -print-prog-name=collect2`
9683 if test -f "$collect2name" && \
9684 strings "$collect2name" | grep resolve_lib_name >/dev/null
9685 then
9686 # We have reworked collect2
9687 hardcode_direct_CXX=yes
9688 else
9689 # We have old collect2
9690 hardcode_direct_CXX=unsupported
9691 # It fails to find uninstalled libraries when the uninstalled
9692 # path is not listed in the libpath. Setting hardcode_minus_L
9693 # to unsupported forces relinking
9694 hardcode_minus_L_CXX=yes
9695 hardcode_libdir_flag_spec_CXX='-L$libdir'
9696 hardcode_libdir_separator_CXX=
9697 fi
9698 esac
9699 shared_flag='-shared'
9700 else
9701 # not using gcc
9702 if test "$host_cpu" = ia64; then
9703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704 # chokes on -Wl,-G. The following line is correct:
9705 shared_flag='-G'
9706 else
9707 if test "$aix_use_runtimelinking" = yes; then
9708 shared_flag='${wl}-G'
9709 else
9710 shared_flag='${wl}-bM:SRE'
9711 fi
9712 fi
9713 fi
9714
9715 # It seems that -bexpall does not export symbols beginning with
9716 # underscore (_), so it is better to generate a list of symbols to export.
9717 always_export_symbols_CXX=yes
9718 if test "$aix_use_runtimelinking" = yes; then
9719 # Warning - without using the other runtime loading flags (-brtl),
9720 # -berok will link without error, but may produce a broken library.
9721 allow_undefined_flag_CXX='-berok'
9722 # Determine the default libpath from the value encoded in an empty executable.
9723 cat >conftest.$ac_ext <<_ACEOF
9724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009730
John Criswell47fdd832003-07-14 16:52:07 +00009731int
9732main ()
9733{
9734
9735 ;
9736 return 0;
9737}
9738_ACEOF
9739rm -f conftest.$ac_objext conftest$ac_exeext
9740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -s conftest$ac_exeext'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751
9752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9753}'`
9754# Check for a 64-bit object if we didn't find anything.
9755if 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; }
9756}'`; fi
9757else
9758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009759sed 's/^/| /' conftest.$ac_ext >&5
9760
John Criswell47fdd832003-07-14 16:52:07 +00009761fi
9762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766
9767 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"
9768 else
9769 if test "$host_cpu" = ia64; then
9770 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9771 allow_undefined_flag_CXX="-z nodefs"
9772 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"
9773 else
9774 # Determine the default libpath from the value encoded in an empty executable.
9775 cat >conftest.$ac_ext <<_ACEOF
9776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009782
John Criswell47fdd832003-07-14 16:52:07 +00009783int
9784main ()
9785{
9786
9787 ;
9788 return 0;
9789}
9790_ACEOF
9791rm -f conftest.$ac_objext conftest$ac_exeext
9792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 (eval $ac_link) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -s conftest$ac_exeext'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803
9804aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9805}'`
9806# Check for a 64-bit object if we didn't find anything.
9807if 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; }
9808}'`; fi
9809else
9810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009811sed 's/^/| /' conftest.$ac_ext >&5
9812
John Criswell47fdd832003-07-14 16:52:07 +00009813fi
9814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9816
9817 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9818 # Warning - without using the other run time loading flags,
9819 # -berok will link without error, but may produce a broken library.
9820 no_undefined_flag_CXX=' ${wl}-bernotok'
9821 allow_undefined_flag_CXX=' ${wl}-berok'
9822 # -bexpall does not export symbols beginning with underscore (_)
9823 always_export_symbols_CXX=yes
9824 # Exported symbols can be pulled into shared objects from archives
9825 whole_archive_flag_spec_CXX=' '
9826 archive_cmds_need_lc_CXX=yes
9827 # This is similar to how AIX traditionally builds it's shared libraries.
9828 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'
9829 fi
9830 fi
9831 ;;
9832 chorus*)
9833 case $cc_basename in
9834 *)
9835 # FIXME: insert proper C++ library support
9836 ld_shlibs_CXX=no
9837 ;;
9838 esac
9839 ;;
9840
9841 cygwin* | mingw* | pw32*)
9842 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9843 # as there is no search path for DLLs.
9844 hardcode_libdir_flag_spec_CXX='-L$libdir'
9845 allow_undefined_flag_CXX=unsupported
9846 always_export_symbols_CXX=no
9847 enable_shared_with_static_runtimes_CXX=yes
9848
9849 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9850 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'
9851 # If the export-symbols file already is a .def file (1st line
9852 # is EXPORTS), use it as is; otherwise, prepend...
9853 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9854 cp $export_symbols $output_objdir/$soname.def;
9855 else
9856 echo EXPORTS > $output_objdir/$soname.def;
9857 cat $export_symbols >> $output_objdir/$soname.def;
9858 fi~
9859 $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'
9860 else
9861 ld_shlibs_CXX=no
9862 fi
9863 ;;
9864
9865 darwin* | rhapsody*)
9866 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9867 archive_cmds_need_lc_CXX=no
9868 case "$host_os" in
9869 rhapsody* | darwin1.[012])
9870 allow_undefined_flag_CXX='-undefined suppress'
9871 ;;
9872 *) # Darwin 1.3 on
9873 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9874 ;;
9875 esac
9876 lt_int_apple_cc_single_mod=no
9877 output_verbose_link_cmd='echo'
9878 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9879 lt_int_apple_cc_single_mod=yes
9880 fi
9881 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9882 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9883 else
9884 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'
9885 fi
9886 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9887
9888 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9889 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9890 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}'
9891 else
9892 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}'
9893 fi
9894 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}'
9895 hardcode_direct_CXX=no
9896 hardcode_automatic_CXX=yes
9897 hardcode_shlibpath_var_CXX=unsupported
9898 whole_archive_flag_spec_CXX='-all_load $convenience'
9899 link_all_deplibs_CXX=yes
9900 fi
9901 ;;
9902
9903 dgux*)
9904 case $cc_basename in
9905 ec++)
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 ;;
9909 ghcx)
9910 # Green Hills C++ Compiler
9911 # FIXME: insert proper C++ library support
9912 ld_shlibs_CXX=no
9913 ;;
9914 *)
9915 # FIXME: insert proper C++ library support
9916 ld_shlibs_CXX=no
9917 ;;
9918 esac
9919 ;;
9920 freebsd12*)
9921 # C++ shared libraries reported to be fairly broken before switch to ELF
9922 ld_shlibs_CXX=no
9923 ;;
9924 freebsd-elf*)
9925 archive_cmds_need_lc_CXX=no
9926 ;;
9927 freebsd*)
9928 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9929 # conventions
9930 ld_shlibs_CXX=yes
9931 ;;
9932 gnu*)
9933 ;;
9934 hpux9*)
9935 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9936 hardcode_libdir_separator_CXX=:
9937 export_dynamic_flag_spec_CXX='${wl}-E'
9938 hardcode_direct_CXX=yes
9939 hardcode_minus_L_CXX=yes # Not in the search PATH,
9940 # but as the default
9941 # location of the library.
9942
9943 case $cc_basename in
9944 CC)
9945 # FIXME: insert proper C++ library support
9946 ld_shlibs_CXX=no
9947 ;;
9948 aCC)
9949 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'
9950 # Commands to make compiler produce verbose output that lists
9951 # what "hidden" libraries, object files and flags are used when
9952 # linking a shared library.
9953 #
9954 # There doesn't appear to be a way to prevent this compiler from
9955 # explicitly linking system object files so we need to strip them
9956 # from the output so that they don't get included in the library
9957 # dependencies.
9958 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'
9959 ;;
9960 *)
9961 if test "$GXX" = yes; then
9962 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'
9963 else
9964 # FIXME: insert proper C++ library support
9965 ld_shlibs_CXX=no
9966 fi
9967 ;;
9968 esac
9969 ;;
9970 hpux10*|hpux11*)
9971 if test $with_gnu_ld = no; then
9972 case "$host_cpu" in
9973 hppa*64*)
9974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9975 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9976 hardcode_libdir_separator_CXX=:
9977 ;;
9978 ia64*)
9979 hardcode_libdir_flag_spec_CXX='-L$libdir'
9980 ;;
9981 *)
9982 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9983 hardcode_libdir_separator_CXX=:
9984 export_dynamic_flag_spec_CXX='${wl}-E'
9985 ;;
9986 esac
9987 fi
9988 case "$host_cpu" in
9989 hppa*64*)
9990 hardcode_direct_CXX=no
9991 hardcode_shlibpath_var_CXX=no
9992 ;;
9993 ia64*)
9994 hardcode_direct_CXX=no
9995 hardcode_shlibpath_var_CXX=no
9996 hardcode_minus_L_CXX=yes # Not in the search PATH,
9997 # but as the default
9998 # location of the library.
9999 ;;
10000 *)
10001 hardcode_direct_CXX=yes
10002 hardcode_minus_L_CXX=yes # Not in the search PATH,
10003 # but as the default
10004 # location of the library.
10005 ;;
10006 esac
10007
10008 case $cc_basename in
10009 CC)
10010 # FIXME: insert proper C++ library support
10011 ld_shlibs_CXX=no
10012 ;;
10013 aCC)
10014 case "$host_cpu" in
10015 hppa*64*|ia64*)
10016 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10017 ;;
10018 *)
10019 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10020 ;;
10021 esac
10022 # Commands to make compiler produce verbose output that lists
10023 # what "hidden" libraries, object files and flags are used when
10024 # linking a shared library.
10025 #
10026 # There doesn't appear to be a way to prevent this compiler from
10027 # explicitly linking system object files so we need to strip them
10028 # from the output so that they don't get included in the library
10029 # dependencies.
10030 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'
10031 ;;
10032 *)
10033 if test "$GXX" = yes; then
10034 if test $with_gnu_ld = no; then
10035 case "$host_cpu" in
10036 ia64*|hppa*64*)
10037 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10038 ;;
10039 *)
10040 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'
10041 ;;
10042 esac
10043 fi
10044 else
10045 # FIXME: insert proper C++ library support
10046 ld_shlibs_CXX=no
10047 fi
10048 ;;
10049 esac
10050 ;;
10051 irix5* | irix6*)
10052 case $cc_basename in
10053 CC)
10054 # SGI C++
10055 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'
10056
10057 # Archives containing C++ object files must be created using
10058 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10059 # necessary to make sure instantiated templates are included
10060 # in the archive.
10061 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10062 ;;
10063 *)
10064 if test "$GXX" = yes; then
10065 if test "$with_gnu_ld" = no; then
10066 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'
10067 else
10068 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'
10069 fi
10070 fi
10071 link_all_deplibs_CXX=yes
10072 ;;
10073 esac
10074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10075 hardcode_libdir_separator_CXX=:
10076 ;;
10077 linux*)
10078 case $cc_basename in
10079 KCC)
10080 # Kuck and Associates, Inc. (KAI) C++ Compiler
10081
10082 # KCC will only create a shared library if the output file
10083 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10084 # to its proper name (with version) after linking.
10085 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'
10086 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'
10087 # Commands to make compiler produce verbose output that lists
10088 # what "hidden" libraries, object files and flags are used when
10089 # linking a shared library.
10090 #
10091 # There doesn't appear to be a way to prevent this compiler from
10092 # explicitly linking system object files so we need to strip them
10093 # from the output so that they don't get included in the library
10094 # dependencies.
10095 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'
10096
10097 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10099
10100 # Archives containing C++ object files must be created using
10101 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10102 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10103 ;;
10104 icpc)
10105 # Intel C++
10106 with_gnu_ld=yes
10107 archive_cmds_need_lc_CXX=no
10108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 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'
10110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10112 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10113 ;;
10114 cxx)
10115 # Compaq C++
10116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10117 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'
10118
10119 runpath_var=LD_RUN_PATH
10120 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10121 hardcode_libdir_separator_CXX=:
10122
10123 # Commands to make compiler produce verbose output that lists
10124 # what "hidden" libraries, object files and flags are used when
10125 # linking a shared library.
10126 #
10127 # There doesn't appear to be a way to prevent this compiler from
10128 # explicitly linking system object files so we need to strip them
10129 # from the output so that they don't get included in the library
10130 # dependencies.
10131 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'
10132 ;;
10133 esac
10134 ;;
10135 lynxos*)
10136 # FIXME: insert proper C++ library support
10137 ld_shlibs_CXX=no
10138 ;;
10139 m88k*)
10140 # FIXME: insert proper C++ library support
10141 ld_shlibs_CXX=no
10142 ;;
10143 mvs*)
10144 case $cc_basename in
10145 cxx)
10146 # FIXME: insert proper C++ library support
10147 ld_shlibs_CXX=no
10148 ;;
10149 *)
10150 # FIXME: insert proper C++ library support
10151 ld_shlibs_CXX=no
10152 ;;
10153 esac
10154 ;;
10155 netbsd*)
10156 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10157 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10158 wlarc=
10159 hardcode_libdir_flag_spec_CXX='-R$libdir'
10160 hardcode_direct_CXX=yes
10161 hardcode_shlibpath_var_CXX=no
10162 fi
10163 # Workaround some broken pre-1.5 toolchains
10164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10165 ;;
10166 osf3*)
10167 case $cc_basename in
10168 KCC)
10169 # Kuck and Associates, Inc. (KAI) C++ Compiler
10170
10171 # KCC will only create a shared library if the output file
10172 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10173 # to its proper name (with version) after linking.
10174 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'
10175
10176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10177 hardcode_libdir_separator_CXX=:
10178
10179 # Archives containing C++ object files must be created using
10180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10182
10183 ;;
10184 RCC)
10185 # Rational C++ 2.4.1
10186 # FIXME: insert proper C++ library support
10187 ld_shlibs_CXX=no
10188 ;;
10189 cxx)
10190 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10191 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'
10192
10193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10194 hardcode_libdir_separator_CXX=:
10195
10196 # Commands to make compiler produce verbose output that lists
10197 # what "hidden" libraries, object files and flags are used when
10198 # linking a shared library.
10199 #
10200 # There doesn't appear to be a way to prevent this compiler from
10201 # explicitly linking system object files so we need to strip them
10202 # from the output so that they don't get included in the library
10203 # dependencies.
10204 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'
10205 ;;
10206 *)
10207 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10208 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10209 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'
10210
10211 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10212 hardcode_libdir_separator_CXX=:
10213
10214 # Commands to make compiler produce verbose output that lists
10215 # what "hidden" libraries, object files and flags are used when
10216 # linking a shared library.
10217 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10218
10219 else
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10222 fi
10223 ;;
10224 esac
10225 ;;
10226 osf4* | osf5*)
10227 case $cc_basename in
10228 KCC)
10229 # Kuck and Associates, Inc. (KAI) C++ Compiler
10230
10231 # KCC will only create a shared library if the output file
10232 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10233 # to its proper name (with version) after linking.
10234 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'
10235
10236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10237 hardcode_libdir_separator_CXX=:
10238
10239 # Archives containing C++ object files must be created using
10240 # the KAI C++ compiler.
10241 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10242 ;;
10243 RCC)
10244 # Rational C++ 2.4.1
10245 # FIXME: insert proper C++ library support
10246 ld_shlibs_CXX=no
10247 ;;
10248 cxx)
10249 allow_undefined_flag_CXX=' -expect_unresolved \*'
10250 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'
10251 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10252 echo "-hidden">> $lib.exp~
10253 $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~
10254 $rm $lib.exp'
10255
10256 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10257 hardcode_libdir_separator_CXX=:
10258
10259 # Commands to make compiler produce verbose output that lists
10260 # what "hidden" libraries, object files and flags are used when
10261 # linking a shared library.
10262 #
10263 # There doesn't appear to be a way to prevent this compiler from
10264 # explicitly linking system object files so we need to strip them
10265 # from the output so that they don't get included in the library
10266 # dependencies.
10267 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'
10268 ;;
10269 *)
10270 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10271 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10272 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'
10273
10274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10275 hardcode_libdir_separator_CXX=:
10276
10277 # Commands to make compiler produce verbose output that lists
10278 # what "hidden" libraries, object files and flags are used when
10279 # linking a shared library.
10280 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10281
10282 else
10283 # FIXME: insert proper C++ library support
10284 ld_shlibs_CXX=no
10285 fi
10286 ;;
10287 esac
10288 ;;
10289 psos*)
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 ;;
10293 sco*)
10294 archive_cmds_need_lc_CXX=no
10295 case $cc_basename in
10296 CC)
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 *)
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10303 ;;
10304 esac
10305 ;;
10306 sunos4*)
10307 case $cc_basename in
10308 CC)
10309 # Sun C++ 4.x
10310 # FIXME: insert proper C++ library support
10311 ld_shlibs_CXX=no
10312 ;;
10313 lcc)
10314 # Lucid
10315 # FIXME: insert proper C++ library support
10316 ld_shlibs_CXX=no
10317 ;;
10318 *)
10319 # FIXME: insert proper C++ library support
10320 ld_shlibs_CXX=no
10321 ;;
10322 esac
10323 ;;
10324 solaris*)
10325 case $cc_basename in
10326 CC)
10327 # Sun C++ 4.2, 5.x and Centerline C++
10328 no_undefined_flag_CXX=' -zdefs'
10329 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10330 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10331 $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'
10332
10333 hardcode_libdir_flag_spec_CXX='-R$libdir'
10334 hardcode_shlibpath_var_CXX=no
10335 case $host_os in
10336 solaris2.0-5 | solaris2.0-5.*) ;;
10337 *)
10338 # The C++ compiler is used as linker so we must use $wl
10339 # flag to pass the commands to the underlying system
10340 # linker.
10341 # Supported since Solaris 2.6 (maybe 2.5.1?)
10342 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10343 ;;
10344 esac
10345 link_all_deplibs_CXX=yes
10346
10347 # Commands to make compiler produce verbose output that lists
10348 # what "hidden" libraries, object files and flags are used when
10349 # linking a shared library.
10350 #
10351 # There doesn't appear to be a way to prevent this compiler from
10352 # explicitly linking system object files so we need to strip them
10353 # from the output so that they don't get included in the library
10354 # dependencies.
10355 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'
10356
10357 # Archives containing C++ object files must be created using
10358 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10359 # necessary to make sure instantiated templates are included
10360 # in the archive.
10361 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10362 ;;
10363 gcx)
10364 # Green Hills C++ Compiler
10365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10366
10367 # The C++ compiler must be used to create the archive.
10368 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10369 ;;
10370 *)
10371 # GNU C++ compiler with Solaris linker
10372 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10373 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10374 if $CC --version | grep -v '^2\.7' > /dev/null; then
10375 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10376 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10377 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10378
10379 # Commands to make compiler produce verbose output that lists
10380 # what "hidden" libraries, object files and flags are used when
10381 # linking a shared library.
10382 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10383 else
10384 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10385 # platform.
10386 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10387 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10388 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10389
10390 # Commands to make compiler produce verbose output that lists
10391 # what "hidden" libraries, object files and flags are used when
10392 # linking a shared library.
10393 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10394 fi
10395
10396 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10397 fi
10398 ;;
10399 esac
10400 ;;
10401 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10402 archive_cmds_need_lc_CXX=no
10403 ;;
10404 tandem*)
10405 case $cc_basename in
10406 NCC)
10407 # NonStop-UX NCC 3.20
10408 # FIXME: insert proper C++ library support
10409 ld_shlibs_CXX=no
10410 ;;
10411 *)
10412 # FIXME: insert proper C++ library support
10413 ld_shlibs_CXX=no
10414 ;;
10415 esac
10416 ;;
10417 vxworks*)
10418 # FIXME: insert proper C++ library support
10419 ld_shlibs_CXX=no
10420 ;;
10421 *)
10422 # FIXME: insert proper C++ library support
10423 ld_shlibs_CXX=no
10424 ;;
10425esac
10426echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10427echo "${ECHO_T}$ld_shlibs_CXX" >&6
10428test "$ld_shlibs_CXX" = no && can_build_shared=no
10429
10430GCC_CXX="$GXX"
10431LD_CXX="$LD"
10432
10433## CAVEAT EMPTOR:
10434## There is no encapsulation within the following macros, do not change
10435## the running order or otherwise move them around unless you know exactly
10436## what you are doing...
10437
10438cat > conftest.$ac_ext <<EOF
10439class Foo
10440{
10441public:
10442 Foo (void) { a = 0; }
10443private:
10444 int a;
10445};
10446EOF
10447
10448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
10453 # Parse the compiler output and extract the necessary
10454 # objects, libraries and library flags.
10455
10456 # Sentinel used to keep track of whether or not we are before
10457 # the conftest object file.
10458 pre_test_object_deps_done=no
10459
10460 # The `*' in the case matches for architectures that use `case' in
10461 # $output_verbose_cmd can trigger glob expansion during the loop
10462 # eval without this substitution.
10463 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10464
10465 for p in `eval $output_verbose_link_cmd`; do
10466 case $p in
10467
10468 -L* | -R* | -l*)
10469 # Some compilers place space between "-{L,R}" and the path.
10470 # Remove the space.
10471 if test $p = "-L" \
10472 || test $p = "-R"; then
10473 prev=$p
10474 continue
10475 else
10476 prev=
10477 fi
10478
10479 if test "$pre_test_object_deps_done" = no; then
10480 case $p in
10481 -L* | -R*)
10482 # Internal compiler library paths should come after those
10483 # provided the user. The postdeps already come after the
10484 # user supplied libs so there is no need to process them.
10485 if test -z "$compiler_lib_search_path_CXX"; then
10486 compiler_lib_search_path_CXX="${prev}${p}"
10487 else
10488 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10489 fi
10490 ;;
10491 # The "-l" case would never come before the object being
10492 # linked, so don't bother handling this case.
10493 esac
10494 else
10495 if test -z "$postdeps_CXX"; then
10496 postdeps_CXX="${prev}${p}"
10497 else
10498 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10499 fi
10500 fi
10501 ;;
10502
10503 *.$objext)
10504 # This assumes that the test object file only shows up
10505 # once in the compiler output.
10506 if test "$p" = "conftest.$objext"; then
10507 pre_test_object_deps_done=yes
10508 continue
10509 fi
10510
10511 if test "$pre_test_object_deps_done" = no; then
10512 if test -z "$predep_objects_CXX"; then
10513 predep_objects_CXX="$p"
10514 else
10515 predep_objects_CXX="$predep_objects_CXX $p"
10516 fi
10517 else
10518 if test -z "$postdep_objects_CXX"; then
10519 postdep_objects_CXX="$p"
10520 else
10521 postdep_objects_CXX="$postdep_objects_CXX $p"
10522 fi
10523 fi
10524 ;;
10525
10526 *) ;; # Ignore the rest.
10527
10528 esac
10529 done
10530
10531 # Clean up.
10532 rm -f a.out a.exe
10533else
10534 echo "libtool.m4: error: problem compiling CXX test program"
10535fi
10536
10537$rm -f confest.$objext
10538
10539case " $postdeps_CXX " in
10540*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10541esac
10542
10543lt_prog_compiler_wl_CXX=
10544lt_prog_compiler_pic_CXX=
10545lt_prog_compiler_static_CXX=
10546
10547echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10548echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10549
10550 # C++ specific cases for pic, static, wl, etc.
10551 if test "$GXX" = yes; then
10552 lt_prog_compiler_wl_CXX='-Wl,'
10553 lt_prog_compiler_static_CXX='-static'
10554
10555 case $host_os in
10556 aix*)
10557 # All AIX code is PIC.
10558 if test "$host_cpu" = ia64; then
10559 # AIX 5 now supports IA64 processor
10560 lt_prog_compiler_static_CXX='-Bstatic'
10561 fi
10562 ;;
10563 amigaos*)
10564 # FIXME: we need at least 68020 code to build shared libraries, but
10565 # adding the `-m68020' flag to GCC prevents building anything better,
10566 # like `-m68040'.
10567 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10568 ;;
10569 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10570 # PIC is the default for these OSes.
10571 ;;
10572 mingw* | os2* | pw32*)
10573 # This hack is so that the source file can tell whether it is being
10574 # built for inclusion in a dll (and should export symbols for example).
10575 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10576 ;;
10577 darwin* | rhapsody*)
10578 # PIC is the default on this platform
10579 # Common symbols not allowed in MH_DYLIB files
10580 lt_prog_compiler_pic_CXX='-fno-common'
10581 ;;
10582 *djgpp*)
10583 # DJGPP does not support shared libraries at all
10584 lt_prog_compiler_pic_CXX=
10585 ;;
10586 sysv4*MP*)
10587 if test -d /usr/nec; then
10588 lt_prog_compiler_pic_CXX=-Kconform_pic
10589 fi
10590 ;;
10591 hpux*)
10592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10593 # not for PA HP-UX.
10594 case "$host_cpu" in
10595 hppa*64*|ia64*)
10596 ;;
10597 *)
10598 lt_prog_compiler_pic_CXX='-fPIC'
10599 ;;
10600 esac
10601 ;;
10602 *)
10603 lt_prog_compiler_pic_CXX='-fPIC'
10604 ;;
10605 esac
10606 else
10607 case $host_os in
10608 aix4* | aix5*)
10609 # All AIX code is PIC.
10610 if test "$host_cpu" = ia64; then
10611 # AIX 5 now supports IA64 processor
10612 lt_prog_compiler_static_CXX='-Bstatic'
10613 else
10614 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10615 fi
10616 ;;
10617 chorus*)
10618 case $cc_basename in
10619 cxch68)
10620 # Green Hills C++ Compiler
10621 # _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"
10622 ;;
10623 esac
10624 ;;
10625 dgux*)
10626 case $cc_basename in
10627 ec++)
10628 lt_prog_compiler_pic_CXX='-KPIC'
10629 ;;
10630 ghcx)
10631 # Green Hills C++ Compiler
10632 lt_prog_compiler_pic_CXX='-pic'
10633 ;;
10634 *)
10635 ;;
10636 esac
10637 ;;
10638 freebsd*)
10639 # FreeBSD uses GNU C++
10640 ;;
10641 hpux9* | hpux10* | hpux11*)
10642 case $cc_basename in
10643 CC)
10644 lt_prog_compiler_wl_CXX='-Wl,'
10645 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10646 if test "$host_cpu" != ia64; then
10647 lt_prog_compiler_pic_CXX='+Z'
10648 fi
10649 ;;
10650 aCC)
10651 lt_prog_compiler_wl_CXX='-Wl,'
10652 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10653 case "$host_cpu" in
10654 hppa*64*|ia64*)
10655 # +Z the default
10656 ;;
10657 *)
10658 lt_prog_compiler_pic_CXX='+Z'
10659 ;;
10660 esac
10661 ;;
10662 *)
10663 ;;
10664 esac
10665 ;;
10666 irix5* | irix6* | nonstopux*)
10667 case $cc_basename in
10668 CC)
10669 lt_prog_compiler_wl_CXX='-Wl,'
10670 lt_prog_compiler_static_CXX='-non_shared'
10671 # CC pic flag -KPIC is the default.
10672 ;;
10673 *)
10674 ;;
10675 esac
10676 ;;
10677 linux*)
10678 case $cc_basename in
10679 KCC)
10680 # KAI C++ Compiler
10681 lt_prog_compiler_wl_CXX='--backend -Wl,'
10682 lt_prog_compiler_pic_CXX='-fPIC'
10683 ;;
10684 icpc)
10685 # Intel C++
10686 lt_prog_compiler_wl_CXX='-Wl,'
10687 lt_prog_compiler_pic_CXX='-KPIC'
10688 lt_prog_compiler_static_CXX='-static'
10689 ;;
10690 cxx)
10691 # Compaq C++
10692 # Make sure the PIC flag is empty. It appears that all Alpha
10693 # Linux and Compaq Tru64 Unix objects are PIC.
10694 lt_prog_compiler_pic_CXX=
10695 lt_prog_compiler_static_CXX='-non_shared'
10696 ;;
10697 *)
10698 ;;
10699 esac
10700 ;;
10701 lynxos*)
10702 ;;
10703 m88k*)
10704 ;;
10705 mvs*)
10706 case $cc_basename in
10707 cxx)
10708 lt_prog_compiler_pic_CXX='-W c,exportall'
10709 ;;
10710 *)
10711 ;;
10712 esac
10713 ;;
10714 netbsd*)
10715 ;;
10716 osf3* | osf4* | osf5*)
10717 case $cc_basename in
10718 KCC)
10719 lt_prog_compiler_wl_CXX='--backend -Wl,'
10720 ;;
10721 RCC)
10722 # Rational C++ 2.4.1
10723 lt_prog_compiler_pic_CXX='-pic'
10724 ;;
10725 cxx)
10726 # Digital/Compaq C++
10727 lt_prog_compiler_wl_CXX='-Wl,'
10728 # Make sure the PIC flag is empty. It appears that all Alpha
10729 # Linux and Compaq Tru64 Unix objects are PIC.
10730 lt_prog_compiler_pic_CXX=
10731 lt_prog_compiler_static_CXX='-non_shared'
10732 ;;
10733 *)
10734 ;;
10735 esac
10736 ;;
10737 psos*)
10738 ;;
10739 sco*)
10740 case $cc_basename in
10741 CC)
10742 lt_prog_compiler_pic_CXX='-fPIC'
10743 ;;
10744 *)
10745 ;;
10746 esac
10747 ;;
10748 solaris*)
10749 case $cc_basename in
10750 CC)
10751 # Sun C++ 4.2, 5.x and Centerline C++
10752 lt_prog_compiler_pic_CXX='-KPIC'
10753 lt_prog_compiler_static_CXX='-Bstatic'
10754 lt_prog_compiler_wl_CXX='-Qoption ld '
10755 ;;
10756 gcx)
10757 # Green Hills C++ Compiler
10758 lt_prog_compiler_pic_CXX='-PIC'
10759 ;;
10760 *)
10761 ;;
10762 esac
10763 ;;
10764 sunos4*)
10765 case $cc_basename in
10766 CC)
10767 # Sun C++ 4.x
10768 lt_prog_compiler_pic_CXX='-pic'
10769 lt_prog_compiler_static_CXX='-Bstatic'
10770 ;;
10771 lcc)
10772 # Lucid
10773 lt_prog_compiler_pic_CXX='-pic'
10774 ;;
10775 *)
10776 ;;
10777 esac
10778 ;;
10779 tandem*)
10780 case $cc_basename in
10781 NCC)
10782 # NonStop-UX NCC 3.20
10783 lt_prog_compiler_pic_CXX='-KPIC'
10784 ;;
10785 *)
10786 ;;
10787 esac
10788 ;;
10789 unixware*)
10790 ;;
10791 vxworks*)
10792 ;;
10793 *)
10794 lt_prog_compiler_can_build_shared_CXX=no
10795 ;;
10796 esac
10797 fi
10798
10799echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10800echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10801
10802#
10803# Check to make sure the PIC flag actually works.
10804#
10805if test -n "$lt_prog_compiler_pic_CXX"; then
10806 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10807echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10808if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810else
10811 lt_prog_compiler_pic_works_CXX=no
10812 ac_outfile=conftest.$ac_objext
10813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10814 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10815 # Insert the option either (1) after the last *FLAGS variable, or
10816 # (2) before a word containing "conftest.", or (3) at the end.
10817 # Note that $ac_compile itself does not contain backslashes and begins
10818 # with a dollar sign (not a hyphen), so the echo should work correctly.
10819 # The option is referenced via a variable to avoid confusing sed.
10820 lt_compile=`echo "$ac_compile" | $SED \
10821 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10823 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000010824 (eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010825 (eval "$lt_compile" 2>conftest.err)
10826 ac_status=$?
10827 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000010828 echo "$as_me:10828: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010829 if (exit $ac_status) && test -s "$ac_outfile"; then
10830 # The compiler can only warn and ignore the option if not recognized
10831 # So say no if there are warnings
10832 if test ! -s conftest.err; then
10833 lt_prog_compiler_pic_works_CXX=yes
10834 fi
10835 fi
10836 $rm conftest*
10837
10838fi
10839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10840echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10841
10842if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10843 case $lt_prog_compiler_pic_CXX in
10844 "" | " "*) ;;
10845 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10846 esac
10847else
10848 lt_prog_compiler_pic_CXX=
10849 lt_prog_compiler_can_build_shared_CXX=no
10850fi
10851
10852fi
10853case "$host_os" in
10854 # For platforms which do not support PIC, -DPIC is meaningless:
10855 *djgpp*)
10856 lt_prog_compiler_pic_CXX=
10857 ;;
10858 *)
10859 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10860 ;;
10861esac
10862
10863echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10864echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10865if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 lt_cv_prog_compiler_c_o_CXX=no
10869 $rm -r conftest 2>/dev/null
10870 mkdir conftest
10871 cd conftest
10872 mkdir out
10873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10874
10875 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10876 # that will create temporary files in the current directory regardless of
10877 # the output directory. Thus, making CWD read-only will cause this test
10878 # to fail, enabling locking or at least warning the user not to do parallel
10879 # builds.
10880 chmod -w .
10881
10882 lt_compiler_flag="-o out/conftest2.$ac_objext"
10883 # Insert the option either (1) after the last *FLAGS variable, or
10884 # (2) before a word containing "conftest.", or (3) at the end.
10885 # Note that $ac_compile itself does not contain backslashes and begins
10886 # with a dollar sign (not a hyphen), so the echo should work correctly.
10887 lt_compile=`echo "$ac_compile" | $SED \
10888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10890 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000010891 (eval echo "\"\$as_me:10891: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010892 (eval "$lt_compile" 2>out/conftest.err)
10893 ac_status=$?
10894 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000010895 echo "$as_me:10895: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10897 then
10898 # The compiler can only warn and ignore the option if not recognized
10899 # So say no if there are warnings
10900 if test ! -s out/conftest.err; then
10901 lt_cv_prog_compiler_c_o_CXX=yes
10902 fi
10903 fi
10904 chmod u+w .
10905 $rm conftest* out/*
10906 rmdir out
10907 cd ..
10908 rmdir conftest
10909 $rm conftest*
10910
10911fi
10912echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10913echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10914
10915
10916hard_links="nottested"
10917if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10918 # do not overwrite the value of need_locks provided by the user
10919 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10920echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10921 hard_links=yes
10922 $rm conftest*
10923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10924 touch conftest.a
10925 ln conftest.a conftest.b 2>&5 || hard_links=no
10926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10927 echo "$as_me:$LINENO: result: $hard_links" >&5
10928echo "${ECHO_T}$hard_links" >&6
10929 if test "$hard_links" = no; then
10930 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10931echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10932 need_locks=warn
10933 fi
10934else
10935 need_locks=no
10936fi
10937
10938echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10939echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10940
10941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10942 case $host_os in
10943 aix4* | aix5*)
10944 # If we're using GNU nm, then we don't want the "-C" option.
10945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10946 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10947 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'
10948 else
10949 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'
10950 fi
10951 ;;
10952 pw32*)
10953 export_symbols_cmds_CXX="$ltdll_cmds"
10954 ;;
10955 cygwin* | mingw*)
10956 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10957 ;;
10958 *)
10959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10960 ;;
10961 esac
10962
10963echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10964echo "${ECHO_T}$ld_shlibs_CXX" >&6
10965test "$ld_shlibs_CXX" = no && can_build_shared=no
10966
10967variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10968if test "$GCC" = yes; then
10969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10970fi
10971
10972#
10973# Do we need to explicitly link libc?
10974#
10975case "x$archive_cmds_need_lc_CXX" in
10976x|xyes)
10977 # Assume -lc should be added
10978 archive_cmds_need_lc_CXX=yes
10979
10980 if test "$enable_shared" = yes && test "$GCC" = yes; then
10981 case $archive_cmds_CXX in
10982 *'~'*)
10983 # FIXME: we may have to deal with multi-command sequences.
10984 ;;
10985 '$CC '*)
10986 # Test whether the compiler implicitly links with -lc since on some
10987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10988 # to ld, don't add -lc before -lgcc.
10989 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10990echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10991 $rm conftest*
10992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10993
10994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10995 (eval $ac_compile) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } 2>conftest.err; then
10999 soname=conftest
11000 lib=conftest
11001 libobjs=conftest.$ac_objext
11002 deplibs=
11003 wl=$lt_prog_compiler_wl_CXX
11004 compiler_flags=-v
11005 linker_flags=-v
11006 verstring=
11007 output_objdir=.
11008 libname=conftest
11009 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11010 allow_undefined_flag_CXX=
11011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11012 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }
11016 then
11017 archive_cmds_need_lc_CXX=no
11018 else
11019 archive_cmds_need_lc_CXX=yes
11020 fi
11021 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11022 else
11023 cat conftest.err 1>&5
11024 fi
11025 $rm conftest*
11026 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11027echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11028 ;;
11029 esac
11030 fi
11031 ;;
11032esac
11033
11034echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11035echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11036hardcode_action_CXX=
11037if test -n "$hardcode_libdir_flag_spec_CXX" || \
11038 test -n "$runpath_var CXX" || \
11039 test "X$hardcode_automatic_CXX"="Xyes" ; then
11040
11041 # We can hardcode non-existant directories.
11042 if test "$hardcode_direct_CXX" != no &&
11043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11044 # have to relink, otherwise we might link with an installed library
11045 # when we should be linking with a yet-to-be-installed one
11046 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11047 test "$hardcode_minus_L_CXX" != no; then
11048 # Linking always hardcodes the temporary library directory.
11049 hardcode_action_CXX=relink
11050 else
11051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11052 hardcode_action_CXX=immediate
11053 fi
11054else
11055 # We cannot hardcode anything, or else we can only hardcode existing
11056 # directories.
11057 hardcode_action_CXX=unsupported
11058fi
11059echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11060echo "${ECHO_T}$hardcode_action_CXX" >&6
11061
11062if test "$hardcode_action_CXX" = relink; then
11063 # Fast installation is not supported
11064 enable_fast_install=no
11065elif test "$shlibpath_overrides_runpath" = yes ||
11066 test "$enable_shared" = no; then
11067 # Fast installation is not necessary
11068 enable_fast_install=needless
11069fi
11070
11071striplib=
11072old_striplib=
11073echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11074echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11075if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11078 echo "$as_me:$LINENO: result: yes" >&5
11079echo "${ECHO_T}yes" >&6
11080else
11081# FIXME - insert some real tests, host_os isn't really good enough
11082 case $host_os in
11083 darwin*)
11084 if test -n "$STRIP" ; then
11085 striplib="$STRIP -x"
11086 echo "$as_me:$LINENO: result: yes" >&5
11087echo "${ECHO_T}yes" >&6
11088 else
11089 echo "$as_me:$LINENO: result: no" >&5
11090echo "${ECHO_T}no" >&6
11091fi
11092 ;;
11093 *)
11094 echo "$as_me:$LINENO: result: no" >&5
11095echo "${ECHO_T}no" >&6
11096 ;;
11097 esac
11098fi
11099
11100echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11101echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11102library_names_spec=
11103libname_spec='lib$name'
11104soname_spec=
11105shrext=".so"
11106postinstall_cmds=
11107postuninstall_cmds=
11108finish_cmds=
11109finish_eval=
11110shlibpath_var=
11111shlibpath_overrides_runpath=unknown
11112version_type=none
11113dynamic_linker="$host_os ld.so"
11114sys_lib_dlsearch_path_spec="/lib /usr/lib"
11115if test "$GCC" = yes; then
11116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11117 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11118 # if the path contains ";" then we assume it to be the separator
11119 # otherwise default to the standard path separator (i.e. ":") - it is
11120 # assumed that no part of a normal pathname contains ";" but that should
11121 # okay in the real world where ";" in dirpaths is itself problematic.
11122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11123 else
11124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11125 fi
11126else
11127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11128fi
11129need_lib_prefix=unknown
11130hardcode_into_libs=no
11131
11132# when you set need_version to no, make sure it does not cause -set_version
11133# flags to be left without arguments
11134need_version=unknown
11135
11136case $host_os in
11137aix3*)
11138 version_type=linux
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11140 shlibpath_var=LIBPATH
11141
11142 # AIX 3 has no versioning support, so we append a major version to the name.
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 ;;
11145
11146aix4* | aix5*)
11147 version_type=linux
11148 need_lib_prefix=no
11149 need_version=no
11150 hardcode_into_libs=yes
11151 if test "$host_cpu" = ia64; then
11152 # AIX 5 supports IA64
11153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 else
11156 # With GCC up to 2.95.x, collect2 would create an import file
11157 # for dependence libraries. The import file would start with
11158 # the line `#! .'. This would cause the generated library to
11159 # depend on `.', always an invalid library. This was fixed in
11160 # development snapshots of GCC prior to 3.0.
11161 case $host_os in
11162 aix4 | aix4.[01] | aix4.[01].*)
11163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11164 echo ' yes '
11165 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11166 :
11167 else
11168 can_build_shared=no
11169 fi
11170 ;;
11171 esac
11172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11173 # soname into executable. Probably we can add versioning support to
11174 # collect2, so additional links can be useful in future.
11175 if test "$aix_use_runtimelinking" = yes; then
11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11177 # instead of lib<name>.a to let people know that these are not
11178 # typical AIX shared libraries.
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 else
11181 # We preserve .a as extension for shared libraries through AIX4.2
11182 # and later when we are not doing run time linking.
11183 library_names_spec='${libname}${release}.a $libname.a'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 fi
11186 shlibpath_var=LIBPATH
11187 fi
11188 ;;
11189
11190amigaos*)
11191 library_names_spec='$libname.ixlibrary $libname.a'
11192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11193 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'
11194 ;;
11195
11196beos*)
11197 library_names_spec='${libname}${shared_ext}'
11198 dynamic_linker="$host_os ld.so"
11199 shlibpath_var=LIBRARY_PATH
11200 ;;
11201
11202bsdi4*)
11203 version_type=linux
11204 need_version=no
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11208 shlibpath_var=LD_LIBRARY_PATH
11209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11211 # the default ld.so.conf also contains /usr/contrib/lib and
11212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11213 # libtool to hard-code these into programs
11214 ;;
11215
11216cygwin* | mingw* | pw32*)
11217 version_type=windows
11218 shrext=".dll"
11219 need_version=no
11220 need_lib_prefix=no
11221
11222 case $GCC,$host_os in
11223 yes,cygwin* | yes,mingw* | yes,pw32*)
11224 library_names_spec='$libname.dll.a'
11225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11226 postinstall_cmds='base_file=`basename \${file}`~
11227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11228 dldir=$destdir/`dirname \$dlpath`~
11229 test -d \$dldir || mkdir -p \$dldir~
11230 $install_prog $dir/$dlname \$dldir/$dlname'
11231 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11232 dlpath=$dir/\$dldll~
11233 $rm \$dlpath'
11234 shlibpath_overrides_runpath=yes
11235
11236 case $host_os in
11237 cygwin*)
11238 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11239 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11241 ;;
11242 mingw*)
11243 # MinGW DLLs use traditional 'lib' prefix
11244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11245 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11246 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11247 # It is most probably a Windows format PATH printed by
11248 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11249 # path with ; separators, and with drive letters. We can handle the
11250 # drive letters (cygwin fileutils understands them), so leave them,
11251 # especially as we might pass files found there to a mingw objdump,
11252 # which wouldn't understand a cygwinified path. Ahh.
11253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11254 else
11255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11256 fi
11257 ;;
11258 pw32*)
11259 # pw32 DLLs use 'pw' prefix rather than 'lib'
11260 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11261 ;;
11262 esac
11263 ;;
11264
11265 *)
11266 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11267 ;;
11268 esac
11269 dynamic_linker='Win32 ld.exe'
11270 # FIXME: first we should search . and the directory the executable is in
11271 shlibpath_var=PATH
11272 ;;
11273
11274darwin* | rhapsody*)
11275 dynamic_linker="$host_os dyld"
11276 version_type=darwin
11277 need_lib_prefix=no
11278 need_version=no
11279 # FIXME: Relying on posixy $() will cause problems for
11280 # cross-compilation, but unfortunately the echo tests do not
11281 # yet detect zsh echo's removal of \ escapes.
11282 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11283 soname_spec='${libname}${release}${major}$shared_ext'
11284 shlibpath_overrides_runpath=yes
11285 shlibpath_var=DYLD_LIBRARY_PATH
11286 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11287 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11288 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11289 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"`
11290 fi
11291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11292 ;;
11293
11294dgux*)
11295 version_type=linux
11296 need_lib_prefix=no
11297 need_version=no
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 ;;
11302
11303freebsd1*)
11304 dynamic_linker=no
11305 ;;
11306
11307freebsd*)
11308 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11309 version_type=freebsd-$objformat
11310 case $version_type in
11311 freebsd-elf*)
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11313 need_version=no
11314 need_lib_prefix=no
11315 ;;
11316 freebsd-*)
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11318 need_version=yes
11319 ;;
11320 esac
11321 shlibpath_var=LD_LIBRARY_PATH
11322 case $host_os in
11323 freebsd2*)
11324 shlibpath_overrides_runpath=yes
11325 ;;
11326 freebsd3.01* | freebsdelf3.01*)
11327 shlibpath_overrides_runpath=yes
11328 hardcode_into_libs=yes
11329 ;;
11330 *) # from 3.2 on
11331 shlibpath_overrides_runpath=no
11332 hardcode_into_libs=yes
11333 ;;
11334 esac
11335 ;;
11336
11337gnu*)
11338 version_type=linux
11339 need_lib_prefix=no
11340 need_version=no
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 hardcode_into_libs=yes
11345 ;;
11346
11347hpux9* | hpux10* | hpux11*)
11348 # Give a soname corresponding to the major version so that dld.sl refuses to
11349 # link against other versions.
11350 version_type=sunos
11351 need_lib_prefix=no
11352 need_version=no
11353 case "$host_cpu" in
11354 ia64*)
11355 shrext='.so'
11356 hardcode_into_libs=yes
11357 dynamic_linker="$host_os dld.so"
11358 shlibpath_var=LD_LIBRARY_PATH
11359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 if test "X$HPUX_IA64_MODE" = X32; then
11363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11364 else
11365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11366 fi
11367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11368 ;;
11369 hppa*64*)
11370 shrext='.sl'
11371 hardcode_into_libs=yes
11372 dynamic_linker="$host_os dld.sl"
11373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379 ;;
11380 *)
11381 shrext='.sl'
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=SHLIB_PATH
11384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 ;;
11388 esac
11389 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11390 postinstall_cmds='chmod 555 $lib'
11391 ;;
11392
11393irix5* | irix6* | nonstopux*)
11394 case $host_os in
11395 nonstopux*) version_type=nonstopux ;;
11396 *)
11397 if test "$lt_cv_prog_gnu_ld" = yes; then
11398 version_type=linux
11399 else
11400 version_type=irix
11401 fi ;;
11402 esac
11403 need_lib_prefix=no
11404 need_version=no
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11407 case $host_os in
11408 irix5* | nonstopux*)
11409 libsuff= shlibsuff=
11410 ;;
11411 *)
11412 case $LD in # libtool.m4 will add one of these switches to LD
11413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11414 libsuff= shlibsuff= libmagic=32-bit;;
11415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11416 libsuff=32 shlibsuff=N32 libmagic=N32;;
11417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11419 *) libsuff= shlibsuff= libmagic=never-match;;
11420 esac
11421 ;;
11422 esac
11423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11424 shlibpath_overrides_runpath=no
11425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11427 hardcode_into_libs=yes
11428 ;;
11429
11430# No shared lib support for Linux oldld, aout, or coff.
11431linux*oldld* | linux*aout* | linux*coff*)
11432 dynamic_linker=no
11433 ;;
11434
11435# This must be Linux ELF.
11436linux*)
11437 version_type=linux
11438 need_lib_prefix=no
11439 need_version=no
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441 soname_spec='${libname}${release}${shared_ext}$major'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=no
11445 # This implies no fast_install, which is unacceptable.
11446 # Some rework will be needed to allow for fast_install
11447 # before this can be enabled.
11448 hardcode_into_libs=yes
11449
11450 # We used to test for /lib/ld.so.1 and disable shared libraries on
11451 # powerpc, because MkLinux only supported shared libraries with the
11452 # GNU dynamic linker. Since this was broken with cross compilers,
11453 # most powerpc-linux boxes support dynamic linking these days and
11454 # people can always --disable-shared, the test was removed, and we
11455 # assume the GNU/Linux dynamic linker is in use.
11456 dynamic_linker='GNU/Linux ld.so'
11457 ;;
11458
11459netbsd*)
11460 version_type=sunos
11461 need_lib_prefix=no
11462 need_version=no
11463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11466 dynamic_linker='NetBSD (a.out) ld.so'
11467 else
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 dynamic_linker='NetBSD ld.elf_so'
11471 fi
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11474 hardcode_into_libs=yes
11475 ;;
11476
11477newsos6)
11478 version_type=linux
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes
11482 ;;
11483
11484nto-qnx)
11485 version_type=linux
11486 need_lib_prefix=no
11487 need_version=no
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 ;;
11493
11494openbsd*)
11495 version_type=sunos
11496 need_lib_prefix=no
11497 need_version=no
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502 case $host_os in
11503 openbsd2.[89] | openbsd2.[89].*)
11504 shlibpath_overrides_runpath=no
11505 ;;
11506 *)
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509 esac
11510 else
11511 shlibpath_overrides_runpath=yes
11512 fi
11513 ;;
11514
11515os2*)
11516 libname_spec='$name'
11517 shrext=".dll"
11518 need_lib_prefix=no
11519 library_names_spec='$libname${shared_ext} $libname.a'
11520 dynamic_linker='OS/2 ld.exe'
11521 shlibpath_var=LIBPATH
11522 ;;
11523
11524osf3* | osf4* | osf5*)
11525 version_type=osf
11526 need_lib_prefix=no
11527 need_version=no
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11533 ;;
11534
11535sco3.2v5*)
11536 version_type=osf
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 ;;
11541
11542solaris*)
11543 version_type=linux
11544 need_lib_prefix=no
11545 need_version=no
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 shlibpath_overrides_runpath=yes
11550 hardcode_into_libs=yes
11551 # ldd complains unless libraries are executable
11552 postinstall_cmds='chmod +x $lib'
11553 ;;
11554
11555sunos4*)
11556 version_type=sunos
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 if test "$with_gnu_ld" = yes; then
11562 need_lib_prefix=no
11563 fi
11564 need_version=yes
11565 ;;
11566
11567sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11568 version_type=linux
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 case $host_vendor in
11573 sni)
11574 shlibpath_overrides_runpath=no
11575 need_lib_prefix=no
11576 export_dynamic_flag_spec='${wl}-Blargedynsym'
11577 runpath_var=LD_RUN_PATH
11578 ;;
11579 siemens)
11580 need_lib_prefix=no
11581 ;;
11582 motorola)
11583 need_lib_prefix=no
11584 need_version=no
11585 shlibpath_overrides_runpath=no
11586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11587 ;;
11588 esac
11589 ;;
11590
11591sysv4*MP*)
11592 if test -d /usr/nec ;then
11593 version_type=linux
11594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11595 soname_spec='$libname${shared_ext}.$major'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 fi
11598 ;;
11599
11600uts4*)
11601 version_type=linux
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11603 soname_spec='${libname}${release}${shared_ext}$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 ;;
11606
11607*)
11608 dynamic_linker=no
11609 ;;
11610esac
11611echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11612echo "${ECHO_T}$dynamic_linker" >&6
11613test "$dynamic_linker" = no && can_build_shared=no
11614
11615if test "x$enable_dlopen" != xyes; then
11616 enable_dlopen=unknown
11617 enable_dlopen_self=unknown
11618 enable_dlopen_self_static=unknown
11619else
11620 lt_cv_dlopen=no
11621 lt_cv_dlopen_libs=
11622
11623 case $host_os in
11624 beos*)
11625 lt_cv_dlopen="load_add_on"
11626 lt_cv_dlopen_libs=
11627 lt_cv_dlopen_self=yes
11628 ;;
11629
11630 mingw* | pw32*)
11631 lt_cv_dlopen="LoadLibrary"
11632 lt_cv_dlopen_libs=
11633 ;;
11634
11635 cygwin*)
11636 lt_cv_dlopen="dlopen"
11637 lt_cv_dlopen_libs=
11638 ;;
11639
11640 darwin*)
11641 # if libdl is installed we need to link against it
11642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11643echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11644if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11646else
11647 ac_check_lib_save_LIBS=$LIBS
11648LIBS="-ldl $LIBS"
11649cat >conftest.$ac_ext <<_ACEOF
11650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011656
11657/* Override any gcc2 internal prototype to avoid an error. */
11658#ifdef __cplusplus
11659extern "C"
11660#endif
11661/* We use char because int might match the return type of a gcc2
11662 builtin and then its argument prototype would still apply. */
11663char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011664int
11665main ()
11666{
11667dlopen ();
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext conftest$ac_exeext
11673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_cv_lib_dl_dlopen=yes
11685else
11686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011687sed 's/^/| /' conftest.$ac_ext >&5
11688
John Criswell47fdd832003-07-14 16:52:07 +000011689ac_cv_lib_dl_dlopen=no
11690fi
11691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11692LIBS=$ac_check_lib_save_LIBS
11693fi
11694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11696if test $ac_cv_lib_dl_dlopen = yes; then
11697 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11698else
11699
11700 lt_cv_dlopen="dyld"
11701 lt_cv_dlopen_libs=
11702 lt_cv_dlopen_self=yes
11703
11704fi
11705
11706 ;;
11707
11708 *)
11709 echo "$as_me:$LINENO: checking for shl_load" >&5
11710echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11711if test "${ac_cv_func_shl_load+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
11714 cat >conftest.$ac_ext <<_ACEOF
11715#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011721/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011722 which can conflict with char shl_load (); below.
11723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724 <limits.h> exists even on freestanding compilers. */
11725#ifdef __STDC__
11726# include <limits.h>
11727#else
11728# include <assert.h>
11729#endif
John Criswell47fdd832003-07-14 16:52:07 +000011730/* Override any gcc2 internal prototype to avoid an error. */
11731#ifdef __cplusplus
11732extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011733{
John Criswell47fdd832003-07-14 16:52:07 +000011734#endif
11735/* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11737char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011738/* The GNU C library defines this for functions which it implements
11739 to always fail with ENOSYS. Some functions are actually named
11740 something starting with __ and the normal name is an alias. */
11741#if defined (__stub_shl_load) || defined (__stub___shl_load)
11742choke me
11743#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011744char (*f) () = shl_load;
11745#endif
11746#ifdef __cplusplus
11747}
John Criswell47fdd832003-07-14 16:52:07 +000011748#endif
11749
John Criswell0c38eaf2003-09-10 15:17:25 +000011750int
11751main ()
11752{
11753return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011754 ;
11755 return 0;
11756}
11757_ACEOF
11758rm -f conftest.$ac_objext conftest$ac_exeext
11759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } &&
11764 { ac_try='test -s conftest$ac_exeext'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 ac_cv_func_shl_load=yes
11771else
11772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011773sed 's/^/| /' conftest.$ac_ext >&5
11774
John Criswell47fdd832003-07-14 16:52:07 +000011775ac_cv_func_shl_load=no
11776fi
11777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11778fi
11779echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11780echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11781if test $ac_cv_func_shl_load = yes; then
11782 lt_cv_dlopen="shl_load"
11783else
11784 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11785echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11786if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 ac_check_lib_save_LIBS=$LIBS
11790LIBS="-ldld $LIBS"
11791cat >conftest.$ac_ext <<_ACEOF
11792#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011793/* confdefs.h. */
11794_ACEOF
11795cat confdefs.h >>conftest.$ac_ext
11796cat >>conftest.$ac_ext <<_ACEOF
11797/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011798
11799/* Override any gcc2 internal prototype to avoid an error. */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803/* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11805char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011806int
11807main ()
11808{
11809shl_load ();
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext conftest$ac_exeext
11815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_lib_dld_shl_load=yes
11827else
11828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011829sed 's/^/| /' conftest.$ac_ext >&5
11830
John Criswell47fdd832003-07-14 16:52:07 +000011831ac_cv_lib_dld_shl_load=no
11832fi
11833rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11837echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11838if test $ac_cv_lib_dld_shl_load = yes; then
11839 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11840else
11841 echo "$as_me:$LINENO: checking for dlopen" >&5
11842echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11843if test "${ac_cv_func_dlopen+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 cat >conftest.$ac_ext <<_ACEOF
11847#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011848/* confdefs.h. */
11849_ACEOF
11850cat confdefs.h >>conftest.$ac_ext
11851cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011853/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011854 which can conflict with char dlopen (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11857#ifdef __STDC__
11858# include <limits.h>
11859#else
11860# include <assert.h>
11861#endif
John Criswell47fdd832003-07-14 16:52:07 +000011862/* Override any gcc2 internal prototype to avoid an error. */
11863#ifdef __cplusplus
11864extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011865{
John Criswell47fdd832003-07-14 16:52:07 +000011866#endif
11867/* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011870/* The GNU C library defines this for functions which it implements
11871 to always fail with ENOSYS. Some functions are actually named
11872 something starting with __ and the normal name is an alias. */
11873#if defined (__stub_dlopen) || defined (__stub___dlopen)
11874choke me
11875#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011876char (*f) () = dlopen;
11877#endif
11878#ifdef __cplusplus
11879}
John Criswell47fdd832003-07-14 16:52:07 +000011880#endif
11881
John Criswell0c38eaf2003-09-10 15:17:25 +000011882int
11883main ()
11884{
11885return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011886 ;
11887 return 0;
11888}
11889_ACEOF
11890rm -f conftest.$ac_objext conftest$ac_exeext
11891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -s conftest$ac_exeext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_cv_func_dlopen=yes
11903else
11904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011905sed 's/^/| /' conftest.$ac_ext >&5
11906
John Criswell47fdd832003-07-14 16:52:07 +000011907ac_cv_func_dlopen=no
11908fi
11909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11910fi
11911echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11912echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11913if test $ac_cv_func_dlopen = yes; then
11914 lt_cv_dlopen="dlopen"
11915else
11916 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11917echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11918if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 ac_check_lib_save_LIBS=$LIBS
11922LIBS="-ldl $LIBS"
11923cat >conftest.$ac_ext <<_ACEOF
11924#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011930
11931/* Override any gcc2 internal prototype to avoid an error. */
11932#ifdef __cplusplus
11933extern "C"
11934#endif
11935/* We use char because int might match the return type of a gcc2
11936 builtin and then its argument prototype would still apply. */
11937char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011938int
11939main ()
11940{
11941dlopen ();
11942 ;
11943 return 0;
11944}
11945_ACEOF
11946rm -f conftest.$ac_objext conftest$ac_exeext
11947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948 (eval $ac_link) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -s conftest$ac_exeext'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_cv_lib_dl_dlopen=yes
11959else
11960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011961sed 's/^/| /' conftest.$ac_ext >&5
11962
John Criswell47fdd832003-07-14 16:52:07 +000011963ac_cv_lib_dl_dlopen=no
11964fi
11965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11966LIBS=$ac_check_lib_save_LIBS
11967fi
11968echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11970if test $ac_cv_lib_dl_dlopen = yes; then
11971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11972else
11973 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11974echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11975if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11977else
11978 ac_check_lib_save_LIBS=$LIBS
11979LIBS="-lsvld $LIBS"
11980cat >conftest.$ac_ext <<_ACEOF
11981#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011987
11988/* Override any gcc2 internal prototype to avoid an error. */
11989#ifdef __cplusplus
11990extern "C"
11991#endif
11992/* We use char because int might match the return type of a gcc2
11993 builtin and then its argument prototype would still apply. */
11994char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011995int
11996main ()
11997{
11998dlopen ();
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003rm -f conftest.$ac_objext conftest$ac_exeext
12004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -s conftest$ac_exeext'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_cv_lib_svld_dlopen=yes
12016else
12017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012018sed 's/^/| /' conftest.$ac_ext >&5
12019
John Criswell47fdd832003-07-14 16:52:07 +000012020ac_cv_lib_svld_dlopen=no
12021fi
12022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12023LIBS=$ac_check_lib_save_LIBS
12024fi
12025echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12026echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12027if test $ac_cv_lib_svld_dlopen = yes; then
12028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12029else
12030 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12031echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12032if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 ac_check_lib_save_LIBS=$LIBS
12036LIBS="-ldld $LIBS"
12037cat >conftest.$ac_ext <<_ACEOF
12038#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012039/* confdefs.h. */
12040_ACEOF
12041cat confdefs.h >>conftest.$ac_ext
12042cat >>conftest.$ac_ext <<_ACEOF
12043/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012044
12045/* Override any gcc2 internal prototype to avoid an error. */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049/* We use char because int might match the return type of a gcc2
12050 builtin and then its argument prototype would still apply. */
12051char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012052int
12053main ()
12054{
12055dld_link ();
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060rm -f conftest.$ac_objext conftest$ac_exeext
12061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -s conftest$ac_exeext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_lib_dld_dld_link=yes
12073else
12074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012075sed 's/^/| /' conftest.$ac_ext >&5
12076
John Criswell47fdd832003-07-14 16:52:07 +000012077ac_cv_lib_dld_dld_link=no
12078fi
12079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12080LIBS=$ac_check_lib_save_LIBS
12081fi
12082echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12083echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12084if test $ac_cv_lib_dld_dld_link = yes; then
12085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12086fi
12087
12088
12089fi
12090
12091
12092fi
12093
12094
12095fi
12096
12097
12098fi
12099
12100
12101fi
12102
12103 ;;
12104 esac
12105
12106 if test "x$lt_cv_dlopen" != xno; then
12107 enable_dlopen=yes
12108 else
12109 enable_dlopen=no
12110 fi
12111
12112 case $lt_cv_dlopen in
12113 dlopen)
12114 save_CPPFLAGS="$CPPFLAGS"
12115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12116
12117 save_LDFLAGS="$LDFLAGS"
12118 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12119
12120 save_LIBS="$LIBS"
12121 LIBS="$lt_cv_dlopen_libs $LIBS"
12122
12123 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12124echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12125if test "${lt_cv_dlopen_self+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128 if test "$cross_compiling" = yes; then :
12129 lt_cv_dlopen_self=cross
12130else
12131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12132 lt_status=$lt_dlunknown
12133 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000012134#line 12134 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012135#include "confdefs.h"
12136
12137#if HAVE_DLFCN_H
12138#include <dlfcn.h>
12139#endif
12140
12141#include <stdio.h>
12142
12143#ifdef RTLD_GLOBAL
12144# define LT_DLGLOBAL RTLD_GLOBAL
12145#else
12146# ifdef DL_GLOBAL
12147# define LT_DLGLOBAL DL_GLOBAL
12148# else
12149# define LT_DLGLOBAL 0
12150# endif
12151#endif
12152
12153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12154 find out it does not work in some platform. */
12155#ifndef LT_DLLAZY_OR_NOW
12156# ifdef RTLD_LAZY
12157# define LT_DLLAZY_OR_NOW RTLD_LAZY
12158# else
12159# ifdef DL_LAZY
12160# define LT_DLLAZY_OR_NOW DL_LAZY
12161# else
12162# ifdef RTLD_NOW
12163# define LT_DLLAZY_OR_NOW RTLD_NOW
12164# else
12165# ifdef DL_NOW
12166# define LT_DLLAZY_OR_NOW DL_NOW
12167# else
12168# define LT_DLLAZY_OR_NOW 0
12169# endif
12170# endif
12171# endif
12172# endif
12173#endif
12174
12175#ifdef __cplusplus
12176extern "C" void exit (int);
12177#endif
12178
12179void fnord() { int i=42;}
12180int main ()
12181{
12182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12183 int status = $lt_dlunknown;
12184
12185 if (self)
12186 {
12187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189 /* dlclose (self); */
12190 }
12191
12192 exit (status);
12193}
12194EOF
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12200 (./conftest; exit; ) 2>/dev/null
12201 lt_status=$?
12202 case x$lt_status in
12203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12205 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12206 esac
12207 else :
12208 # compilation failed
12209 lt_cv_dlopen_self=no
12210 fi
12211fi
12212rm -fr conftest*
12213
12214
12215fi
12216echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12217echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12218
12219 if test "x$lt_cv_dlopen_self" = xyes; then
12220 LDFLAGS="$LDFLAGS $link_static_flag"
12221 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12222echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12223if test "${lt_cv_dlopen_self_static+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 if test "$cross_compiling" = yes; then :
12227 lt_cv_dlopen_self_static=cross
12228else
12229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12230 lt_status=$lt_dlunknown
12231 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000012232#line 12232 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012233#include "confdefs.h"
12234
12235#if HAVE_DLFCN_H
12236#include <dlfcn.h>
12237#endif
12238
12239#include <stdio.h>
12240
12241#ifdef RTLD_GLOBAL
12242# define LT_DLGLOBAL RTLD_GLOBAL
12243#else
12244# ifdef DL_GLOBAL
12245# define LT_DLGLOBAL DL_GLOBAL
12246# else
12247# define LT_DLGLOBAL 0
12248# endif
12249#endif
12250
12251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12252 find out it does not work in some platform. */
12253#ifndef LT_DLLAZY_OR_NOW
12254# ifdef RTLD_LAZY
12255# define LT_DLLAZY_OR_NOW RTLD_LAZY
12256# else
12257# ifdef DL_LAZY
12258# define LT_DLLAZY_OR_NOW DL_LAZY
12259# else
12260# ifdef RTLD_NOW
12261# define LT_DLLAZY_OR_NOW RTLD_NOW
12262# else
12263# ifdef DL_NOW
12264# define LT_DLLAZY_OR_NOW DL_NOW
12265# else
12266# define LT_DLLAZY_OR_NOW 0
12267# endif
12268# endif
12269# endif
12270# endif
12271#endif
12272
12273#ifdef __cplusplus
12274extern "C" void exit (int);
12275#endif
12276
12277void fnord() { int i=42;}
12278int main ()
12279{
12280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12281 int status = $lt_dlunknown;
12282
12283 if (self)
12284 {
12285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12287 /* dlclose (self); */
12288 }
12289
12290 exit (status);
12291}
12292EOF
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12298 (./conftest; exit; ) 2>/dev/null
12299 lt_status=$?
12300 case x$lt_status in
12301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12303 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12304 esac
12305 else :
12306 # compilation failed
12307 lt_cv_dlopen_self_static=no
12308 fi
12309fi
12310rm -fr conftest*
12311
12312
12313fi
12314echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12315echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12316 fi
12317
12318 CPPFLAGS="$save_CPPFLAGS"
12319 LDFLAGS="$save_LDFLAGS"
12320 LIBS="$save_LIBS"
12321 ;;
12322 esac
12323
12324 case $lt_cv_dlopen_self in
12325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12326 *) enable_dlopen_self=unknown ;;
12327 esac
12328
12329 case $lt_cv_dlopen_self_static in
12330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12331 *) enable_dlopen_self_static=unknown ;;
12332 esac
12333fi
12334
12335
12336# The else clause should only fire when bootstrapping the
12337# libtool distribution, otherwise you forgot to ship ltmain.sh
12338# with your package, and you will get complaints that there are
12339# no rules to generate ltmain.sh.
12340if test -f "$ltmain"; then
12341 # See if we are running on zsh, and set the options which allow our commands through
12342 # without removal of \ escapes.
12343 if test -n "${ZSH_VERSION+set}" ; then
12344 setopt NO_GLOB_SUBST
12345 fi
12346 # Now quote all the things that may contain metacharacters while being
12347 # careful not to overquote the AC_SUBSTed values. We take copies of the
12348 # variables and quote the copies for generation of the libtool script.
12349 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12350 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12351 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12352 deplibs_check_method reload_flag reload_cmds need_locks \
12353 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12354 lt_cv_sys_global_symbol_to_c_name_address \
12355 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12356 old_postinstall_cmds old_postuninstall_cmds \
12357 compiler_CXX \
12358 CC_CXX \
12359 LD_CXX \
12360 lt_prog_compiler_wl_CXX \
12361 lt_prog_compiler_pic_CXX \
12362 lt_prog_compiler_static_CXX \
12363 lt_prog_compiler_no_builtin_flag_CXX \
12364 export_dynamic_flag_spec_CXX \
12365 thread_safe_flag_spec_CXX \
12366 whole_archive_flag_spec_CXX \
12367 enable_shared_with_static_runtimes_CXX \
12368 old_archive_cmds_CXX \
12369 old_archive_from_new_cmds_CXX \
12370 predep_objects_CXX \
12371 postdep_objects_CXX \
12372 predeps_CXX \
12373 postdeps_CXX \
12374 compiler_lib_search_path_CXX \
12375 archive_cmds_CXX \
12376 archive_expsym_cmds_CXX \
12377 postinstall_cmds_CXX \
12378 postuninstall_cmds_CXX \
12379 old_archive_from_expsyms_cmds_CXX \
12380 allow_undefined_flag_CXX \
12381 no_undefined_flag_CXX \
12382 export_symbols_cmds_CXX \
12383 hardcode_libdir_flag_spec_CXX \
12384 hardcode_libdir_flag_spec_ld_CXX \
12385 hardcode_libdir_separator_CXX \
12386 hardcode_automatic_CXX \
12387 module_cmds_CXX \
12388 module_expsym_cmds_CXX \
12389 lt_cv_prog_compiler_c_o_CXX \
12390 exclude_expsyms_CXX \
12391 include_expsyms_CXX; do
12392
12393 case $var in
12394 old_archive_cmds_CXX | \
12395 old_archive_from_new_cmds_CXX | \
12396 archive_cmds_CXX | \
12397 archive_expsym_cmds_CXX | \
12398 module_cmds_CXX | \
12399 module_expsym_cmds_CXX | \
12400 old_archive_from_expsyms_cmds_CXX | \
12401 export_symbols_cmds_CXX | \
12402 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12403 postinstall_cmds | postuninstall_cmds | \
12404 old_postinstall_cmds | old_postuninstall_cmds | \
12405 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12406 # Double-quote double-evaled strings.
12407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12408 ;;
12409 *)
12410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12411 ;;
12412 esac
12413 done
12414
12415 case $lt_echo in
12416 *'\$0 --fallback-echo"')
12417 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12418 ;;
12419 esac
12420
12421cfgfile="$ofile"
12422
12423 cat <<__EOF__ >> "$cfgfile"
12424# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12425
12426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12427
12428# Shell to use when invoking shell scripts.
12429SHELL=$lt_SHELL
12430
12431# Whether or not to build shared libraries.
12432build_libtool_libs=$enable_shared
12433
12434# Whether or not to build static libraries.
12435build_old_libs=$enable_static
12436
12437# Whether or not to add -lc for building shared libraries.
12438build_libtool_need_lc=$archive_cmds_need_lc_CXX
12439
12440# Whether or not to disallow shared libs when runtime libs are static
12441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12442
12443# Whether or not to optimize for fast installation.
12444fast_install=$enable_fast_install
12445
12446# The host system.
12447host_alias=$host_alias
12448host=$host
12449
12450# An echo program that does not interpret backslashes.
12451echo=$lt_echo
12452
12453# The archiver.
12454AR=$lt_AR
12455AR_FLAGS=$lt_AR_FLAGS
12456
12457# A C compiler.
12458LTCC=$lt_LTCC
12459
12460# A language-specific compiler.
12461CC=$lt_compiler_CXX
12462
12463# Is the compiler the GNU C compiler?
12464with_gcc=$GCC_CXX
12465
12466# An ERE matcher.
12467EGREP=$lt_EGREP
12468
12469# The linker used to build libraries.
12470LD=$lt_LD_CXX
12471
12472# Whether we need hard or soft links.
12473LN_S=$lt_LN_S
12474
12475# A BSD-compatible nm program.
12476NM=$lt_NM
12477
12478# A symbol stripping program
12479STRIP=$STRIP
12480
12481# Used to examine libraries when file_magic_cmd begins "file"
12482MAGIC_CMD=$MAGIC_CMD
12483
12484# Used on cygwin: DLL creation program.
12485DLLTOOL="$DLLTOOL"
12486
12487# Used on cygwin: object dumper.
12488OBJDUMP="$OBJDUMP"
12489
12490# Used on cygwin: assembler.
12491AS="$AS"
12492
12493# The name of the directory that contains temporary libtool files.
12494objdir=$objdir
12495
12496# How to create reloadable object files.
12497reload_flag=$lt_reload_flag
12498reload_cmds=$lt_reload_cmds
12499
12500# How to pass a linker flag through the compiler.
12501wl=$lt_lt_prog_compiler_wl_CXX
12502
12503# Object file suffix (normally "o").
12504objext="$ac_objext"
12505
12506# Old archive suffix (normally "a").
12507libext="$libext"
12508
12509# Shared library suffix (normally ".so").
12510shrext='$shrext'
12511
12512# Executable file suffix (normally "").
12513exeext="$exeext"
12514
12515# Additional compiler flags for building library objects.
12516pic_flag=$lt_lt_prog_compiler_pic_CXX
12517pic_mode=$pic_mode
12518
12519# What is the maximum length of a command?
12520max_cmd_len=$lt_cv_sys_max_cmd_len
12521
12522# Does compiler simultaneously support -c and -o options?
12523compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12524
12525# Must we lock files when doing compilation ?
12526need_locks=$lt_need_locks
12527
12528# Do we need the lib prefix for modules?
12529need_lib_prefix=$need_lib_prefix
12530
12531# Do we need a version for libraries?
12532need_version=$need_version
12533
12534# Whether dlopen is supported.
12535dlopen_support=$enable_dlopen
12536
12537# Whether dlopen of programs is supported.
12538dlopen_self=$enable_dlopen_self
12539
12540# Whether dlopen of statically linked programs is supported.
12541dlopen_self_static=$enable_dlopen_self_static
12542
12543# Compiler flag to prevent dynamic linking.
12544link_static_flag=$lt_lt_prog_compiler_static_CXX
12545
12546# Compiler flag to turn off builtin functions.
12547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12548
12549# Compiler flag to allow reflexive dlopens.
12550export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12551
12552# Compiler flag to generate shared objects directly from archives.
12553whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12554
12555# Compiler flag to generate thread-safe objects.
12556thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12557
12558# Library versioning type.
12559version_type=$version_type
12560
12561# Format of library name prefix.
12562libname_spec=$lt_libname_spec
12563
12564# List of archive names. First name is the real one, the rest are links.
12565# The last name is the one that the linker finds with -lNAME.
12566library_names_spec=$lt_library_names_spec
12567
12568# The coded name of the library, if different from the real name.
12569soname_spec=$lt_soname_spec
12570
12571# Commands used to build and install an old-style archive.
12572RANLIB=$lt_RANLIB
12573old_archive_cmds=$lt_old_archive_cmds_CXX
12574old_postinstall_cmds=$lt_old_postinstall_cmds
12575old_postuninstall_cmds=$lt_old_postuninstall_cmds
12576
12577# Create an old-style archive from a shared archive.
12578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12579
12580# Create a temporary old-style archive to link instead of a shared archive.
12581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12582
12583# Commands used to build and install a shared archive.
12584archive_cmds=$lt_archive_cmds_CXX
12585archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12586postinstall_cmds=$lt_postinstall_cmds
12587postuninstall_cmds=$lt_postuninstall_cmds
12588
12589# Commands used to build a loadable module (assumed same as above if empty)
12590module_cmds=$lt_module_cmds_CXX
12591module_expsym_cmds=$lt_module_expsym_cmds_CXX
12592
12593# Commands to strip libraries.
12594old_striplib=$lt_old_striplib
12595striplib=$lt_striplib
12596
12597# Dependencies to place before the objects being linked to create a
12598# shared library.
12599predep_objects=$lt_predep_objects_CXX
12600
12601# Dependencies to place after the objects being linked to create a
12602# shared library.
12603postdep_objects=$lt_postdep_objects_CXX
12604
12605# Dependencies to place before the objects being linked to create a
12606# shared library.
12607predeps=$lt_predeps_CXX
12608
12609# Dependencies to place after the objects being linked to create a
12610# shared library.
12611postdeps=$lt_postdeps_CXX
12612
12613# The library search path used internally by the compiler when linking
12614# a shared library.
12615compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12616
12617# Method to check whether dependent libraries are shared objects.
12618deplibs_check_method=$lt_deplibs_check_method
12619
12620# Command to use when deplibs_check_method == file_magic.
12621file_magic_cmd=$lt_file_magic_cmd
12622
12623# Flag that allows shared libraries with undefined symbols to be built.
12624allow_undefined_flag=$lt_allow_undefined_flag_CXX
12625
12626# Flag that forces no undefined symbols.
12627no_undefined_flag=$lt_no_undefined_flag_CXX
12628
12629# Commands used to finish a libtool library installation in a directory.
12630finish_cmds=$lt_finish_cmds
12631
12632# Same as above, but a single script fragment to be evaled but not shown.
12633finish_eval=$lt_finish_eval
12634
12635# Take the output of nm and produce a listing of raw symbols and C names.
12636global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12637
12638# Transform the output of nm in a proper C declaration
12639global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12640
12641# Transform the output of nm in a C name address pair
12642global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12643
12644# This is the shared library runtime path variable.
12645runpath_var=$runpath_var
12646
12647# This is the shared library path variable.
12648shlibpath_var=$shlibpath_var
12649
12650# Is shlibpath searched before the hard-coded library search path?
12651shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12652
12653# How to hardcode a shared library path into an executable.
12654hardcode_action=$hardcode_action_CXX
12655
12656# Whether we should hardcode library paths into libraries.
12657hardcode_into_libs=$hardcode_into_libs
12658
12659# Flag to hardcode \$libdir into a binary during linking.
12660# This must work even if \$libdir does not exist.
12661hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12662
12663# If ld is used when linking, flag to hardcode \$libdir into
12664# a binary during linking. This must work even if \$libdir does
12665# not exist.
12666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12667
12668# Whether we need a single -rpath flag with a separated argument.
12669hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12670
12671# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12672# resulting binary.
12673hardcode_direct=$hardcode_direct_CXX
12674
12675# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12676# resulting binary.
12677hardcode_minus_L=$hardcode_minus_L_CXX
12678
12679# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12680# the resulting binary.
12681hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12682
12683# Set to yes if building a shared library automatically hardcodes DIR into the library
12684# and all subsequent libraries and executables linked against it.
12685hardcode_automatic=$hardcode_automatic_CXX
12686
12687# Variables whose values should be saved in libtool wrapper scripts and
12688# restored at relink time.
12689variables_saved_for_relink="$variables_saved_for_relink"
12690
12691# Whether libtool must link a program against all its dependency libraries.
12692link_all_deplibs=$link_all_deplibs_CXX
12693
12694# Compile-time system search path for libraries
12695sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12696
12697# Run-time system search path for libraries
12698sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12699
12700# Fix the shell variable \$srcfile for the compiler.
12701fix_srcfile_path="$fix_srcfile_path_CXX"
12702
12703# Set to yes if exported symbols are required.
12704always_export_symbols=$always_export_symbols_CXX
12705
12706# The commands to list exported symbols.
12707export_symbols_cmds=$lt_export_symbols_cmds_CXX
12708
12709# The commands to extract the exported symbol list from a shared archive.
12710extract_expsyms_cmds=$lt_extract_expsyms_cmds
12711
12712# Symbols that should not be listed in the preloaded symbols.
12713exclude_expsyms=$lt_exclude_expsyms_CXX
12714
12715# Symbols that must always be exported.
12716include_expsyms=$lt_include_expsyms_CXX
12717
12718# ### END LIBTOOL TAG CONFIG: $tagname
12719
12720__EOF__
12721
12722
12723else
12724 # If there is no Makefile yet, we rely on a make rule to execute
12725 # `config.status --recheck' to rerun these tests and create the
12726 # libtool script then.
12727 test -f Makefile && make "$ltmain"
12728fi
12729
12730
12731ac_ext=c
12732ac_cpp='$CPP $CPPFLAGS'
12733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736
12737CC=$lt_save_CC
12738LDCXX=$LD
12739LD=$lt_save_LD
12740GCC=$lt_save_GCC
12741with_gnu_ldcxx=$with_gnu_ld
12742with_gnu_ld=$lt_save_with_gnu_ld
12743lt_cv_path_LDCXX=$lt_cv_path_LD
12744lt_cv_path_LD=$lt_save_path_LD
12745lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12746lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12747
12748 else
12749 tagname=""
12750 fi
12751 ;;
12752
12753 F77)
12754 if test -n "$F77" && test "X$F77" != "Xno"; then
12755
12756ac_ext=f
12757ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12758ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12759ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12760
12761
12762archive_cmds_need_lc_F77=no
12763allow_undefined_flag_F77=
12764always_export_symbols_F77=no
12765archive_expsym_cmds_F77=
12766export_dynamic_flag_spec_F77=
12767hardcode_direct_F77=no
12768hardcode_libdir_flag_spec_F77=
12769hardcode_libdir_flag_spec_ld_F77=
12770hardcode_libdir_separator_F77=
12771hardcode_minus_L_F77=no
12772hardcode_automatic_F77=no
12773module_cmds_F77=
12774module_expsym_cmds_F77=
12775link_all_deplibs_F77=unknown
12776old_archive_cmds_F77=$old_archive_cmds
12777no_undefined_flag_F77=
12778whole_archive_flag_spec_F77=
12779enable_shared_with_static_runtimes_F77=no
12780
12781# Source file extension for f77 test sources.
12782ac_ext=f
12783
12784# Object file extension for compiled f77 test sources.
12785objext=o
12786objext_F77=$objext
12787
12788# Code to be used in simple compile tests
12789lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12790
12791# Code to be used in simple link tests
12792lt_simple_link_test_code=" program t\n end\n"
12793
12794# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12795
12796# If no C compiler was specified, use CC.
12797LTCC=${LTCC-"$CC"}
12798
12799# Allow CC to be a program name with arguments.
12800compiler=$CC
12801
12802
12803# Allow CC to be a program name with arguments.
12804lt_save_CC="$CC"
12805CC=${F77-"f77"}
12806compiler=$CC
12807compiler_F77=$CC
12808cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12809
12810echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12811echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12812echo "$as_me:$LINENO: result: $can_build_shared" >&5
12813echo "${ECHO_T}$can_build_shared" >&6
12814
12815echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12816echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12817test "$can_build_shared" = "no" && enable_shared=no
12818
12819# On AIX, shared libraries and static libraries use the same namespace, and
12820# are all built from PIC.
12821case "$host_os" in
12822aix3*)
12823 test "$enable_shared" = yes && enable_static=no
12824 if test -n "$RANLIB"; then
12825 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12826 postinstall_cmds='$RANLIB $lib'
12827 fi
12828 ;;
12829aix4*)
12830 test "$enable_shared" = yes && enable_static=no
12831 ;;
12832esac
12833echo "$as_me:$LINENO: result: $enable_shared" >&5
12834echo "${ECHO_T}$enable_shared" >&6
12835
12836echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12837echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12838# Make sure either enable_shared or enable_static is yes.
12839test "$enable_shared" = yes || enable_static=yes
12840echo "$as_me:$LINENO: result: $enable_static" >&5
12841echo "${ECHO_T}$enable_static" >&6
12842
12843test "$ld_shlibs_F77" = no && can_build_shared=no
12844
12845GCC_F77="$G77"
12846LD_F77="$LD"
12847
12848lt_prog_compiler_wl_F77=
12849lt_prog_compiler_pic_F77=
12850lt_prog_compiler_static_F77=
12851
12852echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12853echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12854
12855 if test "$GCC" = yes; then
12856 lt_prog_compiler_wl_F77='-Wl,'
12857 lt_prog_compiler_static_F77='-static'
12858
12859 case $host_os in
12860 aix*)
12861 # All AIX code is PIC.
12862 if test "$host_cpu" = ia64; then
12863 # AIX 5 now supports IA64 processor
12864 lt_prog_compiler_static_F77='-Bstatic'
12865 fi
12866 ;;
12867
12868 amigaos*)
12869 # FIXME: we need at least 68020 code to build shared libraries, but
12870 # adding the `-m68020' flag to GCC prevents building anything better,
12871 # like `-m68040'.
12872 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12873 ;;
12874
12875 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12876 # PIC is the default for these OSes.
12877 ;;
12878
12879 mingw* | pw32* | os2*)
12880 # This hack is so that the source file can tell whether it is being
12881 # built for inclusion in a dll (and should export symbols for example).
12882 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12883 ;;
12884
12885 darwin* | rhapsody*)
12886 # PIC is the default on this platform
12887 # Common symbols not allowed in MH_DYLIB files
12888 lt_prog_compiler_pic_F77='-fno-common'
12889 ;;
12890
12891 msdosdjgpp*)
12892 # Just because we use GCC doesn't mean we suddenly get shared libraries
12893 # on systems that don't support them.
12894 lt_prog_compiler_can_build_shared_F77=no
12895 enable_shared=no
12896 ;;
12897
12898 sysv4*MP*)
12899 if test -d /usr/nec; then
12900 lt_prog_compiler_pic_F77=-Kconform_pic
12901 fi
12902 ;;
12903
12904 hpux*)
12905 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12906 # not for PA HP-UX.
12907 case "$host_cpu" in
12908 hppa*64*|ia64*)
12909 # +Z the default
12910 ;;
12911 *)
12912 lt_prog_compiler_pic_F77='-fPIC'
12913 ;;
12914 esac
12915 ;;
12916
12917 *)
12918 lt_prog_compiler_pic_F77='-fPIC'
12919 ;;
12920 esac
12921 else
12922 # PORTME Check for flag to pass linker flags through the system compiler.
12923 case $host_os in
12924 aix*)
12925 lt_prog_compiler_wl_F77='-Wl,'
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 now supports IA64 processor
12928 lt_prog_compiler_static_F77='-Bstatic'
12929 else
12930 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12931 fi
12932 ;;
12933
12934 mingw* | pw32* | os2*)
12935 # This hack is so that the source file can tell whether it is being
12936 # built for inclusion in a dll (and should export symbols for example).
12937 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12938 ;;
12939
12940 hpux9* | hpux10* | hpux11*)
12941 lt_prog_compiler_wl_F77='-Wl,'
12942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12943 # not for PA HP-UX.
12944 case "$host_cpu" in
12945 hppa*64*|ia64*)
12946 # +Z the default
12947 ;;
12948 *)
12949 lt_prog_compiler_pic_F77='+Z'
12950 ;;
12951 esac
12952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12953 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12954 ;;
12955
12956 irix5* | irix6* | nonstopux*)
12957 lt_prog_compiler_wl_F77='-Wl,'
12958 # PIC (with -KPIC) is the default.
12959 lt_prog_compiler_static_F77='-non_shared'
12960 ;;
12961
12962 newsos6)
12963 lt_prog_compiler_pic_F77='-KPIC'
12964 lt_prog_compiler_static_F77='-Bstatic'
12965 ;;
12966
12967 linux*)
12968 case $CC in
12969 icc|ecc)
12970 lt_prog_compiler_wl_F77='-Wl,'
12971 lt_prog_compiler_pic_F77='-KPIC'
12972 lt_prog_compiler_static_F77='-static'
12973 ;;
12974 ccc)
12975 lt_prog_compiler_wl_F77='-Wl,'
12976 # All Alpha code is PIC.
12977 lt_prog_compiler_static_F77='-non_shared'
12978 ;;
12979 esac
12980 ;;
12981
12982 osf3* | osf4* | osf5*)
12983 lt_prog_compiler_wl_F77='-Wl,'
12984 # All OSF/1 code is PIC.
12985 lt_prog_compiler_static_F77='-non_shared'
12986 ;;
12987
12988 sco3.2v5*)
12989 lt_prog_compiler_pic_F77='-Kpic'
12990 lt_prog_compiler_static_F77='-dn'
12991 ;;
12992
12993 solaris*)
12994 lt_prog_compiler_wl_F77='-Wl,'
12995 lt_prog_compiler_pic_F77='-KPIC'
12996 lt_prog_compiler_static_F77='-Bstatic'
12997 ;;
12998
12999 sunos4*)
13000 lt_prog_compiler_wl_F77='-Qoption ld '
13001 lt_prog_compiler_pic_F77='-PIC'
13002 lt_prog_compiler_static_F77='-Bstatic'
13003 ;;
13004
13005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13006 lt_prog_compiler_wl_F77='-Wl,'
13007 lt_prog_compiler_pic_F77='-KPIC'
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 ;;
13010
13011 sysv4*MP*)
13012 if test -d /usr/nec ;then
13013 lt_prog_compiler_pic_F77='-Kconform_pic'
13014 lt_prog_compiler_static_F77='-Bstatic'
13015 fi
13016 ;;
13017
13018 uts4*)
13019 lt_prog_compiler_pic_F77='-pic'
13020 lt_prog_compiler_static_F77='-Bstatic'
13021 ;;
13022
13023 *)
13024 lt_prog_compiler_can_build_shared_F77=no
13025 ;;
13026 esac
13027 fi
13028
13029echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13030echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13031
13032#
13033# Check to make sure the PIC flag actually works.
13034#
13035if test -n "$lt_prog_compiler_pic_F77"; then
13036 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13037echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13038if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041 lt_prog_compiler_pic_works_F77=no
13042 ac_outfile=conftest.$ac_objext
13043 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13044 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13045 # Insert the option either (1) after the last *FLAGS variable, or
13046 # (2) before a word containing "conftest.", or (3) at the end.
13047 # Note that $ac_compile itself does not contain backslashes and begins
13048 # with a dollar sign (not a hyphen), so the echo should work correctly.
13049 # The option is referenced via a variable to avoid confusing sed.
13050 lt_compile=`echo "$ac_compile" | $SED \
13051 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13053 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000013054 (eval echo "\"\$as_me:13054: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013055 (eval "$lt_compile" 2>conftest.err)
13056 ac_status=$?
13057 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000013058 echo "$as_me:13058: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013059 if (exit $ac_status) && test -s "$ac_outfile"; then
13060 # The compiler can only warn and ignore the option if not recognized
13061 # So say no if there are warnings
13062 if test ! -s conftest.err; then
13063 lt_prog_compiler_pic_works_F77=yes
13064 fi
13065 fi
13066 $rm conftest*
13067
13068fi
13069echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13070echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13071
13072if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13073 case $lt_prog_compiler_pic_F77 in
13074 "" | " "*) ;;
13075 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13076 esac
13077else
13078 lt_prog_compiler_pic_F77=
13079 lt_prog_compiler_can_build_shared_F77=no
13080fi
13081
13082fi
13083case "$host_os" in
13084 # For platforms which do not support PIC, -DPIC is meaningless:
13085 *djgpp*)
13086 lt_prog_compiler_pic_F77=
13087 ;;
13088 *)
13089 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13090 ;;
13091esac
13092
13093echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13094echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13095if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 lt_cv_prog_compiler_c_o_F77=no
13099 $rm -r conftest 2>/dev/null
13100 mkdir conftest
13101 cd conftest
13102 mkdir out
13103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13104
13105 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13106 # that will create temporary files in the current directory regardless of
13107 # the output directory. Thus, making CWD read-only will cause this test
13108 # to fail, enabling locking or at least warning the user not to do parallel
13109 # builds.
13110 chmod -w .
13111
13112 lt_compiler_flag="-o out/conftest2.$ac_objext"
13113 # Insert the option either (1) after the last *FLAGS variable, or
13114 # (2) before a word containing "conftest.", or (3) at the end.
13115 # Note that $ac_compile itself does not contain backslashes and begins
13116 # with a dollar sign (not a hyphen), so the echo should work correctly.
13117 lt_compile=`echo "$ac_compile" | $SED \
13118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13120 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000013121 (eval echo "\"\$as_me:13121: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013122 (eval "$lt_compile" 2>out/conftest.err)
13123 ac_status=$?
13124 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000013125 echo "$as_me:13125: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13127 then
13128 # The compiler can only warn and ignore the option if not recognized
13129 # So say no if there are warnings
13130 if test ! -s out/conftest.err; then
13131 lt_cv_prog_compiler_c_o_F77=yes
13132 fi
13133 fi
13134 chmod u+w .
13135 $rm conftest* out/*
13136 rmdir out
13137 cd ..
13138 rmdir conftest
13139 $rm conftest*
13140
13141fi
13142echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13143echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13144
13145
13146hard_links="nottested"
13147if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13148 # do not overwrite the value of need_locks provided by the user
13149 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13150echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13151 hard_links=yes
13152 $rm conftest*
13153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13154 touch conftest.a
13155 ln conftest.a conftest.b 2>&5 || hard_links=no
13156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13157 echo "$as_me:$LINENO: result: $hard_links" >&5
13158echo "${ECHO_T}$hard_links" >&6
13159 if test "$hard_links" = no; then
13160 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13161echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13162 need_locks=warn
13163 fi
13164else
13165 need_locks=no
13166fi
13167
13168echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13169echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13170
13171 runpath_var=
13172 allow_undefined_flag_F77=
13173 enable_shared_with_static_runtimes_F77=no
13174 archive_cmds_F77=
13175 archive_expsym_cmds_F77=
13176 old_archive_From_new_cmds_F77=
13177 old_archive_from_expsyms_cmds_F77=
13178 export_dynamic_flag_spec_F77=
13179 whole_archive_flag_spec_F77=
13180 thread_safe_flag_spec_F77=
13181 hardcode_libdir_flag_spec_F77=
13182 hardcode_libdir_flag_spec_ld_F77=
13183 hardcode_libdir_separator_F77=
13184 hardcode_direct_F77=no
13185 hardcode_minus_L_F77=no
13186 hardcode_shlibpath_var_F77=unsupported
13187 link_all_deplibs_F77=unknown
13188 hardcode_automatic_F77=no
13189 module_cmds_F77=
13190 module_expsym_cmds_F77=
13191 always_export_symbols_F77=no
13192 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13193 # include_expsyms should be a list of space-separated symbols to be *always*
13194 # included in the symbol list
13195 include_expsyms_F77=
13196 # exclude_expsyms can be an extended regexp of symbols to exclude
13197 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13198 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13199 # as well as any symbol that contains `d'.
13200 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13202 # platforms (ab)use it in PIC code, but their linkers get confused if
13203 # the symbol is explicitly referenced. Since portable code cannot
13204 # rely on this symbol name, it's probably fine to never include it in
13205 # preloaded symbol tables.
13206 extract_expsyms_cmds=
13207
13208 case $host_os in
13209 cygwin* | mingw* | pw32*)
13210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13211 # When not using gcc, we currently assume that we are using
13212 # Microsoft Visual C++.
13213 if test "$GCC" != yes; then
13214 with_gnu_ld=no
13215 fi
13216 ;;
13217 openbsd*)
13218 with_gnu_ld=no
13219 ;;
13220 esac
13221
13222 ld_shlibs_F77=yes
13223 if test "$with_gnu_ld" = yes; then
13224 # If archive_cmds runs LD, not CC, wlarc should be empty
13225 wlarc='${wl}'
13226
13227 # See if GNU ld supports shared libraries.
13228 case $host_os in
13229 aix3* | aix4* | aix5*)
13230 # On AIX/PPC, the GNU linker is very broken
13231 if test "$host_cpu" != ia64; then
13232 ld_shlibs_F77=no
13233 cat <<EOF 1>&2
13234
13235*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13236*** to be unable to reliably create shared libraries on AIX.
13237*** Therefore, libtool is disabling shared libraries support. If you
13238*** really care for shared libraries, you may want to modify your PATH
13239*** so that a non-GNU linker is found, and then restart.
13240
13241EOF
13242 fi
13243 ;;
13244
13245 amigaos*)
13246 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)'
13247 hardcode_libdir_flag_spec_F77='-L$libdir'
13248 hardcode_minus_L_F77=yes
13249
13250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13251 # that the semantics of dynamic libraries on AmigaOS, at least up
13252 # to version 4, is to share data among multiple programs linked
13253 # with the same dynamic library. Since this doesn't match the
13254 # behavior of shared libraries on other platforms, we can't use
13255 # them.
13256 ld_shlibs_F77=no
13257 ;;
13258
13259 beos*)
13260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13261 allow_undefined_flag_F77=unsupported
13262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13263 # support --undefined. This deserves some investigation. FIXME
13264 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13265 else
13266 ld_shlibs_F77=no
13267 fi
13268 ;;
13269
13270 cygwin* | mingw* | pw32*)
13271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13272 # as there is no search path for DLLs.
13273 hardcode_libdir_flag_spec_F77='-L$libdir'
13274 allow_undefined_flag_F77=unsupported
13275 always_export_symbols_F77=no
13276 enable_shared_with_static_runtimes_F77=yes
13277 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13278
13279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13281 # If the export-symbols file already is a .def file (1st line
13282 # is EXPORTS), use it as is; otherwise, prepend...
13283 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13284 cp $export_symbols $output_objdir/$soname.def;
13285 else
13286 echo EXPORTS > $output_objdir/$soname.def;
13287 cat $export_symbols >> $output_objdir/$soname.def;
13288 fi~
13289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13290 else
13291 ld_shlibs=no
13292 fi
13293 ;;
13294
13295 netbsd*)
13296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13298 wlarc=
13299 else
13300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13302 fi
13303 ;;
13304
13305 solaris* | sysv5*)
13306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13307 ld_shlibs_F77=no
13308 cat <<EOF 1>&2
13309
13310*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13311*** create shared libraries on Solaris systems. Therefore, libtool
13312*** is disabling shared libraries support. We urge you to upgrade GNU
13313*** binutils to release 2.9.1 or newer. Another option is to modify
13314*** your PATH or compiler configuration so that the native linker is
13315*** used, and then restart.
13316
13317EOF
13318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13321 else
13322 ld_shlibs_F77=no
13323 fi
13324 ;;
13325
13326 sunos4*)
13327 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13328 wlarc=
13329 hardcode_direct_F77=yes
13330 hardcode_shlibpath_var_F77=no
13331 ;;
13332
13333 *)
13334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13335 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13337 else
13338 ld_shlibs_F77=no
13339 fi
13340 ;;
13341 esac
13342
13343 if test "$ld_shlibs_F77" = yes; then
13344 runpath_var=LD_RUN_PATH
13345 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13346 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13347 # ancient GNU ld didn't support --whole-archive et. al.
13348 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13349 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13350 else
13351 whole_archive_flag_spec_F77=
13352 fi
13353 fi
13354 else
13355 # PORTME fill in a description of your system's linker (not GNU ld)
13356 case $host_os in
13357 aix3*)
13358 allow_undefined_flag_F77=unsupported
13359 always_export_symbols_F77=yes
13360 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'
13361 # Note: this linker hardcodes the directories in LIBPATH if there
13362 # are no directories specified by -L.
13363 hardcode_minus_L_F77=yes
13364 if test "$GCC" = yes && test -z "$link_static_flag"; then
13365 # Neither direct hardcoding nor static linking is supported with a
13366 # broken collect2.
13367 hardcode_direct_F77=unsupported
13368 fi
13369 ;;
13370
13371 aix4* | aix5*)
13372 if test "$host_cpu" = ia64; then
13373 # On IA64, the linker does run time linking by default, so we don't
13374 # have to do anything special.
13375 aix_use_runtimelinking=no
13376 exp_sym_flag='-Bexport'
13377 no_entry_flag=""
13378 else
13379 # If we're using GNU nm, then we don't want the "-C" option.
13380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13381 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13382 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'
13383 else
13384 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'
13385 fi
13386 aix_use_runtimelinking=no
13387
13388 # Test if we are trying to use run time linking or normal
13389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13390 # need to do runtime linking.
13391 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13392 for ld_flag in $LDFLAGS; do
13393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13394 aix_use_runtimelinking=yes
13395 break
13396 fi
13397 done
13398 esac
13399
13400 exp_sym_flag='-bexport'
13401 no_entry_flag='-bnoentry'
13402 fi
13403
13404 # When large executables or shared objects are built, AIX ld can
13405 # have problems creating the table of contents. If linking a library
13406 # or program results in "error TOC overflow" add -mminimal-toc to
13407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13409
13410 archive_cmds_F77=''
13411 hardcode_direct_F77=yes
13412 hardcode_libdir_separator_F77=':'
13413 link_all_deplibs_F77=yes
13414
13415 if test "$GCC" = yes; then
13416 case $host_os in aix4.012|aix4.012.*)
13417 # We only want to do this on AIX 4.2 and lower, the check
13418 # below for broken collect2 doesn't work under 4.3+
13419 collect2name=`${CC} -print-prog-name=collect2`
13420 if test -f "$collect2name" && \
13421 strings "$collect2name" | grep resolve_lib_name >/dev/null
13422 then
13423 # We have reworked collect2
13424 hardcode_direct_F77=yes
13425 else
13426 # We have old collect2
13427 hardcode_direct_F77=unsupported
13428 # It fails to find uninstalled libraries when the uninstalled
13429 # path is not listed in the libpath. Setting hardcode_minus_L
13430 # to unsupported forces relinking
13431 hardcode_minus_L_F77=yes
13432 hardcode_libdir_flag_spec_F77='-L$libdir'
13433 hardcode_libdir_separator_F77=
13434 fi
13435 esac
13436 shared_flag='-shared'
13437 else
13438 # not using gcc
13439 if test "$host_cpu" = ia64; then
13440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13441 # chokes on -Wl,-G. The following line is correct:
13442 shared_flag='-G'
13443 else
13444 if test "$aix_use_runtimelinking" = yes; then
13445 shared_flag='${wl}-G'
13446 else
13447 shared_flag='${wl}-bM:SRE'
13448 fi
13449 fi
13450 fi
13451
13452 # It seems that -bexpall does not export symbols beginning with
13453 # underscore (_), so it is better to generate a list of symbols to export.
13454 always_export_symbols_F77=yes
13455 if test "$aix_use_runtimelinking" = yes; then
13456 # Warning - without using the other runtime loading flags (-brtl),
13457 # -berok will link without error, but may produce a broken library.
13458 allow_undefined_flag_F77='-berok'
13459 # Determine the default libpath from the value encoded in an empty executable.
13460 cat >conftest.$ac_ext <<_ACEOF
13461 program main
13462
13463 end
13464_ACEOF
13465rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467 (eval $ac_link) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -s conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477
13478aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13479}'`
13480# Check for a 64-bit object if we didn't find anything.
13481if 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; }
13482}'`; fi
13483else
13484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013485sed 's/^/| /' conftest.$ac_ext >&5
13486
John Criswell47fdd832003-07-14 16:52:07 +000013487fi
13488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13489if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13490
13491 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13492 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"
13493 else
13494 if test "$host_cpu" = ia64; then
13495 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13496 allow_undefined_flag_F77="-z nodefs"
13497 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"
13498 else
13499 # Determine the default libpath from the value encoded in an empty executable.
13500 cat >conftest.$ac_ext <<_ACEOF
13501 program main
13502
13503 end
13504_ACEOF
13505rm -f conftest.$ac_objext conftest$ac_exeext
13506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -s conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517
13518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13519}'`
13520# Check for a 64-bit object if we didn't find anything.
13521if 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; }
13522}'`; fi
13523else
13524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013525sed 's/^/| /' conftest.$ac_ext >&5
13526
John Criswell47fdd832003-07-14 16:52:07 +000013527fi
13528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13530
13531 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13532 # Warning - without using the other run time loading flags,
13533 # -berok will link without error, but may produce a broken library.
13534 no_undefined_flag_F77=' ${wl}-bernotok'
13535 allow_undefined_flag_F77=' ${wl}-berok'
13536 # -bexpall does not export symbols beginning with underscore (_)
13537 always_export_symbols_F77=yes
13538 # Exported symbols can be pulled into shared objects from archives
13539 whole_archive_flag_spec_F77=' '
13540 archive_cmds_need_lc_F77=yes
13541 # This is similar to how AIX traditionally builds it's shared libraries.
13542 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'
13543 fi
13544 fi
13545 ;;
13546
13547 amigaos*)
13548 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)'
13549 hardcode_libdir_flag_spec_F77='-L$libdir'
13550 hardcode_minus_L_F77=yes
13551 # see comment about different semantics on the GNU ld section
13552 ld_shlibs_F77=no
13553 ;;
13554
13555 bsdi4*)
13556 export_dynamic_flag_spec_F77=-rdynamic
13557 ;;
13558
13559 cygwin* | mingw* | pw32*)
13560 # When not using gcc, we currently assume that we are using
13561 # Microsoft Visual C++.
13562 # hardcode_libdir_flag_spec is actually meaningless, as there is
13563 # no search path for DLLs.
13564 hardcode_libdir_flag_spec_F77=' '
13565 allow_undefined_flag_F77=unsupported
13566 # Tell ltmain to make .lib files, not .a files.
13567 libext=lib
13568 # Tell ltmain to make .dll files, not .so files.
13569 shrext=".dll"
13570 # FIXME: Setting linknames here is a bad hack.
13571 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13572 # The linker will automatically build a .lib file if we build a DLL.
13573 old_archive_From_new_cmds_F77='true'
13574 # FIXME: Should let the user specify the lib program.
13575 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13576 fix_srcfile_path='`cygpath -w "$srcfile"`'
13577 enable_shared_with_static_runtimes_F77=yes
13578 ;;
13579
13580 darwin* | rhapsody*)
13581 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13582 archive_cmds_need_lc_F77=no
13583 case "$host_os" in
13584 rhapsody* | darwin1.[012])
13585 allow_undefined_flag_F77='-undefined suppress'
13586 ;;
13587 *) # Darwin 1.3 on
13588 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13589 ;;
13590 esac
13591 # FIXME: Relying on posixy $() will cause problems for
13592 # cross-compilation, but unfortunately the echo tests do not
13593 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13594 # `"' quotes if we put them in here... so don't!
13595 lt_int_apple_cc_single_mod=no
13596 output_verbose_link_cmd='echo'
13597 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13598 lt_int_apple_cc_single_mod=yes
13599 fi
13600 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13601 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13602 else
13603 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'
13604 fi
13605 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13607 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13608 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}'
13609 else
13610 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}'
13611 fi
13612 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}'
13613 hardcode_direct_F77=no
13614 hardcode_automatic_F77=yes
13615 hardcode_shlibpath_var_F77=unsupported
13616 whole_archive_flag_spec_F77='-all_load $convenience'
13617 link_all_deplibs_F77=yes
13618 fi
13619 ;;
13620
13621 dgux*)
13622 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_libdir_flag_spec_F77='-L$libdir'
13624 hardcode_shlibpath_var_F77=no
13625 ;;
13626
13627 freebsd1*)
13628 ld_shlibs_F77=no
13629 ;;
13630
13631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13632 # support. Future versions do this automatically, but an explicit c++rt0.o
13633 # does not break anything, and helps significantly (at the cost of a little
13634 # extra space).
13635 freebsd2.2*)
13636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13637 hardcode_libdir_flag_spec_F77='-R$libdir'
13638 hardcode_direct_F77=yes
13639 hardcode_shlibpath_var_F77=no
13640 ;;
13641
13642 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13643 freebsd2*)
13644 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13645 hardcode_direct_F77=yes
13646 hardcode_minus_L_F77=yes
13647 hardcode_shlibpath_var_F77=no
13648 ;;
13649
13650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13651 freebsd*)
13652 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13653 hardcode_libdir_flag_spec_F77='-R$libdir'
13654 hardcode_direct_F77=yes
13655 hardcode_shlibpath_var_F77=no
13656 ;;
13657
13658 hpux9*)
13659 if test "$GCC" = yes; then
13660 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'
13661 else
13662 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'
13663 fi
13664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13665 hardcode_libdir_separator_F77=:
13666 hardcode_direct_F77=yes
13667
13668 # hardcode_minus_L: Not really in the search PATH,
13669 # but as the default location of the library.
13670 hardcode_minus_L_F77=yes
13671 export_dynamic_flag_spec_F77='${wl}-E'
13672 ;;
13673
13674 hpux10* | hpux11*)
13675 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13676 case "$host_cpu" in
13677 hppa*64*|ia64*)
13678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 ;;
13680 *)
13681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13682 ;;
13683 esac
13684 else
13685 case "$host_cpu" in
13686 hppa*64*|ia64*)
13687 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13688 ;;
13689 *)
13690 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13691 ;;
13692 esac
13693 fi
13694 if test "$with_gnu_ld" = no; then
13695 case "$host_cpu" in
13696 hppa*64*)
13697 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13698 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13699 hardcode_libdir_separator_F77=:
13700 hardcode_direct_F77=no
13701 hardcode_shlibpath_var_F77=no
13702 ;;
13703 ia64*)
13704 hardcode_libdir_flag_spec_F77='-L$libdir'
13705 hardcode_direct_F77=no
13706 hardcode_shlibpath_var_F77=no
13707
13708 # hardcode_minus_L: Not really in the search PATH,
13709 # but as the default location of the library.
13710 hardcode_minus_L_F77=yes
13711 ;;
13712 *)
13713 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13714 hardcode_libdir_separator_F77=:
13715 hardcode_direct_F77=yes
13716 export_dynamic_flag_spec_F77='${wl}-E'
13717
13718 # hardcode_minus_L: Not really in the search PATH,
13719 # but as the default location of the library.
13720 hardcode_minus_L_F77=yes
13721 ;;
13722 esac
13723 fi
13724 ;;
13725
13726 irix5* | irix6* | nonstopux*)
13727 if test "$GCC" = yes; then
13728 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'
13729 else
13730 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'
13731 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13732 fi
13733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13734 hardcode_libdir_separator_F77=:
13735 link_all_deplibs_F77=yes
13736 ;;
13737
13738 netbsd*)
13739 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13740 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13741 else
13742 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13743 fi
13744 hardcode_libdir_flag_spec_F77='-R$libdir'
13745 hardcode_direct_F77=yes
13746 hardcode_shlibpath_var_F77=no
13747 ;;
13748
13749 newsos6)
13750 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13751 hardcode_direct_F77=yes
13752 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13753 hardcode_libdir_separator_F77=:
13754 hardcode_shlibpath_var_F77=no
13755 ;;
13756
13757 openbsd*)
13758 hardcode_direct_F77=yes
13759 hardcode_shlibpath_var_F77=no
13760 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13761 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13762 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13763 export_dynamic_flag_spec_F77='${wl}-E'
13764 else
13765 case $host_os in
13766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13767 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13768 hardcode_libdir_flag_spec_F77='-R$libdir'
13769 ;;
13770 *)
13771 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13772 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13773 ;;
13774 esac
13775 fi
13776 ;;
13777
13778 os2*)
13779 hardcode_libdir_flag_spec_F77='-L$libdir'
13780 hardcode_minus_L_F77=yes
13781 allow_undefined_flag_F77=unsupported
13782 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'
13783 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13784 ;;
13785
13786 osf3*)
13787 if test "$GCC" = yes; then
13788 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13789 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'
13790 else
13791 allow_undefined_flag_F77=' -expect_unresolved \*'
13792 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'
13793 fi
13794 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13795 hardcode_libdir_separator_F77=:
13796 ;;
13797
13798 osf4* | osf5*) # as osf3* with the addition of -msym flag
13799 if test "$GCC" = yes; then
13800 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13801 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'
13802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803 else
13804 allow_undefined_flag_F77=' -expect_unresolved \*'
13805 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'
13806 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~
13807 $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'
13808
13809 # Both c and cxx compiler support -rpath directly
13810 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13811 fi
13812 hardcode_libdir_separator_F77=:
13813 ;;
13814
13815 sco3.2v5*)
13816 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817 hardcode_shlibpath_var_F77=no
13818 export_dynamic_flag_spec_F77='${wl}-Bexport'
13819 runpath_var=LD_RUN_PATH
13820 hardcode_runpath_var=yes
13821 ;;
13822
13823 solaris*)
13824 no_undefined_flag_F77=' -z text'
13825 if test "$GCC" = yes; then
13826 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13828 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13829 else
13830 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13831 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13833 fi
13834 hardcode_libdir_flag_spec_F77='-R$libdir'
13835 hardcode_shlibpath_var_F77=no
13836 case $host_os in
13837 solaris2.[0-5] | solaris2.[0-5].*) ;;
13838 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13839 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13840 esac
13841 link_all_deplibs_F77=yes
13842 ;;
13843
13844 sunos4*)
13845 if test "x$host_vendor" = xsequent; then
13846 # Use $CC to link under sequent, because it throws in some extra .o
13847 # files that make .init and .fini sections work.
13848 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13849 else
13850 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13851 fi
13852 hardcode_libdir_flag_spec_F77='-L$libdir'
13853 hardcode_direct_F77=yes
13854 hardcode_minus_L_F77=yes
13855 hardcode_shlibpath_var_F77=no
13856 ;;
13857
13858 sysv4)
13859 case $host_vendor in
13860 sni)
13861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13862 hardcode_direct_F77=yes # is this really true???
13863 ;;
13864 siemens)
13865 ## LD is ld it makes a PLAMLIB
13866 ## CC just makes a GrossModule.
13867 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13868 reload_cmds_F77='$CC -r -o $output$reload_objs'
13869 hardcode_direct_F77=no
13870 ;;
13871 motorola)
13872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13874 ;;
13875 esac
13876 runpath_var='LD_RUN_PATH'
13877 hardcode_shlibpath_var_F77=no
13878 ;;
13879
13880 sysv4.3*)
13881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882 hardcode_shlibpath_var_F77=no
13883 export_dynamic_flag_spec_F77='-Bexport'
13884 ;;
13885
13886 sysv4*MP*)
13887 if test -d /usr/nec; then
13888 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889 hardcode_shlibpath_var_F77=no
13890 runpath_var=LD_RUN_PATH
13891 hardcode_runpath_var=yes
13892 ld_shlibs_F77=yes
13893 fi
13894 ;;
13895
13896 sysv4.2uw2*)
13897 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_direct_F77=yes
13899 hardcode_minus_L_F77=no
13900 hardcode_shlibpath_var_F77=no
13901 hardcode_runpath_var=yes
13902 runpath_var=LD_RUN_PATH
13903 ;;
13904
13905 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13906 no_undefined_flag_F77='${wl}-z ${wl}text'
13907 if test "$GCC" = yes; then
13908 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909 else
13910 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 fi
13912 runpath_var='LD_RUN_PATH'
13913 hardcode_shlibpath_var_F77=no
13914 ;;
13915
13916 sysv5*)
13917 no_undefined_flag_F77=' -z text'
13918 # $CC -shared without GNU ld will not create a library from C++
13919 # object files and a static libstdc++, better avoid it by now
13920 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13921 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13922 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13923 hardcode_libdir_flag_spec_F77=
13924 hardcode_shlibpath_var_F77=no
13925 runpath_var='LD_RUN_PATH'
13926 ;;
13927
13928 uts4*)
13929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13930 hardcode_libdir_flag_spec_F77='-L$libdir'
13931 hardcode_shlibpath_var_F77=no
13932 ;;
13933
13934 *)
13935 ld_shlibs_F77=no
13936 ;;
13937 esac
13938 fi
13939
13940echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13941echo "${ECHO_T}$ld_shlibs_F77" >&6
13942test "$ld_shlibs_F77" = no && can_build_shared=no
13943
13944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13945if test "$GCC" = yes; then
13946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13947fi
13948
13949#
13950# Do we need to explicitly link libc?
13951#
13952case "x$archive_cmds_need_lc_F77" in
13953x|xyes)
13954 # Assume -lc should be added
13955 archive_cmds_need_lc_F77=yes
13956
13957 if test "$enable_shared" = yes && test "$GCC" = yes; then
13958 case $archive_cmds_F77 in
13959 *'~'*)
13960 # FIXME: we may have to deal with multi-command sequences.
13961 ;;
13962 '$CC '*)
13963 # Test whether the compiler implicitly links with -lc since on some
13964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13965 # to ld, don't add -lc before -lgcc.
13966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13968 $rm conftest*
13969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13970
13971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13972 (eval $ac_compile) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } 2>conftest.err; then
13976 soname=conftest
13977 lib=conftest
13978 libobjs=conftest.$ac_objext
13979 deplibs=
13980 wl=$lt_prog_compiler_wl_F77
13981 compiler_flags=-v
13982 linker_flags=-v
13983 verstring=
13984 output_objdir=.
13985 libname=conftest
13986 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13987 allow_undefined_flag_F77=
13988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13989 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }
13993 then
13994 archive_cmds_need_lc_F77=no
13995 else
13996 archive_cmds_need_lc_F77=yes
13997 fi
13998 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13999 else
14000 cat conftest.err 1>&5
14001 fi
14002 $rm conftest*
14003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14004echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14005 ;;
14006 esac
14007 fi
14008 ;;
14009esac
14010
14011echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14012echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14013hardcode_action_F77=
14014if test -n "$hardcode_libdir_flag_spec_F77" || \
14015 test -n "$runpath_var F77" || \
14016 test "X$hardcode_automatic_F77"="Xyes" ; then
14017
14018 # We can hardcode non-existant directories.
14019 if test "$hardcode_direct_F77" != no &&
14020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14021 # have to relink, otherwise we might link with an installed library
14022 # when we should be linking with a yet-to-be-installed one
14023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14024 test "$hardcode_minus_L_F77" != no; then
14025 # Linking always hardcodes the temporary library directory.
14026 hardcode_action_F77=relink
14027 else
14028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14029 hardcode_action_F77=immediate
14030 fi
14031else
14032 # We cannot hardcode anything, or else we can only hardcode existing
14033 # directories.
14034 hardcode_action_F77=unsupported
14035fi
14036echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14037echo "${ECHO_T}$hardcode_action_F77" >&6
14038
14039if test "$hardcode_action_F77" = relink; then
14040 # Fast installation is not supported
14041 enable_fast_install=no
14042elif test "$shlibpath_overrides_runpath" = yes ||
14043 test "$enable_shared" = no; then
14044 # Fast installation is not necessary
14045 enable_fast_install=needless
14046fi
14047
14048striplib=
14049old_striplib=
14050echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14051echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14052if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14055 echo "$as_me:$LINENO: result: yes" >&5
14056echo "${ECHO_T}yes" >&6
14057else
14058# FIXME - insert some real tests, host_os isn't really good enough
14059 case $host_os in
14060 darwin*)
14061 if test -n "$STRIP" ; then
14062 striplib="$STRIP -x"
14063 echo "$as_me:$LINENO: result: yes" >&5
14064echo "${ECHO_T}yes" >&6
14065 else
14066 echo "$as_me:$LINENO: result: no" >&5
14067echo "${ECHO_T}no" >&6
14068fi
14069 ;;
14070 *)
14071 echo "$as_me:$LINENO: result: no" >&5
14072echo "${ECHO_T}no" >&6
14073 ;;
14074 esac
14075fi
14076
14077echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14079library_names_spec=
14080libname_spec='lib$name'
14081soname_spec=
14082shrext=".so"
14083postinstall_cmds=
14084postuninstall_cmds=
14085finish_cmds=
14086finish_eval=
14087shlibpath_var=
14088shlibpath_overrides_runpath=unknown
14089version_type=none
14090dynamic_linker="$host_os ld.so"
14091sys_lib_dlsearch_path_spec="/lib /usr/lib"
14092if test "$GCC" = yes; then
14093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14095 # if the path contains ";" then we assume it to be the separator
14096 # otherwise default to the standard path separator (i.e. ":") - it is
14097 # assumed that no part of a normal pathname contains ";" but that should
14098 # okay in the real world where ";" in dirpaths is itself problematic.
14099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14100 else
14101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14102 fi
14103else
14104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14105fi
14106need_lib_prefix=unknown
14107hardcode_into_libs=no
14108
14109# when you set need_version to no, make sure it does not cause -set_version
14110# flags to be left without arguments
14111need_version=unknown
14112
14113case $host_os in
14114aix3*)
14115 version_type=linux
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14117 shlibpath_var=LIBPATH
14118
14119 # AIX 3 has no versioning support, so we append a major version to the name.
14120 soname_spec='${libname}${release}${shared_ext}$major'
14121 ;;
14122
14123aix4* | aix5*)
14124 version_type=linux
14125 need_lib_prefix=no
14126 need_version=no
14127 hardcode_into_libs=yes
14128 if test "$host_cpu" = ia64; then
14129 # AIX 5 supports IA64
14130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14131 shlibpath_var=LD_LIBRARY_PATH
14132 else
14133 # With GCC up to 2.95.x, collect2 would create an import file
14134 # for dependence libraries. The import file would start with
14135 # the line `#! .'. This would cause the generated library to
14136 # depend on `.', always an invalid library. This was fixed in
14137 # development snapshots of GCC prior to 3.0.
14138 case $host_os in
14139 aix4 | aix4.[01] | aix4.[01].*)
14140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14141 echo ' yes '
14142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14143 :
14144 else
14145 can_build_shared=no
14146 fi
14147 ;;
14148 esac
14149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14150 # soname into executable. Probably we can add versioning support to
14151 # collect2, so additional links can be useful in future.
14152 if test "$aix_use_runtimelinking" = yes; then
14153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14154 # instead of lib<name>.a to let people know that these are not
14155 # typical AIX shared libraries.
14156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14157 else
14158 # We preserve .a as extension for shared libraries through AIX4.2
14159 # and later when we are not doing run time linking.
14160 library_names_spec='${libname}${release}.a $libname.a'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 fi
14163 shlibpath_var=LIBPATH
14164 fi
14165 ;;
14166
14167amigaos*)
14168 library_names_spec='$libname.ixlibrary $libname.a'
14169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14170 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'
14171 ;;
14172
14173beos*)
14174 library_names_spec='${libname}${shared_ext}'
14175 dynamic_linker="$host_os ld.so"
14176 shlibpath_var=LIBRARY_PATH
14177 ;;
14178
14179bsdi4*)
14180 version_type=linux
14181 need_version=no
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14185 shlibpath_var=LD_LIBRARY_PATH
14186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14188 # the default ld.so.conf also contains /usr/contrib/lib and
14189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14190 # libtool to hard-code these into programs
14191 ;;
14192
14193cygwin* | mingw* | pw32*)
14194 version_type=windows
14195 shrext=".dll"
14196 need_version=no
14197 need_lib_prefix=no
14198
14199 case $GCC,$host_os in
14200 yes,cygwin* | yes,mingw* | yes,pw32*)
14201 library_names_spec='$libname.dll.a'
14202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14203 postinstall_cmds='base_file=`basename \${file}`~
14204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14205 dldir=$destdir/`dirname \$dlpath`~
14206 test -d \$dldir || mkdir -p \$dldir~
14207 $install_prog $dir/$dlname \$dldir/$dlname'
14208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14209 dlpath=$dir/\$dldll~
14210 $rm \$dlpath'
14211 shlibpath_overrides_runpath=yes
14212
14213 case $host_os in
14214 cygwin*)
14215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14218 ;;
14219 mingw*)
14220 # MinGW DLLs use traditional 'lib' prefix
14221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14224 # It is most probably a Windows format PATH printed by
14225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14226 # path with ; separators, and with drive letters. We can handle the
14227 # drive letters (cygwin fileutils understands them), so leave them,
14228 # especially as we might pass files found there to a mingw objdump,
14229 # which wouldn't understand a cygwinified path. Ahh.
14230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14231 else
14232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14233 fi
14234 ;;
14235 pw32*)
14236 # pw32 DLLs use 'pw' prefix rather than 'lib'
14237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14238 ;;
14239 esac
14240 ;;
14241
14242 *)
14243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14244 ;;
14245 esac
14246 dynamic_linker='Win32 ld.exe'
14247 # FIXME: first we should search . and the directory the executable is in
14248 shlibpath_var=PATH
14249 ;;
14250
14251darwin* | rhapsody*)
14252 dynamic_linker="$host_os dyld"
14253 version_type=darwin
14254 need_lib_prefix=no
14255 need_version=no
14256 # FIXME: Relying on posixy $() will cause problems for
14257 # cross-compilation, but unfortunately the echo tests do not
14258 # yet detect zsh echo's removal of \ escapes.
14259 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14260 soname_spec='${libname}${release}${major}$shared_ext'
14261 shlibpath_overrides_runpath=yes
14262 shlibpath_var=DYLD_LIBRARY_PATH
14263 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14264 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14265 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14266 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"`
14267 fi
14268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14269 ;;
14270
14271dgux*)
14272 version_type=linux
14273 need_lib_prefix=no
14274 need_version=no
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14278 ;;
14279
14280freebsd1*)
14281 dynamic_linker=no
14282 ;;
14283
14284freebsd*)
14285 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14286 version_type=freebsd-$objformat
14287 case $version_type in
14288 freebsd-elf*)
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14290 need_version=no
14291 need_lib_prefix=no
14292 ;;
14293 freebsd-*)
14294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14295 need_version=yes
14296 ;;
14297 esac
14298 shlibpath_var=LD_LIBRARY_PATH
14299 case $host_os in
14300 freebsd2*)
14301 shlibpath_overrides_runpath=yes
14302 ;;
14303 freebsd3.01* | freebsdelf3.01*)
14304 shlibpath_overrides_runpath=yes
14305 hardcode_into_libs=yes
14306 ;;
14307 *) # from 3.2 on
14308 shlibpath_overrides_runpath=no
14309 hardcode_into_libs=yes
14310 ;;
14311 esac
14312 ;;
14313
14314gnu*)
14315 version_type=linux
14316 need_lib_prefix=no
14317 need_version=no
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 shlibpath_var=LD_LIBRARY_PATH
14321 hardcode_into_libs=yes
14322 ;;
14323
14324hpux9* | hpux10* | hpux11*)
14325 # Give a soname corresponding to the major version so that dld.sl refuses to
14326 # link against other versions.
14327 version_type=sunos
14328 need_lib_prefix=no
14329 need_version=no
14330 case "$host_cpu" in
14331 ia64*)
14332 shrext='.so'
14333 hardcode_into_libs=yes
14334 dynamic_linker="$host_os dld.so"
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 if test "X$HPUX_IA64_MODE" = X32; then
14340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14341 else
14342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14343 fi
14344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14345 ;;
14346 hppa*64*)
14347 shrext='.sl'
14348 hardcode_into_libs=yes
14349 dynamic_linker="$host_os dld.sl"
14350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14353 soname_spec='${libname}${release}${shared_ext}$major'
14354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14356 ;;
14357 *)
14358 shrext='.sl'
14359 dynamic_linker="$host_os dld.sl"
14360 shlibpath_var=SHLIB_PATH
14361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 ;;
14365 esac
14366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14367 postinstall_cmds='chmod 555 $lib'
14368 ;;
14369
14370irix5* | irix6* | nonstopux*)
14371 case $host_os in
14372 nonstopux*) version_type=nonstopux ;;
14373 *)
14374 if test "$lt_cv_prog_gnu_ld" = yes; then
14375 version_type=linux
14376 else
14377 version_type=irix
14378 fi ;;
14379 esac
14380 need_lib_prefix=no
14381 need_version=no
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14384 case $host_os in
14385 irix5* | nonstopux*)
14386 libsuff= shlibsuff=
14387 ;;
14388 *)
14389 case $LD in # libtool.m4 will add one of these switches to LD
14390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14391 libsuff= shlibsuff= libmagic=32-bit;;
14392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14393 libsuff=32 shlibsuff=N32 libmagic=N32;;
14394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14396 *) libsuff= shlibsuff= libmagic=never-match;;
14397 esac
14398 ;;
14399 esac
14400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14401 shlibpath_overrides_runpath=no
14402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14404 hardcode_into_libs=yes
14405 ;;
14406
14407# No shared lib support for Linux oldld, aout, or coff.
14408linux*oldld* | linux*aout* | linux*coff*)
14409 dynamic_linker=no
14410 ;;
14411
14412# This must be Linux ELF.
14413linux*)
14414 version_type=linux
14415 need_lib_prefix=no
14416 need_version=no
14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418 soname_spec='${libname}${release}${shared_ext}$major'
14419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14420 shlibpath_var=LD_LIBRARY_PATH
14421 shlibpath_overrides_runpath=no
14422 # This implies no fast_install, which is unacceptable.
14423 # Some rework will be needed to allow for fast_install
14424 # before this can be enabled.
14425 hardcode_into_libs=yes
14426
14427 # We used to test for /lib/ld.so.1 and disable shared libraries on
14428 # powerpc, because MkLinux only supported shared libraries with the
14429 # GNU dynamic linker. Since this was broken with cross compilers,
14430 # most powerpc-linux boxes support dynamic linking these days and
14431 # people can always --disable-shared, the test was removed, and we
14432 # assume the GNU/Linux dynamic linker is in use.
14433 dynamic_linker='GNU/Linux ld.so'
14434 ;;
14435
14436netbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 dynamic_linker='NetBSD (a.out) ld.so'
14444 else
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 dynamic_linker='NetBSD ld.elf_so'
14448 fi
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14452 ;;
14453
14454newsos6)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath=yes
14459 ;;
14460
14461nto-qnx)
14462 version_type=linux
14463 need_lib_prefix=no
14464 need_version=no
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14469 ;;
14470
14471openbsd*)
14472 version_type=sunos
14473 need_lib_prefix=no
14474 need_version=no
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14479 case $host_os in
14480 openbsd2.[89] | openbsd2.[89].*)
14481 shlibpath_overrides_runpath=no
14482 ;;
14483 *)
14484 shlibpath_overrides_runpath=yes
14485 ;;
14486 esac
14487 else
14488 shlibpath_overrides_runpath=yes
14489 fi
14490 ;;
14491
14492os2*)
14493 libname_spec='$name'
14494 shrext=".dll"
14495 need_lib_prefix=no
14496 library_names_spec='$libname${shared_ext} $libname.a'
14497 dynamic_linker='OS/2 ld.exe'
14498 shlibpath_var=LIBPATH
14499 ;;
14500
14501osf3* | osf4* | osf5*)
14502 version_type=osf
14503 need_lib_prefix=no
14504 need_version=no
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14510 ;;
14511
14512sco3.2v5*)
14513 version_type=osf
14514 soname_spec='${libname}${release}${shared_ext}$major'
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 ;;
14518
14519solaris*)
14520 version_type=linux
14521 need_lib_prefix=no
14522 need_version=no
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 shlibpath_overrides_runpath=yes
14527 hardcode_into_libs=yes
14528 # ldd complains unless libraries are executable
14529 postinstall_cmds='chmod +x $lib'
14530 ;;
14531
14532sunos4*)
14533 version_type=sunos
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 if test "$with_gnu_ld" = yes; then
14539 need_lib_prefix=no
14540 fi
14541 need_version=yes
14542 ;;
14543
14544sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14545 version_type=linux
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 case $host_vendor in
14550 sni)
14551 shlibpath_overrides_runpath=no
14552 need_lib_prefix=no
14553 export_dynamic_flag_spec='${wl}-Blargedynsym'
14554 runpath_var=LD_RUN_PATH
14555 ;;
14556 siemens)
14557 need_lib_prefix=no
14558 ;;
14559 motorola)
14560 need_lib_prefix=no
14561 need_version=no
14562 shlibpath_overrides_runpath=no
14563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14564 ;;
14565 esac
14566 ;;
14567
14568sysv4*MP*)
14569 if test -d /usr/nec ;then
14570 version_type=linux
14571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14572 soname_spec='$libname${shared_ext}.$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 fi
14575 ;;
14576
14577uts4*)
14578 version_type=linux
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580 soname_spec='${libname}${release}${shared_ext}$major'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 ;;
14583
14584*)
14585 dynamic_linker=no
14586 ;;
14587esac
14588echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14589echo "${ECHO_T}$dynamic_linker" >&6
14590test "$dynamic_linker" = no && can_build_shared=no
14591
14592
14593# The else clause should only fire when bootstrapping the
14594# libtool distribution, otherwise you forgot to ship ltmain.sh
14595# with your package, and you will get complaints that there are
14596# no rules to generate ltmain.sh.
14597if test -f "$ltmain"; then
14598 # See if we are running on zsh, and set the options which allow our commands through
14599 # without removal of \ escapes.
14600 if test -n "${ZSH_VERSION+set}" ; then
14601 setopt NO_GLOB_SUBST
14602 fi
14603 # Now quote all the things that may contain metacharacters while being
14604 # careful not to overquote the AC_SUBSTed values. We take copies of the
14605 # variables and quote the copies for generation of the libtool script.
14606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14607 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14608 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14609 deplibs_check_method reload_flag reload_cmds need_locks \
14610 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14611 lt_cv_sys_global_symbol_to_c_name_address \
14612 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14613 old_postinstall_cmds old_postuninstall_cmds \
14614 compiler_F77 \
14615 CC_F77 \
14616 LD_F77 \
14617 lt_prog_compiler_wl_F77 \
14618 lt_prog_compiler_pic_F77 \
14619 lt_prog_compiler_static_F77 \
14620 lt_prog_compiler_no_builtin_flag_F77 \
14621 export_dynamic_flag_spec_F77 \
14622 thread_safe_flag_spec_F77 \
14623 whole_archive_flag_spec_F77 \
14624 enable_shared_with_static_runtimes_F77 \
14625 old_archive_cmds_F77 \
14626 old_archive_from_new_cmds_F77 \
14627 predep_objects_F77 \
14628 postdep_objects_F77 \
14629 predeps_F77 \
14630 postdeps_F77 \
14631 compiler_lib_search_path_F77 \
14632 archive_cmds_F77 \
14633 archive_expsym_cmds_F77 \
14634 postinstall_cmds_F77 \
14635 postuninstall_cmds_F77 \
14636 old_archive_from_expsyms_cmds_F77 \
14637 allow_undefined_flag_F77 \
14638 no_undefined_flag_F77 \
14639 export_symbols_cmds_F77 \
14640 hardcode_libdir_flag_spec_F77 \
14641 hardcode_libdir_flag_spec_ld_F77 \
14642 hardcode_libdir_separator_F77 \
14643 hardcode_automatic_F77 \
14644 module_cmds_F77 \
14645 module_expsym_cmds_F77 \
14646 lt_cv_prog_compiler_c_o_F77 \
14647 exclude_expsyms_F77 \
14648 include_expsyms_F77; do
14649
14650 case $var in
14651 old_archive_cmds_F77 | \
14652 old_archive_from_new_cmds_F77 | \
14653 archive_cmds_F77 | \
14654 archive_expsym_cmds_F77 | \
14655 module_cmds_F77 | \
14656 module_expsym_cmds_F77 | \
14657 old_archive_from_expsyms_cmds_F77 | \
14658 export_symbols_cmds_F77 | \
14659 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14660 postinstall_cmds | postuninstall_cmds | \
14661 old_postinstall_cmds | old_postuninstall_cmds | \
14662 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14663 # Double-quote double-evaled strings.
14664 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14665 ;;
14666 *)
14667 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14668 ;;
14669 esac
14670 done
14671
14672 case $lt_echo in
14673 *'\$0 --fallback-echo"')
14674 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14675 ;;
14676 esac
14677
14678cfgfile="$ofile"
14679
14680 cat <<__EOF__ >> "$cfgfile"
14681# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14682
14683# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14684
14685# Shell to use when invoking shell scripts.
14686SHELL=$lt_SHELL
14687
14688# Whether or not to build shared libraries.
14689build_libtool_libs=$enable_shared
14690
14691# Whether or not to build static libraries.
14692build_old_libs=$enable_static
14693
14694# Whether or not to add -lc for building shared libraries.
14695build_libtool_need_lc=$archive_cmds_need_lc_F77
14696
14697# Whether or not to disallow shared libs when runtime libs are static
14698allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14699
14700# Whether or not to optimize for fast installation.
14701fast_install=$enable_fast_install
14702
14703# The host system.
14704host_alias=$host_alias
14705host=$host
14706
14707# An echo program that does not interpret backslashes.
14708echo=$lt_echo
14709
14710# The archiver.
14711AR=$lt_AR
14712AR_FLAGS=$lt_AR_FLAGS
14713
14714# A C compiler.
14715LTCC=$lt_LTCC
14716
14717# A language-specific compiler.
14718CC=$lt_compiler_F77
14719
14720# Is the compiler the GNU C compiler?
14721with_gcc=$GCC_F77
14722
14723# An ERE matcher.
14724EGREP=$lt_EGREP
14725
14726# The linker used to build libraries.
14727LD=$lt_LD_F77
14728
14729# Whether we need hard or soft links.
14730LN_S=$lt_LN_S
14731
14732# A BSD-compatible nm program.
14733NM=$lt_NM
14734
14735# A symbol stripping program
14736STRIP=$STRIP
14737
14738# Used to examine libraries when file_magic_cmd begins "file"
14739MAGIC_CMD=$MAGIC_CMD
14740
14741# Used on cygwin: DLL creation program.
14742DLLTOOL="$DLLTOOL"
14743
14744# Used on cygwin: object dumper.
14745OBJDUMP="$OBJDUMP"
14746
14747# Used on cygwin: assembler.
14748AS="$AS"
14749
14750# The name of the directory that contains temporary libtool files.
14751objdir=$objdir
14752
14753# How to create reloadable object files.
14754reload_flag=$lt_reload_flag
14755reload_cmds=$lt_reload_cmds
14756
14757# How to pass a linker flag through the compiler.
14758wl=$lt_lt_prog_compiler_wl_F77
14759
14760# Object file suffix (normally "o").
14761objext="$ac_objext"
14762
14763# Old archive suffix (normally "a").
14764libext="$libext"
14765
14766# Shared library suffix (normally ".so").
14767shrext='$shrext'
14768
14769# Executable file suffix (normally "").
14770exeext="$exeext"
14771
14772# Additional compiler flags for building library objects.
14773pic_flag=$lt_lt_prog_compiler_pic_F77
14774pic_mode=$pic_mode
14775
14776# What is the maximum length of a command?
14777max_cmd_len=$lt_cv_sys_max_cmd_len
14778
14779# Does compiler simultaneously support -c and -o options?
14780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14781
14782# Must we lock files when doing compilation ?
14783need_locks=$lt_need_locks
14784
14785# Do we need the lib prefix for modules?
14786need_lib_prefix=$need_lib_prefix
14787
14788# Do we need a version for libraries?
14789need_version=$need_version
14790
14791# Whether dlopen is supported.
14792dlopen_support=$enable_dlopen
14793
14794# Whether dlopen of programs is supported.
14795dlopen_self=$enable_dlopen_self
14796
14797# Whether dlopen of statically linked programs is supported.
14798dlopen_self_static=$enable_dlopen_self_static
14799
14800# Compiler flag to prevent dynamic linking.
14801link_static_flag=$lt_lt_prog_compiler_static_F77
14802
14803# Compiler flag to turn off builtin functions.
14804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14805
14806# Compiler flag to allow reflexive dlopens.
14807export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14808
14809# Compiler flag to generate shared objects directly from archives.
14810whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14811
14812# Compiler flag to generate thread-safe objects.
14813thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14814
14815# Library versioning type.
14816version_type=$version_type
14817
14818# Format of library name prefix.
14819libname_spec=$lt_libname_spec
14820
14821# List of archive names. First name is the real one, the rest are links.
14822# The last name is the one that the linker finds with -lNAME.
14823library_names_spec=$lt_library_names_spec
14824
14825# The coded name of the library, if different from the real name.
14826soname_spec=$lt_soname_spec
14827
14828# Commands used to build and install an old-style archive.
14829RANLIB=$lt_RANLIB
14830old_archive_cmds=$lt_old_archive_cmds_F77
14831old_postinstall_cmds=$lt_old_postinstall_cmds
14832old_postuninstall_cmds=$lt_old_postuninstall_cmds
14833
14834# Create an old-style archive from a shared archive.
14835old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14836
14837# Create a temporary old-style archive to link instead of a shared archive.
14838old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14839
14840# Commands used to build and install a shared archive.
14841archive_cmds=$lt_archive_cmds_F77
14842archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14843postinstall_cmds=$lt_postinstall_cmds
14844postuninstall_cmds=$lt_postuninstall_cmds
14845
14846# Commands used to build a loadable module (assumed same as above if empty)
14847module_cmds=$lt_module_cmds_F77
14848module_expsym_cmds=$lt_module_expsym_cmds_F77
14849
14850# Commands to strip libraries.
14851old_striplib=$lt_old_striplib
14852striplib=$lt_striplib
14853
14854# Dependencies to place before the objects being linked to create a
14855# shared library.
14856predep_objects=$lt_predep_objects_F77
14857
14858# Dependencies to place after the objects being linked to create a
14859# shared library.
14860postdep_objects=$lt_postdep_objects_F77
14861
14862# Dependencies to place before the objects being linked to create a
14863# shared library.
14864predeps=$lt_predeps_F77
14865
14866# Dependencies to place after the objects being linked to create a
14867# shared library.
14868postdeps=$lt_postdeps_F77
14869
14870# The library search path used internally by the compiler when linking
14871# a shared library.
14872compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14873
14874# Method to check whether dependent libraries are shared objects.
14875deplibs_check_method=$lt_deplibs_check_method
14876
14877# Command to use when deplibs_check_method == file_magic.
14878file_magic_cmd=$lt_file_magic_cmd
14879
14880# Flag that allows shared libraries with undefined symbols to be built.
14881allow_undefined_flag=$lt_allow_undefined_flag_F77
14882
14883# Flag that forces no undefined symbols.
14884no_undefined_flag=$lt_no_undefined_flag_F77
14885
14886# Commands used to finish a libtool library installation in a directory.
14887finish_cmds=$lt_finish_cmds
14888
14889# Same as above, but a single script fragment to be evaled but not shown.
14890finish_eval=$lt_finish_eval
14891
14892# Take the output of nm and produce a listing of raw symbols and C names.
14893global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14894
14895# Transform the output of nm in a proper C declaration
14896global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14897
14898# Transform the output of nm in a C name address pair
14899global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14900
14901# This is the shared library runtime path variable.
14902runpath_var=$runpath_var
14903
14904# This is the shared library path variable.
14905shlibpath_var=$shlibpath_var
14906
14907# Is shlibpath searched before the hard-coded library search path?
14908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14909
14910# How to hardcode a shared library path into an executable.
14911hardcode_action=$hardcode_action_F77
14912
14913# Whether we should hardcode library paths into libraries.
14914hardcode_into_libs=$hardcode_into_libs
14915
14916# Flag to hardcode \$libdir into a binary during linking.
14917# This must work even if \$libdir does not exist.
14918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14919
14920# If ld is used when linking, flag to hardcode \$libdir into
14921# a binary during linking. This must work even if \$libdir does
14922# not exist.
14923hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14924
14925# Whether we need a single -rpath flag with a separated argument.
14926hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14927
14928# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14929# resulting binary.
14930hardcode_direct=$hardcode_direct_F77
14931
14932# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14933# resulting binary.
14934hardcode_minus_L=$hardcode_minus_L_F77
14935
14936# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14937# the resulting binary.
14938hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14939
14940# Set to yes if building a shared library automatically hardcodes DIR into the library
14941# and all subsequent libraries and executables linked against it.
14942hardcode_automatic=$hardcode_automatic_F77
14943
14944# Variables whose values should be saved in libtool wrapper scripts and
14945# restored at relink time.
14946variables_saved_for_relink="$variables_saved_for_relink"
14947
14948# Whether libtool must link a program against all its dependency libraries.
14949link_all_deplibs=$link_all_deplibs_F77
14950
14951# Compile-time system search path for libraries
14952sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14953
14954# Run-time system search path for libraries
14955sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14956
14957# Fix the shell variable \$srcfile for the compiler.
14958fix_srcfile_path="$fix_srcfile_path_F77"
14959
14960# Set to yes if exported symbols are required.
14961always_export_symbols=$always_export_symbols_F77
14962
14963# The commands to list exported symbols.
14964export_symbols_cmds=$lt_export_symbols_cmds_F77
14965
14966# The commands to extract the exported symbol list from a shared archive.
14967extract_expsyms_cmds=$lt_extract_expsyms_cmds
14968
14969# Symbols that should not be listed in the preloaded symbols.
14970exclude_expsyms=$lt_exclude_expsyms_F77
14971
14972# Symbols that must always be exported.
14973include_expsyms=$lt_include_expsyms_F77
14974
14975# ### END LIBTOOL TAG CONFIG: $tagname
14976
14977__EOF__
14978
14979
14980else
14981 # If there is no Makefile yet, we rely on a make rule to execute
14982 # `config.status --recheck' to rerun these tests and create the
14983 # libtool script then.
14984 test -f Makefile && make "$ltmain"
14985fi
14986
14987
14988ac_ext=c
14989ac_cpp='$CPP $CPPFLAGS'
14990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14992ac_compiler_gnu=$ac_cv_c_compiler_gnu
14993
14994CC="$lt_save_CC"
14995
14996 else
14997 tagname=""
14998 fi
14999 ;;
15000
15001 GCJ)
15002 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15003
15004
15005
15006# Source file extension for Java test sources.
15007ac_ext=java
15008
15009# Object file extension for compiled Java test sources.
15010objext=o
15011objext_GCJ=$objext
15012
15013# Code to be used in simple compile tests
15014lt_simple_compile_test_code="class foo {}\n"
15015
15016# Code to be used in simple link tests
15017lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15018
15019# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15020
15021# If no C compiler was specified, use CC.
15022LTCC=${LTCC-"$CC"}
15023
15024# Allow CC to be a program name with arguments.
15025compiler=$CC
15026
15027
15028# Allow CC to be a program name with arguments.
15029lt_save_CC="$CC"
15030CC=${GCJ-"gcj"}
15031compiler=$CC
15032compiler_GCJ=$CC
15033
15034# GCJ did not exist at the time GCC didn't implicitly link libc in.
15035archive_cmds_need_lc_GCJ=no
15036
15037## CAVEAT EMPTOR:
15038## There is no encapsulation within the following macros, do not change
15039## the running order or otherwise move them around unless you know exactly
15040## what you are doing...
15041
15042lt_prog_compiler_no_builtin_flag_GCJ=
15043
15044if test "$GCC" = yes; then
15045 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15046
15047 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15048echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15049if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051else
15052 lt_cv_prog_compiler_rtti_exceptions=no
15053 ac_outfile=conftest.$ac_objext
15054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15055 lt_compiler_flag="-fno-rtti -fno-exceptions"
15056 # Insert the option either (1) after the last *FLAGS variable, or
15057 # (2) before a word containing "conftest.", or (3) at the end.
15058 # Note that $ac_compile itself does not contain backslashes and begins
15059 # with a dollar sign (not a hyphen), so the echo should work correctly.
15060 # The option is referenced via a variable to avoid confusing sed.
15061 lt_compile=`echo "$ac_compile" | $SED \
15062 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15064 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015065 (eval echo "\"\$as_me:15065: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015066 (eval "$lt_compile" 2>conftest.err)
15067 ac_status=$?
15068 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015069 echo "$as_me:15069: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015070 if (exit $ac_status) && test -s "$ac_outfile"; then
15071 # The compiler can only warn and ignore the option if not recognized
15072 # So say no if there are warnings
15073 if test ! -s conftest.err; then
15074 lt_cv_prog_compiler_rtti_exceptions=yes
15075 fi
15076 fi
15077 $rm conftest*
15078
15079fi
15080echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15081echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15082
15083if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15084 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15085else
15086 :
15087fi
15088
15089fi
15090
15091lt_prog_compiler_wl_GCJ=
15092lt_prog_compiler_pic_GCJ=
15093lt_prog_compiler_static_GCJ=
15094
15095echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15096echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15097
15098 if test "$GCC" = yes; then
15099 lt_prog_compiler_wl_GCJ='-Wl,'
15100 lt_prog_compiler_static_GCJ='-static'
15101
15102 case $host_os in
15103 aix*)
15104 # All AIX code is PIC.
15105 if test "$host_cpu" = ia64; then
15106 # AIX 5 now supports IA64 processor
15107 lt_prog_compiler_static_GCJ='-Bstatic'
15108 fi
15109 ;;
15110
15111 amigaos*)
15112 # FIXME: we need at least 68020 code to build shared libraries, but
15113 # adding the `-m68020' flag to GCC prevents building anything better,
15114 # like `-m68040'.
15115 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15116 ;;
15117
15118 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15119 # PIC is the default for these OSes.
15120 ;;
15121
15122 mingw* | pw32* | os2*)
15123 # This hack is so that the source file can tell whether it is being
15124 # built for inclusion in a dll (and should export symbols for example).
15125 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15126 ;;
15127
15128 darwin* | rhapsody*)
15129 # PIC is the default on this platform
15130 # Common symbols not allowed in MH_DYLIB files
15131 lt_prog_compiler_pic_GCJ='-fno-common'
15132 ;;
15133
15134 msdosdjgpp*)
15135 # Just because we use GCC doesn't mean we suddenly get shared libraries
15136 # on systems that don't support them.
15137 lt_prog_compiler_can_build_shared_GCJ=no
15138 enable_shared=no
15139 ;;
15140
15141 sysv4*MP*)
15142 if test -d /usr/nec; then
15143 lt_prog_compiler_pic_GCJ=-Kconform_pic
15144 fi
15145 ;;
15146
15147 hpux*)
15148 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15149 # not for PA HP-UX.
15150 case "$host_cpu" in
15151 hppa*64*|ia64*)
15152 # +Z the default
15153 ;;
15154 *)
15155 lt_prog_compiler_pic_GCJ='-fPIC'
15156 ;;
15157 esac
15158 ;;
15159
15160 *)
15161 lt_prog_compiler_pic_GCJ='-fPIC'
15162 ;;
15163 esac
15164 else
15165 # PORTME Check for flag to pass linker flags through the system compiler.
15166 case $host_os in
15167 aix*)
15168 lt_prog_compiler_wl_GCJ='-Wl,'
15169 if test "$host_cpu" = ia64; then
15170 # AIX 5 now supports IA64 processor
15171 lt_prog_compiler_static_GCJ='-Bstatic'
15172 else
15173 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15174 fi
15175 ;;
15176
15177 mingw* | pw32* | os2*)
15178 # This hack is so that the source file can tell whether it is being
15179 # built for inclusion in a dll (and should export symbols for example).
15180 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15181 ;;
15182
15183 hpux9* | hpux10* | hpux11*)
15184 lt_prog_compiler_wl_GCJ='-Wl,'
15185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15186 # not for PA HP-UX.
15187 case "$host_cpu" in
15188 hppa*64*|ia64*)
15189 # +Z the default
15190 ;;
15191 *)
15192 lt_prog_compiler_pic_GCJ='+Z'
15193 ;;
15194 esac
15195 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15196 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15197 ;;
15198
15199 irix5* | irix6* | nonstopux*)
15200 lt_prog_compiler_wl_GCJ='-Wl,'
15201 # PIC (with -KPIC) is the default.
15202 lt_prog_compiler_static_GCJ='-non_shared'
15203 ;;
15204
15205 newsos6)
15206 lt_prog_compiler_pic_GCJ='-KPIC'
15207 lt_prog_compiler_static_GCJ='-Bstatic'
15208 ;;
15209
15210 linux*)
15211 case $CC in
15212 icc|ecc)
15213 lt_prog_compiler_wl_GCJ='-Wl,'
15214 lt_prog_compiler_pic_GCJ='-KPIC'
15215 lt_prog_compiler_static_GCJ='-static'
15216 ;;
15217 ccc)
15218 lt_prog_compiler_wl_GCJ='-Wl,'
15219 # All Alpha code is PIC.
15220 lt_prog_compiler_static_GCJ='-non_shared'
15221 ;;
15222 esac
15223 ;;
15224
15225 osf3* | osf4* | osf5*)
15226 lt_prog_compiler_wl_GCJ='-Wl,'
15227 # All OSF/1 code is PIC.
15228 lt_prog_compiler_static_GCJ='-non_shared'
15229 ;;
15230
15231 sco3.2v5*)
15232 lt_prog_compiler_pic_GCJ='-Kpic'
15233 lt_prog_compiler_static_GCJ='-dn'
15234 ;;
15235
15236 solaris*)
15237 lt_prog_compiler_wl_GCJ='-Wl,'
15238 lt_prog_compiler_pic_GCJ='-KPIC'
15239 lt_prog_compiler_static_GCJ='-Bstatic'
15240 ;;
15241
15242 sunos4*)
15243 lt_prog_compiler_wl_GCJ='-Qoption ld '
15244 lt_prog_compiler_pic_GCJ='-PIC'
15245 lt_prog_compiler_static_GCJ='-Bstatic'
15246 ;;
15247
15248 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15249 lt_prog_compiler_wl_GCJ='-Wl,'
15250 lt_prog_compiler_pic_GCJ='-KPIC'
15251 lt_prog_compiler_static_GCJ='-Bstatic'
15252 ;;
15253
15254 sysv4*MP*)
15255 if test -d /usr/nec ;then
15256 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 fi
15259 ;;
15260
15261 uts4*)
15262 lt_prog_compiler_pic_GCJ='-pic'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 ;;
15265
15266 *)
15267 lt_prog_compiler_can_build_shared_GCJ=no
15268 ;;
15269 esac
15270 fi
15271
15272echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15273echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15274
15275#
15276# Check to make sure the PIC flag actually works.
15277#
15278if test -n "$lt_prog_compiler_pic_GCJ"; then
15279 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15280echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15281if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15283else
15284 lt_prog_compiler_pic_works_GCJ=no
15285 ac_outfile=conftest.$ac_objext
15286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15287 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15288 # Insert the option either (1) after the last *FLAGS variable, or
15289 # (2) before a word containing "conftest.", or (3) at the end.
15290 # Note that $ac_compile itself does not contain backslashes and begins
15291 # with a dollar sign (not a hyphen), so the echo should work correctly.
15292 # The option is referenced via a variable to avoid confusing sed.
15293 lt_compile=`echo "$ac_compile" | $SED \
15294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15296 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015297 (eval echo "\"\$as_me:15297: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015298 (eval "$lt_compile" 2>conftest.err)
15299 ac_status=$?
15300 cat conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015301 echo "$as_me:15301: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015302 if (exit $ac_status) && test -s "$ac_outfile"; then
15303 # The compiler can only warn and ignore the option if not recognized
15304 # So say no if there are warnings
15305 if test ! -s conftest.err; then
15306 lt_prog_compiler_pic_works_GCJ=yes
15307 fi
15308 fi
15309 $rm conftest*
15310
15311fi
15312echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15313echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15314
15315if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15316 case $lt_prog_compiler_pic_GCJ in
15317 "" | " "*) ;;
15318 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15319 esac
15320else
15321 lt_prog_compiler_pic_GCJ=
15322 lt_prog_compiler_can_build_shared_GCJ=no
15323fi
15324
15325fi
15326case "$host_os" in
15327 # For platforms which do not support PIC, -DPIC is meaningless:
15328 *djgpp*)
15329 lt_prog_compiler_pic_GCJ=
15330 ;;
15331 *)
15332 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15333 ;;
15334esac
15335
15336echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15337echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15338if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340else
15341 lt_cv_prog_compiler_c_o_GCJ=no
15342 $rm -r conftest 2>/dev/null
15343 mkdir conftest
15344 cd conftest
15345 mkdir out
15346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15347
15348 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15349 # that will create temporary files in the current directory regardless of
15350 # the output directory. Thus, making CWD read-only will cause this test
15351 # to fail, enabling locking or at least warning the user not to do parallel
15352 # builds.
15353 chmod -w .
15354
15355 lt_compiler_flag="-o out/conftest2.$ac_objext"
15356 # Insert the option either (1) after the last *FLAGS variable, or
15357 # (2) before a word containing "conftest.", or (3) at the end.
15358 # Note that $ac_compile itself does not contain backslashes and begins
15359 # with a dollar sign (not a hyphen), so the echo should work correctly.
15360 lt_compile=`echo "$ac_compile" | $SED \
15361 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15363 -e 's:$: $lt_compiler_flag:'`
John Criswell78227592003-09-30 19:41:15 +000015364 (eval echo "\"\$as_me:15364: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015365 (eval "$lt_compile" 2>out/conftest.err)
15366 ac_status=$?
15367 cat out/conftest.err >&5
John Criswell78227592003-09-30 19:41:15 +000015368 echo "$as_me:15368: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 then
15371 # The compiler can only warn and ignore the option if not recognized
15372 # So say no if there are warnings
15373 if test ! -s out/conftest.err; then
15374 lt_cv_prog_compiler_c_o_GCJ=yes
15375 fi
15376 fi
15377 chmod u+w .
15378 $rm conftest* out/*
15379 rmdir out
15380 cd ..
15381 rmdir conftest
15382 $rm conftest*
15383
15384fi
15385echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15386echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15387
15388
15389hard_links="nottested"
15390if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15391 # do not overwrite the value of need_locks provided by the user
15392 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15393echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15394 hard_links=yes
15395 $rm conftest*
15396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397 touch conftest.a
15398 ln conftest.a conftest.b 2>&5 || hard_links=no
15399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15400 echo "$as_me:$LINENO: result: $hard_links" >&5
15401echo "${ECHO_T}$hard_links" >&6
15402 if test "$hard_links" = no; then
15403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15404echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15405 need_locks=warn
15406 fi
15407else
15408 need_locks=no
15409fi
15410
15411echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15412echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15413
15414 runpath_var=
15415 allow_undefined_flag_GCJ=
15416 enable_shared_with_static_runtimes_GCJ=no
15417 archive_cmds_GCJ=
15418 archive_expsym_cmds_GCJ=
15419 old_archive_From_new_cmds_GCJ=
15420 old_archive_from_expsyms_cmds_GCJ=
15421 export_dynamic_flag_spec_GCJ=
15422 whole_archive_flag_spec_GCJ=
15423 thread_safe_flag_spec_GCJ=
15424 hardcode_libdir_flag_spec_GCJ=
15425 hardcode_libdir_flag_spec_ld_GCJ=
15426 hardcode_libdir_separator_GCJ=
15427 hardcode_direct_GCJ=no
15428 hardcode_minus_L_GCJ=no
15429 hardcode_shlibpath_var_GCJ=unsupported
15430 link_all_deplibs_GCJ=unknown
15431 hardcode_automatic_GCJ=no
15432 module_cmds_GCJ=
15433 module_expsym_cmds_GCJ=
15434 always_export_symbols_GCJ=no
15435 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15436 # include_expsyms should be a list of space-separated symbols to be *always*
15437 # included in the symbol list
15438 include_expsyms_GCJ=
15439 # exclude_expsyms can be an extended regexp of symbols to exclude
15440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15442 # as well as any symbol that contains `d'.
15443 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15445 # platforms (ab)use it in PIC code, but their linkers get confused if
15446 # the symbol is explicitly referenced. Since portable code cannot
15447 # rely on this symbol name, it's probably fine to never include it in
15448 # preloaded symbol tables.
15449 extract_expsyms_cmds=
15450
15451 case $host_os in
15452 cygwin* | mingw* | pw32*)
15453 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15454 # When not using gcc, we currently assume that we are using
15455 # Microsoft Visual C++.
15456 if test "$GCC" != yes; then
15457 with_gnu_ld=no
15458 fi
15459 ;;
15460 openbsd*)
15461 with_gnu_ld=no
15462 ;;
15463 esac
15464
15465 ld_shlibs_GCJ=yes
15466 if test "$with_gnu_ld" = yes; then
15467 # If archive_cmds runs LD, not CC, wlarc should be empty
15468 wlarc='${wl}'
15469
15470 # See if GNU ld supports shared libraries.
15471 case $host_os in
15472 aix3* | aix4* | aix5*)
15473 # On AIX/PPC, the GNU linker is very broken
15474 if test "$host_cpu" != ia64; then
15475 ld_shlibs_GCJ=no
15476 cat <<EOF 1>&2
15477
15478*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15479*** to be unable to reliably create shared libraries on AIX.
15480*** Therefore, libtool is disabling shared libraries support. If you
15481*** really care for shared libraries, you may want to modify your PATH
15482*** so that a non-GNU linker is found, and then restart.
15483
15484EOF
15485 fi
15486 ;;
15487
15488 amigaos*)
15489 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)'
15490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15491 hardcode_minus_L_GCJ=yes
15492
15493 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15494 # that the semantics of dynamic libraries on AmigaOS, at least up
15495 # to version 4, is to share data among multiple programs linked
15496 # with the same dynamic library. Since this doesn't match the
15497 # behavior of shared libraries on other platforms, we can't use
15498 # them.
15499 ld_shlibs_GCJ=no
15500 ;;
15501
15502 beos*)
15503 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15504 allow_undefined_flag_GCJ=unsupported
15505 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15506 # support --undefined. This deserves some investigation. FIXME
15507 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15508 else
15509 ld_shlibs_GCJ=no
15510 fi
15511 ;;
15512
15513 cygwin* | mingw* | pw32*)
15514 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15515 # as there is no search path for DLLs.
15516 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15517 allow_undefined_flag_GCJ=unsupported
15518 always_export_symbols_GCJ=no
15519 enable_shared_with_static_runtimes_GCJ=yes
15520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15521
15522 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15523 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15524 # If the export-symbols file already is a .def file (1st line
15525 # is EXPORTS), use it as is; otherwise, prepend...
15526 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15527 cp $export_symbols $output_objdir/$soname.def;
15528 else
15529 echo EXPORTS > $output_objdir/$soname.def;
15530 cat $export_symbols >> $output_objdir/$soname.def;
15531 fi~
15532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15533 else
15534 ld_shlibs=no
15535 fi
15536 ;;
15537
15538 netbsd*)
15539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15540 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15541 wlarc=
15542 else
15543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15545 fi
15546 ;;
15547
15548 solaris* | sysv5*)
15549 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15550 ld_shlibs_GCJ=no
15551 cat <<EOF 1>&2
15552
15553*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15554*** create shared libraries on Solaris systems. Therefore, libtool
15555*** is disabling shared libraries support. We urge you to upgrade GNU
15556*** binutils to release 2.9.1 or newer. Another option is to modify
15557*** your PATH or compiler configuration so that the native linker is
15558*** used, and then restart.
15559
15560EOF
15561 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15564 else
15565 ld_shlibs_GCJ=no
15566 fi
15567 ;;
15568
15569 sunos4*)
15570 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 wlarc=
15572 hardcode_direct_GCJ=yes
15573 hardcode_shlibpath_var_GCJ=no
15574 ;;
15575
15576 *)
15577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15578 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15579 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580 else
15581 ld_shlibs_GCJ=no
15582 fi
15583 ;;
15584 esac
15585
15586 if test "$ld_shlibs_GCJ" = yes; then
15587 runpath_var=LD_RUN_PATH
15588 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15589 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15590 # ancient GNU ld didn't support --whole-archive et. al.
15591 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15592 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15593 else
15594 whole_archive_flag_spec_GCJ=
15595 fi
15596 fi
15597 else
15598 # PORTME fill in a description of your system's linker (not GNU ld)
15599 case $host_os in
15600 aix3*)
15601 allow_undefined_flag_GCJ=unsupported
15602 always_export_symbols_GCJ=yes
15603 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'
15604 # Note: this linker hardcodes the directories in LIBPATH if there
15605 # are no directories specified by -L.
15606 hardcode_minus_L_GCJ=yes
15607 if test "$GCC" = yes && test -z "$link_static_flag"; then
15608 # Neither direct hardcoding nor static linking is supported with a
15609 # broken collect2.
15610 hardcode_direct_GCJ=unsupported
15611 fi
15612 ;;
15613
15614 aix4* | aix5*)
15615 if test "$host_cpu" = ia64; then
15616 # On IA64, the linker does run time linking by default, so we don't
15617 # have to do anything special.
15618 aix_use_runtimelinking=no
15619 exp_sym_flag='-Bexport'
15620 no_entry_flag=""
15621 else
15622 # If we're using GNU nm, then we don't want the "-C" option.
15623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15624 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15625 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'
15626 else
15627 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'
15628 fi
15629 aix_use_runtimelinking=no
15630
15631 # Test if we are trying to use run time linking or normal
15632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15633 # need to do runtime linking.
15634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15635 for ld_flag in $LDFLAGS; do
15636 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15637 aix_use_runtimelinking=yes
15638 break
15639 fi
15640 done
15641 esac
15642
15643 exp_sym_flag='-bexport'
15644 no_entry_flag='-bnoentry'
15645 fi
15646
15647 # When large executables or shared objects are built, AIX ld can
15648 # have problems creating the table of contents. If linking a library
15649 # or program results in "error TOC overflow" add -mminimal-toc to
15650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15652
15653 archive_cmds_GCJ=''
15654 hardcode_direct_GCJ=yes
15655 hardcode_libdir_separator_GCJ=':'
15656 link_all_deplibs_GCJ=yes
15657
15658 if test "$GCC" = yes; then
15659 case $host_os in aix4.012|aix4.012.*)
15660 # We only want to do this on AIX 4.2 and lower, the check
15661 # below for broken collect2 doesn't work under 4.3+
15662 collect2name=`${CC} -print-prog-name=collect2`
15663 if test -f "$collect2name" && \
15664 strings "$collect2name" | grep resolve_lib_name >/dev/null
15665 then
15666 # We have reworked collect2
15667 hardcode_direct_GCJ=yes
15668 else
15669 # We have old collect2
15670 hardcode_direct_GCJ=unsupported
15671 # It fails to find uninstalled libraries when the uninstalled
15672 # path is not listed in the libpath. Setting hardcode_minus_L
15673 # to unsupported forces relinking
15674 hardcode_minus_L_GCJ=yes
15675 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15676 hardcode_libdir_separator_GCJ=
15677 fi
15678 esac
15679 shared_flag='-shared'
15680 else
15681 # not using gcc
15682 if test "$host_cpu" = ia64; then
15683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15684 # chokes on -Wl,-G. The following line is correct:
15685 shared_flag='-G'
15686 else
15687 if test "$aix_use_runtimelinking" = yes; then
15688 shared_flag='${wl}-G'
15689 else
15690 shared_flag='${wl}-bM:SRE'
15691 fi
15692 fi
15693 fi
15694
15695 # It seems that -bexpall does not export symbols beginning with
15696 # underscore (_), so it is better to generate a list of symbols to export.
15697 always_export_symbols_GCJ=yes
15698 if test "$aix_use_runtimelinking" = yes; then
15699 # Warning - without using the other runtime loading flags (-brtl),
15700 # -berok will link without error, but may produce a broken library.
15701 allow_undefined_flag_GCJ='-berok'
15702 # Determine the default libpath from the value encoded in an empty executable.
15703 cat >conftest.$ac_ext <<_ACEOF
15704#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015705/* confdefs.h. */
15706_ACEOF
15707cat confdefs.h >>conftest.$ac_ext
15708cat >>conftest.$ac_ext <<_ACEOF
15709/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015710
John Criswell47fdd832003-07-14 16:52:07 +000015711int
15712main ()
15713{
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext conftest$ac_exeext
15720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15721 (eval $ac_link) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -s conftest$ac_exeext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15731
15732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15733}'`
15734# Check for a 64-bit object if we didn't find anything.
15735if 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; }
15736}'`; fi
15737else
15738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015739sed 's/^/| /' conftest.$ac_ext >&5
15740
John Criswell47fdd832003-07-14 16:52:07 +000015741fi
15742rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15744
15745 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15746 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"
15747 else
15748 if test "$host_cpu" = ia64; then
15749 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15750 allow_undefined_flag_GCJ="-z nodefs"
15751 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"
15752 else
15753 # Determine the default libpath from the value encoded in an empty executable.
15754 cat >conftest.$ac_ext <<_ACEOF
15755#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015761
John Criswell47fdd832003-07-14 16:52:07 +000015762int
15763main ()
15764{
15765
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext conftest$ac_exeext
15771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772 (eval $ac_link) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -s conftest$ac_exeext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782
15783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15784}'`
15785# Check for a 64-bit object if we didn't find anything.
15786if 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; }
15787}'`; fi
15788else
15789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015790sed 's/^/| /' conftest.$ac_ext >&5
15791
John Criswell47fdd832003-07-14 16:52:07 +000015792fi
15793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15794if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15795
15796 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15797 # Warning - without using the other run time loading flags,
15798 # -berok will link without error, but may produce a broken library.
15799 no_undefined_flag_GCJ=' ${wl}-bernotok'
15800 allow_undefined_flag_GCJ=' ${wl}-berok'
15801 # -bexpall does not export symbols beginning with underscore (_)
15802 always_export_symbols_GCJ=yes
15803 # Exported symbols can be pulled into shared objects from archives
15804 whole_archive_flag_spec_GCJ=' '
15805 archive_cmds_need_lc_GCJ=yes
15806 # This is similar to how AIX traditionally builds it's shared libraries.
15807 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'
15808 fi
15809 fi
15810 ;;
15811
15812 amigaos*)
15813 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)'
15814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15815 hardcode_minus_L_GCJ=yes
15816 # see comment about different semantics on the GNU ld section
15817 ld_shlibs_GCJ=no
15818 ;;
15819
15820 bsdi4*)
15821 export_dynamic_flag_spec_GCJ=-rdynamic
15822 ;;
15823
15824 cygwin* | mingw* | pw32*)
15825 # When not using gcc, we currently assume that we are using
15826 # Microsoft Visual C++.
15827 # hardcode_libdir_flag_spec is actually meaningless, as there is
15828 # no search path for DLLs.
15829 hardcode_libdir_flag_spec_GCJ=' '
15830 allow_undefined_flag_GCJ=unsupported
15831 # Tell ltmain to make .lib files, not .a files.
15832 libext=lib
15833 # Tell ltmain to make .dll files, not .so files.
15834 shrext=".dll"
15835 # FIXME: Setting linknames here is a bad hack.
15836 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15837 # The linker will automatically build a .lib file if we build a DLL.
15838 old_archive_From_new_cmds_GCJ='true'
15839 # FIXME: Should let the user specify the lib program.
15840 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15841 fix_srcfile_path='`cygpath -w "$srcfile"`'
15842 enable_shared_with_static_runtimes_GCJ=yes
15843 ;;
15844
15845 darwin* | rhapsody*)
15846 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15847 archive_cmds_need_lc_GCJ=no
15848 case "$host_os" in
15849 rhapsody* | darwin1.[012])
15850 allow_undefined_flag_GCJ='-undefined suppress'
15851 ;;
15852 *) # Darwin 1.3 on
15853 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15854 ;;
15855 esac
15856 # FIXME: Relying on posixy $() will cause problems for
15857 # cross-compilation, but unfortunately the echo tests do not
15858 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15859 # `"' quotes if we put them in here... so don't!
15860 lt_int_apple_cc_single_mod=no
15861 output_verbose_link_cmd='echo'
15862 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15863 lt_int_apple_cc_single_mod=yes
15864 fi
15865 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15866 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15867 else
15868 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'
15869 fi
15870 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15871 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15872 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15873 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}'
15874 else
15875 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}'
15876 fi
15877 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}'
15878 hardcode_direct_GCJ=no
15879 hardcode_automatic_GCJ=yes
15880 hardcode_shlibpath_var_GCJ=unsupported
15881 whole_archive_flag_spec_GCJ='-all_load $convenience'
15882 link_all_deplibs_GCJ=yes
15883 fi
15884 ;;
15885
15886 dgux*)
15887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15889 hardcode_shlibpath_var_GCJ=no
15890 ;;
15891
15892 freebsd1*)
15893 ld_shlibs_GCJ=no
15894 ;;
15895
15896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15897 # support. Future versions do this automatically, but an explicit c++rt0.o
15898 # does not break anything, and helps significantly (at the cost of a little
15899 # extra space).
15900 freebsd2.2*)
15901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15902 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15903 hardcode_direct_GCJ=yes
15904 hardcode_shlibpath_var_GCJ=no
15905 ;;
15906
15907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15908 freebsd2*)
15909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15910 hardcode_direct_GCJ=yes
15911 hardcode_minus_L_GCJ=yes
15912 hardcode_shlibpath_var_GCJ=no
15913 ;;
15914
15915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15916 freebsd*)
15917 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15918 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15919 hardcode_direct_GCJ=yes
15920 hardcode_shlibpath_var_GCJ=no
15921 ;;
15922
15923 hpux9*)
15924 if test "$GCC" = yes; then
15925 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'
15926 else
15927 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'
15928 fi
15929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15930 hardcode_libdir_separator_GCJ=:
15931 hardcode_direct_GCJ=yes
15932
15933 # hardcode_minus_L: Not really in the search PATH,
15934 # but as the default location of the library.
15935 hardcode_minus_L_GCJ=yes
15936 export_dynamic_flag_spec_GCJ='${wl}-E'
15937 ;;
15938
15939 hpux10* | hpux11*)
15940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15941 case "$host_cpu" in
15942 hppa*64*|ia64*)
15943 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 ;;
15945 *)
15946 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15947 ;;
15948 esac
15949 else
15950 case "$host_cpu" in
15951 hppa*64*|ia64*)
15952 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15953 ;;
15954 *)
15955 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15956 ;;
15957 esac
15958 fi
15959 if test "$with_gnu_ld" = no; then
15960 case "$host_cpu" in
15961 hppa*64*)
15962 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15963 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15964 hardcode_libdir_separator_GCJ=:
15965 hardcode_direct_GCJ=no
15966 hardcode_shlibpath_var_GCJ=no
15967 ;;
15968 ia64*)
15969 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15970 hardcode_direct_GCJ=no
15971 hardcode_shlibpath_var_GCJ=no
15972
15973 # hardcode_minus_L: Not really in the search PATH,
15974 # but as the default location of the library.
15975 hardcode_minus_L_GCJ=yes
15976 ;;
15977 *)
15978 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15979 hardcode_libdir_separator_GCJ=:
15980 hardcode_direct_GCJ=yes
15981 export_dynamic_flag_spec_GCJ='${wl}-E'
15982
15983 # hardcode_minus_L: Not really in the search PATH,
15984 # but as the default location of the library.
15985 hardcode_minus_L_GCJ=yes
15986 ;;
15987 esac
15988 fi
15989 ;;
15990
15991 irix5* | irix6* | nonstopux*)
15992 if test "$GCC" = yes; then
15993 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'
15994 else
15995 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'
15996 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15997 fi
15998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15999 hardcode_libdir_separator_GCJ=:
16000 link_all_deplibs_GCJ=yes
16001 ;;
16002
16003 netbsd*)
16004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16005 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16006 else
16007 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16008 fi
16009 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16010 hardcode_direct_GCJ=yes
16011 hardcode_shlibpath_var_GCJ=no
16012 ;;
16013
16014 newsos6)
16015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16016 hardcode_direct_GCJ=yes
16017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16018 hardcode_libdir_separator_GCJ=:
16019 hardcode_shlibpath_var_GCJ=no
16020 ;;
16021
16022 openbsd*)
16023 hardcode_direct_GCJ=yes
16024 hardcode_shlibpath_var_GCJ=no
16025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16028 export_dynamic_flag_spec_GCJ='${wl}-E'
16029 else
16030 case $host_os in
16031 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16034 ;;
16035 *)
16036 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16038 ;;
16039 esac
16040 fi
16041 ;;
16042
16043 os2*)
16044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16045 hardcode_minus_L_GCJ=yes
16046 allow_undefined_flag_GCJ=unsupported
16047 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'
16048 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16049 ;;
16050
16051 osf3*)
16052 if test "$GCC" = yes; then
16053 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16054 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'
16055 else
16056 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16057 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'
16058 fi
16059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16060 hardcode_libdir_separator_GCJ=:
16061 ;;
16062
16063 osf4* | osf5*) # as osf3* with the addition of -msym flag
16064 if test "$GCC" = yes; then
16065 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16066 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'
16067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16068 else
16069 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16070 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'
16071 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~
16072 $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'
16073
16074 # Both c and cxx compiler support -rpath directly
16075 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16076 fi
16077 hardcode_libdir_separator_GCJ=:
16078 ;;
16079
16080 sco3.2v5*)
16081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16082 hardcode_shlibpath_var_GCJ=no
16083 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16084 runpath_var=LD_RUN_PATH
16085 hardcode_runpath_var=yes
16086 ;;
16087
16088 solaris*)
16089 no_undefined_flag_GCJ=' -z text'
16090 if test "$GCC" = yes; then
16091 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16093 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16094 else
16095 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16096 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16098 fi
16099 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16100 hardcode_shlibpath_var_GCJ=no
16101 case $host_os in
16102 solaris2.[0-5] | solaris2.[0-5].*) ;;
16103 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16104 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16105 esac
16106 link_all_deplibs_GCJ=yes
16107 ;;
16108
16109 sunos4*)
16110 if test "x$host_vendor" = xsequent; then
16111 # Use $CC to link under sequent, because it throws in some extra .o
16112 # files that make .init and .fini sections work.
16113 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16114 else
16115 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16116 fi
16117 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16118 hardcode_direct_GCJ=yes
16119 hardcode_minus_L_GCJ=yes
16120 hardcode_shlibpath_var_GCJ=no
16121 ;;
16122
16123 sysv4)
16124 case $host_vendor in
16125 sni)
16126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_direct_GCJ=yes # is this really true???
16128 ;;
16129 siemens)
16130 ## LD is ld it makes a PLAMLIB
16131 ## CC just makes a GrossModule.
16132 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16133 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16134 hardcode_direct_GCJ=no
16135 ;;
16136 motorola)
16137 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16139 ;;
16140 esac
16141 runpath_var='LD_RUN_PATH'
16142 hardcode_shlibpath_var_GCJ=no
16143 ;;
16144
16145 sysv4.3*)
16146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147 hardcode_shlibpath_var_GCJ=no
16148 export_dynamic_flag_spec_GCJ='-Bexport'
16149 ;;
16150
16151 sysv4*MP*)
16152 if test -d /usr/nec; then
16153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16154 hardcode_shlibpath_var_GCJ=no
16155 runpath_var=LD_RUN_PATH
16156 hardcode_runpath_var=yes
16157 ld_shlibs_GCJ=yes
16158 fi
16159 ;;
16160
16161 sysv4.2uw2*)
16162 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_direct_GCJ=yes
16164 hardcode_minus_L_GCJ=no
16165 hardcode_shlibpath_var_GCJ=no
16166 hardcode_runpath_var=yes
16167 runpath_var=LD_RUN_PATH
16168 ;;
16169
16170 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16171 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16172 if test "$GCC" = yes; then
16173 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16174 else
16175 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16176 fi
16177 runpath_var='LD_RUN_PATH'
16178 hardcode_shlibpath_var_GCJ=no
16179 ;;
16180
16181 sysv5*)
16182 no_undefined_flag_GCJ=' -z text'
16183 # $CC -shared without GNU ld will not create a library from C++
16184 # object files and a static libstdc++, better avoid it by now
16185 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16186 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16188 hardcode_libdir_flag_spec_GCJ=
16189 hardcode_shlibpath_var_GCJ=no
16190 runpath_var='LD_RUN_PATH'
16191 ;;
16192
16193 uts4*)
16194 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16195 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16196 hardcode_shlibpath_var_GCJ=no
16197 ;;
16198
16199 *)
16200 ld_shlibs_GCJ=no
16201 ;;
16202 esac
16203 fi
16204
16205echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16206echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16207test "$ld_shlibs_GCJ" = no && can_build_shared=no
16208
16209variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16210if test "$GCC" = yes; then
16211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16212fi
16213
16214#
16215# Do we need to explicitly link libc?
16216#
16217case "x$archive_cmds_need_lc_GCJ" in
16218x|xyes)
16219 # Assume -lc should be added
16220 archive_cmds_need_lc_GCJ=yes
16221
16222 if test "$enable_shared" = yes && test "$GCC" = yes; then
16223 case $archive_cmds_GCJ in
16224 *'~'*)
16225 # FIXME: we may have to deal with multi-command sequences.
16226 ;;
16227 '$CC '*)
16228 # Test whether the compiler implicitly links with -lc since on some
16229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16230 # to ld, don't add -lc before -lgcc.
16231 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16232echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16233 $rm conftest*
16234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16235
16236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16237 (eval $ac_compile) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } 2>conftest.err; then
16241 soname=conftest
16242 lib=conftest
16243 libobjs=conftest.$ac_objext
16244 deplibs=
16245 wl=$lt_prog_compiler_wl_GCJ
16246 compiler_flags=-v
16247 linker_flags=-v
16248 verstring=
16249 output_objdir=.
16250 libname=conftest
16251 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16252 allow_undefined_flag_GCJ=
16253 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16254 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }
16258 then
16259 archive_cmds_need_lc_GCJ=no
16260 else
16261 archive_cmds_need_lc_GCJ=yes
16262 fi
16263 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16264 else
16265 cat conftest.err 1>&5
16266 fi
16267 $rm conftest*
16268 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16269echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16270 ;;
16271 esac
16272 fi
16273 ;;
16274esac
16275
16276echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16277echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16278hardcode_action_GCJ=
16279if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16280 test -n "$runpath_var GCJ" || \
16281 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16282
16283 # We can hardcode non-existant directories.
16284 if test "$hardcode_direct_GCJ" != no &&
16285 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16286 # have to relink, otherwise we might link with an installed library
16287 # when we should be linking with a yet-to-be-installed one
16288 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16289 test "$hardcode_minus_L_GCJ" != no; then
16290 # Linking always hardcodes the temporary library directory.
16291 hardcode_action_GCJ=relink
16292 else
16293 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16294 hardcode_action_GCJ=immediate
16295 fi
16296else
16297 # We cannot hardcode anything, or else we can only hardcode existing
16298 # directories.
16299 hardcode_action_GCJ=unsupported
16300fi
16301echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16302echo "${ECHO_T}$hardcode_action_GCJ" >&6
16303
16304if test "$hardcode_action_GCJ" = relink; then
16305 # Fast installation is not supported
16306 enable_fast_install=no
16307elif test "$shlibpath_overrides_runpath" = yes ||
16308 test "$enable_shared" = no; then
16309 # Fast installation is not necessary
16310 enable_fast_install=needless
16311fi
16312
16313striplib=
16314old_striplib=
16315echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16316echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16317if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16318 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16319 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16320 echo "$as_me:$LINENO: result: yes" >&5
16321echo "${ECHO_T}yes" >&6
16322else
16323# FIXME - insert some real tests, host_os isn't really good enough
16324 case $host_os in
16325 darwin*)
16326 if test -n "$STRIP" ; then
16327 striplib="$STRIP -x"
16328 echo "$as_me:$LINENO: result: yes" >&5
16329echo "${ECHO_T}yes" >&6
16330 else
16331 echo "$as_me:$LINENO: result: no" >&5
16332echo "${ECHO_T}no" >&6
16333fi
16334 ;;
16335 *)
16336 echo "$as_me:$LINENO: result: no" >&5
16337echo "${ECHO_T}no" >&6
16338 ;;
16339 esac
16340fi
16341
16342echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16343echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16344library_names_spec=
16345libname_spec='lib$name'
16346soname_spec=
16347shrext=".so"
16348postinstall_cmds=
16349postuninstall_cmds=
16350finish_cmds=
16351finish_eval=
16352shlibpath_var=
16353shlibpath_overrides_runpath=unknown
16354version_type=none
16355dynamic_linker="$host_os ld.so"
16356sys_lib_dlsearch_path_spec="/lib /usr/lib"
16357if test "$GCC" = yes; then
16358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16360 # if the path contains ";" then we assume it to be the separator
16361 # otherwise default to the standard path separator (i.e. ":") - it is
16362 # assumed that no part of a normal pathname contains ";" but that should
16363 # okay in the real world where ";" in dirpaths is itself problematic.
16364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16365 else
16366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16367 fi
16368else
16369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16370fi
16371need_lib_prefix=unknown
16372hardcode_into_libs=no
16373
16374# when you set need_version to no, make sure it does not cause -set_version
16375# flags to be left without arguments
16376need_version=unknown
16377
16378case $host_os in
16379aix3*)
16380 version_type=linux
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16382 shlibpath_var=LIBPATH
16383
16384 # AIX 3 has no versioning support, so we append a major version to the name.
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 ;;
16387
16388aix4* | aix5*)
16389 version_type=linux
16390 need_lib_prefix=no
16391 need_version=no
16392 hardcode_into_libs=yes
16393 if test "$host_cpu" = ia64; then
16394 # AIX 5 supports IA64
16395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 else
16398 # With GCC up to 2.95.x, collect2 would create an import file
16399 # for dependence libraries. The import file would start with
16400 # the line `#! .'. This would cause the generated library to
16401 # depend on `.', always an invalid library. This was fixed in
16402 # development snapshots of GCC prior to 3.0.
16403 case $host_os in
16404 aix4 | aix4.[01] | aix4.[01].*)
16405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16406 echo ' yes '
16407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16408 :
16409 else
16410 can_build_shared=no
16411 fi
16412 ;;
16413 esac
16414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16415 # soname into executable. Probably we can add versioning support to
16416 # collect2, so additional links can be useful in future.
16417 if test "$aix_use_runtimelinking" = yes; then
16418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16419 # instead of lib<name>.a to let people know that these are not
16420 # typical AIX shared libraries.
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 else
16423 # We preserve .a as extension for shared libraries through AIX4.2
16424 # and later when we are not doing run time linking.
16425 library_names_spec='${libname}${release}.a $libname.a'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 fi
16428 shlibpath_var=LIBPATH
16429 fi
16430 ;;
16431
16432amigaos*)
16433 library_names_spec='$libname.ixlibrary $libname.a'
16434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16435 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'
16436 ;;
16437
16438beos*)
16439 library_names_spec='${libname}${shared_ext}'
16440 dynamic_linker="$host_os ld.so"
16441 shlibpath_var=LIBRARY_PATH
16442 ;;
16443
16444bsdi4*)
16445 version_type=linux
16446 need_version=no
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 soname_spec='${libname}${release}${shared_ext}$major'
16449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16453 # the default ld.so.conf also contains /usr/contrib/lib and
16454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16455 # libtool to hard-code these into programs
16456 ;;
16457
16458cygwin* | mingw* | pw32*)
16459 version_type=windows
16460 shrext=".dll"
16461 need_version=no
16462 need_lib_prefix=no
16463
16464 case $GCC,$host_os in
16465 yes,cygwin* | yes,mingw* | yes,pw32*)
16466 library_names_spec='$libname.dll.a'
16467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16468 postinstall_cmds='base_file=`basename \${file}`~
16469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16470 dldir=$destdir/`dirname \$dlpath`~
16471 test -d \$dldir || mkdir -p \$dldir~
16472 $install_prog $dir/$dlname \$dldir/$dlname'
16473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16474 dlpath=$dir/\$dldll~
16475 $rm \$dlpath'
16476 shlibpath_overrides_runpath=yes
16477
16478 case $host_os in
16479 cygwin*)
16480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16483 ;;
16484 mingw*)
16485 # MinGW DLLs use traditional 'lib' prefix
16486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16488 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16489 # It is most probably a Windows format PATH printed by
16490 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16491 # path with ; separators, and with drive letters. We can handle the
16492 # drive letters (cygwin fileutils understands them), so leave them,
16493 # especially as we might pass files found there to a mingw objdump,
16494 # which wouldn't understand a cygwinified path. Ahh.
16495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16496 else
16497 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16498 fi
16499 ;;
16500 pw32*)
16501 # pw32 DLLs use 'pw' prefix rather than 'lib'
16502 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16503 ;;
16504 esac
16505 ;;
16506
16507 *)
16508 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16509 ;;
16510 esac
16511 dynamic_linker='Win32 ld.exe'
16512 # FIXME: first we should search . and the directory the executable is in
16513 shlibpath_var=PATH
16514 ;;
16515
16516darwin* | rhapsody*)
16517 dynamic_linker="$host_os dyld"
16518 version_type=darwin
16519 need_lib_prefix=no
16520 need_version=no
16521 # FIXME: Relying on posixy $() will cause problems for
16522 # cross-compilation, but unfortunately the echo tests do not
16523 # yet detect zsh echo's removal of \ escapes.
16524 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16525 soname_spec='${libname}${release}${major}$shared_ext'
16526 shlibpath_overrides_runpath=yes
16527 shlibpath_var=DYLD_LIBRARY_PATH
16528 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16529 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16530 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16531 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"`
16532 fi
16533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16534 ;;
16535
16536dgux*)
16537 version_type=linux
16538 need_lib_prefix=no
16539 need_version=no
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16541 soname_spec='${libname}${release}${shared_ext}$major'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 ;;
16544
16545freebsd1*)
16546 dynamic_linker=no
16547 ;;
16548
16549freebsd*)
16550 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16551 version_type=freebsd-$objformat
16552 case $version_type in
16553 freebsd-elf*)
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16555 need_version=no
16556 need_lib_prefix=no
16557 ;;
16558 freebsd-*)
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16560 need_version=yes
16561 ;;
16562 esac
16563 shlibpath_var=LD_LIBRARY_PATH
16564 case $host_os in
16565 freebsd2*)
16566 shlibpath_overrides_runpath=yes
16567 ;;
16568 freebsd3.01* | freebsdelf3.01*)
16569 shlibpath_overrides_runpath=yes
16570 hardcode_into_libs=yes
16571 ;;
16572 *) # from 3.2 on
16573 shlibpath_overrides_runpath=no
16574 hardcode_into_libs=yes
16575 ;;
16576 esac
16577 ;;
16578
16579gnu*)
16580 version_type=linux
16581 need_lib_prefix=no
16582 need_version=no
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 hardcode_into_libs=yes
16587 ;;
16588
16589hpux9* | hpux10* | hpux11*)
16590 # Give a soname corresponding to the major version so that dld.sl refuses to
16591 # link against other versions.
16592 version_type=sunos
16593 need_lib_prefix=no
16594 need_version=no
16595 case "$host_cpu" in
16596 ia64*)
16597 shrext='.so'
16598 hardcode_into_libs=yes
16599 dynamic_linker="$host_os dld.so"
16600 shlibpath_var=LD_LIBRARY_PATH
16601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 if test "X$HPUX_IA64_MODE" = X32; then
16605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16606 else
16607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16608 fi
16609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16610 ;;
16611 hppa*64*)
16612 shrext='.sl'
16613 hardcode_into_libs=yes
16614 dynamic_linker="$host_os dld.sl"
16615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16621 ;;
16622 *)
16623 shrext='.sl'
16624 dynamic_linker="$host_os dld.sl"
16625 shlibpath_var=SHLIB_PATH
16626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16629 ;;
16630 esac
16631 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16632 postinstall_cmds='chmod 555 $lib'
16633 ;;
16634
16635irix5* | irix6* | nonstopux*)
16636 case $host_os in
16637 nonstopux*) version_type=nonstopux ;;
16638 *)
16639 if test "$lt_cv_prog_gnu_ld" = yes; then
16640 version_type=linux
16641 else
16642 version_type=irix
16643 fi ;;
16644 esac
16645 need_lib_prefix=no
16646 need_version=no
16647 soname_spec='${libname}${release}${shared_ext}$major'
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16649 case $host_os in
16650 irix5* | nonstopux*)
16651 libsuff= shlibsuff=
16652 ;;
16653 *)
16654 case $LD in # libtool.m4 will add one of these switches to LD
16655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16656 libsuff= shlibsuff= libmagic=32-bit;;
16657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16658 libsuff=32 shlibsuff=N32 libmagic=N32;;
16659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16661 *) libsuff= shlibsuff= libmagic=never-match;;
16662 esac
16663 ;;
16664 esac
16665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16666 shlibpath_overrides_runpath=no
16667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16669 hardcode_into_libs=yes
16670 ;;
16671
16672# No shared lib support for Linux oldld, aout, or coff.
16673linux*oldld* | linux*aout* | linux*coff*)
16674 dynamic_linker=no
16675 ;;
16676
16677# This must be Linux ELF.
16678linux*)
16679 version_type=linux
16680 need_lib_prefix=no
16681 need_version=no
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16683 soname_spec='${libname}${release}${shared_ext}$major'
16684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 shlibpath_overrides_runpath=no
16687 # This implies no fast_install, which is unacceptable.
16688 # Some rework will be needed to allow for fast_install
16689 # before this can be enabled.
16690 hardcode_into_libs=yes
16691
16692 # We used to test for /lib/ld.so.1 and disable shared libraries on
16693 # powerpc, because MkLinux only supported shared libraries with the
16694 # GNU dynamic linker. Since this was broken with cross compilers,
16695 # most powerpc-linux boxes support dynamic linking these days and
16696 # people can always --disable-shared, the test was removed, and we
16697 # assume the GNU/Linux dynamic linker is in use.
16698 dynamic_linker='GNU/Linux ld.so'
16699 ;;
16700
16701netbsd*)
16702 version_type=sunos
16703 need_lib_prefix=no
16704 need_version=no
16705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16708 dynamic_linker='NetBSD (a.out) ld.so'
16709 else
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16711 soname_spec='${libname}${release}${shared_ext}$major'
16712 dynamic_linker='NetBSD ld.elf_so'
16713 fi
16714 shlibpath_var=LD_LIBRARY_PATH
16715 shlibpath_overrides_runpath=yes
16716 hardcode_into_libs=yes
16717 ;;
16718
16719newsos6)
16720 version_type=linux
16721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16722 shlibpath_var=LD_LIBRARY_PATH
16723 shlibpath_overrides_runpath=yes
16724 ;;
16725
16726nto-qnx)
16727 version_type=linux
16728 need_lib_prefix=no
16729 need_version=no
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 soname_spec='${libname}${release}${shared_ext}$major'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 shlibpath_overrides_runpath=yes
16734 ;;
16735
16736openbsd*)
16737 version_type=sunos
16738 need_lib_prefix=no
16739 need_version=no
16740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16744 case $host_os in
16745 openbsd2.[89] | openbsd2.[89].*)
16746 shlibpath_overrides_runpath=no
16747 ;;
16748 *)
16749 shlibpath_overrides_runpath=yes
16750 ;;
16751 esac
16752 else
16753 shlibpath_overrides_runpath=yes
16754 fi
16755 ;;
16756
16757os2*)
16758 libname_spec='$name'
16759 shrext=".dll"
16760 need_lib_prefix=no
16761 library_names_spec='$libname${shared_ext} $libname.a'
16762 dynamic_linker='OS/2 ld.exe'
16763 shlibpath_var=LIBPATH
16764 ;;
16765
16766osf3* | osf4* | osf5*)
16767 version_type=osf
16768 need_lib_prefix=no
16769 need_version=no
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16775 ;;
16776
16777sco3.2v5*)
16778 version_type=osf
16779 soname_spec='${libname}${release}${shared_ext}$major'
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 ;;
16783
16784solaris*)
16785 version_type=linux
16786 need_lib_prefix=no
16787 need_version=no
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 shlibpath_var=LD_LIBRARY_PATH
16791 shlibpath_overrides_runpath=yes
16792 hardcode_into_libs=yes
16793 # ldd complains unless libraries are executable
16794 postinstall_cmds='chmod +x $lib'
16795 ;;
16796
16797sunos4*)
16798 version_type=sunos
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=yes
16803 if test "$with_gnu_ld" = yes; then
16804 need_lib_prefix=no
16805 fi
16806 need_version=yes
16807 ;;
16808
16809sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16810 version_type=linux
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812 soname_spec='${libname}${release}${shared_ext}$major'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 case $host_vendor in
16815 sni)
16816 shlibpath_overrides_runpath=no
16817 need_lib_prefix=no
16818 export_dynamic_flag_spec='${wl}-Blargedynsym'
16819 runpath_var=LD_RUN_PATH
16820 ;;
16821 siemens)
16822 need_lib_prefix=no
16823 ;;
16824 motorola)
16825 need_lib_prefix=no
16826 need_version=no
16827 shlibpath_overrides_runpath=no
16828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16829 ;;
16830 esac
16831 ;;
16832
16833sysv4*MP*)
16834 if test -d /usr/nec ;then
16835 version_type=linux
16836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16837 soname_spec='$libname${shared_ext}.$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 fi
16840 ;;
16841
16842uts4*)
16843 version_type=linux
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 ;;
16848
16849*)
16850 dynamic_linker=no
16851 ;;
16852esac
16853echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16854echo "${ECHO_T}$dynamic_linker" >&6
16855test "$dynamic_linker" = no && can_build_shared=no
16856
16857if test "x$enable_dlopen" != xyes; then
16858 enable_dlopen=unknown
16859 enable_dlopen_self=unknown
16860 enable_dlopen_self_static=unknown
16861else
16862 lt_cv_dlopen=no
16863 lt_cv_dlopen_libs=
16864
16865 case $host_os in
16866 beos*)
16867 lt_cv_dlopen="load_add_on"
16868 lt_cv_dlopen_libs=
16869 lt_cv_dlopen_self=yes
16870 ;;
16871
16872 mingw* | pw32*)
16873 lt_cv_dlopen="LoadLibrary"
16874 lt_cv_dlopen_libs=
16875 ;;
16876
16877 cygwin*)
16878 lt_cv_dlopen="dlopen"
16879 lt_cv_dlopen_libs=
16880 ;;
16881
16882 darwin*)
16883 # if libdl is installed we need to link against it
16884 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16885echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16886if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888else
16889 ac_check_lib_save_LIBS=$LIBS
16890LIBS="-ldl $LIBS"
16891cat >conftest.$ac_ext <<_ACEOF
16892#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016893/* confdefs.h. */
16894_ACEOF
16895cat confdefs.h >>conftest.$ac_ext
16896cat >>conftest.$ac_ext <<_ACEOF
16897/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016898
16899/* Override any gcc2 internal prototype to avoid an error. */
16900#ifdef __cplusplus
16901extern "C"
16902#endif
16903/* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016906int
16907main ()
16908{
16909dlopen ();
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext conftest$ac_exeext
16915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_cv_lib_dl_dlopen=yes
16927else
16928 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016929sed 's/^/| /' conftest.$ac_ext >&5
16930
John Criswell47fdd832003-07-14 16:52:07 +000016931ac_cv_lib_dl_dlopen=no
16932fi
16933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16934LIBS=$ac_check_lib_save_LIBS
16935fi
16936echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16937echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16938if test $ac_cv_lib_dl_dlopen = yes; then
16939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16940else
16941
16942 lt_cv_dlopen="dyld"
16943 lt_cv_dlopen_libs=
16944 lt_cv_dlopen_self=yes
16945
16946fi
16947
16948 ;;
16949
16950 *)
16951 echo "$as_me:$LINENO: checking for shl_load" >&5
16952echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16953if test "${ac_cv_func_shl_load+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16955else
16956 cat >conftest.$ac_ext <<_ACEOF
16957#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016963/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016964 which can conflict with char shl_load (); below.
16965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16966 <limits.h> exists even on freestanding compilers. */
16967#ifdef __STDC__
16968# include <limits.h>
16969#else
16970# include <assert.h>
16971#endif
John Criswell47fdd832003-07-14 16:52:07 +000016972/* Override any gcc2 internal prototype to avoid an error. */
16973#ifdef __cplusplus
16974extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016975{
John Criswell47fdd832003-07-14 16:52:07 +000016976#endif
16977/* We use char because int might match the return type of a gcc2
16978 builtin and then its argument prototype would still apply. */
16979char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016980/* The GNU C library defines this for functions which it implements
16981 to always fail with ENOSYS. Some functions are actually named
16982 something starting with __ and the normal name is an alias. */
16983#if defined (__stub_shl_load) || defined (__stub___shl_load)
16984choke me
16985#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016986char (*f) () = shl_load;
16987#endif
16988#ifdef __cplusplus
16989}
John Criswell47fdd832003-07-14 16:52:07 +000016990#endif
16991
John Criswell0c38eaf2003-09-10 15:17:25 +000016992int
16993main ()
16994{
16995return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016996 ;
16997 return 0;
16998}
16999_ACEOF
17000rm -f conftest.$ac_objext conftest$ac_exeext
17001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17002 (eval $ac_link) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } &&
17006 { ac_try='test -s conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_func_shl_load=yes
17013else
17014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017015sed 's/^/| /' conftest.$ac_ext >&5
17016
John Criswell47fdd832003-07-14 16:52:07 +000017017ac_cv_func_shl_load=no
17018fi
17019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17020fi
17021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17022echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17023if test $ac_cv_func_shl_load = yes; then
17024 lt_cv_dlopen="shl_load"
17025else
17026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17027echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17028if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-ldld $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
17034#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017040
17041/* Override any gcc2 internal prototype to avoid an error. */
17042#ifdef __cplusplus
17043extern "C"
17044#endif
17045/* We use char because int might match the return type of a gcc2
17046 builtin and then its argument prototype would still apply. */
17047char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017048int
17049main ()
17050{
17051shl_load ();
17052 ;
17053 return 0;
17054}
17055_ACEOF
17056rm -f conftest.$ac_objext conftest$ac_exeext
17057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -s conftest$ac_exeext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_lib_dld_shl_load=yes
17069else
17070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017071sed 's/^/| /' conftest.$ac_ext >&5
17072
John Criswell47fdd832003-07-14 16:52:07 +000017073ac_cv_lib_dld_shl_load=no
17074fi
17075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17076LIBS=$ac_check_lib_save_LIBS
17077fi
17078echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17079echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17080if test $ac_cv_lib_dld_shl_load = yes; then
17081 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17082else
17083 echo "$as_me:$LINENO: checking for dlopen" >&5
17084echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17085if test "${ac_cv_func_dlopen+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 cat >conftest.$ac_ext <<_ACEOF
17089#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017095/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017096 which can conflict with char dlopen (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17099#ifdef __STDC__
17100# include <limits.h>
17101#else
17102# include <assert.h>
17103#endif
John Criswell47fdd832003-07-14 16:52:07 +000017104/* Override any gcc2 internal prototype to avoid an error. */
17105#ifdef __cplusplus
17106extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017107{
John Criswell47fdd832003-07-14 16:52:07 +000017108#endif
17109/* We use char because int might match the return type of a gcc2
17110 builtin and then its argument prototype would still apply. */
17111char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017112/* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115#if defined (__stub_dlopen) || defined (__stub___dlopen)
17116choke me
17117#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017118char (*f) () = dlopen;
17119#endif
17120#ifdef __cplusplus
17121}
John Criswell47fdd832003-07-14 16:52:07 +000017122#endif
17123
John Criswell0c38eaf2003-09-10 15:17:25 +000017124int
17125main ()
17126{
17127return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext conftest$ac_exeext
17133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_func_dlopen=yes
17145else
17146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017147sed 's/^/| /' conftest.$ac_ext >&5
17148
John Criswell47fdd832003-07-14 16:52:07 +000017149ac_cv_func_dlopen=no
17150fi
17151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17152fi
17153echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17154echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17155if test $ac_cv_func_dlopen = yes; then
17156 lt_cv_dlopen="dlopen"
17157else
17158 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17159echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17160if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 ac_check_lib_save_LIBS=$LIBS
17164LIBS="-ldl $LIBS"
17165cat >conftest.$ac_ext <<_ACEOF
17166#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017172
17173/* Override any gcc2 internal prototype to avoid an error. */
17174#ifdef __cplusplus
17175extern "C"
17176#endif
17177/* We use char because int might match the return type of a gcc2
17178 builtin and then its argument prototype would still apply. */
17179char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017180int
17181main ()
17182{
17183dlopen ();
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext conftest$ac_exeext
17189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_lib_dl_dlopen=yes
17201else
17202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017203sed 's/^/| /' conftest.$ac_ext >&5
17204
John Criswell47fdd832003-07-14 16:52:07 +000017205ac_cv_lib_dl_dlopen=no
17206fi
17207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17208LIBS=$ac_check_lib_save_LIBS
17209fi
17210echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17211echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17212if test $ac_cv_lib_dl_dlopen = yes; then
17213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17214else
17215 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17216echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17217if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 ac_check_lib_save_LIBS=$LIBS
17221LIBS="-lsvld $LIBS"
17222cat >conftest.$ac_ext <<_ACEOF
17223#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017229
17230/* Override any gcc2 internal prototype to avoid an error. */
17231#ifdef __cplusplus
17232extern "C"
17233#endif
17234/* We use char because int might match the return type of a gcc2
17235 builtin and then its argument prototype would still apply. */
17236char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017237int
17238main ()
17239{
17240dlopen ();
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext conftest$ac_exeext
17246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17247 (eval $ac_link) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_cv_lib_svld_dlopen=yes
17258else
17259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017260sed 's/^/| /' conftest.$ac_ext >&5
17261
John Criswell47fdd832003-07-14 16:52:07 +000017262ac_cv_lib_svld_dlopen=no
17263fi
17264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17265LIBS=$ac_check_lib_save_LIBS
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17268echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17269if test $ac_cv_lib_svld_dlopen = yes; then
17270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17271else
17272 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17273echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17274if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17276else
17277 ac_check_lib_save_LIBS=$LIBS
17278LIBS="-ldld $LIBS"
17279cat >conftest.$ac_ext <<_ACEOF
17280#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017286
17287/* Override any gcc2 internal prototype to avoid an error. */
17288#ifdef __cplusplus
17289extern "C"
17290#endif
17291/* We use char because int might match the return type of a gcc2
17292 builtin and then its argument prototype would still apply. */
17293char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017294int
17295main ()
17296{
17297dld_link ();
17298 ;
17299 return 0;
17300}
17301_ACEOF
17302rm -f conftest.$ac_objext conftest$ac_exeext
17303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_lib_dld_dld_link=yes
17315else
17316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017317sed 's/^/| /' conftest.$ac_ext >&5
17318
John Criswell47fdd832003-07-14 16:52:07 +000017319ac_cv_lib_dld_dld_link=no
17320fi
17321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17322LIBS=$ac_check_lib_save_LIBS
17323fi
17324echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17325echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17326if test $ac_cv_lib_dld_dld_link = yes; then
17327 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17328fi
17329
17330
17331fi
17332
17333
17334fi
17335
17336
17337fi
17338
17339
17340fi
17341
17342
17343fi
17344
17345 ;;
17346 esac
17347
17348 if test "x$lt_cv_dlopen" != xno; then
17349 enable_dlopen=yes
17350 else
17351 enable_dlopen=no
17352 fi
17353
17354 case $lt_cv_dlopen in
17355 dlopen)
17356 save_CPPFLAGS="$CPPFLAGS"
17357 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17358
17359 save_LDFLAGS="$LDFLAGS"
17360 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17361
17362 save_LIBS="$LIBS"
17363 LIBS="$lt_cv_dlopen_libs $LIBS"
17364
17365 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17366echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17367if test "${lt_cv_dlopen_self+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369else
17370 if test "$cross_compiling" = yes; then :
17371 lt_cv_dlopen_self=cross
17372else
17373 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17374 lt_status=$lt_dlunknown
17375 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000017376#line 17376 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017377#include "confdefs.h"
17378
17379#if HAVE_DLFCN_H
17380#include <dlfcn.h>
17381#endif
17382
17383#include <stdio.h>
17384
17385#ifdef RTLD_GLOBAL
17386# define LT_DLGLOBAL RTLD_GLOBAL
17387#else
17388# ifdef DL_GLOBAL
17389# define LT_DLGLOBAL DL_GLOBAL
17390# else
17391# define LT_DLGLOBAL 0
17392# endif
17393#endif
17394
17395/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17396 find out it does not work in some platform. */
17397#ifndef LT_DLLAZY_OR_NOW
17398# ifdef RTLD_LAZY
17399# define LT_DLLAZY_OR_NOW RTLD_LAZY
17400# else
17401# ifdef DL_LAZY
17402# define LT_DLLAZY_OR_NOW DL_LAZY
17403# else
17404# ifdef RTLD_NOW
17405# define LT_DLLAZY_OR_NOW RTLD_NOW
17406# else
17407# ifdef DL_NOW
17408# define LT_DLLAZY_OR_NOW DL_NOW
17409# else
17410# define LT_DLLAZY_OR_NOW 0
17411# endif
17412# endif
17413# endif
17414# endif
17415#endif
17416
17417#ifdef __cplusplus
17418extern "C" void exit (int);
17419#endif
17420
17421void fnord() { int i=42;}
17422int main ()
17423{
17424 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17425 int status = $lt_dlunknown;
17426
17427 if (self)
17428 {
17429 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17430 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17431 /* dlclose (self); */
17432 }
17433
17434 exit (status);
17435}
17436EOF
17437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17438 (eval $ac_link) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17442 (./conftest; exit; ) 2>/dev/null
17443 lt_status=$?
17444 case x$lt_status in
17445 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17446 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17447 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17448 esac
17449 else :
17450 # compilation failed
17451 lt_cv_dlopen_self=no
17452 fi
17453fi
17454rm -fr conftest*
17455
17456
17457fi
17458echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17459echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17460
17461 if test "x$lt_cv_dlopen_self" = xyes; then
17462 LDFLAGS="$LDFLAGS $link_static_flag"
17463 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17464echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17465if test "${lt_cv_dlopen_self_static+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 if test "$cross_compiling" = yes; then :
17469 lt_cv_dlopen_self_static=cross
17470else
17471 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17472 lt_status=$lt_dlunknown
17473 cat > conftest.$ac_ext <<EOF
John Criswell78227592003-09-30 19:41:15 +000017474#line 17474 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017475#include "confdefs.h"
17476
17477#if HAVE_DLFCN_H
17478#include <dlfcn.h>
17479#endif
17480
17481#include <stdio.h>
17482
17483#ifdef RTLD_GLOBAL
17484# define LT_DLGLOBAL RTLD_GLOBAL
17485#else
17486# ifdef DL_GLOBAL
17487# define LT_DLGLOBAL DL_GLOBAL
17488# else
17489# define LT_DLGLOBAL 0
17490# endif
17491#endif
17492
17493/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17494 find out it does not work in some platform. */
17495#ifndef LT_DLLAZY_OR_NOW
17496# ifdef RTLD_LAZY
17497# define LT_DLLAZY_OR_NOW RTLD_LAZY
17498# else
17499# ifdef DL_LAZY
17500# define LT_DLLAZY_OR_NOW DL_LAZY
17501# else
17502# ifdef RTLD_NOW
17503# define LT_DLLAZY_OR_NOW RTLD_NOW
17504# else
17505# ifdef DL_NOW
17506# define LT_DLLAZY_OR_NOW DL_NOW
17507# else
17508# define LT_DLLAZY_OR_NOW 0
17509# endif
17510# endif
17511# endif
17512# endif
17513#endif
17514
17515#ifdef __cplusplus
17516extern "C" void exit (int);
17517#endif
17518
17519void fnord() { int i=42;}
17520int main ()
17521{
17522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17523 int status = $lt_dlunknown;
17524
17525 if (self)
17526 {
17527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17529 /* dlclose (self); */
17530 }
17531
17532 exit (status);
17533}
17534EOF
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17540 (./conftest; exit; ) 2>/dev/null
17541 lt_status=$?
17542 case x$lt_status in
17543 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17544 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17545 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17546 esac
17547 else :
17548 # compilation failed
17549 lt_cv_dlopen_self_static=no
17550 fi
17551fi
17552rm -fr conftest*
17553
17554
17555fi
17556echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17557echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17558 fi
17559
17560 CPPFLAGS="$save_CPPFLAGS"
17561 LDFLAGS="$save_LDFLAGS"
17562 LIBS="$save_LIBS"
17563 ;;
17564 esac
17565
17566 case $lt_cv_dlopen_self in
17567 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17568 *) enable_dlopen_self=unknown ;;
17569 esac
17570
17571 case $lt_cv_dlopen_self_static in
17572 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17573 *) enable_dlopen_self_static=unknown ;;
17574 esac
17575fi
17576
17577
17578# The else clause should only fire when bootstrapping the
17579# libtool distribution, otherwise you forgot to ship ltmain.sh
17580# with your package, and you will get complaints that there are
17581# no rules to generate ltmain.sh.
17582if test -f "$ltmain"; then
17583 # See if we are running on zsh, and set the options which allow our commands through
17584 # without removal of \ escapes.
17585 if test -n "${ZSH_VERSION+set}" ; then
17586 setopt NO_GLOB_SUBST
17587 fi
17588 # Now quote all the things that may contain metacharacters while being
17589 # careful not to overquote the AC_SUBSTed values. We take copies of the
17590 # variables and quote the copies for generation of the libtool script.
17591 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17594 deplibs_check_method reload_flag reload_cmds need_locks \
17595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17596 lt_cv_sys_global_symbol_to_c_name_address \
17597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17598 old_postinstall_cmds old_postuninstall_cmds \
17599 compiler_GCJ \
17600 CC_GCJ \
17601 LD_GCJ \
17602 lt_prog_compiler_wl_GCJ \
17603 lt_prog_compiler_pic_GCJ \
17604 lt_prog_compiler_static_GCJ \
17605 lt_prog_compiler_no_builtin_flag_GCJ \
17606 export_dynamic_flag_spec_GCJ \
17607 thread_safe_flag_spec_GCJ \
17608 whole_archive_flag_spec_GCJ \
17609 enable_shared_with_static_runtimes_GCJ \
17610 old_archive_cmds_GCJ \
17611 old_archive_from_new_cmds_GCJ \
17612 predep_objects_GCJ \
17613 postdep_objects_GCJ \
17614 predeps_GCJ \
17615 postdeps_GCJ \
17616 compiler_lib_search_path_GCJ \
17617 archive_cmds_GCJ \
17618 archive_expsym_cmds_GCJ \
17619 postinstall_cmds_GCJ \
17620 postuninstall_cmds_GCJ \
17621 old_archive_from_expsyms_cmds_GCJ \
17622 allow_undefined_flag_GCJ \
17623 no_undefined_flag_GCJ \
17624 export_symbols_cmds_GCJ \
17625 hardcode_libdir_flag_spec_GCJ \
17626 hardcode_libdir_flag_spec_ld_GCJ \
17627 hardcode_libdir_separator_GCJ \
17628 hardcode_automatic_GCJ \
17629 module_cmds_GCJ \
17630 module_expsym_cmds_GCJ \
17631 lt_cv_prog_compiler_c_o_GCJ \
17632 exclude_expsyms_GCJ \
17633 include_expsyms_GCJ; do
17634
17635 case $var in
17636 old_archive_cmds_GCJ | \
17637 old_archive_from_new_cmds_GCJ | \
17638 archive_cmds_GCJ | \
17639 archive_expsym_cmds_GCJ | \
17640 module_cmds_GCJ | \
17641 module_expsym_cmds_GCJ | \
17642 old_archive_from_expsyms_cmds_GCJ | \
17643 export_symbols_cmds_GCJ | \
17644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17645 postinstall_cmds | postuninstall_cmds | \
17646 old_postinstall_cmds | old_postuninstall_cmds | \
17647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17648 # Double-quote double-evaled strings.
17649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17650 ;;
17651 *)
17652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17653 ;;
17654 esac
17655 done
17656
17657 case $lt_echo in
17658 *'\$0 --fallback-echo"')
17659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17660 ;;
17661 esac
17662
17663cfgfile="$ofile"
17664
17665 cat <<__EOF__ >> "$cfgfile"
17666# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17667
17668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17669
17670# Shell to use when invoking shell scripts.
17671SHELL=$lt_SHELL
17672
17673# Whether or not to build shared libraries.
17674build_libtool_libs=$enable_shared
17675
17676# Whether or not to build static libraries.
17677build_old_libs=$enable_static
17678
17679# Whether or not to add -lc for building shared libraries.
17680build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17681
17682# Whether or not to disallow shared libs when runtime libs are static
17683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17684
17685# Whether or not to optimize for fast installation.
17686fast_install=$enable_fast_install
17687
17688# The host system.
17689host_alias=$host_alias
17690host=$host
17691
17692# An echo program that does not interpret backslashes.
17693echo=$lt_echo
17694
17695# The archiver.
17696AR=$lt_AR
17697AR_FLAGS=$lt_AR_FLAGS
17698
17699# A C compiler.
17700LTCC=$lt_LTCC
17701
17702# A language-specific compiler.
17703CC=$lt_compiler_GCJ
17704
17705# Is the compiler the GNU C compiler?
17706with_gcc=$GCC_GCJ
17707
17708# An ERE matcher.
17709EGREP=$lt_EGREP
17710
17711# The linker used to build libraries.
17712LD=$lt_LD_GCJ
17713
17714# Whether we need hard or soft links.
17715LN_S=$lt_LN_S
17716
17717# A BSD-compatible nm program.
17718NM=$lt_NM
17719
17720# A symbol stripping program
17721STRIP=$STRIP
17722
17723# Used to examine libraries when file_magic_cmd begins "file"
17724MAGIC_CMD=$MAGIC_CMD
17725
17726# Used on cygwin: DLL creation program.
17727DLLTOOL="$DLLTOOL"
17728
17729# Used on cygwin: object dumper.
17730OBJDUMP="$OBJDUMP"
17731
17732# Used on cygwin: assembler.
17733AS="$AS"
17734
17735# The name of the directory that contains temporary libtool files.
17736objdir=$objdir
17737
17738# How to create reloadable object files.
17739reload_flag=$lt_reload_flag
17740reload_cmds=$lt_reload_cmds
17741
17742# How to pass a linker flag through the compiler.
17743wl=$lt_lt_prog_compiler_wl_GCJ
17744
17745# Object file suffix (normally "o").
17746objext="$ac_objext"
17747
17748# Old archive suffix (normally "a").
17749libext="$libext"
17750
17751# Shared library suffix (normally ".so").
17752shrext='$shrext'
17753
17754# Executable file suffix (normally "").
17755exeext="$exeext"
17756
17757# Additional compiler flags for building library objects.
17758pic_flag=$lt_lt_prog_compiler_pic_GCJ
17759pic_mode=$pic_mode
17760
17761# What is the maximum length of a command?
17762max_cmd_len=$lt_cv_sys_max_cmd_len
17763
17764# Does compiler simultaneously support -c and -o options?
17765compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17766
17767# Must we lock files when doing compilation ?
17768need_locks=$lt_need_locks
17769
17770# Do we need the lib prefix for modules?
17771need_lib_prefix=$need_lib_prefix
17772
17773# Do we need a version for libraries?
17774need_version=$need_version
17775
17776# Whether dlopen is supported.
17777dlopen_support=$enable_dlopen
17778
17779# Whether dlopen of programs is supported.
17780dlopen_self=$enable_dlopen_self
17781
17782# Whether dlopen of statically linked programs is supported.
17783dlopen_self_static=$enable_dlopen_self_static
17784
17785# Compiler flag to prevent dynamic linking.
17786link_static_flag=$lt_lt_prog_compiler_static_GCJ
17787
17788# Compiler flag to turn off builtin functions.
17789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17790
17791# Compiler flag to allow reflexive dlopens.
17792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17793
17794# Compiler flag to generate shared objects directly from archives.
17795whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17796
17797# Compiler flag to generate thread-safe objects.
17798thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17799
17800# Library versioning type.
17801version_type=$version_type
17802
17803# Format of library name prefix.
17804libname_spec=$lt_libname_spec
17805
17806# List of archive names. First name is the real one, the rest are links.
17807# The last name is the one that the linker finds with -lNAME.
17808library_names_spec=$lt_library_names_spec
17809
17810# The coded name of the library, if different from the real name.
17811soname_spec=$lt_soname_spec
17812
17813# Commands used to build and install an old-style archive.
17814RANLIB=$lt_RANLIB
17815old_archive_cmds=$lt_old_archive_cmds_GCJ
17816old_postinstall_cmds=$lt_old_postinstall_cmds
17817old_postuninstall_cmds=$lt_old_postuninstall_cmds
17818
17819# Create an old-style archive from a shared archive.
17820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17821
17822# Create a temporary old-style archive to link instead of a shared archive.
17823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17824
17825# Commands used to build and install a shared archive.
17826archive_cmds=$lt_archive_cmds_GCJ
17827archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17828postinstall_cmds=$lt_postinstall_cmds
17829postuninstall_cmds=$lt_postuninstall_cmds
17830
17831# Commands used to build a loadable module (assumed same as above if empty)
17832module_cmds=$lt_module_cmds_GCJ
17833module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17834
17835# Commands to strip libraries.
17836old_striplib=$lt_old_striplib
17837striplib=$lt_striplib
17838
17839# Dependencies to place before the objects being linked to create a
17840# shared library.
17841predep_objects=$lt_predep_objects_GCJ
17842
17843# Dependencies to place after the objects being linked to create a
17844# shared library.
17845postdep_objects=$lt_postdep_objects_GCJ
17846
17847# Dependencies to place before the objects being linked to create a
17848# shared library.
17849predeps=$lt_predeps_GCJ
17850
17851# Dependencies to place after the objects being linked to create a
17852# shared library.
17853postdeps=$lt_postdeps_GCJ
17854
17855# The library search path used internally by the compiler when linking
17856# a shared library.
17857compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17858
17859# Method to check whether dependent libraries are shared objects.
17860deplibs_check_method=$lt_deplibs_check_method
17861
17862# Command to use when deplibs_check_method == file_magic.
17863file_magic_cmd=$lt_file_magic_cmd
17864
17865# Flag that allows shared libraries with undefined symbols to be built.
17866allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17867
17868# Flag that forces no undefined symbols.
17869no_undefined_flag=$lt_no_undefined_flag_GCJ
17870
17871# Commands used to finish a libtool library installation in a directory.
17872finish_cmds=$lt_finish_cmds
17873
17874# Same as above, but a single script fragment to be evaled but not shown.
17875finish_eval=$lt_finish_eval
17876
17877# Take the output of nm and produce a listing of raw symbols and C names.
17878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17879
17880# Transform the output of nm in a proper C declaration
17881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17882
17883# Transform the output of nm in a C name address pair
17884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17885
17886# This is the shared library runtime path variable.
17887runpath_var=$runpath_var
17888
17889# This is the shared library path variable.
17890shlibpath_var=$shlibpath_var
17891
17892# Is shlibpath searched before the hard-coded library search path?
17893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17894
17895# How to hardcode a shared library path into an executable.
17896hardcode_action=$hardcode_action_GCJ
17897
17898# Whether we should hardcode library paths into libraries.
17899hardcode_into_libs=$hardcode_into_libs
17900
17901# Flag to hardcode \$libdir into a binary during linking.
17902# This must work even if \$libdir does not exist.
17903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17904
17905# If ld is used when linking, flag to hardcode \$libdir into
17906# a binary during linking. This must work even if \$libdir does
17907# not exist.
17908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17909
17910# Whether we need a single -rpath flag with a separated argument.
17911hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17912
17913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17914# resulting binary.
17915hardcode_direct=$hardcode_direct_GCJ
17916
17917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17918# resulting binary.
17919hardcode_minus_L=$hardcode_minus_L_GCJ
17920
17921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17922# the resulting binary.
17923hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17924
17925# Set to yes if building a shared library automatically hardcodes DIR into the library
17926# and all subsequent libraries and executables linked against it.
17927hardcode_automatic=$hardcode_automatic_GCJ
17928
17929# Variables whose values should be saved in libtool wrapper scripts and
17930# restored at relink time.
17931variables_saved_for_relink="$variables_saved_for_relink"
17932
17933# Whether libtool must link a program against all its dependency libraries.
17934link_all_deplibs=$link_all_deplibs_GCJ
17935
17936# Compile-time system search path for libraries
17937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17938
17939# Run-time system search path for libraries
17940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17941
17942# Fix the shell variable \$srcfile for the compiler.
17943fix_srcfile_path="$fix_srcfile_path_GCJ"
17944
17945# Set to yes if exported symbols are required.
17946always_export_symbols=$always_export_symbols_GCJ
17947
17948# The commands to list exported symbols.
17949export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17950
17951# The commands to extract the exported symbol list from a shared archive.
17952extract_expsyms_cmds=$lt_extract_expsyms_cmds
17953
17954# Symbols that should not be listed in the preloaded symbols.
17955exclude_expsyms=$lt_exclude_expsyms_GCJ
17956
17957# Symbols that must always be exported.
17958include_expsyms=$lt_include_expsyms_GCJ
17959
17960# ### END LIBTOOL TAG CONFIG: $tagname
17961
17962__EOF__
17963
17964
17965else
17966 # If there is no Makefile yet, we rely on a make rule to execute
17967 # `config.status --recheck' to rerun these tests and create the
17968 # libtool script then.
17969 test -f Makefile && make "$ltmain"
17970fi
17971
17972
17973ac_ext=c
17974ac_cpp='$CPP $CPPFLAGS'
17975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17977ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978
17979CC="$lt_save_CC"
17980
17981 else
17982 tagname=""
17983 fi
17984 ;;
17985
17986 RC)
17987
17988
17989
17990# Source file extension for RC test sources.
17991ac_ext=rc
17992
17993# Object file extension for compiled RC test sources.
17994objext=o
17995objext_RC=$objext
17996
17997# Code to be used in simple compile tests
17998lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17999
18000# Code to be used in simple link tests
18001lt_simple_link_test_code="$lt_simple_compile_test_code"
18002
18003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18004
18005# If no C compiler was specified, use CC.
18006LTCC=${LTCC-"$CC"}
18007
18008# Allow CC to be a program name with arguments.
18009compiler=$CC
18010
18011
18012# Allow CC to be a program name with arguments.
18013lt_save_CC="$CC"
18014CC=${RC-"windres"}
18015compiler=$CC
18016compiler_RC=$CC
18017lt_cv_prog_compiler_c_o_RC=yes
18018
18019# The else clause should only fire when bootstrapping the
18020# libtool distribution, otherwise you forgot to ship ltmain.sh
18021# with your package, and you will get complaints that there are
18022# no rules to generate ltmain.sh.
18023if test -f "$ltmain"; then
18024 # See if we are running on zsh, and set the options which allow our commands through
18025 # without removal of \ escapes.
18026 if test -n "${ZSH_VERSION+set}" ; then
18027 setopt NO_GLOB_SUBST
18028 fi
18029 # Now quote all the things that may contain metacharacters while being
18030 # careful not to overquote the AC_SUBSTed values. We take copies of the
18031 # variables and quote the copies for generation of the libtool script.
18032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18035 deplibs_check_method reload_flag reload_cmds need_locks \
18036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18037 lt_cv_sys_global_symbol_to_c_name_address \
18038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18039 old_postinstall_cmds old_postuninstall_cmds \
18040 compiler_RC \
18041 CC_RC \
18042 LD_RC \
18043 lt_prog_compiler_wl_RC \
18044 lt_prog_compiler_pic_RC \
18045 lt_prog_compiler_static_RC \
18046 lt_prog_compiler_no_builtin_flag_RC \
18047 export_dynamic_flag_spec_RC \
18048 thread_safe_flag_spec_RC \
18049 whole_archive_flag_spec_RC \
18050 enable_shared_with_static_runtimes_RC \
18051 old_archive_cmds_RC \
18052 old_archive_from_new_cmds_RC \
18053 predep_objects_RC \
18054 postdep_objects_RC \
18055 predeps_RC \
18056 postdeps_RC \
18057 compiler_lib_search_path_RC \
18058 archive_cmds_RC \
18059 archive_expsym_cmds_RC \
18060 postinstall_cmds_RC \
18061 postuninstall_cmds_RC \
18062 old_archive_from_expsyms_cmds_RC \
18063 allow_undefined_flag_RC \
18064 no_undefined_flag_RC \
18065 export_symbols_cmds_RC \
18066 hardcode_libdir_flag_spec_RC \
18067 hardcode_libdir_flag_spec_ld_RC \
18068 hardcode_libdir_separator_RC \
18069 hardcode_automatic_RC \
18070 module_cmds_RC \
18071 module_expsym_cmds_RC \
18072 lt_cv_prog_compiler_c_o_RC \
18073 exclude_expsyms_RC \
18074 include_expsyms_RC; do
18075
18076 case $var in
18077 old_archive_cmds_RC | \
18078 old_archive_from_new_cmds_RC | \
18079 archive_cmds_RC | \
18080 archive_expsym_cmds_RC | \
18081 module_cmds_RC | \
18082 module_expsym_cmds_RC | \
18083 old_archive_from_expsyms_cmds_RC | \
18084 export_symbols_cmds_RC | \
18085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18086 postinstall_cmds | postuninstall_cmds | \
18087 old_postinstall_cmds | old_postuninstall_cmds | \
18088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18089 # Double-quote double-evaled strings.
18090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18091 ;;
18092 *)
18093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18094 ;;
18095 esac
18096 done
18097
18098 case $lt_echo in
18099 *'\$0 --fallback-echo"')
18100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18101 ;;
18102 esac
18103
18104cfgfile="$ofile"
18105
18106 cat <<__EOF__ >> "$cfgfile"
18107# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18108
18109# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18110
18111# Shell to use when invoking shell scripts.
18112SHELL=$lt_SHELL
18113
18114# Whether or not to build shared libraries.
18115build_libtool_libs=$enable_shared
18116
18117# Whether or not to build static libraries.
18118build_old_libs=$enable_static
18119
18120# Whether or not to add -lc for building shared libraries.
18121build_libtool_need_lc=$archive_cmds_need_lc_RC
18122
18123# Whether or not to disallow shared libs when runtime libs are static
18124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18125
18126# Whether or not to optimize for fast installation.
18127fast_install=$enable_fast_install
18128
18129# The host system.
18130host_alias=$host_alias
18131host=$host
18132
18133# An echo program that does not interpret backslashes.
18134echo=$lt_echo
18135
18136# The archiver.
18137AR=$lt_AR
18138AR_FLAGS=$lt_AR_FLAGS
18139
18140# A C compiler.
18141LTCC=$lt_LTCC
18142
18143# A language-specific compiler.
18144CC=$lt_compiler_RC
18145
18146# Is the compiler the GNU C compiler?
18147with_gcc=$GCC_RC
18148
18149# An ERE matcher.
18150EGREP=$lt_EGREP
18151
18152# The linker used to build libraries.
18153LD=$lt_LD_RC
18154
18155# Whether we need hard or soft links.
18156LN_S=$lt_LN_S
18157
18158# A BSD-compatible nm program.
18159NM=$lt_NM
18160
18161# A symbol stripping program
18162STRIP=$STRIP
18163
18164# Used to examine libraries when file_magic_cmd begins "file"
18165MAGIC_CMD=$MAGIC_CMD
18166
18167# Used on cygwin: DLL creation program.
18168DLLTOOL="$DLLTOOL"
18169
18170# Used on cygwin: object dumper.
18171OBJDUMP="$OBJDUMP"
18172
18173# Used on cygwin: assembler.
18174AS="$AS"
18175
18176# The name of the directory that contains temporary libtool files.
18177objdir=$objdir
18178
18179# How to create reloadable object files.
18180reload_flag=$lt_reload_flag
18181reload_cmds=$lt_reload_cmds
18182
18183# How to pass a linker flag through the compiler.
18184wl=$lt_lt_prog_compiler_wl_RC
18185
18186# Object file suffix (normally "o").
18187objext="$ac_objext"
18188
18189# Old archive suffix (normally "a").
18190libext="$libext"
18191
18192# Shared library suffix (normally ".so").
18193shrext='$shrext'
18194
18195# Executable file suffix (normally "").
18196exeext="$exeext"
18197
18198# Additional compiler flags for building library objects.
18199pic_flag=$lt_lt_prog_compiler_pic_RC
18200pic_mode=$pic_mode
18201
18202# What is the maximum length of a command?
18203max_cmd_len=$lt_cv_sys_max_cmd_len
18204
18205# Does compiler simultaneously support -c and -o options?
18206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18207
18208# Must we lock files when doing compilation ?
18209need_locks=$lt_need_locks
18210
18211# Do we need the lib prefix for modules?
18212need_lib_prefix=$need_lib_prefix
18213
18214# Do we need a version for libraries?
18215need_version=$need_version
18216
18217# Whether dlopen is supported.
18218dlopen_support=$enable_dlopen
18219
18220# Whether dlopen of programs is supported.
18221dlopen_self=$enable_dlopen_self
18222
18223# Whether dlopen of statically linked programs is supported.
18224dlopen_self_static=$enable_dlopen_self_static
18225
18226# Compiler flag to prevent dynamic linking.
18227link_static_flag=$lt_lt_prog_compiler_static_RC
18228
18229# Compiler flag to turn off builtin functions.
18230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18231
18232# Compiler flag to allow reflexive dlopens.
18233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18234
18235# Compiler flag to generate shared objects directly from archives.
18236whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18237
18238# Compiler flag to generate thread-safe objects.
18239thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18240
18241# Library versioning type.
18242version_type=$version_type
18243
18244# Format of library name prefix.
18245libname_spec=$lt_libname_spec
18246
18247# List of archive names. First name is the real one, the rest are links.
18248# The last name is the one that the linker finds with -lNAME.
18249library_names_spec=$lt_library_names_spec
18250
18251# The coded name of the library, if different from the real name.
18252soname_spec=$lt_soname_spec
18253
18254# Commands used to build and install an old-style archive.
18255RANLIB=$lt_RANLIB
18256old_archive_cmds=$lt_old_archive_cmds_RC
18257old_postinstall_cmds=$lt_old_postinstall_cmds
18258old_postuninstall_cmds=$lt_old_postuninstall_cmds
18259
18260# Create an old-style archive from a shared archive.
18261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18262
18263# Create a temporary old-style archive to link instead of a shared archive.
18264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18265
18266# Commands used to build and install a shared archive.
18267archive_cmds=$lt_archive_cmds_RC
18268archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18269postinstall_cmds=$lt_postinstall_cmds
18270postuninstall_cmds=$lt_postuninstall_cmds
18271
18272# Commands used to build a loadable module (assumed same as above if empty)
18273module_cmds=$lt_module_cmds_RC
18274module_expsym_cmds=$lt_module_expsym_cmds_RC
18275
18276# Commands to strip libraries.
18277old_striplib=$lt_old_striplib
18278striplib=$lt_striplib
18279
18280# Dependencies to place before the objects being linked to create a
18281# shared library.
18282predep_objects=$lt_predep_objects_RC
18283
18284# Dependencies to place after the objects being linked to create a
18285# shared library.
18286postdep_objects=$lt_postdep_objects_RC
18287
18288# Dependencies to place before the objects being linked to create a
18289# shared library.
18290predeps=$lt_predeps_RC
18291
18292# Dependencies to place after the objects being linked to create a
18293# shared library.
18294postdeps=$lt_postdeps_RC
18295
18296# The library search path used internally by the compiler when linking
18297# a shared library.
18298compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18299
18300# Method to check whether dependent libraries are shared objects.
18301deplibs_check_method=$lt_deplibs_check_method
18302
18303# Command to use when deplibs_check_method == file_magic.
18304file_magic_cmd=$lt_file_magic_cmd
18305
18306# Flag that allows shared libraries with undefined symbols to be built.
18307allow_undefined_flag=$lt_allow_undefined_flag_RC
18308
18309# Flag that forces no undefined symbols.
18310no_undefined_flag=$lt_no_undefined_flag_RC
18311
18312# Commands used to finish a libtool library installation in a directory.
18313finish_cmds=$lt_finish_cmds
18314
18315# Same as above, but a single script fragment to be evaled but not shown.
18316finish_eval=$lt_finish_eval
18317
18318# Take the output of nm and produce a listing of raw symbols and C names.
18319global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18320
18321# Transform the output of nm in a proper C declaration
18322global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18323
18324# Transform the output of nm in a C name address pair
18325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18326
18327# This is the shared library runtime path variable.
18328runpath_var=$runpath_var
18329
18330# This is the shared library path variable.
18331shlibpath_var=$shlibpath_var
18332
18333# Is shlibpath searched before the hard-coded library search path?
18334shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18335
18336# How to hardcode a shared library path into an executable.
18337hardcode_action=$hardcode_action_RC
18338
18339# Whether we should hardcode library paths into libraries.
18340hardcode_into_libs=$hardcode_into_libs
18341
18342# Flag to hardcode \$libdir into a binary during linking.
18343# This must work even if \$libdir does not exist.
18344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18345
18346# If ld is used when linking, flag to hardcode \$libdir into
18347# a binary during linking. This must work even if \$libdir does
18348# not exist.
18349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18350
18351# Whether we need a single -rpath flag with a separated argument.
18352hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18353
18354# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18355# resulting binary.
18356hardcode_direct=$hardcode_direct_RC
18357
18358# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18359# resulting binary.
18360hardcode_minus_L=$hardcode_minus_L_RC
18361
18362# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18363# the resulting binary.
18364hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18365
18366# Set to yes if building a shared library automatically hardcodes DIR into the library
18367# and all subsequent libraries and executables linked against it.
18368hardcode_automatic=$hardcode_automatic_RC
18369
18370# Variables whose values should be saved in libtool wrapper scripts and
18371# restored at relink time.
18372variables_saved_for_relink="$variables_saved_for_relink"
18373
18374# Whether libtool must link a program against all its dependency libraries.
18375link_all_deplibs=$link_all_deplibs_RC
18376
18377# Compile-time system search path for libraries
18378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18379
18380# Run-time system search path for libraries
18381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18382
18383# Fix the shell variable \$srcfile for the compiler.
18384fix_srcfile_path="$fix_srcfile_path_RC"
18385
18386# Set to yes if exported symbols are required.
18387always_export_symbols=$always_export_symbols_RC
18388
18389# The commands to list exported symbols.
18390export_symbols_cmds=$lt_export_symbols_cmds_RC
18391
18392# The commands to extract the exported symbol list from a shared archive.
18393extract_expsyms_cmds=$lt_extract_expsyms_cmds
18394
18395# Symbols that should not be listed in the preloaded symbols.
18396exclude_expsyms=$lt_exclude_expsyms_RC
18397
18398# Symbols that must always be exported.
18399include_expsyms=$lt_include_expsyms_RC
18400
18401# ### END LIBTOOL TAG CONFIG: $tagname
18402
18403__EOF__
18404
18405
18406else
18407 # If there is no Makefile yet, we rely on a make rule to execute
18408 # `config.status --recheck' to rerun these tests and create the
18409 # libtool script then.
18410 test -f Makefile && make "$ltmain"
18411fi
18412
18413
18414ac_ext=c
18415ac_cpp='$CPP $CPPFLAGS'
18416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418ac_compiler_gnu=$ac_cv_c_compiler_gnu
18419
18420CC="$lt_save_CC"
18421
18422 ;;
18423
18424 *)
18425 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18426echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18427 { (exit 1); exit 1; }; }
18428 ;;
18429 esac
18430
18431 # Append the new tag name to the list of available tags.
18432 if test -n "$tagname" ; then
18433 available_tags="$available_tags $tagname"
18434 fi
18435 fi
18436 done
18437 IFS="$lt_save_ifs"
18438
18439 # Now substitute the updated list of available tags.
18440 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18441 mv "${ofile}T" "$ofile"
18442 chmod +x "$ofile"
18443 else
18444 rm -f "${ofile}T"
18445 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18446echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18447 { (exit 1); exit 1; }; }
18448 fi
18449fi
John Criswell7a73b802003-06-30 21:59:07 +000018450
18451
18452
18453# This can be used to rebuild libtool when needed
18454LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18455
18456# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018457LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018458
18459# Prevent multiple expansion
18460
18461
18462
John Criswell47fdd832003-07-14 16:52:07 +000018463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
John Criswellde00db22003-08-25 16:49:54 +000018481# Extract the first word of "pwd", so it can be a program name with args.
18482set dummy pwd; ac_word=$2
18483echo "$as_me:$LINENO: checking for $ac_word" >&5
18484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18485if test "${ac_cv_path_RPWD+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 case $RPWD in
18489 [\\/]* | ?:[\\/]*)
18490 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18491 ;;
18492 *)
18493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18494for as_dir in $PATH
18495do
18496 IFS=$as_save_IFS
18497 test -z "$as_dir" && as_dir=.
18498 for ac_exec_ext in '' $ac_executable_extensions; do
18499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18500 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18502 break 2
18503 fi
18504done
18505done
18506
John Criswell39827c82003-09-23 15:28:52 +000018507 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018508 ;;
18509esac
18510fi
18511RPWD=$ac_cv_path_RPWD
18512
18513if test -n "$RPWD"; then
18514 echo "$as_me:$LINENO: result: $RPWD" >&5
18515echo "${ECHO_T}$RPWD" >&6
18516else
18517 echo "$as_me:$LINENO: result: no" >&5
18518echo "${ECHO_T}no" >&6
18519fi
18520
John Criswell39827c82003-09-23 15:28:52 +000018521if test ${RPWD} = "false"
18522then
18523 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18524echo "$as_me: error: pwd required but not found" >&2;}
18525 { (exit 1); exit 1; }; }
18526fi
18527
John Criswell7a73b802003-06-30 21:59:07 +000018528# Extract the first word of "ar", so it can be a program name with args.
18529set dummy ar; ac_word=$2
18530echo "$as_me:$LINENO: checking for $ac_word" >&5
18531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18532if test "${ac_cv_path_AR+set}" = set; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534else
18535 case $AR in
18536 [\\/]* | ?:[\\/]*)
18537 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18538 ;;
18539 *)
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541for as_dir in $PATH
18542do
18543 IFS=$as_save_IFS
18544 test -z "$as_dir" && as_dir=.
18545 for ac_exec_ext in '' $ac_executable_extensions; do
18546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18549 break 2
18550 fi
18551done
18552done
18553
John Criswell39827c82003-09-23 15:28:52 +000018554 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018555 ;;
18556esac
18557fi
18558AR=$ac_cv_path_AR
18559
18560if test -n "$AR"; then
18561 echo "$as_me:$LINENO: result: $AR" >&5
18562echo "${ECHO_T}$AR" >&6
18563else
18564 echo "$as_me:$LINENO: result: no" >&5
18565echo "${ECHO_T}no" >&6
18566fi
18567
John Criswell39827c82003-09-23 15:28:52 +000018568if test ${AR} = "false"
18569then
18570 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18571echo "$as_me: error: ar required but not found" >&2;}
18572 { (exit 1); exit 1; }; }
18573fi
18574
John Criswell7a73b802003-06-30 21:59:07 +000018575# Extract the first word of "sed", so it can be a program name with args.
18576set dummy sed; ac_word=$2
18577echo "$as_me:$LINENO: checking for $ac_word" >&5
18578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18579if test "${ac_cv_path_SED+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18581else
18582 case $SED in
18583 [\\/]* | ?:[\\/]*)
18584 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18585 ;;
18586 *)
18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588for as_dir in $PATH
18589do
18590 IFS=$as_save_IFS
18591 test -z "$as_dir" && as_dir=.
18592 for ac_exec_ext in '' $ac_executable_extensions; do
18593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18594 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18596 break 2
18597 fi
18598done
18599done
18600
John Criswell39827c82003-09-23 15:28:52 +000018601 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018602 ;;
18603esac
18604fi
18605SED=$ac_cv_path_SED
18606
18607if test -n "$SED"; then
18608 echo "$as_me:$LINENO: result: $SED" >&5
18609echo "${ECHO_T}$SED" >&6
18610else
18611 echo "$as_me:$LINENO: result: no" >&5
18612echo "${ECHO_T}no" >&6
18613fi
18614
John Criswell39827c82003-09-23 15:28:52 +000018615if test ${SED} = "false"
18616then
18617 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18618echo "$as_me: error: sed required but not found" >&2;}
18619 { (exit 1); exit 1; }; }
18620fi
18621
John Criswell7a73b802003-06-30 21:59:07 +000018622# Extract the first word of "rm", so it can be a program name with args.
18623set dummy rm; ac_word=$2
18624echo "$as_me:$LINENO: checking for $ac_word" >&5
18625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18626if test "${ac_cv_path_RM+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628else
18629 case $RM in
18630 [\\/]* | ?:[\\/]*)
18631 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18632 ;;
18633 *)
18634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18635for as_dir in $PATH
18636do
18637 IFS=$as_save_IFS
18638 test -z "$as_dir" && as_dir=.
18639 for ac_exec_ext in '' $ac_executable_extensions; do
18640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18641 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18643 break 2
18644 fi
18645done
18646done
18647
John Criswell39827c82003-09-23 15:28:52 +000018648 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018649 ;;
18650esac
18651fi
18652RM=$ac_cv_path_RM
18653
18654if test -n "$RM"; then
18655 echo "$as_me:$LINENO: result: $RM" >&5
18656echo "${ECHO_T}$RM" >&6
18657else
18658 echo "$as_me:$LINENO: result: no" >&5
18659echo "${ECHO_T}no" >&6
18660fi
18661
John Criswell39827c82003-09-23 15:28:52 +000018662if test ${RM} = "false"
18663then
18664 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18665echo "$as_me: error: rm required but not found" >&2;}
18666 { (exit 1); exit 1; }; }
18667fi
18668
John Criswell7a73b802003-06-30 21:59:07 +000018669# Extract the first word of "echo", so it can be a program name with args.
18670set dummy echo; ac_word=$2
18671echo "$as_me:$LINENO: checking for $ac_word" >&5
18672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673if test "${ac_cv_path_ECHO+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676 case $ECHO in
18677 [\\/]* | ?:[\\/]*)
18678 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18679 ;;
18680 *)
18681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682for as_dir in $PATH
18683do
18684 IFS=$as_save_IFS
18685 test -z "$as_dir" && as_dir=.
18686 for ac_exec_ext in '' $ac_executable_extensions; do
18687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18690 break 2
18691 fi
18692done
18693done
18694
John Criswell39827c82003-09-23 15:28:52 +000018695 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018696 ;;
18697esac
18698fi
18699ECHO=$ac_cv_path_ECHO
18700
18701if test -n "$ECHO"; then
18702 echo "$as_me:$LINENO: result: $ECHO" >&5
18703echo "${ECHO_T}$ECHO" >&6
18704else
18705 echo "$as_me:$LINENO: result: no" >&5
18706echo "${ECHO_T}no" >&6
18707fi
18708
John Criswell39827c82003-09-23 15:28:52 +000018709if test ${ECHO} = "false"
18710then
18711 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18712echo "$as_me: error: echo required but not found" >&2;}
18713 { (exit 1); exit 1; }; }
18714fi
18715
John Criswell7a73b802003-06-30 21:59:07 +000018716# Extract the first word of "mkdir", so it can be a program name with args.
18717set dummy mkdir; ac_word=$2
18718echo "$as_me:$LINENO: checking for $ac_word" >&5
18719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18720if test "${ac_cv_path_MKDIR+set}" = set; then
18721 echo $ECHO_N "(cached) $ECHO_C" >&6
18722else
18723 case $MKDIR in
18724 [\\/]* | ?:[\\/]*)
18725 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18726 ;;
18727 *)
18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729for as_dir in $PATH
18730do
18731 IFS=$as_save_IFS
18732 test -z "$as_dir" && as_dir=.
18733 for ac_exec_ext in '' $ac_executable_extensions; do
18734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18735 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18737 break 2
18738 fi
18739done
18740done
18741
John Criswell39827c82003-09-23 15:28:52 +000018742 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018743 ;;
18744esac
18745fi
18746MKDIR=$ac_cv_path_MKDIR
18747
18748if test -n "$MKDIR"; then
18749 echo "$as_me:$LINENO: result: $MKDIR" >&5
18750echo "${ECHO_T}$MKDIR" >&6
18751else
18752 echo "$as_me:$LINENO: result: no" >&5
18753echo "${ECHO_T}no" >&6
18754fi
18755
John Criswell39827c82003-09-23 15:28:52 +000018756if test ${MKDIR} = "false"
18757then
18758 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18759echo "$as_me: error: mkdir required but not found" >&2;}
18760 { (exit 1); exit 1; }; }
18761fi
18762
John Criswell7a73b802003-06-30 21:59:07 +000018763# Extract the first word of "date", so it can be a program name with args.
18764set dummy date; ac_word=$2
18765echo "$as_me:$LINENO: checking for $ac_word" >&5
18766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18767if test "${ac_cv_path_DATE+set}" = set; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18769else
18770 case $DATE in
18771 [\\/]* | ?:[\\/]*)
18772 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18773 ;;
18774 *)
18775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18776for as_dir in $PATH
18777do
18778 IFS=$as_save_IFS
18779 test -z "$as_dir" && as_dir=.
18780 for ac_exec_ext in '' $ac_executable_extensions; do
18781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18782 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18784 break 2
18785 fi
18786done
18787done
18788
John Criswell39827c82003-09-23 15:28:52 +000018789 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018790 ;;
18791esac
18792fi
18793DATE=$ac_cv_path_DATE
18794
18795if test -n "$DATE"; then
18796 echo "$as_me:$LINENO: result: $DATE" >&5
18797echo "${ECHO_T}$DATE" >&6
18798else
18799 echo "$as_me:$LINENO: result: no" >&5
18800echo "${ECHO_T}no" >&6
18801fi
18802
John Criswell39827c82003-09-23 15:28:52 +000018803if test ${DATE} = "false"
18804then
18805 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18806echo "$as_me: error: date required but not found" >&2;}
18807 { (exit 1); exit 1; }; }
18808fi
18809
John Criswell7a73b802003-06-30 21:59:07 +000018810# Extract the first word of "mv", so it can be a program name with args.
18811set dummy mv; ac_word=$2
18812echo "$as_me:$LINENO: checking for $ac_word" >&5
18813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18814if test "${ac_cv_path_MV+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816else
18817 case $MV in
18818 [\\/]* | ?:[\\/]*)
18819 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18820 ;;
18821 *)
18822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18823for as_dir in $PATH
18824do
18825 IFS=$as_save_IFS
18826 test -z "$as_dir" && as_dir=.
18827 for ac_exec_ext in '' $ac_executable_extensions; do
18828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18829 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18831 break 2
18832 fi
18833done
18834done
18835
John Criswell39827c82003-09-23 15:28:52 +000018836 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018837 ;;
18838esac
18839fi
18840MV=$ac_cv_path_MV
18841
18842if test -n "$MV"; then
18843 echo "$as_me:$LINENO: result: $MV" >&5
18844echo "${ECHO_T}$MV" >&6
18845else
18846 echo "$as_me:$LINENO: result: no" >&5
18847echo "${ECHO_T}no" >&6
18848fi
18849
John Criswell39827c82003-09-23 15:28:52 +000018850if test ${MV} = "false"
18851then
18852 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18853echo "$as_me: error: mv required but not found" >&2;}
18854 { (exit 1); exit 1; }; }
18855fi
18856
John Criswell7a73b802003-06-30 21:59:07 +000018857# Extract the first word of "dot", so it can be a program name with args.
18858set dummy dot; ac_word=$2
18859echo "$as_me:$LINENO: checking for $ac_word" >&5
18860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861if test "${ac_cv_path_DOT+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18863else
18864 case $DOT in
18865 [\\/]* | ?:[\\/]*)
18866 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18867 ;;
18868 *)
18869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870for as_dir in $PATH
18871do
18872 IFS=$as_save_IFS
18873 test -z "$as_dir" && as_dir=.
18874 for ac_exec_ext in '' $ac_executable_extensions; do
18875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18878 break 2
18879 fi
18880done
18881done
18882
John Criswell39827c82003-09-23 15:28:52 +000018883 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018884 ;;
18885esac
18886fi
18887DOT=$ac_cv_path_DOT
18888
18889if test -n "$DOT"; then
18890 echo "$as_me:$LINENO: result: $DOT" >&5
18891echo "${ECHO_T}$DOT" >&6
18892else
18893 echo "$as_me:$LINENO: result: no" >&5
18894echo "${ECHO_T}no" >&6
18895fi
18896
John Criswell39827c82003-09-23 15:28:52 +000018897
John Criswell7a73b802003-06-30 21:59:07 +000018898# Extract the first word of "etags", so it can be a program name with args.
18899set dummy etags; ac_word=$2
18900echo "$as_me:$LINENO: checking for $ac_word" >&5
18901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18902if test "${ac_cv_path_ETAGS+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905 case $ETAGS in
18906 [\\/]* | ?:[\\/]*)
18907 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18908 ;;
18909 *)
18910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18911for as_dir in $PATH
18912do
18913 IFS=$as_save_IFS
18914 test -z "$as_dir" && as_dir=.
18915 for ac_exec_ext in '' $ac_executable_extensions; do
18916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18917 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18919 break 2
18920 fi
18921done
18922done
18923
John Criswell39827c82003-09-23 15:28:52 +000018924 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018925 ;;
18926esac
18927fi
18928ETAGS=$ac_cv_path_ETAGS
18929
18930if test -n "$ETAGS"; then
18931 echo "$as_me:$LINENO: result: $ETAGS" >&5
18932echo "${ECHO_T}$ETAGS" >&6
18933else
18934 echo "$as_me:$LINENO: result: no" >&5
18935echo "${ECHO_T}no" >&6
18936fi
18937
John Criswell39827c82003-09-23 15:28:52 +000018938
John Criswell7a73b802003-06-30 21:59:07 +000018939# Extract the first word of "purify", so it can be a program name with args.
18940set dummy purify; ac_word=$2
18941echo "$as_me:$LINENO: checking for $ac_word" >&5
18942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18943if test "${ac_cv_path_PURIFY+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 case $PURIFY in
18947 [\\/]* | ?:[\\/]*)
18948 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18949 ;;
18950 *)
18951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18952for as_dir in $PATH
18953do
18954 IFS=$as_save_IFS
18955 test -z "$as_dir" && as_dir=.
18956 for ac_exec_ext in '' $ac_executable_extensions; do
18957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18958 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18960 break 2
18961 fi
18962done
18963done
18964
John Criswell39827c82003-09-23 15:28:52 +000018965 test -z "$ac_cv_path_PURIFY" && ac_cv_path_PURIFY="false"
John Criswell7a73b802003-06-30 21:59:07 +000018966 ;;
18967esac
18968fi
18969PURIFY=$ac_cv_path_PURIFY
18970
18971if test -n "$PURIFY"; then
18972 echo "$as_me:$LINENO: result: $PURIFY" >&5
18973echo "${ECHO_T}$PURIFY" >&6
18974else
18975 echo "$as_me:$LINENO: result: no" >&5
18976echo "${ECHO_T}no" >&6
18977fi
18978
John Criswell39827c82003-09-23 15:28:52 +000018979
John Criswellde00db22003-08-25 16:49:54 +000018980# Extract the first word of "python", so it can be a program name with args.
18981set dummy python; ac_word=$2
18982echo "$as_me:$LINENO: checking for $ac_word" >&5
18983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18984if test "${ac_cv_path_PYTHON+set}" = set; then
18985 echo $ECHO_N "(cached) $ECHO_C" >&6
18986else
18987 case $PYTHON in
18988 [\\/]* | ?:[\\/]*)
18989 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18990 ;;
18991 *)
18992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18993for as_dir in $PATH
18994do
18995 IFS=$as_save_IFS
18996 test -z "$as_dir" && as_dir=.
18997 for ac_exec_ext in '' $ac_executable_extensions; do
18998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18999 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19001 break 2
19002 fi
19003done
19004done
19005
John Criswell39827c82003-09-23 15:28:52 +000019006 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000019007 ;;
19008esac
19009fi
19010PYTHON=$ac_cv_path_PYTHON
19011
19012if test -n "$PYTHON"; then
19013 echo "$as_me:$LINENO: result: $PYTHON" >&5
19014echo "${ECHO_T}$PYTHON" >&6
19015else
19016 echo "$as_me:$LINENO: result: no" >&5
19017echo "${ECHO_T}no" >&6
19018fi
19019
John Criswell39827c82003-09-23 15:28:52 +000019020if test ${PYTHON} = "false"
19021then
John Criswell61095982003-09-23 20:46:32 +000019022 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
19023echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019024fi
19025
John Criswellde00db22003-08-25 16:49:54 +000019026# Extract the first word of "qmtest", so it can be a program name with args.
19027set dummy qmtest; ac_word=$2
19028echo "$as_me:$LINENO: checking for $ac_word" >&5
19029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19030if test "${ac_cv_path_QMTEST+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032else
19033 case $QMTEST in
19034 [\\/]* | ?:[\\/]*)
19035 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19036 ;;
19037 *)
19038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19039for as_dir in $PATH
19040do
19041 IFS=$as_save_IFS
19042 test -z "$as_dir" && as_dir=.
19043 for ac_exec_ext in '' $ac_executable_extensions; do
19044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19045 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19047 break 2
19048 fi
19049done
19050done
19051
John Criswell39827c82003-09-23 15:28:52 +000019052 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000019053 ;;
19054esac
19055fi
19056QMTEST=$ac_cv_path_QMTEST
19057
19058if test -n "$QMTEST"; then
19059 echo "$as_me:$LINENO: result: $QMTEST" >&5
19060echo "${ECHO_T}$QMTEST" >&6
19061else
19062 echo "$as_me:$LINENO: result: no" >&5
19063echo "${ECHO_T}no" >&6
19064fi
19065
John Criswell39827c82003-09-23 15:28:52 +000019066if test ${QMTEST} = "false"
19067then
John Criswell61095982003-09-23 20:46:32 +000019068 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19069echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019070fi
John Criswellde00db22003-08-25 16:49:54 +000019071
19072pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19073pymajor=`echo $pyversion | cut -d. -f1`
19074pyminor=`echo $pyversion | cut -d. -f2`
19075
19076if test "$pymajor" -ge "2"
19077then
19078 if test "$pymajor" -eq "2"
19079 then
19080 if test "$pyminor" -lt "2"
19081 then
19082 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19083echo "$as_me: error: Python 2.2 or greater required" >&2;}
19084 { (exit 1); exit 1; }; }
19085 fi
19086 fi
19087else
19088 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19089echo "$as_me: error: Python 2.2 or greater required" >&2;}
19090 { (exit 1); exit 1; }; }
19091fi
John Criswell7a73b802003-06-30 21:59:07 +000019092
19093
19094
19095
19096
19097echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19098echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19099if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101else
19102 ac_check_lib_save_LIBS=$LIBS
19103LIBS="-lelf $LIBS"
19104cat >conftest.$ac_ext <<_ACEOF
19105#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019106/* confdefs.h. */
19107_ACEOF
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019111
19112/* Override any gcc2 internal prototype to avoid an error. */
19113#ifdef __cplusplus
19114extern "C"
19115#endif
19116/* We use char because int might match the return type of a gcc2
19117 builtin and then its argument prototype would still apply. */
19118char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019119int
19120main ()
19121{
19122elf_begin ();
19123 ;
19124 return 0;
19125}
19126_ACEOF
19127rm -f conftest.$ac_objext conftest$ac_exeext
19128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129 (eval $ac_link) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
19133 { ac_try='test -s conftest$ac_exeext'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; }; then
19139 ac_cv_lib_elf_elf_begin=yes
19140else
19141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019142sed 's/^/| /' conftest.$ac_ext >&5
19143
John Criswell7a73b802003-06-30 21:59:07 +000019144ac_cv_lib_elf_elf_begin=no
19145fi
19146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19147LIBS=$ac_check_lib_save_LIBS
19148fi
19149echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19150echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19151if test $ac_cv_lib_elf_elf_begin = yes; then
19152 cat >>confdefs.h <<_ACEOF
19153#define HAVE_LIBELF 1
19154_ACEOF
19155
19156 LIBS="-lelf $LIBS"
19157
19158fi
19159
19160
19161echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19162echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19163if test "${ac_cv_search_dlopen+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19165else
19166 ac_func_search_save_LIBS=$LIBS
19167ac_cv_search_dlopen=no
19168cat >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="none required"
19204else
19205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019206sed 's/^/| /' conftest.$ac_ext >&5
19207
John Criswell7a73b802003-06-30 21:59:07 +000019208fi
19209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19210if test "$ac_cv_search_dlopen" = no; then
19211 for ac_lib in dl; do
19212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19213 cat >conftest.$ac_ext <<_ACEOF
19214#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019220
19221/* Override any gcc2 internal prototype to avoid an error. */
19222#ifdef __cplusplus
19223extern "C"
19224#endif
19225/* We use char because int might match the return type of a gcc2
19226 builtin and then its argument prototype would still apply. */
19227char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019228int
19229main ()
19230{
19231dlopen ();
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext conftest$ac_exeext
19237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19238 (eval $ac_link) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } &&
19242 { ac_try='test -s conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_search_dlopen="-l$ac_lib"
19249break
19250else
19251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019252sed 's/^/| /' conftest.$ac_ext >&5
19253
John Criswell7a73b802003-06-30 21:59:07 +000019254fi
19255rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19256 done
19257fi
19258LIBS=$ac_func_search_save_LIBS
19259fi
19260echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19261echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19262if test "$ac_cv_search_dlopen" != no; then
19263 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19264
19265else
19266 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
19267echo "$as_me: error: dlopen() required but not found" >&2;}
19268 { (exit 1); exit 1; }; }
19269fi
19270
19271
19272echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19273echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19274if test "${ac_cv_search_mallinfo+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19276else
19277 ac_func_search_save_LIBS=$LIBS
19278ac_cv_search_mallinfo=no
19279cat >conftest.$ac_ext <<_ACEOF
19280#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019286
19287/* Override any gcc2 internal prototype to avoid an error. */
19288#ifdef __cplusplus
19289extern "C"
19290#endif
19291/* We use char because int might match the return type of a gcc2
19292 builtin and then its argument prototype would still apply. */
19293char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019294int
19295main ()
19296{
19297mallinfo ();
19298 ;
19299 return 0;
19300}
19301_ACEOF
19302rm -f conftest.$ac_objext conftest$ac_exeext
19303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19314 ac_cv_search_mallinfo="none required"
19315else
19316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019317sed 's/^/| /' conftest.$ac_ext >&5
19318
John Criswell7a73b802003-06-30 21:59:07 +000019319fi
19320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19321if test "$ac_cv_search_mallinfo" = no; then
19322 for ac_lib in malloc; do
19323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19324 cat >conftest.$ac_ext <<_ACEOF
19325#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019331
19332/* Override any gcc2 internal prototype to avoid an error. */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336/* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019339int
19340main ()
19341{
19342mallinfo ();
19343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
19353 { ac_try='test -s conftest$ac_exeext'
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; }; then
19359 ac_cv_search_mallinfo="-l$ac_lib"
19360break
19361else
19362 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019363sed 's/^/| /' conftest.$ac_ext >&5
19364
John Criswell7a73b802003-06-30 21:59:07 +000019365fi
19366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19367 done
19368fi
19369LIBS=$ac_func_search_save_LIBS
19370fi
19371echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19372echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19373if test "$ac_cv_search_mallinfo" != no; then
19374 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19375 cat >>confdefs.h <<\_ACEOF
19376#define HAVE_MALLINFO 1
19377_ACEOF
19378
19379fi
19380
19381
19382
19383echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19384echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19385if test "${ac_cv_header_stdc+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387else
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 <stdlib.h>
19396#include <stdarg.h>
19397#include <string.h>
19398#include <float.h>
19399
John Criswell0c38eaf2003-09-10 15:17:25 +000019400int
19401main ()
19402{
19403
19404 ;
19405 return 0;
19406}
John Criswell7a73b802003-06-30 21:59:07 +000019407_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019408rm -f conftest.$ac_objext
19409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019411 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019413 (exit $ac_status); } &&
19414 { ac_try='test -s conftest.$ac_objext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019420 ac_cv_header_stdc=yes
19421else
19422 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019426fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019427rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019428
19429if test $ac_cv_header_stdc = yes; then
19430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19431 cat >conftest.$ac_ext <<_ACEOF
19432#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019438#include <string.h>
19439
19440_ACEOF
19441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019442 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019443 :
19444else
19445 ac_cv_header_stdc=no
19446fi
19447rm -f conftest*
19448
19449fi
19450
19451if test $ac_cv_header_stdc = yes; then
19452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19453 cat >conftest.$ac_ext <<_ACEOF
19454#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019455/* confdefs.h. */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019460#include <stdlib.h>
19461
19462_ACEOF
19463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019464 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019465 :
19466else
19467 ac_cv_header_stdc=no
19468fi
19469rm -f conftest*
19470
19471fi
19472
19473if test $ac_cv_header_stdc = yes; then
19474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19475 if test "$cross_compiling" = yes; then
19476 :
19477else
19478 cat >conftest.$ac_ext <<_ACEOF
19479#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019485#include <ctype.h>
19486#if ((' ' & 0x0FF) == 0x020)
19487# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19488# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19489#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019490# define ISLOWER(c) \
19491 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019492 || ('j' <= (c) && (c) <= 'r') \
19493 || ('s' <= (c) && (c) <= 'z'))
19494# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19495#endif
19496
19497#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19498int
19499main ()
19500{
19501 int i;
19502 for (i = 0; i < 256; i++)
19503 if (XOR (islower (i), ISLOWER (i))
19504 || toupper (i) != TOUPPER (i))
19505 exit(2);
19506 exit (0);
19507}
19508_ACEOF
19509rm -f conftest$ac_exeext
19510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 :
19521else
19522 echo "$as_me: program exited with status $ac_status" >&5
19523echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019524sed 's/^/| /' conftest.$ac_ext >&5
19525
John Criswell7a73b802003-06-30 21:59:07 +000019526( exit $ac_status )
19527ac_cv_header_stdc=no
19528fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019529rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019530fi
19531fi
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19534echo "${ECHO_T}$ac_cv_header_stdc" >&6
19535if test $ac_cv_header_stdc = yes; then
19536
19537cat >>confdefs.h <<\_ACEOF
19538#define STDC_HEADERS 1
19539_ACEOF
19540
19541fi
19542
19543echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19544echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19545if test "${ac_cv_header_sys_wait_h+set}" = set; then
19546 echo $ECHO_N "(cached) $ECHO_C" >&6
19547else
19548 cat >conftest.$ac_ext <<_ACEOF
19549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019550/* confdefs.h. */
19551_ACEOF
19552cat confdefs.h >>conftest.$ac_ext
19553cat >>conftest.$ac_ext <<_ACEOF
19554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019555#include <sys/types.h>
19556#include <sys/wait.h>
19557#ifndef WEXITSTATUS
19558# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19559#endif
19560#ifndef WIFEXITED
19561# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19562#endif
19563
John Criswell7a73b802003-06-30 21:59:07 +000019564int
19565main ()
19566{
19567 int s;
19568 wait (&s);
19569 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -s conftest.$ac_objext'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_header_sys_wait_h=yes
19587else
19588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019589sed 's/^/| /' conftest.$ac_ext >&5
19590
John Criswell7a73b802003-06-30 21:59:07 +000019591ac_cv_header_sys_wait_h=no
19592fi
19593rm -f conftest.$ac_objext conftest.$ac_ext
19594fi
19595echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19596echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19597if test $ac_cv_header_sys_wait_h = yes; then
19598
19599cat >>confdefs.h <<\_ACEOF
19600#define HAVE_SYS_WAIT_H 1
19601_ACEOF
19602
19603fi
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19615do
19616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618 echo "$as_me:$LINENO: checking for $ac_header" >&5
19619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19620if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622fi
19623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19625else
19626 # Is the header compilable?
19627echo "$as_me:$LINENO: checking $ac_header usability" >&5
19628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19629cat >conftest.$ac_ext <<_ACEOF
19630#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019631/* confdefs.h. */
19632_ACEOF
19633cat confdefs.h >>conftest.$ac_ext
19634cat >>conftest.$ac_ext <<_ACEOF
19635/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019636$ac_includes_default
19637#include <$ac_header>
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -s conftest.$ac_objext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_header_compiler=yes
19652else
19653 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019654sed 's/^/| /' conftest.$ac_ext >&5
19655
John Criswell7a73b802003-06-30 21:59:07 +000019656ac_header_compiler=no
19657fi
19658rm -f conftest.$ac_objext conftest.$ac_ext
19659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19660echo "${ECHO_T}$ac_header_compiler" >&6
19661
19662# Is the header present?
19663echo "$as_me:$LINENO: checking $ac_header presence" >&5
19664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19665cat >conftest.$ac_ext <<_ACEOF
19666#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019672#include <$ac_header>
19673_ACEOF
19674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19676 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019677 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } >/dev/null; then
19682 if test -s conftest.err; then
19683 ac_cpp_err=$ac_c_preproc_warn_flag
19684 else
19685 ac_cpp_err=
19686 fi
19687else
19688 ac_cpp_err=yes
19689fi
19690if test -z "$ac_cpp_err"; then
19691 ac_header_preproc=yes
19692else
19693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019694sed 's/^/| /' conftest.$ac_ext >&5
19695
John Criswell7a73b802003-06-30 21:59:07 +000019696 ac_header_preproc=no
19697fi
19698rm -f conftest.err conftest.$ac_ext
19699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19700echo "${ECHO_T}$ac_header_preproc" >&6
19701
19702# So? What about this header?
19703case $ac_header_compiler:$ac_header_preproc in
19704 yes:no )
19705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19709 (
19710 cat <<\_ASBOX
19711## ------------------------------------ ##
19712## Report this to bug-autoconf@gnu.org. ##
19713## ------------------------------------ ##
19714_ASBOX
19715 ) |
19716 sed "s/^/$as_me: WARNING: /" >&2
19717 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019718 no:yes )
19719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19725 (
19726 cat <<\_ASBOX
19727## ------------------------------------ ##
19728## Report this to bug-autoconf@gnu.org. ##
19729## ------------------------------------ ##
19730_ASBOX
19731 ) |
19732 sed "s/^/$as_me: WARNING: /" >&2
19733 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019734esac
19735echo "$as_me:$LINENO: checking for $ac_header" >&5
19736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738 echo $ECHO_N "(cached) $ECHO_C" >&6
19739else
19740 eval "$as_ac_Header=$ac_header_preproc"
19741fi
19742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744
19745fi
19746if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19749_ACEOF
19750
19751fi
19752
19753done
19754
19755
19756
19757
19758
19759
19760for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19761do
19762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19763if eval "test \"\${$as_ac_Header+set}\" = set"; then
19764 echo "$as_me:$LINENO: checking for $ac_header" >&5
19765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19766if eval "test \"\${$as_ac_Header+set}\" = set"; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768fi
19769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19771else
19772 # Is the header compilable?
19773echo "$as_me:$LINENO: checking $ac_header usability" >&5
19774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19775cat >conftest.$ac_ext <<_ACEOF
19776#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019782$ac_includes_default
19783#include <$ac_header>
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } &&
19791 { ac_try='test -s conftest.$ac_objext'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_header_compiler=yes
19798else
19799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019800sed 's/^/| /' conftest.$ac_ext >&5
19801
John Criswell7a73b802003-06-30 21:59:07 +000019802ac_header_compiler=no
19803fi
19804rm -f conftest.$ac_objext conftest.$ac_ext
19805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19806echo "${ECHO_T}$ac_header_compiler" >&6
19807
19808# Is the header present?
19809echo "$as_me:$LINENO: checking $ac_header presence" >&5
19810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19811cat >conftest.$ac_ext <<_ACEOF
19812#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019813/* confdefs.h. */
19814_ACEOF
19815cat confdefs.h >>conftest.$ac_ext
19816cat >>conftest.$ac_ext <<_ACEOF
19817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019818#include <$ac_header>
19819_ACEOF
19820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19822 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019823 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } >/dev/null; then
19828 if test -s conftest.err; then
19829 ac_cpp_err=$ac_c_preproc_warn_flag
19830 else
19831 ac_cpp_err=
19832 fi
19833else
19834 ac_cpp_err=yes
19835fi
19836if test -z "$ac_cpp_err"; then
19837 ac_header_preproc=yes
19838else
19839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019840sed 's/^/| /' conftest.$ac_ext >&5
19841
John Criswell7a73b802003-06-30 21:59:07 +000019842 ac_header_preproc=no
19843fi
19844rm -f conftest.err conftest.$ac_ext
19845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19846echo "${ECHO_T}$ac_header_preproc" >&6
19847
19848# So? What about this header?
19849case $ac_header_compiler:$ac_header_preproc in
19850 yes:no )
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19855 (
19856 cat <<\_ASBOX
19857## ------------------------------------ ##
19858## Report this to bug-autoconf@gnu.org. ##
19859## ------------------------------------ ##
19860_ASBOX
19861 ) |
19862 sed "s/^/$as_me: WARNING: /" >&2
19863 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019864 no:yes )
19865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019870echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19871 (
19872 cat <<\_ASBOX
19873## ------------------------------------ ##
19874## Report this to bug-autoconf@gnu.org. ##
19875## ------------------------------------ ##
19876_ASBOX
19877 ) |
19878 sed "s/^/$as_me: WARNING: /" >&2
19879 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019880esac
19881echo "$as_me:$LINENO: checking for $ac_header" >&5
19882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19883if eval "test \"\${$as_ac_Header+set}\" = set"; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885else
19886 eval "$as_ac_Header=$ac_header_preproc"
19887fi
19888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19890
19891fi
19892if test `eval echo '${'$as_ac_Header'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19895_ACEOF
19896
19897fi
19898
19899done
19900
19901
19902
19903
19904for ac_header in dlfcn.h link.h
19905do
19906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19907if eval "test \"\${$as_ac_Header+set}\" = set"; then
19908 echo "$as_me:$LINENO: checking for $ac_header" >&5
19909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19910if eval "test \"\${$as_ac_Header+set}\" = set"; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912fi
19913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19915else
19916 # Is the header compilable?
19917echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19919cat >conftest.$ac_ext <<_ACEOF
19920#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019926$ac_includes_default
19927#include <$ac_header>
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_header_compiler=yes
19942else
19943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019944sed 's/^/| /' conftest.$ac_ext >&5
19945
John Criswell7a73b802003-06-30 21:59:07 +000019946ac_header_compiler=no
19947fi
19948rm -f conftest.$ac_objext conftest.$ac_ext
19949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19950echo "${ECHO_T}$ac_header_compiler" >&6
19951
19952# Is the header present?
19953echo "$as_me:$LINENO: checking $ac_header presence" >&5
19954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19955cat >conftest.$ac_ext <<_ACEOF
19956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019962#include <$ac_header>
19963_ACEOF
19964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19966 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019967 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } >/dev/null; then
19972 if test -s conftest.err; then
19973 ac_cpp_err=$ac_c_preproc_warn_flag
19974 else
19975 ac_cpp_err=
19976 fi
19977else
19978 ac_cpp_err=yes
19979fi
19980if test -z "$ac_cpp_err"; then
19981 ac_header_preproc=yes
19982else
19983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019984sed 's/^/| /' conftest.$ac_ext >&5
19985
John Criswell7a73b802003-06-30 21:59:07 +000019986 ac_header_preproc=no
19987fi
19988rm -f conftest.err conftest.$ac_ext
19989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19990echo "${ECHO_T}$ac_header_preproc" >&6
19991
19992# So? What about this header?
19993case $ac_header_compiler:$ac_header_preproc in
19994 yes:no )
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019998echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19999 (
20000 cat <<\_ASBOX
20001## ------------------------------------ ##
20002## Report this to bug-autoconf@gnu.org. ##
20003## ------------------------------------ ##
20004_ASBOX
20005 ) |
20006 sed "s/^/$as_me: WARNING: /" >&2
20007 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020008 no:yes )
20009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20015 (
20016 cat <<\_ASBOX
20017## ------------------------------------ ##
20018## Report this to bug-autoconf@gnu.org. ##
20019## ------------------------------------ ##
20020_ASBOX
20021 ) |
20022 sed "s/^/$as_me: WARNING: /" >&2
20023 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020024esac
20025echo "$as_me:$LINENO: checking for $ac_header" >&5
20026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20027if eval "test \"\${$as_ac_Header+set}\" = set"; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029else
20030 eval "$as_ac_Header=$ac_header_preproc"
20031fi
20032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20034
20035fi
20036if test `eval echo '${'$as_ac_Header'}'` = yes; then
20037 cat >>confdefs.h <<_ACEOF
20038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20039_ACEOF
20040
20041fi
20042
20043done
20044
20045
20046
John Criswell7a73b802003-06-30 21:59:07 +000020047echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20048echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20049if test "${ac_cv_c_const+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20051else
20052 cat >conftest.$ac_ext <<_ACEOF
20053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020059
John Criswell7a73b802003-06-30 21:59:07 +000020060int
20061main ()
20062{
20063/* FIXME: Include the comments suggested by Paul. */
20064#ifndef __cplusplus
20065 /* Ultrix mips cc rejects this. */
20066 typedef int charset[2];
20067 const charset x;
20068 /* SunOS 4.1.1 cc rejects this. */
20069 char const *const *ccp;
20070 char **p;
20071 /* NEC SVR4.0.2 mips cc rejects this. */
20072 struct point {int x, y;};
20073 static struct point const zero = {0,0};
20074 /* AIX XL C 1.02.0.0 rejects this.
20075 It does not let you subtract one const X* pointer from another in
20076 an arm of an if-expression whose if-part is not a constant
20077 expression */
20078 const char *g = "string";
20079 ccp = &g + (g ? g-g : 0);
20080 /* HPUX 7.0 cc rejects these. */
20081 ++ccp;
20082 p = (char**) ccp;
20083 ccp = (char const *const *) p;
20084 { /* SCO 3.2v4 cc rejects this. */
20085 char *t;
20086 char const *s = 0 ? (char *) 0 : (char const *) 0;
20087
20088 *t++ = 0;
20089 }
20090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20091 int x[] = {25, 17};
20092 const int *foo = &x[0];
20093 ++foo;
20094 }
20095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20096 typedef const int *iptr;
20097 iptr p = 0;
20098 ++p;
20099 }
20100 { /* AIX XL C 1.02.0.0 rejects this saying
20101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20102 struct s { int j; const int *ap[3]; };
20103 struct s *b; b->j = 5;
20104 }
20105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20106 const int foo = 10;
20107 }
20108#endif
20109
20110 ;
20111 return 0;
20112}
20113_ACEOF
20114rm -f conftest.$ac_objext
20115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116 (eval $ac_compile) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -s conftest.$ac_objext'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; }; then
20126 ac_cv_c_const=yes
20127else
20128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020129sed 's/^/| /' conftest.$ac_ext >&5
20130
John Criswell7a73b802003-06-30 21:59:07 +000020131ac_cv_c_const=no
20132fi
20133rm -f conftest.$ac_objext conftest.$ac_ext
20134fi
20135echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20136echo "${ECHO_T}$ac_cv_c_const" >&6
20137if test $ac_cv_c_const = no; then
20138
20139cat >>confdefs.h <<\_ACEOF
20140#define const
20141_ACEOF
20142
20143fi
20144
20145echo "$as_me:$LINENO: checking for inline" >&5
20146echo $ECHO_N "checking for inline... $ECHO_C" >&6
20147if test "${ac_cv_c_inline+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149else
20150 ac_cv_c_inline=no
20151for ac_kw in inline __inline__ __inline; do
20152 cat >conftest.$ac_ext <<_ACEOF
20153#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020159#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020160typedef int foo_t;
20161static $ac_kw foo_t static_foo () {return 0; }
20162$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020163#endif
20164
20165_ACEOF
20166rm -f conftest.$ac_objext
20167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168 (eval $ac_compile) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 ac_cv_c_inline=$ac_kw; break
20179else
20180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020181sed 's/^/| /' conftest.$ac_ext >&5
20182
John Criswell7a73b802003-06-30 21:59:07 +000020183fi
20184rm -f conftest.$ac_objext conftest.$ac_ext
20185done
20186
20187fi
20188echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20189echo "${ECHO_T}$ac_cv_c_inline" >&6
20190case $ac_cv_c_inline in
20191 inline | yes) ;;
20192 no)
20193cat >>confdefs.h <<\_ACEOF
20194#define inline
20195_ACEOF
20196 ;;
20197 *) cat >>confdefs.h <<_ACEOF
20198#define inline $ac_cv_c_inline
20199_ACEOF
20200 ;;
20201esac
20202
20203
20204echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20205echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20206if test "${ac_cv_c_bigendian+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208else
20209 # See if sys/param.h defines the BYTE_ORDER macro.
20210cat >conftest.$ac_ext <<_ACEOF
20211#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020212/* confdefs.h. */
20213_ACEOF
20214cat confdefs.h >>conftest.$ac_ext
20215cat >>conftest.$ac_ext <<_ACEOF
20216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020217#include <sys/types.h>
20218#include <sys/param.h>
20219
John Criswell7a73b802003-06-30 21:59:07 +000020220int
20221main ()
20222{
20223#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20224 bogus endian macros
20225#endif
20226
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
20232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20233 (eval $ac_compile) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -s conftest.$ac_objext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 # It does; now see whether it defined to BIG_ENDIAN or not.
20244cat >conftest.$ac_ext <<_ACEOF
20245#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020246/* confdefs.h. */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020251#include <sys/types.h>
20252#include <sys/param.h>
20253
John Criswell7a73b802003-06-30 21:59:07 +000020254int
20255main ()
20256{
20257#if BYTE_ORDER != BIG_ENDIAN
20258 not big endian
20259#endif
20260
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
20266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267 (eval $ac_compile) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_cv_c_bigendian=yes
20278else
20279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020280sed 's/^/| /' conftest.$ac_ext >&5
20281
John Criswell7a73b802003-06-30 21:59:07 +000020282ac_cv_c_bigendian=no
20283fi
20284rm -f conftest.$ac_objext conftest.$ac_ext
20285else
20286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020287sed 's/^/| /' conftest.$ac_ext >&5
20288
John Criswell7a73b802003-06-30 21:59:07 +000020289# It does not; compile a test program.
20290if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020291 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020292 ac_cv_c_bigendian=unknown
20293 cat >conftest.$ac_ext <<_ACEOF
20294#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020295/* confdefs.h. */
20296_ACEOF
20297cat confdefs.h >>conftest.$ac_ext
20298cat >>conftest.$ac_ext <<_ACEOF
20299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020300short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20301short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20302void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20303short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20304short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20305void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020306int
20307main ()
20308{
20309 _ascii (); _ebcdic ();
20310 ;
20311 return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
20315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20316 (eval $ac_compile) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020326 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020327 ac_cv_c_bigendian=yes
20328fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020329if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020330 if test "$ac_cv_c_bigendian" = unknown; then
20331 ac_cv_c_bigendian=no
20332 else
20333 # finding both strings is unlikely to happen, but who knows?
20334 ac_cv_c_bigendian=unknown
20335 fi
20336fi
20337else
20338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020339sed 's/^/| /' conftest.$ac_ext >&5
20340
John Criswell7a73b802003-06-30 21:59:07 +000020341fi
20342rm -f conftest.$ac_objext conftest.$ac_ext
20343else
20344 cat >conftest.$ac_ext <<_ACEOF
20345#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020346/* confdefs.h. */
20347_ACEOF
20348cat confdefs.h >>conftest.$ac_ext
20349cat >>conftest.$ac_ext <<_ACEOF
20350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020351int
20352main ()
20353{
20354 /* Are we little or big endian? From Harbison&Steele. */
20355 union
20356 {
20357 long l;
20358 char c[sizeof (long)];
20359 } u;
20360 u.l = 1;
20361 exit (u.c[sizeof (long) - 1] == 1);
20362}
20363_ACEOF
20364rm -f conftest$ac_exeext
20365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20366 (eval $ac_link) 2>&5
20367 ac_status=$?
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; }; then
20375 ac_cv_c_bigendian=no
20376else
20377 echo "$as_me: program exited with status $ac_status" >&5
20378echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020379sed 's/^/| /' conftest.$ac_ext >&5
20380
John Criswell7a73b802003-06-30 21:59:07 +000020381( exit $ac_status )
20382ac_cv_c_bigendian=yes
20383fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020384rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020385fi
20386fi
20387rm -f conftest.$ac_objext conftest.$ac_ext
20388fi
20389echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20390echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20391case $ac_cv_c_bigendian in
20392 yes)
20393 cat >>confdefs.h <<\_ACEOF
20394#define ENDIAN_BIG 1
20395_ACEOF
20396 ;;
20397 no)
20398 cat >>confdefs.h <<\_ACEOF
20399#define ENDIAN_LITTLE 1
20400_ACEOF
20401 ;;
20402 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020403 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020404presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020405echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020406presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20407 { (exit 1); exit 1; }; } ;;
20408esac
20409
20410
20411echo "$as_me:$LINENO: checking for pid_t" >&5
20412echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20413if test "${ac_cv_type_pid_t+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
20416 cat >conftest.$ac_ext <<_ACEOF
20417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020418/* confdefs.h. */
20419_ACEOF
20420cat confdefs.h >>conftest.$ac_ext
20421cat >>conftest.$ac_ext <<_ACEOF
20422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020423$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020424int
20425main ()
20426{
20427if ((pid_t *) 0)
20428 return 0;
20429if (sizeof (pid_t))
20430 return 0;
20431 ;
20432 return 0;
20433}
20434_ACEOF
20435rm -f conftest.$ac_objext
20436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 ac_cv_type_pid_t=yes
20448else
20449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020450sed 's/^/| /' conftest.$ac_ext >&5
20451
John Criswell7a73b802003-06-30 21:59:07 +000020452ac_cv_type_pid_t=no
20453fi
20454rm -f conftest.$ac_objext conftest.$ac_ext
20455fi
20456echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20457echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20458if test $ac_cv_type_pid_t = yes; then
20459 :
20460else
20461
20462cat >>confdefs.h <<_ACEOF
20463#define pid_t int
20464_ACEOF
20465
20466fi
20467
20468echo "$as_me:$LINENO: checking for size_t" >&5
20469echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20470if test "${ac_cv_type_size_t+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20472else
20473 cat >conftest.$ac_ext <<_ACEOF
20474#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020480$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020481int
20482main ()
20483{
20484if ((size_t *) 0)
20485 return 0;
20486if (sizeof (size_t))
20487 return 0;
20488 ;
20489 return 0;
20490}
20491_ACEOF
20492rm -f conftest.$ac_objext
20493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494 (eval $ac_compile) 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -s conftest.$ac_objext'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; }; then
20504 ac_cv_type_size_t=yes
20505else
20506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020507sed 's/^/| /' conftest.$ac_ext >&5
20508
John Criswell7a73b802003-06-30 21:59:07 +000020509ac_cv_type_size_t=no
20510fi
20511rm -f conftest.$ac_objext conftest.$ac_ext
20512fi
20513echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20514echo "${ECHO_T}$ac_cv_type_size_t" >&6
20515if test $ac_cv_type_size_t = yes; then
20516 :
20517else
20518
20519cat >>confdefs.h <<_ACEOF
20520#define size_t unsigned
20521_ACEOF
20522
20523fi
20524
20525echo "$as_me:$LINENO: checking for int64_t" >&5
20526echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20527if test "${ac_cv_type_int64_t+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530 cat >conftest.$ac_ext <<_ACEOF
20531#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020537$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020538int
20539main ()
20540{
20541if ((int64_t *) 0)
20542 return 0;
20543if (sizeof (int64_t))
20544 return 0;
20545 ;
20546 return 0;
20547}
20548_ACEOF
20549rm -f conftest.$ac_objext
20550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20551 (eval $ac_compile) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -s conftest.$ac_objext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_type_int64_t=yes
20562else
20563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020564sed 's/^/| /' conftest.$ac_ext >&5
20565
John Criswell7a73b802003-06-30 21:59:07 +000020566ac_cv_type_int64_t=no
20567fi
20568rm -f conftest.$ac_objext conftest.$ac_ext
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20571echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20572if test $ac_cv_type_int64_t = yes; then
20573
20574cat >>confdefs.h <<_ACEOF
20575#define HAVE_INT64_T 1
20576_ACEOF
20577
20578
20579else
20580 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20581echo "$as_me: error: Type int64_t required but not found" >&2;}
20582 { (exit 1); exit 1; }; }
20583fi
20584
20585echo "$as_me:$LINENO: checking for uint64_t" >&5
20586echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20587if test "${ac_cv_type_uint64_t+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589else
20590 cat >conftest.$ac_ext <<_ACEOF
20591#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020592/* confdefs.h. */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020597$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020598int
20599main ()
20600{
20601if ((uint64_t *) 0)
20602 return 0;
20603if (sizeof (uint64_t))
20604 return 0;
20605 ;
20606 return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611 (eval $ac_compile) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -s conftest.$ac_objext'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_cv_type_uint64_t=yes
20622else
20623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020624sed 's/^/| /' conftest.$ac_ext >&5
20625
John Criswell7a73b802003-06-30 21:59:07 +000020626ac_cv_type_uint64_t=no
20627fi
20628rm -f conftest.$ac_objext conftest.$ac_ext
20629fi
20630echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20631echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20632if test $ac_cv_type_uint64_t = yes; then
20633
20634cat >>confdefs.h <<_ACEOF
20635#define HAVE_UINT64_T 1
20636_ACEOF
20637
20638
20639else
20640 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20641echo "$as_me: error: Type uint64_t required but not found" >&2;}
20642 { (exit 1); exit 1; }; }
20643fi
20644
20645echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20646echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20647if test "${ac_cv_header_time+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649else
20650 cat >conftest.$ac_ext <<_ACEOF
20651#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020652/* confdefs.h. */
20653_ACEOF
20654cat confdefs.h >>conftest.$ac_ext
20655cat >>conftest.$ac_ext <<_ACEOF
20656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020657#include <sys/types.h>
20658#include <sys/time.h>
20659#include <time.h>
20660
John Criswell7a73b802003-06-30 21:59:07 +000020661int
20662main ()
20663{
20664if ((struct tm *) 0)
20665return 0;
20666 ;
20667 return 0;
20668}
20669_ACEOF
20670rm -f conftest.$ac_objext
20671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672 (eval $ac_compile) 2>&5
20673 ac_status=$?
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -s conftest.$ac_objext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20679 ac_status=$?
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_cv_header_time=yes
20683else
20684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020685sed 's/^/| /' conftest.$ac_ext >&5
20686
John Criswell7a73b802003-06-30 21:59:07 +000020687ac_cv_header_time=no
20688fi
20689rm -f conftest.$ac_objext conftest.$ac_ext
20690fi
20691echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20692echo "${ECHO_T}$ac_cv_header_time" >&6
20693if test $ac_cv_header_time = yes; then
20694
20695cat >>confdefs.h <<\_ACEOF
20696#define TIME_WITH_SYS_TIME 1
20697_ACEOF
20698
20699fi
20700
20701echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20702echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20703if test "${ac_cv_struct_tm+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705else
20706 cat >conftest.$ac_ext <<_ACEOF
20707#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020708/* confdefs.h. */
20709_ACEOF
20710cat confdefs.h >>conftest.$ac_ext
20711cat >>conftest.$ac_ext <<_ACEOF
20712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020713#include <sys/types.h>
20714#include <time.h>
20715
John Criswell7a73b802003-06-30 21:59:07 +000020716int
20717main ()
20718{
20719struct tm *tp; tp->tm_sec;
20720 ;
20721 return 0;
20722}
20723_ACEOF
20724rm -f conftest.$ac_objext
20725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726 (eval $ac_compile) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } &&
20730 { ac_try='test -s conftest.$ac_objext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_struct_tm=time.h
20737else
20738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020739sed 's/^/| /' conftest.$ac_ext >&5
20740
John Criswell7a73b802003-06-30 21:59:07 +000020741ac_cv_struct_tm=sys/time.h
20742fi
20743rm -f conftest.$ac_objext conftest.$ac_ext
20744fi
20745echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20746echo "${ECHO_T}$ac_cv_struct_tm" >&6
20747if test $ac_cv_struct_tm = sys/time.h; then
20748
20749cat >>confdefs.h <<\_ACEOF
20750#define TM_IN_SYS_TIME 1
20751_ACEOF
20752
20753fi
20754
20755
John Criswell7a73b802003-06-30 21:59:07 +000020756echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20757echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20758if test "${ac_cv_cxx_namespaces+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20760else
20761
20762
20763 ac_ext=cc
20764ac_cpp='$CXXCPP $CPPFLAGS'
20765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20768
20769 cat >conftest.$ac_ext <<_ACEOF
20770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020771/* confdefs.h. */
20772_ACEOF
20773cat confdefs.h >>conftest.$ac_ext
20774cat >>conftest.$ac_ext <<_ACEOF
20775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020776namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020777int
20778main ()
20779{
20780using namespace Outer::Inner; return i;
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext
20786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787 (eval $ac_compile) 2>&5
20788 ac_status=$?
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -s conftest.$ac_objext'
20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20793 (eval $ac_try) 2>&5
20794 ac_status=$?
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_cxx_namespaces=yes
20798else
20799 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020800sed 's/^/| /' conftest.$ac_ext >&5
20801
John Criswell7a73b802003-06-30 21:59:07 +000020802ac_cv_cxx_namespaces=no
20803fi
20804rm -f conftest.$ac_objext conftest.$ac_ext
20805 ac_ext=c
20806ac_cpp='$CPP $CPPFLAGS'
20807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20809ac_compiler_gnu=$ac_cv_c_compiler_gnu
20810
20811
20812fi
20813echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20814echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20815if test "$ac_cv_cxx_namespaces" = yes; then
20816
20817cat >>confdefs.h <<\_ACEOF
20818#define HAVE_NAMESPACES
20819_ACEOF
20820
20821fi
20822
20823echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20824echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20825if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20826 echo $ECHO_N "(cached) $ECHO_C" >&6
20827else
20828
20829
20830
20831 ac_ext=cc
20832ac_cpp='$CXXCPP $CPPFLAGS'
20833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20836
20837 cat >conftest.$ac_ext <<_ACEOF
20838#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020839/* confdefs.h. */
20840_ACEOF
20841cat confdefs.h >>conftest.$ac_ext
20842cat >>conftest.$ac_ext <<_ACEOF
20843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020844#include <ext/hash_map>
20845#ifdef HAVE_NAMESPACES
20846using namespace std;
20847#endif
John Criswell7a73b802003-06-30 21:59:07 +000020848int
20849main ()
20850{
20851hash_map<int, int> t; return 0;
20852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -s conftest.$ac_objext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 ac_cv_cxx_have_ext_hash_map=std
20869else
20870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020871sed 's/^/| /' conftest.$ac_ext >&5
20872
John Criswell7a73b802003-06-30 21:59:07 +000020873ac_cv_cxx_have_ext_hash_map=no
20874fi
20875rm -f conftest.$ac_objext conftest.$ac_ext
20876 cat >conftest.$ac_ext <<_ACEOF
20877#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020883#include <ext/hash_map>
20884#ifdef HAVE_NAMESPACES
20885using namespace __gnu_cxx;
20886#endif
John Criswell7a73b802003-06-30 21:59:07 +000020887int
20888main ()
20889{
20890hash_map<int, int> t; return 0;
20891 ;
20892 return 0;
20893}
20894_ACEOF
20895rm -f conftest.$ac_objext
20896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20897 (eval $ac_compile) 2>&5
20898 ac_status=$?
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -s conftest.$ac_objext'
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; }; then
20907 ac_cv_cxx_have_ext_hash_map=gnu
20908else
20909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020910sed 's/^/| /' conftest.$ac_ext >&5
20911
John Criswell7a73b802003-06-30 21:59:07 +000020912ac_cv_cxx_have_ext_hash_map=no
20913fi
20914rm -f conftest.$ac_objext conftest.$ac_ext
20915 ac_ext=c
20916ac_cpp='$CPP $CPPFLAGS'
20917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20919ac_compiler_gnu=$ac_cv_c_compiler_gnu
20920
20921
20922fi
20923echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20924echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20925if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20926
20927cat >>confdefs.h <<\_ACEOF
20928#define HAVE_STD_EXT_HASH_MAP
20929_ACEOF
20930
20931fi
20932if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20933
20934cat >>confdefs.h <<\_ACEOF
20935#define HAVE_GNU_EXT_HASH_MAP
20936_ACEOF
20937
20938fi
20939
20940echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20941echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20942if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944else
20945
20946
20947
20948 ac_ext=cc
20949ac_cpp='$CXXCPP $CPPFLAGS'
20950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20953
20954 cat >conftest.$ac_ext <<_ACEOF
20955#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020961#include <ext/hash_set>
20962#ifdef HAVE_NAMESPACES
20963using namespace std;
20964#endif
John Criswell7a73b802003-06-30 21:59:07 +000020965int
20966main ()
20967{
20968hash_set<int> t; return 0;
20969 ;
20970 return 0;
20971}
20972_ACEOF
20973rm -f conftest.$ac_objext
20974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>&5
20976 ac_status=$?
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -s conftest.$ac_objext'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_cxx_have_ext_hash_set=std
20986else
20987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020988sed 's/^/| /' conftest.$ac_ext >&5
20989
John Criswell7a73b802003-06-30 21:59:07 +000020990ac_cv_cxx_have_ext_hash_set=no
20991fi
20992rm -f conftest.$ac_objext conftest.$ac_ext
20993 cat >conftest.$ac_ext <<_ACEOF
20994#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020995/* confdefs.h. */
20996_ACEOF
20997cat confdefs.h >>conftest.$ac_ext
20998cat >>conftest.$ac_ext <<_ACEOF
20999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021000#include <ext/hash_set>
21001#ifdef HAVE_NAMESPACES
21002using namespace __gnu_cxx;
21003#endif
John Criswell7a73b802003-06-30 21:59:07 +000021004int
21005main ()
21006{
21007hash_set<int> t; return 0;
21008 ;
21009 return 0;
21010}
21011_ACEOF
21012rm -f conftest.$ac_objext
21013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21014 (eval $ac_compile) 2>&5
21015 ac_status=$?
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } &&
21018 { ac_try='test -s conftest.$ac_objext'
21019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21020 (eval $ac_try) 2>&5
21021 ac_status=$?
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_cxx_have_ext_hash_set=gnu
21025else
21026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021027sed 's/^/| /' conftest.$ac_ext >&5
21028
John Criswell7a73b802003-06-30 21:59:07 +000021029ac_cv_cxx_have_ext_hash_set=no
21030fi
21031rm -f conftest.$ac_objext conftest.$ac_ext
21032 ac_ext=c
21033ac_cpp='$CPP $CPPFLAGS'
21034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038
21039fi
21040echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21041echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21042if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21043
21044cat >>confdefs.h <<\_ACEOF
21045#define HAVE_STD_EXT_HASH_SET
21046_ACEOF
21047
21048fi
21049if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21050
21051cat >>confdefs.h <<\_ACEOF
21052#define HAVE_GNU_EXT_HASH_SET
21053_ACEOF
21054
21055fi
21056
21057echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21058echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21059if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061else
21062
21063
21064
21065 ac_ext=cc
21066ac_cpp='$CXXCPP $CPPFLAGS'
21067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21070
21071 cat >conftest.$ac_ext <<_ACEOF
21072#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021073/* confdefs.h. */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021078#include <ext/slist>
21079#ifdef HAVE_NAMESPACES
21080using namespace std;
21081#endif
John Criswell7a73b802003-06-30 21:59:07 +000021082int
21083main ()
21084{
21085slist<int> s; return 0;
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext
21091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092 (eval $ac_compile) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } &&
21096 { ac_try='test -s conftest.$ac_objext'
21097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098 (eval $ac_try) 2>&5
21099 ac_status=$?
21100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101 (exit $ac_status); }; }; then
21102 ac_cv_cxx_have_ext_slist=std
21103else
21104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021105sed 's/^/| /' conftest.$ac_ext >&5
21106
John Criswell7a73b802003-06-30 21:59:07 +000021107ac_cv_cxx_have_ext_slist=no
21108fi
21109rm -f conftest.$ac_objext conftest.$ac_ext
21110 cat >conftest.$ac_ext <<_ACEOF
21111#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021117#include <ext/slist>
21118#ifdef HAVE_NAMESPACES
21119using namespace __gnu_cxx;
21120#endif
John Criswell7a73b802003-06-30 21:59:07 +000021121int
21122main ()
21123{
21124slist<int> s; return 0;
21125 ;
21126 return 0;
21127}
21128_ACEOF
21129rm -f conftest.$ac_objext
21130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -s conftest.$ac_objext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_cxx_have_ext_slist=gnu
21142else
21143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021144sed 's/^/| /' conftest.$ac_ext >&5
21145
John Criswell7a73b802003-06-30 21:59:07 +000021146ac_cv_cxx_have_ext_slist=no
21147fi
21148rm -f conftest.$ac_objext conftest.$ac_ext
21149
21150 ac_ext=c
21151ac_cpp='$CPP $CPPFLAGS'
21152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154ac_compiler_gnu=$ac_cv_c_compiler_gnu
21155
21156
21157fi
21158echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21159echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21160if test "$ac_cv_cxx_have_ext_slist" = std; then
21161
21162cat >>confdefs.h <<\_ACEOF
21163#define HAVE_EXT_SLIST std
21164_ACEOF
21165
21166fi
21167if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21168
21169cat >>confdefs.h <<\_ACEOF
21170#define HAVE_EXT_SLIST gnu
21171_ACEOF
21172
21173fi
21174
21175echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21176echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21177if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179else
21180
21181
21182
21183 ac_ext=cc
21184ac_cpp='$CXXCPP $CPPFLAGS'
21185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21188
21189 cat >conftest.$ac_ext <<_ACEOF
21190#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021191/* confdefs.h. */
21192_ACEOF
21193cat confdefs.h >>conftest.$ac_ext
21194cat >>conftest.$ac_ext <<_ACEOF
21195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021196#include <iterator>
21197#ifdef HAVE_NAMESPACES
21198using namespace std;
21199#endif
John Criswell7a73b802003-06-30 21:59:07 +000021200int
21201main ()
21202{
21203iterator<int,int,int> t; return 0;
21204 ;
21205 return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
21209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } &&
21214 { ac_try='test -s conftest.$ac_objext'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_cxx_have_std_iterator=yes
21221else
21222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021223sed 's/^/| /' conftest.$ac_ext >&5
21224
John Criswell7a73b802003-06-30 21:59:07 +000021225ac_cv_cxx_have_std_iterator=no
21226fi
21227rm -f conftest.$ac_objext conftest.$ac_ext
21228 ac_ext=c
21229ac_cpp='$CPP $CPPFLAGS'
21230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232ac_compiler_gnu=$ac_cv_c_compiler_gnu
21233
21234
21235fi
21236echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21237echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21238if test "$ac_cv_cxx_have_std_iterator" = yes; then
21239
21240cat >>confdefs.h <<\_ACEOF
21241#define HAVE_STD_ITERATOR
21242_ACEOF
21243
21244fi
21245
21246echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21247echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21248if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21250else
21251
21252
21253
21254 ac_ext=cc
21255ac_cpp='$CXXCPP $CPPFLAGS'
21256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21259
21260 cat >conftest.$ac_ext <<_ACEOF
21261#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021262/* confdefs.h. */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021267#include <iterator>
21268#ifdef HAVE_NAMESPACES
21269using namespace std;
21270#endif
John Criswell7a73b802003-06-30 21:59:07 +000021271int
21272main ()
21273{
John Criswellc78022e2003-07-29 19:11:58 +000021274bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021275 ;
21276 return 0;
21277}
21278_ACEOF
21279rm -f conftest.$ac_objext
21280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281 (eval $ac_compile) 2>&5
21282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -s conftest.$ac_objext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_cxx_have_bi_iterator=yes
21292else
21293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021294sed 's/^/| /' conftest.$ac_ext >&5
21295
John Criswell7a73b802003-06-30 21:59:07 +000021296ac_cv_cxx_have_bi_iterator=no
21297fi
21298rm -f conftest.$ac_objext conftest.$ac_ext
21299 ac_ext=c
21300ac_cpp='$CPP $CPPFLAGS'
21301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21303ac_compiler_gnu=$ac_cv_c_compiler_gnu
21304
21305
21306fi
21307echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21308echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21309if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21310
21311cat >>confdefs.h <<\_ACEOF
21312#define HAVE_BI_ITERATOR
21313_ACEOF
21314
21315fi
21316
21317echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21318echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21319if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21321else
21322
21323
21324
21325 ac_ext=cc
21326ac_cpp='$CXXCPP $CPPFLAGS'
21327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21330
21331 cat >conftest.$ac_ext <<_ACEOF
21332#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021333/* confdefs.h. */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021338#include <iterator>
21339#ifdef HAVE_NAMESPACES
21340using namespace std;
21341#endif
John Criswell7a73b802003-06-30 21:59:07 +000021342int
21343main ()
21344{
John Criswellc78022e2003-07-29 19:11:58 +000021345forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021346 ;
21347 return 0;
21348}
21349_ACEOF
21350rm -f conftest.$ac_objext
21351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352 (eval $ac_compile) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
21356 { ac_try='test -s conftest.$ac_objext'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; }; then
21362 ac_cv_cxx_have_fwd_iterator=yes
21363else
21364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021365sed 's/^/| /' conftest.$ac_ext >&5
21366
John Criswell7a73b802003-06-30 21:59:07 +000021367ac_cv_cxx_have_fwd_iterator=no
21368fi
21369rm -f conftest.$ac_objext conftest.$ac_ext
21370 ac_ext=c
21371ac_cpp='$CPP $CPPFLAGS'
21372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374ac_compiler_gnu=$ac_cv_c_compiler_gnu
21375
21376
21377fi
21378echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21379echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21380if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21381
21382cat >>confdefs.h <<\_ACEOF
21383#define HAVE_FWD_ITERATOR
21384_ACEOF
21385
21386fi
21387
21388
21389# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21390# for constant arguments. Useless!
21391echo "$as_me:$LINENO: checking for working alloca.h" >&5
21392echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21393if test "${ac_cv_working_alloca_h+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395else
21396 cat >conftest.$ac_ext <<_ACEOF
21397#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021398/* confdefs.h. */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021403#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021404int
21405main ()
21406{
21407char *p = (char *) alloca (2 * sizeof (int));
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext conftest$ac_exeext
21413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21414 (eval $ac_link) 2>&5
21415 ac_status=$?
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -s conftest$ac_exeext'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_working_alloca_h=yes
21425else
21426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021427sed 's/^/| /' conftest.$ac_ext >&5
21428
John Criswell7a73b802003-06-30 21:59:07 +000021429ac_cv_working_alloca_h=no
21430fi
21431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21432fi
21433echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21434echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21435if test $ac_cv_working_alloca_h = yes; then
21436
21437cat >>confdefs.h <<\_ACEOF
21438#define HAVE_ALLOCA_H 1
21439_ACEOF
21440
21441fi
21442
21443echo "$as_me:$LINENO: checking for alloca" >&5
21444echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21445if test "${ac_cv_func_alloca_works+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447else
21448 cat >conftest.$ac_ext <<_ACEOF
21449#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021455#ifdef __GNUC__
21456# define alloca __builtin_alloca
21457#else
21458# ifdef _MSC_VER
21459# include <malloc.h>
21460# define alloca _alloca
21461# else
21462# if HAVE_ALLOCA_H
21463# include <alloca.h>
21464# else
21465# ifdef _AIX
21466 #pragma alloca
21467# else
21468# ifndef alloca /* predefined by HP cc +Olibcalls */
21469char *alloca ();
21470# endif
21471# endif
21472# endif
21473# endif
21474#endif
21475
John Criswell7a73b802003-06-30 21:59:07 +000021476int
21477main ()
21478{
21479char *p = (char *) alloca (1);
21480 ;
21481 return 0;
21482}
21483_ACEOF
21484rm -f conftest.$ac_objext conftest$ac_exeext
21485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
21490 { ac_try='test -s conftest$ac_exeext'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_cv_func_alloca_works=yes
21497else
21498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021499sed 's/^/| /' conftest.$ac_ext >&5
21500
John Criswell7a73b802003-06-30 21:59:07 +000021501ac_cv_func_alloca_works=no
21502fi
21503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21504fi
21505echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21506echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21507
21508if test $ac_cv_func_alloca_works = yes; then
21509
21510cat >>confdefs.h <<\_ACEOF
21511#define HAVE_ALLOCA 1
21512_ACEOF
21513
21514else
21515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21516# that cause trouble. Some versions do not even contain alloca or
21517# contain a buggy version. If you still want to use their alloca,
21518# use ar to extract alloca.o from them instead of compiling alloca.c.
21519
21520ALLOCA=alloca.$ac_objext
21521
21522cat >>confdefs.h <<\_ACEOF
21523#define C_ALLOCA 1
21524_ACEOF
21525
21526
21527echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21528echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21529if test "${ac_cv_os_cray+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531else
21532 cat >conftest.$ac_ext <<_ACEOF
21533#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021539#if defined(CRAY) && ! defined(CRAY2)
21540webecray
21541#else
21542wenotbecray
21543#endif
21544
21545_ACEOF
21546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021547 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021548 ac_cv_os_cray=yes
21549else
21550 ac_cv_os_cray=no
21551fi
21552rm -f conftest*
21553
21554fi
21555echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21556echo "${ECHO_T}$ac_cv_os_cray" >&6
21557if test $ac_cv_os_cray = yes; then
21558 for ac_func in _getb67 GETB67 getb67; do
21559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560echo "$as_me:$LINENO: checking for $ac_func" >&5
21561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21562if eval "test \"\${$as_ac_var+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564else
21565 cat >conftest.$ac_ext <<_ACEOF
21566#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021567/* confdefs.h. */
21568_ACEOF
21569cat confdefs.h >>conftest.$ac_ext
21570cat >>conftest.$ac_ext <<_ACEOF
21571/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021572/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021573 which can conflict with char $ac_func (); below.
21574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21575 <limits.h> exists even on freestanding compilers. */
21576#ifdef __STDC__
21577# include <limits.h>
21578#else
21579# include <assert.h>
21580#endif
John Criswell7a73b802003-06-30 21:59:07 +000021581/* Override any gcc2 internal prototype to avoid an error. */
21582#ifdef __cplusplus
21583extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021584{
John Criswell7a73b802003-06-30 21:59:07 +000021585#endif
21586/* We use char because int might match the return type of a gcc2
21587 builtin and then its argument prototype would still apply. */
21588char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021589/* The GNU C library defines this for functions which it implements
21590 to always fail with ENOSYS. Some functions are actually named
21591 something starting with __ and the normal name is an alias. */
21592#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21593choke me
21594#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021595char (*f) () = $ac_func;
21596#endif
21597#ifdef __cplusplus
21598}
John Criswell7a73b802003-06-30 21:59:07 +000021599#endif
21600
John Criswell0c38eaf2003-09-10 15:17:25 +000021601int
21602main ()
21603{
21604return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021605 ;
21606 return 0;
21607}
21608_ACEOF
21609rm -f conftest.$ac_objext conftest$ac_exeext
21610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21611 (eval $ac_link) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } &&
21615 { ac_try='test -s conftest$ac_exeext'
21616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21617 (eval $ac_try) 2>&5
21618 ac_status=$?
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); }; }; then
21621 eval "$as_ac_var=yes"
21622else
21623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021624sed 's/^/| /' conftest.$ac_ext >&5
21625
John Criswell7a73b802003-06-30 21:59:07 +000021626eval "$as_ac_var=no"
21627fi
21628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21629fi
21630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21632if test `eval echo '${'$as_ac_var'}'` = yes; then
21633
21634cat >>confdefs.h <<_ACEOF
21635#define CRAY_STACKSEG_END $ac_func
21636_ACEOF
21637
21638 break
21639fi
21640
21641 done
21642fi
21643
21644echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21645echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21646if test "${ac_cv_c_stack_direction+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648else
21649 if test "$cross_compiling" = yes; then
21650 ac_cv_c_stack_direction=0
21651else
21652 cat >conftest.$ac_ext <<_ACEOF
21653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021654/* confdefs.h. */
21655_ACEOF
21656cat confdefs.h >>conftest.$ac_ext
21657cat >>conftest.$ac_ext <<_ACEOF
21658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021659int
21660find_stack_direction ()
21661{
21662 static char *addr = 0;
21663 auto char dummy;
21664 if (addr == 0)
21665 {
21666 addr = &dummy;
21667 return find_stack_direction ();
21668 }
21669 else
21670 return (&dummy > addr) ? 1 : -1;
21671}
21672
21673int
21674main ()
21675{
21676 exit (find_stack_direction () < 0);
21677}
21678_ACEOF
21679rm -f conftest$ac_exeext
21680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681 (eval $ac_link) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21687 ac_status=$?
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 ac_cv_c_stack_direction=1
21691else
21692 echo "$as_me: program exited with status $ac_status" >&5
21693echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021694sed 's/^/| /' conftest.$ac_ext >&5
21695
John Criswell7a73b802003-06-30 21:59:07 +000021696( exit $ac_status )
21697ac_cv_c_stack_direction=-1
21698fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021699rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021700fi
21701fi
21702echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21703echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21704
21705cat >>confdefs.h <<_ACEOF
21706#define STACK_DIRECTION $ac_cv_c_stack_direction
21707_ACEOF
21708
21709
21710fi
21711
21712if test $ac_cv_c_compiler_gnu = yes; then
21713 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21714echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21715if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717else
21718 ac_pattern="Autoconf.*'x'"
21719 cat >conftest.$ac_ext <<_ACEOF
21720#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021721/* confdefs.h. */
21722_ACEOF
21723cat confdefs.h >>conftest.$ac_ext
21724cat >>conftest.$ac_ext <<_ACEOF
21725/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021726#include <sgtty.h>
21727Autoconf TIOCGETP
21728_ACEOF
21729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021730 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021731 ac_cv_prog_gcc_traditional=yes
21732else
21733 ac_cv_prog_gcc_traditional=no
21734fi
21735rm -f conftest*
21736
21737
21738 if test $ac_cv_prog_gcc_traditional = no; then
21739 cat >conftest.$ac_ext <<_ACEOF
21740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021746#include <termio.h>
21747Autoconf TCGETA
21748_ACEOF
21749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021750 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021751 ac_cv_prog_gcc_traditional=yes
21752fi
21753rm -f conftest*
21754
21755 fi
21756fi
21757echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21758echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21759 if test $ac_cv_prog_gcc_traditional = yes; then
21760 CC="$CC -traditional"
21761 fi
21762fi
21763
21764echo "$as_me:$LINENO: checking for working memcmp" >&5
21765echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21766if test "${ac_cv_func_memcmp_working+set}" = set; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21768else
21769 if test "$cross_compiling" = yes; then
21770 ac_cv_func_memcmp_working=no
21771else
21772 cat >conftest.$ac_ext <<_ACEOF
21773#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021779
John Criswell7a73b802003-06-30 21:59:07 +000021780int
21781main ()
21782{
21783
21784 /* Some versions of memcmp are not 8-bit clean. */
21785 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21786 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21787 exit (1);
21788
21789 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21790 or more and with at least one buffer not starting on a 4-byte boundary.
21791 William Lewis provided this test program. */
21792 {
21793 char foo[21];
21794 char bar[21];
21795 int i;
21796 for (i = 0; i < 4; i++)
21797 {
21798 char *a = foo + i;
21799 char *b = bar + i;
21800 strcpy (a, "--------01111111");
21801 strcpy (b, "--------10000000");
21802 if (memcmp (a, b, 16) >= 0)
21803 exit (1);
21804 }
21805 exit (0);
21806 }
21807
21808 ;
21809 return 0;
21810}
21811_ACEOF
21812rm -f conftest$ac_exeext
21813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21814 (eval $ac_link) 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; }; then
21823 ac_cv_func_memcmp_working=yes
21824else
21825 echo "$as_me: program exited with status $ac_status" >&5
21826echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021827sed 's/^/| /' conftest.$ac_ext >&5
21828
John Criswell7a73b802003-06-30 21:59:07 +000021829( exit $ac_status )
21830ac_cv_func_memcmp_working=no
21831fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021832rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021833fi
21834fi
21835echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21836echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21837test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21838
21839
21840
21841for ac_header in stdlib.h unistd.h
21842do
21843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21844if eval "test \"\${$as_ac_Header+set}\" = set"; then
21845 echo "$as_me:$LINENO: checking for $ac_header" >&5
21846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21847if eval "test \"\${$as_ac_Header+set}\" = set"; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849fi
21850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21852else
21853 # Is the header compilable?
21854echo "$as_me:$LINENO: checking $ac_header usability" >&5
21855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21856cat >conftest.$ac_ext <<_ACEOF
21857#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021863$ac_includes_default
21864#include <$ac_header>
21865_ACEOF
21866rm -f conftest.$ac_objext
21867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21868 (eval $ac_compile) 2>&5
21869 ac_status=$?
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
21872 { ac_try='test -s conftest.$ac_objext'
21873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); }; }; then
21878 ac_header_compiler=yes
21879else
21880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021881sed 's/^/| /' conftest.$ac_ext >&5
21882
John Criswell7a73b802003-06-30 21:59:07 +000021883ac_header_compiler=no
21884fi
21885rm -f conftest.$ac_objext conftest.$ac_ext
21886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21887echo "${ECHO_T}$ac_header_compiler" >&6
21888
21889# Is the header present?
21890echo "$as_me:$LINENO: checking $ac_header presence" >&5
21891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21892cat >conftest.$ac_ext <<_ACEOF
21893#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021894/* confdefs.h. */
21895_ACEOF
21896cat confdefs.h >>conftest.$ac_ext
21897cat >>conftest.$ac_ext <<_ACEOF
21898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021899#include <$ac_header>
21900_ACEOF
21901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21903 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021904 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021905 rm -f conftest.er1
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } >/dev/null; then
21909 if test -s conftest.err; then
21910 ac_cpp_err=$ac_c_preproc_warn_flag
21911 else
21912 ac_cpp_err=
21913 fi
21914else
21915 ac_cpp_err=yes
21916fi
21917if test -z "$ac_cpp_err"; then
21918 ac_header_preproc=yes
21919else
21920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021921sed 's/^/| /' conftest.$ac_ext >&5
21922
John Criswell7a73b802003-06-30 21:59:07 +000021923 ac_header_preproc=no
21924fi
21925rm -f conftest.err conftest.$ac_ext
21926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21927echo "${ECHO_T}$ac_header_preproc" >&6
21928
21929# So? What about this header?
21930case $ac_header_compiler:$ac_header_preproc in
21931 yes:no )
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21936 (
21937 cat <<\_ASBOX
21938## ------------------------------------ ##
21939## Report this to bug-autoconf@gnu.org. ##
21940## ------------------------------------ ##
21941_ASBOX
21942 ) |
21943 sed "s/^/$as_me: WARNING: /" >&2
21944 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021945 no:yes )
21946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21952 (
21953 cat <<\_ASBOX
21954## ------------------------------------ ##
21955## Report this to bug-autoconf@gnu.org. ##
21956## ------------------------------------ ##
21957_ASBOX
21958 ) |
21959 sed "s/^/$as_me: WARNING: /" >&2
21960 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021961esac
21962echo "$as_me:$LINENO: checking for $ac_header" >&5
21963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21964if eval "test \"\${$as_ac_Header+set}\" = set"; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21966else
21967 eval "$as_ac_Header=$ac_header_preproc"
21968fi
21969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21971
21972fi
21973if test `eval echo '${'$as_ac_Header'}'` = yes; then
21974 cat >>confdefs.h <<_ACEOF
21975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21976_ACEOF
21977
21978fi
21979
21980done
21981
21982
21983for ac_func in getpagesize
21984do
21985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21986echo "$as_me:$LINENO: checking for $ac_func" >&5
21987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21988if eval "test \"\${$as_ac_var+set}\" = set"; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
21991 cat >conftest.$ac_ext <<_ACEOF
21992#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021993/* confdefs.h. */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021998/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021999 which can conflict with char $ac_func (); below.
22000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001 <limits.h> exists even on freestanding compilers. */
22002#ifdef __STDC__
22003# include <limits.h>
22004#else
22005# include <assert.h>
22006#endif
John Criswell7a73b802003-06-30 21:59:07 +000022007/* Override any gcc2 internal prototype to avoid an error. */
22008#ifdef __cplusplus
22009extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022010{
John Criswell7a73b802003-06-30 21:59:07 +000022011#endif
22012/* We use char because int might match the return type of a gcc2
22013 builtin and then its argument prototype would still apply. */
22014char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022015/* The GNU C library defines this for functions which it implements
22016 to always fail with ENOSYS. Some functions are actually named
22017 something starting with __ and the normal name is an alias. */
22018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22019choke me
22020#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022021char (*f) () = $ac_func;
22022#endif
22023#ifdef __cplusplus
22024}
John Criswell7a73b802003-06-30 21:59:07 +000022025#endif
22026
John Criswell0c38eaf2003-09-10 15:17:25 +000022027int
22028main ()
22029{
22030return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022031 ;
22032 return 0;
22033}
22034_ACEOF
22035rm -f conftest.$ac_objext conftest$ac_exeext
22036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037 (eval $ac_link) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 eval "$as_ac_var=yes"
22048else
22049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022050sed 's/^/| /' conftest.$ac_ext >&5
22051
John Criswell7a73b802003-06-30 21:59:07 +000022052eval "$as_ac_var=no"
22053fi
22054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22055fi
22056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22058if test `eval echo '${'$as_ac_var'}'` = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22061_ACEOF
22062
22063fi
22064done
22065
22066echo "$as_me:$LINENO: checking for working mmap" >&5
22067echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22068if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070else
22071 if test "$cross_compiling" = yes; then
22072 ac_cv_func_mmap_fixed_mapped=no
22073else
22074 cat >conftest.$ac_ext <<_ACEOF
22075#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022076/* confdefs.h. */
22077_ACEOF
22078cat confdefs.h >>conftest.$ac_ext
22079cat >>conftest.$ac_ext <<_ACEOF
22080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022081$ac_includes_default
22082/* malloc might have been renamed as rpl_malloc. */
22083#undef malloc
22084
22085/* Thanks to Mike Haertel and Jim Avera for this test.
22086 Here is a matrix of mmap possibilities:
22087 mmap private not fixed
22088 mmap private fixed at somewhere currently unmapped
22089 mmap private fixed at somewhere already mapped
22090 mmap shared not fixed
22091 mmap shared fixed at somewhere currently unmapped
22092 mmap shared fixed at somewhere already mapped
22093 For private mappings, we should verify that changes cannot be read()
22094 back from the file, nor mmap's back from the file at a different
22095 address. (There have been systems where private was not correctly
22096 implemented like the infamous i386 svr4.0, and systems where the
22097 VM page cache was not coherent with the file system buffer cache
22098 like early versions of FreeBSD and possibly contemporary NetBSD.)
22099 For shared mappings, we should conversely verify that changes get
22100 propagated back to all the places they're supposed to be.
22101
22102 Grep wants private fixed already mapped.
22103 The main things grep needs to know about mmap are:
22104 * does it exist and is it safe to write into the mmap'd area
22105 * how to use it (BSD variants) */
22106
22107#include <fcntl.h>
22108#include <sys/mman.h>
22109
22110#if !STDC_HEADERS && !HAVE_STDLIB_H
22111char *malloc ();
22112#endif
22113
22114/* This mess was copied from the GNU getpagesize.h. */
22115#if !HAVE_GETPAGESIZE
22116/* Assume that all systems that can run configure have sys/param.h. */
22117# if !HAVE_SYS_PARAM_H
22118# define HAVE_SYS_PARAM_H 1
22119# endif
22120
22121# ifdef _SC_PAGESIZE
22122# define getpagesize() sysconf(_SC_PAGESIZE)
22123# else /* no _SC_PAGESIZE */
22124# if HAVE_SYS_PARAM_H
22125# include <sys/param.h>
22126# ifdef EXEC_PAGESIZE
22127# define getpagesize() EXEC_PAGESIZE
22128# else /* no EXEC_PAGESIZE */
22129# ifdef NBPG
22130# define getpagesize() NBPG * CLSIZE
22131# ifndef CLSIZE
22132# define CLSIZE 1
22133# endif /* no CLSIZE */
22134# else /* no NBPG */
22135# ifdef NBPC
22136# define getpagesize() NBPC
22137# else /* no NBPC */
22138# ifdef PAGESIZE
22139# define getpagesize() PAGESIZE
22140# endif /* PAGESIZE */
22141# endif /* no NBPC */
22142# endif /* no NBPG */
22143# endif /* no EXEC_PAGESIZE */
22144# else /* no HAVE_SYS_PARAM_H */
22145# define getpagesize() 8192 /* punt totally */
22146# endif /* no HAVE_SYS_PARAM_H */
22147# endif /* no _SC_PAGESIZE */
22148
22149#endif /* no HAVE_GETPAGESIZE */
22150
22151int
22152main ()
22153{
22154 char *data, *data2, *data3;
22155 int i, pagesize;
22156 int fd;
22157
22158 pagesize = getpagesize ();
22159
22160 /* First, make a file with some known garbage in it. */
22161 data = (char *) malloc (pagesize);
22162 if (!data)
22163 exit (1);
22164 for (i = 0; i < pagesize; ++i)
22165 *(data + i) = rand ();
22166 umask (0);
22167 fd = creat ("conftest.mmap", 0600);
22168 if (fd < 0)
22169 exit (1);
22170 if (write (fd, data, pagesize) != pagesize)
22171 exit (1);
22172 close (fd);
22173
22174 /* Next, try to mmap the file at a fixed address which already has
22175 something else allocated at it. If we can, also make sure that
22176 we see the same garbage. */
22177 fd = open ("conftest.mmap", O_RDWR);
22178 if (fd < 0)
22179 exit (1);
22180 data2 = (char *) malloc (2 * pagesize);
22181 if (!data2)
22182 exit (1);
22183 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22186 exit (1);
22187 for (i = 0; i < pagesize; ++i)
22188 if (*(data + i) != *(data2 + i))
22189 exit (1);
22190
22191 /* Finally, make sure that changes to the mapped area do not
22192 percolate back to the file as seen by read(). (This is a bug on
22193 some variants of i386 svr4.0.) */
22194 for (i = 0; i < pagesize; ++i)
22195 *(data2 + i) = *(data2 + i) + 1;
22196 data3 = (char *) malloc (pagesize);
22197 if (!data3)
22198 exit (1);
22199 if (read (fd, data3, pagesize) != pagesize)
22200 exit (1);
22201 for (i = 0; i < pagesize; ++i)
22202 if (*(data + i) != *(data3 + i))
22203 exit (1);
22204 close (fd);
22205 exit (0);
22206}
22207_ACEOF
22208rm -f conftest$ac_exeext
22209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 ac_cv_func_mmap_fixed_mapped=yes
22220else
22221 echo "$as_me: program exited with status $ac_status" >&5
22222echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022223sed 's/^/| /' conftest.$ac_ext >&5
22224
John Criswell7a73b802003-06-30 21:59:07 +000022225( exit $ac_status )
22226ac_cv_func_mmap_fixed_mapped=no
22227fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022228rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022229fi
22230fi
22231echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22232echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22233if test $ac_cv_func_mmap_fixed_mapped = yes; then
22234
22235cat >>confdefs.h <<\_ACEOF
22236#define HAVE_MMAP 1
22237_ACEOF
22238
22239fi
22240rm -f conftest.mmap
22241
22242echo "$as_me:$LINENO: checking for mmap of files" >&5
22243echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22244if test "${ac_cv_func_mmap_file+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246else
22247
22248
22249 ac_ext=c
22250ac_cpp='$CPP $CPPFLAGS'
22251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254
22255 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022256 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22257See \`config.log' for more details." >&5
22258echo "$as_me: error: cannot run test program while cross compiling
22259See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022260 { (exit 1); exit 1; }; }
22261else
22262 cat >conftest.$ac_ext <<_ACEOF
22263#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022264/* confdefs.h. */
22265_ACEOF
22266cat confdefs.h >>conftest.$ac_ext
22267cat >>conftest.$ac_ext <<_ACEOF
22268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022269
22270#ifdef HAVE_SYS_MMAN_H
22271#include <sys/mman.h>
22272#endif
22273
22274#ifdef HAVE_SYS_TYPES_H
22275#include <sys/types.h>
22276#endif
22277
22278#ifdef HAVE_FCNTL_H
22279#include <fcntl.h>
22280#endif
22281
22282 int fd;
22283 int main () {
22284 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
22285_ACEOF
22286rm -f conftest$ac_exeext
22287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
22297 ac_cv_func_mmap_file=yes
22298else
22299 echo "$as_me: program exited with status $ac_status" >&5
22300echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022301sed 's/^/| /' conftest.$ac_ext >&5
22302
John Criswell7a73b802003-06-30 21:59:07 +000022303( exit $ac_status )
22304ac_cv_func_mmap_file=no
22305fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022306rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022307fi
22308 ac_ext=c
22309ac_cpp='$CPP $CPPFLAGS'
22310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22312ac_compiler_gnu=$ac_cv_c_compiler_gnu
22313
22314
22315fi
22316echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22317echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22318if test "$ac_cv_func_mmap_file" = yes; then
22319 cat >>confdefs.h <<\_ACEOF
22320#define HAVE_MMAP_FILE 1
22321_ACEOF
22322
22323 MMAP_FILE=yes
22324
22325fi
22326
22327if test ${ac_cv_func_mmap_file} = "no"
22328then
22329 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22330echo "$as_me: error: mmap() of files required but not found" >&2;}
22331 { (exit 1); exit 1; }; }
22332fi
22333echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22334echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22335if test "${ac_cv_header_mmap_anon+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22337else
22338
22339
22340 ac_ext=c
22341ac_cpp='$CPP $CPPFLAGS'
22342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22344ac_compiler_gnu=$ac_cv_c_compiler_gnu
22345
22346 cat >conftest.$ac_ext <<_ACEOF
22347#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022353#include <sys/mman.h>
22354 #include <unistd.h>
22355 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022356int
22357main ()
22358{
22359mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22360 ;
22361 return 0;
22362}
22363_ACEOF
22364rm -f conftest.$ac_objext
22365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22366 (eval $ac_compile) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -s conftest.$ac_objext'
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22373 ac_status=$?
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; }; then
22376 ac_cv_header_mmap_anon=yes
22377else
22378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022379sed 's/^/| /' conftest.$ac_ext >&5
22380
John Criswell7a73b802003-06-30 21:59:07 +000022381ac_cv_header_mmap_anon=no
22382fi
22383rm -f conftest.$ac_objext conftest.$ac_ext
22384 ac_ext=c
22385ac_cpp='$CPP $CPPFLAGS'
22386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22388ac_compiler_gnu=$ac_cv_c_compiler_gnu
22389
22390
22391fi
22392echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22393echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22394if test "$ac_cv_header_mmap_anon" = yes; then
22395 cat >>confdefs.h <<\_ACEOF
22396#define HAVE_MMAP_ANONYMOUS 1
22397_ACEOF
22398
22399fi
22400
22401echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22402echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22403if test "${ac_cv_type_signal+set}" = set; then
22404 echo $ECHO_N "(cached) $ECHO_C" >&6
22405else
22406 cat >conftest.$ac_ext <<_ACEOF
22407#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022408/* confdefs.h. */
22409_ACEOF
22410cat confdefs.h >>conftest.$ac_ext
22411cat >>conftest.$ac_ext <<_ACEOF
22412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022413#include <sys/types.h>
22414#include <signal.h>
22415#ifdef signal
22416# undef signal
22417#endif
22418#ifdef __cplusplus
22419extern "C" void (*signal (int, void (*)(int)))(int);
22420#else
22421void (*signal ()) ();
22422#endif
22423
John Criswell7a73b802003-06-30 21:59:07 +000022424int
22425main ()
22426{
22427int i;
22428 ;
22429 return 0;
22430}
22431_ACEOF
22432rm -f conftest.$ac_objext
22433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434 (eval $ac_compile) 2>&5
22435 ac_status=$?
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -s conftest.$ac_objext'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 ac_cv_type_signal=void
22445else
22446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022447sed 's/^/| /' conftest.$ac_ext >&5
22448
John Criswell7a73b802003-06-30 21:59:07 +000022449ac_cv_type_signal=int
22450fi
22451rm -f conftest.$ac_objext conftest.$ac_ext
22452fi
22453echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22454echo "${ECHO_T}$ac_cv_type_signal" >&6
22455
22456cat >>confdefs.h <<_ACEOF
22457#define RETSIGTYPE $ac_cv_type_signal
22458_ACEOF
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
22471do
22472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22473echo "$as_me:$LINENO: checking for $ac_func" >&5
22474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22475if eval "test \"\${$as_ac_var+set}\" = set"; then
22476 echo $ECHO_N "(cached) $ECHO_C" >&6
22477else
22478 cat >conftest.$ac_ext <<_ACEOF
22479#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022480/* confdefs.h. */
22481_ACEOF
22482cat confdefs.h >>conftest.$ac_ext
22483cat >>conftest.$ac_ext <<_ACEOF
22484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022485/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022486 which can conflict with char $ac_func (); below.
22487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22488 <limits.h> exists even on freestanding compilers. */
22489#ifdef __STDC__
22490# include <limits.h>
22491#else
22492# include <assert.h>
22493#endif
John Criswell7a73b802003-06-30 21:59:07 +000022494/* Override any gcc2 internal prototype to avoid an error. */
22495#ifdef __cplusplus
22496extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022497{
John Criswell7a73b802003-06-30 21:59:07 +000022498#endif
22499/* We use char because int might match the return type of a gcc2
22500 builtin and then its argument prototype would still apply. */
22501char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022502/* The GNU C library defines this for functions which it implements
22503 to always fail with ENOSYS. Some functions are actually named
22504 something starting with __ and the normal name is an alias. */
22505#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22506choke me
22507#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022508char (*f) () = $ac_func;
22509#endif
22510#ifdef __cplusplus
22511}
John Criswell7a73b802003-06-30 21:59:07 +000022512#endif
22513
John Criswell0c38eaf2003-09-10 15:17:25 +000022514int
22515main ()
22516{
22517return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022518 ;
22519 return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext conftest$ac_exeext
22523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22524 (eval $ac_link) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } &&
22528 { ac_try='test -s conftest$ac_exeext'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 eval "$as_ac_var=yes"
22535else
22536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022537sed 's/^/| /' conftest.$ac_ext >&5
22538
John Criswell7a73b802003-06-30 21:59:07 +000022539eval "$as_ac_var=no"
22540fi
22541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22542fi
22543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22544echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22545if test `eval echo '${'$as_ac_var'}'` = yes; then
22546 cat >>confdefs.h <<_ACEOF
22547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22548_ACEOF
22549
22550fi
22551done
22552
22553
22554
22555echo "$as_me:$LINENO: checking for mmap" >&5
22556echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22557if test "${ac_cv_func_mmap+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22559else
22560 cat >conftest.$ac_ext <<_ACEOF
22561#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022562/* confdefs.h. */
22563_ACEOF
22564cat confdefs.h >>conftest.$ac_ext
22565cat >>conftest.$ac_ext <<_ACEOF
22566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022567/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022568 which can conflict with char mmap (); below.
22569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22570 <limits.h> exists even on freestanding compilers. */
22571#ifdef __STDC__
22572# include <limits.h>
22573#else
22574# include <assert.h>
22575#endif
John Criswell7a73b802003-06-30 21:59:07 +000022576/* Override any gcc2 internal prototype to avoid an error. */
22577#ifdef __cplusplus
22578extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022579{
John Criswell7a73b802003-06-30 21:59:07 +000022580#endif
22581/* We use char because int might match the return type of a gcc2
22582 builtin and then its argument prototype would still apply. */
22583char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022584/* The GNU C library defines this for functions which it implements
22585 to always fail with ENOSYS. Some functions are actually named
22586 something starting with __ and the normal name is an alias. */
22587#if defined (__stub_mmap) || defined (__stub___mmap)
22588choke me
22589#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022590char (*f) () = mmap;
22591#endif
22592#ifdef __cplusplus
22593}
John Criswell7a73b802003-06-30 21:59:07 +000022594#endif
22595
John Criswell0c38eaf2003-09-10 15:17:25 +000022596int
22597main ()
22598{
22599return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022600 ;
22601 return 0;
22602}
22603_ACEOF
22604rm -f conftest.$ac_objext conftest$ac_exeext
22605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22606 (eval $ac_link) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } &&
22610 { ac_try='test -s conftest$ac_exeext'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_cv_func_mmap=yes
22617else
22618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022619sed 's/^/| /' conftest.$ac_ext >&5
22620
John Criswell7a73b802003-06-30 21:59:07 +000022621ac_cv_func_mmap=no
22622fi
22623rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22624fi
22625echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22626echo "${ECHO_T}$ac_cv_func_mmap" >&6
22627if test $ac_cv_func_mmap = yes; then
22628 :
22629else
22630 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22631echo "$as_me: error: Function mmap() required but not found" >&2;}
22632 { (exit 1); exit 1; }; }
22633fi
22634
22635echo "$as_me:$LINENO: checking for mprotect" >&5
22636echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22637if test "${ac_cv_func_mprotect+set}" = set; then
22638 echo $ECHO_N "(cached) $ECHO_C" >&6
22639else
22640 cat >conftest.$ac_ext <<_ACEOF
22641#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022642/* confdefs.h. */
22643_ACEOF
22644cat confdefs.h >>conftest.$ac_ext
22645cat >>conftest.$ac_ext <<_ACEOF
22646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022647/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022648 which can conflict with char mprotect (); below.
22649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650 <limits.h> exists even on freestanding compilers. */
22651#ifdef __STDC__
22652# include <limits.h>
22653#else
22654# include <assert.h>
22655#endif
John Criswell7a73b802003-06-30 21:59:07 +000022656/* Override any gcc2 internal prototype to avoid an error. */
22657#ifdef __cplusplus
22658extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022659{
John Criswell7a73b802003-06-30 21:59:07 +000022660#endif
22661/* We use char because int might match the return type of a gcc2
22662 builtin and then its argument prototype would still apply. */
22663char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022664/* The GNU C library defines this for functions which it implements
22665 to always fail with ENOSYS. Some functions are actually named
22666 something starting with __ and the normal name is an alias. */
22667#if defined (__stub_mprotect) || defined (__stub___mprotect)
22668choke me
22669#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022670char (*f) () = mprotect;
22671#endif
22672#ifdef __cplusplus
22673}
John Criswell7a73b802003-06-30 21:59:07 +000022674#endif
22675
John Criswell0c38eaf2003-09-10 15:17:25 +000022676int
22677main ()
22678{
22679return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022680 ;
22681 return 0;
22682}
22683_ACEOF
22684rm -f conftest.$ac_objext conftest$ac_exeext
22685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22686 (eval $ac_link) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } &&
22690 { ac_try='test -s conftest$ac_exeext'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; }; then
22696 ac_cv_func_mprotect=yes
22697else
22698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022699sed 's/^/| /' conftest.$ac_ext >&5
22700
John Criswell7a73b802003-06-30 21:59:07 +000022701ac_cv_func_mprotect=no
22702fi
22703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22704fi
22705echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22706echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22707if test $ac_cv_func_mprotect = yes; then
22708 :
22709else
22710 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22711echo "$as_me: error: Function mprotect() required but not found" >&2;}
22712 { (exit 1); exit 1; }; }
22713fi
22714
22715
John Criswellb13092b2003-07-22 21:00:24 +000022716
John Criswell7a73b802003-06-30 21:59:07 +000022717# Check whether --enable-purify or --disable-purify was given.
22718if test "${enable_purify+set}" = set; then
22719 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022720
22721else
John Criswellb13092b2003-07-22 21:00:24 +000022722 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022723fi;
John Criswellb13092b2003-07-22 21:00:24 +000022724if test ${enableval} = "no"
22725then
22726 ENABLE_PURIFY=
22727
22728else
22729 ENABLE_PURIFY=ENABLE_PURIFY=1
22730
22731fi
22732
John Criswell7a73b802003-06-30 21:59:07 +000022733# Check whether --enable-optimized or --disable-optimized was given.
22734if test "${enable_optimized+set}" = set; then
22735 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022736
22737else
John Criswellb13092b2003-07-22 21:00:24 +000022738 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022739fi;
John Criswellb13092b2003-07-22 21:00:24 +000022740if test ${enableval} = "no"
22741then
22742 ENABLE_OPTIMIZED=
22743
22744else
22745 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22746
22747fi
22748
John Criswell7a73b802003-06-30 21:59:07 +000022749# Check whether --enable-spec or --disable-spec was given.
22750if test "${enable_spec+set}" = set; then
22751 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022752
22753else
John Criswellb13092b2003-07-22 21:00:24 +000022754 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022755fi;
John Criswellb13092b2003-07-22 21:00:24 +000022756if test ${enableval} = "no"
22757then
22758 USE_SPEC=
22759
22760else
22761 USE_SPEC=USE_SPEC=1
22762
22763fi
22764
John Criswell7a73b802003-06-30 21:59:07 +000022765# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22766if test "${enable_precompiled_bytecode+set}" = set; then
22767 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022768
22769else
John Criswellb13092b2003-07-22 21:00:24 +000022770 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022771fi;
John Criswellb13092b2003-07-22 21:00:24 +000022772if test ${enableval} = "no"
22773then
22774 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022775
John Criswellb13092b2003-07-22 21:00:24 +000022776else
22777 UPB=USE_PRECOMPILED_BYTECODE=1
22778
22779fi
John Criswellf02dbf02003-07-22 20:07:49 +000022780
22781
22782# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22783if test "${enable_llc_diffs+set}" = set; then
22784 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022785
22786else
John Criswellb13092b2003-07-22 21:00:24 +000022787 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022788fi;
John Criswellb13092b2003-07-22 21:00:24 +000022789if test ${enableval} = "no"
22790then
22791 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022792
John Criswellb13092b2003-07-22 21:00:24 +000022793else
22794 DISABLE_LLC_DIFFS=
22795
22796fi
22797
22798# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022799if test "${enable_jit+set}" = set; then
22800 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022801
22802else
John Criswellc78022e2003-07-29 19:11:58 +000022803 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022804fi;
John Criswellb13092b2003-07-22 21:00:24 +000022805
22806if test ${enableval} = "no"
22807then
22808 JIT=
22809
22810else
John Criswellc78022e2003-07-29 19:11:58 +000022811 case $target in
22812 *i*86*)
22813 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022814
John Criswellc78022e2003-07-29 19:11:58 +000022815 ;;
22816 *sparc*)
22817 JIT=TARGET_HAS_JIT=1
22818
22819 ;;
22820 *)
22821 JIT=
22822
22823 ;;
22824 esac
John Criswellb13092b2003-07-22 21:00:24 +000022825fi
John Criswell7a73b802003-06-30 21:59:07 +000022826
22827
John Criswellc78022e2003-07-29 19:11:58 +000022828
John Criswell7a73b802003-06-30 21:59:07 +000022829# Check whether --with-spec or --without-spec was given.
22830if test "${with_spec+set}" = set; then
22831 withval="$with_spec"
22832 SPEC_ROOT=$withval
22833
22834else
22835 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22836
22837fi;
22838
John Criswellc78022e2003-07-29 19:11:58 +000022839
John Criswell7a73b802003-06-30 21:59:07 +000022840# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22841if test "${with_llvmgccdir+set}" = set; then
22842 withval="$with_llvmgccdir"
22843 LLVMGCCDIR=$withval
22844
22845fi;
22846
John Criswellc78022e2003-07-29 19:11:58 +000022847
John Criswell7a73b802003-06-30 21:59:07 +000022848# Check whether --with-bcrepos or --without-bcrepos was given.
22849if test "${with_bcrepos+set}" = set; then
22850 withval="$with_bcrepos"
22851 BCR=$withval
22852
22853else
22854 BCR=/home/vadve/lattner/LLVMPrograms
22855
22856fi;
22857
John Criswellc78022e2003-07-29 19:11:58 +000022858
John Criswell7a73b802003-06-30 21:59:07 +000022859# Check whether --with-papi or --without-papi was given.
22860if test "${with_papi+set}" = set; then
22861 withval="$with_papi"
22862 PAPIDIR=$withval
22863
22864else
John Criswellde00db22003-08-25 16:49:54 +000022865 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022866
22867fi;
22868
John Criswell7a73b802003-06-30 21:59:07 +000022869
22870# Check whether --with-purify or --without-purify was given.
22871if test "${with_purify+set}" = set; then
22872 withval="$with_purify"
22873 PURIFY=$withval
22874
22875fi;
22876
John Criswellde00db22003-08-25 16:49:54 +000022877
John Criswell0c38eaf2003-09-10 15:17:25 +000022878 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022879cat >confcache <<\_ACEOF
22880# This file is a shell script that caches the results of configure
22881# tests run on this system so they can be shared between configure
22882# scripts and configure runs, see configure's option --config-cache.
22883# It is not useful on other systems. If it contains results you don't
22884# want to keep, you may remove or edit it.
22885#
22886# config.status only pays attention to the cache file if you give it
22887# the --recheck option to rerun configure.
22888#
John Criswell0c38eaf2003-09-10 15:17:25 +000022889# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022890# loading this file, other *unset* `ac_cv_foo' will be assigned the
22891# following values.
22892
22893_ACEOF
22894
22895# The following way of writing the cache mishandles newlines in values,
22896# but we know of no workaround that is simple, portable, and efficient.
22897# So, don't put newlines in cache variables' values.
22898# Ultrix sh set writes to stderr and can't be redirected directly,
22899# and sets the high bit in the cache file unless we assign to the vars.
22900{
22901 (set) 2>&1 |
22902 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22903 *ac_space=\ *)
22904 # `set' does not quote correctly, so add quotes (double-quote
22905 # substitution turns \\\\ into \\, and sed turns \\ into \).
22906 sed -n \
22907 "s/'/'\\\\''/g;
22908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22909 ;;
22910 *)
22911 # `set' quotes correctly as required by POSIX, so do not add quotes.
22912 sed -n \
22913 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22914 ;;
22915 esac;
22916} |
22917 sed '
22918 t clear
22919 : clear
22920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22921 t end
22922 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22923 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022924if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022925 if test -w $cache_file; then
22926 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22927 cat confcache >$cache_file
22928 else
22929 echo "not updating unwritable cache $cache_file"
22930 fi
22931fi
22932rm -f confcache
22933
22934test "x$prefix" = xNONE && prefix=$ac_default_prefix
22935# Let make expand exec_prefix.
22936test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22937
22938# VPATH may cause trouble with some makes, so we remove $(srcdir),
22939# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22940# trailing colons and then remove the whole line if VPATH becomes empty
22941# (actually we leave an empty line to preserve line numbers).
22942if test "x$srcdir" = x.; then
22943 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22944s/:*\$(srcdir):*/:/;
22945s/:*\${srcdir}:*/:/;
22946s/:*@srcdir@:*/:/;
22947s/^\([^=]*=[ ]*\):*/\1/;
22948s/:*$//;
22949s/^[^=]*=[ ]*$//;
22950}'
22951fi
22952
22953DEFS=-DHAVE_CONFIG_H
22954
John Criswell0c38eaf2003-09-10 15:17:25 +000022955ac_libobjs=
22956ac_ltlibobjs=
22957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22958 # 1. Remove the extension, and $U if already installed.
22959 ac_i=`echo "$ac_i" |
22960 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22961 # 2. Add them.
22962 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22963 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22964done
22965LIBOBJS=$ac_libobjs
22966
22967LTLIBOBJS=$ac_ltlibobjs
22968
22969
John Criswell7a73b802003-06-30 21:59:07 +000022970
22971: ${CONFIG_STATUS=./config.status}
22972ac_clean_files_save=$ac_clean_files
22973ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22974{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22975echo "$as_me: creating $CONFIG_STATUS" >&6;}
22976cat >$CONFIG_STATUS <<_ACEOF
22977#! $SHELL
22978# Generated by $as_me.
22979# Run this file to recreate the current configuration.
22980# Compiler output produced by configure, useful for debugging
22981# configure, is in config.log if it exists.
22982
22983debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022984ac_cs_recheck=false
22985ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022986SHELL=\${CONFIG_SHELL-$SHELL}
22987_ACEOF
22988
22989cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022990## --------------------- ##
22991## M4sh Initialization. ##
22992## --------------------- ##
22993
22994# Be Bourne compatible
22995if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22996 emulate sh
22997 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022998 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22999 # is contrary to our usage. Disable this feature.
23000 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023001elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23002 set -o posix
23003fi
23004
John Criswell7a73b802003-06-30 21:59:07 +000023005# Support unset when possible.
23006if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23007 as_unset=unset
23008else
23009 as_unset=false
23010fi
23011
John Criswell0c38eaf2003-09-10 15:17:25 +000023012
23013# Work around bugs in pre-3.0 UWIN ksh.
23014$as_unset ENV MAIL MAILPATH
23015PS1='$ '
23016PS2='> '
23017PS4='+ '
23018
23019# NLS nuisances.
23020for as_var in \
23021 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23022 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23023 LC_TELEPHONE LC_TIME
23024do
23025 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23026 eval $as_var=C; export $as_var
23027 else
23028 $as_unset $as_var
23029 fi
23030done
23031
23032# Required to use basename.
23033if expr a : '\(a\)' >/dev/null 2>&1; then
23034 as_expr=expr
23035else
23036 as_expr=false
23037fi
23038
23039if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23040 as_basename=basename
23041else
23042 as_basename=false
23043fi
John Criswell7a73b802003-06-30 21:59:07 +000023044
23045
23046# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023047as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023048$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23049 X"$0" : 'X\(//\)$' \| \
23050 X"$0" : 'X\(/\)$' \| \
23051 . : '\(.\)' 2>/dev/null ||
23052echo X/"$0" |
23053 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23054 /^X\/\(\/\/\)$/{ s//\1/; q; }
23055 /^X\/\(\/\).*/{ s//\1/; q; }
23056 s/.*/./; q'`
23057
John Criswell0c38eaf2003-09-10 15:17:25 +000023058
John Criswell7a73b802003-06-30 21:59:07 +000023059# PATH needs CR, and LINENO needs CR and PATH.
23060# Avoid depending upon Character Ranges.
23061as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23062as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23063as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23064as_cr_digits='0123456789'
23065as_cr_alnum=$as_cr_Letters$as_cr_digits
23066
23067# The user is always right.
23068if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023069 echo "#! /bin/sh" >conf$$.sh
23070 echo "exit 0" >>conf$$.sh
23071 chmod +x conf$$.sh
23072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023073 PATH_SEPARATOR=';'
23074 else
23075 PATH_SEPARATOR=:
23076 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023077 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023078fi
23079
23080
23081 as_lineno_1=$LINENO
23082 as_lineno_2=$LINENO
23083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23084 test "x$as_lineno_1" != "x$as_lineno_2" &&
23085 test "x$as_lineno_3" = "x$as_lineno_2" || {
23086 # Find who we are. Look in the path if we contain no path at all
23087 # relative or not.
23088 case $0 in
23089 *[\\/]* ) as_myself=$0 ;;
23090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23091for as_dir in $PATH
23092do
23093 IFS=$as_save_IFS
23094 test -z "$as_dir" && as_dir=.
23095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23096done
23097
23098 ;;
23099 esac
23100 # We did not find ourselves, most probably we were run as `sh COMMAND'
23101 # in which case we are not to be found in the path.
23102 if test "x$as_myself" = x; then
23103 as_myself=$0
23104 fi
23105 if test ! -f "$as_myself"; then
23106 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23107echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23108 { (exit 1); exit 1; }; }
23109 fi
23110 case $CONFIG_SHELL in
23111 '')
23112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23113for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23114do
23115 IFS=$as_save_IFS
23116 test -z "$as_dir" && as_dir=.
23117 for as_base in sh bash ksh sh5; do
23118 case $as_dir in
23119 /*)
23120 if ("$as_dir/$as_base" -c '
23121 as_lineno_1=$LINENO
23122 as_lineno_2=$LINENO
23123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23124 test "x$as_lineno_1" != "x$as_lineno_2" &&
23125 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023126 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23127 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023128 CONFIG_SHELL=$as_dir/$as_base
23129 export CONFIG_SHELL
23130 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23131 fi;;
23132 esac
23133 done
23134done
23135;;
23136 esac
23137
23138 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23139 # uniformly replaced by the line number. The first 'sed' inserts a
23140 # line-number line before each line; the second 'sed' does the real
23141 # work. The second script uses 'N' to pair each line-number line
23142 # with the numbered line, and appends trailing '-' during
23143 # substitution so that $LINENO is not a special case at line end.
23144 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23145 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23146 sed '=' <$as_myself |
23147 sed '
23148 N
23149 s,$,-,
23150 : loop
23151 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23152 t loop
23153 s,-$,,
23154 s,^['$as_cr_digits']*\n,,
23155 ' >$as_me.lineno &&
23156 chmod +x $as_me.lineno ||
23157 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23158echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23159 { (exit 1); exit 1; }; }
23160
23161 # Don't try to exec as it changes $[0], causing all sort of problems
23162 # (the dirname of $[0] is not the place where we might find the
23163 # original and so on. Autoconf is especially sensible to this).
23164 . ./$as_me.lineno
23165 # Exit status is that of the last command.
23166 exit
23167}
23168
23169
23170case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23171 *c*,-n*) ECHO_N= ECHO_C='
23172' ECHO_T=' ' ;;
23173 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23174 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23175esac
23176
23177if expr a : '\(a\)' >/dev/null 2>&1; then
23178 as_expr=expr
23179else
23180 as_expr=false
23181fi
23182
23183rm -f conf$$ conf$$.exe conf$$.file
23184echo >conf$$.file
23185if ln -s conf$$.file conf$$ 2>/dev/null; then
23186 # We could just check for DJGPP; but this test a) works b) is more generic
23187 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23188 if test -f conf$$.exe; then
23189 # Don't use ln at all; we don't have any links
23190 as_ln_s='cp -p'
23191 else
23192 as_ln_s='ln -s'
23193 fi
23194elif ln conf$$.file conf$$ 2>/dev/null; then
23195 as_ln_s=ln
23196else
23197 as_ln_s='cp -p'
23198fi
23199rm -f conf$$ conf$$.exe conf$$.file
23200
John Criswell0c38eaf2003-09-10 15:17:25 +000023201if mkdir -p . 2>/dev/null; then
23202 as_mkdir_p=:
23203else
23204 as_mkdir_p=false
23205fi
23206
John Criswell7a73b802003-06-30 21:59:07 +000023207as_executable_p="test -f"
23208
23209# Sed expression to map a string onto a valid CPP name.
23210as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23211
23212# Sed expression to map a string onto a valid variable name.
23213as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23214
23215
23216# IFS
23217# We need space, tab and new line, in precisely that order.
23218as_nl='
23219'
23220IFS=" $as_nl"
23221
23222# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023223$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023224
23225exec 6>&1
23226
23227# Open the log real soon, to keep \$[0] and so on meaningful, and to
23228# report actual input values of CONFIG_FILES etc. instead of their
23229# values after options handling. Logging --version etc. is OK.
23230exec 5>>config.log
23231{
23232 echo
23233 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23234## Running $as_me. ##
23235_ASBOX
23236} >&5
23237cat >&5 <<_CSEOF
23238
23239This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023240generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023241
23242 CONFIG_FILES = $CONFIG_FILES
23243 CONFIG_HEADERS = $CONFIG_HEADERS
23244 CONFIG_LINKS = $CONFIG_LINKS
23245 CONFIG_COMMANDS = $CONFIG_COMMANDS
23246 $ $0 $@
23247
23248_CSEOF
23249echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23250echo >&5
23251_ACEOF
23252
23253# Files that config.status was made for.
23254if test -n "$ac_config_files"; then
23255 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23256fi
23257
23258if test -n "$ac_config_headers"; then
23259 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23260fi
23261
23262if test -n "$ac_config_links"; then
23263 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23264fi
23265
23266if test -n "$ac_config_commands"; then
23267 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23268fi
23269
23270cat >>$CONFIG_STATUS <<\_ACEOF
23271
23272ac_cs_usage="\
23273\`$as_me' instantiates files from templates according to the
23274current configuration.
23275
23276Usage: $0 [OPTIONS] [FILE]...
23277
23278 -h, --help print this help, then exit
23279 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023280 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023281 -d, --debug don't remove temporary files
23282 --recheck update $as_me by reconfiguring in the same conditions
23283 --file=FILE[:TEMPLATE]
23284 instantiate the configuration file FILE
23285 --header=FILE[:TEMPLATE]
23286 instantiate the configuration header FILE
23287
23288Configuration files:
23289$config_files
23290
23291Configuration headers:
23292$config_headers
23293
John Criswellc764fbc2003-09-06 15:17:13 +000023294Configuration commands:
23295$config_commands
23296
John Criswell7a73b802003-06-30 21:59:07 +000023297Report bugs to <bug-autoconf@gnu.org>."
23298_ACEOF
23299
23300cat >>$CONFIG_STATUS <<_ACEOF
23301ac_cs_version="\\
23302[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023303configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23305
23306Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23307Free Software Foundation, Inc.
23308This config.status script is free software; the Free Software Foundation
23309gives unlimited permission to copy, distribute and modify it."
23310srcdir=$srcdir
23311INSTALL="$INSTALL"
23312_ACEOF
23313
23314cat >>$CONFIG_STATUS <<\_ACEOF
23315# If no file are specified by the user, then we need to provide default
23316# value. By we need to know if files were specified by the user.
23317ac_need_defaults=:
23318while test $# != 0
23319do
23320 case $1 in
23321 --*=*)
23322 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23323 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023324 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023325 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023326 -*)
23327 ac_option=$1
23328 ac_optarg=$2
23329 ac_shift=shift
23330 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023331 *) # This is not an option, so the user has probably given explicit
23332 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023333 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023334 ac_need_defaults=false;;
23335 esac
23336
John Criswell0c38eaf2003-09-10 15:17:25 +000023337 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023338 # Handling of the options.
23339_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023340cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23342 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023343 --version | --vers* | -V )
23344 echo "$ac_cs_version"; exit 0 ;;
23345 --he | --h)
23346 # Conflict between --help and --header
23347 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23348Try \`$0 --help' for more information." >&5
23349echo "$as_me: error: ambiguous option: $1
23350Try \`$0 --help' for more information." >&2;}
23351 { (exit 1); exit 1; }; };;
23352 --help | --hel | -h )
23353 echo "$ac_cs_usage"; exit 0 ;;
23354 --debug | --d* | -d )
23355 debug=: ;;
23356 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023357 $ac_shift
23358 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023359 ac_need_defaults=false;;
23360 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023361 $ac_shift
23362 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023363 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23365 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23366 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023367
23368 # This is an error.
23369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23370Try \`$0 --help' for more information." >&5
23371echo "$as_me: error: unrecognized option: $1
23372Try \`$0 --help' for more information." >&2;}
23373 { (exit 1); exit 1; }; } ;;
23374
23375 *) ac_config_targets="$ac_config_targets $1" ;;
23376
23377 esac
23378 shift
23379done
23380
John Criswell0c38eaf2003-09-10 15:17:25 +000023381ac_configure_extra_args=
23382
23383if $ac_cs_silent; then
23384 exec 6>/dev/null
23385 ac_configure_extra_args="$ac_configure_extra_args --silent"
23386fi
23387
23388_ACEOF
23389cat >>$CONFIG_STATUS <<_ACEOF
23390if \$ac_cs_recheck; then
23391 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23392 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23393fi
23394
John Criswell7a73b802003-06-30 21:59:07 +000023395_ACEOF
23396
John Criswellc764fbc2003-09-06 15:17:13 +000023397cat >>$CONFIG_STATUS <<_ACEOF
23398#
23399# INIT-COMMANDS section.
23400#
John Criswell7a73b802003-06-30 21:59:07 +000023401
John Criswellc764fbc2003-09-06 15:17:13 +000023402${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23403${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23404${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23405${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23406${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23407${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23408${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23409${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23410${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23411${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23412${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23413${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23414${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23415${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23416${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23417${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23418${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023419${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23420${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23421${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23422${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23423${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023424${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23425${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23426${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023439${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023440${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023444${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023445${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023446${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023448${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswell08acb9b2003-09-16 02:12:45 +000023452${srcdir}/autoconf/mkinstalldirs `dirname test/QMTestDB/QMTest/llvm.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023453${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23455${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23457${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23458${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23459${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23464${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23466${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23468${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23470${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023471${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023472${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023548${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023550${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023551${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23553${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023554${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023555${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023556${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023557${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023558${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023559${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023560${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23561${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023562${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23566${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23567${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23568${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23570${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23571${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23572${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23573${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23574${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
John Criswell4e079782003-09-29 14:52:28 +000023575${srcdir}/autoconf/mkinstalldirs `dirname support/Makefile`
23576${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Makefile`
23577${srcdir}/autoconf/mkinstalldirs `dirname support/lib/Support/Makefile`
23578${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Makefile`
23579${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Makefile`
23580${srcdir}/autoconf/mkinstalldirs `dirname support/tools/Burg/Doc/Makefile`
23581${srcdir}/autoconf/mkinstalldirs `dirname support/tools/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023582
23583_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023584
23585
23586
23587cat >>$CONFIG_STATUS <<\_ACEOF
23588for ac_config_target in $ac_config_targets
23589do
23590 case "$ac_config_target" in
23591 # Handling of arguments.
23592 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023593 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23594 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23595 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23596 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23597 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23598 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23599 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23600 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23601 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23602 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23603 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23604 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23605 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23606 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23607 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23608 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23609 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023610 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23611 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23612 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23613 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23614 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023615 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23616 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23617 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23618 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23619 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23620 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23621 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23622 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23623 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23624 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23625 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23626 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23627 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23628 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23629 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023630 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023631 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23632 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23633 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23634 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023635 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023636 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023637 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23638 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023639 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23640 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23641 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23642 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswell08acb9b2003-09-16 02:12:45 +000023643 "test/QMTestDB/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTestDB/QMTest/llvm.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023644 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23645 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23646 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23647 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23648 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23649 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23650 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23651 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23652 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23653 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23654 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23655 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23656 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23657 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23658 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23659 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23660 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23661 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023662 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023663 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23664 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23665 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23666 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23667 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23668 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23669 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23670 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23671 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23672 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23673 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23674 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23675 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23676 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23677 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23678 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23679 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23680 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023681 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23682 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023683 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23684 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023685 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23686 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23687 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23688 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23689 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23690 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23691 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23692 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23693 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23694 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23695 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23696 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23697 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23698 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23699 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23700 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23701 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23702 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23703 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23704 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23705 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23706 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23707 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23708 "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 +000023709 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023710 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23711 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23712 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23713 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23714 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23715 "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 +000023716 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023717 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023718 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23719 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23720 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23721 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23722 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023723 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23724 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23725 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023726 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23727 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23728 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23729 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23730 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23731 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023732 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023733 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023734 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023735 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023736 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23737 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023738 "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 +000023739 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23740 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023741 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023742 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23743 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23744 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023745 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023746 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023747 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023748 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023749 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023750 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023751 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23752 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023753 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23754 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23755 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23756 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23757 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23758 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23759 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23760 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23761 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23762 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23763 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23764 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23765 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell4e079782003-09-29 14:52:28 +000023766 "support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/Makefile" ;;
23767 "support/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Makefile" ;;
23768 "support/lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/lib/Support/Makefile" ;;
23769 "support/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Makefile" ;;
23770 "support/tools/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Makefile" ;;
23771 "support/tools/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/Burg/Doc/Makefile" ;;
23772 "support/tools/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS support/tools/TableGen/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023773 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23775echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23776 { (exit 1); exit 1; }; };;
23777 esac
23778done
23779
23780# If the user did not use the arguments to specify the items to instantiate,
23781# then the envvar interface is used. Set only those that are not.
23782# We use the long form for the default assignment because of an extremely
23783# bizarre bug on SunOS 4.1.3.
23784if $ac_need_defaults; then
23785 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23786 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023787 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023788fi
23789
John Criswell0c38eaf2003-09-10 15:17:25 +000023790# Have a temporary directory for convenience. Make it in the build tree
23791# simply because there is no reason to put it here, and in addition,
23792# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023793# Create a temporary directory, and hook for its removal unless debugging.
23794$debug ||
23795{
23796 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23797 trap '{ (exit 1); exit 1; }' 1 2 13 15
23798}
23799
23800# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023801
John Criswell7a73b802003-06-30 21:59:07 +000023802{
John Criswell0c38eaf2003-09-10 15:17:25 +000023803 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023804 test -n "$tmp" && test -d "$tmp"
23805} ||
23806{
John Criswell0c38eaf2003-09-10 15:17:25 +000023807 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023808 (umask 077 && mkdir $tmp)
23809} ||
23810{
John Criswell0c38eaf2003-09-10 15:17:25 +000023811 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023812 { (exit 1); exit 1; }
23813}
23814
23815_ACEOF
23816
23817cat >>$CONFIG_STATUS <<_ACEOF
23818
23819#
23820# CONFIG_FILES section.
23821#
23822
23823# No need to generate the scripts if there are no CONFIG_FILES.
23824# This happens for instance when ./config.status config.h
23825if test -n "\$CONFIG_FILES"; then
23826 # Protect against being on the right side of a sed subst in config.status.
23827 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23828 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23829s,@SHELL@,$SHELL,;t t
23830s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23831s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23832s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23833s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23834s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23835s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23836s,@exec_prefix@,$exec_prefix,;t t
23837s,@prefix@,$prefix,;t t
23838s,@program_transform_name@,$program_transform_name,;t t
23839s,@bindir@,$bindir,;t t
23840s,@sbindir@,$sbindir,;t t
23841s,@libexecdir@,$libexecdir,;t t
23842s,@datadir@,$datadir,;t t
23843s,@sysconfdir@,$sysconfdir,;t t
23844s,@sharedstatedir@,$sharedstatedir,;t t
23845s,@localstatedir@,$localstatedir,;t t
23846s,@libdir@,$libdir,;t t
23847s,@includedir@,$includedir,;t t
23848s,@oldincludedir@,$oldincludedir,;t t
23849s,@infodir@,$infodir,;t t
23850s,@mandir@,$mandir,;t t
23851s,@build_alias@,$build_alias,;t t
23852s,@host_alias@,$host_alias,;t t
23853s,@target_alias@,$target_alias,;t t
23854s,@DEFS@,$DEFS,;t t
23855s,@ECHO_C@,$ECHO_C,;t t
23856s,@ECHO_N@,$ECHO_N,;t t
23857s,@ECHO_T@,$ECHO_T,;t t
23858s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023859s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023860s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23861s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23862s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23863s,@build@,$build,;t t
23864s,@build_cpu@,$build_cpu,;t t
23865s,@build_vendor@,$build_vendor,;t t
23866s,@build_os@,$build_os,;t t
23867s,@host@,$host,;t t
23868s,@host_cpu@,$host_cpu,;t t
23869s,@host_vendor@,$host_vendor,;t t
23870s,@host_os@,$host_os,;t t
23871s,@target@,$target,;t t
23872s,@target_cpu@,$target_cpu,;t t
23873s,@target_vendor@,$target_vendor,;t t
23874s,@target_os@,$target_os,;t t
23875s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023876s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023877s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023878s,@CXX@,$CXX,;t t
23879s,@CXXFLAGS@,$CXXFLAGS,;t t
23880s,@LDFLAGS@,$LDFLAGS,;t t
23881s,@CPPFLAGS@,$CPPFLAGS,;t t
23882s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23883s,@EXEEXT@,$EXEEXT,;t t
23884s,@OBJEXT@,$OBJEXT,;t t
23885s,@CC@,$CC,;t t
23886s,@CFLAGS@,$CFLAGS,;t t
23887s,@ac_ct_CC@,$ac_ct_CC,;t t
23888s,@CPP@,$CPP,;t t
23889s,@ifGNUmake@,$ifGNUmake,;t t
23890s,@LEX@,$LEX,;t t
23891s,@LEXLIB@,$LEXLIB,;t t
23892s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23893s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023894s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023895s,@LN_S@,$LN_S,;t t
23896s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023897s,@AR@,$AR,;t t
23898s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023899s,@RANLIB@,$RANLIB,;t t
23900s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23901s,@STRIP@,$STRIP,;t t
23902s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023903s,@CXXCPP@,$CXXCPP,;t t
23904s,@F77@,$F77,;t t
23905s,@FFLAGS@,$FFLAGS,;t t
23906s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023907s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023908s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023909s,@SED@,$SED,;t t
23910s,@RM@,$RM,;t t
23911s,@MKDIR@,$MKDIR,;t t
23912s,@DATE@,$DATE,;t t
23913s,@MV@,$MV,;t t
23914s,@DOT@,$DOT,;t t
23915s,@ETAGS@,$ETAGS,;t t
23916s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023917s,@PYTHON@,$PYTHON,;t t
23918s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023919s,@ALLOCA@,$ALLOCA,;t t
23920s,@LIBOBJS@,$LIBOBJS,;t t
23921s,@MMAP_FILE@,$MMAP_FILE,;t t
23922s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023923s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23924s,@USE_SPEC@,$USE_SPEC,;t t
23925s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023926s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023927s,@JIT@,$JIT,;t t
23928s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23929s,@BCR@,$BCR,;t t
23930s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023931s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023932CEOF
23933
23934_ACEOF
23935
23936 cat >>$CONFIG_STATUS <<\_ACEOF
23937 # Split the substitutions into bite-sized pieces for seds with
23938 # small command number limits, like on Digital OSF/1 and HP-UX.
23939 ac_max_sed_lines=48
23940 ac_sed_frag=1 # Number of current file.
23941 ac_beg=1 # First line for current file.
23942 ac_end=$ac_max_sed_lines # Line after last line for current file.
23943 ac_more_lines=:
23944 ac_sed_cmds=
23945 while $ac_more_lines; do
23946 if test $ac_beg -gt 1; then
23947 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23948 else
23949 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23950 fi
23951 if test ! -s $tmp/subs.frag; then
23952 ac_more_lines=false
23953 else
23954 # The purpose of the label and of the branching condition is to
23955 # speed up the sed processing (if there are no `@' at all, there
23956 # is no need to browse any of the substitutions).
23957 # These are the two extra sed commands mentioned above.
23958 (echo ':t
23959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23960 if test -z "$ac_sed_cmds"; then
23961 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23962 else
23963 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23964 fi
23965 ac_sed_frag=`expr $ac_sed_frag + 1`
23966 ac_beg=$ac_end
23967 ac_end=`expr $ac_end + $ac_max_sed_lines`
23968 fi
23969 done
23970 if test -z "$ac_sed_cmds"; then
23971 ac_sed_cmds=cat
23972 fi
23973fi # test -n "$CONFIG_FILES"
23974
23975_ACEOF
23976cat >>$CONFIG_STATUS <<\_ACEOF
23977for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23979 case $ac_file in
23980 - | *:- | *:-:* ) # input from stdin
23981 cat >$tmp/stdin
23982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23986 * ) ac_file_in=$ac_file.in ;;
23987 esac
23988
23989 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23990 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23991$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23992 X"$ac_file" : 'X\(//\)[^/]' \| \
23993 X"$ac_file" : 'X\(//\)$' \| \
23994 X"$ac_file" : 'X\(/\)' \| \
23995 . : '\(.\)' 2>/dev/null ||
23996echo X"$ac_file" |
23997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23999 /^X\(\/\/\)$/{ s//\1/; q; }
24000 /^X\(\/\).*/{ s//\1/; q; }
24001 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024002 { if $as_mkdir_p; then
24003 mkdir -p "$ac_dir"
24004 else
24005 as_dir="$ac_dir"
24006 as_dirs=
24007 while test ! -d "$as_dir"; do
24008 as_dirs="$as_dir $as_dirs"
24009 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011 X"$as_dir" : 'X\(//\)[^/]' \| \
24012 X"$as_dir" : 'X\(//\)$' \| \
24013 X"$as_dir" : 'X\(/\)' \| \
24014 . : '\(.\)' 2>/dev/null ||
24015echo X"$as_dir" |
24016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24018 /^X\(\/\/\)$/{ s//\1/; q; }
24019 /^X\(\/\).*/{ s//\1/; q; }
24020 s/.*/./; q'`
24021 done
24022 test ! -n "$as_dirs" || mkdir $as_dirs
24023 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24024echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24025 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024026
24027 ac_builddir=.
24028
24029if test "$ac_dir" != .; then
24030 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24031 # A "../" for each directory in $ac_dir_suffix.
24032 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24033else
24034 ac_dir_suffix= ac_top_builddir=
24035fi
24036
24037case $srcdir in
24038 .) # No --srcdir option. We are building in place.
24039 ac_srcdir=.
24040 if test -z "$ac_top_builddir"; then
24041 ac_top_srcdir=.
24042 else
24043 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24044 fi ;;
24045 [\\/]* | ?:[\\/]* ) # Absolute path.
24046 ac_srcdir=$srcdir$ac_dir_suffix;
24047 ac_top_srcdir=$srcdir ;;
24048 *) # Relative path.
24049 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24050 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24051esac
24052# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24053# absolute.
24054ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024055ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024056ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24057ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24058
24059
24060 case $INSTALL in
24061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24062 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24063 esac
24064
24065 if test x"$ac_file" != x-; then
24066 { echo "$as_me:$LINENO: creating $ac_file" >&5
24067echo "$as_me: creating $ac_file" >&6;}
24068 rm -f "$ac_file"
24069 fi
24070 # Let's still pretend it is `configure' which instantiates (i.e., don't
24071 # use $as_me), people would be surprised to read:
24072 # /* config.h. Generated by config.status. */
24073 if test x"$ac_file" = x-; then
24074 configure_input=
24075 else
24076 configure_input="$ac_file. "
24077 fi
24078 configure_input=$configure_input"Generated from `echo $ac_file_in |
24079 sed 's,.*/,,'` by configure."
24080
24081 # First look for the input files in the build tree, otherwise in the
24082 # src tree.
24083 ac_file_inputs=`IFS=:
24084 for f in $ac_file_in; do
24085 case $f in
24086 -) echo $tmp/stdin ;;
24087 [\\/$]*)
24088 # Absolute (can't be DOS-style, as IFS=:)
24089 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24090echo "$as_me: error: cannot find input file: $f" >&2;}
24091 { (exit 1); exit 1; }; }
24092 echo $f;;
24093 *) # Relative
24094 if test -f "$f"; then
24095 # Build tree
24096 echo $f
24097 elif test -f "$srcdir/$f"; then
24098 # Source tree
24099 echo $srcdir/$f
24100 else
24101 # /dev/null tree
24102 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24103echo "$as_me: error: cannot find input file: $f" >&2;}
24104 { (exit 1); exit 1; }; }
24105 fi;;
24106 esac
24107 done` || { (exit 1); exit 1; }
24108_ACEOF
24109cat >>$CONFIG_STATUS <<_ACEOF
24110 sed "$ac_vpsub
24111$extrasub
24112_ACEOF
24113cat >>$CONFIG_STATUS <<\_ACEOF
24114:t
24115/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24116s,@configure_input@,$configure_input,;t t
24117s,@srcdir@,$ac_srcdir,;t t
24118s,@abs_srcdir@,$ac_abs_srcdir,;t t
24119s,@top_srcdir@,$ac_top_srcdir,;t t
24120s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24121s,@builddir@,$ac_builddir,;t t
24122s,@abs_builddir@,$ac_abs_builddir,;t t
24123s,@top_builddir@,$ac_top_builddir,;t t
24124s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24125s,@INSTALL@,$ac_INSTALL,;t t
24126" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24127 rm -f $tmp/stdin
24128 if test x"$ac_file" != x-; then
24129 mv $tmp/out $ac_file
24130 else
24131 cat $tmp/out
24132 rm -f $tmp/out
24133 fi
24134
24135done
24136_ACEOF
24137cat >>$CONFIG_STATUS <<\_ACEOF
24138
24139#
24140# CONFIG_HEADER section.
24141#
24142
24143# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24144# NAME is the cpp macro being defined and VALUE is the value it is being given.
24145#
24146# ac_d sets the value in "#define NAME VALUE" lines.
24147ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24148ac_dB='[ ].*$,\1#\2'
24149ac_dC=' '
24150ac_dD=',;t'
24151# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24152ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24153ac_uB='$,\1#\2define\3'
24154ac_uC=' '
24155ac_uD=',;t'
24156
24157for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24158 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24159 case $ac_file in
24160 - | *:- | *:-:* ) # input from stdin
24161 cat >$tmp/stdin
24162 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24163 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24164 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24165 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24166 * ) ac_file_in=$ac_file.in ;;
24167 esac
24168
24169 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24170echo "$as_me: creating $ac_file" >&6;}
24171
24172 # First look for the input files in the build tree, otherwise in the
24173 # src tree.
24174 ac_file_inputs=`IFS=:
24175 for f in $ac_file_in; do
24176 case $f in
24177 -) echo $tmp/stdin ;;
24178 [\\/$]*)
24179 # Absolute (can't be DOS-style, as IFS=:)
24180 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24181echo "$as_me: error: cannot find input file: $f" >&2;}
24182 { (exit 1); exit 1; }; }
24183 echo $f;;
24184 *) # Relative
24185 if test -f "$f"; then
24186 # Build tree
24187 echo $f
24188 elif test -f "$srcdir/$f"; then
24189 # Source tree
24190 echo $srcdir/$f
24191 else
24192 # /dev/null tree
24193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24194echo "$as_me: error: cannot find input file: $f" >&2;}
24195 { (exit 1); exit 1; }; }
24196 fi;;
24197 esac
24198 done` || { (exit 1); exit 1; }
24199 # Remove the trailing spaces.
24200 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24201
24202_ACEOF
24203
24204# Transform confdefs.h into two sed scripts, `conftest.defines' and
24205# `conftest.undefs', that substitutes the proper values into
24206# config.h.in to produce config.h. The first handles `#define'
24207# templates, and the second `#undef' templates.
24208# And first: Protect against being on the right side of a sed subst in
24209# config.status. Protect against being in an unquoted here document
24210# in config.status.
24211rm -f conftest.defines conftest.undefs
24212# Using a here document instead of a string reduces the quoting nightmare.
24213# Putting comments in sed scripts is not portable.
24214#
24215# `end' is used to avoid that the second main sed command (meant for
24216# 0-ary CPP macros) applies to n-ary macro definitions.
24217# See the Autoconf documentation for `clear'.
24218cat >confdef2sed.sed <<\_ACEOF
24219s/[\\&,]/\\&/g
24220s,[\\$`],\\&,g
24221t clear
24222: clear
24223s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24224t end
24225s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24226: end
24227_ACEOF
24228# If some macros were called several times there might be several times
24229# the same #defines, which is useless. Nevertheless, we may not want to
24230# sort them, since we want the *last* AC-DEFINE to be honored.
24231uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24232sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24233rm -f confdef2sed.sed
24234
24235# This sed command replaces #undef with comments. This is necessary, for
24236# example, in the case of _POSIX_SOURCE, which is predefined and required
24237# on some systems where configure will not decide to define it.
24238cat >>conftest.undefs <<\_ACEOF
24239s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24240_ACEOF
24241
24242# Break up conftest.defines because some shells have a limit on the size
24243# of here documents, and old seds have small limits too (100 cmds).
24244echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024245echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024246echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24247echo ' :' >>$CONFIG_STATUS
24248rm -f conftest.tail
24249while grep . conftest.defines >/dev/null
24250do
24251 # Write a limited-size here document to $tmp/defines.sed.
24252 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24253 # Speed up: don't consider the non `#define' lines.
24254 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24255 # Work around the forget-to-reset-the-flag bug.
24256 echo 't clr' >>$CONFIG_STATUS
24257 echo ': clr' >>$CONFIG_STATUS
24258 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24259 echo 'CEOF
24260 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24261 rm -f $tmp/in
24262 mv $tmp/out $tmp/in
24263' >>$CONFIG_STATUS
24264 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24265 rm -f conftest.defines
24266 mv conftest.tail conftest.defines
24267done
24268rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024269echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024270echo >>$CONFIG_STATUS
24271
24272# Break up conftest.undefs because some shells have a limit on the size
24273# of here documents, and old seds have small limits too (100 cmds).
24274echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24275rm -f conftest.tail
24276while grep . conftest.undefs >/dev/null
24277do
24278 # Write a limited-size here document to $tmp/undefs.sed.
24279 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24280 # Speed up: don't consider the non `#undef'
24281 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24282 # Work around the forget-to-reset-the-flag bug.
24283 echo 't clr' >>$CONFIG_STATUS
24284 echo ': clr' >>$CONFIG_STATUS
24285 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24286 echo 'CEOF
24287 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24288 rm -f $tmp/in
24289 mv $tmp/out $tmp/in
24290' >>$CONFIG_STATUS
24291 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24292 rm -f conftest.undefs
24293 mv conftest.tail conftest.undefs
24294done
24295rm -f conftest.undefs
24296
24297cat >>$CONFIG_STATUS <<\_ACEOF
24298 # Let's still pretend it is `configure' which instantiates (i.e., don't
24299 # use $as_me), people would be surprised to read:
24300 # /* config.h. Generated by config.status. */
24301 if test x"$ac_file" = x-; then
24302 echo "/* Generated by configure. */" >$tmp/config.h
24303 else
24304 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24305 fi
24306 cat $tmp/in >>$tmp/config.h
24307 rm -f $tmp/in
24308 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024309 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24311echo "$as_me: $ac_file is unchanged" >&6;}
24312 else
24313 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24314$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315 X"$ac_file" : 'X\(//\)[^/]' \| \
24316 X"$ac_file" : 'X\(//\)$' \| \
24317 X"$ac_file" : 'X\(/\)' \| \
24318 . : '\(.\)' 2>/dev/null ||
24319echo X"$ac_file" |
24320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24322 /^X\(\/\/\)$/{ s//\1/; q; }
24323 /^X\(\/\).*/{ s//\1/; q; }
24324 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024325 { if $as_mkdir_p; then
24326 mkdir -p "$ac_dir"
24327 else
24328 as_dir="$ac_dir"
24329 as_dirs=
24330 while test ! -d "$as_dir"; do
24331 as_dirs="$as_dir $as_dirs"
24332 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24334 X"$as_dir" : 'X\(//\)[^/]' \| \
24335 X"$as_dir" : 'X\(//\)$' \| \
24336 X"$as_dir" : 'X\(/\)' \| \
24337 . : '\(.\)' 2>/dev/null ||
24338echo X"$as_dir" |
24339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24341 /^X\(\/\/\)$/{ s//\1/; q; }
24342 /^X\(\/\).*/{ s//\1/; q; }
24343 s/.*/./; q'`
24344 done
24345 test ! -n "$as_dirs" || mkdir $as_dirs
24346 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24347echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24348 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024349
24350 rm -f $ac_file
24351 mv $tmp/config.h $ac_file
24352 fi
24353 else
24354 cat $tmp/config.h
24355 rm -f $tmp/config.h
24356 fi
24357done
24358_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024359cat >>$CONFIG_STATUS <<\_ACEOF
24360
24361#
24362# CONFIG_COMMANDS section.
24363#
24364for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24365 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24366 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24367 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24368$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24369 X"$ac_dest" : 'X\(//\)[^/]' \| \
24370 X"$ac_dest" : 'X\(//\)$' \| \
24371 X"$ac_dest" : 'X\(/\)' \| \
24372 . : '\(.\)' 2>/dev/null ||
24373echo X"$ac_dest" |
24374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24376 /^X\(\/\/\)$/{ s//\1/; q; }
24377 /^X\(\/\).*/{ s//\1/; q; }
24378 s/.*/./; q'`
24379 ac_builddir=.
24380
24381if test "$ac_dir" != .; then
24382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24383 # A "../" for each directory in $ac_dir_suffix.
24384 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24385else
24386 ac_dir_suffix= ac_top_builddir=
24387fi
24388
24389case $srcdir in
24390 .) # No --srcdir option. We are building in place.
24391 ac_srcdir=.
24392 if test -z "$ac_top_builddir"; then
24393 ac_top_srcdir=.
24394 else
24395 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24396 fi ;;
24397 [\\/]* | ?:[\\/]* ) # Absolute path.
24398 ac_srcdir=$srcdir$ac_dir_suffix;
24399 ac_top_srcdir=$srcdir ;;
24400 *) # Relative path.
24401 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24402 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24403esac
24404# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24405# absolute.
24406ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024407ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024408ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24409ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24410
24411
24412 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24413echo "$as_me: executing $ac_dest commands" >&6;}
24414 case $ac_dest in
24415 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24416 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24417 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24418 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24419 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24420 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24421 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24422 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24423 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24424 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24425 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24426 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24427 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24428 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24429 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24430 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24431 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 +000024432 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24433 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24434 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24435 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24436 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024437 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24438 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24439 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24440 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24441 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24442 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24443 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24444 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24445 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24446 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24447 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24448 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24449 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24450 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24451 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 +000024452 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 +000024453 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24454 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24455 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24456 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 +000024457 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 +000024458 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 +000024459 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24460 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 +000024461 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24462 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24463 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24464 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswell08acb9b2003-09-16 02:12:45 +000024465 test/QMTestDB/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTestDB/QMTest/llvm.py test/QMTestDB/QMTest/llvm.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024466 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24467 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24468 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24469 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24470 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24471 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24472 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24473 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24474 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24475 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24476 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24477 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24478 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24479 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24480 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24481 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24482 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24483 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 +000024484 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 +000024485 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 ;;
24486 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 ;;
24487 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 ;;
24488 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 ;;
24489 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 ;;
24490 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 ;;
24491 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 ;;
24492 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 ;;
24493 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 ;;
24494 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 ;;
24495 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 ;;
24496 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 ;;
24497 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 ;;
24498 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 ;;
24499 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 ;;
24500 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24501 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24502 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 +000024503 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24504 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 +000024505 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 ;;
24506 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 +000024507 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24508 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 ;;
24509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 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 ;;
24514 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 ;;
24515 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 ;;
24516 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 ;;
24517 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 ;;
24518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 ;;
24529 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 ;;
24530 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 +000024531 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 +000024532 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 ;;
24533 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 ;;
24534 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 ;;
24535 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 ;;
24536 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 ;;
24537 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 +000024538 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 +000024539 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 +000024540 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
24541 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
24542 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
24543 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 ;;
24544 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 +000024545 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
24546 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24547 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 +000024548 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24549 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24550 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 ;;
24551 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 ;;
24552 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 ;;
24553 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 +000024554 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 +000024555 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 +000024556 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 +000024557 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 +000024558 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 ;;
24559 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 +000024560 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 +000024561 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24562 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024563 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024564 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24565 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24566 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024567 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024568 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024569 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024570 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 +000024571 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 +000024572 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 +000024573 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24574 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024575 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
24576 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24577 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24578 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24579 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24580 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24581 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24582 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24583 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24584 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24585 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24586 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24587 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
John Criswell4e079782003-09-29 14:52:28 +000024588 support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/Makefile support/Makefile ;;
24589 support/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Makefile support/lib/Makefile ;;
24590 support/lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/lib/Support/Makefile support/lib/Support/Makefile ;;
24591 support/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Makefile support/tools/Makefile ;;
24592 support/tools/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Makefile support/tools/Burg/Makefile ;;
24593 support/tools/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/Burg/Doc/Makefile support/tools/Burg/Doc/Makefile ;;
24594 support/tools/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/support/tools/TableGen/Makefile support/tools/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024595 esac
24596done
24597_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024598
24599cat >>$CONFIG_STATUS <<\_ACEOF
24600
24601{ (exit 0); exit 0; }
24602_ACEOF
24603chmod +x $CONFIG_STATUS
24604ac_clean_files=$ac_clean_files_save
24605
24606
24607# configure is writing to config.log, and then calls config.status.
24608# config.status does its own redirection, appending to config.log.
24609# Unfortunately, on DOS this fails, as config.log is still kept open
24610# by configure, so config.status won't be able to write to it; its
24611# output is simply discarded. So we exec the FD to /dev/null,
24612# effectively closing config.log, so it can be properly (re)opened and
24613# appended to by config.status. When coming back to configure, we
24614# need to make the FD available again.
24615if test "$no_create" != yes; then
24616 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024617 ac_config_status_args=
24618 test "$silent" = yes &&
24619 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024620 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024622 exec 5>>config.log
24623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24624 # would make configure fail if this is the last instruction.
24625 $ac_cs_success || { (exit 1); exit 1; }
24626fi
24627
John Criswell12399a12003-09-30 15:55:44 +000024628#
24629# CONFIG_SUBDIRS section.
24630#
24631if test "$no_recursion" != yes; then
24632
24633 # Remove --cache-file and --srcdir arguments so they do not pile up.
24634 ac_sub_configure_args=
24635 ac_prev=
24636 for ac_arg in $ac_configure_args; do
24637 if test -n "$ac_prev"; then
24638 ac_prev=
24639 continue
24640 fi
24641 case $ac_arg in
24642 -cache-file | --cache-file | --cache-fil | --cache-fi \
24643 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24644 ac_prev=cache_file ;;
24645 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24646 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24647 | --c=*)
24648 ;;
24649 --config-cache | -C)
24650 ;;
24651 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24652 ac_prev=srcdir ;;
24653 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24654 ;;
24655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24656 ac_prev=prefix ;;
24657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24658 ;;
24659 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24660 esac
24661 done
24662
24663 # Always prepend --prefix to ensure using the same prefix
24664 # in subdir configurations.
24665 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24666
24667 ac_popdir=`pwd`
24668 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24669
24670 # Do not complain, so a configure script can configure whichever
24671 # parts of a large source tree are present.
24672 test -d $srcdir/$ac_dir || continue
24673
24674 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24675echo "$as_me: configuring in $ac_dir" >&6;}
24676 { if $as_mkdir_p; then
24677 mkdir -p "$ac_dir"
24678 else
24679 as_dir="$ac_dir"
24680 as_dirs=
24681 while test ! -d "$as_dir"; do
24682 as_dirs="$as_dir $as_dirs"
24683 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24684$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24685 X"$as_dir" : 'X\(//\)[^/]' \| \
24686 X"$as_dir" : 'X\(//\)$' \| \
24687 X"$as_dir" : 'X\(/\)' \| \
24688 . : '\(.\)' 2>/dev/null ||
24689echo X"$as_dir" |
24690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24692 /^X\(\/\/\)$/{ s//\1/; q; }
24693 /^X\(\/\).*/{ s//\1/; q; }
24694 s/.*/./; q'`
24695 done
24696 test ! -n "$as_dirs" || mkdir $as_dirs
24697 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24698echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24699 { (exit 1); exit 1; }; }; }
24700
24701 ac_builddir=.
24702
24703if test "$ac_dir" != .; then
24704 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24705 # A "../" for each directory in $ac_dir_suffix.
24706 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24707else
24708 ac_dir_suffix= ac_top_builddir=
24709fi
24710
24711case $srcdir in
24712 .) # No --srcdir option. We are building in place.
24713 ac_srcdir=.
24714 if test -z "$ac_top_builddir"; then
24715 ac_top_srcdir=.
24716 else
24717 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24718 fi ;;
24719 [\\/]* | ?:[\\/]* ) # Absolute path.
24720 ac_srcdir=$srcdir$ac_dir_suffix;
24721 ac_top_srcdir=$srcdir ;;
24722 *) # Relative path.
24723 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24724 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24725esac
24726# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24727# absolute.
24728ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24729ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24730ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24731ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24732
24733
24734 cd $ac_dir
24735
24736 # Check for guested configure; otherwise get Cygnus style configure.
24737 if test -f $ac_srcdir/configure.gnu; then
24738 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24739 elif test -f $ac_srcdir/configure; then
24740 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24741 elif test -f $ac_srcdir/configure.in; then
24742 ac_sub_configure=$ac_configure
24743 else
24744 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24745echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24746 ac_sub_configure=
24747 fi
24748
24749 # The recursion is here.
24750 if test -n "$ac_sub_configure"; then
24751 # Make the cache file name correct relative to the subdirectory.
24752 case $cache_file in
24753 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24754 *) # Relative path.
24755 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24756 esac
24757
24758 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24759echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24760 # The eval makes quoting arguments work.
24761 eval $ac_sub_configure $ac_sub_configure_args \
24762 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24763 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24764echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24765 { (exit 1); exit 1; }; }
24766 fi
24767
24768 cd $ac_popdir
24769 done
24770fi
24771