blob: 68055ae696938742ffcadb400492ea2443086b1a [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell12399a12003-09-30 15:55:44 +0000429ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000430ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
958\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
983 [$ac_default_prefix]
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
1020 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001035 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001036 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001037 --enable-precompiled_bytecode
1038 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001039 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001040 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001041
1042Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001045 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1046 --with-pic try to use only PIC/non-PIC objects [default=use
1047 both]
1048 --with-tags[=TAGS]
1049 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001050 --with-llvmgccdir Location of LLVM GCC front-end
1051 --with-bcrepos Location of Bytecode Repository
1052 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001053 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1107# absolute.
1108ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001109ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001110ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1111ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1112
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
1128 cd $ac_popdir
1129 done
1130fi
1131
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001136generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001137
1138Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139Free Software Foundation, Inc.
1140This configure script is free software; the Free Software Foundation
1141gives unlimited permission to copy, distribute and modify it.
1142_ACEOF
1143 exit 0
1144fi
1145exec 5>config.log
1146cat >&5 <<_ACEOF
1147This file contains any messages produced by compilers while
1148running configure, to aid debugging if configure makes a mistake.
1149
1150It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001151generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 $ $0 $@
1154
1155_ACEOF
1156{
1157cat <<_ASUNAME
1158## --------- ##
1159## Platform. ##
1160## --------- ##
1161
1162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170
1171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178
1179_ASUNAME
1180
1181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182for as_dir in $PATH
1183do
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187done
1188
1189} >&5
1190
1191cat >&5 <<_ACEOF
1192
1193
1194## ----------- ##
1195## Core tests. ##
1196## ----------- ##
1197
1198_ACEOF
1199
1200
1201# Keep a trace of the command line.
1202# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001203# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001204# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001205# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001206ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001207ac_configure_args0=
1208ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001209ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001210ac_must_keep_next=false
1211for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001212do
John Criswell0c38eaf2003-09-10 15:17:25 +00001213 for ac_arg
1214 do
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 2)
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1238 ;;
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1241 fi
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1245 ;;
1246 esac
1247 done
John Criswell7a73b802003-06-30 21:59:07 +00001248done
John Criswell0c38eaf2003-09-10 15:17:25 +00001249$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001251
1252# When interrupted or exit'd, cleanup temporary files, and complete
1253# config.log. We remove comments because anyway the quotes in there
1254# would cause problems or look ugly.
1255# WARNING: Be sure not to use single quotes in there, as some shells,
1256# such as our DU 5.0 friend, will then `close' the trap.
1257trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1259 {
1260 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001261
John Criswell7a73b802003-06-30 21:59:07 +00001262 cat <<\_ASBOX
1263## ---------------- ##
1264## Cache variables. ##
1265## ---------------- ##
1266_ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1269{
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276 ;;
1277 *)
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 ;;
1281 esac;
1282}
1283 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001284
1285 cat <<\_ASBOX
1286## ----------------- ##
1287## Output variables. ##
1288## ----------------- ##
1289_ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1292 do
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1297
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300## ------------- ##
1301## Output files. ##
1302## ------------- ##
1303_ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1306 do
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1311 fi
1312
John Criswell7a73b802003-06-30 21:59:07 +00001313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315## ----------- ##
1316## confdefs.h. ##
1317## ----------- ##
1318_ASBOX
1319 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001320 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001321 echo
1322 fi
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core core.* *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1330 ' 0
1331for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333done
1334ac_signal=0
1335
1336# confdefs.h avoids OS command line length limits that DEFS can exceed.
1337rm -rf conftest* confdefs.h
1338# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339echo >confdefs.h
1340
1341# Predefined preprocessor variables.
1342
1343cat >>confdefs.h <<_ACEOF
1344#define PACKAGE_NAME "$PACKAGE_NAME"
1345_ACEOF
1346
1347
1348cat >>confdefs.h <<_ACEOF
1349#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350_ACEOF
1351
1352
1353cat >>confdefs.h <<_ACEOF
1354#define PACKAGE_VERSION "$PACKAGE_VERSION"
1355_ACEOF
1356
1357
1358cat >>confdefs.h <<_ACEOF
1359#define PACKAGE_STRING "$PACKAGE_STRING"
1360_ACEOF
1361
1362
1363cat >>confdefs.h <<_ACEOF
1364#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365_ACEOF
1366
1367
1368# Let the site file select an alternate cache file if it wants to.
1369# Prefer explicitly selected file to automatically selected ones.
1370if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375 fi
1376fi
1377for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1383 fi
1384done
1385
1386if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1396 fi
1397else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1401fi
1402
1403# Check that the precious variables saved in the cache have kept the same
1404# value.
1405ac_cache_corrupted=false
1406for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1422 *)
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1427echo "$as_me: former value: $ac_old_val" >&2;}
1428 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1429echo "$as_me: current value: $ac_new_val" >&2;}
1430 ac_cache_corrupted=:
1431 fi;;
1432 esac
1433 # Pass precious variables to config.status.
1434 if test "$ac_new_set" = set; then
1435 case $ac_new_val in
1436 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438 *) ac_arg=$ac_var=$ac_new_val ;;
1439 esac
1440 case " $ac_configure_args " in
1441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1442 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443 esac
1444 fi
1445done
1446if $ac_cache_corrupted; then
1447 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451 { (exit 1); exit 1; }; }
1452fi
1453
1454ac_ext=c
1455ac_cpp='$CPP $CPPFLAGS'
1456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
John Criswell0c38eaf2003-09-10 15:17:25 +00001486
John Criswell7a73b802003-06-30 21:59:07 +00001487ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001488for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001489 if test -f $ac_dir/install-sh; then
1490 ac_aux_dir=$ac_dir
1491 ac_install_sh="$ac_aux_dir/install-sh -c"
1492 break
1493 elif test -f $ac_dir/install.sh; then
1494 ac_aux_dir=$ac_dir
1495 ac_install_sh="$ac_aux_dir/install.sh -c"
1496 break
1497 elif test -f $ac_dir/shtool; then
1498 ac_aux_dir=$ac_dir
1499 ac_install_sh="$ac_aux_dir/shtool install -c"
1500 break
1501 fi
1502done
1503if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001504 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1505echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001506 { (exit 1); exit 1; }; }
1507fi
1508ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
John Criswell392aaa32003-07-22 19:18:09 +00001512
John Criswell1b824322003-09-15 17:19:42 +00001513if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001514then
John Criswell1b824322003-09-15 17:19:42 +00001515 if test -f ${srcdir}/include/Config/config.h
1516 then
1517 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001518echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1519 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001520 fi
John Criswell93e1c722003-09-15 17:04:06 +00001521fi
1522
John Criswell12399a12003-09-30 15:55:44 +00001523if test -d ${srcdir}/projects/reopt
1524then
1525
1526
1527subdirs="$subdirs projects/reopt"
1528
1529fi
1530
John Criswell559a6c12003-09-30 16:31:48 +00001531if test -d ${srcdir}/projects/poolalloc
1532then
1533
1534
1535subdirs="$subdirs projects/poolalloc"
1536
1537fi
1538
John Criswell0c38eaf2003-09-10 15:17:25 +00001539 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001540
John Criswell0c38eaf2003-09-10 15:17:25 +00001541 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswell0c38eaf2003-09-10 15:17:25 +00001544 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswell0c38eaf2003-09-10 15:17:25 +00001547 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
Brian Gaekec45be042003-10-07 06:01:34 +00001607 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell613758d2003-09-11 18:03:50 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell0c38eaf2003-09-10 15:17:25 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell613758d2003-09-11 18:03:50 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell613758d2003-09-11 18:03:50 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1677
1678
1679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell0c38eaf2003-09-10 15:17:25 +00001685 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswell0c38eaf2003-09-10 15:17:25 +00001688 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswellf424d742003-10-07 21:13:47 +00001694 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1695
1696
1697 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswell0c38eaf2003-09-10 15:17:25 +00001703 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswell0c38eaf2003-09-10 15:17:25 +00001706 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswell0c38eaf2003-09-10 15:17:25 +00001736 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell613758d2003-09-11 18:03:50 +00001754 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell5ab73462003-10-09 15:44:28 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1761
1762
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswell0c38eaf2003-09-10 15:17:25 +00001784 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswell0c38eaf2003-09-10 15:17:25 +00001787 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswell0c38eaf2003-09-10 15:17:25 +00001793 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswell0c38eaf2003-09-10 15:17:25 +00001796 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswell0c38eaf2003-09-10 15:17:25 +00001799 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell0c38eaf2003-09-10 15:17:25 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswell0c38eaf2003-09-10 15:17:25 +00001805 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell48e3cb92003-09-12 16:31:43 +00001814 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell48e3cb92003-09-12 16:31:43 +00001817 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell39e83892003-09-12 16:36:17 +00001820 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1821
1822
1823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1824
1825
John Criswell48e3cb92003-09-12 16:31:43 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswell48e3cb92003-09-12 16:31:43 +00001829 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswell48e3cb92003-09-12 16:31:43 +00001832 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell48e3cb92003-09-12 16:31:43 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswell48e3cb92003-09-12 16:31:43 +00001838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswell48e3cb92003-09-12 16:31:43 +00001844 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswell48e3cb92003-09-12 16:31:43 +00001847 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswell48e3cb92003-09-12 16:31:43 +00001850 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswell48e3cb92003-09-12 16:31:43 +00001853 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswell48e3cb92003-09-12 16:31:43 +00001856 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswell48e3cb92003-09-12 16:31:43 +00001859 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswell48e3cb92003-09-12 16:31:43 +00001862 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswell48e3cb92003-09-12 16:31:43 +00001865 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswell48e3cb92003-09-12 16:31:43 +00001868 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswell48e3cb92003-09-12 16:31:43 +00001871 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswell48e3cb92003-09-12 16:31:43 +00001874 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswell48e3cb92003-09-12 16:31:43 +00001877 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswell48e3cb92003-09-12 16:31:43 +00001880 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswell48e3cb92003-09-12 16:31:43 +00001883 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswell48e3cb92003-09-12 16:31:43 +00001886 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswell48e3cb92003-09-12 16:31:43 +00001889 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1893
1894
1895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell39e83892003-09-12 16:36:17 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswell48e3cb92003-09-12 16:31:43 +00001901 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswell48e3cb92003-09-12 16:31:43 +00001904 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswell48e3cb92003-09-12 16:31:43 +00001907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswell48e3cb92003-09-12 16:31:43 +00001910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell48e3cb92003-09-12 16:31:43 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswell48e3cb92003-09-12 16:31:43 +00001916 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswell48e3cb92003-09-12 16:31:43 +00001919 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswell48e3cb92003-09-12 16:31:43 +00001922 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell0c38eaf2003-09-10 15:17:25 +00001925 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell0c38eaf2003-09-10 15:17:25 +00001928 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswellffaaf3b2003-09-10 18:38:44 +00001931 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1932
1933
1934 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1935
1936
1937 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1938
1939
1940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1941
1942
1943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1944
1945
1946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1947
1948
John Criswell0c38eaf2003-09-10 15:17:25 +00001949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001950
1951
John Criswell0c38eaf2003-09-10 15:17:25 +00001952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001953
1954
John Criswell0afe8252003-09-11 20:53:48 +00001955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1956
1957
John Criswell67181ca2003-09-26 14:53:17 +00001958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1959
1960
John Criswell68886d42003-09-26 19:51:42 +00001961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1962
1963
1964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1965
1966
John Criswellc66bbd52003-09-29 21:35:32 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1968
1969
John Criswell0c38eaf2003-09-10 15:17:25 +00001970 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001971
1972
John Criswell0c38eaf2003-09-10 15:17:25 +00001973 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001974
1975
John Criswell0c38eaf2003-09-10 15:17:25 +00001976 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001977
1978
John Criswell0c38eaf2003-09-10 15:17:25 +00001979 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001980
1981
John Criswell0c38eaf2003-09-10 15:17:25 +00001982 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswellddb7b4e2003-09-16 15:54:19 +00001994 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
Chris Lattnerebd70302003-09-13 03:29:53 +00001997 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
1998
1999
John Criswellddb7b4e2003-09-16 15:54:19 +00002000 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswellddb7b4e2003-09-16 15:54:19 +00002006 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2007
2008
2009 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2010
2011
Brian Gaekec45be042003-10-07 06:01:34 +00002012 ac_config_commands="$ac_config_commands utils/Makefile"
2013
2014
2015 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2016
2017
2018 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2019
2020
2021 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2022
2023
John Criswell0c38eaf2003-09-10 15:17:25 +00002024 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002025
2026
John Criswell0c38eaf2003-09-10 15:17:25 +00002027 ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002028
2029
John Criswell0c38eaf2003-09-10 15:17:25 +00002030 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002031
2032
John Criswell0c38eaf2003-09-10 15:17:25 +00002033 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00002034
2035
John Criswell0c38eaf2003-09-10 15:17:25 +00002036 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002037
2038
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002046
2047
John Criswell0c38eaf2003-09-10 15:17:25 +00002048 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002052
2053
John Criswell0c38eaf2003-09-10 15:17:25 +00002054 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswell0c38eaf2003-09-10 15:17:25 +00002057 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002058
2059
John Criswell392aaa32003-07-22 19:18:09 +00002060
2061
John Criswell7a73b802003-06-30 21:59:07 +00002062# Find a good install program. We prefer a C program (faster),
2063# so one script is as good as another. But avoid the broken or
2064# incompatible versions:
2065# SysV /etc/install, /usr/sbin/install
2066# SunOS /usr/etc/install
2067# IRIX /sbin/install
2068# AIX /bin/install
2069# AmigaOS /C/install, which installs bootblocks on floppy discs
2070# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2071# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2072# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2073# ./install, which can be erroneously created by make from ./install.sh.
2074echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2075echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2076if test -z "$INSTALL"; then
2077if test "${ac_cv_path_install+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 # Account for people who put trailing slashes in PATH elements.
2086case $as_dir/ in
2087 ./ | .// | /cC/* | \
2088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2089 /usr/ucb/* ) ;;
2090 *)
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2100 :
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2104 :
2105 else
2106 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2107 break 3
2108 fi
2109 fi
2110 done
2111 done
2112 ;;
2113esac
2114done
2115
2116
2117fi
2118 if test "${ac_cv_path_install+set}" = set; then
2119 INSTALL=$ac_cv_path_install
2120 else
2121 # As a last resort, use the slow shell script. We don't cache a
2122 # path for INSTALL within a source directory, because that will
2123 # break other packages using the cache if that directory is
2124 # removed, or if the path is relative.
2125 INSTALL=$ac_install_sh
2126 fi
2127fi
2128echo "$as_me:$LINENO: result: $INSTALL" >&5
2129echo "${ECHO_T}$INSTALL" >&6
2130
2131# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2132# It thinks the first close brace ends the variable substitution.
2133test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134
2135test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2136
2137test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2138
2139
2140# Make sure we can run config.sub.
2141$ac_config_sub sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2143echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2144 { (exit 1); exit 1; }; }
2145
2146echo "$as_me:$LINENO: checking build system type" >&5
2147echo $ECHO_N "checking build system type... $ECHO_C" >&6
2148if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 ac_cv_build_alias=$build_alias
2152test -z "$ac_cv_build_alias" &&
2153 ac_cv_build_alias=`$ac_config_guess`
2154test -z "$ac_cv_build_alias" &&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2160echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2162
2163fi
2164echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165echo "${ECHO_T}$ac_cv_build" >&6
2166build=$ac_cv_build
2167build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2168build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2169build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2170
2171
2172echo "$as_me:$LINENO: checking host system type" >&5
2173echo $ECHO_N "checking host system type... $ECHO_C" >&6
2174if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177 ac_cv_host_alias=$host_alias
2178test -z "$ac_cv_host_alias" &&
2179 ac_cv_host_alias=$ac_cv_build_alias
2180ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2182echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2184
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187echo "${ECHO_T}$ac_cv_host" >&6
2188host=$ac_cv_host
2189host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2190host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2191host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2192
2193
2194echo "$as_me:$LINENO: checking target system type" >&5
2195echo $ECHO_N "checking target system type... $ECHO_C" >&6
2196if test "${ac_cv_target+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 ac_cv_target_alias=$target_alias
2200test "x$ac_cv_target_alias" = "x" &&
2201 ac_cv_target_alias=$ac_cv_host_alias
2202ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2203 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2204echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2206
2207fi
2208echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2209echo "${ECHO_T}$ac_cv_target" >&6
2210target=$ac_cv_target
2211target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2212target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2213target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2214
2215
2216# The aliases save the names the user supplied, while $host etc.
2217# will get canonicalized.
2218test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2220 NONENONEs,x,x, &&
2221 program_prefix=${target_alias}-
2222
2223case $build in
2224 *i*86*) OS=Linux
2225
John Criswellf02dbf02003-07-22 20:07:49 +00002226 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002227
2228 ;;
2229
2230 *sparc*) OS=SunOS
2231
2232 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2233
2234 ;;
2235
2236 *) OS=Unknown
2237
2238 ;;
2239esac
2240
2241case $target in
2242 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2243
2244 ;;
2245esac
2246
John Criswell76595452003-07-01 22:07:39 +00002247case $target in
2248 *i*86*) ARCH=x86
2249
2250 ;;
2251 *sparc*solaris*) ARCH=Sparc
2252
2253 ;;
2254esac
2255
John Criswell7a73b802003-06-30 21:59:07 +00002256
2257ac_ext=cc
2258ac_cpp='$CXXCPP $CPPFLAGS'
2259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2262if test -n "$ac_tool_prefix"; then
2263 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2264 do
2265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2266set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2267echo "$as_me:$LINENO: checking for $ac_word" >&5
2268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269if test "${ac_cv_prog_CXX+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
2272 if test -n "$CXX"; then
2273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2274else
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286done
2287done
2288
2289fi
2290fi
2291CXX=$ac_cv_prog_CXX
2292if test -n "$CXX"; then
2293 echo "$as_me:$LINENO: result: $CXX" >&5
2294echo "${ECHO_T}$CXX" >&6
2295else
2296 echo "$as_me:$LINENO: result: no" >&5
2297echo "${ECHO_T}no" >&6
2298fi
2299
2300 test -n "$CXX" && break
2301 done
2302fi
2303if test -z "$CXX"; then
2304 ac_ct_CXX=$CXX
2305 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2306do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308set dummy $ac_prog; ac_word=$2
2309echo "$as_me:$LINENO: checking for $ac_word" >&5
2310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 if test -n "$ac_ct_CXX"; then
2315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CXX="$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328done
2329done
2330
2331fi
2332fi
2333ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2334if test -n "$ac_ct_CXX"; then
2335 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2336echo "${ECHO_T}$ac_ct_CXX" >&6
2337else
2338 echo "$as_me:$LINENO: result: no" >&5
2339echo "${ECHO_T}no" >&6
2340fi
2341
2342 test -n "$ac_ct_CXX" && break
2343done
2344test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2345
2346 CXX=$ac_ct_CXX
2347fi
2348
2349
2350# Provide some information about the compiler.
2351echo "$as_me:$LINENO:" \
2352 "checking for C++ compiler version" >&5
2353ac_compiler=`set X $ac_compile; echo $2`
2354{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355 (eval $ac_compiler --version </dev/null >&5) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360 (eval $ac_compiler -v </dev/null >&5) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365 (eval $ac_compiler -V </dev/null >&5) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369
2370cat >conftest.$ac_ext <<_ACEOF
2371#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002377
John Criswell7a73b802003-06-30 21:59:07 +00002378int
2379main ()
2380{
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002387ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002388# Try to create an executable without -o first, disregard a.out.
2389# It will help us diagnose broken compilers, and finding out an intuition
2390# of exeext.
2391echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2392echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2393ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401# resort.
2402
2403# Be careful to initialize this variable, since it used to be cached.
2404# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002406# b.out is created by i960 compilers.
2407for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2408do
2409 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002410 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2412 ;;
2413 conftest.$ac_ext )
2414 # This is the source file.
2415 ;;
2416 [ab].out )
2417 # We found the default executable, but exeext='' is most
2418 # certainly right.
2419 break;;
2420 *.* )
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # FIXME: I believe we export ac_cv_exeext for Libtool,
2423 # but it would be cool to find out if it's true. Does anybody
2424 # maintain Libtool? --akim.
2425 export ac_cv_exeext
2426 break;;
2427 * )
2428 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002429 esac
2430done
2431else
2432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2436See \`config.log' for more details." >&5
2437echo "$as_me: error: C++ compiler cannot create executables
2438See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002439 { (exit 77); exit 77; }; }
2440fi
2441
2442ac_exeext=$ac_cv_exeext
2443echo "$as_me:$LINENO: result: $ac_file" >&5
2444echo "${ECHO_T}$ac_file" >&6
2445
2446# Check the compiler produces executables we can run. If not, either
2447# the compiler is broken, or we cross compile.
2448echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2449echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2450# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451# If not cross compiling, check that we can run a simple program.
2452if test "$cross_compiling" != yes; then
2453 if { ac_try='./$ac_file'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 cross_compiling=no
2460 else
2461 if test "$cross_compiling" = maybe; then
2462 cross_compiling=yes
2463 else
2464 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002465If you meant to cross compile, use \`--host'.
2466See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002467echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002468If you meant to cross compile, use \`--host'.
2469See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002470 { (exit 1); exit 1; }; }
2471 fi
2472 fi
2473fi
2474echo "$as_me:$LINENO: result: yes" >&5
2475echo "${ECHO_T}yes" >&6
2476
John Criswell0c38eaf2003-09-10 15:17:25 +00002477rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002478ac_clean_files=$ac_clean_files_save
2479# Check the compiler produces executables we can run. If not, either
2480# the compiler is broken, or we cross compile.
2481echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484echo "${ECHO_T}$cross_compiling" >&6
2485
2486echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495# work properly (i.e., refer to `conftest.exe'), while it won't with
2496# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002497for ac_file in conftest.exe conftest conftest.*; do
2498 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002499 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 export ac_cv_exeext
2503 break;;
2504 * ) break;;
2505 esac
2506done
2507else
John Criswell0c38eaf2003-09-10 15:17:25 +00002508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509See \`config.log' for more details." >&5
2510echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002512 { (exit 1); exit 1; }; }
2513fi
2514
2515rm -f conftest$ac_cv_exeext
2516echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517echo "${ECHO_T}$ac_cv_exeext" >&6
2518
2519rm -f conftest.$ac_ext
2520EXEEXT=$ac_cv_exeext
2521ac_exeext=$EXEEXT
2522echo "$as_me:$LINENO: checking for suffix of object files" >&5
2523echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2524if test "${ac_cv_objext+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 cat >conftest.$ac_ext <<_ACEOF
2528#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002529/* confdefs.h. */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002534
John Criswell7a73b802003-06-30 21:59:07 +00002535int
2536main ()
2537{
2538
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543rm -f conftest.o conftest.obj
2544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555done
2556else
2557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561See \`config.log' for more details." >&5
2562echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002564 { (exit 1); exit 1; }; }
2565fi
2566
2567rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568fi
2569echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570echo "${ECHO_T}$ac_cv_objext" >&6
2571OBJEXT=$ac_cv_objext
2572ac_objext=$OBJEXT
2573echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 cat >conftest.$ac_ext <<_ACEOF
2579#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002580/* confdefs.h. */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002585
John Criswell7a73b802003-06-30 21:59:07 +00002586int
2587main ()
2588{
2589#ifndef __GNUC__
2590 choke me
2591#endif
2592
2593 ;
2594 return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610else
2611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002612sed 's/^/| /' conftest.$ac_ext >&5
2613
John Criswell7a73b802003-06-30 21:59:07 +00002614ac_compiler_gnu=no
2615fi
2616rm -f conftest.$ac_objext conftest.$ac_ext
2617ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618
2619fi
2620echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622GXX=`test $ac_compiler_gnu = yes && echo yes`
2623ac_test_CXXFLAGS=${CXXFLAGS+set}
2624ac_save_CXXFLAGS=$CXXFLAGS
2625CXXFLAGS="-g"
2626echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628if test "${ac_cv_prog_cxx_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631 cat >conftest.$ac_ext <<_ACEOF
2632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002638
John Criswell7a73b802003-06-30 21:59:07 +00002639int
2640main ()
2641{
2642
2643 ;
2644 return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649 (eval $ac_compile) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2659 ac_cv_prog_cxx_g=yes
2660else
2661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002662sed 's/^/| /' conftest.$ac_ext >&5
2663
John Criswell7a73b802003-06-30 21:59:07 +00002664ac_cv_prog_cxx_g=no
2665fi
2666rm -f conftest.$ac_objext conftest.$ac_ext
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2669echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2670if test "$ac_test_CXXFLAGS" = set; then
2671 CXXFLAGS=$ac_save_CXXFLAGS
2672elif test $ac_cv_prog_cxx_g = yes; then
2673 if test "$GXX" = yes; then
2674 CXXFLAGS="-g -O2"
2675 else
2676 CXXFLAGS="-g"
2677 fi
2678else
2679 if test "$GXX" = yes; then
2680 CXXFLAGS="-O2"
2681 else
2682 CXXFLAGS=
2683 fi
2684fi
2685for ac_declaration in \
2686 ''\
2687 '#include <stdlib.h>' \
2688 'extern "C" void std::exit (int) throw (); using std::exit;' \
2689 'extern "C" void std::exit (int); using std::exit;' \
2690 'extern "C" void exit (int) throw ();' \
2691 'extern "C" void exit (int);' \
2692 'void exit (int);'
2693do
2694 cat >conftest.$ac_ext <<_ACEOF
2695#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002696/* confdefs.h. */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002701#include <stdlib.h>
2702$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002703int
2704main ()
2705{
2706exit (42);
2707 ;
2708 return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>&5
2714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; }; then
2723 :
2724else
2725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002726sed 's/^/| /' conftest.$ac_ext >&5
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728continue
2729fi
2730rm -f conftest.$ac_objext conftest.$ac_ext
2731 cat >conftest.$ac_ext <<_ACEOF
2732#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002738$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002739int
2740main ()
2741{
2742exit (42);
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 break
2760else
2761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002762sed 's/^/| /' conftest.$ac_ext >&5
2763
John Criswell7a73b802003-06-30 21:59:07 +00002764fi
2765rm -f conftest.$ac_objext conftest.$ac_ext
2766done
2767rm -f conftest*
2768if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2772fi
2773
2774ac_ext=c
2775ac_cpp='$CPP $CPPFLAGS'
2776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780ac_ext=c
2781ac_cpp='$CPP $CPPFLAGS'
2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785if test -n "$ac_tool_prefix"; then
2786 for ac_prog in gcc
2787 do
2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790echo "$as_me:$LINENO: checking for $ac_word" >&5
2791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792if test "${ac_cv_prog_CC+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809done
2810done
2811
2812fi
2813fi
2814CC=$ac_cv_prog_CC
2815if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817echo "${ECHO_T}$CC" >&6
2818else
2819 echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6
2821fi
2822
2823 test -n "$CC" && break
2824 done
2825fi
2826if test -z "$CC"; then
2827 ac_ct_CC=$CC
2828 for ac_prog in gcc
2829do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831set dummy $ac_prog; ac_word=$2
2832echo "$as_me:$LINENO: checking for $ac_word" >&5
2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2834if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 if test -n "$ac_ct_CC"; then
2838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_ac_ct_CC="$ac_prog"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852done
2853
2854fi
2855fi
2856ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857if test -n "$ac_ct_CC"; then
2858 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859echo "${ECHO_T}$ac_ct_CC" >&6
2860else
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863fi
2864
2865 test -n "$ac_ct_CC" && break
2866done
2867
2868 CC=$ac_ct_CC
2869fi
2870
2871
John Criswell0c38eaf2003-09-10 15:17:25 +00002872test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2873See \`config.log' for more details." >&5
2874echo "$as_me: error: no acceptable C compiler found in \$PATH
2875See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002876 { (exit 1); exit 1; }; }
2877
2878# Provide some information about the compiler.
2879echo "$as_me:$LINENO:" \
2880 "checking for C compiler version" >&5
2881ac_compiler=`set X $ac_compile; echo $2`
2882{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2883 (eval $ac_compiler --version </dev/null >&5) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2888 (eval $ac_compiler -v </dev/null >&5) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2893 (eval $ac_compiler -V </dev/null >&5) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897
2898echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2899echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2900if test "${ac_cv_c_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902else
2903 cat >conftest.$ac_ext <<_ACEOF
2904#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002910
John Criswell7a73b802003-06-30 21:59:07 +00002911int
2912main ()
2913{
2914#ifndef __GNUC__
2915 choke me
2916#endif
2917
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922rm -f conftest.$ac_objext
2923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_compiler_gnu=yes
2935else
2936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002937sed 's/^/| /' conftest.$ac_ext >&5
2938
John Criswell7a73b802003-06-30 21:59:07 +00002939ac_compiler_gnu=no
2940fi
2941rm -f conftest.$ac_objext conftest.$ac_ext
2942ac_cv_c_compiler_gnu=$ac_compiler_gnu
2943
2944fi
2945echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2946echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2947GCC=`test $ac_compiler_gnu = yes && echo yes`
2948ac_test_CFLAGS=${CFLAGS+set}
2949ac_save_CFLAGS=$CFLAGS
2950CFLAGS="-g"
2951echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2952echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2953if test "${ac_cv_prog_cc_g+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 cat >conftest.$ac_ext <<_ACEOF
2957#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002958/* confdefs.h. */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972rm -f conftest.$ac_objext
2973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974 (eval $ac_compile) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_cv_prog_cc_g=yes
2985else
2986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002987sed 's/^/| /' conftest.$ac_ext >&5
2988
John Criswell7a73b802003-06-30 21:59:07 +00002989ac_cv_prog_cc_g=no
2990fi
2991rm -f conftest.$ac_objext conftest.$ac_ext
2992fi
2993echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2994echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2995if test "$ac_test_CFLAGS" = set; then
2996 CFLAGS=$ac_save_CFLAGS
2997elif test $ac_cv_prog_cc_g = yes; then
2998 if test "$GCC" = yes; then
2999 CFLAGS="-g -O2"
3000 else
3001 CFLAGS="-g"
3002 fi
3003else
3004 if test "$GCC" = yes; then
3005 CFLAGS="-O2"
3006 else
3007 CFLAGS=
3008 fi
3009fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003010echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3011echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3012if test "${ac_cv_prog_cc_stdc+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015 ac_cv_prog_cc_stdc=no
3016ac_save_CC=$CC
3017cat >conftest.$ac_ext <<_ACEOF
3018#line $LINENO "configure"
3019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
3024#include <stdarg.h>
3025#include <stdio.h>
3026#include <sys/types.h>
3027#include <sys/stat.h>
3028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3029struct buf { int x; };
3030FILE * (*rcsopen) (struct buf *, struct stat *, int);
3031static char *e (p, i)
3032 char **p;
3033 int i;
3034{
3035 return p[i];
3036}
3037static char *f (char * (*g) (char **, int), char **p, ...)
3038{
3039 char *s;
3040 va_list v;
3041 va_start (v,p);
3042 s = g (p, va_arg (v,int));
3043 va_end (v);
3044 return s;
3045}
3046int test (int i, double x);
3047struct s1 {int (*f) (int a);};
3048struct s2 {int (*f) (double a);};
3049int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050int argc;
3051char **argv;
3052int
3053main ()
3054{
3055return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060# Don't try gcc -ansi; that turns off useful extensions and
3061# breaks some systems' header files.
3062# AIX -qlanglvl=ansi
3063# Ultrix and OSF/1 -std1
3064# HP-UX 10.20 and later -Ae
3065# HP-UX older versions -Aa -D_HPUX_SOURCE
3066# SVR4 -Xc -D__EXTENSIONS__
3067for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3068do
3069 CC="$ac_save_CC $ac_arg"
3070 rm -f conftest.$ac_objext
3071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest.$ac_objext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_prog_cc_stdc=$ac_arg
3083break
3084else
3085 echo "$as_me: failed program was:" >&5
3086sed 's/^/| /' conftest.$ac_ext >&5
3087
3088fi
3089rm -f conftest.$ac_objext
3090done
3091rm -f conftest.$ac_ext conftest.$ac_objext
3092CC=$ac_save_CC
3093
3094fi
3095
3096case "x$ac_cv_prog_cc_stdc" in
3097 x|xno)
3098 echo "$as_me:$LINENO: result: none needed" >&5
3099echo "${ECHO_T}none needed" >&6 ;;
3100 *)
3101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3102echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3103 CC="$CC $ac_cv_prog_cc_stdc" ;;
3104esac
3105
John Criswell7a73b802003-06-30 21:59:07 +00003106# Some people use a C++ compiler to compile C. Since we use `exit',
3107# in C++ we need to declare it. In case someone uses the same compiler
3108# for both compiling C and C++ we need to have the C++ compiler decide
3109# the declaration of exit, since it's the most demanding environment.
3110cat >conftest.$ac_ext <<_ACEOF
3111#ifndef __cplusplus
3112 choke me
3113#endif
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3117 (eval $ac_compile) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3127 for ac_declaration in \
3128 ''\
3129 '#include <stdlib.h>' \
3130 'extern "C" void std::exit (int) throw (); using std::exit;' \
3131 'extern "C" void std::exit (int); using std::exit;' \
3132 'extern "C" void exit (int) throw ();' \
3133 'extern "C" void exit (int);' \
3134 'void exit (int);'
3135do
3136 cat >conftest.$ac_ext <<_ACEOF
3137#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003143#include <stdlib.h>
3144$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003145int
3146main ()
3147{
3148exit (42);
3149 ;
3150 return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 :
3166else
3167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003168sed 's/^/| /' conftest.$ac_ext >&5
3169
John Criswell7a73b802003-06-30 21:59:07 +00003170continue
3171fi
3172rm -f conftest.$ac_objext conftest.$ac_ext
3173 cat >conftest.$ac_ext <<_ACEOF
3174#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003175/* confdefs.h. */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003180$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003181int
3182main ()
3183{
3184exit (42);
3185 ;
3186 return 0;
3187}
3188_ACEOF
3189rm -f conftest.$ac_objext
3190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 break
3202else
3203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003204sed 's/^/| /' conftest.$ac_ext >&5
3205
John Criswell7a73b802003-06-30 21:59:07 +00003206fi
3207rm -f conftest.$ac_objext conftest.$ac_ext
3208done
3209rm -f conftest*
3210if test -n "$ac_declaration"; then
3211 echo '#ifdef __cplusplus' >>confdefs.h
3212 echo $ac_declaration >>confdefs.h
3213 echo '#endif' >>confdefs.h
3214fi
3215
3216else
3217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003218sed 's/^/| /' conftest.$ac_ext >&5
3219
John Criswell7a73b802003-06-30 21:59:07 +00003220fi
3221rm -f conftest.$ac_objext conftest.$ac_ext
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228ac_ext=c
3229ac_cpp='$CPP $CPPFLAGS'
3230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3234echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3235# On Suns, sometimes $CPP names a directory.
3236if test -n "$CPP" && test -d "$CPP"; then
3237 CPP=
3238fi
3239if test -z "$CPP"; then
3240 if test "${ac_cv_prog_CPP+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243 # Double quotes because CPP needs to be expanded
3244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3245 do
3246 ac_preproc_ok=false
3247for ac_c_preproc_warn_flag in '' yes
3248do
3249 # Use a header file that comes with gcc, so configuring glibc
3250 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3252 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003253 # On the NeXT, cc -E runs the code through the compiler's parser,
3254 # not just through cpp. "Syntax error" is here to catch this case.
3255 cat >conftest.$ac_ext <<_ACEOF
3256#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262#ifdef __STDC__
3263# include <limits.h>
3264#else
3265# include <assert.h>
3266#endif
John Criswell7a73b802003-06-30 21:59:07 +00003267 Syntax error
3268_ACEOF
3269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003272 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3279 else
3280 ac_cpp_err=
3281 fi
3282else
3283 ac_cpp_err=yes
3284fi
3285if test -z "$ac_cpp_err"; then
3286 :
3287else
3288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003289sed 's/^/| /' conftest.$ac_ext >&5
3290
John Criswell7a73b802003-06-30 21:59:07 +00003291 # Broken: fails on valid input.
3292continue
3293fi
3294rm -f conftest.err conftest.$ac_ext
3295
3296 # OK, works on sane cases. Now check whether non-existent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3299#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003300/* confdefs.h. */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003305#include <ac_nonexistent.h>
3306_ACEOF
3307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003310 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 else
3318 ac_cpp_err=
3319 fi
3320else
3321 ac_cpp_err=yes
3322fi
3323if test -z "$ac_cpp_err"; then
3324 # Broken: success on invalid input.
3325continue
3326else
3327 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003328sed 's/^/| /' conftest.$ac_ext >&5
3329
John Criswell7a73b802003-06-30 21:59:07 +00003330 # Passes both tests.
3331ac_preproc_ok=:
3332break
3333fi
3334rm -f conftest.err conftest.$ac_ext
3335
3336done
3337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338rm -f conftest.err conftest.$ac_ext
3339if $ac_preproc_ok; then
3340 break
3341fi
3342
3343 done
3344 ac_cv_prog_CPP=$CPP
3345
3346fi
3347 CPP=$ac_cv_prog_CPP
3348else
3349 ac_cv_prog_CPP=$CPP
3350fi
3351echo "$as_me:$LINENO: result: $CPP" >&5
3352echo "${ECHO_T}$CPP" >&6
3353ac_preproc_ok=false
3354for ac_c_preproc_warn_flag in '' yes
3355do
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat >conftest.$ac_ext <<_ACEOF
3363#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
John Criswell7a73b802003-06-30 21:59:07 +00003374 Syntax error
3375_ACEOF
3376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003379 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 else
3387 ac_cpp_err=
3388 fi
3389else
3390 ac_cpp_err=yes
3391fi
3392if test -z "$ac_cpp_err"; then
3393 :
3394else
3395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003396sed 's/^/| /' conftest.$ac_ext >&5
3397
John Criswell7a73b802003-06-30 21:59:07 +00003398 # Broken: fails on valid input.
3399continue
3400fi
3401rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether non-existent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003412#include <ac_nonexistent.h>
3413_ACEOF
3414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3416 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003417 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003418 rm -f conftest.er1
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 else
3425 ac_cpp_err=
3426 fi
3427else
3428 ac_cpp_err=yes
3429fi
3430if test -z "$ac_cpp_err"; then
3431 # Broken: success on invalid input.
3432continue
3433else
3434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003435sed 's/^/| /' conftest.$ac_ext >&5
3436
John Criswell7a73b802003-06-30 21:59:07 +00003437 # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
3441rm -f conftest.err conftest.$ac_ext
3442
3443done
3444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445rm -f conftest.err conftest.$ac_ext
3446if $ac_preproc_ok; then
3447 :
3448else
John Criswell0c38eaf2003-09-10 15:17:25 +00003449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450See \`config.log' for more details." >&5
3451echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003453 { (exit 1); exit 1; }; }
3454fi
3455
3456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463if test "$GCC" != "yes"
3464then
3465 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3466echo "$as_me: error: gcc required but not found" >&2;}
3467 { (exit 1); exit 1; }; }
3468fi
3469
3470if test "$GXX" != "yes"
3471then
3472 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3473echo "$as_me: error: g++ required but not found" >&2;}
3474 { (exit 1); exit 1; }; }
3475fi
3476
John Criswellde00db22003-08-25 16:49:54 +00003477gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3478if test "$gccmajor" -lt "3"
3479then
3480 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3481echo "$as_me: error: gcc 3.x required" >&2;}
3482 { (exit 1); exit 1; }; }
3483fi
3484
John Criswell7a73b802003-06-30 21:59:07 +00003485 echo "$as_me:$LINENO: checking for GNU make" >&5
3486echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3487if test "${_cv_gnu_make_command+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490 _cv_gnu_make_command='' ;
3491 for a in "$MAKE" make gmake gnumake ; do
3492 if test -z "$a" ; then continue ; fi ;
3493 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3494 _cv_gnu_make_command=$a ;
3495 break;
3496 fi
3497 done ;
3498
3499fi
3500echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3501echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3502 if test "x$_cv_gnu_make_command" != "x" ; then
3503 ifGNUmake='' ;
3504 else
3505 ifGNUmake='#' ;
3506 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3507echo "${ECHO_T}\"Not found\"" >&6;
3508 fi
3509
3510
3511if test -z "$_cv_gnu_make_command"
3512then
3513 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3514echo "$as_me: error: GNU Make required but not found" >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518
3519echo "$as_me:$LINENO: checking " >&5
3520echo $ECHO_N "checking ... $ECHO_C" >&6
3521if test "${ac_cv_has_flex+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 for ac_prog in flex lex
3525do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
3528echo "$as_me:$LINENO: checking for $ac_word" >&5
3529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530if test "${ac_cv_prog_LEX+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 if test -n "$LEX"; then
3534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_LEX="$ac_prog"
3544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547done
3548done
3549
3550fi
3551fi
3552LEX=$ac_cv_prog_LEX
3553if test -n "$LEX"; then
3554 echo "$as_me:$LINENO: result: $LEX" >&5
3555echo "${ECHO_T}$LEX" >&6
3556else
3557 echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6
3559fi
3560
3561 test -n "$LEX" && break
3562done
3563test -n "$LEX" || LEX=":"
3564
3565if test -z "$LEXLIB"
3566then
3567 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3568echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3569if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571else
3572 ac_check_lib_save_LIBS=$LIBS
3573LIBS="-lfl $LIBS"
3574cat >conftest.$ac_ext <<_ACEOF
3575#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003576/* confdefs.h. */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003581
3582/* Override any gcc2 internal prototype to avoid an error. */
3583#ifdef __cplusplus
3584extern "C"
3585#endif
3586/* We use char because int might match the return type of a gcc2
3587 builtin and then its argument prototype would still apply. */
3588char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003589int
3590main ()
3591{
3592yywrap ();
3593 ;
3594 return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599 (eval $ac_link) 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } &&
3603 { ac_try='test -s conftest$ac_exeext'
3604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605 (eval $ac_try) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }; }; then
3609 ac_cv_lib_fl_yywrap=yes
3610else
3611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003612sed 's/^/| /' conftest.$ac_ext >&5
3613
John Criswell7a73b802003-06-30 21:59:07 +00003614ac_cv_lib_fl_yywrap=no
3615fi
3616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3617LIBS=$ac_check_lib_save_LIBS
3618fi
3619echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3620echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3621if test $ac_cv_lib_fl_yywrap = yes; then
3622 LEXLIB="-lfl"
3623else
3624 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3625echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3626if test "${ac_cv_lib_l_yywrap+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3628else
3629 ac_check_lib_save_LIBS=$LIBS
3630LIBS="-ll $LIBS"
3631cat >conftest.$ac_ext <<_ACEOF
3632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003633/* confdefs.h. */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003638
3639/* Override any gcc2 internal prototype to avoid an error. */
3640#ifdef __cplusplus
3641extern "C"
3642#endif
3643/* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3645char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003646int
3647main ()
3648{
3649yywrap ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -s conftest$ac_exeext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5
3663 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_lib_l_yywrap=yes
3667else
3668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003669sed 's/^/| /' conftest.$ac_ext >&5
3670
John Criswell7a73b802003-06-30 21:59:07 +00003671ac_cv_lib_l_yywrap=no
3672fi
3673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3674LIBS=$ac_check_lib_save_LIBS
3675fi
3676echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3677echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3678if test $ac_cv_lib_l_yywrap = yes; then
3679 LEXLIB="-ll"
3680fi
3681
3682fi
3683
3684fi
3685
3686if test "x$LEX" != "x:"; then
3687 echo "$as_me:$LINENO: checking lex output file root" >&5
3688echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3689if test "${ac_cv_prog_lex_root+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692 # The minimal lex program is just a single line: %%. But some broken lexes
3693# (Solaris, I think it was) want two %% lines, so accommodate them.
3694cat >conftest.l <<_ACEOF
3695%%
3696%%
3697_ACEOF
3698{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3699 (eval $LEX conftest.l) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3703if test -f lex.yy.c; then
3704 ac_cv_prog_lex_root=lex.yy
3705elif test -f lexyy.c; then
3706 ac_cv_prog_lex_root=lexyy
3707else
3708 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3709echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3710 { (exit 1); exit 1; }; }
3711fi
3712fi
3713echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3714echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3715rm -f conftest.l
3716LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3717
3718echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3719echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3720if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723 # POSIX says lex can declare yytext either as a pointer or an array; the
3724# default is implementation-dependent. Figure out which it is, since
3725# not all implementations provide the %pointer and %array declarations.
3726ac_cv_prog_lex_yytext_pointer=no
3727echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3728ac_save_LIBS=$LIBS
3729LIBS="$LIBS $LEXLIB"
3730cat >conftest.$ac_ext <<_ACEOF
3731`cat $LEX_OUTPUT_ROOT.c`
3732_ACEOF
3733rm -f conftest.$ac_objext conftest$ac_exeext
3734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_prog_lex_yytext_pointer=yes
3746else
3747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003748sed 's/^/| /' conftest.$ac_ext >&5
3749
John Criswell7a73b802003-06-30 21:59:07 +00003750fi
3751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752LIBS=$ac_save_LIBS
3753rm -f "${LEX_OUTPUT_ROOT}.c"
3754
3755fi
3756echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3757echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3758if test $ac_cv_prog_lex_yytext_pointer = yes; then
3759
3760cat >>confdefs.h <<\_ACEOF
3761#define YYTEXT_POINTER 1
3762_ACEOF
3763
3764fi
3765
3766fi
3767
3768fi
3769echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3770echo "${ECHO_T}$ac_cv_has_flex" >&6
3771if test "$LEX" != "flex"; then
3772 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3773echo "$as_me: error: flex not found but required" >&2;}
3774 { (exit 1); exit 1; }; }
3775fi
3776
3777echo "$as_me:$LINENO: checking " >&5
3778echo $ECHO_N "checking ... $ECHO_C" >&6
3779if test "${ac_cv_has_bison+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 for ac_prog in 'bison -y' byacc
3783do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785set dummy $ac_prog; ac_word=$2
3786echo "$as_me:$LINENO: checking for $ac_word" >&5
3787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788if test "${ac_cv_prog_YACC+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 if test -n "$YACC"; then
3792 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_YACC="$ac_prog"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806done
3807
3808fi
3809fi
3810YACC=$ac_cv_prog_YACC
3811if test -n "$YACC"; then
3812 echo "$as_me:$LINENO: result: $YACC" >&5
3813echo "${ECHO_T}$YACC" >&6
3814else
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817fi
3818
3819 test -n "$YACC" && break
3820done
3821test -n "$YACC" || YACC="yacc"
3822
3823
3824fi
3825echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3826echo "${ECHO_T}$ac_cv_has_bison" >&6
3827if test "$YACC" != "bison -y"; then
3828 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3829echo "$as_me: error: bison not found but required" >&2;}
3830 { (exit 1); exit 1; }; }
3831else
3832 YACC=bison
3833
3834fi
3835
3836
3837# Check whether --enable-shared or --disable-shared was given.
3838if test "${enable_shared+set}" = set; then
3839 enableval="$enable_shared"
3840 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003841 case $enableval in
3842 yes) enable_shared=yes ;;
3843 no) enable_shared=no ;;
3844 *)
3845 enable_shared=no
3846 # Look at the argument we got. We use all the common list separators.
3847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848 for pkg in $enableval; do
3849 IFS="$lt_save_ifs"
3850 if test "X$pkg" = "X$p"; then
3851 enable_shared=yes
3852 fi
3853 done
3854 IFS="$lt_save_ifs"
3855 ;;
3856 esac
John Criswell7a73b802003-06-30 21:59:07 +00003857else
3858 enable_shared=yes
3859fi;
John Criswell47fdd832003-07-14 16:52:07 +00003860
John Criswell7a73b802003-06-30 21:59:07 +00003861# Check whether --enable-static or --disable-static was given.
3862if test "${enable_static+set}" = set; then
3863 enableval="$enable_static"
3864 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003865 case $enableval in
3866 yes) enable_static=yes ;;
3867 no) enable_static=no ;;
3868 *)
3869 enable_static=no
3870 # Look at the argument we got. We use all the common list separators.
3871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3872 for pkg in $enableval; do
3873 IFS="$lt_save_ifs"
3874 if test "X$pkg" = "X$p"; then
3875 enable_static=yes
3876 fi
3877 done
3878 IFS="$lt_save_ifs"
3879 ;;
3880 esac
John Criswell7a73b802003-06-30 21:59:07 +00003881else
3882 enable_static=yes
3883fi;
John Criswell47fdd832003-07-14 16:52:07 +00003884
John Criswell7a73b802003-06-30 21:59:07 +00003885# Check whether --enable-fast-install or --disable-fast-install was given.
3886if test "${enable_fast_install+set}" = set; then
3887 enableval="$enable_fast_install"
3888 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003889 case $enableval in
3890 yes) enable_fast_install=yes ;;
3891 no) enable_fast_install=no ;;
3892 *)
3893 enable_fast_install=no
3894 # Look at the argument we got. We use all the common list separators.
3895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3896 for pkg in $enableval; do
3897 IFS="$lt_save_ifs"
3898 if test "X$pkg" = "X$p"; then
3899 enable_fast_install=yes
3900 fi
3901 done
3902 IFS="$lt_save_ifs"
3903 ;;
3904 esac
John Criswell7a73b802003-06-30 21:59:07 +00003905else
3906 enable_fast_install=yes
3907fi;
John Criswell47fdd832003-07-14 16:52:07 +00003908
3909echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3910echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3911if test "${lt_cv_path_SED+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 # Loop through the user's path and test for sed and gsed.
3915# Then use that list of sed's as ones to test for truncation.
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for lt_ac_prog in sed gsed; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3924 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3925 fi
3926 done
3927 done
3928done
3929lt_ac_max=0
3930lt_ac_count=0
3931# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3932# along with /bin/sed that truncates output.
3933for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3934 test ! -f $lt_ac_sed && break
3935 cat /dev/null > conftest.in
3936 lt_ac_count=0
3937 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3938 # Check for GNU sed and select it if it is found.
3939 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3940 lt_cv_path_SED=$lt_ac_sed
3941 break
3942 fi
3943 while true; do
3944 cat conftest.in conftest.in >conftest.tmp
3945 mv conftest.tmp conftest.in
3946 cp conftest.in conftest.nl
3947 echo >>conftest.nl
3948 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3949 cmp -s conftest.out conftest.nl || break
3950 # 10000 chars as input seems more than enough
3951 test $lt_ac_count -gt 10 && break
3952 lt_ac_count=`expr $lt_ac_count + 1`
3953 if test $lt_ac_count -gt $lt_ac_max; then
3954 lt_ac_max=$lt_ac_count
3955 lt_cv_path_SED=$lt_ac_sed
3956 fi
3957 done
3958done
3959SED=$lt_cv_path_SED
3960
John Criswell7a73b802003-06-30 21:59:07 +00003961fi
3962
John Criswell47fdd832003-07-14 16:52:07 +00003963echo "$as_me:$LINENO: result: $SED" >&5
3964echo "${ECHO_T}$SED" >&6
3965
3966echo "$as_me:$LINENO: checking for egrep" >&5
3967echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3968if test "${ac_cv_prog_egrep+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3970else
3971 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3972 then ac_cv_prog_egrep='grep -E'
3973 else ac_cv_prog_egrep='egrep'
3974 fi
3975fi
3976echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3977echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3978 EGREP=$ac_cv_prog_egrep
3979
3980
John Criswell7a73b802003-06-30 21:59:07 +00003981
3982# Check whether --with-gnu-ld or --without-gnu-ld was given.
3983if test "${with_gnu_ld+set}" = set; then
3984 withval="$with_gnu_ld"
3985 test "$withval" = no || with_gnu_ld=yes
3986else
3987 with_gnu_ld=no
3988fi;
3989ac_prog=ld
3990if test "$GCC" = yes; then
3991 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003992 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3993echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003994 case $host in
3995 *-*-mingw*)
3996 # gcc leaves a trailing carriage return which upsets mingw
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3998 *)
3999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4000 esac
4001 case $ac_prog in
4002 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004003 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004004 re_direlt='/[^/][^/]*/\.\./'
4005 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004006 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004008 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004009 done
4010 test -z "$LD" && LD="$ac_prog"
4011 ;;
4012 "")
4013 # If it fails, then pretend we aren't using GCC.
4014 ac_prog=ld
4015 ;;
4016 *)
4017 # If it is relative, then search for the first ld in PATH.
4018 with_gnu_ld=unknown
4019 ;;
4020 esac
4021elif test "$with_gnu_ld" = yes; then
4022 echo "$as_me:$LINENO: checking for GNU ld" >&5
4023echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4024else
4025 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4026echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4027fi
4028if test "${lt_cv_path_LD+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004033 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004034 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004035 test -z "$ac_dir" && ac_dir=.
4036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4037 lt_cv_path_LD="$ac_dir/$ac_prog"
4038 # Check to see if the program is GNU ld. I'd rather use --version,
4039 # but apparently some GNU ld's only accept -v.
4040 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4042 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004043 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004044 ;;
4045 *)
John Criswell7a73b802003-06-30 21:59:07 +00004046 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004047 ;;
4048 esac
John Criswell7a73b802003-06-30 21:59:07 +00004049 fi
4050 done
John Criswell47fdd832003-07-14 16:52:07 +00004051 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004052else
4053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4054fi
4055fi
4056
4057LD="$lt_cv_path_LD"
4058if test -n "$LD"; then
4059 echo "$as_me:$LINENO: result: $LD" >&5
4060echo "${ECHO_T}$LD" >&6
4061else
4062 echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064fi
4065test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4066echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4067 { (exit 1); exit 1; }; }
4068echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4069echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4070if test "${lt_cv_prog_gnu_ld+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004074case `"$LD" -v 2>&1 </dev/null` in
4075*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004076 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004077 ;;
4078*)
John Criswell7a73b802003-06-30 21:59:07 +00004079 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004080 ;;
4081esac
John Criswell7a73b802003-06-30 21:59:07 +00004082fi
4083echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4084echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4085with_gnu_ld=$lt_cv_prog_gnu_ld
4086
4087
4088echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4089echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4090if test "${lt_cv_ld_reload_flag+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092else
4093 lt_cv_ld_reload_flag='-r'
4094fi
4095echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4096echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4097reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004098case $reload_flag in
4099"" | " "*) ;;
4100*) reload_flag=" $reload_flag" ;;
4101esac
4102reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004103
4104echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4105echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4106if test "${lt_cv_path_NM+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108else
4109 if test -n "$NM"; then
4110 # Let the user override the test.
4111 lt_cv_path_NM="$NM"
4112else
John Criswell47fdd832003-07-14 16:52:07 +00004113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004114 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004115 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004116 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004117 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4118 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004119 # Check to see if the nm accepts a BSD-compat flag.
4120 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4121 # nm: unknown option "B" ignored
4122 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004123 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4124 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004125 lt_cv_path_NM="$tmp_nm -B"
4126 break
John Criswell47fdd832003-07-14 16:52:07 +00004127 ;;
4128 *)
4129 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4130 */dev/null*)
4131 lt_cv_path_NM="$tmp_nm -p"
4132 break
4133 ;;
4134 *)
4135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4136 continue # so that we can try to find one that supports BSD flags
4137 ;;
4138 esac
4139 esac
John Criswell7a73b802003-06-30 21:59:07 +00004140 fi
4141 done
John Criswell47fdd832003-07-14 16:52:07 +00004142 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004143 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4144fi
4145fi
John Criswell47fdd832003-07-14 16:52:07 +00004146echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4147echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004148NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004149
4150echo "$as_me:$LINENO: checking whether ln -s works" >&5
4151echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4152LN_S=$as_ln_s
4153if test "$LN_S" = "ln -s"; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156else
4157 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4158echo "${ECHO_T}no, using $LN_S" >&6
4159fi
4160
John Criswell47fdd832003-07-14 16:52:07 +00004161echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4162echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004163if test "${lt_cv_deplibs_check_method+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 lt_cv_file_magic_cmd='$MAGIC_CMD'
4167lt_cv_file_magic_test_file=
4168lt_cv_deplibs_check_method='unknown'
4169# Need to set the preceding variable on all platforms that support
4170# interlibrary dependencies.
4171# 'none' -- dependencies not supported.
4172# `unknown' -- same as none, but documents that we really don't know.
4173# 'pass_all' -- all dependencies passed with no checks.
4174# 'test_compile' -- check by making test program.
4175# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004176# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004177# If you have `file' or equivalent on your system and you're not sure
4178# whether `pass_all' will *always* work, you probably want this one.
4179
4180case $host_os in
4181aix4* | aix5*)
4182 lt_cv_deplibs_check_method=pass_all
4183 ;;
4184
4185beos*)
4186 lt_cv_deplibs_check_method=pass_all
4187 ;;
4188
4189bsdi4*)
4190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4191 lt_cv_file_magic_cmd='/usr/bin/file -L'
4192 lt_cv_file_magic_test_file=/shlib/libc.so
4193 ;;
4194
4195cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004196 # win32_libid is a shell function defined in ltmain.sh
4197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4198 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004199 ;;
4200
4201darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004202 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004203 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4204 lt_cv_file_magic_cmd='/usr/bin/file -L'
4205 case "$host_os" in
4206 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004207 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004208 ;;
4209 *) # Darwin 1.3 on
4210 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4211 ;;
4212 esac
John Criswell47fdd832003-07-14 16:52:07 +00004213 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004214 ;;
4215
4216freebsd*)
4217 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4218 case $host_cpu in
4219 i*86 )
4220 # Not sure whether the presence of OpenBSD here was a mistake.
4221 # Let's accept both of them until this is cleared up.
4222 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4223 lt_cv_file_magic_cmd=/usr/bin/file
4224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4225 ;;
4226 esac
4227 else
4228 lt_cv_deplibs_check_method=pass_all
4229 fi
4230 ;;
4231
4232gnu*)
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
John Criswell47fdd832003-07-14 16:52:07 +00004236hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004237 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004238 case "$host_cpu" in
4239 ia64*)
4240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4242 ;;
4243 hppa*64*)
4244 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]'
4245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4246 ;;
4247 *)
4248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250 ;;
4251 esac
John Criswell7a73b802003-06-30 21:59:07 +00004252 ;;
4253
John Criswell47fdd832003-07-14 16:52:07 +00004254irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004255 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004256 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004257 # this will be overridden with pass_all, but let us keep it just in case
4258 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4259 ;;
4260 *)
4261 case $LD in
4262 *-32|*"-32 ") libmagic=32-bit;;
4263 *-n32|*"-n32 ") libmagic=N32;;
4264 *-64|*"-64 ") libmagic=64-bit;;
4265 *) libmagic=never-match;;
4266 esac
4267 # this will be overridden with pass_all, but let us keep it just in case
4268 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4269 ;;
4270 esac
4271 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
4274
4275# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004276linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004277 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004278 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004279 lt_cv_deplibs_check_method=pass_all ;;
4280 *)
4281 # glibc up to 2.1.1 does not perform some relocations on ARM
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4283 esac
4284 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4285 ;;
4286
4287netbsd*)
4288 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004290 else
John Criswell47fdd832003-07-14 16:52:07 +00004291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004292 fi
4293 ;;
4294
4295newos6*)
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 ;;
4300
John Criswell47fdd832003-07-14 16:52:07 +00004301nto-qnx)
4302 lt_cv_deplibs_check_method=unknown
4303 ;;
4304
John Criswell7a73b802003-06-30 21:59:07 +00004305openbsd*)
4306 lt_cv_file_magic_cmd=/usr/bin/file
4307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4310 else
4311 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4312 fi
4313 ;;
4314
4315osf3* | osf4* | osf5*)
4316 # this will be overridden with pass_all, but let us keep it just in case
4317 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4318 lt_cv_file_magic_test_file=/shlib/libc.so
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322sco3.2v5*)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325
4326solaris*)
4327 lt_cv_deplibs_check_method=pass_all
4328 lt_cv_file_magic_test_file=/lib/libc.so
4329 ;;
4330
John Criswell7a73b802003-06-30 21:59:07 +00004331sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4332 case $host_vendor in
4333 motorola)
4334 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]'
4335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4336 ;;
4337 ncr)
4338 lt_cv_deplibs_check_method=pass_all
4339 ;;
4340 sequent)
4341 lt_cv_file_magic_cmd='/bin/file'
4342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4343 ;;
4344 sni)
4345 lt_cv_file_magic_cmd='/bin/file'
4346 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4347 lt_cv_file_magic_test_file=/lib/libc.so
4348 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004349 siemens)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004352 esac
4353 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004354
4355sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004358esac
4359
4360fi
4361echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4362echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4363file_magic_cmd=$lt_cv_file_magic_cmd
4364deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004365test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004366
4367
4368
4369
John Criswell47fdd832003-07-14 16:52:07 +00004370# If no C compiler was specified, use CC.
4371LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004372
John Criswell47fdd832003-07-14 16:52:07 +00004373# Allow CC to be a program name with arguments.
4374compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004375
John Criswell47fdd832003-07-14 16:52:07 +00004376# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4377if test "${enable_libtool_lock+set}" = set; then
4378 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004379
John Criswell47fdd832003-07-14 16:52:07 +00004380fi;
4381test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004382
John Criswell47fdd832003-07-14 16:52:07 +00004383# Some flags need to be propagated to the compiler or linker for good
4384# libtool support.
4385case $host in
4386ia64-*-hpux*)
4387 # Find out which ABI we are using.
4388 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004394 case `/usr/bin/file conftest.$ac_objext` in
4395 *ELF-32*)
4396 HPUX_IA64_MODE="32"
4397 ;;
4398 *ELF-64*)
4399 HPUX_IA64_MODE="64"
4400 ;;
4401 esac
4402 fi
4403 rm -rf conftest*
4404 ;;
4405*-*-irix6*)
4406 # Find out which ABI we are using.
John Criswell5ab73462003-10-09 15:44:28 +00004407 echo '#line 4407 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004412 (exit $ac_status); }; then
4413 if test "$lt_cv_prog_gnu_ld" = yes; then
4414 case `/usr/bin/file conftest.$ac_objext` in
4415 *32-bit*)
4416 LD="${LD-ld} -melf32bsmip"
4417 ;;
4418 *N32*)
4419 LD="${LD-ld} -melf32bmipn32"
4420 ;;
4421 *64-bit*)
4422 LD="${LD-ld} -melf64bmip"
4423 ;;
4424 esac
4425 else
4426 case `/usr/bin/file conftest.$ac_objext` in
4427 *32-bit*)
4428 LD="${LD-ld} -32"
4429 ;;
4430 *N32*)
4431 LD="${LD-ld} -n32"
4432 ;;
4433 *64-bit*)
4434 LD="${LD-ld} -64"
4435 ;;
4436 esac
4437 fi
4438 fi
4439 rm -rf conftest*
4440 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004441
John Criswell47fdd832003-07-14 16:52:07 +00004442x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4443 # Find out which ABI we are using.
4444 echo 'int i;' > conftest.$ac_ext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; then
4450 case "`/usr/bin/file conftest.o`" in
4451 *32-bit*)
4452 case $host in
4453 x86_64-*linux*)
4454 LD="${LD-ld} -m elf_i386"
4455 ;;
4456 ppc64-*linux*)
4457 LD="${LD-ld} -m elf32ppclinux"
4458 ;;
4459 s390x-*linux*)
4460 LD="${LD-ld} -m elf_s390"
4461 ;;
4462 sparc64-*linux*)
4463 LD="${LD-ld} -m elf32_sparc"
4464 ;;
4465 esac
4466 ;;
4467 *64-bit*)
4468 case $host in
4469 x86_64-*linux*)
4470 LD="${LD-ld} -m elf_x86_64"
4471 ;;
4472 ppc*-*linux*|powerpc*-*linux*)
4473 LD="${LD-ld} -m elf64ppc"
4474 ;;
4475 s390*-*linux*)
4476 LD="${LD-ld} -m elf64_s390"
4477 ;;
4478 sparc*-*linux*)
4479 LD="${LD-ld} -m elf64_sparc"
4480 ;;
4481 esac
4482 ;;
4483 esac
4484 fi
4485 rm -rf conftest*
4486 ;;
4487
4488*-*-sco3.2v5*)
4489 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4490 SAVE_CFLAGS="$CFLAGS"
4491 CFLAGS="$CFLAGS -belf"
4492 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4493echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4494if test "${lt_cv_cc_needs_belf+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503 cat >conftest.$ac_ext <<_ACEOF
4504#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004505/* confdefs.h. */
4506_ACEOF
4507cat confdefs.h >>conftest.$ac_ext
4508cat >>conftest.$ac_ext <<_ACEOF
4509/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004510
John Criswell47fdd832003-07-14 16:52:07 +00004511int
4512main ()
John Criswell7a73b802003-06-30 21:59:07 +00004513{
John Criswell7a73b802003-06-30 21:59:07 +00004514
John Criswell47fdd832003-07-14 16:52:07 +00004515 ;
4516 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004517}
John Criswell47fdd832003-07-14 16:52:07 +00004518_ACEOF
4519rm -f conftest.$ac_objext conftest$ac_exeext
4520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004521 (eval $ac_link) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004524 (exit $ac_status); } &&
4525 { ac_try='test -s conftest$ac_exeext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004532else
John Criswell47fdd832003-07-14 16:52:07 +00004533 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004534sed 's/^/| /' conftest.$ac_ext >&5
4535
John Criswell47fdd832003-07-14 16:52:07 +00004536lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004537fi
John Criswell47fdd832003-07-14 16:52:07 +00004538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4539 ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544
John Criswell7a73b802003-06-30 21:59:07 +00004545fi
John Criswell47fdd832003-07-14 16:52:07 +00004546echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4547echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4550 CFLAGS="$SAVE_CFLAGS"
4551 fi
4552 ;;
4553
4554esac
4555
4556need_locks="$enable_libtool_lock"
4557
John Criswell7a73b802003-06-30 21:59:07 +00004558
4559
4560echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4561echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4562if test "${ac_cv_header_stdc+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 cat >conftest.$ac_ext <<_ACEOF
4566#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004572#include <stdlib.h>
4573#include <stdarg.h>
4574#include <string.h>
4575#include <float.h>
4576
John Criswell0c38eaf2003-09-10 15:17:25 +00004577int
4578main ()
4579{
4580
4581 ;
4582 return 0;
4583}
John Criswell7a73b802003-06-30 21:59:07 +00004584_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004585rm -f conftest.$ac_objext
4586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004588 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004590 (exit $ac_status); } &&
4591 { ac_try='test -s conftest.$ac_objext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004597 ac_cv_header_stdc=yes
4598else
4599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004603fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004604rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004605
4606if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat >conftest.$ac_ext <<_ACEOF
4609#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004610/* confdefs.h. */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004615#include <string.h>
4616
4617_ACEOF
4618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004619 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004620 :
4621else
4622 ac_cv_header_stdc=no
4623fi
4624rm -f conftest*
4625
4626fi
4627
4628if test $ac_cv_header_stdc = yes; then
4629 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
4638
4639_ACEOF
4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004641 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4652 if test "$cross_compiling" = yes; then
4653 :
4654else
4655 cat >conftest.$ac_ext <<_ACEOF
4656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004662#include <ctype.h>
4663#if ((' ' & 0x0FF) == 0x020)
4664# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004667# define ISLOWER(c) \
4668 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004669 || ('j' <= (c) && (c) <= 'r') \
4670 || ('s' <= (c) && (c) <= 'z'))
4671# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672#endif
4673
4674#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675int
4676main ()
4677{
4678 int i;
4679 for (i = 0; i < 256; i++)
4680 if (XOR (islower (i), ISLOWER (i))
4681 || toupper (i) != TOUPPER (i))
4682 exit(2);
4683 exit (0);
4684}
4685_ACEOF
4686rm -f conftest$ac_exeext
4687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688 (eval $ac_link) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 :
4698else
4699 echo "$as_me: program exited with status $ac_status" >&5
4700echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004701sed 's/^/| /' conftest.$ac_ext >&5
4702
John Criswell7a73b802003-06-30 21:59:07 +00004703( exit $ac_status )
4704ac_cv_header_stdc=no
4705fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004706rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004707fi
4708fi
4709fi
4710echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4711echo "${ECHO_T}$ac_cv_header_stdc" >&6
4712if test $ac_cv_header_stdc = yes; then
4713
4714cat >>confdefs.h <<\_ACEOF
4715#define STDC_HEADERS 1
4716_ACEOF
4717
4718fi
4719
4720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4731 inttypes.h stdint.h unistd.h
4732do
4733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4734echo "$as_me:$LINENO: checking for $ac_header" >&5
4735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739 cat >conftest.$ac_ext <<_ACEOF
4740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004746$ac_includes_default
4747
4748#include <$ac_header>
4749_ACEOF
4750rm -f conftest.$ac_objext
4751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 eval "$as_ac_Header=yes"
4763else
4764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004765sed 's/^/| /' conftest.$ac_ext >&5
4766
John Criswell7a73b802003-06-30 21:59:07 +00004767eval "$as_ac_Header=no"
4768fi
4769rm -f conftest.$ac_objext conftest.$ac_ext
4770fi
4771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4773if test `eval echo '${'$as_ac_Header'}'` = yes; then
4774 cat >>confdefs.h <<_ACEOF
4775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4776_ACEOF
4777
4778fi
4779
4780done
4781
4782
4783
4784for ac_header in dlfcn.h
4785do
4786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo "$as_me:$LINENO: checking for $ac_header" >&5
4789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792fi
4793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4795else
4796 # Is the header compilable?
4797echo "$as_me:$LINENO: checking $ac_header usability" >&5
4798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4799cat >conftest.$ac_ext <<_ACEOF
4800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004801/* confdefs.h. */
4802_ACEOF
4803cat confdefs.h >>conftest.$ac_ext
4804cat >>conftest.$ac_ext <<_ACEOF
4805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004806$ac_includes_default
4807#include <$ac_header>
4808_ACEOF
4809rm -f conftest.$ac_objext
4810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822else
4823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004824sed 's/^/| /' conftest.$ac_ext >&5
4825
John Criswell7a73b802003-06-30 21:59:07 +00004826ac_header_compiler=no
4827fi
4828rm -f conftest.$ac_objext conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832# Is the header present?
4833echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835cat >conftest.$ac_ext <<_ACEOF
4836#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004842#include <$ac_header>
4843_ACEOF
4844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4846 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004847 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null; then
4852 if test -s conftest.err; then
4853 ac_cpp_err=$ac_c_preproc_warn_flag
4854 else
4855 ac_cpp_err=
4856 fi
4857else
4858 ac_cpp_err=yes
4859fi
4860if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862else
4863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004864sed 's/^/| /' conftest.$ac_ext >&5
4865
John Criswell7a73b802003-06-30 21:59:07 +00004866 ac_header_preproc=no
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872# So? What about this header?
4873case $ac_header_compiler:$ac_header_preproc in
4874 yes:no )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4879 (
4880 cat <<\_ASBOX
4881## ------------------------------------ ##
4882## Report this to bug-autoconf@gnu.org. ##
4883## ------------------------------------ ##
4884_ASBOX
4885 ) |
4886 sed "s/^/$as_me: WARNING: /" >&2
4887 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004888 no:yes )
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4895 (
4896 cat <<\_ASBOX
4897## ------------------------------------ ##
4898## Report this to bug-autoconf@gnu.org. ##
4899## ------------------------------------ ##
4900_ASBOX
4901 ) |
4902 sed "s/^/$as_me: WARNING: /" >&2
4903 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004904esac
4905echo "$as_me:$LINENO: checking for $ac_header" >&5
4906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4907if eval "test \"\${$as_ac_Header+set}\" = set"; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 eval "$as_ac_Header=$ac_header_preproc"
4911fi
4912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4914
4915fi
4916if test `eval echo '${'$as_ac_Header'}'` = yes; then
4917 cat >>confdefs.h <<_ACEOF
4918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919_ACEOF
4920
4921fi
4922
4923done
4924
John Criswell47fdd832003-07-14 16:52:07 +00004925ac_ext=cc
4926ac_cpp='$CXXCPP $CPPFLAGS'
4927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4930echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4931echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4932if test -z "$CXXCPP"; then
4933 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
John Criswell47fdd832003-07-14 16:52:07 +00004936 # Double quotes because CXXCPP needs to be expanded
4937 for CXXCPP in "$CXX -E" "/lib/cpp"
4938 do
4939 ac_preproc_ok=false
4940for ac_cxx_preproc_warn_flag in '' yes
4941do
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat >conftest.$ac_ext <<_ACEOF
4949#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
4955#ifdef __STDC__
4956# include <limits.h>
4957#else
4958# include <assert.h>
4959#endif
John Criswell47fdd832003-07-14 16:52:07 +00004960 Syntax error
4961_ACEOF
4962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4964 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004965 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } >/dev/null; then
4970 if test -s conftest.err; then
4971 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004972 else
John Criswell47fdd832003-07-14 16:52:07 +00004973 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004974 fi
John Criswell47fdd832003-07-14 16:52:07 +00004975else
4976 ac_cpp_err=yes
4977fi
4978if test -z "$ac_cpp_err"; then
4979 :
4980else
4981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004982sed 's/^/| /' conftest.$ac_ext >&5
4983
John Criswell47fdd832003-07-14 16:52:07 +00004984 # Broken: fails on valid input.
4985continue
4986fi
4987rm -f conftest.err conftest.$ac_ext
4988
4989 # OK, works on sane cases. Now check whether non-existent headers
4990 # can be detected and how.
4991 cat >conftest.$ac_ext <<_ACEOF
4992#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004993/* confdefs.h. */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004998#include <ac_nonexistent.h>
4999_ACEOF
5000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005003 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005004 rm -f conftest.er1
5005 cat conftest.err >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } >/dev/null; then
5008 if test -s conftest.err; then
5009 ac_cpp_err=$ac_cxx_preproc_warn_flag
5010 else
5011 ac_cpp_err=
5012 fi
5013else
5014 ac_cpp_err=yes
5015fi
5016if test -z "$ac_cpp_err"; then
5017 # Broken: success on invalid input.
5018continue
5019else
5020 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005021sed 's/^/| /' conftest.$ac_ext >&5
5022
John Criswell47fdd832003-07-14 16:52:07 +00005023 # Passes both tests.
5024ac_preproc_ok=:
5025break
5026fi
5027rm -f conftest.err conftest.$ac_ext
5028
5029done
5030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031rm -f conftest.err conftest.$ac_ext
5032if $ac_preproc_ok; then
5033 break
John Criswell7a73b802003-06-30 21:59:07 +00005034fi
5035
John Criswell47fdd832003-07-14 16:52:07 +00005036 done
5037 ac_cv_prog_CXXCPP=$CXXCPP
5038
5039fi
5040 CXXCPP=$ac_cv_prog_CXXCPP
5041else
5042 ac_cv_prog_CXXCPP=$CXXCPP
5043fi
5044echo "$as_me:$LINENO: result: $CXXCPP" >&5
5045echo "${ECHO_T}$CXXCPP" >&6
5046ac_preproc_ok=false
5047for ac_cxx_preproc_warn_flag in '' yes
5048do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5056#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#ifdef __STDC__
5063# include <limits.h>
5064#else
5065# include <assert.h>
5066#endif
John Criswell47fdd832003-07-14 16:52:07 +00005067 Syntax error
5068_ACEOF
5069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005072 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null; then
5077 if test -s conftest.err; then
5078 ac_cpp_err=$ac_cxx_preproc_warn_flag
5079 else
5080 ac_cpp_err=
5081 fi
5082else
5083 ac_cpp_err=yes
5084fi
5085if test -z "$ac_cpp_err"; then
5086 :
5087else
5088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005089sed 's/^/| /' conftest.$ac_ext >&5
5090
John Criswell47fdd832003-07-14 16:52:07 +00005091 # Broken: fails on valid input.
5092continue
5093fi
5094rm -f conftest.err conftest.$ac_ext
5095
5096 # OK, works on sane cases. Now check whether non-existent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5099#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005105#include <ac_nonexistent.h>
5106_ACEOF
5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005110 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } >/dev/null; then
5115 if test -s conftest.err; then
5116 ac_cpp_err=$ac_cxx_preproc_warn_flag
5117 else
5118 ac_cpp_err=
5119 fi
5120else
5121 ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
5124 # Broken: success on invalid input.
5125continue
5126else
5127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005128sed 's/^/| /' conftest.$ac_ext >&5
5129
John Criswell47fdd832003-07-14 16:52:07 +00005130 # Passes both tests.
5131ac_preproc_ok=:
5132break
5133fi
5134rm -f conftest.err conftest.$ac_ext
5135
5136done
5137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138rm -f conftest.err conftest.$ac_ext
5139if $ac_preproc_ok; then
5140 :
5141else
John Criswell0c38eaf2003-09-10 15:17:25 +00005142 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5143See \`config.log' for more details." >&5
5144echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5145See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005146 { (exit 1); exit 1; }; }
5147fi
5148
5149ac_ext=cc
5150ac_cpp='$CXXCPP $CPPFLAGS'
5151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154
5155
5156ac_ext=f
5157ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5158ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5160if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005161 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 +00005162 do
5163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165echo "$as_me:$LINENO: checking for $ac_word" >&5
5166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167if test "${ac_cv_prog_F77+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170 if test -n "$F77"; then
5171 ac_cv_prog_F77="$F77" # Let the user override the test.
5172else
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184done
5185done
5186
5187fi
5188fi
5189F77=$ac_cv_prog_F77
5190if test -n "$F77"; then
5191 echo "$as_me:$LINENO: result: $F77" >&5
5192echo "${ECHO_T}$F77" >&6
5193else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196fi
5197
5198 test -n "$F77" && break
5199 done
5200fi
5201if test -z "$F77"; then
5202 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005203 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 +00005204do
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206set dummy $ac_prog; ac_word=$2
5207echo "$as_me:$LINENO: checking for $ac_word" >&5
5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211else
5212 if test -n "$ac_ct_F77"; then
5213 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_F77="$ac_prog"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226done
5227done
5228
5229fi
5230fi
5231ac_ct_F77=$ac_cv_prog_ac_ct_F77
5232if test -n "$ac_ct_F77"; then
5233 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5234echo "${ECHO_T}$ac_ct_F77" >&6
5235else
5236 echo "$as_me:$LINENO: result: no" >&5
5237echo "${ECHO_T}no" >&6
5238fi
5239
5240 test -n "$ac_ct_F77" && break
5241done
5242
5243 F77=$ac_ct_F77
5244fi
5245
5246
5247# Provide some information about the compiler.
John Criswell5ab73462003-10-09 15:44:28 +00005248echo "$as_me:5248:" \
John Criswell47fdd832003-07-14 16:52:07 +00005249 "checking for Fortran 77 compiler version" >&5
5250ac_compiler=`set X $ac_compile; echo $2`
5251{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5252 (eval $ac_compiler --version </dev/null >&5) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }
5256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5257 (eval $ac_compiler -v </dev/null >&5) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }
5261{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5262 (eval $ac_compiler -V </dev/null >&5) 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }
5266
5267# If we don't use `.F' as extension, the preprocessor is not run on the
5268# input file.
5269ac_save_ext=$ac_ext
5270ac_ext=F
5271echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5272echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5273if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276 cat >conftest.$ac_ext <<_ACEOF
5277 program main
5278#ifndef __GNUC__
5279 choke me
5280#endif
5281
5282 end
5283_ACEOF
5284rm -f conftest.$ac_objext
5285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5296 ac_compiler_gnu=yes
5297else
5298 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005299sed 's/^/| /' conftest.$ac_ext >&5
5300
John Criswell47fdd832003-07-14 16:52:07 +00005301ac_compiler_gnu=no
5302fi
5303rm -f conftest.$ac_objext conftest.$ac_ext
5304ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5305
5306fi
5307echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5308echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5309ac_ext=$ac_save_ext
5310G77=`test $ac_compiler_gnu = yes && echo yes`
5311ac_test_FFLAGS=${FFLAGS+set}
5312ac_save_FFLAGS=$FFLAGS
5313FFLAGS=
5314echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5315echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5316if test "${ac_cv_prog_f77_g+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 FFLAGS=-g
5320cat >conftest.$ac_ext <<_ACEOF
5321 program main
5322
5323 end
5324_ACEOF
5325rm -f conftest.$ac_objext
5326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327 (eval $ac_compile) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_prog_f77_g=yes
5338else
5339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005340sed 's/^/| /' conftest.$ac_ext >&5
5341
John Criswell47fdd832003-07-14 16:52:07 +00005342ac_cv_prog_f77_g=no
5343fi
5344rm -f conftest.$ac_objext conftest.$ac_ext
5345
5346fi
5347echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349if test "$ac_test_FFLAGS" = set; then
5350 FFLAGS=$ac_save_FFLAGS
5351elif test $ac_cv_prog_f77_g = yes; then
5352 if test "$G77" = yes; then
5353 FFLAGS="-g -O2"
5354 else
5355 FFLAGS="-g"
5356 fi
5357else
5358 if test "$G77" = yes; then
5359 FFLAGS="-O2"
5360 else
5361 FFLAGS=
5362 fi
5363fi
5364ac_ext=c
5365ac_cpp='$CPP $CPPFLAGS'
5366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368ac_compiler_gnu=$ac_cv_c_compiler_gnu
5369
5370
5371
5372# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5373
5374# find the maximum length of command line arguments
5375echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5376echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5377if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380 i=0
5381 testring="ABCD"
5382
5383 case $build_os in
5384 msdosdjgpp*)
5385 # On DJGPP, this test can blow up pretty badly due to problems in libc
5386 # (any single argument exceeding 2000 bytes causes a buffer overrun
5387 # during glob expansion). Even if it were fixed, the result of this
5388 # check would be larger than it should be.
5389 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5390 ;;
5391
5392 gnu*)
5393 # Under GNU Hurd, this test is not required because there is
5394 # no limit to the length of command line arguments.
5395 # Libtool will interpret -1 as no limit whatsoever
5396 lt_cv_sys_max_cmd_len=-1;
5397 ;;
5398
5399 cygwin* | mingw*)
5400 # On Win9x/ME, this test blows up -- it succeeds, but takes
5401 # about 5 minutes as the teststring grows exponentially.
5402 # Worse, since 9x/ME are not pre-emptively multitasking,
5403 # you end up with a "frozen" computer, even though with patience
5404 # the test eventually succeeds (with a max line length of 256k).
5405 # Instead, let's just punt: use the minimum linelength reported by
5406 # all of the supported platforms: 8192 (on NT/2K/XP).
5407 lt_cv_sys_max_cmd_len=8192;
5408 ;;
5409
5410 *)
5411 # If test is not a shell built-in, we'll probably end up computing a
5412 # maximum length that is only half of the actual maximum length, but
5413 # we can't tell.
5414 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5415 = "XX$testring") >/dev/null 2>&1 &&
5416 new_result=`expr "X$testring" : ".*" 2>&1` &&
5417 lt_cv_sys_max_cmd_len=$new_result &&
5418 test $i != 17 # 1/2 MB should be enough
5419 do
5420 i=`expr $i + 1`
5421 testring=$testring$testring
5422 done
5423 testring=
5424 # Add a significant safety factor because C++ compilers can tack on massive
5425 # amounts of additional arguments before passing them to the linker.
5426 # It appears as though 1/2 is a usable value.
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5428 ;;
5429 esac
5430
5431fi
5432
5433if test -n $lt_cv_sys_max_cmd_len ; then
5434 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5435echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5436else
5437 echo "$as_me:$LINENO: result: none" >&5
5438echo "${ECHO_T}none" >&6
5439fi
5440
5441
5442
5443
5444# Check for command to grab the raw symbol name followed by C symbol from nm.
5445echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5446echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5447if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450
5451# These are sane defaults that work on at least a few old systems.
5452# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5453
5454# Character class describing NM global symbol codes.
5455symcode='[BCDEGRST]'
5456
5457# Regexp to match symbols that can be accessed directly from C.
5458sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5459
5460# Transform the above into a raw symbol and a C symbol.
5461symxfrm='\1 \2\3 \3'
5462
5463# Transform an extracted symbol line into a proper C declaration
5464lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5465
5466# Transform an extracted symbol line into symbol name and symbol address
5467lt_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'"
5468
5469# Define system-specific variables.
5470case $host_os in
5471aix*)
5472 symcode='[BCDT]'
5473 ;;
5474cygwin* | mingw* | pw32*)
5475 symcode='[ABCDGISTW]'
5476 ;;
5477hpux*) # Its linker distinguishes data from code symbols
5478 if test "$host_cpu" = ia64; then
5479 symcode='[ABCDEGRST]'
5480 fi
5481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5482 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'"
5483 ;;
5484irix* | nonstopux*)
5485 symcode='[BCDEGRST]'
5486 ;;
5487osf*)
5488 symcode='[BCDEGQRST]'
5489 ;;
5490solaris* | sysv5*)
5491 symcode='[BDT]'
5492 ;;
5493sysv4)
5494 symcode='[DFNSTU]'
5495 ;;
5496esac
5497
5498# Handle CRLF in mingw tool chain
5499opt_cr=
5500case $build_os in
5501mingw*)
5502 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5503 ;;
5504esac
5505
5506# If we're using GNU nm, then use its standard symbol codes.
5507case `$NM -V 2>&1` in
5508*GNU* | *'with BFD'*)
5509 symcode='[ABCDGISTW]' ;;
5510esac
5511
5512# Try without a prefix undercore, then with it.
5513for ac_symprfx in "" "_"; do
5514
5515 # Write the raw and C identifiers.
5516 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5517
5518 # Check to see that the pipe works correctly.
5519 pipe_works=no
5520
5521 rm -f conftest*
5522 cat > conftest.$ac_ext <<EOF
5523#ifdef __cplusplus
5524extern "C" {
5525#endif
5526char nm_test_var;
5527void nm_test_func(){}
5528#ifdef __cplusplus
5529}
5530#endif
5531int main(){nm_test_var='a';nm_test_func();return(0);}
5532EOF
5533
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; then
5539 # Now try to grab the symbols.
5540 nlist=conftest.nm
5541 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5542 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && test -s "$nlist"; then
5546 # Try sorting and uniquifying the output.
5547 if sort "$nlist" | uniq > "$nlist"T; then
5548 mv -f "$nlist"T "$nlist"
5549 else
5550 rm -f "$nlist"T
5551 fi
5552
5553 # Make sure that we snagged all the symbols we need.
5554 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5555 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5556 cat <<EOF > conftest.$ac_ext
5557#ifdef __cplusplus
5558extern "C" {
5559#endif
5560
5561EOF
5562 # Now generate the symbol file.
5563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5564
5565 cat <<EOF >> conftest.$ac_ext
5566#if defined (__STDC__) && __STDC__
5567# define lt_ptr_t void *
5568#else
5569# define lt_ptr_t char *
5570# define const
5571#endif
5572
5573/* The mapping between symbol names and symbols. */
5574const struct {
5575 const char *name;
5576 lt_ptr_t address;
5577}
5578lt_preloaded_symbols[] =
5579{
5580EOF
5581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5582 cat <<\EOF >> conftest.$ac_ext
5583 {0, (lt_ptr_t) 0}
5584};
5585
5586#ifdef __cplusplus
5587}
5588#endif
5589EOF
5590 # Now try linking the two files.
5591 mv conftest.$ac_objext conftstm.$ac_objext
5592 lt_save_LIBS="$LIBS"
5593 lt_save_CFLAGS="$CFLAGS"
5594 LIBS="conftstm.$ac_objext"
5595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5601 pipe_works=yes
5602 fi
5603 LIBS="$lt_save_LIBS"
5604 CFLAGS="$lt_save_CFLAGS"
5605 else
5606 echo "cannot find nm_test_func in $nlist" >&5
5607 fi
5608 else
5609 echo "cannot find nm_test_var in $nlist" >&5
5610 fi
5611 else
5612 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5613 fi
5614 else
5615 echo "$progname: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5617 fi
5618 rm -f conftest* conftst*
5619
5620 # Do not use the global_symbol_pipe unless it works.
5621 if test "$pipe_works" = yes; then
5622 break
5623 else
5624 lt_cv_sys_global_symbol_pipe=
5625 fi
5626done
5627
5628fi
5629
5630if test -z "$lt_cv_sys_global_symbol_pipe"; then
5631 lt_cv_sys_global_symbol_to_cdecl=
5632fi
5633if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5634 echo "$as_me:$LINENO: result: failed" >&5
5635echo "${ECHO_T}failed" >&6
5636else
5637 echo "$as_me:$LINENO: result: ok" >&5
5638echo "${ECHO_T}ok" >&6
5639fi
5640
5641echo "$as_me:$LINENO: checking for objdir" >&5
5642echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5643if test "${lt_cv_objdir+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646 rm -f .libs 2>/dev/null
5647mkdir .libs 2>/dev/null
5648if test -d .libs; then
5649 lt_cv_objdir=.libs
5650else
5651 # MS-DOS does not allow filenames that begin with a dot.
5652 lt_cv_objdir=_libs
5653fi
5654rmdir .libs 2>/dev/null
5655fi
5656echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5657echo "${ECHO_T}$lt_cv_objdir" >&6
5658objdir=$lt_cv_objdir
5659
5660
5661
5662
5663
5664case $host_os in
5665aix3*)
5666 # AIX sometimes has problems with the GCC collect2 program. For some
5667 # reason, if we set the COLLECT_NAMES environment variable, the problems
5668 # vanish in a puff of smoke.
5669 if test "X${COLLECT_NAMES+set}" != Xset; then
5670 COLLECT_NAMES=
5671 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005672 fi
5673 ;;
5674esac
5675
John Criswell47fdd832003-07-14 16:52:07 +00005676# Sed substitution that helps us do robust quoting. It backslashifies
5677# metacharacters that are still active within double-quoted strings.
5678Xsed='sed -e s/^X//'
5679sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5680
5681# Same as above, but do not quote variable references.
5682double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5683
5684# Sed substitution to delay expansion of an escaped shell variable in a
5685# double_quote_subst'ed string.
5686delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5687
5688# Sed substitution to avoid accidental globbing in evaled expressions
5689no_glob_subst='s/\*/\\\*/g'
5690
5691# Constants:
5692rm="rm -f"
5693
5694# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005695default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005696can_build_shared=yes
5697
5698# All known linkers require a `.a' archive for static linking (except M$VC,
5699# which needs '.lib').
5700libext=a
5701ltmain="$ac_aux_dir/ltmain.sh"
5702ofile="$default_ofile"
5703with_gnu_ld="$lt_cv_prog_gnu_ld"
5704
5705if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707set dummy ${ac_tool_prefix}ar; ac_word=$2
5708echo "$as_me:$LINENO: checking for $ac_word" >&5
5709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5710if test "${ac_cv_prog_AR+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713 if test -n "$AR"; then
5714 ac_cv_prog_AR="$AR" # Let the user override the test.
5715else
5716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_AR="${ac_tool_prefix}ar"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727done
5728done
5729
5730fi
5731fi
5732AR=$ac_cv_prog_AR
5733if test -n "$AR"; then
5734 echo "$as_me:$LINENO: result: $AR" >&5
5735echo "${ECHO_T}$AR" >&6
5736else
5737 echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
5739fi
5740
5741fi
5742if test -z "$ac_cv_prog_AR"; then
5743 ac_ct_AR=$AR
5744 # Extract the first word of "ar", so it can be a program name with args.
5745set dummy ar; ac_word=$2
5746echo "$as_me:$LINENO: checking for $ac_word" >&5
5747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751 if test -n "$ac_ct_AR"; then
5752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761 ac_cv_prog_ac_ct_AR="ar"
5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766done
5767
5768 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5769fi
5770fi
5771ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772if test -n "$ac_ct_AR"; then
5773 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5774echo "${ECHO_T}$ac_ct_AR" >&6
5775else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778fi
5779
5780 AR=$ac_ct_AR
5781else
5782 AR="$ac_cv_prog_AR"
5783fi
5784
John Criswell7a73b802003-06-30 21:59:07 +00005785if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790if test "${ac_cv_prog_RANLIB+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 if test -n "$RANLIB"; then
5794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808done
5809
5810fi
5811fi
5812RANLIB=$ac_cv_prog_RANLIB
5813if test -n "$RANLIB"; then
5814 echo "$as_me:$LINENO: result: $RANLIB" >&5
5815echo "${ECHO_T}$RANLIB" >&6
5816else
5817 echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6
5819fi
5820
5821fi
5822if test -z "$ac_cv_prog_RANLIB"; then
5823 ac_ct_RANLIB=$RANLIB
5824 # Extract the first word of "ranlib", so it can be a program name with args.
5825set dummy ranlib; ac_word=$2
5826echo "$as_me:$LINENO: checking for $ac_word" >&5
5827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830else
5831 if test -n "$ac_ct_RANLIB"; then
5832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841 ac_cv_prog_ac_ct_RANLIB="ranlib"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846done
5847
5848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5849fi
5850fi
5851ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852if test -n "$ac_ct_RANLIB"; then
5853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5854echo "${ECHO_T}$ac_ct_RANLIB" >&6
5855else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858fi
5859
5860 RANLIB=$ac_ct_RANLIB
5861else
5862 RANLIB="$ac_cv_prog_RANLIB"
5863fi
5864
5865if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}strip; ac_word=$2
5868echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870if test "${ac_cv_prog_STRIP+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873 if test -n "$STRIP"; then
5874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888done
5889
5890fi
5891fi
5892STRIP=$ac_cv_prog_STRIP
5893if test -n "$STRIP"; then
5894 echo "$as_me:$LINENO: result: $STRIP" >&5
5895echo "${ECHO_T}$STRIP" >&6
5896else
5897 echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6
5899fi
5900
5901fi
5902if test -z "$ac_cv_prog_STRIP"; then
5903 ac_ct_STRIP=$STRIP
5904 # Extract the first word of "strip", so it can be a program name with args.
5905set dummy strip; ac_word=$2
5906echo "$as_me:$LINENO: checking for $ac_word" >&5
5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911 if test -n "$ac_ct_STRIP"; then
5912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5913else
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_ac_ct_STRIP="strip"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925done
5926done
5927
5928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5929fi
5930fi
5931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932if test -n "$ac_ct_STRIP"; then
5933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5934echo "${ECHO_T}$ac_ct_STRIP" >&6
5935else
5936 echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6
5938fi
5939
5940 STRIP=$ac_ct_STRIP
5941else
5942 STRIP="$ac_cv_prog_STRIP"
5943fi
5944
5945
John Criswell7a73b802003-06-30 21:59:07 +00005946old_CC="$CC"
5947old_CFLAGS="$CFLAGS"
5948
5949# Set sane defaults for various variables
5950test -z "$AR" && AR=ar
5951test -z "$AR_FLAGS" && AR_FLAGS=cru
5952test -z "$AS" && AS=as
5953test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005954test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005955test -z "$DLLTOOL" && DLLTOOL=dlltool
5956test -z "$LD" && LD=ld
5957test -z "$LN_S" && LN_S="ln -s"
5958test -z "$MAGIC_CMD" && MAGIC_CMD=file
5959test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005960test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005961test -z "$OBJDUMP" && OBJDUMP=objdump
5962test -z "$RANLIB" && RANLIB=:
5963test -z "$STRIP" && STRIP=:
5964test -z "$ac_objext" && ac_objext=o
5965
John Criswell7a73b802003-06-30 21:59:07 +00005966# Determine commands to create old-style static archives.
5967old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5968old_postinstall_cmds='chmod 644 $oldlib'
5969old_postuninstall_cmds=
5970
5971if test -n "$RANLIB"; then
5972 case $host_os in
5973 openbsd*)
5974 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5975 ;;
5976 *)
5977 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5978 ;;
5979 esac
5980 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5981fi
5982
John Criswell47fdd832003-07-14 16:52:07 +00005983# Only perform the check for file, if the check method requires it
5984case $deplibs_check_method in
5985file_magic*)
5986 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5987 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5988echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5989if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005991else
John Criswell47fdd832003-07-14 16:52:07 +00005992 case $MAGIC_CMD in
5993[\\/*] | ?:[\\/]*)
5994 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5995 ;;
5996*)
5997 lt_save_MAGIC_CMD="$MAGIC_CMD"
5998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6000 for ac_dir in $ac_dummy; do
6001 IFS="$lt_save_ifs"
6002 test -z "$ac_dir" && ac_dir=.
6003 if test -f $ac_dir/${ac_tool_prefix}file; then
6004 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6005 if test -n "$file_magic_test_file"; then
6006 case $deplibs_check_method in
6007 "file_magic "*)
6008 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6011 $EGREP "$file_magic_regex" > /dev/null; then
6012 :
6013 else
6014 cat <<EOF 1>&2
6015
6016*** Warning: the command libtool uses to detect shared libraries,
6017*** $file_magic_cmd, produces output that libtool cannot recognize.
6018*** The result is that libtool may fail to recognize shared libraries
6019*** as such. This will affect the creation of libtool libraries that
6020*** depend on shared libraries, but programs linked with such libtool
6021*** libraries will work regardless of this problem. Nevertheless, you
6022*** may want to report the problem to your system manager and/or to
6023*** bug-libtool@gnu.org
6024
6025EOF
6026 fi ;;
6027 esac
6028 fi
6029 break
6030 fi
6031 done
6032 IFS="$lt_save_ifs"
6033 MAGIC_CMD="$lt_save_MAGIC_CMD"
6034 ;;
6035esac
John Criswell7a73b802003-06-30 21:59:07 +00006036fi
John Criswell7a73b802003-06-30 21:59:07 +00006037
John Criswell47fdd832003-07-14 16:52:07 +00006038MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6039if test -n "$MAGIC_CMD"; then
6040 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6041echo "${ECHO_T}$MAGIC_CMD" >&6
6042else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045fi
John Criswell7a73b802003-06-30 21:59:07 +00006046
John Criswell47fdd832003-07-14 16:52:07 +00006047if test -z "$lt_cv_path_MAGIC_CMD"; then
6048 if test -n "$ac_tool_prefix"; then
6049 echo "$as_me:$LINENO: checking for file" >&5
6050echo $ECHO_N "checking for file... $ECHO_C" >&6
6051if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054 case $MAGIC_CMD in
6055[\\/*] | ?:[\\/]*)
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057 ;;
6058*)
6059 lt_save_MAGIC_CMD="$MAGIC_CMD"
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062 for ac_dir in $ac_dummy; do
6063 IFS="$lt_save_ifs"
6064 test -z "$ac_dir" && ac_dir=.
6065 if test -f $ac_dir/file; then
6066 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6067 if test -n "$file_magic_test_file"; then
6068 case $deplibs_check_method in
6069 "file_magic "*)
6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073 $EGREP "$file_magic_regex" > /dev/null; then
6074 :
6075 else
6076 cat <<EOF 1>&2
6077
6078*** Warning: the command libtool uses to detect shared libraries,
6079*** $file_magic_cmd, produces output that libtool cannot recognize.
6080*** The result is that libtool may fail to recognize shared libraries
6081*** as such. This will affect the creation of libtool libraries that
6082*** depend on shared libraries, but programs linked with such libtool
6083*** libraries will work regardless of this problem. Nevertheless, you
6084*** may want to report the problem to your system manager and/or to
6085*** bug-libtool@gnu.org
6086
6087EOF
6088 fi ;;
6089 esac
6090 fi
6091 break
6092 fi
6093 done
6094 IFS="$lt_save_ifs"
6095 MAGIC_CMD="$lt_save_MAGIC_CMD"
6096 ;;
6097esac
6098fi
6099
6100MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101if test -n "$MAGIC_CMD"; then
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103echo "${ECHO_T}$MAGIC_CMD" >&6
6104else
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107fi
6108
6109 else
6110 MAGIC_CMD=:
6111 fi
6112fi
6113
6114 fi
6115 ;;
6116esac
6117
6118enable_dlopen=no
6119enable_win32_dll=no
6120
6121# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6122if test "${enable_libtool_lock+set}" = set; then
6123 enableval="$enable_libtool_lock"
6124
6125fi;
6126test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6127
John Criswell7a73b802003-06-30 21:59:07 +00006128
6129# Check whether --with-pic or --without-pic was given.
6130if test "${with_pic+set}" = set; then
6131 withval="$with_pic"
6132 pic_mode="$withval"
6133else
6134 pic_mode=default
6135fi;
6136test -z "$pic_mode" && pic_mode=default
6137
John Criswell47fdd832003-07-14 16:52:07 +00006138# Use C for the default configuration in the libtool script
6139tagname=
6140lt_save_CC="$CC"
6141ac_ext=c
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147
6148# Source file extension for C test sources.
6149ac_ext=c
6150
6151# Object file extension for compiled C test sources.
6152objext=o
6153objext=$objext
6154
6155# Code to be used in simple compile tests
6156lt_simple_compile_test_code="int some_variable = 0;\n"
6157
6158# Code to be used in simple link tests
6159lt_simple_link_test_code='int main(){return(0);}\n'
6160
6161
6162# If no C compiler was specified, use CC.
6163LTCC=${LTCC-"$CC"}
6164
6165# Allow CC to be a program name with arguments.
6166compiler=$CC
6167
6168
6169#
6170# Check for any special shared library compilation flags.
6171#
6172lt_prog_cc_shlib=
6173if test "$GCC" = no; then
6174 case $host_os in
6175 sco3.2v5*)
6176 lt_prog_cc_shlib='-belf'
6177 ;;
6178 esac
6179fi
6180if test -n "$lt_prog_cc_shlib"; then
6181 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6182echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6183 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6184 else
6185 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6186echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6187 lt_cv_prog_cc_can_build_shared=no
6188 fi
6189fi
6190
6191
6192#
6193# Check to make sure the static flag actually works.
6194#
6195echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6196echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6197if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
John Criswell47fdd832003-07-14 16:52:07 +00006200 lt_prog_compiler_static_works=no
6201 save_LDFLAGS="$LDFLAGS"
6202 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6203 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6205 # The compiler can only warn and ignore the option if not recognized
6206 # So say no if there are warnings
6207 if test -s conftest.err; then
6208 # Append any errors to the config.log.
6209 cat conftest.err 1>&5
6210 else
6211 lt_prog_compiler_static_works=yes
6212 fi
6213 fi
6214 $rm conftest*
6215 LDFLAGS="$save_LDFLAGS"
6216
6217fi
6218echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6219echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6220
6221if test x"$lt_prog_compiler_static_works" = xyes; then
6222 :
6223else
6224 lt_prog_compiler_static=
6225fi
6226
6227
6228
6229## CAVEAT EMPTOR:
6230## There is no encapsulation within the following macros, do not change
6231## the running order or otherwise move them around unless you know exactly
6232## what you are doing...
6233
6234lt_prog_compiler_no_builtin_flag=
6235
6236if test "$GCC" = yes; then
6237 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6238
6239 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6240echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6241if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else
6244 lt_cv_prog_compiler_rtti_exceptions=no
6245 ac_outfile=conftest.$ac_objext
6246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6247 lt_compiler_flag="-fno-rtti -fno-exceptions"
6248 # Insert the option either (1) after the last *FLAGS variable, or
6249 # (2) before a word containing "conftest.", or (3) at the end.
6250 # Note that $ac_compile itself does not contain backslashes and begins
6251 # with a dollar sign (not a hyphen), so the echo should work correctly.
6252 # The option is referenced via a variable to avoid confusing sed.
6253 lt_compile=`echo "$ac_compile" | $SED \
6254 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6256 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +00006257 (eval echo "\"\$as_me:6257: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006258 (eval "$lt_compile" 2>conftest.err)
6259 ac_status=$?
6260 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +00006261 echo "$as_me:6261: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006262 if (exit $ac_status) && test -s "$ac_outfile"; then
6263 # The compiler can only warn and ignore the option if not recognized
6264 # So say no if there are warnings
6265 if test ! -s conftest.err; then
6266 lt_cv_prog_compiler_rtti_exceptions=yes
6267 fi
6268 fi
6269 $rm conftest*
6270
6271fi
6272echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6273echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6274
6275if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6276 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6277else
6278 :
6279fi
6280
6281fi
6282
6283lt_prog_compiler_wl=
6284lt_prog_compiler_pic=
6285lt_prog_compiler_static=
6286
6287echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6288echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006289
6290 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006291 lt_prog_compiler_wl='-Wl,'
6292 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006293
6294 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006295 aix*)
6296 # All AIX code is PIC.
6297 if test "$host_cpu" = ia64; then
6298 # AIX 5 now supports IA64 processor
6299 lt_prog_compiler_static='-Bstatic'
6300 fi
John Criswell7a73b802003-06-30 21:59:07 +00006301 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006302
John Criswell7a73b802003-06-30 21:59:07 +00006303 amigaos*)
6304 # FIXME: we need at least 68020 code to build shared libraries, but
6305 # adding the `-m68020' flag to GCC prevents building anything better,
6306 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006307 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006308 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006309
6310 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006311 # PIC is the default for these OSes.
6312 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006313
6314 mingw* | pw32* | os2*)
6315 # This hack is so that the source file can tell whether it is being
6316 # built for inclusion in a dll (and should export symbols for example).
6317 lt_prog_compiler_pic='-DDLL_EXPORT'
6318 ;;
6319
John Criswell7a73b802003-06-30 21:59:07 +00006320 darwin* | rhapsody*)
6321 # PIC is the default on this platform
6322 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006323 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006324 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006325
6326 msdosdjgpp*)
6327 # Just because we use GCC doesn't mean we suddenly get shared libraries
6328 # on systems that don't support them.
6329 lt_prog_compiler_can_build_shared=no
6330 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006331 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006332
John Criswell7a73b802003-06-30 21:59:07 +00006333 sysv4*MP*)
6334 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006335 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006336 fi
6337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006338
6339 hpux*)
6340 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6341 # not for PA HP-UX.
6342 case "$host_cpu" in
6343 hppa*64*|ia64*)
6344 # +Z the default
6345 ;;
6346 *)
6347 lt_prog_compiler_pic='-fPIC'
6348 ;;
6349 esac
6350 ;;
6351
John Criswell7a73b802003-06-30 21:59:07 +00006352 *)
John Criswell47fdd832003-07-14 16:52:07 +00006353 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006354 ;;
6355 esac
6356 else
John Criswell47fdd832003-07-14 16:52:07 +00006357 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006358 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006359 aix*)
6360 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006361 if test "$host_cpu" = ia64; then
6362 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006363 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006364 else
John Criswell47fdd832003-07-14 16:52:07 +00006365 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006366 fi
6367 ;;
6368
John Criswell47fdd832003-07-14 16:52:07 +00006369 mingw* | pw32* | os2*)
6370 # This hack is so that the source file can tell whether it is being
6371 # built for inclusion in a dll (and should export symbols for example).
6372 lt_prog_compiler_pic='-DDLL_EXPORT'
6373 ;;
6374
John Criswell7a73b802003-06-30 21:59:07 +00006375 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006376 lt_prog_compiler_wl='-Wl,'
6377 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6378 # not for PA HP-UX.
6379 case "$host_cpu" in
6380 hppa*64*|ia64*)
6381 # +Z the default
6382 ;;
6383 *)
6384 lt_prog_compiler_pic='+Z'
6385 ;;
6386 esac
6387 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6388 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006389 ;;
6390
John Criswell47fdd832003-07-14 16:52:07 +00006391 irix5* | irix6* | nonstopux*)
6392 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006393 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006394 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006395 ;;
6396
6397 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006398 lt_prog_compiler_pic='-KPIC'
6399 lt_prog_compiler_static='-Bstatic'
6400 ;;
6401
6402 linux*)
6403 case $CC in
6404 icc|ecc)
6405 lt_prog_compiler_wl='-Wl,'
6406 lt_prog_compiler_pic='-KPIC'
6407 lt_prog_compiler_static='-static'
6408 ;;
6409 ccc)
6410 lt_prog_compiler_wl='-Wl,'
6411 # All Alpha code is PIC.
6412 lt_prog_compiler_static='-non_shared'
6413 ;;
6414 esac
John Criswell7a73b802003-06-30 21:59:07 +00006415 ;;
6416
6417 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006418 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006419 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006420 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006421 ;;
6422
6423 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006424 lt_prog_compiler_pic='-Kpic'
6425 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006426 ;;
6427
6428 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006429 lt_prog_compiler_wl='-Wl,'
6430 lt_prog_compiler_pic='-KPIC'
6431 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006432 ;;
6433
6434 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006435 lt_prog_compiler_wl='-Qoption ld '
6436 lt_prog_compiler_pic='-PIC'
6437 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006438 ;;
6439
6440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006441 lt_prog_compiler_wl='-Wl,'
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006444 ;;
6445
6446 sysv4*MP*)
6447 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006448 lt_prog_compiler_pic='-Kconform_pic'
6449 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006450 fi
6451 ;;
6452
John Criswell47fdd832003-07-14 16:52:07 +00006453 uts4*)
6454 lt_prog_compiler_pic='-pic'
6455 lt_prog_compiler_static='-Bstatic'
6456 ;;
6457
John Criswell7a73b802003-06-30 21:59:07 +00006458 *)
John Criswell47fdd832003-07-14 16:52:07 +00006459 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006460 ;;
6461 esac
6462 fi
6463
John Criswell47fdd832003-07-14 16:52:07 +00006464echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6465echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006466
John Criswell47fdd832003-07-14 16:52:07 +00006467#
6468# Check to make sure the PIC flag actually works.
6469#
6470if test -n "$lt_prog_compiler_pic"; then
6471 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6472echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6473if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
John Criswell47fdd832003-07-14 16:52:07 +00006476 lt_prog_compiler_pic_works=no
6477 ac_outfile=conftest.$ac_objext
6478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6479 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6480 # Insert the option either (1) after the last *FLAGS variable, or
6481 # (2) before a word containing "conftest.", or (3) at the end.
6482 # Note that $ac_compile itself does not contain backslashes and begins
6483 # with a dollar sign (not a hyphen), so the echo should work correctly.
6484 # The option is referenced via a variable to avoid confusing sed.
6485 lt_compile=`echo "$ac_compile" | $SED \
6486 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6488 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +00006489 (eval echo "\"\$as_me:6489: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006490 (eval "$lt_compile" 2>conftest.err)
6491 ac_status=$?
6492 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +00006493 echo "$as_me:6493: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006494 if (exit $ac_status) && test -s "$ac_outfile"; then
6495 # The compiler can only warn and ignore the option if not recognized
6496 # So say no if there are warnings
6497 if test ! -s conftest.err; then
6498 lt_prog_compiler_pic_works=yes
6499 fi
6500 fi
6501 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006502
John Criswell47fdd832003-07-14 16:52:07 +00006503fi
6504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6505echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006506
John Criswell47fdd832003-07-14 16:52:07 +00006507if test x"$lt_prog_compiler_pic_works" = xyes; then
6508 case $lt_prog_compiler_pic in
6509 "" | " "*) ;;
6510 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6511 esac
John Criswell7a73b802003-06-30 21:59:07 +00006512else
John Criswell47fdd832003-07-14 16:52:07 +00006513 lt_prog_compiler_pic=
6514 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006515fi
6516
John Criswell7a73b802003-06-30 21:59:07 +00006517fi
John Criswell47fdd832003-07-14 16:52:07 +00006518case "$host_os" in
6519 # For platforms which do not support PIC, -DPIC is meaningless:
6520 *djgpp*)
6521 lt_prog_compiler_pic=
6522 ;;
6523 *)
6524 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6525 ;;
6526esac
John Criswell7a73b802003-06-30 21:59:07 +00006527
John Criswell7a73b802003-06-30 21:59:07 +00006528echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6529echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006530if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
John Criswell47fdd832003-07-14 16:52:07 +00006533 lt_cv_prog_compiler_c_o=no
6534 $rm -r conftest 2>/dev/null
6535 mkdir conftest
6536 cd conftest
6537 mkdir out
6538 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006539
John Criswell47fdd832003-07-14 16:52:07 +00006540 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6541 # that will create temporary files in the current directory regardless of
6542 # the output directory. Thus, making CWD read-only will cause this test
6543 # to fail, enabling locking or at least warning the user not to do parallel
6544 # builds.
6545 chmod -w .
6546
6547 lt_compiler_flag="-o out/conftest2.$ac_objext"
6548 # Insert the option either (1) after the last *FLAGS variable, or
6549 # (2) before a word containing "conftest.", or (3) at the end.
6550 # Note that $ac_compile itself does not contain backslashes and begins
6551 # with a dollar sign (not a hyphen), so the echo should work correctly.
6552 lt_compile=`echo "$ac_compile" | $SED \
6553 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6555 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +00006556 (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006557 (eval "$lt_compile" 2>out/conftest.err)
6558 ac_status=$?
6559 cat out/conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +00006560 echo "$as_me:6560: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6562 then
6563 # The compiler can only warn and ignore the option if not recognized
6564 # So say no if there are warnings
6565 if test ! -s out/conftest.err; then
6566 lt_cv_prog_compiler_c_o=yes
6567 fi
6568 fi
6569 chmod u+w .
6570 $rm conftest* out/*
6571 rmdir out
6572 cd ..
6573 rmdir conftest
6574 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006575
6576fi
John Criswell47fdd832003-07-14 16:52:07 +00006577echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6578echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006579
John Criswell7a73b802003-06-30 21:59:07 +00006580
John Criswell7a73b802003-06-30 21:59:07 +00006581hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006582if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006583 # do not overwrite the value of need_locks provided by the user
6584 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6585echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6586 hard_links=yes
6587 $rm conftest*
6588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6589 touch conftest.a
6590 ln conftest.a conftest.b 2>&5 || hard_links=no
6591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6592 echo "$as_me:$LINENO: result: $hard_links" >&5
6593echo "${ECHO_T}$hard_links" >&6
6594 if test "$hard_links" = no; then
6595 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6596echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6597 need_locks=warn
6598 fi
6599else
6600 need_locks=no
6601fi
John Criswell7a73b802003-06-30 21:59:07 +00006602
John Criswell47fdd832003-07-14 16:52:07 +00006603echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6604echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6605
6606 runpath_var=
6607 allow_undefined_flag=
6608 enable_shared_with_static_runtimes=no
6609 archive_cmds=
6610 archive_expsym_cmds=
6611 old_archive_From_new_cmds=
6612 old_archive_from_expsyms_cmds=
6613 export_dynamic_flag_spec=
6614 whole_archive_flag_spec=
6615 thread_safe_flag_spec=
6616 hardcode_libdir_flag_spec=
6617 hardcode_libdir_flag_spec_ld=
6618 hardcode_libdir_separator=
6619 hardcode_direct=no
6620 hardcode_minus_L=no
6621 hardcode_shlibpath_var=unsupported
6622 link_all_deplibs=unknown
6623 hardcode_automatic=no
6624 module_cmds=
6625 module_expsym_cmds=
6626 always_export_symbols=no
6627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6628 # include_expsyms should be a list of space-separated symbols to be *always*
6629 # included in the symbol list
6630 include_expsyms=
6631 # exclude_expsyms can be an extended regexp of symbols to exclude
6632 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6633 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6634 # as well as any symbol that contains `d'.
6635 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6636 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6637 # platforms (ab)use it in PIC code, but their linkers get confused if
6638 # the symbol is explicitly referenced. Since portable code cannot
6639 # rely on this symbol name, it's probably fine to never include it in
6640 # preloaded symbol tables.
6641 extract_expsyms_cmds=
6642
6643 case $host_os in
6644 cygwin* | mingw* | pw32*)
6645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6646 # When not using gcc, we currently assume that we are using
6647 # Microsoft Visual C++.
6648 if test "$GCC" != yes; then
6649 with_gnu_ld=no
6650 fi
6651 ;;
6652 openbsd*)
6653 with_gnu_ld=no
6654 ;;
6655 esac
6656
6657 ld_shlibs=yes
6658 if test "$with_gnu_ld" = yes; then
6659 # If archive_cmds runs LD, not CC, wlarc should be empty
6660 wlarc='${wl}'
6661
6662 # See if GNU ld supports shared libraries.
6663 case $host_os in
6664 aix3* | aix4* | aix5*)
6665 # On AIX/PPC, the GNU linker is very broken
6666 if test "$host_cpu" != ia64; then
6667 ld_shlibs=no
6668 cat <<EOF 1>&2
6669
6670*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6671*** to be unable to reliably create shared libraries on AIX.
6672*** Therefore, libtool is disabling shared libraries support. If you
6673*** really care for shared libraries, you may want to modify your PATH
6674*** so that a non-GNU linker is found, and then restart.
6675
6676EOF
6677 fi
6678 ;;
6679
6680 amigaos*)
6681 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)'
6682 hardcode_libdir_flag_spec='-L$libdir'
6683 hardcode_minus_L=yes
6684
6685 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6686 # that the semantics of dynamic libraries on AmigaOS, at least up
6687 # to version 4, is to share data among multiple programs linked
6688 # with the same dynamic library. Since this doesn't match the
6689 # behavior of shared libraries on other platforms, we can't use
6690 # them.
6691 ld_shlibs=no
6692 ;;
6693
6694 beos*)
6695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6696 allow_undefined_flag=unsupported
6697 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6698 # support --undefined. This deserves some investigation. FIXME
6699 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6700 else
6701 ld_shlibs=no
6702 fi
6703 ;;
6704
6705 cygwin* | mingw* | pw32*)
6706 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6707 # as there is no search path for DLLs.
6708 hardcode_libdir_flag_spec='-L$libdir'
6709 allow_undefined_flag=unsupported
6710 always_export_symbols=no
6711 enable_shared_with_static_runtimes=yes
6712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6713
6714 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6716 # If the export-symbols file already is a .def file (1st line
6717 # is EXPORTS), use it as is; otherwise, prepend...
6718 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6719 cp $export_symbols $output_objdir/$soname.def;
6720 else
6721 echo EXPORTS > $output_objdir/$soname.def;
6722 cat $export_symbols >> $output_objdir/$soname.def;
6723 fi~
6724 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6725 else
6726 ld_shlibs=no
6727 fi
6728 ;;
6729
6730 netbsd*)
6731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6733 wlarc=
6734 else
6735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6737 fi
6738 ;;
6739
6740 solaris* | sysv5*)
6741 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6742 ld_shlibs=no
6743 cat <<EOF 1>&2
6744
6745*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6746*** create shared libraries on Solaris systems. Therefore, libtool
6747*** is disabling shared libraries support. We urge you to upgrade GNU
6748*** binutils to release 2.9.1 or newer. Another option is to modify
6749*** your PATH or compiler configuration so that the native linker is
6750*** used, and then restart.
6751
6752EOF
6753 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 else
6757 ld_shlibs=no
6758 fi
6759 ;;
6760
6761 sunos4*)
6762 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6763 wlarc=
6764 hardcode_direct=yes
6765 hardcode_shlibpath_var=no
6766 ;;
6767
6768 *)
6769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772 else
6773 ld_shlibs=no
6774 fi
6775 ;;
6776 esac
6777
6778 if test "$ld_shlibs" = yes; then
6779 runpath_var=LD_RUN_PATH
6780 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6781 export_dynamic_flag_spec='${wl}--export-dynamic'
6782 # ancient GNU ld didn't support --whole-archive et. al.
6783 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6785 else
6786 whole_archive_flag_spec=
6787 fi
6788 fi
6789 else
6790 # PORTME fill in a description of your system's linker (not GNU ld)
6791 case $host_os in
6792 aix3*)
6793 allow_undefined_flag=unsupported
6794 always_export_symbols=yes
6795 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'
6796 # Note: this linker hardcodes the directories in LIBPATH if there
6797 # are no directories specified by -L.
6798 hardcode_minus_L=yes
6799 if test "$GCC" = yes && test -z "$link_static_flag"; then
6800 # Neither direct hardcoding nor static linking is supported with a
6801 # broken collect2.
6802 hardcode_direct=unsupported
6803 fi
6804 ;;
6805
6806 aix4* | aix5*)
6807 if test "$host_cpu" = ia64; then
6808 # On IA64, the linker does run time linking by default, so we don't
6809 # have to do anything special.
6810 aix_use_runtimelinking=no
6811 exp_sym_flag='-Bexport'
6812 no_entry_flag=""
6813 else
6814 # If we're using GNU nm, then we don't want the "-C" option.
6815 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6816 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6817 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'
6818 else
6819 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'
6820 fi
6821 aix_use_runtimelinking=no
6822
6823 # Test if we are trying to use run time linking or normal
6824 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6825 # need to do runtime linking.
6826 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6827 for ld_flag in $LDFLAGS; do
6828 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6829 aix_use_runtimelinking=yes
6830 break
6831 fi
6832 done
6833 esac
6834
6835 exp_sym_flag='-bexport'
6836 no_entry_flag='-bnoentry'
6837 fi
6838
6839 # When large executables or shared objects are built, AIX ld can
6840 # have problems creating the table of contents. If linking a library
6841 # or program results in "error TOC overflow" add -mminimal-toc to
6842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6844
6845 archive_cmds=''
6846 hardcode_direct=yes
6847 hardcode_libdir_separator=':'
6848 link_all_deplibs=yes
6849
6850 if test "$GCC" = yes; then
6851 case $host_os in aix4.012|aix4.012.*)
6852 # We only want to do this on AIX 4.2 and lower, the check
6853 # below for broken collect2 doesn't work under 4.3+
6854 collect2name=`${CC} -print-prog-name=collect2`
6855 if test -f "$collect2name" && \
6856 strings "$collect2name" | grep resolve_lib_name >/dev/null
6857 then
6858 # We have reworked collect2
6859 hardcode_direct=yes
6860 else
6861 # We have old collect2
6862 hardcode_direct=unsupported
6863 # It fails to find uninstalled libraries when the uninstalled
6864 # path is not listed in the libpath. Setting hardcode_minus_L
6865 # to unsupported forces relinking
6866 hardcode_minus_L=yes
6867 hardcode_libdir_flag_spec='-L$libdir'
6868 hardcode_libdir_separator=
6869 fi
6870 esac
6871 shared_flag='-shared'
6872 else
6873 # not using gcc
6874 if test "$host_cpu" = ia64; then
6875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6876 # chokes on -Wl,-G. The following line is correct:
6877 shared_flag='-G'
6878 else
6879 if test "$aix_use_runtimelinking" = yes; then
6880 shared_flag='${wl}-G'
6881 else
6882 shared_flag='${wl}-bM:SRE'
6883 fi
6884 fi
6885 fi
6886
6887 # It seems that -bexpall does not export symbols beginning with
6888 # underscore (_), so it is better to generate a list of symbols to export.
6889 always_export_symbols=yes
6890 if test "$aix_use_runtimelinking" = yes; then
6891 # Warning - without using the other runtime loading flags (-brtl),
6892 # -berok will link without error, but may produce a broken library.
6893 allow_undefined_flag='-berok'
6894 # Determine the default libpath from the value encoded in an empty executable.
6895 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006896#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006897/* confdefs.h. */
6898_ACEOF
6899cat confdefs.h >>conftest.$ac_ext
6900cat >>conftest.$ac_ext <<_ACEOF
6901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006902
John Criswell7a73b802003-06-30 21:59:07 +00006903int
6904main ()
6905{
John Criswell47fdd832003-07-14 16:52:07 +00006906
John Criswell7a73b802003-06-30 21:59:07 +00006907 ;
6908 return 0;
6909}
6910_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006911rm -f conftest.$ac_objext conftest$ac_exeext
6912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6913 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006917 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006923
John Criswell47fdd832003-07-14 16:52:07 +00006924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6925}'`
6926# Check for a 64-bit object if we didn't find anything.
6927if 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; }
6928}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006929else
6930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006931sed 's/^/| /' conftest.$ac_ext >&5
6932
John Criswell7a73b802003-06-30 21:59:07 +00006933fi
John Criswell47fdd832003-07-14 16:52:07 +00006934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006936
John Criswell47fdd832003-07-14 16:52:07 +00006937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6938 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"
6939 else
6940 if test "$host_cpu" = ia64; then
6941 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6942 allow_undefined_flag="-z nodefs"
6943 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"
6944 else
6945 # Determine the default libpath from the value encoded in an empty executable.
6946 cat >conftest.$ac_ext <<_ACEOF
6947#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006948/* confdefs.h. */
6949_ACEOF
6950cat confdefs.h >>conftest.$ac_ext
6951cat >>conftest.$ac_ext <<_ACEOF
6952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006953
John Criswell47fdd832003-07-14 16:52:07 +00006954int
6955main ()
6956{
John Criswell7a73b802003-06-30 21:59:07 +00006957
John Criswell47fdd832003-07-14 16:52:07 +00006958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
6963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006974
John Criswell47fdd832003-07-14 16:52:07 +00006975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6976}'`
6977# Check for a 64-bit object if we didn't find anything.
6978if 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; }
6979}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006980else
John Criswell47fdd832003-07-14 16:52:07 +00006981 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006982sed 's/^/| /' conftest.$ac_ext >&5
6983
John Criswell47fdd832003-07-14 16:52:07 +00006984fi
6985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006987
John Criswell47fdd832003-07-14 16:52:07 +00006988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6989 # Warning - without using the other run time loading flags,
6990 # -berok will link without error, but may produce a broken library.
6991 no_undefined_flag=' ${wl}-bernotok'
6992 allow_undefined_flag=' ${wl}-berok'
6993 # -bexpall does not export symbols beginning with underscore (_)
6994 always_export_symbols=yes
6995 # Exported symbols can be pulled into shared objects from archives
6996 whole_archive_flag_spec=' '
6997 archive_cmds_need_lc=yes
6998 # This is similar to how AIX traditionally builds it's shared libraries.
6999 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 +00007000 fi
7001 fi
John Criswell7a73b802003-06-30 21:59:07 +00007002 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007003
7004 amigaos*)
7005 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)'
7006 hardcode_libdir_flag_spec='-L$libdir'
7007 hardcode_minus_L=yes
7008 # see comment about different semantics on the GNU ld section
7009 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007010 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007011
John Criswell47fdd832003-07-14 16:52:07 +00007012 bsdi4*)
7013 export_dynamic_flag_spec=-rdynamic
7014 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007015
John Criswell47fdd832003-07-14 16:52:07 +00007016 cygwin* | mingw* | pw32*)
7017 # When not using gcc, we currently assume that we are using
7018 # Microsoft Visual C++.
7019 # hardcode_libdir_flag_spec is actually meaningless, as there is
7020 # no search path for DLLs.
7021 hardcode_libdir_flag_spec=' '
7022 allow_undefined_flag=unsupported
7023 # Tell ltmain to make .lib files, not .a files.
7024 libext=lib
7025 # Tell ltmain to make .dll files, not .so files.
7026 shrext=".dll"
7027 # FIXME: Setting linknames here is a bad hack.
7028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7029 # The linker will automatically build a .lib file if we build a DLL.
7030 old_archive_From_new_cmds='true'
7031 # FIXME: Should let the user specify the lib program.
7032 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7033 fix_srcfile_path='`cygpath -w "$srcfile"`'
7034 enable_shared_with_static_runtimes=yes
7035 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007036
John Criswell47fdd832003-07-14 16:52:07 +00007037 darwin* | rhapsody*)
7038 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7039 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007040 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007041 rhapsody* | darwin1.[012])
7042 allow_undefined_flag='-undefined suppress'
7043 ;;
7044 *) # Darwin 1.3 on
7045 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007046 ;;
7047 esac
John Criswell47fdd832003-07-14 16:52:07 +00007048 # FIXME: Relying on posixy $() will cause problems for
7049 # cross-compilation, but unfortunately the echo tests do not
7050 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7051 # `"' quotes if we put them in here... so don't!
7052 lt_int_apple_cc_single_mod=no
7053 output_verbose_link_cmd='echo'
7054 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7055 lt_int_apple_cc_single_mod=yes
7056 fi
7057 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7058 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7059 else
7060 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'
7061 fi
7062 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7063 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7064 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7065 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}'
7066 else
7067 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}'
7068 fi
7069 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}'
7070 hardcode_direct=no
7071 hardcode_automatic=yes
7072 hardcode_shlibpath_var=unsupported
7073 whole_archive_flag_spec='-all_load $convenience'
7074 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007075 fi
John Criswell47fdd832003-07-14 16:52:07 +00007076 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007077
John Criswell47fdd832003-07-14 16:52:07 +00007078 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007080 hardcode_libdir_flag_spec='-L$libdir'
7081 hardcode_shlibpath_var=no
7082 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007083
John Criswell47fdd832003-07-14 16:52:07 +00007084 freebsd1*)
7085 ld_shlibs=no
7086 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007087
John Criswell47fdd832003-07-14 16:52:07 +00007088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7089 # support. Future versions do this automatically, but an explicit c++rt0.o
7090 # does not break anything, and helps significantly (at the cost of a little
7091 # extra space).
7092 freebsd2.2*)
7093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7094 hardcode_libdir_flag_spec='-R$libdir'
7095 hardcode_direct=yes
7096 hardcode_shlibpath_var=no
7097 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007098
John Criswell47fdd832003-07-14 16:52:07 +00007099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7100 freebsd2*)
7101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7102 hardcode_direct=yes
7103 hardcode_minus_L=yes
7104 hardcode_shlibpath_var=no
7105 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007106
John Criswell47fdd832003-07-14 16:52:07 +00007107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7108 freebsd*)
7109 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7110 hardcode_libdir_flag_spec='-R$libdir'
7111 hardcode_direct=yes
7112 hardcode_shlibpath_var=no
7113 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007114
John Criswell47fdd832003-07-14 16:52:07 +00007115 hpux9*)
7116 if test "$GCC" = yes; then
7117 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'
7118 else
7119 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'
7120 fi
7121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7122 hardcode_libdir_separator=:
7123 hardcode_direct=yes
7124
7125 # hardcode_minus_L: Not really in the search PATH,
7126 # but as the default location of the library.
7127 hardcode_minus_L=yes
7128 export_dynamic_flag_spec='${wl}-E'
7129 ;;
7130
7131 hpux10* | hpux11*)
7132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7133 case "$host_cpu" in
7134 hppa*64*|ia64*)
7135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7136 ;;
7137 *)
7138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7139 ;;
7140 esac
7141 else
7142 case "$host_cpu" in
7143 hppa*64*|ia64*)
7144 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7145 ;;
7146 *)
7147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7148 ;;
7149 esac
7150 fi
7151 if test "$with_gnu_ld" = no; then
7152 case "$host_cpu" in
7153 hppa*64*)
7154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7155 hardcode_libdir_flag_spec_ld='+b $libdir'
7156 hardcode_libdir_separator=:
7157 hardcode_direct=no
7158 hardcode_shlibpath_var=no
7159 ;;
7160 ia64*)
7161 hardcode_libdir_flag_spec='-L$libdir'
7162 hardcode_direct=no
7163 hardcode_shlibpath_var=no
7164
7165 # hardcode_minus_L: Not really in the search PATH,
7166 # but as the default location of the library.
7167 hardcode_minus_L=yes
7168 ;;
7169 *)
7170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7171 hardcode_libdir_separator=:
7172 hardcode_direct=yes
7173 export_dynamic_flag_spec='${wl}-E'
7174
7175 # hardcode_minus_L: Not really in the search PATH,
7176 # but as the default location of the library.
7177 hardcode_minus_L=yes
7178 ;;
7179 esac
7180 fi
7181 ;;
7182
7183 irix5* | irix6* | nonstopux*)
7184 if test "$GCC" = yes; then
7185 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'
7186 else
7187 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'
7188 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7189 fi
7190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7191 hardcode_libdir_separator=:
7192 link_all_deplibs=yes
7193 ;;
7194
7195 netbsd*)
7196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7198 else
7199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7200 fi
7201 hardcode_libdir_flag_spec='-R$libdir'
7202 hardcode_direct=yes
7203 hardcode_shlibpath_var=no
7204 ;;
7205
7206 newsos6)
7207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7208 hardcode_direct=yes
7209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7210 hardcode_libdir_separator=:
7211 hardcode_shlibpath_var=no
7212 ;;
7213
7214 openbsd*)
7215 hardcode_direct=yes
7216 hardcode_shlibpath_var=no
7217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7220 export_dynamic_flag_spec='${wl}-E'
7221 else
7222 case $host_os in
7223 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225 hardcode_libdir_flag_spec='-R$libdir'
7226 ;;
7227 *)
7228 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7230 ;;
7231 esac
7232 fi
7233 ;;
7234
7235 os2*)
7236 hardcode_libdir_flag_spec='-L$libdir'
7237 hardcode_minus_L=yes
7238 allow_undefined_flag=unsupported
7239 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'
7240 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7241 ;;
7242
7243 osf3*)
7244 if test "$GCC" = yes; then
7245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7246 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'
7247 else
7248 allow_undefined_flag=' -expect_unresolved \*'
7249 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'
7250 fi
7251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252 hardcode_libdir_separator=:
7253 ;;
7254
7255 osf4* | osf5*) # as osf3* with the addition of -msym flag
7256 if test "$GCC" = yes; then
7257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7258 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'
7259 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7260 else
7261 allow_undefined_flag=' -expect_unresolved \*'
7262 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'
7263 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7264 $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'
7265
7266 # Both c and cxx compiler support -rpath directly
7267 hardcode_libdir_flag_spec='-rpath $libdir'
7268 fi
7269 hardcode_libdir_separator=:
7270 ;;
7271
7272 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7274 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007275 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007276 runpath_var=LD_RUN_PATH
7277 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007278 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007279
John Criswell47fdd832003-07-14 16:52:07 +00007280 solaris*)
7281 no_undefined_flag=' -z text'
7282 if test "$GCC" = yes; then
7283 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7284 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7285 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7286 else
7287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7290 fi
7291 hardcode_libdir_flag_spec='-R$libdir'
7292 hardcode_shlibpath_var=no
7293 case $host_os in
7294 solaris2.[0-5] | solaris2.[0-5].*) ;;
7295 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7297 esac
7298 link_all_deplibs=yes
7299 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007300
John Criswell47fdd832003-07-14 16:52:07 +00007301 sunos4*)
7302 if test "x$host_vendor" = xsequent; then
7303 # Use $CC to link under sequent, because it throws in some extra .o
7304 # files that make .init and .fini sections work.
7305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7306 else
7307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7308 fi
7309 hardcode_libdir_flag_spec='-L$libdir'
7310 hardcode_direct=yes
7311 hardcode_minus_L=yes
7312 hardcode_shlibpath_var=no
7313 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007314
John Criswell47fdd832003-07-14 16:52:07 +00007315 sysv4)
7316 case $host_vendor in
7317 sni)
7318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7319 hardcode_direct=yes # is this really true???
7320 ;;
7321 siemens)
7322 ## LD is ld it makes a PLAMLIB
7323 ## CC just makes a GrossModule.
7324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7325 reload_cmds='$CC -r -o $output$reload_objs'
7326 hardcode_direct=no
7327 ;;
7328 motorola)
7329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7331 ;;
7332 esac
7333 runpath_var='LD_RUN_PATH'
7334 hardcode_shlibpath_var=no
7335 ;;
7336
7337 sysv4.3*)
7338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339 hardcode_shlibpath_var=no
7340 export_dynamic_flag_spec='-Bexport'
7341 ;;
7342
7343 sysv4*MP*)
7344 if test -d /usr/nec; then
7345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7346 hardcode_shlibpath_var=no
7347 runpath_var=LD_RUN_PATH
7348 hardcode_runpath_var=yes
7349 ld_shlibs=yes
7350 fi
7351 ;;
7352
7353 sysv4.2uw2*)
7354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7355 hardcode_direct=yes
7356 hardcode_minus_L=no
7357 hardcode_shlibpath_var=no
7358 hardcode_runpath_var=yes
7359 runpath_var=LD_RUN_PATH
7360 ;;
7361
7362 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7363 no_undefined_flag='${wl}-z ${wl}text'
7364 if test "$GCC" = yes; then
7365 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7366 else
7367 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 fi
7369 runpath_var='LD_RUN_PATH'
7370 hardcode_shlibpath_var=no
7371 ;;
7372
7373 sysv5*)
7374 no_undefined_flag=' -z text'
7375 # $CC -shared without GNU ld will not create a library from C++
7376 # object files and a static libstdc++, better avoid it by now
7377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7380 hardcode_libdir_flag_spec=
7381 hardcode_shlibpath_var=no
7382 runpath_var='LD_RUN_PATH'
7383 ;;
7384
7385 uts4*)
7386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7387 hardcode_libdir_flag_spec='-L$libdir'
7388 hardcode_shlibpath_var=no
7389 ;;
7390
7391 *)
7392 ld_shlibs=no
7393 ;;
7394 esac
7395 fi
7396
John Criswell7a73b802003-06-30 21:59:07 +00007397echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7398echo "${ECHO_T}$ld_shlibs" >&6
7399test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007400
John Criswell47fdd832003-07-14 16:52:07 +00007401variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7402if test "$GCC" = yes; then
7403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7404fi
7405
7406#
7407# Do we need to explicitly link libc?
7408#
7409case "x$archive_cmds_need_lc" in
7410x|xyes)
7411 # Assume -lc should be added
7412 archive_cmds_need_lc=yes
7413
7414 if test "$enable_shared" = yes && test "$GCC" = yes; then
7415 case $archive_cmds in
7416 *'~'*)
7417 # FIXME: we may have to deal with multi-command sequences.
7418 ;;
7419 '$CC '*)
7420 # Test whether the compiler implicitly links with -lc since on some
7421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7422 # to ld, don't add -lc before -lgcc.
7423 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7424echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7425 $rm conftest*
7426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429 (eval $ac_compile) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } 2>conftest.err; then
7433 soname=conftest
7434 lib=conftest
7435 libobjs=conftest.$ac_objext
7436 deplibs=
7437 wl=$lt_prog_compiler_wl
7438 compiler_flags=-v
7439 linker_flags=-v
7440 verstring=
7441 output_objdir=.
7442 libname=conftest
7443 lt_save_allow_undefined_flag=$allow_undefined_flag
7444 allow_undefined_flag=
7445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7446 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }
7450 then
7451 archive_cmds_need_lc=no
7452 else
7453 archive_cmds_need_lc=yes
7454 fi
7455 allow_undefined_flag=$lt_save_allow_undefined_flag
7456 else
7457 cat conftest.err 1>&5
7458 fi
7459 $rm conftest*
7460 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7461echo "${ECHO_T}$archive_cmds_need_lc" >&6
7462 ;;
7463 esac
7464 fi
7465 ;;
7466esac
7467
John Criswell7a73b802003-06-30 21:59:07 +00007468echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7469echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7470hardcode_action=
7471if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007472 test -n "$runpath_var " || \
7473 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007474
7475 # We can hardcode non-existant directories.
7476 if test "$hardcode_direct" != no &&
7477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7478 # have to relink, otherwise we might link with an installed library
7479 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007481 test "$hardcode_minus_L" != no; then
7482 # Linking always hardcodes the temporary library directory.
7483 hardcode_action=relink
7484 else
7485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7486 hardcode_action=immediate
7487 fi
7488else
7489 # We cannot hardcode anything, or else we can only hardcode existing
7490 # directories.
7491 hardcode_action=unsupported
7492fi
7493echo "$as_me:$LINENO: result: $hardcode_action" >&5
7494echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007495
John Criswell47fdd832003-07-14 16:52:07 +00007496if test "$hardcode_action" = relink; then
7497 # Fast installation is not supported
7498 enable_fast_install=no
7499elif test "$shlibpath_overrides_runpath" = yes ||
7500 test "$enable_shared" = no; then
7501 # Fast installation is not necessary
7502 enable_fast_install=needless
7503fi
7504
John Criswell7a73b802003-06-30 21:59:07 +00007505striplib=
7506old_striplib=
7507echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7508echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7509if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7512 echo "$as_me:$LINENO: result: yes" >&5
7513echo "${ECHO_T}yes" >&6
7514else
John Criswell47fdd832003-07-14 16:52:07 +00007515# FIXME - insert some real tests, host_os isn't really good enough
7516 case $host_os in
7517 darwin*)
7518 if test -n "$STRIP" ; then
7519 striplib="$STRIP -x"
7520 echo "$as_me:$LINENO: result: yes" >&5
7521echo "${ECHO_T}yes" >&6
7522 else
John Criswell7a73b802003-06-30 21:59:07 +00007523 echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6
7525fi
John Criswell47fdd832003-07-14 16:52:07 +00007526 ;;
7527 *)
7528 echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6
7530 ;;
7531 esac
7532fi
John Criswell7a73b802003-06-30 21:59:07 +00007533
John Criswell7a73b802003-06-30 21:59:07 +00007534echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7536library_names_spec=
7537libname_spec='lib$name'
7538soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007539shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007540postinstall_cmds=
7541postuninstall_cmds=
7542finish_cmds=
7543finish_eval=
7544shlibpath_var=
7545shlibpath_overrides_runpath=unknown
7546version_type=none
7547dynamic_linker="$host_os ld.so"
7548sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007549if test "$GCC" = yes; then
7550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7552 # if the path contains ";" then we assume it to be the separator
7553 # otherwise default to the standard path separator (i.e. ":") - it is
7554 # assumed that no part of a normal pathname contains ";" but that should
7555 # okay in the real world where ";" in dirpaths is itself problematic.
7556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7557 else
7558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7559 fi
7560else
7561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7562fi
7563need_lib_prefix=unknown
7564hardcode_into_libs=no
7565
7566# when you set need_version to no, make sure it does not cause -set_version
7567# flags to be left without arguments
7568need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007569
7570case $host_os in
7571aix3*)
7572 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007574 shlibpath_var=LIBPATH
7575
John Criswell47fdd832003-07-14 16:52:07 +00007576 # AIX 3 has no versioning support, so we append a major version to the name.
7577 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007578 ;;
7579
7580aix4* | aix5*)
7581 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007582 need_lib_prefix=no
7583 need_version=no
7584 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007585 if test "$host_cpu" = ia64; then
7586 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007588 shlibpath_var=LD_LIBRARY_PATH
7589 else
7590 # With GCC up to 2.95.x, collect2 would create an import file
7591 # for dependence libraries. The import file would start with
7592 # the line `#! .'. This would cause the generated library to
7593 # depend on `.', always an invalid library. This was fixed in
7594 # development snapshots of GCC prior to 3.0.
7595 case $host_os in
7596 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7598 echo ' yes '
7599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7600 :
7601 else
7602 can_build_shared=no
7603 fi
7604 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007605 esac
John Criswell47fdd832003-07-14 16:52:07 +00007606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7607 # soname into executable. Probably we can add versioning support to
7608 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007609 if test "$aix_use_runtimelinking" = yes; then
7610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7611 # instead of lib<name>.a to let people know that these are not
7612 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007614 else
7615 # We preserve .a as extension for shared libraries through AIX4.2
7616 # and later when we are not doing run time linking.
7617 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007618 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007619 fi
7620 shlibpath_var=LIBPATH
7621 fi
7622 ;;
7623
7624amigaos*)
7625 library_names_spec='$libname.ixlibrary $libname.a'
7626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7627 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'
7628 ;;
7629
7630beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007631 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007632 dynamic_linker="$host_os ld.so"
7633 shlibpath_var=LIBRARY_PATH
7634 ;;
7635
7636bsdi4*)
7637 version_type=linux
7638 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7642 shlibpath_var=LD_LIBRARY_PATH
7643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007645 # the default ld.so.conf also contains /usr/contrib/lib and
7646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7647 # libtool to hard-code these into programs
7648 ;;
7649
7650cygwin* | mingw* | pw32*)
7651 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007652 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007653 need_version=no
7654 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007655
John Criswell7a73b802003-06-30 21:59:07 +00007656 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007657 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007658 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007659 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7660 postinstall_cmds='base_file=`basename \${file}`~
7661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007662 dldir=$destdir/`dirname \$dlpath`~
7663 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007664 $install_prog $dir/$dlname \$dldir/$dlname'
7665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007666 dlpath=$dir/\$dldll~
7667 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007668 shlibpath_overrides_runpath=yes
7669
7670 case $host_os in
7671 cygwin*)
7672 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7673 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7674 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7675 ;;
7676 mingw*)
7677 # MinGW DLLs use traditional 'lib' prefix
7678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7680 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7681 # It is most probably a Windows format PATH printed by
7682 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7683 # path with ; separators, and with drive letters. We can handle the
7684 # drive letters (cygwin fileutils understands them), so leave them,
7685 # especially as we might pass files found there to a mingw objdump,
7686 # which wouldn't understand a cygwinified path. Ahh.
7687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7688 else
7689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7690 fi
7691 ;;
7692 pw32*)
7693 # pw32 DLLs use 'pw' prefix rather than 'lib'
7694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7695 ;;
7696 esac
John Criswell7a73b802003-06-30 21:59:07 +00007697 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007698
John Criswell7a73b802003-06-30 21:59:07 +00007699 *)
John Criswell47fdd832003-07-14 16:52:07 +00007700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007701 ;;
7702 esac
7703 dynamic_linker='Win32 ld.exe'
7704 # FIXME: first we should search . and the directory the executable is in
7705 shlibpath_var=PATH
7706 ;;
7707
7708darwin* | rhapsody*)
7709 dynamic_linker="$host_os dyld"
7710 version_type=darwin
7711 need_lib_prefix=no
7712 need_version=no
7713 # FIXME: Relying on posixy $() will cause problems for
7714 # cross-compilation, but unfortunately the echo tests do not
7715 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007716 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7717 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007718 shlibpath_overrides_runpath=yes
7719 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007720 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7721 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7722 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7723 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"`
7724 fi
7725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7726 ;;
7727
7728dgux*)
7729 version_type=linux
7730 need_lib_prefix=no
7731 need_version=no
7732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7733 soname_spec='${libname}${release}${shared_ext}$major'
7734 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007735 ;;
7736
7737freebsd1*)
7738 dynamic_linker=no
7739 ;;
7740
7741freebsd*)
7742 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7743 version_type=freebsd-$objformat
7744 case $version_type in
7745 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007747 need_version=no
7748 need_lib_prefix=no
7749 ;;
7750 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007752 need_version=yes
7753 ;;
7754 esac
7755 shlibpath_var=LD_LIBRARY_PATH
7756 case $host_os in
7757 freebsd2*)
7758 shlibpath_overrides_runpath=yes
7759 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007760 freebsd3.01* | freebsdelf3.01*)
7761 shlibpath_overrides_runpath=yes
7762 hardcode_into_libs=yes
7763 ;;
7764 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007765 shlibpath_overrides_runpath=no
7766 hardcode_into_libs=yes
7767 ;;
7768 esac
7769 ;;
7770
7771gnu*)
7772 version_type=linux
7773 need_lib_prefix=no
7774 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7776 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007777 shlibpath_var=LD_LIBRARY_PATH
7778 hardcode_into_libs=yes
7779 ;;
7780
7781hpux9* | hpux10* | hpux11*)
7782 # Give a soname corresponding to the major version so that dld.sl refuses to
7783 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007784 version_type=sunos
7785 need_lib_prefix=no
7786 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007787 case "$host_cpu" in
7788 ia64*)
7789 shrext='.so'
7790 hardcode_into_libs=yes
7791 dynamic_linker="$host_os dld.so"
7792 shlibpath_var=LD_LIBRARY_PATH
7793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7795 soname_spec='${libname}${release}${shared_ext}$major'
7796 if test "X$HPUX_IA64_MODE" = X32; then
7797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7798 else
7799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7800 fi
7801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7802 ;;
7803 hppa*64*)
7804 shrext='.sl'
7805 hardcode_into_libs=yes
7806 dynamic_linker="$host_os dld.sl"
7807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7813 ;;
7814 *)
7815 shrext='.sl'
7816 dynamic_linker="$host_os dld.sl"
7817 shlibpath_var=SHLIB_PATH
7818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7820 soname_spec='${libname}${release}${shared_ext}$major'
7821 ;;
7822 esac
John Criswell7a73b802003-06-30 21:59:07 +00007823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7824 postinstall_cmds='chmod 555 $lib'
7825 ;;
7826
John Criswell47fdd832003-07-14 16:52:07 +00007827irix5* | irix6* | nonstopux*)
7828 case $host_os in
7829 nonstopux*) version_type=nonstopux ;;
7830 *)
7831 if test "$lt_cv_prog_gnu_ld" = yes; then
7832 version_type=linux
7833 else
7834 version_type=irix
7835 fi ;;
7836 esac
John Criswell7a73b802003-06-30 21:59:07 +00007837 need_lib_prefix=no
7838 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007839 soname_spec='${libname}${release}${shared_ext}$major'
7840 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 +00007841 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007842 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007843 libsuff= shlibsuff=
7844 ;;
7845 *)
7846 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7848 libsuff= shlibsuff= libmagic=32-bit;;
7849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7850 libsuff=32 shlibsuff=N32 libmagic=N32;;
7851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007853 *) libsuff= shlibsuff= libmagic=never-match;;
7854 esac
7855 ;;
7856 esac
7857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7858 shlibpath_overrides_runpath=no
7859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007861 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007862 ;;
7863
7864# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007865linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007866 dynamic_linker=no
7867 ;;
7868
7869# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007870linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007871 version_type=linux
7872 need_lib_prefix=no
7873 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7877 shlibpath_var=LD_LIBRARY_PATH
7878 shlibpath_overrides_runpath=no
7879 # This implies no fast_install, which is unacceptable.
7880 # Some rework will be needed to allow for fast_install
7881 # before this can be enabled.
7882 hardcode_into_libs=yes
7883
7884 # We used to test for /lib/ld.so.1 and disable shared libraries on
7885 # powerpc, because MkLinux only supported shared libraries with the
7886 # GNU dynamic linker. Since this was broken with cross compilers,
7887 # most powerpc-linux boxes support dynamic linking these days and
7888 # people can always --disable-shared, the test was removed, and we
7889 # assume the GNU/Linux dynamic linker is in use.
7890 dynamic_linker='GNU/Linux ld.so'
7891 ;;
7892
7893netbsd*)
7894 version_type=sunos
7895 need_lib_prefix=no
7896 need_version=no
7897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7900 dynamic_linker='NetBSD (a.out) ld.so'
7901 else
John Criswell47fdd832003-07-14 16:52:07 +00007902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7903 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007904 dynamic_linker='NetBSD ld.elf_so'
7905 fi
7906 shlibpath_var=LD_LIBRARY_PATH
7907 shlibpath_overrides_runpath=yes
7908 hardcode_into_libs=yes
7909 ;;
7910
7911newsos6)
7912 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 shlibpath_var=LD_LIBRARY_PATH
7915 shlibpath_overrides_runpath=yes
7916 ;;
7917
7918nto-qnx)
7919 version_type=linux
7920 need_lib_prefix=no
7921 need_version=no
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007924 shlibpath_var=LD_LIBRARY_PATH
7925 shlibpath_overrides_runpath=yes
7926 ;;
7927
7928openbsd*)
7929 version_type=sunos
7930 need_lib_prefix=no
7931 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7934 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007935 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 +00007936 case $host_os in
7937 openbsd2.[89] | openbsd2.[89].*)
7938 shlibpath_overrides_runpath=no
7939 ;;
7940 *)
7941 shlibpath_overrides_runpath=yes
7942 ;;
7943 esac
John Criswell7a73b802003-06-30 21:59:07 +00007944 else
7945 shlibpath_overrides_runpath=yes
7946 fi
John Criswell7a73b802003-06-30 21:59:07 +00007947 ;;
7948
7949os2*)
7950 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007951 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007952 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007953 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007954 dynamic_linker='OS/2 ld.exe'
7955 shlibpath_var=LIBPATH
7956 ;;
7957
7958osf3* | osf4* | osf5*)
7959 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007960 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007961 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007962 soname_spec='${libname}${release}${shared_ext}$major'
7963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007964 shlibpath_var=LD_LIBRARY_PATH
7965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7967 ;;
7968
7969sco3.2v5*)
7970 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007971 soname_spec='${libname}${release}${shared_ext}$major'
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007973 shlibpath_var=LD_LIBRARY_PATH
7974 ;;
7975
7976solaris*)
7977 version_type=linux
7978 need_lib_prefix=no
7979 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007982 shlibpath_var=LD_LIBRARY_PATH
7983 shlibpath_overrides_runpath=yes
7984 hardcode_into_libs=yes
7985 # ldd complains unless libraries are executable
7986 postinstall_cmds='chmod +x $lib'
7987 ;;
7988
7989sunos4*)
7990 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007992 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 shlibpath_overrides_runpath=yes
7995 if test "$with_gnu_ld" = yes; then
7996 need_lib_prefix=no
7997 fi
7998 need_version=yes
7999 ;;
8000
8001sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8002 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008005 shlibpath_var=LD_LIBRARY_PATH
8006 case $host_vendor in
8007 sni)
8008 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008009 need_lib_prefix=no
8010 export_dynamic_flag_spec='${wl}-Blargedynsym'
8011 runpath_var=LD_RUN_PATH
8012 ;;
8013 siemens)
8014 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008015 ;;
8016 motorola)
8017 need_lib_prefix=no
8018 need_version=no
8019 shlibpath_overrides_runpath=no
8020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8021 ;;
8022 esac
8023 ;;
8024
John Criswell7a73b802003-06-30 21:59:07 +00008025sysv4*MP*)
8026 if test -d /usr/nec ;then
8027 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008028 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8029 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008030 shlibpath_var=LD_LIBRARY_PATH
8031 fi
8032 ;;
8033
John Criswell47fdd832003-07-14 16:52:07 +00008034uts4*)
8035 version_type=linux
8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8037 soname_spec='${libname}${release}${shared_ext}$major'
8038 shlibpath_var=LD_LIBRARY_PATH
8039 ;;
8040
John Criswell7a73b802003-06-30 21:59:07 +00008041*)
8042 dynamic_linker=no
8043 ;;
8044esac
8045echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8046echo "${ECHO_T}$dynamic_linker" >&6
8047test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008048
8049if test "x$enable_dlopen" != xyes; then
8050 enable_dlopen=unknown
8051 enable_dlopen_self=unknown
8052 enable_dlopen_self_static=unknown
8053else
8054 lt_cv_dlopen=no
8055 lt_cv_dlopen_libs=
8056
8057 case $host_os in
8058 beos*)
8059 lt_cv_dlopen="load_add_on"
8060 lt_cv_dlopen_libs=
8061 lt_cv_dlopen_self=yes
8062 ;;
8063
John Criswell47fdd832003-07-14 16:52:07 +00008064 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008065 lt_cv_dlopen="LoadLibrary"
8066 lt_cv_dlopen_libs=
8067 ;;
8068
John Criswell47fdd832003-07-14 16:52:07 +00008069 cygwin*)
8070 lt_cv_dlopen="dlopen"
8071 lt_cv_dlopen_libs=
8072 ;;
8073
8074 darwin*)
8075 # if libdl is installed we need to link against it
8076 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8077echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8078if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081 ac_check_lib_save_LIBS=$LIBS
8082LIBS="-ldl $LIBS"
8083cat >conftest.$ac_ext <<_ACEOF
8084#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008090
8091/* Override any gcc2 internal prototype to avoid an error. */
8092#ifdef __cplusplus
8093extern "C"
8094#endif
8095/* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
8097char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008098int
8099main ()
8100{
8101dlopen ();
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext conftest$ac_exeext
8107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } &&
8112 { ac_try='test -s conftest$ac_exeext'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_lib_dl_dlopen=yes
8119else
8120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008121sed 's/^/| /' conftest.$ac_ext >&5
8122
John Criswell47fdd832003-07-14 16:52:07 +00008123ac_cv_lib_dl_dlopen=no
8124fi
8125rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126LIBS=$ac_check_lib_save_LIBS
8127fi
8128echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8129echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8130if test $ac_cv_lib_dl_dlopen = yes; then
8131 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8132else
8133
8134 lt_cv_dlopen="dyld"
8135 lt_cv_dlopen_libs=
8136 lt_cv_dlopen_self=yes
8137
8138fi
8139
8140 ;;
8141
John Criswell7a73b802003-06-30 21:59:07 +00008142 *)
8143 echo "$as_me:$LINENO: checking for shl_load" >&5
8144echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8145if test "${ac_cv_func_shl_load+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147else
8148 cat >conftest.$ac_ext <<_ACEOF
8149#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008155/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008156 which can conflict with char shl_load (); below.
8157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8158 <limits.h> exists even on freestanding compilers. */
8159#ifdef __STDC__
8160# include <limits.h>
8161#else
8162# include <assert.h>
8163#endif
John Criswell7a73b802003-06-30 21:59:07 +00008164/* Override any gcc2 internal prototype to avoid an error. */
8165#ifdef __cplusplus
8166extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008167{
John Criswell7a73b802003-06-30 21:59:07 +00008168#endif
8169/* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008172/* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175#if defined (__stub_shl_load) || defined (__stub___shl_load)
8176choke me
8177#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008178char (*f) () = shl_load;
8179#endif
8180#ifdef __cplusplus
8181}
John Criswell7a73b802003-06-30 21:59:07 +00008182#endif
8183
John Criswell0c38eaf2003-09-10 15:17:25 +00008184int
8185main ()
8186{
8187return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008188 ;
8189 return 0;
8190}
8191_ACEOF
8192rm -f conftest.$ac_objext conftest$ac_exeext
8193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 ac_cv_func_shl_load=yes
8205else
8206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008207sed 's/^/| /' conftest.$ac_ext >&5
8208
John Criswell7a73b802003-06-30 21:59:07 +00008209ac_cv_func_shl_load=no
8210fi
8211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212fi
8213echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8214echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8215if test $ac_cv_func_shl_load = yes; then
8216 lt_cv_dlopen="shl_load"
8217else
8218 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8219echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8220if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 ac_check_lib_save_LIBS=$LIBS
8224LIBS="-ldld $LIBS"
8225cat >conftest.$ac_ext <<_ACEOF
8226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008232
8233/* Override any gcc2 internal prototype to avoid an error. */
8234#ifdef __cplusplus
8235extern "C"
8236#endif
8237/* We use char because int might match the return type of a gcc2
8238 builtin and then its argument prototype would still apply. */
8239char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008240int
8241main ()
8242{
8243shl_load ();
8244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext conftest$ac_exeext
8249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8250 (eval $ac_link) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 (eval $ac_try) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_lib_dld_shl_load=yes
8261else
8262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008263sed 's/^/| /' conftest.$ac_ext >&5
8264
John Criswell7a73b802003-06-30 21:59:07 +00008265ac_cv_lib_dld_shl_load=no
8266fi
8267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268LIBS=$ac_check_lib_save_LIBS
8269fi
8270echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8271echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8272if test $ac_cv_lib_dld_shl_load = yes; then
8273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8274else
8275 echo "$as_me:$LINENO: checking for dlopen" >&5
8276echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8277if test "${ac_cv_func_dlopen+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 cat >conftest.$ac_ext <<_ACEOF
8281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008287/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008288 which can conflict with char dlopen (); below.
8289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8290 <limits.h> exists even on freestanding compilers. */
8291#ifdef __STDC__
8292# include <limits.h>
8293#else
8294# include <assert.h>
8295#endif
John Criswell7a73b802003-06-30 21:59:07 +00008296/* Override any gcc2 internal prototype to avoid an error. */
8297#ifdef __cplusplus
8298extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008299{
John Criswell7a73b802003-06-30 21:59:07 +00008300#endif
8301/* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8303char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008304/* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307#if defined (__stub_dlopen) || defined (__stub___dlopen)
8308choke me
8309#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008310char (*f) () = dlopen;
8311#endif
8312#ifdef __cplusplus
8313}
John Criswell7a73b802003-06-30 21:59:07 +00008314#endif
8315
John Criswell0c38eaf2003-09-10 15:17:25 +00008316int
8317main ()
8318{
8319return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest.$ac_objext conftest$ac_exeext
8325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_func_dlopen=yes
8337else
8338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008339sed 's/^/| /' conftest.$ac_ext >&5
8340
John Criswell7a73b802003-06-30 21:59:07 +00008341ac_cv_func_dlopen=no
8342fi
8343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8344fi
8345echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8346echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8347if test $ac_cv_func_dlopen = yes; then
8348 lt_cv_dlopen="dlopen"
8349else
8350 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8351echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8352if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354else
8355 ac_check_lib_save_LIBS=$LIBS
8356LIBS="-ldl $LIBS"
8357cat >conftest.$ac_ext <<_ACEOF
8358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008359/* confdefs.h. */
8360_ACEOF
8361cat confdefs.h >>conftest.$ac_ext
8362cat >>conftest.$ac_ext <<_ACEOF
8363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008364
8365/* Override any gcc2 internal prototype to avoid an error. */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369/* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8371char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008372int
8373main ()
8374{
8375dlopen ();
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext conftest$ac_exeext
8381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382 (eval $ac_link) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_lib_dl_dlopen=yes
8393else
8394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008395sed 's/^/| /' conftest.$ac_ext >&5
8396
John Criswell7a73b802003-06-30 21:59:07 +00008397ac_cv_lib_dl_dlopen=no
8398fi
8399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8400LIBS=$ac_check_lib_save_LIBS
8401fi
8402echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8403echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8404if test $ac_cv_lib_dl_dlopen = yes; then
8405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8406else
8407 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8408echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8409if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 ac_check_lib_save_LIBS=$LIBS
8413LIBS="-lsvld $LIBS"
8414cat >conftest.$ac_ext <<_ACEOF
8415#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008421
8422/* Override any gcc2 internal prototype to avoid an error. */
8423#ifdef __cplusplus
8424extern "C"
8425#endif
8426/* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008429int
8430main ()
8431{
8432dlopen ();
8433 ;
8434 return 0;
8435}
8436_ACEOF
8437rm -f conftest.$ac_objext conftest$ac_exeext
8438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_lib_svld_dlopen=yes
8450else
8451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008452sed 's/^/| /' conftest.$ac_ext >&5
8453
John Criswell7a73b802003-06-30 21:59:07 +00008454ac_cv_lib_svld_dlopen=no
8455fi
8456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8457LIBS=$ac_check_lib_save_LIBS
8458fi
8459echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8460echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8461if test $ac_cv_lib_svld_dlopen = yes; then
8462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8463else
8464 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8465echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8466if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469 ac_check_lib_save_LIBS=$LIBS
8470LIBS="-ldld $LIBS"
8471cat >conftest.$ac_ext <<_ACEOF
8472#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008478
8479/* Override any gcc2 internal prototype to avoid an error. */
8480#ifdef __cplusplus
8481extern "C"
8482#endif
8483/* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8485char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008486int
8487main ()
8488{
8489dld_link ();
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_lib_dld_dld_link=yes
8507else
8508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008509sed 's/^/| /' conftest.$ac_ext >&5
8510
John Criswell7a73b802003-06-30 21:59:07 +00008511ac_cv_lib_dld_dld_link=no
8512fi
8513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8514LIBS=$ac_check_lib_save_LIBS
8515fi
8516echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8517echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8518if test $ac_cv_lib_dld_dld_link = yes; then
8519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8520fi
8521
8522
8523fi
8524
8525
8526fi
8527
8528
8529fi
8530
8531
8532fi
8533
8534
8535fi
8536
8537 ;;
8538 esac
8539
8540 if test "x$lt_cv_dlopen" != xno; then
8541 enable_dlopen=yes
8542 else
8543 enable_dlopen=no
8544 fi
8545
8546 case $lt_cv_dlopen in
8547 dlopen)
8548 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008550
8551 save_LDFLAGS="$LDFLAGS"
8552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8553
8554 save_LIBS="$LIBS"
8555 LIBS="$lt_cv_dlopen_libs $LIBS"
8556
8557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8558echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8559if test "${lt_cv_dlopen_self+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562 if test "$cross_compiling" = yes; then :
8563 lt_cv_dlopen_self=cross
8564else
John Criswell47fdd832003-07-14 16:52:07 +00008565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008566 lt_status=$lt_dlunknown
8567 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +00008568#line 8568 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008569#include "confdefs.h"
8570
8571#if HAVE_DLFCN_H
8572#include <dlfcn.h>
8573#endif
8574
8575#include <stdio.h>
8576
8577#ifdef RTLD_GLOBAL
8578# define LT_DLGLOBAL RTLD_GLOBAL
8579#else
8580# ifdef DL_GLOBAL
8581# define LT_DLGLOBAL DL_GLOBAL
8582# else
8583# define LT_DLGLOBAL 0
8584# endif
8585#endif
8586
8587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8588 find out it does not work in some platform. */
8589#ifndef LT_DLLAZY_OR_NOW
8590# ifdef RTLD_LAZY
8591# define LT_DLLAZY_OR_NOW RTLD_LAZY
8592# else
8593# ifdef DL_LAZY
8594# define LT_DLLAZY_OR_NOW DL_LAZY
8595# else
8596# ifdef RTLD_NOW
8597# define LT_DLLAZY_OR_NOW RTLD_NOW
8598# else
8599# ifdef DL_NOW
8600# define LT_DLLAZY_OR_NOW DL_NOW
8601# else
8602# define LT_DLLAZY_OR_NOW 0
8603# endif
8604# endif
8605# endif
8606# endif
8607#endif
8608
8609#ifdef __cplusplus
8610extern "C" void exit (int);
8611#endif
8612
8613void fnord() { int i=42;}
8614int main ()
8615{
8616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8617 int status = $lt_dlunknown;
8618
8619 if (self)
8620 {
8621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8623 /* dlclose (self); */
8624 }
8625
8626 exit (status);
8627}
8628EOF
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8634 (./conftest; exit; ) 2>/dev/null
8635 lt_status=$?
8636 case x$lt_status in
8637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8640 esac
8641 else :
8642 # compilation failed
8643 lt_cv_dlopen_self=no
8644 fi
8645fi
8646rm -fr conftest*
8647
8648
8649fi
8650echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8651echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8652
8653 if test "x$lt_cv_dlopen_self" = xyes; then
8654 LDFLAGS="$LDFLAGS $link_static_flag"
8655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8656echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8657if test "${lt_cv_dlopen_self_static+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659else
8660 if test "$cross_compiling" = yes; then :
8661 lt_cv_dlopen_self_static=cross
8662else
John Criswell47fdd832003-07-14 16:52:07 +00008663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008664 lt_status=$lt_dlunknown
8665 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +00008666#line 8666 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008667#include "confdefs.h"
8668
8669#if HAVE_DLFCN_H
8670#include <dlfcn.h>
8671#endif
8672
8673#include <stdio.h>
8674
8675#ifdef RTLD_GLOBAL
8676# define LT_DLGLOBAL RTLD_GLOBAL
8677#else
8678# ifdef DL_GLOBAL
8679# define LT_DLGLOBAL DL_GLOBAL
8680# else
8681# define LT_DLGLOBAL 0
8682# endif
8683#endif
8684
8685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8686 find out it does not work in some platform. */
8687#ifndef LT_DLLAZY_OR_NOW
8688# ifdef RTLD_LAZY
8689# define LT_DLLAZY_OR_NOW RTLD_LAZY
8690# else
8691# ifdef DL_LAZY
8692# define LT_DLLAZY_OR_NOW DL_LAZY
8693# else
8694# ifdef RTLD_NOW
8695# define LT_DLLAZY_OR_NOW RTLD_NOW
8696# else
8697# ifdef DL_NOW
8698# define LT_DLLAZY_OR_NOW DL_NOW
8699# else
8700# define LT_DLLAZY_OR_NOW 0
8701# endif
8702# endif
8703# endif
8704# endif
8705#endif
8706
8707#ifdef __cplusplus
8708extern "C" void exit (int);
8709#endif
8710
8711void fnord() { int i=42;}
8712int main ()
8713{
8714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8715 int status = $lt_dlunknown;
8716
8717 if (self)
8718 {
8719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8721 /* dlclose (self); */
8722 }
8723
8724 exit (status);
8725}
8726EOF
8727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728 (eval $ac_link) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8732 (./conftest; exit; ) 2>/dev/null
8733 lt_status=$?
8734 case x$lt_status in
8735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8738 esac
8739 else :
8740 # compilation failed
8741 lt_cv_dlopen_self_static=no
8742 fi
8743fi
8744rm -fr conftest*
8745
8746
8747fi
8748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8749echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8750 fi
8751
8752 CPPFLAGS="$save_CPPFLAGS"
8753 LDFLAGS="$save_LDFLAGS"
8754 LIBS="$save_LIBS"
8755 ;;
8756 esac
8757
8758 case $lt_cv_dlopen_self in
8759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8760 *) enable_dlopen_self=unknown ;;
8761 esac
8762
8763 case $lt_cv_dlopen_self_static in
8764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8765 *) enable_dlopen_self_static=unknown ;;
8766 esac
8767fi
8768
8769
John Criswell47fdd832003-07-14 16:52:07 +00008770# Report which librarie types wil actually be built
8771echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8772echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8773echo "$as_me:$LINENO: result: $can_build_shared" >&5
8774echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008775
John Criswell47fdd832003-07-14 16:52:07 +00008776echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8777echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8778test "$can_build_shared" = "no" && enable_shared=no
8779
8780# On AIX, shared libraries and static libraries use the same namespace, and
8781# are all built from PIC.
8782case "$host_os" in
8783aix3*)
8784 test "$enable_shared" = yes && enable_static=no
8785 if test -n "$RANLIB"; then
8786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8787 postinstall_cmds='$RANLIB $lib'
8788 fi
8789 ;;
8790
8791aix4*)
8792 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8793 test "$enable_shared" = yes && enable_static=no
8794 fi
8795 ;;
8796 darwin* | rhapsody*)
8797 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8798 archive_cmds_need_lc=no
8799 case "$host_os" in
8800 rhapsody* | darwin1.[012])
8801 allow_undefined_flag='-undefined suppress'
8802 ;;
8803 *) # Darwin 1.3 on
8804 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8805 ;;
8806 esac
8807 # FIXME: Relying on posixy $() will cause problems for
8808 # cross-compilation, but unfortunately the echo tests do not
8809 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8810 # `"' quotes if we put them in here... so don't!
8811 output_verbose_link_cmd='echo'
8812 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8813 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8814 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8815 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}'
8816 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}'
8817 hardcode_direct=no
8818 hardcode_automatic=yes
8819 hardcode_shlibpath_var=unsupported
8820 whole_archive_flag_spec='-all_load $convenience'
8821 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008822 fi
John Criswell7a73b802003-06-30 21:59:07 +00008823 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008824esac
8825echo "$as_me:$LINENO: result: $enable_shared" >&5
8826echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008827
John Criswell47fdd832003-07-14 16:52:07 +00008828echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8829echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8830# Make sure either enable_shared or enable_static is yes.
8831test "$enable_shared" = yes || enable_static=yes
8832echo "$as_me:$LINENO: result: $enable_static" >&5
8833echo "${ECHO_T}$enable_static" >&6
8834
8835# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008836# libtool distribution, otherwise you forgot to ship ltmain.sh
8837# with your package, and you will get complaints that there are
8838# no rules to generate ltmain.sh.
8839if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008840 # See if we are running on zsh, and set the options which allow our commands through
8841 # without removal of \ escapes.
8842 if test -n "${ZSH_VERSION+set}" ; then
8843 setopt NO_GLOB_SUBST
8844 fi
John Criswell7a73b802003-06-30 21:59:07 +00008845 # Now quote all the things that may contain metacharacters while being
8846 # careful not to overquote the AC_SUBSTed values. We take copies of the
8847 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008848 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8849 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8850 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8851 deplibs_check_method reload_flag reload_cmds need_locks \
8852 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8853 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008854 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008855 old_postinstall_cmds old_postuninstall_cmds \
8856 compiler \
8857 CC \
8858 LD \
8859 lt_prog_compiler_wl \
8860 lt_prog_compiler_pic \
8861 lt_prog_compiler_static \
8862 lt_prog_compiler_no_builtin_flag \
8863 export_dynamic_flag_spec \
8864 thread_safe_flag_spec \
8865 whole_archive_flag_spec \
8866 enable_shared_with_static_runtimes \
8867 old_archive_cmds \
8868 old_archive_from_new_cmds \
8869 predep_objects \
8870 postdep_objects \
8871 predeps \
8872 postdeps \
8873 compiler_lib_search_path \
8874 archive_cmds \
8875 archive_expsym_cmds \
8876 postinstall_cmds \
8877 postuninstall_cmds \
8878 old_archive_from_expsyms_cmds \
8879 allow_undefined_flag \
8880 no_undefined_flag \
8881 export_symbols_cmds \
8882 hardcode_libdir_flag_spec \
8883 hardcode_libdir_flag_spec_ld \
8884 hardcode_libdir_separator \
8885 hardcode_automatic \
8886 module_cmds \
8887 module_expsym_cmds \
8888 lt_cv_prog_compiler_c_o \
8889 exclude_expsyms \
8890 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008891
8892 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008893 old_archive_cmds | \
8894 old_archive_from_new_cmds | \
8895 archive_cmds | \
8896 archive_expsym_cmds | \
8897 module_cmds | \
8898 module_expsym_cmds | \
8899 old_archive_from_expsyms_cmds | \
8900 export_symbols_cmds | \
8901 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008902 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008903 old_postinstall_cmds | old_postuninstall_cmds | \
8904 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008905 # Double-quote double-evaled strings.
8906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8907 ;;
8908 *)
8909 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8910 ;;
8911 esac
8912 done
8913
John Criswell47fdd832003-07-14 16:52:07 +00008914 case $lt_echo in
8915 *'\$0 --fallback-echo"')
8916 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8917 ;;
8918 esac
8919
8920cfgfile="${ofile}T"
8921 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8922 $rm -f "$cfgfile"
8923 { echo "$as_me:$LINENO: creating $ofile" >&5
8924echo "$as_me: creating $ofile" >&6;}
8925
8926 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008927#! $SHELL
8928
John Criswell47fdd832003-07-14 16:52:07 +00008929# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008930# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8931# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8932#
John Criswell47fdd832003-07-14 16:52:07 +00008933# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8934# Free Software Foundation, Inc.
8935#
8936# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008937# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8938#
8939# This program is free software; you can redistribute it and/or modify
8940# it under the terms of the GNU General Public License as published by
8941# the Free Software Foundation; either version 2 of the License, or
8942# (at your option) any later version.
8943#
8944# This program is distributed in the hope that it will be useful, but
8945# WITHOUT ANY WARRANTY; without even the implied warranty of
8946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8947# General Public License for more details.
8948#
8949# You should have received a copy of the GNU General Public License
8950# along with this program; if not, write to the Free Software
8951# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8952#
8953# As a special exception to the GNU General Public License, if you
8954# distribute this file as part of a program that contains a
8955# configuration script generated by Autoconf, you may include it under
8956# the same distribution terms that you use for the rest of that program.
8957
John Criswell47fdd832003-07-14 16:52:07 +00008958# A sed program that does not truncate output.
8959SED=$lt_SED
8960
John Criswell7a73b802003-06-30 21:59:07 +00008961# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008962Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008963
8964# The HP-UX ksh and POSIX shell print the target directory to stdout
8965# if CDPATH is set.
8966if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8967
John Criswell47fdd832003-07-14 16:52:07 +00008968# The names of the tagged configurations supported by this script.
8969available_tags=
8970
John Criswell7a73b802003-06-30 21:59:07 +00008971# ### BEGIN LIBTOOL CONFIG
8972
8973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8974
8975# Shell to use when invoking shell scripts.
8976SHELL=$lt_SHELL
8977
8978# Whether or not to build shared libraries.
8979build_libtool_libs=$enable_shared
8980
8981# Whether or not to build static libraries.
8982build_old_libs=$enable_static
8983
8984# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008985build_libtool_need_lc=$archive_cmds_need_lc
8986
8987# Whether or not to disallow shared libs when runtime libs are static
8988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008989
8990# Whether or not to optimize for fast installation.
8991fast_install=$enable_fast_install
8992
8993# The host system.
8994host_alias=$host_alias
8995host=$host
8996
8997# An echo program that does not interpret backslashes.
8998echo=$lt_echo
8999
9000# The archiver.
9001AR=$lt_AR
9002AR_FLAGS=$lt_AR_FLAGS
9003
John Criswell47fdd832003-07-14 16:52:07 +00009004# A C compiler.
9005LTCC=$lt_LTCC
9006
9007# A language-specific compiler.
9008CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009009
9010# Is the compiler the GNU C compiler?
9011with_gcc=$GCC
9012
John Criswell47fdd832003-07-14 16:52:07 +00009013# An ERE matcher.
9014EGREP=$lt_EGREP
9015
John Criswell7a73b802003-06-30 21:59:07 +00009016# The linker used to build libraries.
9017LD=$lt_LD
9018
9019# Whether we need hard or soft links.
9020LN_S=$lt_LN_S
9021
9022# A BSD-compatible nm program.
9023NM=$lt_NM
9024
9025# A symbol stripping program
9026STRIP=$STRIP
9027
9028# Used to examine libraries when file_magic_cmd begins "file"
9029MAGIC_CMD=$MAGIC_CMD
9030
9031# Used on cygwin: DLL creation program.
9032DLLTOOL="$DLLTOOL"
9033
9034# Used on cygwin: object dumper.
9035OBJDUMP="$OBJDUMP"
9036
9037# Used on cygwin: assembler.
9038AS="$AS"
9039
9040# The name of the directory that contains temporary libtool files.
9041objdir=$objdir
9042
9043# How to create reloadable object files.
9044reload_flag=$lt_reload_flag
9045reload_cmds=$lt_reload_cmds
9046
9047# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009048wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009049
9050# Object file suffix (normally "o").
9051objext="$ac_objext"
9052
9053# Old archive suffix (normally "a").
9054libext="$libext"
9055
John Criswell47fdd832003-07-14 16:52:07 +00009056# Shared library suffix (normally ".so").
9057shrext='$shrext'
9058
John Criswell7a73b802003-06-30 21:59:07 +00009059# Executable file suffix (normally "").
9060exeext="$exeext"
9061
9062# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009063pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009064pic_mode=$pic_mode
9065
John Criswell47fdd832003-07-14 16:52:07 +00009066# What is the maximum length of a command?
9067max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009068
John Criswell47fdd832003-07-14 16:52:07 +00009069# Does compiler simultaneously support -c and -o options?
9070compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009071
9072# Must we lock files when doing compilation ?
9073need_locks=$lt_need_locks
9074
9075# Do we need the lib prefix for modules?
9076need_lib_prefix=$need_lib_prefix
9077
9078# Do we need a version for libraries?
9079need_version=$need_version
9080
9081# Whether dlopen is supported.
9082dlopen_support=$enable_dlopen
9083
9084# Whether dlopen of programs is supported.
9085dlopen_self=$enable_dlopen_self
9086
9087# Whether dlopen of statically linked programs is supported.
9088dlopen_self_static=$enable_dlopen_self_static
9089
9090# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009091link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009092
9093# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009094no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009095
9096# Compiler flag to allow reflexive dlopens.
9097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9098
9099# Compiler flag to generate shared objects directly from archives.
9100whole_archive_flag_spec=$lt_whole_archive_flag_spec
9101
9102# Compiler flag to generate thread-safe objects.
9103thread_safe_flag_spec=$lt_thread_safe_flag_spec
9104
9105# Library versioning type.
9106version_type=$version_type
9107
9108# Format of library name prefix.
9109libname_spec=$lt_libname_spec
9110
9111# List of archive names. First name is the real one, the rest are links.
9112# The last name is the one that the linker finds with -lNAME.
9113library_names_spec=$lt_library_names_spec
9114
9115# The coded name of the library, if different from the real name.
9116soname_spec=$lt_soname_spec
9117
9118# Commands used to build and install an old-style archive.
9119RANLIB=$lt_RANLIB
9120old_archive_cmds=$lt_old_archive_cmds
9121old_postinstall_cmds=$lt_old_postinstall_cmds
9122old_postuninstall_cmds=$lt_old_postuninstall_cmds
9123
9124# Create an old-style archive from a shared archive.
9125old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9126
9127# Create a temporary old-style archive to link instead of a shared archive.
9128old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9129
9130# Commands used to build and install a shared archive.
9131archive_cmds=$lt_archive_cmds
9132archive_expsym_cmds=$lt_archive_expsym_cmds
9133postinstall_cmds=$lt_postinstall_cmds
9134postuninstall_cmds=$lt_postuninstall_cmds
9135
John Criswell47fdd832003-07-14 16:52:07 +00009136# Commands used to build a loadable module (assumed same as above if empty)
9137module_cmds=$lt_module_cmds
9138module_expsym_cmds=$lt_module_expsym_cmds
9139
John Criswell7a73b802003-06-30 21:59:07 +00009140# Commands to strip libraries.
9141old_striplib=$lt_old_striplib
9142striplib=$lt_striplib
9143
John Criswell47fdd832003-07-14 16:52:07 +00009144# Dependencies to place before the objects being linked to create a
9145# shared library.
9146predep_objects=$lt_predep_objects
9147
9148# Dependencies to place after the objects being linked to create a
9149# shared library.
9150postdep_objects=$lt_postdep_objects
9151
9152# Dependencies to place before the objects being linked to create a
9153# shared library.
9154predeps=$lt_predeps
9155
9156# Dependencies to place after the objects being linked to create a
9157# shared library.
9158postdeps=$lt_postdeps
9159
9160# The library search path used internally by the compiler when linking
9161# a shared library.
9162compiler_lib_search_path=$lt_compiler_lib_search_path
9163
John Criswell7a73b802003-06-30 21:59:07 +00009164# Method to check whether dependent libraries are shared objects.
9165deplibs_check_method=$lt_deplibs_check_method
9166
9167# Command to use when deplibs_check_method == file_magic.
9168file_magic_cmd=$lt_file_magic_cmd
9169
9170# Flag that allows shared libraries with undefined symbols to be built.
9171allow_undefined_flag=$lt_allow_undefined_flag
9172
9173# Flag that forces no undefined symbols.
9174no_undefined_flag=$lt_no_undefined_flag
9175
9176# Commands used to finish a libtool library installation in a directory.
9177finish_cmds=$lt_finish_cmds
9178
9179# Same as above, but a single script fragment to be evaled but not shown.
9180finish_eval=$lt_finish_eval
9181
9182# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009183global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009184
9185# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009186global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009187
9188# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009189global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009190
9191# This is the shared library runtime path variable.
9192runpath_var=$runpath_var
9193
9194# This is the shared library path variable.
9195shlibpath_var=$shlibpath_var
9196
9197# Is shlibpath searched before the hard-coded library search path?
9198shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9199
9200# How to hardcode a shared library path into an executable.
9201hardcode_action=$hardcode_action
9202
9203# Whether we should hardcode library paths into libraries.
9204hardcode_into_libs=$hardcode_into_libs
9205
9206# Flag to hardcode \$libdir into a binary during linking.
9207# This must work even if \$libdir does not exist.
9208hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9209
John Criswell47fdd832003-07-14 16:52:07 +00009210# If ld is used when linking, flag to hardcode \$libdir into
9211# a binary during linking. This must work even if \$libdir does
9212# not exist.
9213hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9214
John Criswell7a73b802003-06-30 21:59:07 +00009215# Whether we need a single -rpath flag with a separated argument.
9216hardcode_libdir_separator=$lt_hardcode_libdir_separator
9217
John Criswell47fdd832003-07-14 16:52:07 +00009218# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009219# resulting binary.
9220hardcode_direct=$hardcode_direct
9221
9222# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9223# resulting binary.
9224hardcode_minus_L=$hardcode_minus_L
9225
9226# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9227# the resulting binary.
9228hardcode_shlibpath_var=$hardcode_shlibpath_var
9229
John Criswell47fdd832003-07-14 16:52:07 +00009230# Set to yes if building a shared library automatically hardcodes DIR into the library
9231# and all subsequent libraries and executables linked against it.
9232hardcode_automatic=$hardcode_automatic
9233
John Criswell7a73b802003-06-30 21:59:07 +00009234# Variables whose values should be saved in libtool wrapper scripts and
9235# restored at relink time.
9236variables_saved_for_relink="$variables_saved_for_relink"
9237
9238# Whether libtool must link a program against all its dependency libraries.
9239link_all_deplibs=$link_all_deplibs
9240
9241# Compile-time system search path for libraries
9242sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9243
9244# Run-time system search path for libraries
9245sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9246
9247# Fix the shell variable \$srcfile for the compiler.
9248fix_srcfile_path="$fix_srcfile_path"
9249
9250# Set to yes if exported symbols are required.
9251always_export_symbols=$always_export_symbols
9252
9253# The commands to list exported symbols.
9254export_symbols_cmds=$lt_export_symbols_cmds
9255
9256# The commands to extract the exported symbol list from a shared archive.
9257extract_expsyms_cmds=$lt_extract_expsyms_cmds
9258
9259# Symbols that should not be listed in the preloaded symbols.
9260exclude_expsyms=$lt_exclude_expsyms
9261
9262# Symbols that must always be exported.
9263include_expsyms=$lt_include_expsyms
9264
9265# ### END LIBTOOL CONFIG
9266
9267__EOF__
9268
John Criswell47fdd832003-07-14 16:52:07 +00009269
John Criswell7a73b802003-06-30 21:59:07 +00009270 case $host_os in
9271 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009272 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009273
9274# AIX sometimes has problems with the GCC collect2 program. For some
9275# reason, if we set the COLLECT_NAMES environment variable, the problems
9276# vanish in a puff of smoke.
9277if test "X${COLLECT_NAMES+set}" != Xset; then
9278 COLLECT_NAMES=
9279 export COLLECT_NAMES
9280fi
9281EOF
9282 ;;
9283 esac
9284
John Criswell7a73b802003-06-30 21:59:07 +00009285 # We use sed instead of cat because bash on DJGPP gets confused if
9286 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9287 # text mode, it properly converts lines to CR/LF. This bash problem
9288 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009289 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009290
John Criswell47fdd832003-07-14 16:52:07 +00009291 mv -f "$cfgfile" "$ofile" || \
9292 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009293 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009294
9295else
9296 # If there is no Makefile yet, we rely on a make rule to execute
9297 # `config.status --recheck' to rerun these tests and create the
9298 # libtool script then.
9299 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009300fi
John Criswell7a73b802003-06-30 21:59:07 +00009301
9302
John Criswell47fdd832003-07-14 16:52:07 +00009303ac_ext=c
9304ac_cpp='$CPP $CPPFLAGS'
9305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9307ac_compiler_gnu=$ac_cv_c_compiler_gnu
9308
9309CC="$lt_save_CC"
9310
9311
9312# Check whether --with-tags or --without-tags was given.
9313if test "${with_tags+set}" = set; then
9314 withval="$with_tags"
9315 tagnames="$withval"
9316fi;
9317
9318if test -f "$ltmain" && test -n "$tagnames"; then
9319 if test ! -f "${ofile}"; then
9320 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9321echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9322 fi
9323
9324 if test -z "$LTCC"; then
9325 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9326 if test -z "$LTCC"; then
9327 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9328echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9329 else
9330 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9331echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9332 fi
9333 fi
9334
9335 # Extract list of available tagged configurations in $ofile.
9336 # Note that this assumes the entire list is on one line.
9337 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9338
9339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9340 for tagname in $tagnames; do
9341 IFS="$lt_save_ifs"
9342 # Check whether tagname contains only valid characters
9343 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9344 "") ;;
9345 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9346echo "$as_me: error: invalid tag name: $tagname" >&2;}
9347 { (exit 1); exit 1; }; }
9348 ;;
9349 esac
9350
9351 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9352 then
9353 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9354echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9355 { (exit 1); exit 1; }; }
9356 fi
9357
9358 # Update the list of available tags.
9359 if test -n "$tagname"; then
9360 echo appending configuration tag \"$tagname\" to $ofile
9361
9362 case $tagname in
9363 CXX)
9364 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9365 ac_ext=cc
9366ac_cpp='$CXXCPP $CPPFLAGS'
9367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9370
9371
9372
9373
9374archive_cmds_need_lc_CXX=no
9375allow_undefined_flag_CXX=
9376always_export_symbols_CXX=no
9377archive_expsym_cmds_CXX=
9378export_dynamic_flag_spec_CXX=
9379hardcode_direct_CXX=no
9380hardcode_libdir_flag_spec_CXX=
9381hardcode_libdir_flag_spec_ld_CXX=
9382hardcode_libdir_separator_CXX=
9383hardcode_minus_L_CXX=no
9384hardcode_automatic_CXX=no
9385module_cmds_CXX=
9386module_expsym_cmds_CXX=
9387link_all_deplibs_CXX=unknown
9388old_archive_cmds_CXX=$old_archive_cmds
9389no_undefined_flag_CXX=
9390whole_archive_flag_spec_CXX=
9391enable_shared_with_static_runtimes_CXX=no
9392
9393# Dependencies to place before and after the object being linked:
9394predep_objects_CXX=
9395postdep_objects_CXX=
9396predeps_CXX=
9397postdeps_CXX=
9398compiler_lib_search_path_CXX=
9399
9400# Source file extension for C++ test sources.
9401ac_ext=cc
9402
9403# Object file extension for compiled C++ test sources.
9404objext=o
9405objext_CXX=$objext
9406
9407# Code to be used in simple compile tests
9408lt_simple_compile_test_code="int some_variable = 0;\n"
9409
9410# Code to be used in simple link tests
9411lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9412
9413# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9414
9415# If no C compiler was specified, use CC.
9416LTCC=${LTCC-"$CC"}
9417
9418# Allow CC to be a program name with arguments.
9419compiler=$CC
9420
9421
9422# Allow CC to be a program name with arguments.
9423lt_save_CC=$CC
9424lt_save_LD=$LD
9425lt_save_GCC=$GCC
9426GCC=$GXX
9427lt_save_with_gnu_ld=$with_gnu_ld
9428lt_save_path_LD=$lt_cv_path_LD
9429if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9430 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9431else
9432 unset lt_cv_prog_gnu_ld
9433fi
9434if test -n "${lt_cv_path_LDCXX+set}"; then
9435 lt_cv_path_LD=$lt_cv_path_LDCXX
9436else
9437 unset lt_cv_path_LD
9438fi
9439test -z "${LDCXX+set}" || LD=$LDCXX
9440CC=${CXX-"c++"}
9441compiler=$CC
9442compiler_CXX=$CC
9443cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9444
9445# We don't want -fno-exception wen compiling C++ code, so set the
9446# no_builtin_flag separately
9447if test "$GXX" = yes; then
9448 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9449else
9450 lt_prog_compiler_no_builtin_flag_CXX=
9451fi
9452
9453if test "$GXX" = yes; then
9454 # Set up default GNU C++ configuration
9455
9456
9457# Check whether --with-gnu-ld or --without-gnu-ld was given.
9458if test "${with_gnu_ld+set}" = set; then
9459 withval="$with_gnu_ld"
9460 test "$withval" = no || with_gnu_ld=yes
9461else
9462 with_gnu_ld=no
9463fi;
9464ac_prog=ld
9465if test "$GCC" = yes; then
9466 # Check if gcc -print-prog-name=ld gives a path.
9467 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9468echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9469 case $host in
9470 *-*-mingw*)
9471 # gcc leaves a trailing carriage return which upsets mingw
9472 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9473 *)
9474 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9475 esac
9476 case $ac_prog in
9477 # Accept absolute paths.
9478 [\\/]* | ?:[\\/]*)
9479 re_direlt='/[^/][^/]*/\.\./'
9480 # Canonicalize the path of ld
9481 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9482 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9483 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9484 done
9485 test -z "$LD" && LD="$ac_prog"
9486 ;;
9487 "")
9488 # If it fails, then pretend we aren't using GCC.
9489 ac_prog=ld
9490 ;;
9491 *)
9492 # If it is relative, then search for the first ld in PATH.
9493 with_gnu_ld=unknown
9494 ;;
9495 esac
9496elif test "$with_gnu_ld" = yes; then
9497 echo "$as_me:$LINENO: checking for GNU ld" >&5
9498echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9499else
9500 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9501echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9502fi
9503if test "${lt_cv_path_LD+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506 if test -z "$LD"; then
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 for ac_dir in $PATH; do
9509 IFS="$lt_save_ifs"
9510 test -z "$ac_dir" && ac_dir=.
9511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9512 lt_cv_path_LD="$ac_dir/$ac_prog"
9513 # Check to see if the program is GNU ld. I'd rather use --version,
9514 # but apparently some GNU ld's only accept -v.
9515 # Break only if it was the GNU/non-GNU ld that we prefer.
9516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9517 *GNU* | *'with BFD'*)
9518 test "$with_gnu_ld" != no && break
9519 ;;
9520 *)
9521 test "$with_gnu_ld" != yes && break
9522 ;;
9523 esac
9524 fi
9525 done
9526 IFS="$lt_save_ifs"
9527else
9528 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9529fi
9530fi
9531
9532LD="$lt_cv_path_LD"
9533if test -n "$LD"; then
9534 echo "$as_me:$LINENO: result: $LD" >&5
9535echo "${ECHO_T}$LD" >&6
9536else
9537 echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6
9539fi
9540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9542 { (exit 1); exit 1; }; }
9543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9545if test "${lt_cv_prog_gnu_ld+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9549case `"$LD" -v 2>&1 </dev/null` in
9550*GNU* | *'with BFD'*)
9551 lt_cv_prog_gnu_ld=yes
9552 ;;
9553*)
9554 lt_cv_prog_gnu_ld=no
9555 ;;
9556esac
9557fi
9558echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9559echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9560with_gnu_ld=$lt_cv_prog_gnu_ld
9561
9562
9563
9564 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9565 # archiving commands below assume that GNU ld is being used.
9566 if test "$with_gnu_ld" = yes; then
9567 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 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'
9569
9570 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9572
9573 # If archive_cmds runs LD, not CC, wlarc should be empty
9574 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9575 # investigate it a little bit more. (MM)
9576 wlarc='${wl}'
9577
9578 # ancient GNU ld didn't support --whole-archive et. al.
9579 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9580 grep 'no-whole-archive' > /dev/null; then
9581 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9582 else
9583 whole_archive_flag_spec_CXX=
9584 fi
9585 else
9586 with_gnu_ld=no
9587 wlarc=
9588
9589 # A generic and very simple default shared library creation
9590 # command for GNU C++ for the case where it uses the native
9591 # linker, instead of GNU ld. If possible, this setting should
9592 # overridden to take advantage of the native linker features on
9593 # the platform it is being used on.
9594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9595 fi
9596
9597 # Commands to make compiler produce verbose output that lists
9598 # what "hidden" libraries, object files and flags are used when
9599 # linking a shared library.
9600 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9601
9602else
9603 GXX=no
9604 with_gnu_ld=no
9605 wlarc=
9606fi
9607
9608# PORTME: fill in a description of your system's C++ link characteristics
9609echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9610echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9611ld_shlibs_CXX=yes
9612case $host_os in
9613 aix3*)
9614 # FIXME: insert proper C++ library support
9615 ld_shlibs_CXX=no
9616 ;;
9617 aix4* | aix5*)
9618 if test "$host_cpu" = ia64; then
9619 # On IA64, the linker does run time linking by default, so we don't
9620 # have to do anything special.
9621 aix_use_runtimelinking=no
9622 exp_sym_flag='-Bexport'
9623 no_entry_flag=""
9624 else
9625 aix_use_runtimelinking=no
9626
9627 # Test if we are trying to use run time linking or normal
9628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9629 # need to do runtime linking.
9630 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9631 for ld_flag in $LDFLAGS; do
9632 case $ld_flag in
9633 *-brtl*)
9634 aix_use_runtimelinking=yes
9635 break
9636 ;;
9637 esac
9638 done
9639 esac
9640
9641 exp_sym_flag='-bexport'
9642 no_entry_flag='-bnoentry'
9643 fi
9644
9645 # When large executables or shared objects are built, AIX ld can
9646 # have problems creating the table of contents. If linking a library
9647 # or program results in "error TOC overflow" add -mminimal-toc to
9648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9650
9651 archive_cmds_CXX=''
9652 hardcode_direct_CXX=yes
9653 hardcode_libdir_separator_CXX=':'
9654 link_all_deplibs_CXX=yes
9655
9656 if test "$GXX" = yes; then
9657 case $host_os in aix4.012|aix4.012.*)
9658 # We only want to do this on AIX 4.2 and lower, the check
9659 # below for broken collect2 doesn't work under 4.3+
9660 collect2name=`${CC} -print-prog-name=collect2`
9661 if test -f "$collect2name" && \
9662 strings "$collect2name" | grep resolve_lib_name >/dev/null
9663 then
9664 # We have reworked collect2
9665 hardcode_direct_CXX=yes
9666 else
9667 # We have old collect2
9668 hardcode_direct_CXX=unsupported
9669 # It fails to find uninstalled libraries when the uninstalled
9670 # path is not listed in the libpath. Setting hardcode_minus_L
9671 # to unsupported forces relinking
9672 hardcode_minus_L_CXX=yes
9673 hardcode_libdir_flag_spec_CXX='-L$libdir'
9674 hardcode_libdir_separator_CXX=
9675 fi
9676 esac
9677 shared_flag='-shared'
9678 else
9679 # not using gcc
9680 if test "$host_cpu" = ia64; then
9681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9682 # chokes on -Wl,-G. The following line is correct:
9683 shared_flag='-G'
9684 else
9685 if test "$aix_use_runtimelinking" = yes; then
9686 shared_flag='${wl}-G'
9687 else
9688 shared_flag='${wl}-bM:SRE'
9689 fi
9690 fi
9691 fi
9692
9693 # It seems that -bexpall does not export symbols beginning with
9694 # underscore (_), so it is better to generate a list of symbols to export.
9695 always_export_symbols_CXX=yes
9696 if test "$aix_use_runtimelinking" = yes; then
9697 # Warning - without using the other runtime loading flags (-brtl),
9698 # -berok will link without error, but may produce a broken library.
9699 allow_undefined_flag_CXX='-berok'
9700 # Determine the default libpath from the value encoded in an empty executable.
9701 cat >conftest.$ac_ext <<_ACEOF
9702#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009708
John Criswell47fdd832003-07-14 16:52:07 +00009709int
9710main ()
9711{
9712
9713 ;
9714 return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729
9730aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9731}'`
9732# Check for a 64-bit object if we didn't find anything.
9733if 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; }
9734}'`; fi
9735else
9736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009737sed 's/^/| /' conftest.$ac_ext >&5
9738
John Criswell47fdd832003-07-14 16:52:07 +00009739fi
9740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9742
9743 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9744
9745 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"
9746 else
9747 if test "$host_cpu" = ia64; then
9748 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9749 allow_undefined_flag_CXX="-z nodefs"
9750 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"
9751 else
9752 # Determine the default libpath from the value encoded in an empty executable.
9753 cat >conftest.$ac_ext <<_ACEOF
9754#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009755/* confdefs.h. */
9756_ACEOF
9757cat confdefs.h >>conftest.$ac_ext
9758cat >>conftest.$ac_ext <<_ACEOF
9759/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009760
John Criswell47fdd832003-07-14 16:52:07 +00009761int
9762main ()
9763{
9764
9765 ;
9766 return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
9770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781
9782aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9783}'`
9784# Check for a 64-bit object if we didn't find anything.
9785if 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; }
9786}'`; fi
9787else
9788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009789sed 's/^/| /' conftest.$ac_ext >&5
9790
John Criswell47fdd832003-07-14 16:52:07 +00009791fi
9792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9793if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9794
9795 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9796 # Warning - without using the other run time loading flags,
9797 # -berok will link without error, but may produce a broken library.
9798 no_undefined_flag_CXX=' ${wl}-bernotok'
9799 allow_undefined_flag_CXX=' ${wl}-berok'
9800 # -bexpall does not export symbols beginning with underscore (_)
9801 always_export_symbols_CXX=yes
9802 # Exported symbols can be pulled into shared objects from archives
9803 whole_archive_flag_spec_CXX=' '
9804 archive_cmds_need_lc_CXX=yes
9805 # This is similar to how AIX traditionally builds it's shared libraries.
9806 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'
9807 fi
9808 fi
9809 ;;
9810 chorus*)
9811 case $cc_basename in
9812 *)
9813 # FIXME: insert proper C++ library support
9814 ld_shlibs_CXX=no
9815 ;;
9816 esac
9817 ;;
9818
9819 cygwin* | mingw* | pw32*)
9820 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9821 # as there is no search path for DLLs.
9822 hardcode_libdir_flag_spec_CXX='-L$libdir'
9823 allow_undefined_flag_CXX=unsupported
9824 always_export_symbols_CXX=no
9825 enable_shared_with_static_runtimes_CXX=yes
9826
9827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9828 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'
9829 # If the export-symbols file already is a .def file (1st line
9830 # is EXPORTS), use it as is; otherwise, prepend...
9831 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9832 cp $export_symbols $output_objdir/$soname.def;
9833 else
9834 echo EXPORTS > $output_objdir/$soname.def;
9835 cat $export_symbols >> $output_objdir/$soname.def;
9836 fi~
9837 $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'
9838 else
9839 ld_shlibs_CXX=no
9840 fi
9841 ;;
9842
9843 darwin* | rhapsody*)
9844 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9845 archive_cmds_need_lc_CXX=no
9846 case "$host_os" in
9847 rhapsody* | darwin1.[012])
9848 allow_undefined_flag_CXX='-undefined suppress'
9849 ;;
9850 *) # Darwin 1.3 on
9851 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9852 ;;
9853 esac
9854 lt_int_apple_cc_single_mod=no
9855 output_verbose_link_cmd='echo'
9856 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9857 lt_int_apple_cc_single_mod=yes
9858 fi
9859 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9860 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9861 else
9862 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'
9863 fi
9864 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9865
9866 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9867 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9868 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}'
9869 else
9870 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}'
9871 fi
9872 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}'
9873 hardcode_direct_CXX=no
9874 hardcode_automatic_CXX=yes
9875 hardcode_shlibpath_var_CXX=unsupported
9876 whole_archive_flag_spec_CXX='-all_load $convenience'
9877 link_all_deplibs_CXX=yes
9878 fi
9879 ;;
9880
9881 dgux*)
9882 case $cc_basename in
9883 ec++)
9884 # FIXME: insert proper C++ library support
9885 ld_shlibs_CXX=no
9886 ;;
9887 ghcx)
9888 # Green Hills C++ Compiler
9889 # FIXME: insert proper C++ library support
9890 ld_shlibs_CXX=no
9891 ;;
9892 *)
9893 # FIXME: insert proper C++ library support
9894 ld_shlibs_CXX=no
9895 ;;
9896 esac
9897 ;;
9898 freebsd12*)
9899 # C++ shared libraries reported to be fairly broken before switch to ELF
9900 ld_shlibs_CXX=no
9901 ;;
9902 freebsd-elf*)
9903 archive_cmds_need_lc_CXX=no
9904 ;;
9905 freebsd*)
9906 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9907 # conventions
9908 ld_shlibs_CXX=yes
9909 ;;
9910 gnu*)
9911 ;;
9912 hpux9*)
9913 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9914 hardcode_libdir_separator_CXX=:
9915 export_dynamic_flag_spec_CXX='${wl}-E'
9916 hardcode_direct_CXX=yes
9917 hardcode_minus_L_CXX=yes # Not in the search PATH,
9918 # but as the default
9919 # location of the library.
9920
9921 case $cc_basename in
9922 CC)
9923 # FIXME: insert proper C++ library support
9924 ld_shlibs_CXX=no
9925 ;;
9926 aCC)
9927 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'
9928 # Commands to make compiler produce verbose output that lists
9929 # what "hidden" libraries, object files and flags are used when
9930 # linking a shared library.
9931 #
9932 # There doesn't appear to be a way to prevent this compiler from
9933 # explicitly linking system object files so we need to strip them
9934 # from the output so that they don't get included in the library
9935 # dependencies.
9936 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'
9937 ;;
9938 *)
9939 if test "$GXX" = yes; then
9940 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'
9941 else
9942 # FIXME: insert proper C++ library support
9943 ld_shlibs_CXX=no
9944 fi
9945 ;;
9946 esac
9947 ;;
9948 hpux10*|hpux11*)
9949 if test $with_gnu_ld = no; then
9950 case "$host_cpu" in
9951 hppa*64*)
9952 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9953 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9954 hardcode_libdir_separator_CXX=:
9955 ;;
9956 ia64*)
9957 hardcode_libdir_flag_spec_CXX='-L$libdir'
9958 ;;
9959 *)
9960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961 hardcode_libdir_separator_CXX=:
9962 export_dynamic_flag_spec_CXX='${wl}-E'
9963 ;;
9964 esac
9965 fi
9966 case "$host_cpu" in
9967 hppa*64*)
9968 hardcode_direct_CXX=no
9969 hardcode_shlibpath_var_CXX=no
9970 ;;
9971 ia64*)
9972 hardcode_direct_CXX=no
9973 hardcode_shlibpath_var_CXX=no
9974 hardcode_minus_L_CXX=yes # Not in the search PATH,
9975 # but as the default
9976 # location of the library.
9977 ;;
9978 *)
9979 hardcode_direct_CXX=yes
9980 hardcode_minus_L_CXX=yes # Not in the search PATH,
9981 # but as the default
9982 # location of the library.
9983 ;;
9984 esac
9985
9986 case $cc_basename in
9987 CC)
9988 # FIXME: insert proper C++ library support
9989 ld_shlibs_CXX=no
9990 ;;
9991 aCC)
9992 case "$host_cpu" in
9993 hppa*64*|ia64*)
9994 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9995 ;;
9996 *)
9997 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9998 ;;
9999 esac
10000 # Commands to make compiler produce verbose output that lists
10001 # what "hidden" libraries, object files and flags are used when
10002 # linking a shared library.
10003 #
10004 # There doesn't appear to be a way to prevent this compiler from
10005 # explicitly linking system object files so we need to strip them
10006 # from the output so that they don't get included in the library
10007 # dependencies.
10008 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'
10009 ;;
10010 *)
10011 if test "$GXX" = yes; then
10012 if test $with_gnu_ld = no; then
10013 case "$host_cpu" in
10014 ia64*|hppa*64*)
10015 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10016 ;;
10017 *)
10018 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'
10019 ;;
10020 esac
10021 fi
10022 else
10023 # FIXME: insert proper C++ library support
10024 ld_shlibs_CXX=no
10025 fi
10026 ;;
10027 esac
10028 ;;
10029 irix5* | irix6*)
10030 case $cc_basename in
10031 CC)
10032 # SGI C++
10033 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'
10034
10035 # Archives containing C++ object files must be created using
10036 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10037 # necessary to make sure instantiated templates are included
10038 # in the archive.
10039 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10040 ;;
10041 *)
10042 if test "$GXX" = yes; then
10043 if test "$with_gnu_ld" = no; then
10044 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'
10045 else
10046 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'
10047 fi
10048 fi
10049 link_all_deplibs_CXX=yes
10050 ;;
10051 esac
10052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10053 hardcode_libdir_separator_CXX=:
10054 ;;
10055 linux*)
10056 case $cc_basename in
10057 KCC)
10058 # Kuck and Associates, Inc. (KAI) C++ Compiler
10059
10060 # KCC will only create a shared library if the output file
10061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10062 # to its proper name (with version) after linking.
10063 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'
10064 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'
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10068 #
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10072 # dependencies.
10073 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'
10074
10075 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10076 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10077
10078 # Archives containing C++ object files must be created using
10079 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10080 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10081 ;;
10082 icpc)
10083 # Intel C++
10084 with_gnu_ld=yes
10085 archive_cmds_need_lc_CXX=no
10086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087 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'
10088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10089 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10090 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091 ;;
10092 cxx)
10093 # Compaq C++
10094 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095 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'
10096
10097 runpath_var=LD_RUN_PATH
10098 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10099 hardcode_libdir_separator_CXX=:
10100
10101 # Commands to make compiler produce verbose output that lists
10102 # what "hidden" libraries, object files and flags are used when
10103 # linking a shared library.
10104 #
10105 # There doesn't appear to be a way to prevent this compiler from
10106 # explicitly linking system object files so we need to strip them
10107 # from the output so that they don't get included in the library
10108 # dependencies.
10109 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'
10110 ;;
10111 esac
10112 ;;
10113 lynxos*)
10114 # FIXME: insert proper C++ library support
10115 ld_shlibs_CXX=no
10116 ;;
10117 m88k*)
10118 # FIXME: insert proper C++ library support
10119 ld_shlibs_CXX=no
10120 ;;
10121 mvs*)
10122 case $cc_basename in
10123 cxx)
10124 # FIXME: insert proper C++ library support
10125 ld_shlibs_CXX=no
10126 ;;
10127 *)
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 esac
10132 ;;
10133 netbsd*)
10134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10135 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10136 wlarc=
10137 hardcode_libdir_flag_spec_CXX='-R$libdir'
10138 hardcode_direct_CXX=yes
10139 hardcode_shlibpath_var_CXX=no
10140 fi
10141 # Workaround some broken pre-1.5 toolchains
10142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10143 ;;
10144 osf3*)
10145 case $cc_basename in
10146 KCC)
10147 # Kuck and Associates, Inc. (KAI) C++ Compiler
10148
10149 # KCC will only create a shared library if the output file
10150 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10151 # to its proper name (with version) after linking.
10152 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'
10153
10154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10155 hardcode_libdir_separator_CXX=:
10156
10157 # Archives containing C++ object files must be created using
10158 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10159 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10160
10161 ;;
10162 RCC)
10163 # Rational C++ 2.4.1
10164 # FIXME: insert proper C++ library support
10165 ld_shlibs_CXX=no
10166 ;;
10167 cxx)
10168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10169 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'
10170
10171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10172 hardcode_libdir_separator_CXX=:
10173
10174 # Commands to make compiler produce verbose output that lists
10175 # what "hidden" libraries, object files and flags are used when
10176 # linking a shared library.
10177 #
10178 # There doesn't appear to be a way to prevent this compiler from
10179 # explicitly linking system object files so we need to strip them
10180 # from the output so that they don't get included in the library
10181 # dependencies.
10182 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'
10183 ;;
10184 *)
10185 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10186 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10187 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'
10188
10189 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10190 hardcode_libdir_separator_CXX=:
10191
10192 # Commands to make compiler produce verbose output that lists
10193 # what "hidden" libraries, object files and flags are used when
10194 # linking a shared library.
10195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10196
10197 else
10198 # FIXME: insert proper C++ library support
10199 ld_shlibs_CXX=no
10200 fi
10201 ;;
10202 esac
10203 ;;
10204 osf4* | osf5*)
10205 case $cc_basename in
10206 KCC)
10207 # Kuck and Associates, Inc. (KAI) C++ Compiler
10208
10209 # KCC will only create a shared library if the output file
10210 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10211 # to its proper name (with version) after linking.
10212 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'
10213
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10215 hardcode_libdir_separator_CXX=:
10216
10217 # Archives containing C++ object files must be created using
10218 # the KAI C++ compiler.
10219 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10220 ;;
10221 RCC)
10222 # Rational C++ 2.4.1
10223 # FIXME: insert proper C++ library support
10224 ld_shlibs_CXX=no
10225 ;;
10226 cxx)
10227 allow_undefined_flag_CXX=' -expect_unresolved \*'
10228 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'
10229 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10230 echo "-hidden">> $lib.exp~
10231 $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~
10232 $rm $lib.exp'
10233
10234 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10235 hardcode_libdir_separator_CXX=:
10236
10237 # Commands to make compiler produce verbose output that lists
10238 # what "hidden" libraries, object files and flags are used when
10239 # linking a shared library.
10240 #
10241 # There doesn't appear to be a way to prevent this compiler from
10242 # explicitly linking system object files so we need to strip them
10243 # from the output so that they don't get included in the library
10244 # dependencies.
10245 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'
10246 ;;
10247 *)
10248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10249 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10250 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'
10251
10252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10253 hardcode_libdir_separator_CXX=:
10254
10255 # Commands to make compiler produce verbose output that lists
10256 # what "hidden" libraries, object files and flags are used when
10257 # linking a shared library.
10258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10259
10260 else
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 fi
10264 ;;
10265 esac
10266 ;;
10267 psos*)
10268 # FIXME: insert proper C++ library support
10269 ld_shlibs_CXX=no
10270 ;;
10271 sco*)
10272 archive_cmds_need_lc_CXX=no
10273 case $cc_basename in
10274 CC)
10275 # FIXME: insert proper C++ library support
10276 ld_shlibs_CXX=no
10277 ;;
10278 *)
10279 # FIXME: insert proper C++ library support
10280 ld_shlibs_CXX=no
10281 ;;
10282 esac
10283 ;;
10284 sunos4*)
10285 case $cc_basename in
10286 CC)
10287 # Sun C++ 4.x
10288 # FIXME: insert proper C++ library support
10289 ld_shlibs_CXX=no
10290 ;;
10291 lcc)
10292 # Lucid
10293 # FIXME: insert proper C++ library support
10294 ld_shlibs_CXX=no
10295 ;;
10296 *)
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 esac
10301 ;;
10302 solaris*)
10303 case $cc_basename in
10304 CC)
10305 # Sun C++ 4.2, 5.x and Centerline C++
10306 no_undefined_flag_CXX=' -zdefs'
10307 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10308 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10309 $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'
10310
10311 hardcode_libdir_flag_spec_CXX='-R$libdir'
10312 hardcode_shlibpath_var_CXX=no
10313 case $host_os in
10314 solaris2.0-5 | solaris2.0-5.*) ;;
10315 *)
10316 # The C++ compiler is used as linker so we must use $wl
10317 # flag to pass the commands to the underlying system
10318 # linker.
10319 # Supported since Solaris 2.6 (maybe 2.5.1?)
10320 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10321 ;;
10322 esac
10323 link_all_deplibs_CXX=yes
10324
10325 # Commands to make compiler produce verbose output that lists
10326 # what "hidden" libraries, object files and flags are used when
10327 # linking a shared library.
10328 #
10329 # There doesn't appear to be a way to prevent this compiler from
10330 # explicitly linking system object files so we need to strip them
10331 # from the output so that they don't get included in the library
10332 # dependencies.
10333 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'
10334
10335 # Archives containing C++ object files must be created using
10336 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10337 # necessary to make sure instantiated templates are included
10338 # in the archive.
10339 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10340 ;;
10341 gcx)
10342 # Green Hills C++ Compiler
10343 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10344
10345 # The C++ compiler must be used to create the archive.
10346 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10347 ;;
10348 *)
10349 # GNU C++ compiler with Solaris linker
10350 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10351 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10352 if $CC --version | grep -v '^2\.7' > /dev/null; then
10353 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10354 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10355 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10356
10357 # Commands to make compiler produce verbose output that lists
10358 # what "hidden" libraries, object files and flags are used when
10359 # linking a shared library.
10360 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10361 else
10362 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10363 # platform.
10364 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10365 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10366 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10367
10368 # Commands to make compiler produce verbose output that lists
10369 # what "hidden" libraries, object files and flags are used when
10370 # linking a shared library.
10371 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10372 fi
10373
10374 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10375 fi
10376 ;;
10377 esac
10378 ;;
10379 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10380 archive_cmds_need_lc_CXX=no
10381 ;;
10382 tandem*)
10383 case $cc_basename in
10384 NCC)
10385 # NonStop-UX NCC 3.20
10386 # FIXME: insert proper C++ library support
10387 ld_shlibs_CXX=no
10388 ;;
10389 *)
10390 # FIXME: insert proper C++ library support
10391 ld_shlibs_CXX=no
10392 ;;
10393 esac
10394 ;;
10395 vxworks*)
10396 # FIXME: insert proper C++ library support
10397 ld_shlibs_CXX=no
10398 ;;
10399 *)
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403esac
10404echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10405echo "${ECHO_T}$ld_shlibs_CXX" >&6
10406test "$ld_shlibs_CXX" = no && can_build_shared=no
10407
10408GCC_CXX="$GXX"
10409LD_CXX="$LD"
10410
10411## CAVEAT EMPTOR:
10412## There is no encapsulation within the following macros, do not change
10413## the running order or otherwise move them around unless you know exactly
10414## what you are doing...
10415
10416cat > conftest.$ac_ext <<EOF
10417class Foo
10418{
10419public:
10420 Foo (void) { a = 0; }
10421private:
10422 int a;
10423};
10424EOF
10425
10426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; then
10431 # Parse the compiler output and extract the necessary
10432 # objects, libraries and library flags.
10433
10434 # Sentinel used to keep track of whether or not we are before
10435 # the conftest object file.
10436 pre_test_object_deps_done=no
10437
10438 # The `*' in the case matches for architectures that use `case' in
10439 # $output_verbose_cmd can trigger glob expansion during the loop
10440 # eval without this substitution.
10441 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10442
10443 for p in `eval $output_verbose_link_cmd`; do
10444 case $p in
10445
10446 -L* | -R* | -l*)
10447 # Some compilers place space between "-{L,R}" and the path.
10448 # Remove the space.
10449 if test $p = "-L" \
10450 || test $p = "-R"; then
10451 prev=$p
10452 continue
10453 else
10454 prev=
10455 fi
10456
10457 if test "$pre_test_object_deps_done" = no; then
10458 case $p in
10459 -L* | -R*)
10460 # Internal compiler library paths should come after those
10461 # provided the user. The postdeps already come after the
10462 # user supplied libs so there is no need to process them.
10463 if test -z "$compiler_lib_search_path_CXX"; then
10464 compiler_lib_search_path_CXX="${prev}${p}"
10465 else
10466 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10467 fi
10468 ;;
10469 # The "-l" case would never come before the object being
10470 # linked, so don't bother handling this case.
10471 esac
10472 else
10473 if test -z "$postdeps_CXX"; then
10474 postdeps_CXX="${prev}${p}"
10475 else
10476 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10477 fi
10478 fi
10479 ;;
10480
10481 *.$objext)
10482 # This assumes that the test object file only shows up
10483 # once in the compiler output.
10484 if test "$p" = "conftest.$objext"; then
10485 pre_test_object_deps_done=yes
10486 continue
10487 fi
10488
10489 if test "$pre_test_object_deps_done" = no; then
10490 if test -z "$predep_objects_CXX"; then
10491 predep_objects_CXX="$p"
10492 else
10493 predep_objects_CXX="$predep_objects_CXX $p"
10494 fi
10495 else
10496 if test -z "$postdep_objects_CXX"; then
10497 postdep_objects_CXX="$p"
10498 else
10499 postdep_objects_CXX="$postdep_objects_CXX $p"
10500 fi
10501 fi
10502 ;;
10503
10504 *) ;; # Ignore the rest.
10505
10506 esac
10507 done
10508
10509 # Clean up.
10510 rm -f a.out a.exe
10511else
10512 echo "libtool.m4: error: problem compiling CXX test program"
10513fi
10514
10515$rm -f confest.$objext
10516
10517case " $postdeps_CXX " in
10518*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10519esac
10520
10521lt_prog_compiler_wl_CXX=
10522lt_prog_compiler_pic_CXX=
10523lt_prog_compiler_static_CXX=
10524
10525echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10526echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10527
10528 # C++ specific cases for pic, static, wl, etc.
10529 if test "$GXX" = yes; then
10530 lt_prog_compiler_wl_CXX='-Wl,'
10531 lt_prog_compiler_static_CXX='-static'
10532
10533 case $host_os in
10534 aix*)
10535 # All AIX code is PIC.
10536 if test "$host_cpu" = ia64; then
10537 # AIX 5 now supports IA64 processor
10538 lt_prog_compiler_static_CXX='-Bstatic'
10539 fi
10540 ;;
10541 amigaos*)
10542 # FIXME: we need at least 68020 code to build shared libraries, but
10543 # adding the `-m68020' flag to GCC prevents building anything better,
10544 # like `-m68040'.
10545 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10546 ;;
10547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10548 # PIC is the default for these OSes.
10549 ;;
10550 mingw* | os2* | pw32*)
10551 # This hack is so that the source file can tell whether it is being
10552 # built for inclusion in a dll (and should export symbols for example).
10553 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10554 ;;
10555 darwin* | rhapsody*)
10556 # PIC is the default on this platform
10557 # Common symbols not allowed in MH_DYLIB files
10558 lt_prog_compiler_pic_CXX='-fno-common'
10559 ;;
10560 *djgpp*)
10561 # DJGPP does not support shared libraries at all
10562 lt_prog_compiler_pic_CXX=
10563 ;;
10564 sysv4*MP*)
10565 if test -d /usr/nec; then
10566 lt_prog_compiler_pic_CXX=-Kconform_pic
10567 fi
10568 ;;
10569 hpux*)
10570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10571 # not for PA HP-UX.
10572 case "$host_cpu" in
10573 hppa*64*|ia64*)
10574 ;;
10575 *)
10576 lt_prog_compiler_pic_CXX='-fPIC'
10577 ;;
10578 esac
10579 ;;
10580 *)
10581 lt_prog_compiler_pic_CXX='-fPIC'
10582 ;;
10583 esac
10584 else
10585 case $host_os in
10586 aix4* | aix5*)
10587 # All AIX code is PIC.
10588 if test "$host_cpu" = ia64; then
10589 # AIX 5 now supports IA64 processor
10590 lt_prog_compiler_static_CXX='-Bstatic'
10591 else
10592 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10593 fi
10594 ;;
10595 chorus*)
10596 case $cc_basename in
10597 cxch68)
10598 # Green Hills C++ Compiler
10599 # _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"
10600 ;;
10601 esac
10602 ;;
10603 dgux*)
10604 case $cc_basename in
10605 ec++)
10606 lt_prog_compiler_pic_CXX='-KPIC'
10607 ;;
10608 ghcx)
10609 # Green Hills C++ Compiler
10610 lt_prog_compiler_pic_CXX='-pic'
10611 ;;
10612 *)
10613 ;;
10614 esac
10615 ;;
10616 freebsd*)
10617 # FreeBSD uses GNU C++
10618 ;;
10619 hpux9* | hpux10* | hpux11*)
10620 case $cc_basename in
10621 CC)
10622 lt_prog_compiler_wl_CXX='-Wl,'
10623 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10624 if test "$host_cpu" != ia64; then
10625 lt_prog_compiler_pic_CXX='+Z'
10626 fi
10627 ;;
10628 aCC)
10629 lt_prog_compiler_wl_CXX='-Wl,'
10630 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10631 case "$host_cpu" in
10632 hppa*64*|ia64*)
10633 # +Z the default
10634 ;;
10635 *)
10636 lt_prog_compiler_pic_CXX='+Z'
10637 ;;
10638 esac
10639 ;;
10640 *)
10641 ;;
10642 esac
10643 ;;
10644 irix5* | irix6* | nonstopux*)
10645 case $cc_basename in
10646 CC)
10647 lt_prog_compiler_wl_CXX='-Wl,'
10648 lt_prog_compiler_static_CXX='-non_shared'
10649 # CC pic flag -KPIC is the default.
10650 ;;
10651 *)
10652 ;;
10653 esac
10654 ;;
10655 linux*)
10656 case $cc_basename in
10657 KCC)
10658 # KAI C++ Compiler
10659 lt_prog_compiler_wl_CXX='--backend -Wl,'
10660 lt_prog_compiler_pic_CXX='-fPIC'
10661 ;;
10662 icpc)
10663 # Intel C++
10664 lt_prog_compiler_wl_CXX='-Wl,'
10665 lt_prog_compiler_pic_CXX='-KPIC'
10666 lt_prog_compiler_static_CXX='-static'
10667 ;;
10668 cxx)
10669 # Compaq C++
10670 # Make sure the PIC flag is empty. It appears that all Alpha
10671 # Linux and Compaq Tru64 Unix objects are PIC.
10672 lt_prog_compiler_pic_CXX=
10673 lt_prog_compiler_static_CXX='-non_shared'
10674 ;;
10675 *)
10676 ;;
10677 esac
10678 ;;
10679 lynxos*)
10680 ;;
10681 m88k*)
10682 ;;
10683 mvs*)
10684 case $cc_basename in
10685 cxx)
10686 lt_prog_compiler_pic_CXX='-W c,exportall'
10687 ;;
10688 *)
10689 ;;
10690 esac
10691 ;;
10692 netbsd*)
10693 ;;
10694 osf3* | osf4* | osf5*)
10695 case $cc_basename in
10696 KCC)
10697 lt_prog_compiler_wl_CXX='--backend -Wl,'
10698 ;;
10699 RCC)
10700 # Rational C++ 2.4.1
10701 lt_prog_compiler_pic_CXX='-pic'
10702 ;;
10703 cxx)
10704 # Digital/Compaq C++
10705 lt_prog_compiler_wl_CXX='-Wl,'
10706 # Make sure the PIC flag is empty. It appears that all Alpha
10707 # Linux and Compaq Tru64 Unix objects are PIC.
10708 lt_prog_compiler_pic_CXX=
10709 lt_prog_compiler_static_CXX='-non_shared'
10710 ;;
10711 *)
10712 ;;
10713 esac
10714 ;;
10715 psos*)
10716 ;;
10717 sco*)
10718 case $cc_basename in
10719 CC)
10720 lt_prog_compiler_pic_CXX='-fPIC'
10721 ;;
10722 *)
10723 ;;
10724 esac
10725 ;;
10726 solaris*)
10727 case $cc_basename in
10728 CC)
10729 # Sun C++ 4.2, 5.x and Centerline C++
10730 lt_prog_compiler_pic_CXX='-KPIC'
10731 lt_prog_compiler_static_CXX='-Bstatic'
10732 lt_prog_compiler_wl_CXX='-Qoption ld '
10733 ;;
10734 gcx)
10735 # Green Hills C++ Compiler
10736 lt_prog_compiler_pic_CXX='-PIC'
10737 ;;
10738 *)
10739 ;;
10740 esac
10741 ;;
10742 sunos4*)
10743 case $cc_basename in
10744 CC)
10745 # Sun C++ 4.x
10746 lt_prog_compiler_pic_CXX='-pic'
10747 lt_prog_compiler_static_CXX='-Bstatic'
10748 ;;
10749 lcc)
10750 # Lucid
10751 lt_prog_compiler_pic_CXX='-pic'
10752 ;;
10753 *)
10754 ;;
10755 esac
10756 ;;
10757 tandem*)
10758 case $cc_basename in
10759 NCC)
10760 # NonStop-UX NCC 3.20
10761 lt_prog_compiler_pic_CXX='-KPIC'
10762 ;;
10763 *)
10764 ;;
10765 esac
10766 ;;
10767 unixware*)
10768 ;;
10769 vxworks*)
10770 ;;
10771 *)
10772 lt_prog_compiler_can_build_shared_CXX=no
10773 ;;
10774 esac
10775 fi
10776
10777echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10778echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10779
10780#
10781# Check to make sure the PIC flag actually works.
10782#
10783if test -n "$lt_prog_compiler_pic_CXX"; then
10784 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10785echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10786if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788else
10789 lt_prog_compiler_pic_works_CXX=no
10790 ac_outfile=conftest.$ac_objext
10791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10793 # Insert the option either (1) after the last *FLAGS variable, or
10794 # (2) before a word containing "conftest.", or (3) at the end.
10795 # Note that $ac_compile itself does not contain backslashes and begins
10796 # with a dollar sign (not a hyphen), so the echo should work correctly.
10797 # The option is referenced via a variable to avoid confusing sed.
10798 lt_compile=`echo "$ac_compile" | $SED \
10799 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10801 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000010802 (eval echo "\"\$as_me:10802: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010803 (eval "$lt_compile" 2>conftest.err)
10804 ac_status=$?
10805 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000010806 echo "$as_me:10806: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010807 if (exit $ac_status) && test -s "$ac_outfile"; then
10808 # The compiler can only warn and ignore the option if not recognized
10809 # So say no if there are warnings
10810 if test ! -s conftest.err; then
10811 lt_prog_compiler_pic_works_CXX=yes
10812 fi
10813 fi
10814 $rm conftest*
10815
10816fi
10817echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10818echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10819
10820if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10821 case $lt_prog_compiler_pic_CXX in
10822 "" | " "*) ;;
10823 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10824 esac
10825else
10826 lt_prog_compiler_pic_CXX=
10827 lt_prog_compiler_can_build_shared_CXX=no
10828fi
10829
10830fi
10831case "$host_os" in
10832 # For platforms which do not support PIC, -DPIC is meaningless:
10833 *djgpp*)
10834 lt_prog_compiler_pic_CXX=
10835 ;;
10836 *)
10837 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10838 ;;
10839esac
10840
10841echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10842echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10843if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845else
10846 lt_cv_prog_compiler_c_o_CXX=no
10847 $rm -r conftest 2>/dev/null
10848 mkdir conftest
10849 cd conftest
10850 mkdir out
10851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10852
10853 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10854 # that will create temporary files in the current directory regardless of
10855 # the output directory. Thus, making CWD read-only will cause this test
10856 # to fail, enabling locking or at least warning the user not to do parallel
10857 # builds.
10858 chmod -w .
10859
10860 lt_compiler_flag="-o out/conftest2.$ac_objext"
10861 # Insert the option either (1) after the last *FLAGS variable, or
10862 # (2) before a word containing "conftest.", or (3) at the end.
10863 # Note that $ac_compile itself does not contain backslashes and begins
10864 # with a dollar sign (not a hyphen), so the echo should work correctly.
10865 lt_compile=`echo "$ac_compile" | $SED \
10866 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000010869 (eval echo "\"\$as_me:10869: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010870 (eval "$lt_compile" 2>out/conftest.err)
10871 ac_status=$?
10872 cat out/conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000010873 echo "$as_me:10873: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10875 then
10876 # The compiler can only warn and ignore the option if not recognized
10877 # So say no if there are warnings
10878 if test ! -s out/conftest.err; then
10879 lt_cv_prog_compiler_c_o_CXX=yes
10880 fi
10881 fi
10882 chmod u+w .
10883 $rm conftest* out/*
10884 rmdir out
10885 cd ..
10886 rmdir conftest
10887 $rm conftest*
10888
10889fi
10890echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10891echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10892
10893
10894hard_links="nottested"
10895if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10896 # do not overwrite the value of need_locks provided by the user
10897 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10898echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10899 hard_links=yes
10900 $rm conftest*
10901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10902 touch conftest.a
10903 ln conftest.a conftest.b 2>&5 || hard_links=no
10904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10905 echo "$as_me:$LINENO: result: $hard_links" >&5
10906echo "${ECHO_T}$hard_links" >&6
10907 if test "$hard_links" = no; then
10908 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10909echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10910 need_locks=warn
10911 fi
10912else
10913 need_locks=no
10914fi
10915
10916echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10917echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10918
10919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10920 case $host_os in
10921 aix4* | aix5*)
10922 # If we're using GNU nm, then we don't want the "-C" option.
10923 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10924 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10925 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'
10926 else
10927 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'
10928 fi
10929 ;;
10930 pw32*)
10931 export_symbols_cmds_CXX="$ltdll_cmds"
10932 ;;
10933 cygwin* | mingw*)
10934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10935 ;;
10936 *)
10937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10938 ;;
10939 esac
10940
10941echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10942echo "${ECHO_T}$ld_shlibs_CXX" >&6
10943test "$ld_shlibs_CXX" = no && can_build_shared=no
10944
10945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10946if test "$GCC" = yes; then
10947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10948fi
10949
10950#
10951# Do we need to explicitly link libc?
10952#
10953case "x$archive_cmds_need_lc_CXX" in
10954x|xyes)
10955 # Assume -lc should be added
10956 archive_cmds_need_lc_CXX=yes
10957
10958 if test "$enable_shared" = yes && test "$GCC" = yes; then
10959 case $archive_cmds_CXX in
10960 *'~'*)
10961 # FIXME: we may have to deal with multi-command sequences.
10962 ;;
10963 '$CC '*)
10964 # Test whether the compiler implicitly links with -lc since on some
10965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10966 # to ld, don't add -lc before -lgcc.
10967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10969 $rm conftest*
10970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10971
10972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973 (eval $ac_compile) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } 2>conftest.err; then
10977 soname=conftest
10978 lib=conftest
10979 libobjs=conftest.$ac_objext
10980 deplibs=
10981 wl=$lt_prog_compiler_wl_CXX
10982 compiler_flags=-v
10983 linker_flags=-v
10984 verstring=
10985 output_objdir=.
10986 libname=conftest
10987 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10988 allow_undefined_flag_CXX=
10989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10990 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }
10994 then
10995 archive_cmds_need_lc_CXX=no
10996 else
10997 archive_cmds_need_lc_CXX=yes
10998 fi
10999 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11000 else
11001 cat conftest.err 1>&5
11002 fi
11003 $rm conftest*
11004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11005echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11006 ;;
11007 esac
11008 fi
11009 ;;
11010esac
11011
11012echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11013echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11014hardcode_action_CXX=
11015if test -n "$hardcode_libdir_flag_spec_CXX" || \
11016 test -n "$runpath_var CXX" || \
11017 test "X$hardcode_automatic_CXX"="Xyes" ; then
11018
11019 # We can hardcode non-existant directories.
11020 if test "$hardcode_direct_CXX" != no &&
11021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11022 # have to relink, otherwise we might link with an installed library
11023 # when we should be linking with a yet-to-be-installed one
11024 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11025 test "$hardcode_minus_L_CXX" != no; then
11026 # Linking always hardcodes the temporary library directory.
11027 hardcode_action_CXX=relink
11028 else
11029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11030 hardcode_action_CXX=immediate
11031 fi
11032else
11033 # We cannot hardcode anything, or else we can only hardcode existing
11034 # directories.
11035 hardcode_action_CXX=unsupported
11036fi
11037echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11038echo "${ECHO_T}$hardcode_action_CXX" >&6
11039
11040if test "$hardcode_action_CXX" = relink; then
11041 # Fast installation is not supported
11042 enable_fast_install=no
11043elif test "$shlibpath_overrides_runpath" = yes ||
11044 test "$enable_shared" = no; then
11045 # Fast installation is not necessary
11046 enable_fast_install=needless
11047fi
11048
11049striplib=
11050old_striplib=
11051echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11052echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11053if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11055 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11056 echo "$as_me:$LINENO: result: yes" >&5
11057echo "${ECHO_T}yes" >&6
11058else
11059# FIXME - insert some real tests, host_os isn't really good enough
11060 case $host_os in
11061 darwin*)
11062 if test -n "$STRIP" ; then
11063 striplib="$STRIP -x"
11064 echo "$as_me:$LINENO: result: yes" >&5
11065echo "${ECHO_T}yes" >&6
11066 else
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
11069fi
11070 ;;
11071 *)
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 ;;
11075 esac
11076fi
11077
11078echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11079echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11080library_names_spec=
11081libname_spec='lib$name'
11082soname_spec=
11083shrext=".so"
11084postinstall_cmds=
11085postuninstall_cmds=
11086finish_cmds=
11087finish_eval=
11088shlibpath_var=
11089shlibpath_overrides_runpath=unknown
11090version_type=none
11091dynamic_linker="$host_os ld.so"
11092sys_lib_dlsearch_path_spec="/lib /usr/lib"
11093if test "$GCC" = yes; then
11094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11095 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11096 # if the path contains ";" then we assume it to be the separator
11097 # otherwise default to the standard path separator (i.e. ":") - it is
11098 # assumed that no part of a normal pathname contains ";" but that should
11099 # okay in the real world where ";" in dirpaths is itself problematic.
11100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11101 else
11102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11103 fi
11104else
11105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11106fi
11107need_lib_prefix=unknown
11108hardcode_into_libs=no
11109
11110# when you set need_version to no, make sure it does not cause -set_version
11111# flags to be left without arguments
11112need_version=unknown
11113
11114case $host_os in
11115aix3*)
11116 version_type=linux
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11118 shlibpath_var=LIBPATH
11119
11120 # AIX 3 has no versioning support, so we append a major version to the name.
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 ;;
11123
11124aix4* | aix5*)
11125 version_type=linux
11126 need_lib_prefix=no
11127 need_version=no
11128 hardcode_into_libs=yes
11129 if test "$host_cpu" = ia64; then
11130 # AIX 5 supports IA64
11131 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 else
11134 # With GCC up to 2.95.x, collect2 would create an import file
11135 # for dependence libraries. The import file would start with
11136 # the line `#! .'. This would cause the generated library to
11137 # depend on `.', always an invalid library. This was fixed in
11138 # development snapshots of GCC prior to 3.0.
11139 case $host_os in
11140 aix4 | aix4.[01] | aix4.[01].*)
11141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11142 echo ' yes '
11143 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11144 :
11145 else
11146 can_build_shared=no
11147 fi
11148 ;;
11149 esac
11150 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11151 # soname into executable. Probably we can add versioning support to
11152 # collect2, so additional links can be useful in future.
11153 if test "$aix_use_runtimelinking" = yes; then
11154 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11155 # instead of lib<name>.a to let people know that these are not
11156 # typical AIX shared libraries.
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 else
11159 # We preserve .a as extension for shared libraries through AIX4.2
11160 # and later when we are not doing run time linking.
11161 library_names_spec='${libname}${release}.a $libname.a'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 fi
11164 shlibpath_var=LIBPATH
11165 fi
11166 ;;
11167
11168amigaos*)
11169 library_names_spec='$libname.ixlibrary $libname.a'
11170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11171 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'
11172 ;;
11173
11174beos*)
11175 library_names_spec='${libname}${shared_ext}'
11176 dynamic_linker="$host_os ld.so"
11177 shlibpath_var=LIBRARY_PATH
11178 ;;
11179
11180bsdi4*)
11181 version_type=linux
11182 need_version=no
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11189 # the default ld.so.conf also contains /usr/contrib/lib and
11190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11191 # libtool to hard-code these into programs
11192 ;;
11193
11194cygwin* | mingw* | pw32*)
11195 version_type=windows
11196 shrext=".dll"
11197 need_version=no
11198 need_lib_prefix=no
11199
11200 case $GCC,$host_os in
11201 yes,cygwin* | yes,mingw* | yes,pw32*)
11202 library_names_spec='$libname.dll.a'
11203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11204 postinstall_cmds='base_file=`basename \${file}`~
11205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11206 dldir=$destdir/`dirname \$dlpath`~
11207 test -d \$dldir || mkdir -p \$dldir~
11208 $install_prog $dir/$dlname \$dldir/$dlname'
11209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11210 dlpath=$dir/\$dldll~
11211 $rm \$dlpath'
11212 shlibpath_overrides_runpath=yes
11213
11214 case $host_os in
11215 cygwin*)
11216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11218 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11219 ;;
11220 mingw*)
11221 # MinGW DLLs use traditional 'lib' prefix
11222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11225 # It is most probably a Windows format PATH printed by
11226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11227 # path with ; separators, and with drive letters. We can handle the
11228 # drive letters (cygwin fileutils understands them), so leave them,
11229 # especially as we might pass files found there to a mingw objdump,
11230 # which wouldn't understand a cygwinified path. Ahh.
11231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11232 else
11233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11234 fi
11235 ;;
11236 pw32*)
11237 # pw32 DLLs use 'pw' prefix rather than 'lib'
11238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11239 ;;
11240 esac
11241 ;;
11242
11243 *)
11244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11245 ;;
11246 esac
11247 dynamic_linker='Win32 ld.exe'
11248 # FIXME: first we should search . and the directory the executable is in
11249 shlibpath_var=PATH
11250 ;;
11251
11252darwin* | rhapsody*)
11253 dynamic_linker="$host_os dyld"
11254 version_type=darwin
11255 need_lib_prefix=no
11256 need_version=no
11257 # FIXME: Relying on posixy $() will cause problems for
11258 # cross-compilation, but unfortunately the echo tests do not
11259 # yet detect zsh echo's removal of \ escapes.
11260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11261 soname_spec='${libname}${release}${major}$shared_ext'
11262 shlibpath_overrides_runpath=yes
11263 shlibpath_var=DYLD_LIBRARY_PATH
11264 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11266 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11267 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"`
11268 fi
11269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11270 ;;
11271
11272dgux*)
11273 version_type=linux
11274 need_lib_prefix=no
11275 need_version=no
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11277 soname_spec='${libname}${release}${shared_ext}$major'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 ;;
11280
11281freebsd1*)
11282 dynamic_linker=no
11283 ;;
11284
11285freebsd*)
11286 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11287 version_type=freebsd-$objformat
11288 case $version_type in
11289 freebsd-elf*)
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11291 need_version=no
11292 need_lib_prefix=no
11293 ;;
11294 freebsd-*)
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11296 need_version=yes
11297 ;;
11298 esac
11299 shlibpath_var=LD_LIBRARY_PATH
11300 case $host_os in
11301 freebsd2*)
11302 shlibpath_overrides_runpath=yes
11303 ;;
11304 freebsd3.01* | freebsdelf3.01*)
11305 shlibpath_overrides_runpath=yes
11306 hardcode_into_libs=yes
11307 ;;
11308 *) # from 3.2 on
11309 shlibpath_overrides_runpath=no
11310 hardcode_into_libs=yes
11311 ;;
11312 esac
11313 ;;
11314
11315gnu*)
11316 version_type=linux
11317 need_lib_prefix=no
11318 need_version=no
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 hardcode_into_libs=yes
11323 ;;
11324
11325hpux9* | hpux10* | hpux11*)
11326 # Give a soname corresponding to the major version so that dld.sl refuses to
11327 # link against other versions.
11328 version_type=sunos
11329 need_lib_prefix=no
11330 need_version=no
11331 case "$host_cpu" in
11332 ia64*)
11333 shrext='.so'
11334 hardcode_into_libs=yes
11335 dynamic_linker="$host_os dld.so"
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 if test "X$HPUX_IA64_MODE" = X32; then
11341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11342 else
11343 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11344 fi
11345 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11346 ;;
11347 hppa*64*)
11348 shrext='.sl'
11349 hardcode_into_libs=yes
11350 dynamic_linker="$host_os dld.sl"
11351 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11357 ;;
11358 *)
11359 shrext='.sl'
11360 dynamic_linker="$host_os dld.sl"
11361 shlibpath_var=SHLIB_PATH
11362 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 ;;
11366 esac
11367 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11368 postinstall_cmds='chmod 555 $lib'
11369 ;;
11370
11371irix5* | irix6* | nonstopux*)
11372 case $host_os in
11373 nonstopux*) version_type=nonstopux ;;
11374 *)
11375 if test "$lt_cv_prog_gnu_ld" = yes; then
11376 version_type=linux
11377 else
11378 version_type=irix
11379 fi ;;
11380 esac
11381 need_lib_prefix=no
11382 need_version=no
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11385 case $host_os in
11386 irix5* | nonstopux*)
11387 libsuff= shlibsuff=
11388 ;;
11389 *)
11390 case $LD in # libtool.m4 will add one of these switches to LD
11391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11392 libsuff= shlibsuff= libmagic=32-bit;;
11393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11394 libsuff=32 shlibsuff=N32 libmagic=N32;;
11395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11397 *) libsuff= shlibsuff= libmagic=never-match;;
11398 esac
11399 ;;
11400 esac
11401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11402 shlibpath_overrides_runpath=no
11403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11405 hardcode_into_libs=yes
11406 ;;
11407
11408# No shared lib support for Linux oldld, aout, or coff.
11409linux*oldld* | linux*aout* | linux*coff*)
11410 dynamic_linker=no
11411 ;;
11412
11413# This must be Linux ELF.
11414linux*)
11415 version_type=linux
11416 need_lib_prefix=no
11417 need_version=no
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11419 soname_spec='${libname}${release}${shared_ext}$major'
11420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=no
11423 # This implies no fast_install, which is unacceptable.
11424 # Some rework will be needed to allow for fast_install
11425 # before this can be enabled.
11426 hardcode_into_libs=yes
11427
11428 # We used to test for /lib/ld.so.1 and disable shared libraries on
11429 # powerpc, because MkLinux only supported shared libraries with the
11430 # GNU dynamic linker. Since this was broken with cross compilers,
11431 # most powerpc-linux boxes support dynamic linking these days and
11432 # people can always --disable-shared, the test was removed, and we
11433 # assume the GNU/Linux dynamic linker is in use.
11434 dynamic_linker='GNU/Linux ld.so'
11435 ;;
11436
11437netbsd*)
11438 version_type=sunos
11439 need_lib_prefix=no
11440 need_version=no
11441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11444 dynamic_linker='NetBSD (a.out) ld.so'
11445 else
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 dynamic_linker='NetBSD ld.elf_so'
11449 fi
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11453 ;;
11454
11455newsos6)
11456 version_type=linux
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11460 ;;
11461
11462nto-qnx)
11463 version_type=linux
11464 need_lib_prefix=no
11465 need_version=no
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467 soname_spec='${libname}${release}${shared_ext}$major'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 ;;
11471
11472openbsd*)
11473 version_type=sunos
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11478 shlibpath_var=LD_LIBRARY_PATH
11479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11480 case $host_os in
11481 openbsd2.[89] | openbsd2.[89].*)
11482 shlibpath_overrides_runpath=no
11483 ;;
11484 *)
11485 shlibpath_overrides_runpath=yes
11486 ;;
11487 esac
11488 else
11489 shlibpath_overrides_runpath=yes
11490 fi
11491 ;;
11492
11493os2*)
11494 libname_spec='$name'
11495 shrext=".dll"
11496 need_lib_prefix=no
11497 library_names_spec='$libname${shared_ext} $libname.a'
11498 dynamic_linker='OS/2 ld.exe'
11499 shlibpath_var=LIBPATH
11500 ;;
11501
11502osf3* | osf4* | osf5*)
11503 version_type=osf
11504 need_lib_prefix=no
11505 need_version=no
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11510 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11511 ;;
11512
11513sco3.2v5*)
11514 version_type=osf
11515 soname_spec='${libname}${release}${shared_ext}$major'
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 ;;
11519
11520solaris*)
11521 version_type=linux
11522 need_lib_prefix=no
11523 need_version=no
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11529 # ldd complains unless libraries are executable
11530 postinstall_cmds='chmod +x $lib'
11531 ;;
11532
11533sunos4*)
11534 version_type=sunos
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 if test "$with_gnu_ld" = yes; then
11540 need_lib_prefix=no
11541 fi
11542 need_version=yes
11543 ;;
11544
11545sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11546 version_type=linux
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_vendor in
11551 sni)
11552 shlibpath_overrides_runpath=no
11553 need_lib_prefix=no
11554 export_dynamic_flag_spec='${wl}-Blargedynsym'
11555 runpath_var=LD_RUN_PATH
11556 ;;
11557 siemens)
11558 need_lib_prefix=no
11559 ;;
11560 motorola)
11561 need_lib_prefix=no
11562 need_version=no
11563 shlibpath_overrides_runpath=no
11564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11565 ;;
11566 esac
11567 ;;
11568
11569sysv4*MP*)
11570 if test -d /usr/nec ;then
11571 version_type=linux
11572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11573 soname_spec='$libname${shared_ext}.$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11575 fi
11576 ;;
11577
11578uts4*)
11579 version_type=linux
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 ;;
11584
11585*)
11586 dynamic_linker=no
11587 ;;
11588esac
11589echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11590echo "${ECHO_T}$dynamic_linker" >&6
11591test "$dynamic_linker" = no && can_build_shared=no
11592
11593if test "x$enable_dlopen" != xyes; then
11594 enable_dlopen=unknown
11595 enable_dlopen_self=unknown
11596 enable_dlopen_self_static=unknown
11597else
11598 lt_cv_dlopen=no
11599 lt_cv_dlopen_libs=
11600
11601 case $host_os in
11602 beos*)
11603 lt_cv_dlopen="load_add_on"
11604 lt_cv_dlopen_libs=
11605 lt_cv_dlopen_self=yes
11606 ;;
11607
11608 mingw* | pw32*)
11609 lt_cv_dlopen="LoadLibrary"
11610 lt_cv_dlopen_libs=
11611 ;;
11612
11613 cygwin*)
11614 lt_cv_dlopen="dlopen"
11615 lt_cv_dlopen_libs=
11616 ;;
11617
11618 darwin*)
11619 # if libdl is installed we need to link against it
11620 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11621echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11622if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 ac_check_lib_save_LIBS=$LIBS
11626LIBS="-ldl $LIBS"
11627cat >conftest.$ac_ext <<_ACEOF
11628#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011634
11635/* Override any gcc2 internal prototype to avoid an error. */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639/* We use char because int might match the return type of a gcc2
11640 builtin and then its argument prototype would still apply. */
11641char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011642int
11643main ()
11644{
11645dlopen ();
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
11651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11652 (eval $ac_link) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_lib_dl_dlopen=yes
11663else
11664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011665sed 's/^/| /' conftest.$ac_ext >&5
11666
John Criswell47fdd832003-07-14 16:52:07 +000011667ac_cv_lib_dl_dlopen=no
11668fi
11669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11670LIBS=$ac_check_lib_save_LIBS
11671fi
11672echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11673echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11674if test $ac_cv_lib_dl_dlopen = yes; then
11675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11676else
11677
11678 lt_cv_dlopen="dyld"
11679 lt_cv_dlopen_libs=
11680 lt_cv_dlopen_self=yes
11681
11682fi
11683
11684 ;;
11685
11686 *)
11687 echo "$as_me:$LINENO: checking for shl_load" >&5
11688echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11689if test "${ac_cv_func_shl_load+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011699/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011700 which can conflict with char shl_load (); below.
11701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11702 <limits.h> exists even on freestanding compilers. */
11703#ifdef __STDC__
11704# include <limits.h>
11705#else
11706# include <assert.h>
11707#endif
John Criswell47fdd832003-07-14 16:52:07 +000011708/* Override any gcc2 internal prototype to avoid an error. */
11709#ifdef __cplusplus
11710extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011711{
John Criswell47fdd832003-07-14 16:52:07 +000011712#endif
11713/* We use char because int might match the return type of a gcc2
11714 builtin and then its argument prototype would still apply. */
11715char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011716/* The GNU C library defines this for functions which it implements
11717 to always fail with ENOSYS. Some functions are actually named
11718 something starting with __ and the normal name is an alias. */
11719#if defined (__stub_shl_load) || defined (__stub___shl_load)
11720choke me
11721#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011722char (*f) () = shl_load;
11723#endif
11724#ifdef __cplusplus
11725}
John Criswell47fdd832003-07-14 16:52:07 +000011726#endif
11727
John Criswell0c38eaf2003-09-10 15:17:25 +000011728int
11729main ()
11730{
11731return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext conftest$ac_exeext
11737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_cv_func_shl_load=yes
11749else
11750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011751sed 's/^/| /' conftest.$ac_ext >&5
11752
John Criswell47fdd832003-07-14 16:52:07 +000011753ac_cv_func_shl_load=no
11754fi
11755rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11756fi
11757echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11758echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11759if test $ac_cv_func_shl_load = yes; then
11760 lt_cv_dlopen="shl_load"
11761else
11762 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11763echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11764if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766else
11767 ac_check_lib_save_LIBS=$LIBS
11768LIBS="-ldld $LIBS"
11769cat >conftest.$ac_ext <<_ACEOF
11770#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011776
11777/* Override any gcc2 internal prototype to avoid an error. */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781/* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11783char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011784int
11785main ()
11786{
11787shl_load ();
11788 ;
11789 return 0;
11790}
11791_ACEOF
11792rm -f conftest.$ac_objext conftest$ac_exeext
11793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_lib_dld_shl_load=yes
11805else
11806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011807sed 's/^/| /' conftest.$ac_ext >&5
11808
John Criswell47fdd832003-07-14 16:52:07 +000011809ac_cv_lib_dld_shl_load=no
11810fi
11811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11812LIBS=$ac_check_lib_save_LIBS
11813fi
11814echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11815echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11816if test $ac_cv_lib_dld_shl_load = yes; then
11817 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11818else
11819 echo "$as_me:$LINENO: checking for dlopen" >&5
11820echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11821if test "${ac_cv_func_dlopen+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 cat >conftest.$ac_ext <<_ACEOF
11825#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011831/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011832 which can conflict with char dlopen (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11835#ifdef __STDC__
11836# include <limits.h>
11837#else
11838# include <assert.h>
11839#endif
John Criswell47fdd832003-07-14 16:52:07 +000011840/* Override any gcc2 internal prototype to avoid an error. */
11841#ifdef __cplusplus
11842extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011843{
John Criswell47fdd832003-07-14 16:52:07 +000011844#endif
11845/* We use char because int might match the return type of a gcc2
11846 builtin and then its argument prototype would still apply. */
11847char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011848/* The GNU C library defines this for functions which it implements
11849 to always fail with ENOSYS. Some functions are actually named
11850 something starting with __ and the normal name is an alias. */
11851#if defined (__stub_dlopen) || defined (__stub___dlopen)
11852choke me
11853#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011854char (*f) () = dlopen;
11855#endif
11856#ifdef __cplusplus
11857}
John Criswell47fdd832003-07-14 16:52:07 +000011858#endif
11859
John Criswell0c38eaf2003-09-10 15:17:25 +000011860int
11861main ()
11862{
11863return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext conftest$ac_exeext
11869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870 (eval $ac_link) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_func_dlopen=yes
11881else
11882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011883sed 's/^/| /' conftest.$ac_ext >&5
11884
John Criswell47fdd832003-07-14 16:52:07 +000011885ac_cv_func_dlopen=no
11886fi
11887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11888fi
11889echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11890echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11891if test $ac_cv_func_dlopen = yes; then
11892 lt_cv_dlopen="dlopen"
11893else
11894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 ac_check_lib_save_LIBS=$LIBS
11900LIBS="-ldl $LIBS"
11901cat >conftest.$ac_ext <<_ACEOF
11902#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011903/* confdefs.h. */
11904_ACEOF
11905cat confdefs.h >>conftest.$ac_ext
11906cat >>conftest.$ac_ext <<_ACEOF
11907/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011908
11909/* Override any gcc2 internal prototype to avoid an error. */
11910#ifdef __cplusplus
11911extern "C"
11912#endif
11913/* We use char because int might match the return type of a gcc2
11914 builtin and then its argument prototype would still apply. */
11915char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011916int
11917main ()
11918{
11919dlopen ();
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext conftest$ac_exeext
11925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_lib_dl_dlopen=yes
11937else
11938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011939sed 's/^/| /' conftest.$ac_ext >&5
11940
John Criswell47fdd832003-07-14 16:52:07 +000011941ac_cv_lib_dl_dlopen=no
11942fi
11943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11944LIBS=$ac_check_lib_save_LIBS
11945fi
11946echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11948if test $ac_cv_lib_dl_dlopen = yes; then
11949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11950else
11951 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11952echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11953if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
11956 ac_check_lib_save_LIBS=$LIBS
11957LIBS="-lsvld $LIBS"
11958cat >conftest.$ac_ext <<_ACEOF
11959#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011960/* confdefs.h. */
11961_ACEOF
11962cat confdefs.h >>conftest.$ac_ext
11963cat >>conftest.$ac_ext <<_ACEOF
11964/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011965
11966/* Override any gcc2 internal prototype to avoid an error. */
11967#ifdef __cplusplus
11968extern "C"
11969#endif
11970/* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11972char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011973int
11974main ()
11975{
11976dlopen ();
11977 ;
11978 return 0;
11979}
11980_ACEOF
11981rm -f conftest.$ac_objext conftest$ac_exeext
11982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -s conftest$ac_exeext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_cv_lib_svld_dlopen=yes
11994else
11995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011996sed 's/^/| /' conftest.$ac_ext >&5
11997
John Criswell47fdd832003-07-14 16:52:07 +000011998ac_cv_lib_svld_dlopen=no
11999fi
12000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12001LIBS=$ac_check_lib_save_LIBS
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12004echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12005if test $ac_cv_lib_svld_dlopen = yes; then
12006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12007else
12008 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12009echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12010if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013 ac_check_lib_save_LIBS=$LIBS
12014LIBS="-ldld $LIBS"
12015cat >conftest.$ac_ext <<_ACEOF
12016#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012022
12023/* Override any gcc2 internal prototype to avoid an error. */
12024#ifdef __cplusplus
12025extern "C"
12026#endif
12027/* We use char because int might match the return type of a gcc2
12028 builtin and then its argument prototype would still apply. */
12029char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012030int
12031main ()
12032{
12033dld_link ();
12034 ;
12035 return 0;
12036}
12037_ACEOF
12038rm -f conftest.$ac_objext conftest$ac_exeext
12039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050 ac_cv_lib_dld_dld_link=yes
12051else
12052 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012053sed 's/^/| /' conftest.$ac_ext >&5
12054
John Criswell47fdd832003-07-14 16:52:07 +000012055ac_cv_lib_dld_dld_link=no
12056fi
12057rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12058LIBS=$ac_check_lib_save_LIBS
12059fi
12060echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12061echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12062if test $ac_cv_lib_dld_dld_link = yes; then
12063 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12064fi
12065
12066
12067fi
12068
12069
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078
12079fi
12080
12081 ;;
12082 esac
12083
12084 if test "x$lt_cv_dlopen" != xno; then
12085 enable_dlopen=yes
12086 else
12087 enable_dlopen=no
12088 fi
12089
12090 case $lt_cv_dlopen in
12091 dlopen)
12092 save_CPPFLAGS="$CPPFLAGS"
12093 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12094
12095 save_LDFLAGS="$LDFLAGS"
12096 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12097
12098 save_LIBS="$LIBS"
12099 LIBS="$lt_cv_dlopen_libs $LIBS"
12100
12101 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12102echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12103if test "${lt_cv_dlopen_self+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 if test "$cross_compiling" = yes; then :
12107 lt_cv_dlopen_self=cross
12108else
12109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12110 lt_status=$lt_dlunknown
12111 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +000012112#line 12112 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012113#include "confdefs.h"
12114
12115#if HAVE_DLFCN_H
12116#include <dlfcn.h>
12117#endif
12118
12119#include <stdio.h>
12120
12121#ifdef RTLD_GLOBAL
12122# define LT_DLGLOBAL RTLD_GLOBAL
12123#else
12124# ifdef DL_GLOBAL
12125# define LT_DLGLOBAL DL_GLOBAL
12126# else
12127# define LT_DLGLOBAL 0
12128# endif
12129#endif
12130
12131/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12132 find out it does not work in some platform. */
12133#ifndef LT_DLLAZY_OR_NOW
12134# ifdef RTLD_LAZY
12135# define LT_DLLAZY_OR_NOW RTLD_LAZY
12136# else
12137# ifdef DL_LAZY
12138# define LT_DLLAZY_OR_NOW DL_LAZY
12139# else
12140# ifdef RTLD_NOW
12141# define LT_DLLAZY_OR_NOW RTLD_NOW
12142# else
12143# ifdef DL_NOW
12144# define LT_DLLAZY_OR_NOW DL_NOW
12145# else
12146# define LT_DLLAZY_OR_NOW 0
12147# endif
12148# endif
12149# endif
12150# endif
12151#endif
12152
12153#ifdef __cplusplus
12154extern "C" void exit (int);
12155#endif
12156
12157void fnord() { int i=42;}
12158int main ()
12159{
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12162
12163 if (self)
12164 {
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12167 /* dlclose (self); */
12168 }
12169
12170 exit (status);
12171}
12172EOF
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12178 (./conftest; exit; ) 2>/dev/null
12179 lt_status=$?
12180 case x$lt_status in
12181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12183 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12184 esac
12185 else :
12186 # compilation failed
12187 lt_cv_dlopen_self=no
12188 fi
12189fi
12190rm -fr conftest*
12191
12192
12193fi
12194echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12195echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12196
12197 if test "x$lt_cv_dlopen_self" = xyes; then
12198 LDFLAGS="$LDFLAGS $link_static_flag"
12199 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12200echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12201if test "${lt_cv_dlopen_self_static+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12203else
12204 if test "$cross_compiling" = yes; then :
12205 lt_cv_dlopen_self_static=cross
12206else
12207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12208 lt_status=$lt_dlunknown
12209 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +000012210#line 12210 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012211#include "confdefs.h"
12212
12213#if HAVE_DLFCN_H
12214#include <dlfcn.h>
12215#endif
12216
12217#include <stdio.h>
12218
12219#ifdef RTLD_GLOBAL
12220# define LT_DLGLOBAL RTLD_GLOBAL
12221#else
12222# ifdef DL_GLOBAL
12223# define LT_DLGLOBAL DL_GLOBAL
12224# else
12225# define LT_DLGLOBAL 0
12226# endif
12227#endif
12228
12229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12230 find out it does not work in some platform. */
12231#ifndef LT_DLLAZY_OR_NOW
12232# ifdef RTLD_LAZY
12233# define LT_DLLAZY_OR_NOW RTLD_LAZY
12234# else
12235# ifdef DL_LAZY
12236# define LT_DLLAZY_OR_NOW DL_LAZY
12237# else
12238# ifdef RTLD_NOW
12239# define LT_DLLAZY_OR_NOW RTLD_NOW
12240# else
12241# ifdef DL_NOW
12242# define LT_DLLAZY_OR_NOW DL_NOW
12243# else
12244# define LT_DLLAZY_OR_NOW 0
12245# endif
12246# endif
12247# endif
12248# endif
12249#endif
12250
12251#ifdef __cplusplus
12252extern "C" void exit (int);
12253#endif
12254
12255void fnord() { int i=42;}
12256int main ()
12257{
12258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12259 int status = $lt_dlunknown;
12260
12261 if (self)
12262 {
12263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12265 /* dlclose (self); */
12266 }
12267
12268 exit (status);
12269}
12270EOF
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12276 (./conftest; exit; ) 2>/dev/null
12277 lt_status=$?
12278 case x$lt_status in
12279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12281 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12282 esac
12283 else :
12284 # compilation failed
12285 lt_cv_dlopen_self_static=no
12286 fi
12287fi
12288rm -fr conftest*
12289
12290
12291fi
12292echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12293echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12294 fi
12295
12296 CPPFLAGS="$save_CPPFLAGS"
12297 LDFLAGS="$save_LDFLAGS"
12298 LIBS="$save_LIBS"
12299 ;;
12300 esac
12301
12302 case $lt_cv_dlopen_self in
12303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12304 *) enable_dlopen_self=unknown ;;
12305 esac
12306
12307 case $lt_cv_dlopen_self_static in
12308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12309 *) enable_dlopen_self_static=unknown ;;
12310 esac
12311fi
12312
12313
12314# The else clause should only fire when bootstrapping the
12315# libtool distribution, otherwise you forgot to ship ltmain.sh
12316# with your package, and you will get complaints that there are
12317# no rules to generate ltmain.sh.
12318if test -f "$ltmain"; then
12319 # See if we are running on zsh, and set the options which allow our commands through
12320 # without removal of \ escapes.
12321 if test -n "${ZSH_VERSION+set}" ; then
12322 setopt NO_GLOB_SUBST
12323 fi
12324 # Now quote all the things that may contain metacharacters while being
12325 # careful not to overquote the AC_SUBSTed values. We take copies of the
12326 # variables and quote the copies for generation of the libtool script.
12327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12328 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12329 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12330 deplibs_check_method reload_flag reload_cmds need_locks \
12331 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12332 lt_cv_sys_global_symbol_to_c_name_address \
12333 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12334 old_postinstall_cmds old_postuninstall_cmds \
12335 compiler_CXX \
12336 CC_CXX \
12337 LD_CXX \
12338 lt_prog_compiler_wl_CXX \
12339 lt_prog_compiler_pic_CXX \
12340 lt_prog_compiler_static_CXX \
12341 lt_prog_compiler_no_builtin_flag_CXX \
12342 export_dynamic_flag_spec_CXX \
12343 thread_safe_flag_spec_CXX \
12344 whole_archive_flag_spec_CXX \
12345 enable_shared_with_static_runtimes_CXX \
12346 old_archive_cmds_CXX \
12347 old_archive_from_new_cmds_CXX \
12348 predep_objects_CXX \
12349 postdep_objects_CXX \
12350 predeps_CXX \
12351 postdeps_CXX \
12352 compiler_lib_search_path_CXX \
12353 archive_cmds_CXX \
12354 archive_expsym_cmds_CXX \
12355 postinstall_cmds_CXX \
12356 postuninstall_cmds_CXX \
12357 old_archive_from_expsyms_cmds_CXX \
12358 allow_undefined_flag_CXX \
12359 no_undefined_flag_CXX \
12360 export_symbols_cmds_CXX \
12361 hardcode_libdir_flag_spec_CXX \
12362 hardcode_libdir_flag_spec_ld_CXX \
12363 hardcode_libdir_separator_CXX \
12364 hardcode_automatic_CXX \
12365 module_cmds_CXX \
12366 module_expsym_cmds_CXX \
12367 lt_cv_prog_compiler_c_o_CXX \
12368 exclude_expsyms_CXX \
12369 include_expsyms_CXX; do
12370
12371 case $var in
12372 old_archive_cmds_CXX | \
12373 old_archive_from_new_cmds_CXX | \
12374 archive_cmds_CXX | \
12375 archive_expsym_cmds_CXX | \
12376 module_cmds_CXX | \
12377 module_expsym_cmds_CXX | \
12378 old_archive_from_expsyms_cmds_CXX | \
12379 export_symbols_cmds_CXX | \
12380 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12381 postinstall_cmds | postuninstall_cmds | \
12382 old_postinstall_cmds | old_postuninstall_cmds | \
12383 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12384 # Double-quote double-evaled strings.
12385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12386 ;;
12387 *)
12388 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12389 ;;
12390 esac
12391 done
12392
12393 case $lt_echo in
12394 *'\$0 --fallback-echo"')
12395 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12396 ;;
12397 esac
12398
12399cfgfile="$ofile"
12400
12401 cat <<__EOF__ >> "$cfgfile"
12402# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12403
12404# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12405
12406# Shell to use when invoking shell scripts.
12407SHELL=$lt_SHELL
12408
12409# Whether or not to build shared libraries.
12410build_libtool_libs=$enable_shared
12411
12412# Whether or not to build static libraries.
12413build_old_libs=$enable_static
12414
12415# Whether or not to add -lc for building shared libraries.
12416build_libtool_need_lc=$archive_cmds_need_lc_CXX
12417
12418# Whether or not to disallow shared libs when runtime libs are static
12419allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12420
12421# Whether or not to optimize for fast installation.
12422fast_install=$enable_fast_install
12423
12424# The host system.
12425host_alias=$host_alias
12426host=$host
12427
12428# An echo program that does not interpret backslashes.
12429echo=$lt_echo
12430
12431# The archiver.
12432AR=$lt_AR
12433AR_FLAGS=$lt_AR_FLAGS
12434
12435# A C compiler.
12436LTCC=$lt_LTCC
12437
12438# A language-specific compiler.
12439CC=$lt_compiler_CXX
12440
12441# Is the compiler the GNU C compiler?
12442with_gcc=$GCC_CXX
12443
12444# An ERE matcher.
12445EGREP=$lt_EGREP
12446
12447# The linker used to build libraries.
12448LD=$lt_LD_CXX
12449
12450# Whether we need hard or soft links.
12451LN_S=$lt_LN_S
12452
12453# A BSD-compatible nm program.
12454NM=$lt_NM
12455
12456# A symbol stripping program
12457STRIP=$STRIP
12458
12459# Used to examine libraries when file_magic_cmd begins "file"
12460MAGIC_CMD=$MAGIC_CMD
12461
12462# Used on cygwin: DLL creation program.
12463DLLTOOL="$DLLTOOL"
12464
12465# Used on cygwin: object dumper.
12466OBJDUMP="$OBJDUMP"
12467
12468# Used on cygwin: assembler.
12469AS="$AS"
12470
12471# The name of the directory that contains temporary libtool files.
12472objdir=$objdir
12473
12474# How to create reloadable object files.
12475reload_flag=$lt_reload_flag
12476reload_cmds=$lt_reload_cmds
12477
12478# How to pass a linker flag through the compiler.
12479wl=$lt_lt_prog_compiler_wl_CXX
12480
12481# Object file suffix (normally "o").
12482objext="$ac_objext"
12483
12484# Old archive suffix (normally "a").
12485libext="$libext"
12486
12487# Shared library suffix (normally ".so").
12488shrext='$shrext'
12489
12490# Executable file suffix (normally "").
12491exeext="$exeext"
12492
12493# Additional compiler flags for building library objects.
12494pic_flag=$lt_lt_prog_compiler_pic_CXX
12495pic_mode=$pic_mode
12496
12497# What is the maximum length of a command?
12498max_cmd_len=$lt_cv_sys_max_cmd_len
12499
12500# Does compiler simultaneously support -c and -o options?
12501compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12502
12503# Must we lock files when doing compilation ?
12504need_locks=$lt_need_locks
12505
12506# Do we need the lib prefix for modules?
12507need_lib_prefix=$need_lib_prefix
12508
12509# Do we need a version for libraries?
12510need_version=$need_version
12511
12512# Whether dlopen is supported.
12513dlopen_support=$enable_dlopen
12514
12515# Whether dlopen of programs is supported.
12516dlopen_self=$enable_dlopen_self
12517
12518# Whether dlopen of statically linked programs is supported.
12519dlopen_self_static=$enable_dlopen_self_static
12520
12521# Compiler flag to prevent dynamic linking.
12522link_static_flag=$lt_lt_prog_compiler_static_CXX
12523
12524# Compiler flag to turn off builtin functions.
12525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12526
12527# Compiler flag to allow reflexive dlopens.
12528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12529
12530# Compiler flag to generate shared objects directly from archives.
12531whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12532
12533# Compiler flag to generate thread-safe objects.
12534thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12535
12536# Library versioning type.
12537version_type=$version_type
12538
12539# Format of library name prefix.
12540libname_spec=$lt_libname_spec
12541
12542# List of archive names. First name is the real one, the rest are links.
12543# The last name is the one that the linker finds with -lNAME.
12544library_names_spec=$lt_library_names_spec
12545
12546# The coded name of the library, if different from the real name.
12547soname_spec=$lt_soname_spec
12548
12549# Commands used to build and install an old-style archive.
12550RANLIB=$lt_RANLIB
12551old_archive_cmds=$lt_old_archive_cmds_CXX
12552old_postinstall_cmds=$lt_old_postinstall_cmds
12553old_postuninstall_cmds=$lt_old_postuninstall_cmds
12554
12555# Create an old-style archive from a shared archive.
12556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12557
12558# Create a temporary old-style archive to link instead of a shared archive.
12559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12560
12561# Commands used to build and install a shared archive.
12562archive_cmds=$lt_archive_cmds_CXX
12563archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12564postinstall_cmds=$lt_postinstall_cmds
12565postuninstall_cmds=$lt_postuninstall_cmds
12566
12567# Commands used to build a loadable module (assumed same as above if empty)
12568module_cmds=$lt_module_cmds_CXX
12569module_expsym_cmds=$lt_module_expsym_cmds_CXX
12570
12571# Commands to strip libraries.
12572old_striplib=$lt_old_striplib
12573striplib=$lt_striplib
12574
12575# Dependencies to place before the objects being linked to create a
12576# shared library.
12577predep_objects=$lt_predep_objects_CXX
12578
12579# Dependencies to place after the objects being linked to create a
12580# shared library.
12581postdep_objects=$lt_postdep_objects_CXX
12582
12583# Dependencies to place before the objects being linked to create a
12584# shared library.
12585predeps=$lt_predeps_CXX
12586
12587# Dependencies to place after the objects being linked to create a
12588# shared library.
12589postdeps=$lt_postdeps_CXX
12590
12591# The library search path used internally by the compiler when linking
12592# a shared library.
12593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12594
12595# Method to check whether dependent libraries are shared objects.
12596deplibs_check_method=$lt_deplibs_check_method
12597
12598# Command to use when deplibs_check_method == file_magic.
12599file_magic_cmd=$lt_file_magic_cmd
12600
12601# Flag that allows shared libraries with undefined symbols to be built.
12602allow_undefined_flag=$lt_allow_undefined_flag_CXX
12603
12604# Flag that forces no undefined symbols.
12605no_undefined_flag=$lt_no_undefined_flag_CXX
12606
12607# Commands used to finish a libtool library installation in a directory.
12608finish_cmds=$lt_finish_cmds
12609
12610# Same as above, but a single script fragment to be evaled but not shown.
12611finish_eval=$lt_finish_eval
12612
12613# Take the output of nm and produce a listing of raw symbols and C names.
12614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12615
12616# Transform the output of nm in a proper C declaration
12617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12618
12619# Transform the output of nm in a C name address pair
12620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12621
12622# This is the shared library runtime path variable.
12623runpath_var=$runpath_var
12624
12625# This is the shared library path variable.
12626shlibpath_var=$shlibpath_var
12627
12628# Is shlibpath searched before the hard-coded library search path?
12629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12630
12631# How to hardcode a shared library path into an executable.
12632hardcode_action=$hardcode_action_CXX
12633
12634# Whether we should hardcode library paths into libraries.
12635hardcode_into_libs=$hardcode_into_libs
12636
12637# Flag to hardcode \$libdir into a binary during linking.
12638# This must work even if \$libdir does not exist.
12639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12640
12641# If ld is used when linking, flag to hardcode \$libdir into
12642# a binary during linking. This must work even if \$libdir does
12643# not exist.
12644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12645
12646# Whether we need a single -rpath flag with a separated argument.
12647hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12648
12649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12650# resulting binary.
12651hardcode_direct=$hardcode_direct_CXX
12652
12653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12654# resulting binary.
12655hardcode_minus_L=$hardcode_minus_L_CXX
12656
12657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12658# the resulting binary.
12659hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12660
12661# Set to yes if building a shared library automatically hardcodes DIR into the library
12662# and all subsequent libraries and executables linked against it.
12663hardcode_automatic=$hardcode_automatic_CXX
12664
12665# Variables whose values should be saved in libtool wrapper scripts and
12666# restored at relink time.
12667variables_saved_for_relink="$variables_saved_for_relink"
12668
12669# Whether libtool must link a program against all its dependency libraries.
12670link_all_deplibs=$link_all_deplibs_CXX
12671
12672# Compile-time system search path for libraries
12673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12674
12675# Run-time system search path for libraries
12676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12677
12678# Fix the shell variable \$srcfile for the compiler.
12679fix_srcfile_path="$fix_srcfile_path_CXX"
12680
12681# Set to yes if exported symbols are required.
12682always_export_symbols=$always_export_symbols_CXX
12683
12684# The commands to list exported symbols.
12685export_symbols_cmds=$lt_export_symbols_cmds_CXX
12686
12687# The commands to extract the exported symbol list from a shared archive.
12688extract_expsyms_cmds=$lt_extract_expsyms_cmds
12689
12690# Symbols that should not be listed in the preloaded symbols.
12691exclude_expsyms=$lt_exclude_expsyms_CXX
12692
12693# Symbols that must always be exported.
12694include_expsyms=$lt_include_expsyms_CXX
12695
12696# ### END LIBTOOL TAG CONFIG: $tagname
12697
12698__EOF__
12699
12700
12701else
12702 # If there is no Makefile yet, we rely on a make rule to execute
12703 # `config.status --recheck' to rerun these tests and create the
12704 # libtool script then.
12705 test -f Makefile && make "$ltmain"
12706fi
12707
12708
12709ac_ext=c
12710ac_cpp='$CPP $CPPFLAGS'
12711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714
12715CC=$lt_save_CC
12716LDCXX=$LD
12717LD=$lt_save_LD
12718GCC=$lt_save_GCC
12719with_gnu_ldcxx=$with_gnu_ld
12720with_gnu_ld=$lt_save_with_gnu_ld
12721lt_cv_path_LDCXX=$lt_cv_path_LD
12722lt_cv_path_LD=$lt_save_path_LD
12723lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12724lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12725
12726 else
12727 tagname=""
12728 fi
12729 ;;
12730
12731 F77)
12732 if test -n "$F77" && test "X$F77" != "Xno"; then
12733
12734ac_ext=f
12735ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12736ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12738
12739
12740archive_cmds_need_lc_F77=no
12741allow_undefined_flag_F77=
12742always_export_symbols_F77=no
12743archive_expsym_cmds_F77=
12744export_dynamic_flag_spec_F77=
12745hardcode_direct_F77=no
12746hardcode_libdir_flag_spec_F77=
12747hardcode_libdir_flag_spec_ld_F77=
12748hardcode_libdir_separator_F77=
12749hardcode_minus_L_F77=no
12750hardcode_automatic_F77=no
12751module_cmds_F77=
12752module_expsym_cmds_F77=
12753link_all_deplibs_F77=unknown
12754old_archive_cmds_F77=$old_archive_cmds
12755no_undefined_flag_F77=
12756whole_archive_flag_spec_F77=
12757enable_shared_with_static_runtimes_F77=no
12758
12759# Source file extension for f77 test sources.
12760ac_ext=f
12761
12762# Object file extension for compiled f77 test sources.
12763objext=o
12764objext_F77=$objext
12765
12766# Code to be used in simple compile tests
12767lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12768
12769# Code to be used in simple link tests
12770lt_simple_link_test_code=" program t\n end\n"
12771
12772# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12773
12774# If no C compiler was specified, use CC.
12775LTCC=${LTCC-"$CC"}
12776
12777# Allow CC to be a program name with arguments.
12778compiler=$CC
12779
12780
12781# Allow CC to be a program name with arguments.
12782lt_save_CC="$CC"
12783CC=${F77-"f77"}
12784compiler=$CC
12785compiler_F77=$CC
12786cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12787
12788echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12789echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12790echo "$as_me:$LINENO: result: $can_build_shared" >&5
12791echo "${ECHO_T}$can_build_shared" >&6
12792
12793echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12794echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12795test "$can_build_shared" = "no" && enable_shared=no
12796
12797# On AIX, shared libraries and static libraries use the same namespace, and
12798# are all built from PIC.
12799case "$host_os" in
12800aix3*)
12801 test "$enable_shared" = yes && enable_static=no
12802 if test -n "$RANLIB"; then
12803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12804 postinstall_cmds='$RANLIB $lib'
12805 fi
12806 ;;
12807aix4*)
12808 test "$enable_shared" = yes && enable_static=no
12809 ;;
12810esac
12811echo "$as_me:$LINENO: result: $enable_shared" >&5
12812echo "${ECHO_T}$enable_shared" >&6
12813
12814echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12815echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12816# Make sure either enable_shared or enable_static is yes.
12817test "$enable_shared" = yes || enable_static=yes
12818echo "$as_me:$LINENO: result: $enable_static" >&5
12819echo "${ECHO_T}$enable_static" >&6
12820
12821test "$ld_shlibs_F77" = no && can_build_shared=no
12822
12823GCC_F77="$G77"
12824LD_F77="$LD"
12825
12826lt_prog_compiler_wl_F77=
12827lt_prog_compiler_pic_F77=
12828lt_prog_compiler_static_F77=
12829
12830echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12831echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12832
12833 if test "$GCC" = yes; then
12834 lt_prog_compiler_wl_F77='-Wl,'
12835 lt_prog_compiler_static_F77='-static'
12836
12837 case $host_os in
12838 aix*)
12839 # All AIX code is PIC.
12840 if test "$host_cpu" = ia64; then
12841 # AIX 5 now supports IA64 processor
12842 lt_prog_compiler_static_F77='-Bstatic'
12843 fi
12844 ;;
12845
12846 amigaos*)
12847 # FIXME: we need at least 68020 code to build shared libraries, but
12848 # adding the `-m68020' flag to GCC prevents building anything better,
12849 # like `-m68040'.
12850 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12851 ;;
12852
12853 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12854 # PIC is the default for these OSes.
12855 ;;
12856
12857 mingw* | pw32* | os2*)
12858 # This hack is so that the source file can tell whether it is being
12859 # built for inclusion in a dll (and should export symbols for example).
12860 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12861 ;;
12862
12863 darwin* | rhapsody*)
12864 # PIC is the default on this platform
12865 # Common symbols not allowed in MH_DYLIB files
12866 lt_prog_compiler_pic_F77='-fno-common'
12867 ;;
12868
12869 msdosdjgpp*)
12870 # Just because we use GCC doesn't mean we suddenly get shared libraries
12871 # on systems that don't support them.
12872 lt_prog_compiler_can_build_shared_F77=no
12873 enable_shared=no
12874 ;;
12875
12876 sysv4*MP*)
12877 if test -d /usr/nec; then
12878 lt_prog_compiler_pic_F77=-Kconform_pic
12879 fi
12880 ;;
12881
12882 hpux*)
12883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12884 # not for PA HP-UX.
12885 case "$host_cpu" in
12886 hppa*64*|ia64*)
12887 # +Z the default
12888 ;;
12889 *)
12890 lt_prog_compiler_pic_F77='-fPIC'
12891 ;;
12892 esac
12893 ;;
12894
12895 *)
12896 lt_prog_compiler_pic_F77='-fPIC'
12897 ;;
12898 esac
12899 else
12900 # PORTME Check for flag to pass linker flags through the system compiler.
12901 case $host_os in
12902 aix*)
12903 lt_prog_compiler_wl_F77='-Wl,'
12904 if test "$host_cpu" = ia64; then
12905 # AIX 5 now supports IA64 processor
12906 lt_prog_compiler_static_F77='-Bstatic'
12907 else
12908 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12909 fi
12910 ;;
12911
12912 mingw* | pw32* | os2*)
12913 # This hack is so that the source file can tell whether it is being
12914 # built for inclusion in a dll (and should export symbols for example).
12915 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12916 ;;
12917
12918 hpux9* | hpux10* | hpux11*)
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12921 # not for PA HP-UX.
12922 case "$host_cpu" in
12923 hppa*64*|ia64*)
12924 # +Z the default
12925 ;;
12926 *)
12927 lt_prog_compiler_pic_F77='+Z'
12928 ;;
12929 esac
12930 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12931 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12932 ;;
12933
12934 irix5* | irix6* | nonstopux*)
12935 lt_prog_compiler_wl_F77='-Wl,'
12936 # PIC (with -KPIC) is the default.
12937 lt_prog_compiler_static_F77='-non_shared'
12938 ;;
12939
12940 newsos6)
12941 lt_prog_compiler_pic_F77='-KPIC'
12942 lt_prog_compiler_static_F77='-Bstatic'
12943 ;;
12944
12945 linux*)
12946 case $CC in
12947 icc|ecc)
12948 lt_prog_compiler_wl_F77='-Wl,'
12949 lt_prog_compiler_pic_F77='-KPIC'
12950 lt_prog_compiler_static_F77='-static'
12951 ;;
12952 ccc)
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 # All Alpha code is PIC.
12955 lt_prog_compiler_static_F77='-non_shared'
12956 ;;
12957 esac
12958 ;;
12959
12960 osf3* | osf4* | osf5*)
12961 lt_prog_compiler_wl_F77='-Wl,'
12962 # All OSF/1 code is PIC.
12963 lt_prog_compiler_static_F77='-non_shared'
12964 ;;
12965
12966 sco3.2v5*)
12967 lt_prog_compiler_pic_F77='-Kpic'
12968 lt_prog_compiler_static_F77='-dn'
12969 ;;
12970
12971 solaris*)
12972 lt_prog_compiler_wl_F77='-Wl,'
12973 lt_prog_compiler_pic_F77='-KPIC'
12974 lt_prog_compiler_static_F77='-Bstatic'
12975 ;;
12976
12977 sunos4*)
12978 lt_prog_compiler_wl_F77='-Qoption ld '
12979 lt_prog_compiler_pic_F77='-PIC'
12980 lt_prog_compiler_static_F77='-Bstatic'
12981 ;;
12982
12983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12984 lt_prog_compiler_wl_F77='-Wl,'
12985 lt_prog_compiler_pic_F77='-KPIC'
12986 lt_prog_compiler_static_F77='-Bstatic'
12987 ;;
12988
12989 sysv4*MP*)
12990 if test -d /usr/nec ;then
12991 lt_prog_compiler_pic_F77='-Kconform_pic'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 fi
12994 ;;
12995
12996 uts4*)
12997 lt_prog_compiler_pic_F77='-pic'
12998 lt_prog_compiler_static_F77='-Bstatic'
12999 ;;
13000
13001 *)
13002 lt_prog_compiler_can_build_shared_F77=no
13003 ;;
13004 esac
13005 fi
13006
13007echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13008echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13009
13010#
13011# Check to make sure the PIC flag actually works.
13012#
13013if test -n "$lt_prog_compiler_pic_F77"; then
13014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13015echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13016if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018else
13019 lt_prog_compiler_pic_works_F77=no
13020 ac_outfile=conftest.$ac_objext
13021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13022 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13023 # Insert the option either (1) after the last *FLAGS variable, or
13024 # (2) before a word containing "conftest.", or (3) at the end.
13025 # Note that $ac_compile itself does not contain backslashes and begins
13026 # with a dollar sign (not a hyphen), so the echo should work correctly.
13027 # The option is referenced via a variable to avoid confusing sed.
13028 lt_compile=`echo "$ac_compile" | $SED \
13029 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13031 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000013032 (eval echo "\"\$as_me:13032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013033 (eval "$lt_compile" 2>conftest.err)
13034 ac_status=$?
13035 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000013036 echo "$as_me:13036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013037 if (exit $ac_status) && test -s "$ac_outfile"; then
13038 # The compiler can only warn and ignore the option if not recognized
13039 # So say no if there are warnings
13040 if test ! -s conftest.err; then
13041 lt_prog_compiler_pic_works_F77=yes
13042 fi
13043 fi
13044 $rm conftest*
13045
13046fi
13047echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13048echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13049
13050if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13051 case $lt_prog_compiler_pic_F77 in
13052 "" | " "*) ;;
13053 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13054 esac
13055else
13056 lt_prog_compiler_pic_F77=
13057 lt_prog_compiler_can_build_shared_F77=no
13058fi
13059
13060fi
13061case "$host_os" in
13062 # For platforms which do not support PIC, -DPIC is meaningless:
13063 *djgpp*)
13064 lt_prog_compiler_pic_F77=
13065 ;;
13066 *)
13067 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13068 ;;
13069esac
13070
13071echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13072echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13073if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075else
13076 lt_cv_prog_compiler_c_o_F77=no
13077 $rm -r conftest 2>/dev/null
13078 mkdir conftest
13079 cd conftest
13080 mkdir out
13081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13082
13083 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13084 # that will create temporary files in the current directory regardless of
13085 # the output directory. Thus, making CWD read-only will cause this test
13086 # to fail, enabling locking or at least warning the user not to do parallel
13087 # builds.
13088 chmod -w .
13089
13090 lt_compiler_flag="-o out/conftest2.$ac_objext"
13091 # Insert the option either (1) after the last *FLAGS variable, or
13092 # (2) before a word containing "conftest.", or (3) at the end.
13093 # Note that $ac_compile itself does not contain backslashes and begins
13094 # with a dollar sign (not a hyphen), so the echo should work correctly.
13095 lt_compile=`echo "$ac_compile" | $SED \
13096 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13098 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000013099 (eval echo "\"\$as_me:13099: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013100 (eval "$lt_compile" 2>out/conftest.err)
13101 ac_status=$?
13102 cat out/conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000013103 echo "$as_me:13103: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13105 then
13106 # The compiler can only warn and ignore the option if not recognized
13107 # So say no if there are warnings
13108 if test ! -s out/conftest.err; then
13109 lt_cv_prog_compiler_c_o_F77=yes
13110 fi
13111 fi
13112 chmod u+w .
13113 $rm conftest* out/*
13114 rmdir out
13115 cd ..
13116 rmdir conftest
13117 $rm conftest*
13118
13119fi
13120echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13121echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13122
13123
13124hard_links="nottested"
13125if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13126 # do not overwrite the value of need_locks provided by the user
13127 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13128echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13129 hard_links=yes
13130 $rm conftest*
13131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132 touch conftest.a
13133 ln conftest.a conftest.b 2>&5 || hard_links=no
13134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135 echo "$as_me:$LINENO: result: $hard_links" >&5
13136echo "${ECHO_T}$hard_links" >&6
13137 if test "$hard_links" = no; then
13138 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13139echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13140 need_locks=warn
13141 fi
13142else
13143 need_locks=no
13144fi
13145
13146echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13147echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13148
13149 runpath_var=
13150 allow_undefined_flag_F77=
13151 enable_shared_with_static_runtimes_F77=no
13152 archive_cmds_F77=
13153 archive_expsym_cmds_F77=
13154 old_archive_From_new_cmds_F77=
13155 old_archive_from_expsyms_cmds_F77=
13156 export_dynamic_flag_spec_F77=
13157 whole_archive_flag_spec_F77=
13158 thread_safe_flag_spec_F77=
13159 hardcode_libdir_flag_spec_F77=
13160 hardcode_libdir_flag_spec_ld_F77=
13161 hardcode_libdir_separator_F77=
13162 hardcode_direct_F77=no
13163 hardcode_minus_L_F77=no
13164 hardcode_shlibpath_var_F77=unsupported
13165 link_all_deplibs_F77=unknown
13166 hardcode_automatic_F77=no
13167 module_cmds_F77=
13168 module_expsym_cmds_F77=
13169 always_export_symbols_F77=no
13170 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13171 # include_expsyms should be a list of space-separated symbols to be *always*
13172 # included in the symbol list
13173 include_expsyms_F77=
13174 # exclude_expsyms can be an extended regexp of symbols to exclude
13175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13177 # as well as any symbol that contains `d'.
13178 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13180 # platforms (ab)use it in PIC code, but their linkers get confused if
13181 # the symbol is explicitly referenced. Since portable code cannot
13182 # rely on this symbol name, it's probably fine to never include it in
13183 # preloaded symbol tables.
13184 extract_expsyms_cmds=
13185
13186 case $host_os in
13187 cygwin* | mingw* | pw32*)
13188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13189 # When not using gcc, we currently assume that we are using
13190 # Microsoft Visual C++.
13191 if test "$GCC" != yes; then
13192 with_gnu_ld=no
13193 fi
13194 ;;
13195 openbsd*)
13196 with_gnu_ld=no
13197 ;;
13198 esac
13199
13200 ld_shlibs_F77=yes
13201 if test "$with_gnu_ld" = yes; then
13202 # If archive_cmds runs LD, not CC, wlarc should be empty
13203 wlarc='${wl}'
13204
13205 # See if GNU ld supports shared libraries.
13206 case $host_os in
13207 aix3* | aix4* | aix5*)
13208 # On AIX/PPC, the GNU linker is very broken
13209 if test "$host_cpu" != ia64; then
13210 ld_shlibs_F77=no
13211 cat <<EOF 1>&2
13212
13213*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13214*** to be unable to reliably create shared libraries on AIX.
13215*** Therefore, libtool is disabling shared libraries support. If you
13216*** really care for shared libraries, you may want to modify your PATH
13217*** so that a non-GNU linker is found, and then restart.
13218
13219EOF
13220 fi
13221 ;;
13222
13223 amigaos*)
13224 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)'
13225 hardcode_libdir_flag_spec_F77='-L$libdir'
13226 hardcode_minus_L_F77=yes
13227
13228 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13229 # that the semantics of dynamic libraries on AmigaOS, at least up
13230 # to version 4, is to share data among multiple programs linked
13231 # with the same dynamic library. Since this doesn't match the
13232 # behavior of shared libraries on other platforms, we can't use
13233 # them.
13234 ld_shlibs_F77=no
13235 ;;
13236
13237 beos*)
13238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13239 allow_undefined_flag_F77=unsupported
13240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13241 # support --undefined. This deserves some investigation. FIXME
13242 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13243 else
13244 ld_shlibs_F77=no
13245 fi
13246 ;;
13247
13248 cygwin* | mingw* | pw32*)
13249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13250 # as there is no search path for DLLs.
13251 hardcode_libdir_flag_spec_F77='-L$libdir'
13252 allow_undefined_flag_F77=unsupported
13253 always_export_symbols_F77=no
13254 enable_shared_with_static_runtimes_F77=yes
13255 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13256
13257 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13258 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13259 # If the export-symbols file already is a .def file (1st line
13260 # is EXPORTS), use it as is; otherwise, prepend...
13261 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13262 cp $export_symbols $output_objdir/$soname.def;
13263 else
13264 echo EXPORTS > $output_objdir/$soname.def;
13265 cat $export_symbols >> $output_objdir/$soname.def;
13266 fi~
13267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13268 else
13269 ld_shlibs=no
13270 fi
13271 ;;
13272
13273 netbsd*)
13274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13275 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13276 wlarc=
13277 else
13278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13280 fi
13281 ;;
13282
13283 solaris* | sysv5*)
13284 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13285 ld_shlibs_F77=no
13286 cat <<EOF 1>&2
13287
13288*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13289*** create shared libraries on Solaris systems. Therefore, libtool
13290*** is disabling shared libraries support. We urge you to upgrade GNU
13291*** binutils to release 2.9.1 or newer. Another option is to modify
13292*** your PATH or compiler configuration so that the native linker is
13293*** used, and then restart.
13294
13295EOF
13296 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13298 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299 else
13300 ld_shlibs_F77=no
13301 fi
13302 ;;
13303
13304 sunos4*)
13305 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13306 wlarc=
13307 hardcode_direct_F77=yes
13308 hardcode_shlibpath_var_F77=no
13309 ;;
13310
13311 *)
13312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13313 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13314 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13315 else
13316 ld_shlibs_F77=no
13317 fi
13318 ;;
13319 esac
13320
13321 if test "$ld_shlibs_F77" = yes; then
13322 runpath_var=LD_RUN_PATH
13323 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13324 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13325 # ancient GNU ld didn't support --whole-archive et. al.
13326 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13327 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13328 else
13329 whole_archive_flag_spec_F77=
13330 fi
13331 fi
13332 else
13333 # PORTME fill in a description of your system's linker (not GNU ld)
13334 case $host_os in
13335 aix3*)
13336 allow_undefined_flag_F77=unsupported
13337 always_export_symbols_F77=yes
13338 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'
13339 # Note: this linker hardcodes the directories in LIBPATH if there
13340 # are no directories specified by -L.
13341 hardcode_minus_L_F77=yes
13342 if test "$GCC" = yes && test -z "$link_static_flag"; then
13343 # Neither direct hardcoding nor static linking is supported with a
13344 # broken collect2.
13345 hardcode_direct_F77=unsupported
13346 fi
13347 ;;
13348
13349 aix4* | aix5*)
13350 if test "$host_cpu" = ia64; then
13351 # On IA64, the linker does run time linking by default, so we don't
13352 # have to do anything special.
13353 aix_use_runtimelinking=no
13354 exp_sym_flag='-Bexport'
13355 no_entry_flag=""
13356 else
13357 # If we're using GNU nm, then we don't want the "-C" option.
13358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13359 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13360 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'
13361 else
13362 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'
13363 fi
13364 aix_use_runtimelinking=no
13365
13366 # Test if we are trying to use run time linking or normal
13367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13368 # need to do runtime linking.
13369 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13370 for ld_flag in $LDFLAGS; do
13371 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13372 aix_use_runtimelinking=yes
13373 break
13374 fi
13375 done
13376 esac
13377
13378 exp_sym_flag='-bexport'
13379 no_entry_flag='-bnoentry'
13380 fi
13381
13382 # When large executables or shared objects are built, AIX ld can
13383 # have problems creating the table of contents. If linking a library
13384 # or program results in "error TOC overflow" add -mminimal-toc to
13385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13387
13388 archive_cmds_F77=''
13389 hardcode_direct_F77=yes
13390 hardcode_libdir_separator_F77=':'
13391 link_all_deplibs_F77=yes
13392
13393 if test "$GCC" = yes; then
13394 case $host_os in aix4.012|aix4.012.*)
13395 # We only want to do this on AIX 4.2 and lower, the check
13396 # below for broken collect2 doesn't work under 4.3+
13397 collect2name=`${CC} -print-prog-name=collect2`
13398 if test -f "$collect2name" && \
13399 strings "$collect2name" | grep resolve_lib_name >/dev/null
13400 then
13401 # We have reworked collect2
13402 hardcode_direct_F77=yes
13403 else
13404 # We have old collect2
13405 hardcode_direct_F77=unsupported
13406 # It fails to find uninstalled libraries when the uninstalled
13407 # path is not listed in the libpath. Setting hardcode_minus_L
13408 # to unsupported forces relinking
13409 hardcode_minus_L_F77=yes
13410 hardcode_libdir_flag_spec_F77='-L$libdir'
13411 hardcode_libdir_separator_F77=
13412 fi
13413 esac
13414 shared_flag='-shared'
13415 else
13416 # not using gcc
13417 if test "$host_cpu" = ia64; then
13418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13419 # chokes on -Wl,-G. The following line is correct:
13420 shared_flag='-G'
13421 else
13422 if test "$aix_use_runtimelinking" = yes; then
13423 shared_flag='${wl}-G'
13424 else
13425 shared_flag='${wl}-bM:SRE'
13426 fi
13427 fi
13428 fi
13429
13430 # It seems that -bexpall does not export symbols beginning with
13431 # underscore (_), so it is better to generate a list of symbols to export.
13432 always_export_symbols_F77=yes
13433 if test "$aix_use_runtimelinking" = yes; then
13434 # Warning - without using the other runtime loading flags (-brtl),
13435 # -berok will link without error, but may produce a broken library.
13436 allow_undefined_flag_F77='-berok'
13437 # Determine the default libpath from the value encoded in an empty executable.
13438 cat >conftest.$ac_ext <<_ACEOF
13439 program main
13440
13441 end
13442_ACEOF
13443rm -f conftest.$ac_objext conftest$ac_exeext
13444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455
13456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13457}'`
13458# Check for a 64-bit object if we didn't find anything.
13459if 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; }
13460}'`; fi
13461else
13462 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013463sed 's/^/| /' conftest.$ac_ext >&5
13464
John Criswell47fdd832003-07-14 16:52:07 +000013465fi
13466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13468
13469 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13470 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"
13471 else
13472 if test "$host_cpu" = ia64; then
13473 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13474 allow_undefined_flag_F77="-z nodefs"
13475 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"
13476 else
13477 # Determine the default libpath from the value encoded in an empty executable.
13478 cat >conftest.$ac_ext <<_ACEOF
13479 program main
13480
13481 end
13482_ACEOF
13483rm -f conftest.$ac_objext conftest$ac_exeext
13484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485 (eval $ac_link) 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495
13496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13497}'`
13498# Check for a 64-bit object if we didn't find anything.
13499if 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; }
13500}'`; fi
13501else
13502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013503sed 's/^/| /' conftest.$ac_ext >&5
13504
John Criswell47fdd832003-07-14 16:52:07 +000013505fi
13506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13508
13509 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13510 # Warning - without using the other run time loading flags,
13511 # -berok will link without error, but may produce a broken library.
13512 no_undefined_flag_F77=' ${wl}-bernotok'
13513 allow_undefined_flag_F77=' ${wl}-berok'
13514 # -bexpall does not export symbols beginning with underscore (_)
13515 always_export_symbols_F77=yes
13516 # Exported symbols can be pulled into shared objects from archives
13517 whole_archive_flag_spec_F77=' '
13518 archive_cmds_need_lc_F77=yes
13519 # This is similar to how AIX traditionally builds it's shared libraries.
13520 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'
13521 fi
13522 fi
13523 ;;
13524
13525 amigaos*)
13526 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)'
13527 hardcode_libdir_flag_spec_F77='-L$libdir'
13528 hardcode_minus_L_F77=yes
13529 # see comment about different semantics on the GNU ld section
13530 ld_shlibs_F77=no
13531 ;;
13532
13533 bsdi4*)
13534 export_dynamic_flag_spec_F77=-rdynamic
13535 ;;
13536
13537 cygwin* | mingw* | pw32*)
13538 # When not using gcc, we currently assume that we are using
13539 # Microsoft Visual C++.
13540 # hardcode_libdir_flag_spec is actually meaningless, as there is
13541 # no search path for DLLs.
13542 hardcode_libdir_flag_spec_F77=' '
13543 allow_undefined_flag_F77=unsupported
13544 # Tell ltmain to make .lib files, not .a files.
13545 libext=lib
13546 # Tell ltmain to make .dll files, not .so files.
13547 shrext=".dll"
13548 # FIXME: Setting linknames here is a bad hack.
13549 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13550 # The linker will automatically build a .lib file if we build a DLL.
13551 old_archive_From_new_cmds_F77='true'
13552 # FIXME: Should let the user specify the lib program.
13553 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13554 fix_srcfile_path='`cygpath -w "$srcfile"`'
13555 enable_shared_with_static_runtimes_F77=yes
13556 ;;
13557
13558 darwin* | rhapsody*)
13559 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13560 archive_cmds_need_lc_F77=no
13561 case "$host_os" in
13562 rhapsody* | darwin1.[012])
13563 allow_undefined_flag_F77='-undefined suppress'
13564 ;;
13565 *) # Darwin 1.3 on
13566 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13567 ;;
13568 esac
13569 # FIXME: Relying on posixy $() will cause problems for
13570 # cross-compilation, but unfortunately the echo tests do not
13571 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13572 # `"' quotes if we put them in here... so don't!
13573 lt_int_apple_cc_single_mod=no
13574 output_verbose_link_cmd='echo'
13575 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13576 lt_int_apple_cc_single_mod=yes
13577 fi
13578 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13579 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13580 else
13581 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'
13582 fi
13583 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13584 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13585 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13586 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}'
13587 else
13588 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}'
13589 fi
13590 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}'
13591 hardcode_direct_F77=no
13592 hardcode_automatic_F77=yes
13593 hardcode_shlibpath_var_F77=unsupported
13594 whole_archive_flag_spec_F77='-all_load $convenience'
13595 link_all_deplibs_F77=yes
13596 fi
13597 ;;
13598
13599 dgux*)
13600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601 hardcode_libdir_flag_spec_F77='-L$libdir'
13602 hardcode_shlibpath_var_F77=no
13603 ;;
13604
13605 freebsd1*)
13606 ld_shlibs_F77=no
13607 ;;
13608
13609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13610 # support. Future versions do this automatically, but an explicit c++rt0.o
13611 # does not break anything, and helps significantly (at the cost of a little
13612 # extra space).
13613 freebsd2.2*)
13614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13615 hardcode_libdir_flag_spec_F77='-R$libdir'
13616 hardcode_direct_F77=yes
13617 hardcode_shlibpath_var_F77=no
13618 ;;
13619
13620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13621 freebsd2*)
13622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_direct_F77=yes
13624 hardcode_minus_L_F77=yes
13625 hardcode_shlibpath_var_F77=no
13626 ;;
13627
13628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13629 freebsd*)
13630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13631 hardcode_libdir_flag_spec_F77='-R$libdir'
13632 hardcode_direct_F77=yes
13633 hardcode_shlibpath_var_F77=no
13634 ;;
13635
13636 hpux9*)
13637 if test "$GCC" = yes; then
13638 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'
13639 else
13640 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'
13641 fi
13642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13643 hardcode_libdir_separator_F77=:
13644 hardcode_direct_F77=yes
13645
13646 # hardcode_minus_L: Not really in the search PATH,
13647 # but as the default location of the library.
13648 hardcode_minus_L_F77=yes
13649 export_dynamic_flag_spec_F77='${wl}-E'
13650 ;;
13651
13652 hpux10* | hpux11*)
13653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13654 case "$host_cpu" in
13655 hppa*64*|ia64*)
13656 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 ;;
13658 *)
13659 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13660 ;;
13661 esac
13662 else
13663 case "$host_cpu" in
13664 hppa*64*|ia64*)
13665 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13666 ;;
13667 *)
13668 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13669 ;;
13670 esac
13671 fi
13672 if test "$with_gnu_ld" = no; then
13673 case "$host_cpu" in
13674 hppa*64*)
13675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13676 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13677 hardcode_libdir_separator_F77=:
13678 hardcode_direct_F77=no
13679 hardcode_shlibpath_var_F77=no
13680 ;;
13681 ia64*)
13682 hardcode_libdir_flag_spec_F77='-L$libdir'
13683 hardcode_direct_F77=no
13684 hardcode_shlibpath_var_F77=no
13685
13686 # hardcode_minus_L: Not really in the search PATH,
13687 # but as the default location of the library.
13688 hardcode_minus_L_F77=yes
13689 ;;
13690 *)
13691 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13692 hardcode_libdir_separator_F77=:
13693 hardcode_direct_F77=yes
13694 export_dynamic_flag_spec_F77='${wl}-E'
13695
13696 # hardcode_minus_L: Not really in the search PATH,
13697 # but as the default location of the library.
13698 hardcode_minus_L_F77=yes
13699 ;;
13700 esac
13701 fi
13702 ;;
13703
13704 irix5* | irix6* | nonstopux*)
13705 if test "$GCC" = yes; then
13706 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'
13707 else
13708 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'
13709 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13710 fi
13711 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13712 hardcode_libdir_separator_F77=:
13713 link_all_deplibs_F77=yes
13714 ;;
13715
13716 netbsd*)
13717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13719 else
13720 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13721 fi
13722 hardcode_libdir_flag_spec_F77='-R$libdir'
13723 hardcode_direct_F77=yes
13724 hardcode_shlibpath_var_F77=no
13725 ;;
13726
13727 newsos6)
13728 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13729 hardcode_direct_F77=yes
13730 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13731 hardcode_libdir_separator_F77=:
13732 hardcode_shlibpath_var_F77=no
13733 ;;
13734
13735 openbsd*)
13736 hardcode_direct_F77=yes
13737 hardcode_shlibpath_var_F77=no
13738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13739 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13740 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13741 export_dynamic_flag_spec_F77='${wl}-E'
13742 else
13743 case $host_os in
13744 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13745 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13746 hardcode_libdir_flag_spec_F77='-R$libdir'
13747 ;;
13748 *)
13749 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13751 ;;
13752 esac
13753 fi
13754 ;;
13755
13756 os2*)
13757 hardcode_libdir_flag_spec_F77='-L$libdir'
13758 hardcode_minus_L_F77=yes
13759 allow_undefined_flag_F77=unsupported
13760 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'
13761 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13762 ;;
13763
13764 osf3*)
13765 if test "$GCC" = yes; then
13766 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13767 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'
13768 else
13769 allow_undefined_flag_F77=' -expect_unresolved \*'
13770 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'
13771 fi
13772 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13773 hardcode_libdir_separator_F77=:
13774 ;;
13775
13776 osf4* | osf5*) # as osf3* with the addition of -msym flag
13777 if test "$GCC" = yes; then
13778 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13779 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'
13780 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13781 else
13782 allow_undefined_flag_F77=' -expect_unresolved \*'
13783 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'
13784 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~
13785 $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'
13786
13787 # Both c and cxx compiler support -rpath directly
13788 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13789 fi
13790 hardcode_libdir_separator_F77=:
13791 ;;
13792
13793 sco3.2v5*)
13794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_shlibpath_var_F77=no
13796 export_dynamic_flag_spec_F77='${wl}-Bexport'
13797 runpath_var=LD_RUN_PATH
13798 hardcode_runpath_var=yes
13799 ;;
13800
13801 solaris*)
13802 no_undefined_flag_F77=' -z text'
13803 if test "$GCC" = yes; then
13804 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13805 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13806 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13807 else
13808 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13809 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13811 fi
13812 hardcode_libdir_flag_spec_F77='-R$libdir'
13813 hardcode_shlibpath_var_F77=no
13814 case $host_os in
13815 solaris2.[0-5] | solaris2.[0-5].*) ;;
13816 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13817 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13818 esac
13819 link_all_deplibs_F77=yes
13820 ;;
13821
13822 sunos4*)
13823 if test "x$host_vendor" = xsequent; then
13824 # Use $CC to link under sequent, because it throws in some extra .o
13825 # files that make .init and .fini sections work.
13826 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13827 else
13828 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13829 fi
13830 hardcode_libdir_flag_spec_F77='-L$libdir'
13831 hardcode_direct_F77=yes
13832 hardcode_minus_L_F77=yes
13833 hardcode_shlibpath_var_F77=no
13834 ;;
13835
13836 sysv4)
13837 case $host_vendor in
13838 sni)
13839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840 hardcode_direct_F77=yes # is this really true???
13841 ;;
13842 siemens)
13843 ## LD is ld it makes a PLAMLIB
13844 ## CC just makes a GrossModule.
13845 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13846 reload_cmds_F77='$CC -r -o $output$reload_objs'
13847 hardcode_direct_F77=no
13848 ;;
13849 motorola)
13850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13852 ;;
13853 esac
13854 runpath_var='LD_RUN_PATH'
13855 hardcode_shlibpath_var_F77=no
13856 ;;
13857
13858 sysv4.3*)
13859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860 hardcode_shlibpath_var_F77=no
13861 export_dynamic_flag_spec_F77='-Bexport'
13862 ;;
13863
13864 sysv4*MP*)
13865 if test -d /usr/nec; then
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_shlibpath_var_F77=no
13868 runpath_var=LD_RUN_PATH
13869 hardcode_runpath_var=yes
13870 ld_shlibs_F77=yes
13871 fi
13872 ;;
13873
13874 sysv4.2uw2*)
13875 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13876 hardcode_direct_F77=yes
13877 hardcode_minus_L_F77=no
13878 hardcode_shlibpath_var_F77=no
13879 hardcode_runpath_var=yes
13880 runpath_var=LD_RUN_PATH
13881 ;;
13882
13883 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13884 no_undefined_flag_F77='${wl}-z ${wl}text'
13885 if test "$GCC" = yes; then
13886 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13887 else
13888 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 fi
13890 runpath_var='LD_RUN_PATH'
13891 hardcode_shlibpath_var_F77=no
13892 ;;
13893
13894 sysv5*)
13895 no_undefined_flag_F77=' -z text'
13896 # $CC -shared without GNU ld will not create a library from C++
13897 # object files and a static libstdc++, better avoid it by now
13898 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13899 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13901 hardcode_libdir_flag_spec_F77=
13902 hardcode_shlibpath_var_F77=no
13903 runpath_var='LD_RUN_PATH'
13904 ;;
13905
13906 uts4*)
13907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13908 hardcode_libdir_flag_spec_F77='-L$libdir'
13909 hardcode_shlibpath_var_F77=no
13910 ;;
13911
13912 *)
13913 ld_shlibs_F77=no
13914 ;;
13915 esac
13916 fi
13917
13918echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13919echo "${ECHO_T}$ld_shlibs_F77" >&6
13920test "$ld_shlibs_F77" = no && can_build_shared=no
13921
13922variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13923if test "$GCC" = yes; then
13924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13925fi
13926
13927#
13928# Do we need to explicitly link libc?
13929#
13930case "x$archive_cmds_need_lc_F77" in
13931x|xyes)
13932 # Assume -lc should be added
13933 archive_cmds_need_lc_F77=yes
13934
13935 if test "$enable_shared" = yes && test "$GCC" = yes; then
13936 case $archive_cmds_F77 in
13937 *'~'*)
13938 # FIXME: we may have to deal with multi-command sequences.
13939 ;;
13940 '$CC '*)
13941 # Test whether the compiler implicitly links with -lc since on some
13942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13943 # to ld, don't add -lc before -lgcc.
13944 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13945echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13946 $rm conftest*
13947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13948
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } 2>conftest.err; then
13954 soname=conftest
13955 lib=conftest
13956 libobjs=conftest.$ac_objext
13957 deplibs=
13958 wl=$lt_prog_compiler_wl_F77
13959 compiler_flags=-v
13960 linker_flags=-v
13961 verstring=
13962 output_objdir=.
13963 libname=conftest
13964 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13965 allow_undefined_flag_F77=
13966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13967 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }
13971 then
13972 archive_cmds_need_lc_F77=no
13973 else
13974 archive_cmds_need_lc_F77=yes
13975 fi
13976 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13977 else
13978 cat conftest.err 1>&5
13979 fi
13980 $rm conftest*
13981 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13982echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13983 ;;
13984 esac
13985 fi
13986 ;;
13987esac
13988
13989echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13990echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13991hardcode_action_F77=
13992if test -n "$hardcode_libdir_flag_spec_F77" || \
13993 test -n "$runpath_var F77" || \
13994 test "X$hardcode_automatic_F77"="Xyes" ; then
13995
13996 # We can hardcode non-existant directories.
13997 if test "$hardcode_direct_F77" != no &&
13998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13999 # have to relink, otherwise we might link with an installed library
14000 # when we should be linking with a yet-to-be-installed one
14001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14002 test "$hardcode_minus_L_F77" != no; then
14003 # Linking always hardcodes the temporary library directory.
14004 hardcode_action_F77=relink
14005 else
14006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14007 hardcode_action_F77=immediate
14008 fi
14009else
14010 # We cannot hardcode anything, or else we can only hardcode existing
14011 # directories.
14012 hardcode_action_F77=unsupported
14013fi
14014echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14015echo "${ECHO_T}$hardcode_action_F77" >&6
14016
14017if test "$hardcode_action_F77" = relink; then
14018 # Fast installation is not supported
14019 enable_fast_install=no
14020elif test "$shlibpath_overrides_runpath" = yes ||
14021 test "$enable_shared" = no; then
14022 # Fast installation is not necessary
14023 enable_fast_install=needless
14024fi
14025
14026striplib=
14027old_striplib=
14028echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14029echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14030if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14032 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14033 echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035else
14036# FIXME - insert some real tests, host_os isn't really good enough
14037 case $host_os in
14038 darwin*)
14039 if test -n "$STRIP" ; then
14040 striplib="$STRIP -x"
14041 echo "$as_me:$LINENO: result: yes" >&5
14042echo "${ECHO_T}yes" >&6
14043 else
14044 echo "$as_me:$LINENO: result: no" >&5
14045echo "${ECHO_T}no" >&6
14046fi
14047 ;;
14048 *)
14049 echo "$as_me:$LINENO: result: no" >&5
14050echo "${ECHO_T}no" >&6
14051 ;;
14052 esac
14053fi
14054
14055echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14056echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14057library_names_spec=
14058libname_spec='lib$name'
14059soname_spec=
14060shrext=".so"
14061postinstall_cmds=
14062postuninstall_cmds=
14063finish_cmds=
14064finish_eval=
14065shlibpath_var=
14066shlibpath_overrides_runpath=unknown
14067version_type=none
14068dynamic_linker="$host_os ld.so"
14069sys_lib_dlsearch_path_spec="/lib /usr/lib"
14070if test "$GCC" = yes; then
14071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14073 # if the path contains ";" then we assume it to be the separator
14074 # otherwise default to the standard path separator (i.e. ":") - it is
14075 # assumed that no part of a normal pathname contains ";" but that should
14076 # okay in the real world where ";" in dirpaths is itself problematic.
14077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14078 else
14079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14080 fi
14081else
14082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14083fi
14084need_lib_prefix=unknown
14085hardcode_into_libs=no
14086
14087# when you set need_version to no, make sure it does not cause -set_version
14088# flags to be left without arguments
14089need_version=unknown
14090
14091case $host_os in
14092aix3*)
14093 version_type=linux
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14095 shlibpath_var=LIBPATH
14096
14097 # AIX 3 has no versioning support, so we append a major version to the name.
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 ;;
14100
14101aix4* | aix5*)
14102 version_type=linux
14103 need_lib_prefix=no
14104 need_version=no
14105 hardcode_into_libs=yes
14106 if test "$host_cpu" = ia64; then
14107 # AIX 5 supports IA64
14108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 else
14111 # With GCC up to 2.95.x, collect2 would create an import file
14112 # for dependence libraries. The import file would start with
14113 # the line `#! .'. This would cause the generated library to
14114 # depend on `.', always an invalid library. This was fixed in
14115 # development snapshots of GCC prior to 3.0.
14116 case $host_os in
14117 aix4 | aix4.[01] | aix4.[01].*)
14118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14119 echo ' yes '
14120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14121 :
14122 else
14123 can_build_shared=no
14124 fi
14125 ;;
14126 esac
14127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14128 # soname into executable. Probably we can add versioning support to
14129 # collect2, so additional links can be useful in future.
14130 if test "$aix_use_runtimelinking" = yes; then
14131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14132 # instead of lib<name>.a to let people know that these are not
14133 # typical AIX shared libraries.
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14135 else
14136 # We preserve .a as extension for shared libraries through AIX4.2
14137 # and later when we are not doing run time linking.
14138 library_names_spec='${libname}${release}.a $libname.a'
14139 soname_spec='${libname}${release}${shared_ext}$major'
14140 fi
14141 shlibpath_var=LIBPATH
14142 fi
14143 ;;
14144
14145amigaos*)
14146 library_names_spec='$libname.ixlibrary $libname.a'
14147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14148 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'
14149 ;;
14150
14151beos*)
14152 library_names_spec='${libname}${shared_ext}'
14153 dynamic_linker="$host_os ld.so"
14154 shlibpath_var=LIBRARY_PATH
14155 ;;
14156
14157bsdi4*)
14158 version_type=linux
14159 need_version=no
14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14166 # the default ld.so.conf also contains /usr/contrib/lib and
14167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14168 # libtool to hard-code these into programs
14169 ;;
14170
14171cygwin* | mingw* | pw32*)
14172 version_type=windows
14173 shrext=".dll"
14174 need_version=no
14175 need_lib_prefix=no
14176
14177 case $GCC,$host_os in
14178 yes,cygwin* | yes,mingw* | yes,pw32*)
14179 library_names_spec='$libname.dll.a'
14180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14181 postinstall_cmds='base_file=`basename \${file}`~
14182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14183 dldir=$destdir/`dirname \$dlpath`~
14184 test -d \$dldir || mkdir -p \$dldir~
14185 $install_prog $dir/$dlname \$dldir/$dlname'
14186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14187 dlpath=$dir/\$dldll~
14188 $rm \$dlpath'
14189 shlibpath_overrides_runpath=yes
14190
14191 case $host_os in
14192 cygwin*)
14193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14196 ;;
14197 mingw*)
14198 # MinGW DLLs use traditional 'lib' prefix
14199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14200 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14201 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14202 # It is most probably a Windows format PATH printed by
14203 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14204 # path with ; separators, and with drive letters. We can handle the
14205 # drive letters (cygwin fileutils understands them), so leave them,
14206 # especially as we might pass files found there to a mingw objdump,
14207 # which wouldn't understand a cygwinified path. Ahh.
14208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14209 else
14210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14211 fi
14212 ;;
14213 pw32*)
14214 # pw32 DLLs use 'pw' prefix rather than 'lib'
14215 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14216 ;;
14217 esac
14218 ;;
14219
14220 *)
14221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14222 ;;
14223 esac
14224 dynamic_linker='Win32 ld.exe'
14225 # FIXME: first we should search . and the directory the executable is in
14226 shlibpath_var=PATH
14227 ;;
14228
14229darwin* | rhapsody*)
14230 dynamic_linker="$host_os dyld"
14231 version_type=darwin
14232 need_lib_prefix=no
14233 need_version=no
14234 # FIXME: Relying on posixy $() will cause problems for
14235 # cross-compilation, but unfortunately the echo tests do not
14236 # yet detect zsh echo's removal of \ escapes.
14237 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14238 soname_spec='${libname}${release}${major}$shared_ext'
14239 shlibpath_overrides_runpath=yes
14240 shlibpath_var=DYLD_LIBRARY_PATH
14241 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14242 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14243 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14244 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"`
14245 fi
14246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14247 ;;
14248
14249dgux*)
14250 version_type=linux
14251 need_lib_prefix=no
14252 need_version=no
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 shlibpath_var=LD_LIBRARY_PATH
14256 ;;
14257
14258freebsd1*)
14259 dynamic_linker=no
14260 ;;
14261
14262freebsd*)
14263 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14264 version_type=freebsd-$objformat
14265 case $version_type in
14266 freebsd-elf*)
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14268 need_version=no
14269 need_lib_prefix=no
14270 ;;
14271 freebsd-*)
14272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14273 need_version=yes
14274 ;;
14275 esac
14276 shlibpath_var=LD_LIBRARY_PATH
14277 case $host_os in
14278 freebsd2*)
14279 shlibpath_overrides_runpath=yes
14280 ;;
14281 freebsd3.01* | freebsdelf3.01*)
14282 shlibpath_overrides_runpath=yes
14283 hardcode_into_libs=yes
14284 ;;
14285 *) # from 3.2 on
14286 shlibpath_overrides_runpath=no
14287 hardcode_into_libs=yes
14288 ;;
14289 esac
14290 ;;
14291
14292gnu*)
14293 version_type=linux
14294 need_lib_prefix=no
14295 need_version=no
14296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14297 soname_spec='${libname}${release}${shared_ext}$major'
14298 shlibpath_var=LD_LIBRARY_PATH
14299 hardcode_into_libs=yes
14300 ;;
14301
14302hpux9* | hpux10* | hpux11*)
14303 # Give a soname corresponding to the major version so that dld.sl refuses to
14304 # link against other versions.
14305 version_type=sunos
14306 need_lib_prefix=no
14307 need_version=no
14308 case "$host_cpu" in
14309 ia64*)
14310 shrext='.so'
14311 hardcode_into_libs=yes
14312 dynamic_linker="$host_os dld.so"
14313 shlibpath_var=LD_LIBRARY_PATH
14314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14317 if test "X$HPUX_IA64_MODE" = X32; then
14318 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14319 else
14320 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14321 fi
14322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14323 ;;
14324 hppa*64*)
14325 shrext='.sl'
14326 hardcode_into_libs=yes
14327 dynamic_linker="$host_os dld.sl"
14328 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14334 ;;
14335 *)
14336 shrext='.sl'
14337 dynamic_linker="$host_os dld.sl"
14338 shlibpath_var=SHLIB_PATH
14339 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 ;;
14343 esac
14344 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14345 postinstall_cmds='chmod 555 $lib'
14346 ;;
14347
14348irix5* | irix6* | nonstopux*)
14349 case $host_os in
14350 nonstopux*) version_type=nonstopux ;;
14351 *)
14352 if test "$lt_cv_prog_gnu_ld" = yes; then
14353 version_type=linux
14354 else
14355 version_type=irix
14356 fi ;;
14357 esac
14358 need_lib_prefix=no
14359 need_version=no
14360 soname_spec='${libname}${release}${shared_ext}$major'
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14362 case $host_os in
14363 irix5* | nonstopux*)
14364 libsuff= shlibsuff=
14365 ;;
14366 *)
14367 case $LD in # libtool.m4 will add one of these switches to LD
14368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14369 libsuff= shlibsuff= libmagic=32-bit;;
14370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14371 libsuff=32 shlibsuff=N32 libmagic=N32;;
14372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14374 *) libsuff= shlibsuff= libmagic=never-match;;
14375 esac
14376 ;;
14377 esac
14378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14379 shlibpath_overrides_runpath=no
14380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14382 hardcode_into_libs=yes
14383 ;;
14384
14385# No shared lib support for Linux oldld, aout, or coff.
14386linux*oldld* | linux*aout* | linux*coff*)
14387 dynamic_linker=no
14388 ;;
14389
14390# This must be Linux ELF.
14391linux*)
14392 version_type=linux
14393 need_lib_prefix=no
14394 need_version=no
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396 soname_spec='${libname}${release}${shared_ext}$major'
14397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14398 shlibpath_var=LD_LIBRARY_PATH
14399 shlibpath_overrides_runpath=no
14400 # This implies no fast_install, which is unacceptable.
14401 # Some rework will be needed to allow for fast_install
14402 # before this can be enabled.
14403 hardcode_into_libs=yes
14404
14405 # We used to test for /lib/ld.so.1 and disable shared libraries on
14406 # powerpc, because MkLinux only supported shared libraries with the
14407 # GNU dynamic linker. Since this was broken with cross compilers,
14408 # most powerpc-linux boxes support dynamic linking these days and
14409 # people can always --disable-shared, the test was removed, and we
14410 # assume the GNU/Linux dynamic linker is in use.
14411 dynamic_linker='GNU/Linux ld.so'
14412 ;;
14413
14414netbsd*)
14415 version_type=sunos
14416 need_lib_prefix=no
14417 need_version=no
14418 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14421 dynamic_linker='NetBSD (a.out) ld.so'
14422 else
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 dynamic_linker='NetBSD ld.elf_so'
14426 fi
14427 shlibpath_var=LD_LIBRARY_PATH
14428 shlibpath_overrides_runpath=yes
14429 hardcode_into_libs=yes
14430 ;;
14431
14432newsos6)
14433 version_type=linux
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes
14437 ;;
14438
14439nto-qnx)
14440 version_type=linux
14441 need_lib_prefix=no
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes
14447 ;;
14448
14449openbsd*)
14450 version_type=sunos
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14457 case $host_os in
14458 openbsd2.[89] | openbsd2.[89].*)
14459 shlibpath_overrides_runpath=no
14460 ;;
14461 *)
14462 shlibpath_overrides_runpath=yes
14463 ;;
14464 esac
14465 else
14466 shlibpath_overrides_runpath=yes
14467 fi
14468 ;;
14469
14470os2*)
14471 libname_spec='$name'
14472 shrext=".dll"
14473 need_lib_prefix=no
14474 library_names_spec='$libname${shared_ext} $libname.a'
14475 dynamic_linker='OS/2 ld.exe'
14476 shlibpath_var=LIBPATH
14477 ;;
14478
14479osf3* | osf4* | osf5*)
14480 version_type=osf
14481 need_lib_prefix=no
14482 need_version=no
14483 soname_spec='${libname}${release}${shared_ext}$major'
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14488 ;;
14489
14490sco3.2v5*)
14491 version_type=osf
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 ;;
14496
14497solaris*)
14498 version_type=linux
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502 soname_spec='${libname}${release}${shared_ext}$major'
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes
14505 hardcode_into_libs=yes
14506 # ldd complains unless libraries are executable
14507 postinstall_cmds='chmod +x $lib'
14508 ;;
14509
14510sunos4*)
14511 version_type=sunos
14512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 shlibpath_overrides_runpath=yes
14516 if test "$with_gnu_ld" = yes; then
14517 need_lib_prefix=no
14518 fi
14519 need_version=yes
14520 ;;
14521
14522sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14523 version_type=linux
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 shlibpath_var=LD_LIBRARY_PATH
14527 case $host_vendor in
14528 sni)
14529 shlibpath_overrides_runpath=no
14530 need_lib_prefix=no
14531 export_dynamic_flag_spec='${wl}-Blargedynsym'
14532 runpath_var=LD_RUN_PATH
14533 ;;
14534 siemens)
14535 need_lib_prefix=no
14536 ;;
14537 motorola)
14538 need_lib_prefix=no
14539 need_version=no
14540 shlibpath_overrides_runpath=no
14541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14542 ;;
14543 esac
14544 ;;
14545
14546sysv4*MP*)
14547 if test -d /usr/nec ;then
14548 version_type=linux
14549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14550 soname_spec='$libname${shared_ext}.$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 fi
14553 ;;
14554
14555uts4*)
14556 version_type=linux
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 ;;
14561
14562*)
14563 dynamic_linker=no
14564 ;;
14565esac
14566echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14567echo "${ECHO_T}$dynamic_linker" >&6
14568test "$dynamic_linker" = no && can_build_shared=no
14569
14570
14571# The else clause should only fire when bootstrapping the
14572# libtool distribution, otherwise you forgot to ship ltmain.sh
14573# with your package, and you will get complaints that there are
14574# no rules to generate ltmain.sh.
14575if test -f "$ltmain"; then
14576 # See if we are running on zsh, and set the options which allow our commands through
14577 # without removal of \ escapes.
14578 if test -n "${ZSH_VERSION+set}" ; then
14579 setopt NO_GLOB_SUBST
14580 fi
14581 # Now quote all the things that may contain metacharacters while being
14582 # careful not to overquote the AC_SUBSTed values. We take copies of the
14583 # variables and quote the copies for generation of the libtool script.
14584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14587 deplibs_check_method reload_flag reload_cmds need_locks \
14588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14589 lt_cv_sys_global_symbol_to_c_name_address \
14590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14591 old_postinstall_cmds old_postuninstall_cmds \
14592 compiler_F77 \
14593 CC_F77 \
14594 LD_F77 \
14595 lt_prog_compiler_wl_F77 \
14596 lt_prog_compiler_pic_F77 \
14597 lt_prog_compiler_static_F77 \
14598 lt_prog_compiler_no_builtin_flag_F77 \
14599 export_dynamic_flag_spec_F77 \
14600 thread_safe_flag_spec_F77 \
14601 whole_archive_flag_spec_F77 \
14602 enable_shared_with_static_runtimes_F77 \
14603 old_archive_cmds_F77 \
14604 old_archive_from_new_cmds_F77 \
14605 predep_objects_F77 \
14606 postdep_objects_F77 \
14607 predeps_F77 \
14608 postdeps_F77 \
14609 compiler_lib_search_path_F77 \
14610 archive_cmds_F77 \
14611 archive_expsym_cmds_F77 \
14612 postinstall_cmds_F77 \
14613 postuninstall_cmds_F77 \
14614 old_archive_from_expsyms_cmds_F77 \
14615 allow_undefined_flag_F77 \
14616 no_undefined_flag_F77 \
14617 export_symbols_cmds_F77 \
14618 hardcode_libdir_flag_spec_F77 \
14619 hardcode_libdir_flag_spec_ld_F77 \
14620 hardcode_libdir_separator_F77 \
14621 hardcode_automatic_F77 \
14622 module_cmds_F77 \
14623 module_expsym_cmds_F77 \
14624 lt_cv_prog_compiler_c_o_F77 \
14625 exclude_expsyms_F77 \
14626 include_expsyms_F77; do
14627
14628 case $var in
14629 old_archive_cmds_F77 | \
14630 old_archive_from_new_cmds_F77 | \
14631 archive_cmds_F77 | \
14632 archive_expsym_cmds_F77 | \
14633 module_cmds_F77 | \
14634 module_expsym_cmds_F77 | \
14635 old_archive_from_expsyms_cmds_F77 | \
14636 export_symbols_cmds_F77 | \
14637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14638 postinstall_cmds | postuninstall_cmds | \
14639 old_postinstall_cmds | old_postuninstall_cmds | \
14640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14641 # Double-quote double-evaled strings.
14642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14643 ;;
14644 *)
14645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14646 ;;
14647 esac
14648 done
14649
14650 case $lt_echo in
14651 *'\$0 --fallback-echo"')
14652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14653 ;;
14654 esac
14655
14656cfgfile="$ofile"
14657
14658 cat <<__EOF__ >> "$cfgfile"
14659# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14660
14661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14662
14663# Shell to use when invoking shell scripts.
14664SHELL=$lt_SHELL
14665
14666# Whether or not to build shared libraries.
14667build_libtool_libs=$enable_shared
14668
14669# Whether or not to build static libraries.
14670build_old_libs=$enable_static
14671
14672# Whether or not to add -lc for building shared libraries.
14673build_libtool_need_lc=$archive_cmds_need_lc_F77
14674
14675# Whether or not to disallow shared libs when runtime libs are static
14676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14677
14678# Whether or not to optimize for fast installation.
14679fast_install=$enable_fast_install
14680
14681# The host system.
14682host_alias=$host_alias
14683host=$host
14684
14685# An echo program that does not interpret backslashes.
14686echo=$lt_echo
14687
14688# The archiver.
14689AR=$lt_AR
14690AR_FLAGS=$lt_AR_FLAGS
14691
14692# A C compiler.
14693LTCC=$lt_LTCC
14694
14695# A language-specific compiler.
14696CC=$lt_compiler_F77
14697
14698# Is the compiler the GNU C compiler?
14699with_gcc=$GCC_F77
14700
14701# An ERE matcher.
14702EGREP=$lt_EGREP
14703
14704# The linker used to build libraries.
14705LD=$lt_LD_F77
14706
14707# Whether we need hard or soft links.
14708LN_S=$lt_LN_S
14709
14710# A BSD-compatible nm program.
14711NM=$lt_NM
14712
14713# A symbol stripping program
14714STRIP=$STRIP
14715
14716# Used to examine libraries when file_magic_cmd begins "file"
14717MAGIC_CMD=$MAGIC_CMD
14718
14719# Used on cygwin: DLL creation program.
14720DLLTOOL="$DLLTOOL"
14721
14722# Used on cygwin: object dumper.
14723OBJDUMP="$OBJDUMP"
14724
14725# Used on cygwin: assembler.
14726AS="$AS"
14727
14728# The name of the directory that contains temporary libtool files.
14729objdir=$objdir
14730
14731# How to create reloadable object files.
14732reload_flag=$lt_reload_flag
14733reload_cmds=$lt_reload_cmds
14734
14735# How to pass a linker flag through the compiler.
14736wl=$lt_lt_prog_compiler_wl_F77
14737
14738# Object file suffix (normally "o").
14739objext="$ac_objext"
14740
14741# Old archive suffix (normally "a").
14742libext="$libext"
14743
14744# Shared library suffix (normally ".so").
14745shrext='$shrext'
14746
14747# Executable file suffix (normally "").
14748exeext="$exeext"
14749
14750# Additional compiler flags for building library objects.
14751pic_flag=$lt_lt_prog_compiler_pic_F77
14752pic_mode=$pic_mode
14753
14754# What is the maximum length of a command?
14755max_cmd_len=$lt_cv_sys_max_cmd_len
14756
14757# Does compiler simultaneously support -c and -o options?
14758compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14759
14760# Must we lock files when doing compilation ?
14761need_locks=$lt_need_locks
14762
14763# Do we need the lib prefix for modules?
14764need_lib_prefix=$need_lib_prefix
14765
14766# Do we need a version for libraries?
14767need_version=$need_version
14768
14769# Whether dlopen is supported.
14770dlopen_support=$enable_dlopen
14771
14772# Whether dlopen of programs is supported.
14773dlopen_self=$enable_dlopen_self
14774
14775# Whether dlopen of statically linked programs is supported.
14776dlopen_self_static=$enable_dlopen_self_static
14777
14778# Compiler flag to prevent dynamic linking.
14779link_static_flag=$lt_lt_prog_compiler_static_F77
14780
14781# Compiler flag to turn off builtin functions.
14782no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14783
14784# Compiler flag to allow reflexive dlopens.
14785export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14786
14787# Compiler flag to generate shared objects directly from archives.
14788whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14789
14790# Compiler flag to generate thread-safe objects.
14791thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14792
14793# Library versioning type.
14794version_type=$version_type
14795
14796# Format of library name prefix.
14797libname_spec=$lt_libname_spec
14798
14799# List of archive names. First name is the real one, the rest are links.
14800# The last name is the one that the linker finds with -lNAME.
14801library_names_spec=$lt_library_names_spec
14802
14803# The coded name of the library, if different from the real name.
14804soname_spec=$lt_soname_spec
14805
14806# Commands used to build and install an old-style archive.
14807RANLIB=$lt_RANLIB
14808old_archive_cmds=$lt_old_archive_cmds_F77
14809old_postinstall_cmds=$lt_old_postinstall_cmds
14810old_postuninstall_cmds=$lt_old_postuninstall_cmds
14811
14812# Create an old-style archive from a shared archive.
14813old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14814
14815# Create a temporary old-style archive to link instead of a shared archive.
14816old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14817
14818# Commands used to build and install a shared archive.
14819archive_cmds=$lt_archive_cmds_F77
14820archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14821postinstall_cmds=$lt_postinstall_cmds
14822postuninstall_cmds=$lt_postuninstall_cmds
14823
14824# Commands used to build a loadable module (assumed same as above if empty)
14825module_cmds=$lt_module_cmds_F77
14826module_expsym_cmds=$lt_module_expsym_cmds_F77
14827
14828# Commands to strip libraries.
14829old_striplib=$lt_old_striplib
14830striplib=$lt_striplib
14831
14832# Dependencies to place before the objects being linked to create a
14833# shared library.
14834predep_objects=$lt_predep_objects_F77
14835
14836# Dependencies to place after the objects being linked to create a
14837# shared library.
14838postdep_objects=$lt_postdep_objects_F77
14839
14840# Dependencies to place before the objects being linked to create a
14841# shared library.
14842predeps=$lt_predeps_F77
14843
14844# Dependencies to place after the objects being linked to create a
14845# shared library.
14846postdeps=$lt_postdeps_F77
14847
14848# The library search path used internally by the compiler when linking
14849# a shared library.
14850compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14851
14852# Method to check whether dependent libraries are shared objects.
14853deplibs_check_method=$lt_deplibs_check_method
14854
14855# Command to use when deplibs_check_method == file_magic.
14856file_magic_cmd=$lt_file_magic_cmd
14857
14858# Flag that allows shared libraries with undefined symbols to be built.
14859allow_undefined_flag=$lt_allow_undefined_flag_F77
14860
14861# Flag that forces no undefined symbols.
14862no_undefined_flag=$lt_no_undefined_flag_F77
14863
14864# Commands used to finish a libtool library installation in a directory.
14865finish_cmds=$lt_finish_cmds
14866
14867# Same as above, but a single script fragment to be evaled but not shown.
14868finish_eval=$lt_finish_eval
14869
14870# Take the output of nm and produce a listing of raw symbols and C names.
14871global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14872
14873# Transform the output of nm in a proper C declaration
14874global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14875
14876# Transform the output of nm in a C name address pair
14877global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14878
14879# This is the shared library runtime path variable.
14880runpath_var=$runpath_var
14881
14882# This is the shared library path variable.
14883shlibpath_var=$shlibpath_var
14884
14885# Is shlibpath searched before the hard-coded library search path?
14886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14887
14888# How to hardcode a shared library path into an executable.
14889hardcode_action=$hardcode_action_F77
14890
14891# Whether we should hardcode library paths into libraries.
14892hardcode_into_libs=$hardcode_into_libs
14893
14894# Flag to hardcode \$libdir into a binary during linking.
14895# This must work even if \$libdir does not exist.
14896hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14897
14898# If ld is used when linking, flag to hardcode \$libdir into
14899# a binary during linking. This must work even if \$libdir does
14900# not exist.
14901hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14902
14903# Whether we need a single -rpath flag with a separated argument.
14904hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14905
14906# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14907# resulting binary.
14908hardcode_direct=$hardcode_direct_F77
14909
14910# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14911# resulting binary.
14912hardcode_minus_L=$hardcode_minus_L_F77
14913
14914# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14915# the resulting binary.
14916hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14917
14918# Set to yes if building a shared library automatically hardcodes DIR into the library
14919# and all subsequent libraries and executables linked against it.
14920hardcode_automatic=$hardcode_automatic_F77
14921
14922# Variables whose values should be saved in libtool wrapper scripts and
14923# restored at relink time.
14924variables_saved_for_relink="$variables_saved_for_relink"
14925
14926# Whether libtool must link a program against all its dependency libraries.
14927link_all_deplibs=$link_all_deplibs_F77
14928
14929# Compile-time system search path for libraries
14930sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14931
14932# Run-time system search path for libraries
14933sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14934
14935# Fix the shell variable \$srcfile for the compiler.
14936fix_srcfile_path="$fix_srcfile_path_F77"
14937
14938# Set to yes if exported symbols are required.
14939always_export_symbols=$always_export_symbols_F77
14940
14941# The commands to list exported symbols.
14942export_symbols_cmds=$lt_export_symbols_cmds_F77
14943
14944# The commands to extract the exported symbol list from a shared archive.
14945extract_expsyms_cmds=$lt_extract_expsyms_cmds
14946
14947# Symbols that should not be listed in the preloaded symbols.
14948exclude_expsyms=$lt_exclude_expsyms_F77
14949
14950# Symbols that must always be exported.
14951include_expsyms=$lt_include_expsyms_F77
14952
14953# ### END LIBTOOL TAG CONFIG: $tagname
14954
14955__EOF__
14956
14957
14958else
14959 # If there is no Makefile yet, we rely on a make rule to execute
14960 # `config.status --recheck' to rerun these tests and create the
14961 # libtool script then.
14962 test -f Makefile && make "$ltmain"
14963fi
14964
14965
14966ac_ext=c
14967ac_cpp='$CPP $CPPFLAGS'
14968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14970ac_compiler_gnu=$ac_cv_c_compiler_gnu
14971
14972CC="$lt_save_CC"
14973
14974 else
14975 tagname=""
14976 fi
14977 ;;
14978
14979 GCJ)
14980 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14981
14982
14983
14984# Source file extension for Java test sources.
14985ac_ext=java
14986
14987# Object file extension for compiled Java test sources.
14988objext=o
14989objext_GCJ=$objext
14990
14991# Code to be used in simple compile tests
14992lt_simple_compile_test_code="class foo {}\n"
14993
14994# Code to be used in simple link tests
14995lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14996
14997# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14998
14999# If no C compiler was specified, use CC.
15000LTCC=${LTCC-"$CC"}
15001
15002# Allow CC to be a program name with arguments.
15003compiler=$CC
15004
15005
15006# Allow CC to be a program name with arguments.
15007lt_save_CC="$CC"
15008CC=${GCJ-"gcj"}
15009compiler=$CC
15010compiler_GCJ=$CC
15011
15012# GCJ did not exist at the time GCC didn't implicitly link libc in.
15013archive_cmds_need_lc_GCJ=no
15014
15015## CAVEAT EMPTOR:
15016## There is no encapsulation within the following macros, do not change
15017## the running order or otherwise move them around unless you know exactly
15018## what you are doing...
15019
15020lt_prog_compiler_no_builtin_flag_GCJ=
15021
15022if test "$GCC" = yes; then
15023 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15024
15025 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15026echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15027if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15029else
15030 lt_cv_prog_compiler_rtti_exceptions=no
15031 ac_outfile=conftest.$ac_objext
15032 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15033 lt_compiler_flag="-fno-rtti -fno-exceptions"
15034 # Insert the option either (1) after the last *FLAGS variable, or
15035 # (2) before a word containing "conftest.", or (3) at the end.
15036 # Note that $ac_compile itself does not contain backslashes and begins
15037 # with a dollar sign (not a hyphen), so the echo should work correctly.
15038 # The option is referenced via a variable to avoid confusing sed.
15039 lt_compile=`echo "$ac_compile" | $SED \
15040 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15042 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000015043 (eval echo "\"\$as_me:15043: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015044 (eval "$lt_compile" 2>conftest.err)
15045 ac_status=$?
15046 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000015047 echo "$as_me:15047: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015048 if (exit $ac_status) && test -s "$ac_outfile"; then
15049 # The compiler can only warn and ignore the option if not recognized
15050 # So say no if there are warnings
15051 if test ! -s conftest.err; then
15052 lt_cv_prog_compiler_rtti_exceptions=yes
15053 fi
15054 fi
15055 $rm conftest*
15056
15057fi
15058echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15059echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15060
15061if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15062 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15063else
15064 :
15065fi
15066
15067fi
15068
15069lt_prog_compiler_wl_GCJ=
15070lt_prog_compiler_pic_GCJ=
15071lt_prog_compiler_static_GCJ=
15072
15073echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15074echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15075
15076 if test "$GCC" = yes; then
15077 lt_prog_compiler_wl_GCJ='-Wl,'
15078 lt_prog_compiler_static_GCJ='-static'
15079
15080 case $host_os in
15081 aix*)
15082 # All AIX code is PIC.
15083 if test "$host_cpu" = ia64; then
15084 # AIX 5 now supports IA64 processor
15085 lt_prog_compiler_static_GCJ='-Bstatic'
15086 fi
15087 ;;
15088
15089 amigaos*)
15090 # FIXME: we need at least 68020 code to build shared libraries, but
15091 # adding the `-m68020' flag to GCC prevents building anything better,
15092 # like `-m68040'.
15093 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15094 ;;
15095
15096 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15097 # PIC is the default for these OSes.
15098 ;;
15099
15100 mingw* | pw32* | os2*)
15101 # This hack is so that the source file can tell whether it is being
15102 # built for inclusion in a dll (and should export symbols for example).
15103 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15104 ;;
15105
15106 darwin* | rhapsody*)
15107 # PIC is the default on this platform
15108 # Common symbols not allowed in MH_DYLIB files
15109 lt_prog_compiler_pic_GCJ='-fno-common'
15110 ;;
15111
15112 msdosdjgpp*)
15113 # Just because we use GCC doesn't mean we suddenly get shared libraries
15114 # on systems that don't support them.
15115 lt_prog_compiler_can_build_shared_GCJ=no
15116 enable_shared=no
15117 ;;
15118
15119 sysv4*MP*)
15120 if test -d /usr/nec; then
15121 lt_prog_compiler_pic_GCJ=-Kconform_pic
15122 fi
15123 ;;
15124
15125 hpux*)
15126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15127 # not for PA HP-UX.
15128 case "$host_cpu" in
15129 hppa*64*|ia64*)
15130 # +Z the default
15131 ;;
15132 *)
15133 lt_prog_compiler_pic_GCJ='-fPIC'
15134 ;;
15135 esac
15136 ;;
15137
15138 *)
15139 lt_prog_compiler_pic_GCJ='-fPIC'
15140 ;;
15141 esac
15142 else
15143 # PORTME Check for flag to pass linker flags through the system compiler.
15144 case $host_os in
15145 aix*)
15146 lt_prog_compiler_wl_GCJ='-Wl,'
15147 if test "$host_cpu" = ia64; then
15148 # AIX 5 now supports IA64 processor
15149 lt_prog_compiler_static_GCJ='-Bstatic'
15150 else
15151 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15152 fi
15153 ;;
15154
15155 mingw* | pw32* | os2*)
15156 # This hack is so that the source file can tell whether it is being
15157 # built for inclusion in a dll (and should export symbols for example).
15158 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15159 ;;
15160
15161 hpux9* | hpux10* | hpux11*)
15162 lt_prog_compiler_wl_GCJ='-Wl,'
15163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15164 # not for PA HP-UX.
15165 case "$host_cpu" in
15166 hppa*64*|ia64*)
15167 # +Z the default
15168 ;;
15169 *)
15170 lt_prog_compiler_pic_GCJ='+Z'
15171 ;;
15172 esac
15173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15174 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15175 ;;
15176
15177 irix5* | irix6* | nonstopux*)
15178 lt_prog_compiler_wl_GCJ='-Wl,'
15179 # PIC (with -KPIC) is the default.
15180 lt_prog_compiler_static_GCJ='-non_shared'
15181 ;;
15182
15183 newsos6)
15184 lt_prog_compiler_pic_GCJ='-KPIC'
15185 lt_prog_compiler_static_GCJ='-Bstatic'
15186 ;;
15187
15188 linux*)
15189 case $CC in
15190 icc|ecc)
15191 lt_prog_compiler_wl_GCJ='-Wl,'
15192 lt_prog_compiler_pic_GCJ='-KPIC'
15193 lt_prog_compiler_static_GCJ='-static'
15194 ;;
15195 ccc)
15196 lt_prog_compiler_wl_GCJ='-Wl,'
15197 # All Alpha code is PIC.
15198 lt_prog_compiler_static_GCJ='-non_shared'
15199 ;;
15200 esac
15201 ;;
15202
15203 osf3* | osf4* | osf5*)
15204 lt_prog_compiler_wl_GCJ='-Wl,'
15205 # All OSF/1 code is PIC.
15206 lt_prog_compiler_static_GCJ='-non_shared'
15207 ;;
15208
15209 sco3.2v5*)
15210 lt_prog_compiler_pic_GCJ='-Kpic'
15211 lt_prog_compiler_static_GCJ='-dn'
15212 ;;
15213
15214 solaris*)
15215 lt_prog_compiler_wl_GCJ='-Wl,'
15216 lt_prog_compiler_pic_GCJ='-KPIC'
15217 lt_prog_compiler_static_GCJ='-Bstatic'
15218 ;;
15219
15220 sunos4*)
15221 lt_prog_compiler_wl_GCJ='-Qoption ld '
15222 lt_prog_compiler_pic_GCJ='-PIC'
15223 lt_prog_compiler_static_GCJ='-Bstatic'
15224 ;;
15225
15226 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15227 lt_prog_compiler_wl_GCJ='-Wl,'
15228 lt_prog_compiler_pic_GCJ='-KPIC'
15229 lt_prog_compiler_static_GCJ='-Bstatic'
15230 ;;
15231
15232 sysv4*MP*)
15233 if test -d /usr/nec ;then
15234 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15235 lt_prog_compiler_static_GCJ='-Bstatic'
15236 fi
15237 ;;
15238
15239 uts4*)
15240 lt_prog_compiler_pic_GCJ='-pic'
15241 lt_prog_compiler_static_GCJ='-Bstatic'
15242 ;;
15243
15244 *)
15245 lt_prog_compiler_can_build_shared_GCJ=no
15246 ;;
15247 esac
15248 fi
15249
15250echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15251echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15252
15253#
15254# Check to make sure the PIC flag actually works.
15255#
15256if test -n "$lt_prog_compiler_pic_GCJ"; then
15257 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15258echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15259if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15261else
15262 lt_prog_compiler_pic_works_GCJ=no
15263 ac_outfile=conftest.$ac_objext
15264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15265 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15266 # Insert the option either (1) after the last *FLAGS variable, or
15267 # (2) before a word containing "conftest.", or (3) at the end.
15268 # Note that $ac_compile itself does not contain backslashes and begins
15269 # with a dollar sign (not a hyphen), so the echo should work correctly.
15270 # The option is referenced via a variable to avoid confusing sed.
15271 lt_compile=`echo "$ac_compile" | $SED \
15272 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15274 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000015275 (eval echo "\"\$as_me:15275: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015276 (eval "$lt_compile" 2>conftest.err)
15277 ac_status=$?
15278 cat conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000015279 echo "$as_me:15279: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015280 if (exit $ac_status) && test -s "$ac_outfile"; then
15281 # The compiler can only warn and ignore the option if not recognized
15282 # So say no if there are warnings
15283 if test ! -s conftest.err; then
15284 lt_prog_compiler_pic_works_GCJ=yes
15285 fi
15286 fi
15287 $rm conftest*
15288
15289fi
15290echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15291echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15292
15293if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15294 case $lt_prog_compiler_pic_GCJ in
15295 "" | " "*) ;;
15296 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15297 esac
15298else
15299 lt_prog_compiler_pic_GCJ=
15300 lt_prog_compiler_can_build_shared_GCJ=no
15301fi
15302
15303fi
15304case "$host_os" in
15305 # For platforms which do not support PIC, -DPIC is meaningless:
15306 *djgpp*)
15307 lt_prog_compiler_pic_GCJ=
15308 ;;
15309 *)
15310 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15311 ;;
15312esac
15313
15314echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15315echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15316if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318else
15319 lt_cv_prog_compiler_c_o_GCJ=no
15320 $rm -r conftest 2>/dev/null
15321 mkdir conftest
15322 cd conftest
15323 mkdir out
15324 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15325
15326 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15327 # that will create temporary files in the current directory regardless of
15328 # the output directory. Thus, making CWD read-only will cause this test
15329 # to fail, enabling locking or at least warning the user not to do parallel
15330 # builds.
15331 chmod -w .
15332
15333 lt_compiler_flag="-o out/conftest2.$ac_objext"
15334 # Insert the option either (1) after the last *FLAGS variable, or
15335 # (2) before a word containing "conftest.", or (3) at the end.
15336 # Note that $ac_compile itself does not contain backslashes and begins
15337 # with a dollar sign (not a hyphen), so the echo should work correctly.
15338 lt_compile=`echo "$ac_compile" | $SED \
15339 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341 -e 's:$: $lt_compiler_flag:'`
John Criswell5ab73462003-10-09 15:44:28 +000015342 (eval echo "\"\$as_me:15342: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015343 (eval "$lt_compile" 2>out/conftest.err)
15344 ac_status=$?
15345 cat out/conftest.err >&5
John Criswell5ab73462003-10-09 15:44:28 +000015346 echo "$as_me:15346: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015347 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15348 then
15349 # The compiler can only warn and ignore the option if not recognized
15350 # So say no if there are warnings
15351 if test ! -s out/conftest.err; then
15352 lt_cv_prog_compiler_c_o_GCJ=yes
15353 fi
15354 fi
15355 chmod u+w .
15356 $rm conftest* out/*
15357 rmdir out
15358 cd ..
15359 rmdir conftest
15360 $rm conftest*
15361
15362fi
15363echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15364echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15365
15366
15367hard_links="nottested"
15368if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15369 # do not overwrite the value of need_locks provided by the user
15370 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15371echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15372 hard_links=yes
15373 $rm conftest*
15374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15375 touch conftest.a
15376 ln conftest.a conftest.b 2>&5 || hard_links=no
15377 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15378 echo "$as_me:$LINENO: result: $hard_links" >&5
15379echo "${ECHO_T}$hard_links" >&6
15380 if test "$hard_links" = no; then
15381 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15382echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15383 need_locks=warn
15384 fi
15385else
15386 need_locks=no
15387fi
15388
15389echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15390echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15391
15392 runpath_var=
15393 allow_undefined_flag_GCJ=
15394 enable_shared_with_static_runtimes_GCJ=no
15395 archive_cmds_GCJ=
15396 archive_expsym_cmds_GCJ=
15397 old_archive_From_new_cmds_GCJ=
15398 old_archive_from_expsyms_cmds_GCJ=
15399 export_dynamic_flag_spec_GCJ=
15400 whole_archive_flag_spec_GCJ=
15401 thread_safe_flag_spec_GCJ=
15402 hardcode_libdir_flag_spec_GCJ=
15403 hardcode_libdir_flag_spec_ld_GCJ=
15404 hardcode_libdir_separator_GCJ=
15405 hardcode_direct_GCJ=no
15406 hardcode_minus_L_GCJ=no
15407 hardcode_shlibpath_var_GCJ=unsupported
15408 link_all_deplibs_GCJ=unknown
15409 hardcode_automatic_GCJ=no
15410 module_cmds_GCJ=
15411 module_expsym_cmds_GCJ=
15412 always_export_symbols_GCJ=no
15413 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414 # include_expsyms should be a list of space-separated symbols to be *always*
15415 # included in the symbol list
15416 include_expsyms_GCJ=
15417 # exclude_expsyms can be an extended regexp of symbols to exclude
15418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15420 # as well as any symbol that contains `d'.
15421 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15423 # platforms (ab)use it in PIC code, but their linkers get confused if
15424 # the symbol is explicitly referenced. Since portable code cannot
15425 # rely on this symbol name, it's probably fine to never include it in
15426 # preloaded symbol tables.
15427 extract_expsyms_cmds=
15428
15429 case $host_os in
15430 cygwin* | mingw* | pw32*)
15431 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15432 # When not using gcc, we currently assume that we are using
15433 # Microsoft Visual C++.
15434 if test "$GCC" != yes; then
15435 with_gnu_ld=no
15436 fi
15437 ;;
15438 openbsd*)
15439 with_gnu_ld=no
15440 ;;
15441 esac
15442
15443 ld_shlibs_GCJ=yes
15444 if test "$with_gnu_ld" = yes; then
15445 # If archive_cmds runs LD, not CC, wlarc should be empty
15446 wlarc='${wl}'
15447
15448 # See if GNU ld supports shared libraries.
15449 case $host_os in
15450 aix3* | aix4* | aix5*)
15451 # On AIX/PPC, the GNU linker is very broken
15452 if test "$host_cpu" != ia64; then
15453 ld_shlibs_GCJ=no
15454 cat <<EOF 1>&2
15455
15456*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15457*** to be unable to reliably create shared libraries on AIX.
15458*** Therefore, libtool is disabling shared libraries support. If you
15459*** really care for shared libraries, you may want to modify your PATH
15460*** so that a non-GNU linker is found, and then restart.
15461
15462EOF
15463 fi
15464 ;;
15465
15466 amigaos*)
15467 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)'
15468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15469 hardcode_minus_L_GCJ=yes
15470
15471 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15472 # that the semantics of dynamic libraries on AmigaOS, at least up
15473 # to version 4, is to share data among multiple programs linked
15474 # with the same dynamic library. Since this doesn't match the
15475 # behavior of shared libraries on other platforms, we can't use
15476 # them.
15477 ld_shlibs_GCJ=no
15478 ;;
15479
15480 beos*)
15481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15482 allow_undefined_flag_GCJ=unsupported
15483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15484 # support --undefined. This deserves some investigation. FIXME
15485 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15486 else
15487 ld_shlibs_GCJ=no
15488 fi
15489 ;;
15490
15491 cygwin* | mingw* | pw32*)
15492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15493 # as there is no search path for DLLs.
15494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15495 allow_undefined_flag_GCJ=unsupported
15496 always_export_symbols_GCJ=no
15497 enable_shared_with_static_runtimes_GCJ=yes
15498 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15499
15500 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15502 # If the export-symbols file already is a .def file (1st line
15503 # is EXPORTS), use it as is; otherwise, prepend...
15504 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15505 cp $export_symbols $output_objdir/$soname.def;
15506 else
15507 echo EXPORTS > $output_objdir/$soname.def;
15508 cat $export_symbols >> $output_objdir/$soname.def;
15509 fi~
15510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15511 else
15512 ld_shlibs=no
15513 fi
15514 ;;
15515
15516 netbsd*)
15517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15518 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15519 wlarc=
15520 else
15521 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15522 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15523 fi
15524 ;;
15525
15526 solaris* | sysv5*)
15527 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15528 ld_shlibs_GCJ=no
15529 cat <<EOF 1>&2
15530
15531*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15532*** create shared libraries on Solaris systems. Therefore, libtool
15533*** is disabling shared libraries support. We urge you to upgrade GNU
15534*** binutils to release 2.9.1 or newer. Another option is to modify
15535*** your PATH or compiler configuration so that the native linker is
15536*** used, and then restart.
15537
15538EOF
15539 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15540 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15541 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15542 else
15543 ld_shlibs_GCJ=no
15544 fi
15545 ;;
15546
15547 sunos4*)
15548 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15549 wlarc=
15550 hardcode_direct_GCJ=yes
15551 hardcode_shlibpath_var_GCJ=no
15552 ;;
15553
15554 *)
15555 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15558 else
15559 ld_shlibs_GCJ=no
15560 fi
15561 ;;
15562 esac
15563
15564 if test "$ld_shlibs_GCJ" = yes; then
15565 runpath_var=LD_RUN_PATH
15566 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15567 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15568 # ancient GNU ld didn't support --whole-archive et. al.
15569 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15570 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15571 else
15572 whole_archive_flag_spec_GCJ=
15573 fi
15574 fi
15575 else
15576 # PORTME fill in a description of your system's linker (not GNU ld)
15577 case $host_os in
15578 aix3*)
15579 allow_undefined_flag_GCJ=unsupported
15580 always_export_symbols_GCJ=yes
15581 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'
15582 # Note: this linker hardcodes the directories in LIBPATH if there
15583 # are no directories specified by -L.
15584 hardcode_minus_L_GCJ=yes
15585 if test "$GCC" = yes && test -z "$link_static_flag"; then
15586 # Neither direct hardcoding nor static linking is supported with a
15587 # broken collect2.
15588 hardcode_direct_GCJ=unsupported
15589 fi
15590 ;;
15591
15592 aix4* | aix5*)
15593 if test "$host_cpu" = ia64; then
15594 # On IA64, the linker does run time linking by default, so we don't
15595 # have to do anything special.
15596 aix_use_runtimelinking=no
15597 exp_sym_flag='-Bexport'
15598 no_entry_flag=""
15599 else
15600 # If we're using GNU nm, then we don't want the "-C" option.
15601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15603 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'
15604 else
15605 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'
15606 fi
15607 aix_use_runtimelinking=no
15608
15609 # Test if we are trying to use run time linking or normal
15610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15611 # need to do runtime linking.
15612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15613 for ld_flag in $LDFLAGS; do
15614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15615 aix_use_runtimelinking=yes
15616 break
15617 fi
15618 done
15619 esac
15620
15621 exp_sym_flag='-bexport'
15622 no_entry_flag='-bnoentry'
15623 fi
15624
15625 # When large executables or shared objects are built, AIX ld can
15626 # have problems creating the table of contents. If linking a library
15627 # or program results in "error TOC overflow" add -mminimal-toc to
15628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15630
15631 archive_cmds_GCJ=''
15632 hardcode_direct_GCJ=yes
15633 hardcode_libdir_separator_GCJ=':'
15634 link_all_deplibs_GCJ=yes
15635
15636 if test "$GCC" = yes; then
15637 case $host_os in aix4.012|aix4.012.*)
15638 # We only want to do this on AIX 4.2 and lower, the check
15639 # below for broken collect2 doesn't work under 4.3+
15640 collect2name=`${CC} -print-prog-name=collect2`
15641 if test -f "$collect2name" && \
15642 strings "$collect2name" | grep resolve_lib_name >/dev/null
15643 then
15644 # We have reworked collect2
15645 hardcode_direct_GCJ=yes
15646 else
15647 # We have old collect2
15648 hardcode_direct_GCJ=unsupported
15649 # It fails to find uninstalled libraries when the uninstalled
15650 # path is not listed in the libpath. Setting hardcode_minus_L
15651 # to unsupported forces relinking
15652 hardcode_minus_L_GCJ=yes
15653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15654 hardcode_libdir_separator_GCJ=
15655 fi
15656 esac
15657 shared_flag='-shared'
15658 else
15659 # not using gcc
15660 if test "$host_cpu" = ia64; then
15661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15662 # chokes on -Wl,-G. The following line is correct:
15663 shared_flag='-G'
15664 else
15665 if test "$aix_use_runtimelinking" = yes; then
15666 shared_flag='${wl}-G'
15667 else
15668 shared_flag='${wl}-bM:SRE'
15669 fi
15670 fi
15671 fi
15672
15673 # It seems that -bexpall does not export symbols beginning with
15674 # underscore (_), so it is better to generate a list of symbols to export.
15675 always_export_symbols_GCJ=yes
15676 if test "$aix_use_runtimelinking" = yes; then
15677 # Warning - without using the other runtime loading flags (-brtl),
15678 # -berok will link without error, but may produce a broken library.
15679 allow_undefined_flag_GCJ='-berok'
15680 # Determine the default libpath from the value encoded in an empty executable.
15681 cat >conftest.$ac_ext <<_ACEOF
15682#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015688
John Criswell47fdd832003-07-14 16:52:07 +000015689int
15690main ()
15691{
15692
15693 ;
15694 return 0;
15695}
15696_ACEOF
15697rm -f conftest.$ac_objext conftest$ac_exeext
15698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -s conftest$ac_exeext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709
15710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15711}'`
15712# Check for a 64-bit object if we didn't find anything.
15713if 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; }
15714}'`; fi
15715else
15716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015717sed 's/^/| /' conftest.$ac_ext >&5
15718
John Criswell47fdd832003-07-14 16:52:07 +000015719fi
15720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15722
15723 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15724 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"
15725 else
15726 if test "$host_cpu" = ia64; then
15727 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15728 allow_undefined_flag_GCJ="-z nodefs"
15729 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"
15730 else
15731 # Determine the default libpath from the value encoded in an empty executable.
15732 cat >conftest.$ac_ext <<_ACEOF
15733#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015739
John Criswell47fdd832003-07-14 16:52:07 +000015740int
15741main ()
15742{
15743
15744 ;
15745 return 0;
15746}
15747_ACEOF
15748rm -f conftest.$ac_objext conftest$ac_exeext
15749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -s conftest$ac_exeext'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; }; then
15760
15761aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15762}'`
15763# Check for a 64-bit object if we didn't find anything.
15764if 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; }
15765}'`; fi
15766else
15767 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015768sed 's/^/| /' conftest.$ac_ext >&5
15769
John Criswell47fdd832003-07-14 16:52:07 +000015770fi
15771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15773
15774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15775 # Warning - without using the other run time loading flags,
15776 # -berok will link without error, but may produce a broken library.
15777 no_undefined_flag_GCJ=' ${wl}-bernotok'
15778 allow_undefined_flag_GCJ=' ${wl}-berok'
15779 # -bexpall does not export symbols beginning with underscore (_)
15780 always_export_symbols_GCJ=yes
15781 # Exported symbols can be pulled into shared objects from archives
15782 whole_archive_flag_spec_GCJ=' '
15783 archive_cmds_need_lc_GCJ=yes
15784 # This is similar to how AIX traditionally builds it's shared libraries.
15785 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'
15786 fi
15787 fi
15788 ;;
15789
15790 amigaos*)
15791 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)'
15792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15793 hardcode_minus_L_GCJ=yes
15794 # see comment about different semantics on the GNU ld section
15795 ld_shlibs_GCJ=no
15796 ;;
15797
15798 bsdi4*)
15799 export_dynamic_flag_spec_GCJ=-rdynamic
15800 ;;
15801
15802 cygwin* | mingw* | pw32*)
15803 # When not using gcc, we currently assume that we are using
15804 # Microsoft Visual C++.
15805 # hardcode_libdir_flag_spec is actually meaningless, as there is
15806 # no search path for DLLs.
15807 hardcode_libdir_flag_spec_GCJ=' '
15808 allow_undefined_flag_GCJ=unsupported
15809 # Tell ltmain to make .lib files, not .a files.
15810 libext=lib
15811 # Tell ltmain to make .dll files, not .so files.
15812 shrext=".dll"
15813 # FIXME: Setting linknames here is a bad hack.
15814 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15815 # The linker will automatically build a .lib file if we build a DLL.
15816 old_archive_From_new_cmds_GCJ='true'
15817 # FIXME: Should let the user specify the lib program.
15818 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15819 fix_srcfile_path='`cygpath -w "$srcfile"`'
15820 enable_shared_with_static_runtimes_GCJ=yes
15821 ;;
15822
15823 darwin* | rhapsody*)
15824 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15825 archive_cmds_need_lc_GCJ=no
15826 case "$host_os" in
15827 rhapsody* | darwin1.[012])
15828 allow_undefined_flag_GCJ='-undefined suppress'
15829 ;;
15830 *) # Darwin 1.3 on
15831 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15832 ;;
15833 esac
15834 # FIXME: Relying on posixy $() will cause problems for
15835 # cross-compilation, but unfortunately the echo tests do not
15836 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15837 # `"' quotes if we put them in here... so don't!
15838 lt_int_apple_cc_single_mod=no
15839 output_verbose_link_cmd='echo'
15840 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15841 lt_int_apple_cc_single_mod=yes
15842 fi
15843 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15844 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15845 else
15846 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'
15847 fi
15848 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15850 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15851 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}'
15852 else
15853 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}'
15854 fi
15855 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}'
15856 hardcode_direct_GCJ=no
15857 hardcode_automatic_GCJ=yes
15858 hardcode_shlibpath_var_GCJ=unsupported
15859 whole_archive_flag_spec_GCJ='-all_load $convenience'
15860 link_all_deplibs_GCJ=yes
15861 fi
15862 ;;
15863
15864 dgux*)
15865 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15867 hardcode_shlibpath_var_GCJ=no
15868 ;;
15869
15870 freebsd1*)
15871 ld_shlibs_GCJ=no
15872 ;;
15873
15874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15875 # support. Future versions do this automatically, but an explicit c++rt0.o
15876 # does not break anything, and helps significantly (at the cost of a little
15877 # extra space).
15878 freebsd2.2*)
15879 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15880 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15881 hardcode_direct_GCJ=yes
15882 hardcode_shlibpath_var_GCJ=no
15883 ;;
15884
15885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15886 freebsd2*)
15887 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_direct_GCJ=yes
15889 hardcode_minus_L_GCJ=yes
15890 hardcode_shlibpath_var_GCJ=no
15891 ;;
15892
15893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15894 freebsd*)
15895 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15896 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15897 hardcode_direct_GCJ=yes
15898 hardcode_shlibpath_var_GCJ=no
15899 ;;
15900
15901 hpux9*)
15902 if test "$GCC" = yes; then
15903 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'
15904 else
15905 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'
15906 fi
15907 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15908 hardcode_libdir_separator_GCJ=:
15909 hardcode_direct_GCJ=yes
15910
15911 # hardcode_minus_L: Not really in the search PATH,
15912 # but as the default location of the library.
15913 hardcode_minus_L_GCJ=yes
15914 export_dynamic_flag_spec_GCJ='${wl}-E'
15915 ;;
15916
15917 hpux10* | hpux11*)
15918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15919 case "$host_cpu" in
15920 hppa*64*|ia64*)
15921 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15922 ;;
15923 *)
15924 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15925 ;;
15926 esac
15927 else
15928 case "$host_cpu" in
15929 hppa*64*|ia64*)
15930 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15931 ;;
15932 *)
15933 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15934 ;;
15935 esac
15936 fi
15937 if test "$with_gnu_ld" = no; then
15938 case "$host_cpu" in
15939 hppa*64*)
15940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15941 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15942 hardcode_libdir_separator_GCJ=:
15943 hardcode_direct_GCJ=no
15944 hardcode_shlibpath_var_GCJ=no
15945 ;;
15946 ia64*)
15947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15948 hardcode_direct_GCJ=no
15949 hardcode_shlibpath_var_GCJ=no
15950
15951 # hardcode_minus_L: Not really in the search PATH,
15952 # but as the default location of the library.
15953 hardcode_minus_L_GCJ=yes
15954 ;;
15955 *)
15956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15957 hardcode_libdir_separator_GCJ=:
15958 hardcode_direct_GCJ=yes
15959 export_dynamic_flag_spec_GCJ='${wl}-E'
15960
15961 # hardcode_minus_L: Not really in the search PATH,
15962 # but as the default location of the library.
15963 hardcode_minus_L_GCJ=yes
15964 ;;
15965 esac
15966 fi
15967 ;;
15968
15969 irix5* | irix6* | nonstopux*)
15970 if test "$GCC" = yes; then
15971 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'
15972 else
15973 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'
15974 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15975 fi
15976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15977 hardcode_libdir_separator_GCJ=:
15978 link_all_deplibs_GCJ=yes
15979 ;;
15980
15981 netbsd*)
15982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15983 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15984 else
15985 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15986 fi
15987 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15988 hardcode_direct_GCJ=yes
15989 hardcode_shlibpath_var_GCJ=no
15990 ;;
15991
15992 newsos6)
15993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15994 hardcode_direct_GCJ=yes
15995 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15996 hardcode_libdir_separator_GCJ=:
15997 hardcode_shlibpath_var_GCJ=no
15998 ;;
15999
16000 openbsd*)
16001 hardcode_direct_GCJ=yes
16002 hardcode_shlibpath_var_GCJ=no
16003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16004 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16006 export_dynamic_flag_spec_GCJ='${wl}-E'
16007 else
16008 case $host_os in
16009 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16010 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16011 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16012 ;;
16013 *)
16014 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16016 ;;
16017 esac
16018 fi
16019 ;;
16020
16021 os2*)
16022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023 hardcode_minus_L_GCJ=yes
16024 allow_undefined_flag_GCJ=unsupported
16025 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'
16026 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16027 ;;
16028
16029 osf3*)
16030 if test "$GCC" = yes; then
16031 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16032 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'
16033 else
16034 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16035 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'
16036 fi
16037 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16038 hardcode_libdir_separator_GCJ=:
16039 ;;
16040
16041 osf4* | osf5*) # as osf3* with the addition of -msym flag
16042 if test "$GCC" = yes; then
16043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16044 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'
16045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16046 else
16047 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16048 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'
16049 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~
16050 $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'
16051
16052 # Both c and cxx compiler support -rpath directly
16053 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16054 fi
16055 hardcode_libdir_separator_GCJ=:
16056 ;;
16057
16058 sco3.2v5*)
16059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_shlibpath_var_GCJ=no
16061 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16062 runpath_var=LD_RUN_PATH
16063 hardcode_runpath_var=yes
16064 ;;
16065
16066 solaris*)
16067 no_undefined_flag_GCJ=' -z text'
16068 if test "$GCC" = yes; then
16069 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16070 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16071 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16072 else
16073 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16074 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16075 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16076 fi
16077 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16078 hardcode_shlibpath_var_GCJ=no
16079 case $host_os in
16080 solaris2.[0-5] | solaris2.[0-5].*) ;;
16081 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16082 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16083 esac
16084 link_all_deplibs_GCJ=yes
16085 ;;
16086
16087 sunos4*)
16088 if test "x$host_vendor" = xsequent; then
16089 # Use $CC to link under sequent, because it throws in some extra .o
16090 # files that make .init and .fini sections work.
16091 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16092 else
16093 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16094 fi
16095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16096 hardcode_direct_GCJ=yes
16097 hardcode_minus_L_GCJ=yes
16098 hardcode_shlibpath_var_GCJ=no
16099 ;;
16100
16101 sysv4)
16102 case $host_vendor in
16103 sni)
16104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 hardcode_direct_GCJ=yes # is this really true???
16106 ;;
16107 siemens)
16108 ## LD is ld it makes a PLAMLIB
16109 ## CC just makes a GrossModule.
16110 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16111 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16112 hardcode_direct_GCJ=no
16113 ;;
16114 motorola)
16115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16117 ;;
16118 esac
16119 runpath_var='LD_RUN_PATH'
16120 hardcode_shlibpath_var_GCJ=no
16121 ;;
16122
16123 sysv4.3*)
16124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125 hardcode_shlibpath_var_GCJ=no
16126 export_dynamic_flag_spec_GCJ='-Bexport'
16127 ;;
16128
16129 sysv4*MP*)
16130 if test -d /usr/nec; then
16131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16132 hardcode_shlibpath_var_GCJ=no
16133 runpath_var=LD_RUN_PATH
16134 hardcode_runpath_var=yes
16135 ld_shlibs_GCJ=yes
16136 fi
16137 ;;
16138
16139 sysv4.2uw2*)
16140 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16141 hardcode_direct_GCJ=yes
16142 hardcode_minus_L_GCJ=no
16143 hardcode_shlibpath_var_GCJ=no
16144 hardcode_runpath_var=yes
16145 runpath_var=LD_RUN_PATH
16146 ;;
16147
16148 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16149 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16150 if test "$GCC" = yes; then
16151 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16152 else
16153 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16154 fi
16155 runpath_var='LD_RUN_PATH'
16156 hardcode_shlibpath_var_GCJ=no
16157 ;;
16158
16159 sysv5*)
16160 no_undefined_flag_GCJ=' -z text'
16161 # $CC -shared without GNU ld will not create a library from C++
16162 # object files and a static libstdc++, better avoid it by now
16163 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16164 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16165 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16166 hardcode_libdir_flag_spec_GCJ=
16167 hardcode_shlibpath_var_GCJ=no
16168 runpath_var='LD_RUN_PATH'
16169 ;;
16170
16171 uts4*)
16172 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16174 hardcode_shlibpath_var_GCJ=no
16175 ;;
16176
16177 *)
16178 ld_shlibs_GCJ=no
16179 ;;
16180 esac
16181 fi
16182
16183echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16184echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16185test "$ld_shlibs_GCJ" = no && can_build_shared=no
16186
16187variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16188if test "$GCC" = yes; then
16189 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16190fi
16191
16192#
16193# Do we need to explicitly link libc?
16194#
16195case "x$archive_cmds_need_lc_GCJ" in
16196x|xyes)
16197 # Assume -lc should be added
16198 archive_cmds_need_lc_GCJ=yes
16199
16200 if test "$enable_shared" = yes && test "$GCC" = yes; then
16201 case $archive_cmds_GCJ in
16202 *'~'*)
16203 # FIXME: we may have to deal with multi-command sequences.
16204 ;;
16205 '$CC '*)
16206 # Test whether the compiler implicitly links with -lc since on some
16207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208 # to ld, don't add -lc before -lgcc.
16209 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16211 $rm conftest*
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } 2>conftest.err; then
16219 soname=conftest
16220 lib=conftest
16221 libobjs=conftest.$ac_objext
16222 deplibs=
16223 wl=$lt_prog_compiler_wl_GCJ
16224 compiler_flags=-v
16225 linker_flags=-v
16226 verstring=
16227 output_objdir=.
16228 libname=conftest
16229 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16230 allow_undefined_flag_GCJ=
16231 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16232 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }
16236 then
16237 archive_cmds_need_lc_GCJ=no
16238 else
16239 archive_cmds_need_lc_GCJ=yes
16240 fi
16241 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16242 else
16243 cat conftest.err 1>&5
16244 fi
16245 $rm conftest*
16246 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16247echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16248 ;;
16249 esac
16250 fi
16251 ;;
16252esac
16253
16254echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16256hardcode_action_GCJ=
16257if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16258 test -n "$runpath_var GCJ" || \
16259 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16260
16261 # We can hardcode non-existant directories.
16262 if test "$hardcode_direct_GCJ" != no &&
16263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16264 # have to relink, otherwise we might link with an installed library
16265 # when we should be linking with a yet-to-be-installed one
16266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16267 test "$hardcode_minus_L_GCJ" != no; then
16268 # Linking always hardcodes the temporary library directory.
16269 hardcode_action_GCJ=relink
16270 else
16271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16272 hardcode_action_GCJ=immediate
16273 fi
16274else
16275 # We cannot hardcode anything, or else we can only hardcode existing
16276 # directories.
16277 hardcode_action_GCJ=unsupported
16278fi
16279echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16280echo "${ECHO_T}$hardcode_action_GCJ" >&6
16281
16282if test "$hardcode_action_GCJ" = relink; then
16283 # Fast installation is not supported
16284 enable_fast_install=no
16285elif test "$shlibpath_overrides_runpath" = yes ||
16286 test "$enable_shared" = no; then
16287 # Fast installation is not necessary
16288 enable_fast_install=needless
16289fi
16290
16291striplib=
16292old_striplib=
16293echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16294echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16295if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16298 echo "$as_me:$LINENO: result: yes" >&5
16299echo "${ECHO_T}yes" >&6
16300else
16301# FIXME - insert some real tests, host_os isn't really good enough
16302 case $host_os in
16303 darwin*)
16304 if test -n "$STRIP" ; then
16305 striplib="$STRIP -x"
16306 echo "$as_me:$LINENO: result: yes" >&5
16307echo "${ECHO_T}yes" >&6
16308 else
16309 echo "$as_me:$LINENO: result: no" >&5
16310echo "${ECHO_T}no" >&6
16311fi
16312 ;;
16313 *)
16314 echo "$as_me:$LINENO: result: no" >&5
16315echo "${ECHO_T}no" >&6
16316 ;;
16317 esac
16318fi
16319
16320echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16321echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16322library_names_spec=
16323libname_spec='lib$name'
16324soname_spec=
16325shrext=".so"
16326postinstall_cmds=
16327postuninstall_cmds=
16328finish_cmds=
16329finish_eval=
16330shlibpath_var=
16331shlibpath_overrides_runpath=unknown
16332version_type=none
16333dynamic_linker="$host_os ld.so"
16334sys_lib_dlsearch_path_spec="/lib /usr/lib"
16335if test "$GCC" = yes; then
16336 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16337 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16338 # if the path contains ";" then we assume it to be the separator
16339 # otherwise default to the standard path separator (i.e. ":") - it is
16340 # assumed that no part of a normal pathname contains ";" but that should
16341 # okay in the real world where ";" in dirpaths is itself problematic.
16342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16343 else
16344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16345 fi
16346else
16347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16348fi
16349need_lib_prefix=unknown
16350hardcode_into_libs=no
16351
16352# when you set need_version to no, make sure it does not cause -set_version
16353# flags to be left without arguments
16354need_version=unknown
16355
16356case $host_os in
16357aix3*)
16358 version_type=linux
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16360 shlibpath_var=LIBPATH
16361
16362 # AIX 3 has no versioning support, so we append a major version to the name.
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 ;;
16365
16366aix4* | aix5*)
16367 version_type=linux
16368 need_lib_prefix=no
16369 need_version=no
16370 hardcode_into_libs=yes
16371 if test "$host_cpu" = ia64; then
16372 # AIX 5 supports IA64
16373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 else
16376 # With GCC up to 2.95.x, collect2 would create an import file
16377 # for dependence libraries. The import file would start with
16378 # the line `#! .'. This would cause the generated library to
16379 # depend on `.', always an invalid library. This was fixed in
16380 # development snapshots of GCC prior to 3.0.
16381 case $host_os in
16382 aix4 | aix4.[01] | aix4.[01].*)
16383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16384 echo ' yes '
16385 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16386 :
16387 else
16388 can_build_shared=no
16389 fi
16390 ;;
16391 esac
16392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16393 # soname into executable. Probably we can add versioning support to
16394 # collect2, so additional links can be useful in future.
16395 if test "$aix_use_runtimelinking" = yes; then
16396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16397 # instead of lib<name>.a to let people know that these are not
16398 # typical AIX shared libraries.
16399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16400 else
16401 # We preserve .a as extension for shared libraries through AIX4.2
16402 # and later when we are not doing run time linking.
16403 library_names_spec='${libname}${release}.a $libname.a'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 fi
16406 shlibpath_var=LIBPATH
16407 fi
16408 ;;
16409
16410amigaos*)
16411 library_names_spec='$libname.ixlibrary $libname.a'
16412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16413 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'
16414 ;;
16415
16416beos*)
16417 library_names_spec='${libname}${shared_ext}'
16418 dynamic_linker="$host_os ld.so"
16419 shlibpath_var=LIBRARY_PATH
16420 ;;
16421
16422bsdi4*)
16423 version_type=linux
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16431 # the default ld.so.conf also contains /usr/contrib/lib and
16432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16433 # libtool to hard-code these into programs
16434 ;;
16435
16436cygwin* | mingw* | pw32*)
16437 version_type=windows
16438 shrext=".dll"
16439 need_version=no
16440 need_lib_prefix=no
16441
16442 case $GCC,$host_os in
16443 yes,cygwin* | yes,mingw* | yes,pw32*)
16444 library_names_spec='$libname.dll.a'
16445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16446 postinstall_cmds='base_file=`basename \${file}`~
16447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16448 dldir=$destdir/`dirname \$dlpath`~
16449 test -d \$dldir || mkdir -p \$dldir~
16450 $install_prog $dir/$dlname \$dldir/$dlname'
16451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16452 dlpath=$dir/\$dldll~
16453 $rm \$dlpath'
16454 shlibpath_overrides_runpath=yes
16455
16456 case $host_os in
16457 cygwin*)
16458 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16459 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16460 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16461 ;;
16462 mingw*)
16463 # MinGW DLLs use traditional 'lib' prefix
16464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16465 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16466 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16467 # It is most probably a Windows format PATH printed by
16468 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16469 # path with ; separators, and with drive letters. We can handle the
16470 # drive letters (cygwin fileutils understands them), so leave them,
16471 # especially as we might pass files found there to a mingw objdump,
16472 # which wouldn't understand a cygwinified path. Ahh.
16473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16474 else
16475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16476 fi
16477 ;;
16478 pw32*)
16479 # pw32 DLLs use 'pw' prefix rather than 'lib'
16480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16481 ;;
16482 esac
16483 ;;
16484
16485 *)
16486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16487 ;;
16488 esac
16489 dynamic_linker='Win32 ld.exe'
16490 # FIXME: first we should search . and the directory the executable is in
16491 shlibpath_var=PATH
16492 ;;
16493
16494darwin* | rhapsody*)
16495 dynamic_linker="$host_os dyld"
16496 version_type=darwin
16497 need_lib_prefix=no
16498 need_version=no
16499 # FIXME: Relying on posixy $() will cause problems for
16500 # cross-compilation, but unfortunately the echo tests do not
16501 # yet detect zsh echo's removal of \ escapes.
16502 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16503 soname_spec='${libname}${release}${major}$shared_ext'
16504 shlibpath_overrides_runpath=yes
16505 shlibpath_var=DYLD_LIBRARY_PATH
16506 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16507 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16508 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16509 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"`
16510 fi
16511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16512 ;;
16513
16514dgux*)
16515 version_type=linux
16516 need_lib_prefix=no
16517 need_version=no
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 ;;
16522
16523freebsd1*)
16524 dynamic_linker=no
16525 ;;
16526
16527freebsd*)
16528 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16529 version_type=freebsd-$objformat
16530 case $version_type in
16531 freebsd-elf*)
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16533 need_version=no
16534 need_lib_prefix=no
16535 ;;
16536 freebsd-*)
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16538 need_version=yes
16539 ;;
16540 esac
16541 shlibpath_var=LD_LIBRARY_PATH
16542 case $host_os in
16543 freebsd2*)
16544 shlibpath_overrides_runpath=yes
16545 ;;
16546 freebsd3.01* | freebsdelf3.01*)
16547 shlibpath_overrides_runpath=yes
16548 hardcode_into_libs=yes
16549 ;;
16550 *) # from 3.2 on
16551 shlibpath_overrides_runpath=no
16552 hardcode_into_libs=yes
16553 ;;
16554 esac
16555 ;;
16556
16557gnu*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 hardcode_into_libs=yes
16565 ;;
16566
16567hpux9* | hpux10* | hpux11*)
16568 # Give a soname corresponding to the major version so that dld.sl refuses to
16569 # link against other versions.
16570 version_type=sunos
16571 need_lib_prefix=no
16572 need_version=no
16573 case "$host_cpu" in
16574 ia64*)
16575 shrext='.so'
16576 hardcode_into_libs=yes
16577 dynamic_linker="$host_os dld.so"
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 if test "X$HPUX_IA64_MODE" = X32; then
16583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16584 else
16585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16586 fi
16587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16588 ;;
16589 hppa*64*)
16590 shrext='.sl'
16591 hardcode_into_libs=yes
16592 dynamic_linker="$host_os dld.sl"
16593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16599 ;;
16600 *)
16601 shrext='.sl'
16602 dynamic_linker="$host_os dld.sl"
16603 shlibpath_var=SHLIB_PATH
16604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 ;;
16608 esac
16609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16610 postinstall_cmds='chmod 555 $lib'
16611 ;;
16612
16613irix5* | irix6* | nonstopux*)
16614 case $host_os in
16615 nonstopux*) version_type=nonstopux ;;
16616 *)
16617 if test "$lt_cv_prog_gnu_ld" = yes; then
16618 version_type=linux
16619 else
16620 version_type=irix
16621 fi ;;
16622 esac
16623 need_lib_prefix=no
16624 need_version=no
16625 soname_spec='${libname}${release}${shared_ext}$major'
16626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16627 case $host_os in
16628 irix5* | nonstopux*)
16629 libsuff= shlibsuff=
16630 ;;
16631 *)
16632 case $LD in # libtool.m4 will add one of these switches to LD
16633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16634 libsuff= shlibsuff= libmagic=32-bit;;
16635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16636 libsuff=32 shlibsuff=N32 libmagic=N32;;
16637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16639 *) libsuff= shlibsuff= libmagic=never-match;;
16640 esac
16641 ;;
16642 esac
16643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16644 shlibpath_overrides_runpath=no
16645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16647 hardcode_into_libs=yes
16648 ;;
16649
16650# No shared lib support for Linux oldld, aout, or coff.
16651linux*oldld* | linux*aout* | linux*coff*)
16652 dynamic_linker=no
16653 ;;
16654
16655# This must be Linux ELF.
16656linux*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=no
16665 # This implies no fast_install, which is unacceptable.
16666 # Some rework will be needed to allow for fast_install
16667 # before this can be enabled.
16668 hardcode_into_libs=yes
16669
16670 # We used to test for /lib/ld.so.1 and disable shared libraries on
16671 # powerpc, because MkLinux only supported shared libraries with the
16672 # GNU dynamic linker. Since this was broken with cross compilers,
16673 # most powerpc-linux boxes support dynamic linking these days and
16674 # people can always --disable-shared, the test was removed, and we
16675 # assume the GNU/Linux dynamic linker is in use.
16676 dynamic_linker='GNU/Linux ld.so'
16677 ;;
16678
16679netbsd*)
16680 version_type=sunos
16681 need_lib_prefix=no
16682 need_version=no
16683 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16686 dynamic_linker='NetBSD (a.out) ld.so'
16687 else
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
16690 dynamic_linker='NetBSD ld.elf_so'
16691 fi
16692 shlibpath_var=LD_LIBRARY_PATH
16693 shlibpath_overrides_runpath=yes
16694 hardcode_into_libs=yes
16695 ;;
16696
16697newsos6)
16698 version_type=linux
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=yes
16702 ;;
16703
16704nto-qnx)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 shlibpath_var=LD_LIBRARY_PATH
16711 shlibpath_overrides_runpath=yes
16712 ;;
16713
16714openbsd*)
16715 version_type=sunos
16716 need_lib_prefix=no
16717 need_version=no
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16722 case $host_os in
16723 openbsd2.[89] | openbsd2.[89].*)
16724 shlibpath_overrides_runpath=no
16725 ;;
16726 *)
16727 shlibpath_overrides_runpath=yes
16728 ;;
16729 esac
16730 else
16731 shlibpath_overrides_runpath=yes
16732 fi
16733 ;;
16734
16735os2*)
16736 libname_spec='$name'
16737 shrext=".dll"
16738 need_lib_prefix=no
16739 library_names_spec='$libname${shared_ext} $libname.a'
16740 dynamic_linker='OS/2 ld.exe'
16741 shlibpath_var=LIBPATH
16742 ;;
16743
16744osf3* | osf4* | osf5*)
16745 version_type=osf
16746 need_lib_prefix=no
16747 need_version=no
16748 soname_spec='${libname}${release}${shared_ext}$major'
16749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16750 shlibpath_var=LD_LIBRARY_PATH
16751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16753 ;;
16754
16755sco3.2v5*)
16756 version_type=osf
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 shlibpath_var=LD_LIBRARY_PATH
16760 ;;
16761
16762solaris*)
16763 version_type=linux
16764 need_lib_prefix=no
16765 need_version=no
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16767 soname_spec='${libname}${release}${shared_ext}$major'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 hardcode_into_libs=yes
16771 # ldd complains unless libraries are executable
16772 postinstall_cmds='chmod +x $lib'
16773 ;;
16774
16775sunos4*)
16776 version_type=sunos
16777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16779 shlibpath_var=LD_LIBRARY_PATH
16780 shlibpath_overrides_runpath=yes
16781 if test "$with_gnu_ld" = yes; then
16782 need_lib_prefix=no
16783 fi
16784 need_version=yes
16785 ;;
16786
16787sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16788 version_type=linux
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 case $host_vendor in
16793 sni)
16794 shlibpath_overrides_runpath=no
16795 need_lib_prefix=no
16796 export_dynamic_flag_spec='${wl}-Blargedynsym'
16797 runpath_var=LD_RUN_PATH
16798 ;;
16799 siemens)
16800 need_lib_prefix=no
16801 ;;
16802 motorola)
16803 need_lib_prefix=no
16804 need_version=no
16805 shlibpath_overrides_runpath=no
16806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16807 ;;
16808 esac
16809 ;;
16810
16811sysv4*MP*)
16812 if test -d /usr/nec ;then
16813 version_type=linux
16814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16815 soname_spec='$libname${shared_ext}.$major'
16816 shlibpath_var=LD_LIBRARY_PATH
16817 fi
16818 ;;
16819
16820uts4*)
16821 version_type=linux
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16823 soname_spec='${libname}${release}${shared_ext}$major'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 ;;
16826
16827*)
16828 dynamic_linker=no
16829 ;;
16830esac
16831echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16832echo "${ECHO_T}$dynamic_linker" >&6
16833test "$dynamic_linker" = no && can_build_shared=no
16834
16835if test "x$enable_dlopen" != xyes; then
16836 enable_dlopen=unknown
16837 enable_dlopen_self=unknown
16838 enable_dlopen_self_static=unknown
16839else
16840 lt_cv_dlopen=no
16841 lt_cv_dlopen_libs=
16842
16843 case $host_os in
16844 beos*)
16845 lt_cv_dlopen="load_add_on"
16846 lt_cv_dlopen_libs=
16847 lt_cv_dlopen_self=yes
16848 ;;
16849
16850 mingw* | pw32*)
16851 lt_cv_dlopen="LoadLibrary"
16852 lt_cv_dlopen_libs=
16853 ;;
16854
16855 cygwin*)
16856 lt_cv_dlopen="dlopen"
16857 lt_cv_dlopen_libs=
16858 ;;
16859
16860 darwin*)
16861 # if libdl is installed we need to link against it
16862 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16863echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16864if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867 ac_check_lib_save_LIBS=$LIBS
16868LIBS="-ldl $LIBS"
16869cat >conftest.$ac_ext <<_ACEOF
16870#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016876
16877/* Override any gcc2 internal prototype to avoid an error. */
16878#ifdef __cplusplus
16879extern "C"
16880#endif
16881/* We use char because int might match the return type of a gcc2
16882 builtin and then its argument prototype would still apply. */
16883char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016884int
16885main ()
16886{
16887dlopen ();
16888 ;
16889 return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
16893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894 (eval $ac_link) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -s conftest$ac_exeext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16904 ac_cv_lib_dl_dlopen=yes
16905else
16906 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016907sed 's/^/| /' conftest.$ac_ext >&5
16908
John Criswell47fdd832003-07-14 16:52:07 +000016909ac_cv_lib_dl_dlopen=no
16910fi
16911rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16912LIBS=$ac_check_lib_save_LIBS
16913fi
16914echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16915echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16916if test $ac_cv_lib_dl_dlopen = yes; then
16917 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16918else
16919
16920 lt_cv_dlopen="dyld"
16921 lt_cv_dlopen_libs=
16922 lt_cv_dlopen_self=yes
16923
16924fi
16925
16926 ;;
16927
16928 *)
16929 echo "$as_me:$LINENO: checking for shl_load" >&5
16930echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16931if test "${ac_cv_func_shl_load+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933else
16934 cat >conftest.$ac_ext <<_ACEOF
16935#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016941/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016942 which can conflict with char shl_load (); below.
16943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944 <limits.h> exists even on freestanding compilers. */
16945#ifdef __STDC__
16946# include <limits.h>
16947#else
16948# include <assert.h>
16949#endif
John Criswell47fdd832003-07-14 16:52:07 +000016950/* Override any gcc2 internal prototype to avoid an error. */
16951#ifdef __cplusplus
16952extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016953{
John Criswell47fdd832003-07-14 16:52:07 +000016954#endif
16955/* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16957char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016958/* The GNU C library defines this for functions which it implements
16959 to always fail with ENOSYS. Some functions are actually named
16960 something starting with __ and the normal name is an alias. */
16961#if defined (__stub_shl_load) || defined (__stub___shl_load)
16962choke me
16963#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016964char (*f) () = shl_load;
16965#endif
16966#ifdef __cplusplus
16967}
John Criswell47fdd832003-07-14 16:52:07 +000016968#endif
16969
John Criswell0c38eaf2003-09-10 15:17:25 +000016970int
16971main ()
16972{
16973return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext conftest$ac_exeext
16979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_func_shl_load=yes
16991else
16992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016993sed 's/^/| /' conftest.$ac_ext >&5
16994
John Criswell47fdd832003-07-14 16:52:07 +000016995ac_cv_func_shl_load=no
16996fi
16997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998fi
16999echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17000echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17001if test $ac_cv_func_shl_load = yes; then
17002 lt_cv_dlopen="shl_load"
17003else
17004 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17005echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17006if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008else
17009 ac_check_lib_save_LIBS=$LIBS
17010LIBS="-ldld $LIBS"
17011cat >conftest.$ac_ext <<_ACEOF
17012#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017018
17019/* Override any gcc2 internal prototype to avoid an error. */
17020#ifdef __cplusplus
17021extern "C"
17022#endif
17023/* We use char because int might match the return type of a gcc2
17024 builtin and then its argument prototype would still apply. */
17025char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017026int
17027main ()
17028{
17029shl_load ();
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext conftest$ac_exeext
17035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17036 (eval $ac_link) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -s conftest$ac_exeext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17043 ac_status=$?
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_lib_dld_shl_load=yes
17047else
17048 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017049sed 's/^/| /' conftest.$ac_ext >&5
17050
John Criswell47fdd832003-07-14 16:52:07 +000017051ac_cv_lib_dld_shl_load=no
17052fi
17053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17054LIBS=$ac_check_lib_save_LIBS
17055fi
17056echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17057echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17058if test $ac_cv_lib_dld_shl_load = yes; then
17059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17060else
17061 echo "$as_me:$LINENO: checking for dlopen" >&5
17062echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17063if test "${ac_cv_func_dlopen+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 cat >conftest.$ac_ext <<_ACEOF
17067#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017073/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017074 which can conflict with char dlopen (); below.
17075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17076 <limits.h> exists even on freestanding compilers. */
17077#ifdef __STDC__
17078# include <limits.h>
17079#else
17080# include <assert.h>
17081#endif
John Criswell47fdd832003-07-14 16:52:07 +000017082/* Override any gcc2 internal prototype to avoid an error. */
17083#ifdef __cplusplus
17084extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017085{
John Criswell47fdd832003-07-14 16:52:07 +000017086#endif
17087/* We use char because int might match the return type of a gcc2
17088 builtin and then its argument prototype would still apply. */
17089char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017090/* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093#if defined (__stub_dlopen) || defined (__stub___dlopen)
17094choke me
17095#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017096char (*f) () = dlopen;
17097#endif
17098#ifdef __cplusplus
17099}
John Criswell47fdd832003-07-14 16:52:07 +000017100#endif
17101
John Criswell0c38eaf2003-09-10 15:17:25 +000017102int
17103main ()
17104{
17105return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017106 ;
17107 return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext conftest$ac_exeext
17111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -s conftest$ac_exeext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_cv_func_dlopen=yes
17123else
17124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017125sed 's/^/| /' conftest.$ac_ext >&5
17126
John Criswell47fdd832003-07-14 16:52:07 +000017127ac_cv_func_dlopen=no
17128fi
17129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17130fi
17131echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17132echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17133if test $ac_cv_func_dlopen = yes; then
17134 lt_cv_dlopen="dlopen"
17135else
17136 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17137echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17138if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140else
17141 ac_check_lib_save_LIBS=$LIBS
17142LIBS="-ldl $LIBS"
17143cat >conftest.$ac_ext <<_ACEOF
17144#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017150
17151/* Override any gcc2 internal prototype to avoid an error. */
17152#ifdef __cplusplus
17153extern "C"
17154#endif
17155/* We use char because int might match the return type of a gcc2
17156 builtin and then its argument prototype would still apply. */
17157char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017158int
17159main ()
17160{
17161dlopen ();
17162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
17167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17168 (eval $ac_link) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_lib_dl_dlopen=yes
17179else
17180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017181sed 's/^/| /' conftest.$ac_ext >&5
17182
John Criswell47fdd832003-07-14 16:52:07 +000017183ac_cv_lib_dl_dlopen=no
17184fi
17185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186LIBS=$ac_check_lib_save_LIBS
17187fi
17188echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17189echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17190if test $ac_cv_lib_dl_dlopen = yes; then
17191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17192else
17193 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17194echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17195if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197else
17198 ac_check_lib_save_LIBS=$LIBS
17199LIBS="-lsvld $LIBS"
17200cat >conftest.$ac_ext <<_ACEOF
17201#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017202/* confdefs.h. */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017207
17208/* Override any gcc2 internal prototype to avoid an error. */
17209#ifdef __cplusplus
17210extern "C"
17211#endif
17212/* We use char because int might match the return type of a gcc2
17213 builtin and then its argument prototype would still apply. */
17214char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017215int
17216main ()
17217{
17218dlopen ();
17219 ;
17220 return 0;
17221}
17222_ACEOF
17223rm -f conftest.$ac_objext conftest$ac_exeext
17224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225 (eval $ac_link) 2>&5
17226 ac_status=$?
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -s conftest$ac_exeext'
17230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231 (eval $ac_try) 2>&5
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); }; }; then
17235 ac_cv_lib_svld_dlopen=yes
17236else
17237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017238sed 's/^/| /' conftest.$ac_ext >&5
17239
John Criswell47fdd832003-07-14 16:52:07 +000017240ac_cv_lib_svld_dlopen=no
17241fi
17242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17243LIBS=$ac_check_lib_save_LIBS
17244fi
17245echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17246echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17247if test $ac_cv_lib_svld_dlopen = yes; then
17248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17249else
17250 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17251echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17252if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254else
17255 ac_check_lib_save_LIBS=$LIBS
17256LIBS="-ldld $LIBS"
17257cat >conftest.$ac_ext <<_ACEOF
17258#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017259/* confdefs.h. */
17260_ACEOF
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017264
17265/* Override any gcc2 internal prototype to avoid an error. */
17266#ifdef __cplusplus
17267extern "C"
17268#endif
17269/* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17271char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017272int
17273main ()
17274{
17275dld_link ();
17276 ;
17277 return 0;
17278}
17279_ACEOF
17280rm -f conftest.$ac_objext conftest$ac_exeext
17281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282 (eval $ac_link) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -s conftest$ac_exeext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 ac_cv_lib_dld_dld_link=yes
17293else
17294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017295sed 's/^/| /' conftest.$ac_ext >&5
17296
John Criswell47fdd832003-07-14 16:52:07 +000017297ac_cv_lib_dld_dld_link=no
17298fi
17299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17300LIBS=$ac_check_lib_save_LIBS
17301fi
17302echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17303echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17304if test $ac_cv_lib_dld_dld_link = yes; then
17305 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17306fi
17307
17308
17309fi
17310
17311
17312fi
17313
17314
17315fi
17316
17317
17318fi
17319
17320
17321fi
17322
17323 ;;
17324 esac
17325
17326 if test "x$lt_cv_dlopen" != xno; then
17327 enable_dlopen=yes
17328 else
17329 enable_dlopen=no
17330 fi
17331
17332 case $lt_cv_dlopen in
17333 dlopen)
17334 save_CPPFLAGS="$CPPFLAGS"
17335 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17336
17337 save_LDFLAGS="$LDFLAGS"
17338 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17339
17340 save_LIBS="$LIBS"
17341 LIBS="$lt_cv_dlopen_libs $LIBS"
17342
17343 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17344echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17345if test "${lt_cv_dlopen_self+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348 if test "$cross_compiling" = yes; then :
17349 lt_cv_dlopen_self=cross
17350else
17351 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17352 lt_status=$lt_dlunknown
17353 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +000017354#line 17354 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017355#include "confdefs.h"
17356
17357#if HAVE_DLFCN_H
17358#include <dlfcn.h>
17359#endif
17360
17361#include <stdio.h>
17362
17363#ifdef RTLD_GLOBAL
17364# define LT_DLGLOBAL RTLD_GLOBAL
17365#else
17366# ifdef DL_GLOBAL
17367# define LT_DLGLOBAL DL_GLOBAL
17368# else
17369# define LT_DLGLOBAL 0
17370# endif
17371#endif
17372
17373/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17374 find out it does not work in some platform. */
17375#ifndef LT_DLLAZY_OR_NOW
17376# ifdef RTLD_LAZY
17377# define LT_DLLAZY_OR_NOW RTLD_LAZY
17378# else
17379# ifdef DL_LAZY
17380# define LT_DLLAZY_OR_NOW DL_LAZY
17381# else
17382# ifdef RTLD_NOW
17383# define LT_DLLAZY_OR_NOW RTLD_NOW
17384# else
17385# ifdef DL_NOW
17386# define LT_DLLAZY_OR_NOW DL_NOW
17387# else
17388# define LT_DLLAZY_OR_NOW 0
17389# endif
17390# endif
17391# endif
17392# endif
17393#endif
17394
17395#ifdef __cplusplus
17396extern "C" void exit (int);
17397#endif
17398
17399void fnord() { int i=42;}
17400int main ()
17401{
17402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17403 int status = $lt_dlunknown;
17404
17405 if (self)
17406 {
17407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17408 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17409 /* dlclose (self); */
17410 }
17411
17412 exit (status);
17413}
17414EOF
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17420 (./conftest; exit; ) 2>/dev/null
17421 lt_status=$?
17422 case x$lt_status in
17423 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17424 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17425 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17426 esac
17427 else :
17428 # compilation failed
17429 lt_cv_dlopen_self=no
17430 fi
17431fi
17432rm -fr conftest*
17433
17434
17435fi
17436echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17437echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17438
17439 if test "x$lt_cv_dlopen_self" = xyes; then
17440 LDFLAGS="$LDFLAGS $link_static_flag"
17441 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17442echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17443if test "${lt_cv_dlopen_self_static+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445else
17446 if test "$cross_compiling" = yes; then :
17447 lt_cv_dlopen_self_static=cross
17448else
17449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17450 lt_status=$lt_dlunknown
17451 cat > conftest.$ac_ext <<EOF
John Criswell5ab73462003-10-09 15:44:28 +000017452#line 17452 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017453#include "confdefs.h"
17454
17455#if HAVE_DLFCN_H
17456#include <dlfcn.h>
17457#endif
17458
17459#include <stdio.h>
17460
17461#ifdef RTLD_GLOBAL
17462# define LT_DLGLOBAL RTLD_GLOBAL
17463#else
17464# ifdef DL_GLOBAL
17465# define LT_DLGLOBAL DL_GLOBAL
17466# else
17467# define LT_DLGLOBAL 0
17468# endif
17469#endif
17470
17471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17472 find out it does not work in some platform. */
17473#ifndef LT_DLLAZY_OR_NOW
17474# ifdef RTLD_LAZY
17475# define LT_DLLAZY_OR_NOW RTLD_LAZY
17476# else
17477# ifdef DL_LAZY
17478# define LT_DLLAZY_OR_NOW DL_LAZY
17479# else
17480# ifdef RTLD_NOW
17481# define LT_DLLAZY_OR_NOW RTLD_NOW
17482# else
17483# ifdef DL_NOW
17484# define LT_DLLAZY_OR_NOW DL_NOW
17485# else
17486# define LT_DLLAZY_OR_NOW 0
17487# endif
17488# endif
17489# endif
17490# endif
17491#endif
17492
17493#ifdef __cplusplus
17494extern "C" void exit (int);
17495#endif
17496
17497void fnord() { int i=42;}
17498int main ()
17499{
17500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17501 int status = $lt_dlunknown;
17502
17503 if (self)
17504 {
17505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17507 /* dlclose (self); */
17508 }
17509
17510 exit (status);
17511}
17512EOF
17513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17514 (eval $ac_link) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17518 (./conftest; exit; ) 2>/dev/null
17519 lt_status=$?
17520 case x$lt_status in
17521 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17522 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17523 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17524 esac
17525 else :
17526 # compilation failed
17527 lt_cv_dlopen_self_static=no
17528 fi
17529fi
17530rm -fr conftest*
17531
17532
17533fi
17534echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17535echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17536 fi
17537
17538 CPPFLAGS="$save_CPPFLAGS"
17539 LDFLAGS="$save_LDFLAGS"
17540 LIBS="$save_LIBS"
17541 ;;
17542 esac
17543
17544 case $lt_cv_dlopen_self in
17545 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17546 *) enable_dlopen_self=unknown ;;
17547 esac
17548
17549 case $lt_cv_dlopen_self_static in
17550 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17551 *) enable_dlopen_self_static=unknown ;;
17552 esac
17553fi
17554
17555
17556# The else clause should only fire when bootstrapping the
17557# libtool distribution, otherwise you forgot to ship ltmain.sh
17558# with your package, and you will get complaints that there are
17559# no rules to generate ltmain.sh.
17560if test -f "$ltmain"; then
17561 # See if we are running on zsh, and set the options which allow our commands through
17562 # without removal of \ escapes.
17563 if test -n "${ZSH_VERSION+set}" ; then
17564 setopt NO_GLOB_SUBST
17565 fi
17566 # Now quote all the things that may contain metacharacters while being
17567 # careful not to overquote the AC_SUBSTed values. We take copies of the
17568 # variables and quote the copies for generation of the libtool script.
17569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17570 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17571 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17572 deplibs_check_method reload_flag reload_cmds need_locks \
17573 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17574 lt_cv_sys_global_symbol_to_c_name_address \
17575 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17576 old_postinstall_cmds old_postuninstall_cmds \
17577 compiler_GCJ \
17578 CC_GCJ \
17579 LD_GCJ \
17580 lt_prog_compiler_wl_GCJ \
17581 lt_prog_compiler_pic_GCJ \
17582 lt_prog_compiler_static_GCJ \
17583 lt_prog_compiler_no_builtin_flag_GCJ \
17584 export_dynamic_flag_spec_GCJ \
17585 thread_safe_flag_spec_GCJ \
17586 whole_archive_flag_spec_GCJ \
17587 enable_shared_with_static_runtimes_GCJ \
17588 old_archive_cmds_GCJ \
17589 old_archive_from_new_cmds_GCJ \
17590 predep_objects_GCJ \
17591 postdep_objects_GCJ \
17592 predeps_GCJ \
17593 postdeps_GCJ \
17594 compiler_lib_search_path_GCJ \
17595 archive_cmds_GCJ \
17596 archive_expsym_cmds_GCJ \
17597 postinstall_cmds_GCJ \
17598 postuninstall_cmds_GCJ \
17599 old_archive_from_expsyms_cmds_GCJ \
17600 allow_undefined_flag_GCJ \
17601 no_undefined_flag_GCJ \
17602 export_symbols_cmds_GCJ \
17603 hardcode_libdir_flag_spec_GCJ \
17604 hardcode_libdir_flag_spec_ld_GCJ \
17605 hardcode_libdir_separator_GCJ \
17606 hardcode_automatic_GCJ \
17607 module_cmds_GCJ \
17608 module_expsym_cmds_GCJ \
17609 lt_cv_prog_compiler_c_o_GCJ \
17610 exclude_expsyms_GCJ \
17611 include_expsyms_GCJ; do
17612
17613 case $var in
17614 old_archive_cmds_GCJ | \
17615 old_archive_from_new_cmds_GCJ | \
17616 archive_cmds_GCJ | \
17617 archive_expsym_cmds_GCJ | \
17618 module_cmds_GCJ | \
17619 module_expsym_cmds_GCJ | \
17620 old_archive_from_expsyms_cmds_GCJ | \
17621 export_symbols_cmds_GCJ | \
17622 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17623 postinstall_cmds | postuninstall_cmds | \
17624 old_postinstall_cmds | old_postuninstall_cmds | \
17625 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17626 # Double-quote double-evaled strings.
17627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17628 ;;
17629 *)
17630 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17631 ;;
17632 esac
17633 done
17634
17635 case $lt_echo in
17636 *'\$0 --fallback-echo"')
17637 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17638 ;;
17639 esac
17640
17641cfgfile="$ofile"
17642
17643 cat <<__EOF__ >> "$cfgfile"
17644# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17645
17646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17647
17648# Shell to use when invoking shell scripts.
17649SHELL=$lt_SHELL
17650
17651# Whether or not to build shared libraries.
17652build_libtool_libs=$enable_shared
17653
17654# Whether or not to build static libraries.
17655build_old_libs=$enable_static
17656
17657# Whether or not to add -lc for building shared libraries.
17658build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17659
17660# Whether or not to disallow shared libs when runtime libs are static
17661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17662
17663# Whether or not to optimize for fast installation.
17664fast_install=$enable_fast_install
17665
17666# The host system.
17667host_alias=$host_alias
17668host=$host
17669
17670# An echo program that does not interpret backslashes.
17671echo=$lt_echo
17672
17673# The archiver.
17674AR=$lt_AR
17675AR_FLAGS=$lt_AR_FLAGS
17676
17677# A C compiler.
17678LTCC=$lt_LTCC
17679
17680# A language-specific compiler.
17681CC=$lt_compiler_GCJ
17682
17683# Is the compiler the GNU C compiler?
17684with_gcc=$GCC_GCJ
17685
17686# An ERE matcher.
17687EGREP=$lt_EGREP
17688
17689# The linker used to build libraries.
17690LD=$lt_LD_GCJ
17691
17692# Whether we need hard or soft links.
17693LN_S=$lt_LN_S
17694
17695# A BSD-compatible nm program.
17696NM=$lt_NM
17697
17698# A symbol stripping program
17699STRIP=$STRIP
17700
17701# Used to examine libraries when file_magic_cmd begins "file"
17702MAGIC_CMD=$MAGIC_CMD
17703
17704# Used on cygwin: DLL creation program.
17705DLLTOOL="$DLLTOOL"
17706
17707# Used on cygwin: object dumper.
17708OBJDUMP="$OBJDUMP"
17709
17710# Used on cygwin: assembler.
17711AS="$AS"
17712
17713# The name of the directory that contains temporary libtool files.
17714objdir=$objdir
17715
17716# How to create reloadable object files.
17717reload_flag=$lt_reload_flag
17718reload_cmds=$lt_reload_cmds
17719
17720# How to pass a linker flag through the compiler.
17721wl=$lt_lt_prog_compiler_wl_GCJ
17722
17723# Object file suffix (normally "o").
17724objext="$ac_objext"
17725
17726# Old archive suffix (normally "a").
17727libext="$libext"
17728
17729# Shared library suffix (normally ".so").
17730shrext='$shrext'
17731
17732# Executable file suffix (normally "").
17733exeext="$exeext"
17734
17735# Additional compiler flags for building library objects.
17736pic_flag=$lt_lt_prog_compiler_pic_GCJ
17737pic_mode=$pic_mode
17738
17739# What is the maximum length of a command?
17740max_cmd_len=$lt_cv_sys_max_cmd_len
17741
17742# Does compiler simultaneously support -c and -o options?
17743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17744
17745# Must we lock files when doing compilation ?
17746need_locks=$lt_need_locks
17747
17748# Do we need the lib prefix for modules?
17749need_lib_prefix=$need_lib_prefix
17750
17751# Do we need a version for libraries?
17752need_version=$need_version
17753
17754# Whether dlopen is supported.
17755dlopen_support=$enable_dlopen
17756
17757# Whether dlopen of programs is supported.
17758dlopen_self=$enable_dlopen_self
17759
17760# Whether dlopen of statically linked programs is supported.
17761dlopen_self_static=$enable_dlopen_self_static
17762
17763# Compiler flag to prevent dynamic linking.
17764link_static_flag=$lt_lt_prog_compiler_static_GCJ
17765
17766# Compiler flag to turn off builtin functions.
17767no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17768
17769# Compiler flag to allow reflexive dlopens.
17770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17771
17772# Compiler flag to generate shared objects directly from archives.
17773whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17774
17775# Compiler flag to generate thread-safe objects.
17776thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17777
17778# Library versioning type.
17779version_type=$version_type
17780
17781# Format of library name prefix.
17782libname_spec=$lt_libname_spec
17783
17784# List of archive names. First name is the real one, the rest are links.
17785# The last name is the one that the linker finds with -lNAME.
17786library_names_spec=$lt_library_names_spec
17787
17788# The coded name of the library, if different from the real name.
17789soname_spec=$lt_soname_spec
17790
17791# Commands used to build and install an old-style archive.
17792RANLIB=$lt_RANLIB
17793old_archive_cmds=$lt_old_archive_cmds_GCJ
17794old_postinstall_cmds=$lt_old_postinstall_cmds
17795old_postuninstall_cmds=$lt_old_postuninstall_cmds
17796
17797# Create an old-style archive from a shared archive.
17798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17799
17800# Create a temporary old-style archive to link instead of a shared archive.
17801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17802
17803# Commands used to build and install a shared archive.
17804archive_cmds=$lt_archive_cmds_GCJ
17805archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17806postinstall_cmds=$lt_postinstall_cmds
17807postuninstall_cmds=$lt_postuninstall_cmds
17808
17809# Commands used to build a loadable module (assumed same as above if empty)
17810module_cmds=$lt_module_cmds_GCJ
17811module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17812
17813# Commands to strip libraries.
17814old_striplib=$lt_old_striplib
17815striplib=$lt_striplib
17816
17817# Dependencies to place before the objects being linked to create a
17818# shared library.
17819predep_objects=$lt_predep_objects_GCJ
17820
17821# Dependencies to place after the objects being linked to create a
17822# shared library.
17823postdep_objects=$lt_postdep_objects_GCJ
17824
17825# Dependencies to place before the objects being linked to create a
17826# shared library.
17827predeps=$lt_predeps_GCJ
17828
17829# Dependencies to place after the objects being linked to create a
17830# shared library.
17831postdeps=$lt_postdeps_GCJ
17832
17833# The library search path used internally by the compiler when linking
17834# a shared library.
17835compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17836
17837# Method to check whether dependent libraries are shared objects.
17838deplibs_check_method=$lt_deplibs_check_method
17839
17840# Command to use when deplibs_check_method == file_magic.
17841file_magic_cmd=$lt_file_magic_cmd
17842
17843# Flag that allows shared libraries with undefined symbols to be built.
17844allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17845
17846# Flag that forces no undefined symbols.
17847no_undefined_flag=$lt_no_undefined_flag_GCJ
17848
17849# Commands used to finish a libtool library installation in a directory.
17850finish_cmds=$lt_finish_cmds
17851
17852# Same as above, but a single script fragment to be evaled but not shown.
17853finish_eval=$lt_finish_eval
17854
17855# Take the output of nm and produce a listing of raw symbols and C names.
17856global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17857
17858# Transform the output of nm in a proper C declaration
17859global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17860
17861# Transform the output of nm in a C name address pair
17862global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17863
17864# This is the shared library runtime path variable.
17865runpath_var=$runpath_var
17866
17867# This is the shared library path variable.
17868shlibpath_var=$shlibpath_var
17869
17870# Is shlibpath searched before the hard-coded library search path?
17871shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17872
17873# How to hardcode a shared library path into an executable.
17874hardcode_action=$hardcode_action_GCJ
17875
17876# Whether we should hardcode library paths into libraries.
17877hardcode_into_libs=$hardcode_into_libs
17878
17879# Flag to hardcode \$libdir into a binary during linking.
17880# This must work even if \$libdir does not exist.
17881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17882
17883# If ld is used when linking, flag to hardcode \$libdir into
17884# a binary during linking. This must work even if \$libdir does
17885# not exist.
17886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17887
17888# Whether we need a single -rpath flag with a separated argument.
17889hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17890
17891# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17892# resulting binary.
17893hardcode_direct=$hardcode_direct_GCJ
17894
17895# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17896# resulting binary.
17897hardcode_minus_L=$hardcode_minus_L_GCJ
17898
17899# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17900# the resulting binary.
17901hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17902
17903# Set to yes if building a shared library automatically hardcodes DIR into the library
17904# and all subsequent libraries and executables linked against it.
17905hardcode_automatic=$hardcode_automatic_GCJ
17906
17907# Variables whose values should be saved in libtool wrapper scripts and
17908# restored at relink time.
17909variables_saved_for_relink="$variables_saved_for_relink"
17910
17911# Whether libtool must link a program against all its dependency libraries.
17912link_all_deplibs=$link_all_deplibs_GCJ
17913
17914# Compile-time system search path for libraries
17915sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17916
17917# Run-time system search path for libraries
17918sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17919
17920# Fix the shell variable \$srcfile for the compiler.
17921fix_srcfile_path="$fix_srcfile_path_GCJ"
17922
17923# Set to yes if exported symbols are required.
17924always_export_symbols=$always_export_symbols_GCJ
17925
17926# The commands to list exported symbols.
17927export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17928
17929# The commands to extract the exported symbol list from a shared archive.
17930extract_expsyms_cmds=$lt_extract_expsyms_cmds
17931
17932# Symbols that should not be listed in the preloaded symbols.
17933exclude_expsyms=$lt_exclude_expsyms_GCJ
17934
17935# Symbols that must always be exported.
17936include_expsyms=$lt_include_expsyms_GCJ
17937
17938# ### END LIBTOOL TAG CONFIG: $tagname
17939
17940__EOF__
17941
17942
17943else
17944 # If there is no Makefile yet, we rely on a make rule to execute
17945 # `config.status --recheck' to rerun these tests and create the
17946 # libtool script then.
17947 test -f Makefile && make "$ltmain"
17948fi
17949
17950
17951ac_ext=c
17952ac_cpp='$CPP $CPPFLAGS'
17953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17955ac_compiler_gnu=$ac_cv_c_compiler_gnu
17956
17957CC="$lt_save_CC"
17958
17959 else
17960 tagname=""
17961 fi
17962 ;;
17963
17964 RC)
17965
17966
17967
17968# Source file extension for RC test sources.
17969ac_ext=rc
17970
17971# Object file extension for compiled RC test sources.
17972objext=o
17973objext_RC=$objext
17974
17975# Code to be used in simple compile tests
17976lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17977
17978# Code to be used in simple link tests
17979lt_simple_link_test_code="$lt_simple_compile_test_code"
17980
17981# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17982
17983# If no C compiler was specified, use CC.
17984LTCC=${LTCC-"$CC"}
17985
17986# Allow CC to be a program name with arguments.
17987compiler=$CC
17988
17989
17990# Allow CC to be a program name with arguments.
17991lt_save_CC="$CC"
17992CC=${RC-"windres"}
17993compiler=$CC
17994compiler_RC=$CC
17995lt_cv_prog_compiler_c_o_RC=yes
17996
17997# The else clause should only fire when bootstrapping the
17998# libtool distribution, otherwise you forgot to ship ltmain.sh
17999# with your package, and you will get complaints that there are
18000# no rules to generate ltmain.sh.
18001if test -f "$ltmain"; then
18002 # See if we are running on zsh, and set the options which allow our commands through
18003 # without removal of \ escapes.
18004 if test -n "${ZSH_VERSION+set}" ; then
18005 setopt NO_GLOB_SUBST
18006 fi
18007 # Now quote all the things that may contain metacharacters while being
18008 # careful not to overquote the AC_SUBSTed values. We take copies of the
18009 # variables and quote the copies for generation of the libtool script.
18010 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18011 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18012 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18013 deplibs_check_method reload_flag reload_cmds need_locks \
18014 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18015 lt_cv_sys_global_symbol_to_c_name_address \
18016 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18017 old_postinstall_cmds old_postuninstall_cmds \
18018 compiler_RC \
18019 CC_RC \
18020 LD_RC \
18021 lt_prog_compiler_wl_RC \
18022 lt_prog_compiler_pic_RC \
18023 lt_prog_compiler_static_RC \
18024 lt_prog_compiler_no_builtin_flag_RC \
18025 export_dynamic_flag_spec_RC \
18026 thread_safe_flag_spec_RC \
18027 whole_archive_flag_spec_RC \
18028 enable_shared_with_static_runtimes_RC \
18029 old_archive_cmds_RC \
18030 old_archive_from_new_cmds_RC \
18031 predep_objects_RC \
18032 postdep_objects_RC \
18033 predeps_RC \
18034 postdeps_RC \
18035 compiler_lib_search_path_RC \
18036 archive_cmds_RC \
18037 archive_expsym_cmds_RC \
18038 postinstall_cmds_RC \
18039 postuninstall_cmds_RC \
18040 old_archive_from_expsyms_cmds_RC \
18041 allow_undefined_flag_RC \
18042 no_undefined_flag_RC \
18043 export_symbols_cmds_RC \
18044 hardcode_libdir_flag_spec_RC \
18045 hardcode_libdir_flag_spec_ld_RC \
18046 hardcode_libdir_separator_RC \
18047 hardcode_automatic_RC \
18048 module_cmds_RC \
18049 module_expsym_cmds_RC \
18050 lt_cv_prog_compiler_c_o_RC \
18051 exclude_expsyms_RC \
18052 include_expsyms_RC; do
18053
18054 case $var in
18055 old_archive_cmds_RC | \
18056 old_archive_from_new_cmds_RC | \
18057 archive_cmds_RC | \
18058 archive_expsym_cmds_RC | \
18059 module_cmds_RC | \
18060 module_expsym_cmds_RC | \
18061 old_archive_from_expsyms_cmds_RC | \
18062 export_symbols_cmds_RC | \
18063 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18064 postinstall_cmds | postuninstall_cmds | \
18065 old_postinstall_cmds | old_postuninstall_cmds | \
18066 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18067 # Double-quote double-evaled strings.
18068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18069 ;;
18070 *)
18071 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18072 ;;
18073 esac
18074 done
18075
18076 case $lt_echo in
18077 *'\$0 --fallback-echo"')
18078 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18079 ;;
18080 esac
18081
18082cfgfile="$ofile"
18083
18084 cat <<__EOF__ >> "$cfgfile"
18085# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18086
18087# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18088
18089# Shell to use when invoking shell scripts.
18090SHELL=$lt_SHELL
18091
18092# Whether or not to build shared libraries.
18093build_libtool_libs=$enable_shared
18094
18095# Whether or not to build static libraries.
18096build_old_libs=$enable_static
18097
18098# Whether or not to add -lc for building shared libraries.
18099build_libtool_need_lc=$archive_cmds_need_lc_RC
18100
18101# Whether or not to disallow shared libs when runtime libs are static
18102allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18103
18104# Whether or not to optimize for fast installation.
18105fast_install=$enable_fast_install
18106
18107# The host system.
18108host_alias=$host_alias
18109host=$host
18110
18111# An echo program that does not interpret backslashes.
18112echo=$lt_echo
18113
18114# The archiver.
18115AR=$lt_AR
18116AR_FLAGS=$lt_AR_FLAGS
18117
18118# A C compiler.
18119LTCC=$lt_LTCC
18120
18121# A language-specific compiler.
18122CC=$lt_compiler_RC
18123
18124# Is the compiler the GNU C compiler?
18125with_gcc=$GCC_RC
18126
18127# An ERE matcher.
18128EGREP=$lt_EGREP
18129
18130# The linker used to build libraries.
18131LD=$lt_LD_RC
18132
18133# Whether we need hard or soft links.
18134LN_S=$lt_LN_S
18135
18136# A BSD-compatible nm program.
18137NM=$lt_NM
18138
18139# A symbol stripping program
18140STRIP=$STRIP
18141
18142# Used to examine libraries when file_magic_cmd begins "file"
18143MAGIC_CMD=$MAGIC_CMD
18144
18145# Used on cygwin: DLL creation program.
18146DLLTOOL="$DLLTOOL"
18147
18148# Used on cygwin: object dumper.
18149OBJDUMP="$OBJDUMP"
18150
18151# Used on cygwin: assembler.
18152AS="$AS"
18153
18154# The name of the directory that contains temporary libtool files.
18155objdir=$objdir
18156
18157# How to create reloadable object files.
18158reload_flag=$lt_reload_flag
18159reload_cmds=$lt_reload_cmds
18160
18161# How to pass a linker flag through the compiler.
18162wl=$lt_lt_prog_compiler_wl_RC
18163
18164# Object file suffix (normally "o").
18165objext="$ac_objext"
18166
18167# Old archive suffix (normally "a").
18168libext="$libext"
18169
18170# Shared library suffix (normally ".so").
18171shrext='$shrext'
18172
18173# Executable file suffix (normally "").
18174exeext="$exeext"
18175
18176# Additional compiler flags for building library objects.
18177pic_flag=$lt_lt_prog_compiler_pic_RC
18178pic_mode=$pic_mode
18179
18180# What is the maximum length of a command?
18181max_cmd_len=$lt_cv_sys_max_cmd_len
18182
18183# Does compiler simultaneously support -c and -o options?
18184compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18185
18186# Must we lock files when doing compilation ?
18187need_locks=$lt_need_locks
18188
18189# Do we need the lib prefix for modules?
18190need_lib_prefix=$need_lib_prefix
18191
18192# Do we need a version for libraries?
18193need_version=$need_version
18194
18195# Whether dlopen is supported.
18196dlopen_support=$enable_dlopen
18197
18198# Whether dlopen of programs is supported.
18199dlopen_self=$enable_dlopen_self
18200
18201# Whether dlopen of statically linked programs is supported.
18202dlopen_self_static=$enable_dlopen_self_static
18203
18204# Compiler flag to prevent dynamic linking.
18205link_static_flag=$lt_lt_prog_compiler_static_RC
18206
18207# Compiler flag to turn off builtin functions.
18208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18209
18210# Compiler flag to allow reflexive dlopens.
18211export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18212
18213# Compiler flag to generate shared objects directly from archives.
18214whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18215
18216# Compiler flag to generate thread-safe objects.
18217thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18218
18219# Library versioning type.
18220version_type=$version_type
18221
18222# Format of library name prefix.
18223libname_spec=$lt_libname_spec
18224
18225# List of archive names. First name is the real one, the rest are links.
18226# The last name is the one that the linker finds with -lNAME.
18227library_names_spec=$lt_library_names_spec
18228
18229# The coded name of the library, if different from the real name.
18230soname_spec=$lt_soname_spec
18231
18232# Commands used to build and install an old-style archive.
18233RANLIB=$lt_RANLIB
18234old_archive_cmds=$lt_old_archive_cmds_RC
18235old_postinstall_cmds=$lt_old_postinstall_cmds
18236old_postuninstall_cmds=$lt_old_postuninstall_cmds
18237
18238# Create an old-style archive from a shared archive.
18239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18240
18241# Create a temporary old-style archive to link instead of a shared archive.
18242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18243
18244# Commands used to build and install a shared archive.
18245archive_cmds=$lt_archive_cmds_RC
18246archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18247postinstall_cmds=$lt_postinstall_cmds
18248postuninstall_cmds=$lt_postuninstall_cmds
18249
18250# Commands used to build a loadable module (assumed same as above if empty)
18251module_cmds=$lt_module_cmds_RC
18252module_expsym_cmds=$lt_module_expsym_cmds_RC
18253
18254# Commands to strip libraries.
18255old_striplib=$lt_old_striplib
18256striplib=$lt_striplib
18257
18258# Dependencies to place before the objects being linked to create a
18259# shared library.
18260predep_objects=$lt_predep_objects_RC
18261
18262# Dependencies to place after the objects being linked to create a
18263# shared library.
18264postdep_objects=$lt_postdep_objects_RC
18265
18266# Dependencies to place before the objects being linked to create a
18267# shared library.
18268predeps=$lt_predeps_RC
18269
18270# Dependencies to place after the objects being linked to create a
18271# shared library.
18272postdeps=$lt_postdeps_RC
18273
18274# The library search path used internally by the compiler when linking
18275# a shared library.
18276compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18277
18278# Method to check whether dependent libraries are shared objects.
18279deplibs_check_method=$lt_deplibs_check_method
18280
18281# Command to use when deplibs_check_method == file_magic.
18282file_magic_cmd=$lt_file_magic_cmd
18283
18284# Flag that allows shared libraries with undefined symbols to be built.
18285allow_undefined_flag=$lt_allow_undefined_flag_RC
18286
18287# Flag that forces no undefined symbols.
18288no_undefined_flag=$lt_no_undefined_flag_RC
18289
18290# Commands used to finish a libtool library installation in a directory.
18291finish_cmds=$lt_finish_cmds
18292
18293# Same as above, but a single script fragment to be evaled but not shown.
18294finish_eval=$lt_finish_eval
18295
18296# Take the output of nm and produce a listing of raw symbols and C names.
18297global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18298
18299# Transform the output of nm in a proper C declaration
18300global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18301
18302# Transform the output of nm in a C name address pair
18303global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18304
18305# This is the shared library runtime path variable.
18306runpath_var=$runpath_var
18307
18308# This is the shared library path variable.
18309shlibpath_var=$shlibpath_var
18310
18311# Is shlibpath searched before the hard-coded library search path?
18312shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18313
18314# How to hardcode a shared library path into an executable.
18315hardcode_action=$hardcode_action_RC
18316
18317# Whether we should hardcode library paths into libraries.
18318hardcode_into_libs=$hardcode_into_libs
18319
18320# Flag to hardcode \$libdir into a binary during linking.
18321# This must work even if \$libdir does not exist.
18322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18323
18324# If ld is used when linking, flag to hardcode \$libdir into
18325# a binary during linking. This must work even if \$libdir does
18326# not exist.
18327hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18328
18329# Whether we need a single -rpath flag with a separated argument.
18330hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18331
18332# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18333# resulting binary.
18334hardcode_direct=$hardcode_direct_RC
18335
18336# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18337# resulting binary.
18338hardcode_minus_L=$hardcode_minus_L_RC
18339
18340# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18341# the resulting binary.
18342hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18343
18344# Set to yes if building a shared library automatically hardcodes DIR into the library
18345# and all subsequent libraries and executables linked against it.
18346hardcode_automatic=$hardcode_automatic_RC
18347
18348# Variables whose values should be saved in libtool wrapper scripts and
18349# restored at relink time.
18350variables_saved_for_relink="$variables_saved_for_relink"
18351
18352# Whether libtool must link a program against all its dependency libraries.
18353link_all_deplibs=$link_all_deplibs_RC
18354
18355# Compile-time system search path for libraries
18356sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18357
18358# Run-time system search path for libraries
18359sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18360
18361# Fix the shell variable \$srcfile for the compiler.
18362fix_srcfile_path="$fix_srcfile_path_RC"
18363
18364# Set to yes if exported symbols are required.
18365always_export_symbols=$always_export_symbols_RC
18366
18367# The commands to list exported symbols.
18368export_symbols_cmds=$lt_export_symbols_cmds_RC
18369
18370# The commands to extract the exported symbol list from a shared archive.
18371extract_expsyms_cmds=$lt_extract_expsyms_cmds
18372
18373# Symbols that should not be listed in the preloaded symbols.
18374exclude_expsyms=$lt_exclude_expsyms_RC
18375
18376# Symbols that must always be exported.
18377include_expsyms=$lt_include_expsyms_RC
18378
18379# ### END LIBTOOL TAG CONFIG: $tagname
18380
18381__EOF__
18382
18383
18384else
18385 # If there is no Makefile yet, we rely on a make rule to execute
18386 # `config.status --recheck' to rerun these tests and create the
18387 # libtool script then.
18388 test -f Makefile && make "$ltmain"
18389fi
18390
18391
18392ac_ext=c
18393ac_cpp='$CPP $CPPFLAGS'
18394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18396ac_compiler_gnu=$ac_cv_c_compiler_gnu
18397
18398CC="$lt_save_CC"
18399
18400 ;;
18401
18402 *)
18403 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18404echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18405 { (exit 1); exit 1; }; }
18406 ;;
18407 esac
18408
18409 # Append the new tag name to the list of available tags.
18410 if test -n "$tagname" ; then
18411 available_tags="$available_tags $tagname"
18412 fi
18413 fi
18414 done
18415 IFS="$lt_save_ifs"
18416
18417 # Now substitute the updated list of available tags.
18418 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18419 mv "${ofile}T" "$ofile"
18420 chmod +x "$ofile"
18421 else
18422 rm -f "${ofile}T"
18423 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18424echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18425 { (exit 1); exit 1; }; }
18426 fi
18427fi
John Criswell7a73b802003-06-30 21:59:07 +000018428
18429
18430
18431# This can be used to rebuild libtool when needed
18432LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18433
18434# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018435LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018436
18437# Prevent multiple expansion
18438
18439
18440
John Criswell47fdd832003-07-14 16:52:07 +000018441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
John Criswellde00db22003-08-25 16:49:54 +000018459# Extract the first word of "pwd", so it can be a program name with args.
18460set dummy pwd; ac_word=$2
18461echo "$as_me:$LINENO: checking for $ac_word" >&5
18462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18463if test "${ac_cv_path_RPWD+set}" = set; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18465else
18466 case $RPWD in
18467 [\\/]* | ?:[\\/]*)
18468 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18469 ;;
18470 *)
18471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18472for as_dir in $PATH
18473do
18474 IFS=$as_save_IFS
18475 test -z "$as_dir" && as_dir=.
18476 for ac_exec_ext in '' $ac_executable_extensions; do
18477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18478 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18480 break 2
18481 fi
18482done
18483done
18484
John Criswell39827c82003-09-23 15:28:52 +000018485 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018486 ;;
18487esac
18488fi
18489RPWD=$ac_cv_path_RPWD
18490
18491if test -n "$RPWD"; then
18492 echo "$as_me:$LINENO: result: $RPWD" >&5
18493echo "${ECHO_T}$RPWD" >&6
18494else
18495 echo "$as_me:$LINENO: result: no" >&5
18496echo "${ECHO_T}no" >&6
18497fi
18498
John Criswell39827c82003-09-23 15:28:52 +000018499if test ${RPWD} = "false"
18500then
18501 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18502echo "$as_me: error: pwd required but not found" >&2;}
18503 { (exit 1); exit 1; }; }
18504fi
18505
John Criswell7a73b802003-06-30 21:59:07 +000018506# Extract the first word of "ar", so it can be a program name with args.
18507set dummy ar; ac_word=$2
18508echo "$as_me:$LINENO: checking for $ac_word" >&5
18509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18510if test "${ac_cv_path_AR+set}" = set; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18512else
18513 case $AR in
18514 [\\/]* | ?:[\\/]*)
18515 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18516 ;;
18517 *)
18518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18519for as_dir in $PATH
18520do
18521 IFS=$as_save_IFS
18522 test -z "$as_dir" && as_dir=.
18523 for ac_exec_ext in '' $ac_executable_extensions; do
18524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18525 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18527 break 2
18528 fi
18529done
18530done
18531
John Criswell39827c82003-09-23 15:28:52 +000018532 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018533 ;;
18534esac
18535fi
18536AR=$ac_cv_path_AR
18537
18538if test -n "$AR"; then
18539 echo "$as_me:$LINENO: result: $AR" >&5
18540echo "${ECHO_T}$AR" >&6
18541else
18542 echo "$as_me:$LINENO: result: no" >&5
18543echo "${ECHO_T}no" >&6
18544fi
18545
John Criswell39827c82003-09-23 15:28:52 +000018546if test ${AR} = "false"
18547then
18548 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18549echo "$as_me: error: ar required but not found" >&2;}
18550 { (exit 1); exit 1; }; }
18551fi
18552
John Criswell7a73b802003-06-30 21:59:07 +000018553# Extract the first word of "sed", so it can be a program name with args.
18554set dummy sed; ac_word=$2
18555echo "$as_me:$LINENO: checking for $ac_word" >&5
18556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18557if test "${ac_cv_path_SED+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18559else
18560 case $SED in
18561 [\\/]* | ?:[\\/]*)
18562 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18563 ;;
18564 *)
18565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18566for as_dir in $PATH
18567do
18568 IFS=$as_save_IFS
18569 test -z "$as_dir" && as_dir=.
18570 for ac_exec_ext in '' $ac_executable_extensions; do
18571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18572 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18574 break 2
18575 fi
18576done
18577done
18578
John Criswell39827c82003-09-23 15:28:52 +000018579 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018580 ;;
18581esac
18582fi
18583SED=$ac_cv_path_SED
18584
18585if test -n "$SED"; then
18586 echo "$as_me:$LINENO: result: $SED" >&5
18587echo "${ECHO_T}$SED" >&6
18588else
18589 echo "$as_me:$LINENO: result: no" >&5
18590echo "${ECHO_T}no" >&6
18591fi
18592
John Criswell39827c82003-09-23 15:28:52 +000018593if test ${SED} = "false"
18594then
18595 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18596echo "$as_me: error: sed required but not found" >&2;}
18597 { (exit 1); exit 1; }; }
18598fi
18599
John Criswell7a73b802003-06-30 21:59:07 +000018600# Extract the first word of "rm", so it can be a program name with args.
18601set dummy rm; ac_word=$2
18602echo "$as_me:$LINENO: checking for $ac_word" >&5
18603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18604if test "${ac_cv_path_RM+set}" = set; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606else
18607 case $RM in
18608 [\\/]* | ?:[\\/]*)
18609 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18610 ;;
18611 *)
18612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18613for as_dir in $PATH
18614do
18615 IFS=$as_save_IFS
18616 test -z "$as_dir" && as_dir=.
18617 for ac_exec_ext in '' $ac_executable_extensions; do
18618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18619 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18621 break 2
18622 fi
18623done
18624done
18625
John Criswell39827c82003-09-23 15:28:52 +000018626 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018627 ;;
18628esac
18629fi
18630RM=$ac_cv_path_RM
18631
18632if test -n "$RM"; then
18633 echo "$as_me:$LINENO: result: $RM" >&5
18634echo "${ECHO_T}$RM" >&6
18635else
18636 echo "$as_me:$LINENO: result: no" >&5
18637echo "${ECHO_T}no" >&6
18638fi
18639
John Criswell39827c82003-09-23 15:28:52 +000018640if test ${RM} = "false"
18641then
18642 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18643echo "$as_me: error: rm required but not found" >&2;}
18644 { (exit 1); exit 1; }; }
18645fi
18646
John Criswell7a73b802003-06-30 21:59:07 +000018647# Extract the first word of "echo", so it can be a program name with args.
18648set dummy echo; ac_word=$2
18649echo "$as_me:$LINENO: checking for $ac_word" >&5
18650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18651if test "${ac_cv_path_ECHO+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653else
18654 case $ECHO in
18655 [\\/]* | ?:[\\/]*)
18656 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18657 ;;
18658 *)
18659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660for as_dir in $PATH
18661do
18662 IFS=$as_save_IFS
18663 test -z "$as_dir" && as_dir=.
18664 for ac_exec_ext in '' $ac_executable_extensions; do
18665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18668 break 2
18669 fi
18670done
18671done
18672
John Criswell39827c82003-09-23 15:28:52 +000018673 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018674 ;;
18675esac
18676fi
18677ECHO=$ac_cv_path_ECHO
18678
18679if test -n "$ECHO"; then
18680 echo "$as_me:$LINENO: result: $ECHO" >&5
18681echo "${ECHO_T}$ECHO" >&6
18682else
18683 echo "$as_me:$LINENO: result: no" >&5
18684echo "${ECHO_T}no" >&6
18685fi
18686
John Criswell39827c82003-09-23 15:28:52 +000018687if test ${ECHO} = "false"
18688then
18689 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18690echo "$as_me: error: echo required but not found" >&2;}
18691 { (exit 1); exit 1; }; }
18692fi
18693
John Criswell7a73b802003-06-30 21:59:07 +000018694# Extract the first word of "mkdir", so it can be a program name with args.
18695set dummy mkdir; ac_word=$2
18696echo "$as_me:$LINENO: checking for $ac_word" >&5
18697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18698if test "${ac_cv_path_MKDIR+set}" = set; then
18699 echo $ECHO_N "(cached) $ECHO_C" >&6
18700else
18701 case $MKDIR in
18702 [\\/]* | ?:[\\/]*)
18703 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18704 ;;
18705 *)
18706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707for as_dir in $PATH
18708do
18709 IFS=$as_save_IFS
18710 test -z "$as_dir" && as_dir=.
18711 for ac_exec_ext in '' $ac_executable_extensions; do
18712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18713 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18715 break 2
18716 fi
18717done
18718done
18719
John Criswell39827c82003-09-23 15:28:52 +000018720 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018721 ;;
18722esac
18723fi
18724MKDIR=$ac_cv_path_MKDIR
18725
18726if test -n "$MKDIR"; then
18727 echo "$as_me:$LINENO: result: $MKDIR" >&5
18728echo "${ECHO_T}$MKDIR" >&6
18729else
18730 echo "$as_me:$LINENO: result: no" >&5
18731echo "${ECHO_T}no" >&6
18732fi
18733
John Criswell39827c82003-09-23 15:28:52 +000018734if test ${MKDIR} = "false"
18735then
18736 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18737echo "$as_me: error: mkdir required but not found" >&2;}
18738 { (exit 1); exit 1; }; }
18739fi
18740
John Criswell7a73b802003-06-30 21:59:07 +000018741# Extract the first word of "date", so it can be a program name with args.
18742set dummy date; ac_word=$2
18743echo "$as_me:$LINENO: checking for $ac_word" >&5
18744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18745if test "${ac_cv_path_DATE+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18747else
18748 case $DATE in
18749 [\\/]* | ?:[\\/]*)
18750 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18751 ;;
18752 *)
18753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754for as_dir in $PATH
18755do
18756 IFS=$as_save_IFS
18757 test -z "$as_dir" && as_dir=.
18758 for ac_exec_ext in '' $ac_executable_extensions; do
18759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18762 break 2
18763 fi
18764done
18765done
18766
John Criswell39827c82003-09-23 15:28:52 +000018767 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018768 ;;
18769esac
18770fi
18771DATE=$ac_cv_path_DATE
18772
18773if test -n "$DATE"; then
18774 echo "$as_me:$LINENO: result: $DATE" >&5
18775echo "${ECHO_T}$DATE" >&6
18776else
18777 echo "$as_me:$LINENO: result: no" >&5
18778echo "${ECHO_T}no" >&6
18779fi
18780
John Criswell39827c82003-09-23 15:28:52 +000018781if test ${DATE} = "false"
18782then
18783 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18784echo "$as_me: error: date required but not found" >&2;}
18785 { (exit 1); exit 1; }; }
18786fi
18787
John Criswell7a73b802003-06-30 21:59:07 +000018788# Extract the first word of "mv", so it can be a program name with args.
18789set dummy mv; ac_word=$2
18790echo "$as_me:$LINENO: checking for $ac_word" >&5
18791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18792if test "${ac_cv_path_MV+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794else
18795 case $MV in
18796 [\\/]* | ?:[\\/]*)
18797 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18798 ;;
18799 *)
18800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18801for as_dir in $PATH
18802do
18803 IFS=$as_save_IFS
18804 test -z "$as_dir" && as_dir=.
18805 for ac_exec_ext in '' $ac_executable_extensions; do
18806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18807 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18809 break 2
18810 fi
18811done
18812done
18813
John Criswell39827c82003-09-23 15:28:52 +000018814 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018815 ;;
18816esac
18817fi
18818MV=$ac_cv_path_MV
18819
18820if test -n "$MV"; then
18821 echo "$as_me:$LINENO: result: $MV" >&5
18822echo "${ECHO_T}$MV" >&6
18823else
18824 echo "$as_me:$LINENO: result: no" >&5
18825echo "${ECHO_T}no" >&6
18826fi
18827
John Criswell39827c82003-09-23 15:28:52 +000018828if test ${MV} = "false"
18829then
18830 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18831echo "$as_me: error: mv required but not found" >&2;}
18832 { (exit 1); exit 1; }; }
18833fi
18834
John Criswell7a73b802003-06-30 21:59:07 +000018835# Extract the first word of "dot", so it can be a program name with args.
18836set dummy dot; ac_word=$2
18837echo "$as_me:$LINENO: checking for $ac_word" >&5
18838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18839if test "${ac_cv_path_DOT+set}" = set; then
18840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841else
18842 case $DOT in
18843 [\\/]* | ?:[\\/]*)
18844 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18845 ;;
18846 *)
18847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18848for as_dir in $PATH
18849do
18850 IFS=$as_save_IFS
18851 test -z "$as_dir" && as_dir=.
18852 for ac_exec_ext in '' $ac_executable_extensions; do
18853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18854 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18856 break 2
18857 fi
18858done
18859done
18860
John Criswell39827c82003-09-23 15:28:52 +000018861 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018862 ;;
18863esac
18864fi
18865DOT=$ac_cv_path_DOT
18866
18867if test -n "$DOT"; then
18868 echo "$as_me:$LINENO: result: $DOT" >&5
18869echo "${ECHO_T}$DOT" >&6
18870else
18871 echo "$as_me:$LINENO: result: no" >&5
18872echo "${ECHO_T}no" >&6
18873fi
18874
John Criswell39827c82003-09-23 15:28:52 +000018875
John Criswell7a73b802003-06-30 21:59:07 +000018876# Extract the first word of "etags", so it can be a program name with args.
18877set dummy etags; ac_word=$2
18878echo "$as_me:$LINENO: checking for $ac_word" >&5
18879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18880if test "${ac_cv_path_ETAGS+set}" = set; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883 case $ETAGS in
18884 [\\/]* | ?:[\\/]*)
18885 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18886 ;;
18887 *)
18888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889for as_dir in $PATH
18890do
18891 IFS=$as_save_IFS
18892 test -z "$as_dir" && as_dir=.
18893 for ac_exec_ext in '' $ac_executable_extensions; do
18894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18895 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18897 break 2
18898 fi
18899done
18900done
18901
John Criswell39827c82003-09-23 15:28:52 +000018902 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018903 ;;
18904esac
18905fi
18906ETAGS=$ac_cv_path_ETAGS
18907
18908if test -n "$ETAGS"; then
18909 echo "$as_me:$LINENO: result: $ETAGS" >&5
18910echo "${ECHO_T}$ETAGS" >&6
18911else
18912 echo "$as_me:$LINENO: result: no" >&5
18913echo "${ECHO_T}no" >&6
18914fi
18915
John Criswell39827c82003-09-23 15:28:52 +000018916
John Criswellde00db22003-08-25 16:49:54 +000018917# Extract the first word of "python", so it can be a program name with args.
18918set dummy python; ac_word=$2
18919echo "$as_me:$LINENO: checking for $ac_word" >&5
18920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18921if test "${ac_cv_path_PYTHON+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923else
18924 case $PYTHON in
18925 [\\/]* | ?:[\\/]*)
18926 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18927 ;;
18928 *)
18929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930for as_dir in $PATH
18931do
18932 IFS=$as_save_IFS
18933 test -z "$as_dir" && as_dir=.
18934 for ac_exec_ext in '' $ac_executable_extensions; do
18935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18936 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18938 break 2
18939 fi
18940done
18941done
18942
John Criswell39827c82003-09-23 15:28:52 +000018943 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018944 ;;
18945esac
18946fi
18947PYTHON=$ac_cv_path_PYTHON
18948
18949if test -n "$PYTHON"; then
18950 echo "$as_me:$LINENO: result: $PYTHON" >&5
18951echo "${ECHO_T}$PYTHON" >&6
18952else
18953 echo "$as_me:$LINENO: result: no" >&5
18954echo "${ECHO_T}no" >&6
18955fi
18956
John Criswell39827c82003-09-23 15:28:52 +000018957if test ${PYTHON} = "false"
18958then
John Criswell61095982003-09-23 20:46:32 +000018959 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18960echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018961fi
18962
John Criswellde00db22003-08-25 16:49:54 +000018963# Extract the first word of "qmtest", so it can be a program name with args.
18964set dummy qmtest; ac_word=$2
18965echo "$as_me:$LINENO: checking for $ac_word" >&5
18966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18967if test "${ac_cv_path_QMTEST+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970 case $QMTEST in
18971 [\\/]* | ?:[\\/]*)
18972 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18973 ;;
18974 *)
18975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18976for as_dir in $PATH
18977do
18978 IFS=$as_save_IFS
18979 test -z "$as_dir" && as_dir=.
18980 for ac_exec_ext in '' $ac_executable_extensions; do
18981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18982 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18984 break 2
18985 fi
18986done
18987done
18988
John Criswell39827c82003-09-23 15:28:52 +000018989 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018990 ;;
18991esac
18992fi
18993QMTEST=$ac_cv_path_QMTEST
18994
18995if test -n "$QMTEST"; then
18996 echo "$as_me:$LINENO: result: $QMTEST" >&5
18997echo "${ECHO_T}$QMTEST" >&6
18998else
18999 echo "$as_me:$LINENO: result: no" >&5
19000echo "${ECHO_T}no" >&6
19001fi
19002
John Criswell39827c82003-09-23 15:28:52 +000019003if test ${QMTEST} = "false"
19004then
John Criswell61095982003-09-23 20:46:32 +000019005 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19006echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019007fi
John Criswellde00db22003-08-25 16:49:54 +000019008
19009pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19010pymajor=`echo $pyversion | cut -d. -f1`
19011pyminor=`echo $pyversion | cut -d. -f2`
19012
19013if test "$pymajor" -ge "2"
19014then
19015 if test "$pymajor" -eq "2"
19016 then
19017 if test "$pyminor" -lt "2"
19018 then
19019 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19020echo "$as_me: error: Python 2.2 or greater required" >&2;}
19021 { (exit 1); exit 1; }; }
19022 fi
19023 fi
19024else
19025 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19026echo "$as_me: error: Python 2.2 or greater required" >&2;}
19027 { (exit 1); exit 1; }; }
19028fi
John Criswell7a73b802003-06-30 21:59:07 +000019029
19030
19031
19032
19033
19034echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19035echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19036if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038else
19039 ac_check_lib_save_LIBS=$LIBS
19040LIBS="-lelf $LIBS"
19041cat >conftest.$ac_ext <<_ACEOF
19042#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019043/* confdefs.h. */
19044_ACEOF
19045cat confdefs.h >>conftest.$ac_ext
19046cat >>conftest.$ac_ext <<_ACEOF
19047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019048
19049/* Override any gcc2 internal prototype to avoid an error. */
19050#ifdef __cplusplus
19051extern "C"
19052#endif
19053/* We use char because int might match the return type of a gcc2
19054 builtin and then its argument prototype would still apply. */
19055char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019056int
19057main ()
19058{
19059elf_begin ();
19060 ;
19061 return 0;
19062}
19063_ACEOF
19064rm -f conftest.$ac_objext conftest$ac_exeext
19065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -s conftest$ac_exeext'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_lib_elf_elf_begin=yes
19077else
19078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019079sed 's/^/| /' conftest.$ac_ext >&5
19080
John Criswell7a73b802003-06-30 21:59:07 +000019081ac_cv_lib_elf_elf_begin=no
19082fi
19083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19084LIBS=$ac_check_lib_save_LIBS
19085fi
19086echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19087echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19088if test $ac_cv_lib_elf_elf_begin = yes; then
19089 cat >>confdefs.h <<_ACEOF
19090#define HAVE_LIBELF 1
19091_ACEOF
19092
19093 LIBS="-lelf $LIBS"
19094
19095fi
19096
19097
19098echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19099echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19100if test "${ac_cv_search_dlopen+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19102else
19103 ac_func_search_save_LIBS=$LIBS
19104ac_cv_search_dlopen=no
19105cat >conftest.$ac_ext <<_ACEOF
19106#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019107/* confdefs.h. */
19108_ACEOF
19109cat confdefs.h >>conftest.$ac_ext
19110cat >>conftest.$ac_ext <<_ACEOF
19111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019112
19113/* Override any gcc2 internal prototype to avoid an error. */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117/* We use char because int might match the return type of a gcc2
19118 builtin and then its argument prototype would still apply. */
19119char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019120int
19121main ()
19122{
19123dlopen ();
19124 ;
19125 return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext conftest$ac_exeext
19129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130 (eval $ac_link) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
19134 { ac_try='test -s conftest$ac_exeext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_search_dlopen="none required"
19141else
19142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019143sed 's/^/| /' conftest.$ac_ext >&5
19144
John Criswell7a73b802003-06-30 21:59:07 +000019145fi
19146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19147if test "$ac_cv_search_dlopen" = no; then
19148 for ac_lib in dl; do
19149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19150 cat >conftest.$ac_ext <<_ACEOF
19151#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019157
19158/* Override any gcc2 internal prototype to avoid an error. */
19159#ifdef __cplusplus
19160extern "C"
19161#endif
19162/* We use char because int might match the return type of a gcc2
19163 builtin and then its argument prototype would still apply. */
19164char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019165int
19166main ()
19167{
19168dlopen ();
19169 ;
19170 return 0;
19171}
19172_ACEOF
19173rm -f conftest.$ac_objext conftest$ac_exeext
19174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175 (eval $ac_link) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -s conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19182 ac_status=$?
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 ac_cv_search_dlopen="-l$ac_lib"
19186break
19187else
19188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019189sed 's/^/| /' conftest.$ac_ext >&5
19190
John Criswell7a73b802003-06-30 21:59:07 +000019191fi
19192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19193 done
19194fi
19195LIBS=$ac_func_search_save_LIBS
19196fi
19197echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19198echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19199if test "$ac_cv_search_dlopen" != no; then
19200 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019201
19202cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019203#define HAVE_DLOPEN 1
19204_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019205
19206else
Brian Gaekec45be042003-10-07 06:01:34 +000019207 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19208echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019209fi
19210
19211
19212echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19213echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19214if test "${ac_cv_search_mallinfo+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216else
19217 ac_func_search_save_LIBS=$LIBS
19218ac_cv_search_mallinfo=no
19219cat >conftest.$ac_ext <<_ACEOF
19220#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019226
19227/* Override any gcc2 internal prototype to avoid an error. */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231/* We use char because int might match the return type of a gcc2
19232 builtin and then its argument prototype would still apply. */
19233char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019234int
19235main ()
19236{
19237mallinfo ();
19238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext conftest$ac_exeext
19243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19244 (eval $ac_link) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_search_mallinfo="none required"
19255else
19256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019257sed 's/^/| /' conftest.$ac_ext >&5
19258
John Criswell7a73b802003-06-30 21:59:07 +000019259fi
19260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19261if test "$ac_cv_search_mallinfo" = no; then
19262 for ac_lib in malloc; do
19263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19264 cat >conftest.$ac_ext <<_ACEOF
19265#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019266/* confdefs.h. */
19267_ACEOF
19268cat confdefs.h >>conftest.$ac_ext
19269cat >>conftest.$ac_ext <<_ACEOF
19270/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019271
19272/* Override any gcc2 internal prototype to avoid an error. */
19273#ifdef __cplusplus
19274extern "C"
19275#endif
19276/* We use char because int might match the return type of a gcc2
19277 builtin and then its argument prototype would still apply. */
19278char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019279int
19280main ()
19281{
19282mallinfo ();
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext conftest$ac_exeext
19288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -s conftest$ac_exeext'
19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295 (eval $ac_try) 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; }; then
19299 ac_cv_search_mallinfo="-l$ac_lib"
19300break
19301else
19302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019303sed 's/^/| /' conftest.$ac_ext >&5
19304
John Criswell7a73b802003-06-30 21:59:07 +000019305fi
19306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19307 done
19308fi
19309LIBS=$ac_func_search_save_LIBS
19310fi
19311echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19312echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19313if test "$ac_cv_search_mallinfo" != no; then
19314 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019315
19316cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019317#define HAVE_MALLINFO 1
19318_ACEOF
19319
19320fi
19321
19322
19323
19324echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19325echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19326if test "${ac_cv_header_stdc+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
19329 cat >conftest.$ac_ext <<_ACEOF
19330#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019331/* confdefs.h. */
19332_ACEOF
19333cat confdefs.h >>conftest.$ac_ext
19334cat >>conftest.$ac_ext <<_ACEOF
19335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019336#include <stdlib.h>
19337#include <stdarg.h>
19338#include <string.h>
19339#include <float.h>
19340
John Criswell0c38eaf2003-09-10 15:17:25 +000019341int
19342main ()
19343{
19344
19345 ;
19346 return 0;
19347}
John Criswell7a73b802003-06-30 21:59:07 +000019348_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019349rm -f conftest.$ac_objext
19350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19351 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019352 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019354 (exit $ac_status); } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019361 ac_cv_header_stdc=yes
19362else
19363 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019364sed 's/^/| /' conftest.$ac_ext >&5
19365
19366ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019367fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019368rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019369
19370if test $ac_cv_header_stdc = yes; then
19371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19372 cat >conftest.$ac_ext <<_ACEOF
19373#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019379#include <string.h>
19380
19381_ACEOF
19382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019383 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019384 :
19385else
19386 ac_cv_header_stdc=no
19387fi
19388rm -f conftest*
19389
19390fi
19391
19392if test $ac_cv_header_stdc = yes; then
19393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19394 cat >conftest.$ac_ext <<_ACEOF
19395#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019401#include <stdlib.h>
19402
19403_ACEOF
19404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019405 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019406 :
19407else
19408 ac_cv_header_stdc=no
19409fi
19410rm -f conftest*
19411
19412fi
19413
19414if test $ac_cv_header_stdc = yes; then
19415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19416 if test "$cross_compiling" = yes; then
19417 :
19418else
19419 cat >conftest.$ac_ext <<_ACEOF
19420#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019426#include <ctype.h>
19427#if ((' ' & 0x0FF) == 0x020)
19428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19430#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019431# define ISLOWER(c) \
19432 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019433 || ('j' <= (c) && (c) <= 'r') \
19434 || ('s' <= (c) && (c) <= 'z'))
19435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19436#endif
19437
19438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19439int
19440main ()
19441{
19442 int i;
19443 for (i = 0; i < 256; i++)
19444 if (XOR (islower (i), ISLOWER (i))
19445 || toupper (i) != TOUPPER (i))
19446 exit(2);
19447 exit (0);
19448}
19449_ACEOF
19450rm -f conftest$ac_exeext
19451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19452 (eval $ac_link) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 :
19462else
19463 echo "$as_me: program exited with status $ac_status" >&5
19464echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019465sed 's/^/| /' conftest.$ac_ext >&5
19466
John Criswell7a73b802003-06-30 21:59:07 +000019467( exit $ac_status )
19468ac_cv_header_stdc=no
19469fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019470rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019471fi
19472fi
19473fi
19474echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19475echo "${ECHO_T}$ac_cv_header_stdc" >&6
19476if test $ac_cv_header_stdc = yes; then
19477
19478cat >>confdefs.h <<\_ACEOF
19479#define STDC_HEADERS 1
19480_ACEOF
19481
19482fi
19483
19484echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19485echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19486if test "${ac_cv_header_sys_wait_h+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19488else
19489 cat >conftest.$ac_ext <<_ACEOF
19490#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019496#include <sys/types.h>
19497#include <sys/wait.h>
19498#ifndef WEXITSTATUS
19499# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19500#endif
19501#ifndef WIFEXITED
19502# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19503#endif
19504
John Criswell7a73b802003-06-30 21:59:07 +000019505int
19506main ()
19507{
19508 int s;
19509 wait (&s);
19510 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517 (eval $ac_compile) 2>&5
19518 ac_status=$?
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19524 ac_status=$?
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; }; then
19527 ac_cv_header_sys_wait_h=yes
19528else
19529 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019530sed 's/^/| /' conftest.$ac_ext >&5
19531
John Criswell7a73b802003-06-30 21:59:07 +000019532ac_cv_header_sys_wait_h=no
19533fi
19534rm -f conftest.$ac_objext conftest.$ac_ext
19535fi
19536echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19537echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19538if test $ac_cv_header_sys_wait_h = yes; then
19539
19540cat >>confdefs.h <<\_ACEOF
19541#define HAVE_SYS_WAIT_H 1
19542_ACEOF
19543
19544fi
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19556do
19557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19558if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559 echo "$as_me:$LINENO: checking for $ac_header" >&5
19560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19561if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19563fi
19564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19566else
19567 # Is the header compilable?
19568echo "$as_me:$LINENO: checking $ac_header usability" >&5
19569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19570cat >conftest.$ac_ext <<_ACEOF
19571#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019572/* confdefs.h. */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019577$ac_includes_default
19578#include <$ac_header>
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19582 (eval $ac_compile) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_header_compiler=yes
19593else
19594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019595sed 's/^/| /' conftest.$ac_ext >&5
19596
John Criswell7a73b802003-06-30 21:59:07 +000019597ac_header_compiler=no
19598fi
19599rm -f conftest.$ac_objext conftest.$ac_ext
19600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19601echo "${ECHO_T}$ac_header_compiler" >&6
19602
19603# Is the header present?
19604echo "$as_me:$LINENO: checking $ac_header presence" >&5
19605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19606cat >conftest.$ac_ext <<_ACEOF
19607#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019608/* confdefs.h. */
19609_ACEOF
19610cat confdefs.h >>conftest.$ac_ext
19611cat >>conftest.$ac_ext <<_ACEOF
19612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019613#include <$ac_header>
19614_ACEOF
19615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19617 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019618 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } >/dev/null; then
19623 if test -s conftest.err; then
19624 ac_cpp_err=$ac_c_preproc_warn_flag
19625 else
19626 ac_cpp_err=
19627 fi
19628else
19629 ac_cpp_err=yes
19630fi
19631if test -z "$ac_cpp_err"; then
19632 ac_header_preproc=yes
19633else
19634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019635sed 's/^/| /' conftest.$ac_ext >&5
19636
John Criswell7a73b802003-06-30 21:59:07 +000019637 ac_header_preproc=no
19638fi
19639rm -f conftest.err conftest.$ac_ext
19640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19641echo "${ECHO_T}$ac_header_preproc" >&6
19642
19643# So? What about this header?
19644case $ac_header_compiler:$ac_header_preproc in
19645 yes:no )
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19650 (
19651 cat <<\_ASBOX
19652## ------------------------------------ ##
19653## Report this to bug-autoconf@gnu.org. ##
19654## ------------------------------------ ##
19655_ASBOX
19656 ) |
19657 sed "s/^/$as_me: WARNING: /" >&2
19658 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019659 no:yes )
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19666 (
19667 cat <<\_ASBOX
19668## ------------------------------------ ##
19669## Report this to bug-autoconf@gnu.org. ##
19670## ------------------------------------ ##
19671_ASBOX
19672 ) |
19673 sed "s/^/$as_me: WARNING: /" >&2
19674 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019675esac
19676echo "$as_me:$LINENO: checking for $ac_header" >&5
19677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19678if eval "test \"\${$as_ac_Header+set}\" = set"; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680else
19681 eval "$as_ac_Header=$ac_header_preproc"
19682fi
19683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19685
19686fi
19687if test `eval echo '${'$as_ac_Header'}'` = yes; then
19688 cat >>confdefs.h <<_ACEOF
19689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19690_ACEOF
19691
19692fi
19693
19694done
19695
19696
19697
19698
19699
19700
19701for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19702do
19703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19704if eval "test \"\${$as_ac_Header+set}\" = set"; then
19705 echo "$as_me:$LINENO: checking for $ac_header" >&5
19706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19707if eval "test \"\${$as_ac_Header+set}\" = set"; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709fi
19710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19712else
19713 # Is the header compilable?
19714echo "$as_me:$LINENO: checking $ac_header usability" >&5
19715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19716cat >conftest.$ac_ext <<_ACEOF
19717#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019723$ac_includes_default
19724#include <$ac_header>
19725_ACEOF
19726rm -f conftest.$ac_objext
19727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_header_compiler=yes
19739else
19740 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019741sed 's/^/| /' conftest.$ac_ext >&5
19742
John Criswell7a73b802003-06-30 21:59:07 +000019743ac_header_compiler=no
19744fi
19745rm -f conftest.$ac_objext conftest.$ac_ext
19746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19747echo "${ECHO_T}$ac_header_compiler" >&6
19748
19749# Is the header present?
19750echo "$as_me:$LINENO: checking $ac_header presence" >&5
19751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19752cat >conftest.$ac_ext <<_ACEOF
19753#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019759#include <$ac_header>
19760_ACEOF
19761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19763 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019764 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } >/dev/null; then
19769 if test -s conftest.err; then
19770 ac_cpp_err=$ac_c_preproc_warn_flag
19771 else
19772 ac_cpp_err=
19773 fi
19774else
19775 ac_cpp_err=yes
19776fi
19777if test -z "$ac_cpp_err"; then
19778 ac_header_preproc=yes
19779else
19780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019781sed 's/^/| /' conftest.$ac_ext >&5
19782
John Criswell7a73b802003-06-30 21:59:07 +000019783 ac_header_preproc=no
19784fi
19785rm -f conftest.err conftest.$ac_ext
19786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19787echo "${ECHO_T}$ac_header_preproc" >&6
19788
19789# So? What about this header?
19790case $ac_header_compiler:$ac_header_preproc in
19791 yes:no )
19792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19796 (
19797 cat <<\_ASBOX
19798## ------------------------------------ ##
19799## Report this to bug-autoconf@gnu.org. ##
19800## ------------------------------------ ##
19801_ASBOX
19802 ) |
19803 sed "s/^/$as_me: WARNING: /" >&2
19804 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019805 no:yes )
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19812 (
19813 cat <<\_ASBOX
19814## ------------------------------------ ##
19815## Report this to bug-autoconf@gnu.org. ##
19816## ------------------------------------ ##
19817_ASBOX
19818 ) |
19819 sed "s/^/$as_me: WARNING: /" >&2
19820 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019821esac
19822echo "$as_me:$LINENO: checking for $ac_header" >&5
19823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19824if eval "test \"\${$as_ac_Header+set}\" = set"; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827 eval "$as_ac_Header=$ac_header_preproc"
19828fi
19829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19831
19832fi
19833if test `eval echo '${'$as_ac_Header'}'` = yes; then
19834 cat >>confdefs.h <<_ACEOF
19835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19836_ACEOF
19837
19838fi
19839
19840done
19841
19842
19843
19844
19845for ac_header in dlfcn.h link.h
19846do
19847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19848if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo "$as_me:$LINENO: checking for $ac_header" >&5
19850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19851if eval "test \"\${$as_ac_Header+set}\" = set"; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853fi
19854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19856else
19857 # Is the header compilable?
19858echo "$as_me:$LINENO: checking $ac_header usability" >&5
19859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19860cat >conftest.$ac_ext <<_ACEOF
19861#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019862/* confdefs.h. */
19863_ACEOF
19864cat confdefs.h >>conftest.$ac_ext
19865cat >>conftest.$ac_ext <<_ACEOF
19866/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019867$ac_includes_default
19868#include <$ac_header>
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19872 (eval $ac_compile) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_header_compiler=yes
19883else
19884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019885sed 's/^/| /' conftest.$ac_ext >&5
19886
John Criswell7a73b802003-06-30 21:59:07 +000019887ac_header_compiler=no
19888fi
19889rm -f conftest.$ac_objext conftest.$ac_ext
19890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891echo "${ECHO_T}$ac_header_compiler" >&6
19892
19893# Is the header present?
19894echo "$as_me:$LINENO: checking $ac_header presence" >&5
19895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19896cat >conftest.$ac_ext <<_ACEOF
19897#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019898/* confdefs.h. */
19899_ACEOF
19900cat confdefs.h >>conftest.$ac_ext
19901cat >>conftest.$ac_ext <<_ACEOF
19902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019903#include <$ac_header>
19904_ACEOF
19905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19907 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019908 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } >/dev/null; then
19913 if test -s conftest.err; then
19914 ac_cpp_err=$ac_c_preproc_warn_flag
19915 else
19916 ac_cpp_err=
19917 fi
19918else
19919 ac_cpp_err=yes
19920fi
19921if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19923else
19924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019925sed 's/^/| /' conftest.$ac_ext >&5
19926
John Criswell7a73b802003-06-30 21:59:07 +000019927 ac_header_preproc=no
19928fi
19929rm -f conftest.err conftest.$ac_ext
19930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931echo "${ECHO_T}$ac_header_preproc" >&6
19932
19933# So? What about this header?
19934case $ac_header_compiler:$ac_header_preproc in
19935 yes:no )
19936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19940 (
19941 cat <<\_ASBOX
19942## ------------------------------------ ##
19943## Report this to bug-autoconf@gnu.org. ##
19944## ------------------------------------ ##
19945_ASBOX
19946 ) |
19947 sed "s/^/$as_me: WARNING: /" >&2
19948 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019949 no:yes )
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19956 (
19957 cat <<\_ASBOX
19958## ------------------------------------ ##
19959## Report this to bug-autoconf@gnu.org. ##
19960## ------------------------------------ ##
19961_ASBOX
19962 ) |
19963 sed "s/^/$as_me: WARNING: /" >&2
19964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019965esac
19966echo "$as_me:$LINENO: checking for $ac_header" >&5
19967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19968if eval "test \"\${$as_ac_Header+set}\" = set"; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971 eval "$as_ac_Header=$ac_header_preproc"
19972fi
19973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19975
19976fi
19977if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978 cat >>confdefs.h <<_ACEOF
19979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980_ACEOF
19981
19982fi
19983
19984done
19985
19986
19987
John Criswell7a73b802003-06-30 21:59:07 +000019988echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19989echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19990if test "${ac_cv_c_const+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992else
19993 cat >conftest.$ac_ext <<_ACEOF
19994#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019995/* confdefs.h. */
19996_ACEOF
19997cat confdefs.h >>conftest.$ac_ext
19998cat >>conftest.$ac_ext <<_ACEOF
19999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020000
John Criswell7a73b802003-06-30 21:59:07 +000020001int
20002main ()
20003{
20004/* FIXME: Include the comments suggested by Paul. */
20005#ifndef __cplusplus
20006 /* Ultrix mips cc rejects this. */
20007 typedef int charset[2];
20008 const charset x;
20009 /* SunOS 4.1.1 cc rejects this. */
20010 char const *const *ccp;
20011 char **p;
20012 /* NEC SVR4.0.2 mips cc rejects this. */
20013 struct point {int x, y;};
20014 static struct point const zero = {0,0};
20015 /* AIX XL C 1.02.0.0 rejects this.
20016 It does not let you subtract one const X* pointer from another in
20017 an arm of an if-expression whose if-part is not a constant
20018 expression */
20019 const char *g = "string";
20020 ccp = &g + (g ? g-g : 0);
20021 /* HPUX 7.0 cc rejects these. */
20022 ++ccp;
20023 p = (char**) ccp;
20024 ccp = (char const *const *) p;
20025 { /* SCO 3.2v4 cc rejects this. */
20026 char *t;
20027 char const *s = 0 ? (char *) 0 : (char const *) 0;
20028
20029 *t++ = 0;
20030 }
20031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20032 int x[] = {25, 17};
20033 const int *foo = &x[0];
20034 ++foo;
20035 }
20036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20037 typedef const int *iptr;
20038 iptr p = 0;
20039 ++p;
20040 }
20041 { /* AIX XL C 1.02.0.0 rejects this saying
20042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20043 struct s { int j; const int *ap[3]; };
20044 struct s *b; b->j = 5;
20045 }
20046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20047 const int foo = 10;
20048 }
20049#endif
20050
20051 ;
20052 return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext
20056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20057 (eval $ac_compile) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
20061 { ac_try='test -s conftest.$ac_objext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_c_const=yes
20068else
20069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020070sed 's/^/| /' conftest.$ac_ext >&5
20071
John Criswell7a73b802003-06-30 21:59:07 +000020072ac_cv_c_const=no
20073fi
20074rm -f conftest.$ac_objext conftest.$ac_ext
20075fi
20076echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20077echo "${ECHO_T}$ac_cv_c_const" >&6
20078if test $ac_cv_c_const = no; then
20079
20080cat >>confdefs.h <<\_ACEOF
20081#define const
20082_ACEOF
20083
20084fi
20085
20086echo "$as_me:$LINENO: checking for inline" >&5
20087echo $ECHO_N "checking for inline... $ECHO_C" >&6
20088if test "${ac_cv_c_inline+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091 ac_cv_c_inline=no
20092for ac_kw in inline __inline__ __inline; do
20093 cat >conftest.$ac_ext <<_ACEOF
20094#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020095/* confdefs.h. */
20096_ACEOF
20097cat confdefs.h >>conftest.$ac_ext
20098cat >>conftest.$ac_ext <<_ACEOF
20099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020100#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020101typedef int foo_t;
20102static $ac_kw foo_t static_foo () {return 0; }
20103$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020104#endif
20105
20106_ACEOF
20107rm -f conftest.$ac_objext
20108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_cv_c_inline=$ac_kw; break
20120else
20121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020122sed 's/^/| /' conftest.$ac_ext >&5
20123
John Criswell7a73b802003-06-30 21:59:07 +000020124fi
20125rm -f conftest.$ac_objext conftest.$ac_ext
20126done
20127
20128fi
20129echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20130echo "${ECHO_T}$ac_cv_c_inline" >&6
20131case $ac_cv_c_inline in
20132 inline | yes) ;;
20133 no)
20134cat >>confdefs.h <<\_ACEOF
20135#define inline
20136_ACEOF
20137 ;;
20138 *) cat >>confdefs.h <<_ACEOF
20139#define inline $ac_cv_c_inline
20140_ACEOF
20141 ;;
20142esac
20143
20144
20145echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20146echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20147if test "${ac_cv_c_bigendian+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149else
20150 # See if sys/param.h defines the BYTE_ORDER macro.
20151cat >conftest.$ac_ext <<_ACEOF
20152#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020153/* confdefs.h. */
20154_ACEOF
20155cat confdefs.h >>conftest.$ac_ext
20156cat >>conftest.$ac_ext <<_ACEOF
20157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020158#include <sys/types.h>
20159#include <sys/param.h>
20160
John Criswell7a73b802003-06-30 21:59:07 +000020161int
20162main ()
20163{
20164#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20165 bogus endian macros
20166#endif
20167
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext
20173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174 (eval $ac_compile) 2>&5
20175 ac_status=$?
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } &&
20178 { ac_try='test -s conftest.$ac_objext'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20184 # It does; now see whether it defined to BIG_ENDIAN or not.
20185cat >conftest.$ac_ext <<_ACEOF
20186#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020187/* confdefs.h. */
20188_ACEOF
20189cat confdefs.h >>conftest.$ac_ext
20190cat >>conftest.$ac_ext <<_ACEOF
20191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020192#include <sys/types.h>
20193#include <sys/param.h>
20194
John Criswell7a73b802003-06-30 21:59:07 +000020195int
20196main ()
20197{
20198#if BYTE_ORDER != BIG_ENDIAN
20199 not big endian
20200#endif
20201
20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext
20207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -s conftest.$ac_objext'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 ac_cv_c_bigendian=yes
20219else
20220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020221sed 's/^/| /' conftest.$ac_ext >&5
20222
John Criswell7a73b802003-06-30 21:59:07 +000020223ac_cv_c_bigendian=no
20224fi
20225rm -f conftest.$ac_objext conftest.$ac_ext
20226else
20227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020228sed 's/^/| /' conftest.$ac_ext >&5
20229
John Criswell7a73b802003-06-30 21:59:07 +000020230# It does not; compile a test program.
20231if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020232 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020233 ac_cv_c_bigendian=unknown
20234 cat >conftest.$ac_ext <<_ACEOF
20235#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020241short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20242short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20243void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20244short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20245short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20246void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020247int
20248main ()
20249{
20250 _ascii (); _ebcdic ();
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest.$ac_objext
20256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } &&
20261 { ac_try='test -s conftest.$ac_objext'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020267 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020268 ac_cv_c_bigendian=yes
20269fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020270if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020271 if test "$ac_cv_c_bigendian" = unknown; then
20272 ac_cv_c_bigendian=no
20273 else
20274 # finding both strings is unlikely to happen, but who knows?
20275 ac_cv_c_bigendian=unknown
20276 fi
20277fi
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 +000020282fi
20283rm -f conftest.$ac_objext conftest.$ac_ext
20284else
20285 cat >conftest.$ac_ext <<_ACEOF
20286#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020287/* confdefs.h. */
20288_ACEOF
20289cat confdefs.h >>conftest.$ac_ext
20290cat >>conftest.$ac_ext <<_ACEOF
20291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020292int
20293main ()
20294{
20295 /* Are we little or big endian? From Harbison&Steele. */
20296 union
20297 {
20298 long l;
20299 char c[sizeof (long)];
20300 } u;
20301 u.l = 1;
20302 exit (u.c[sizeof (long) - 1] == 1);
20303}
20304_ACEOF
20305rm -f conftest$ac_exeext
20306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20307 (eval $ac_link) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20313 ac_status=$?
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 ac_cv_c_bigendian=no
20317else
20318 echo "$as_me: program exited with status $ac_status" >&5
20319echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020320sed 's/^/| /' conftest.$ac_ext >&5
20321
John Criswell7a73b802003-06-30 21:59:07 +000020322( exit $ac_status )
20323ac_cv_c_bigendian=yes
20324fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020325rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020326fi
20327fi
20328rm -f conftest.$ac_objext conftest.$ac_ext
20329fi
20330echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20331echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20332case $ac_cv_c_bigendian in
20333 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020334
20335cat >>confdefs.h <<\_ACEOF
20336#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020337_ACEOF
20338 ;;
20339 no)
John Criswell5ab73462003-10-09 15:44:28 +000020340
20341cat >>confdefs.h <<\_ACEOF
20342#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020343_ACEOF
20344 ;;
20345 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020346 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020347presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020348echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020349presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20350 { (exit 1); exit 1; }; } ;;
20351esac
20352
20353
20354echo "$as_me:$LINENO: checking for pid_t" >&5
20355echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20356if test "${ac_cv_type_pid_t+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359 cat >conftest.$ac_ext <<_ACEOF
20360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020361/* confdefs.h. */
20362_ACEOF
20363cat confdefs.h >>conftest.$ac_ext
20364cat >>conftest.$ac_ext <<_ACEOF
20365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020366$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020367int
20368main ()
20369{
20370if ((pid_t *) 0)
20371 return 0;
20372if (sizeof (pid_t))
20373 return 0;
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20380 (eval $ac_compile) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
20384 { ac_try='test -s conftest.$ac_objext'
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_cv_type_pid_t=yes
20391else
20392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020393sed 's/^/| /' conftest.$ac_ext >&5
20394
John Criswell7a73b802003-06-30 21:59:07 +000020395ac_cv_type_pid_t=no
20396fi
20397rm -f conftest.$ac_objext conftest.$ac_ext
20398fi
20399echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20400echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20401if test $ac_cv_type_pid_t = yes; then
20402 :
20403else
20404
20405cat >>confdefs.h <<_ACEOF
20406#define pid_t int
20407_ACEOF
20408
20409fi
20410
20411echo "$as_me:$LINENO: checking for size_t" >&5
20412echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20413if test "${ac_cv_type_size_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 ((size_t *) 0)
20428 return 0;
20429if (sizeof (size_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_size_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_size_t=no
20453fi
20454rm -f conftest.$ac_objext conftest.$ac_ext
20455fi
20456echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20457echo "${ECHO_T}$ac_cv_type_size_t" >&6
20458if test $ac_cv_type_size_t = yes; then
20459 :
20460else
20461
20462cat >>confdefs.h <<_ACEOF
20463#define size_t unsigned
20464_ACEOF
20465
20466fi
20467
20468echo "$as_me:$LINENO: checking for int64_t" >&5
20469echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20470if test "${ac_cv_type_int64_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 ((int64_t *) 0)
20485 return 0;
20486if (sizeof (int64_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_int64_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_int64_t=no
20510fi
20511rm -f conftest.$ac_objext conftest.$ac_ext
20512fi
20513echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20514echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20515if test $ac_cv_type_int64_t = yes; then
20516
20517cat >>confdefs.h <<_ACEOF
20518#define HAVE_INT64_T 1
20519_ACEOF
20520
20521
20522else
20523 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20524echo "$as_me: error: Type int64_t required but not found" >&2;}
20525 { (exit 1); exit 1; }; }
20526fi
20527
20528echo "$as_me:$LINENO: checking for uint64_t" >&5
20529echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20530if test "${ac_cv_type_uint64_t+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532else
20533 cat >conftest.$ac_ext <<_ACEOF
20534#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020540$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020541int
20542main ()
20543{
20544if ((uint64_t *) 0)
20545 return 0;
20546if (sizeof (uint64_t))
20547 return 0;
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>&5
20555 ac_status=$?
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -s conftest.$ac_objext'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; }; then
20564 ac_cv_type_uint64_t=yes
20565else
20566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020567sed 's/^/| /' conftest.$ac_ext >&5
20568
John Criswell7a73b802003-06-30 21:59:07 +000020569ac_cv_type_uint64_t=no
20570fi
20571rm -f conftest.$ac_objext conftest.$ac_ext
20572fi
20573echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20574echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20575if test $ac_cv_type_uint64_t = yes; then
20576
20577cat >>confdefs.h <<_ACEOF
20578#define HAVE_UINT64_T 1
20579_ACEOF
20580
20581
20582else
20583 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20584echo "$as_me: error: Type uint64_t required but not found" >&2;}
20585 { (exit 1); exit 1; }; }
20586fi
20587
20588echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20589echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20590if test "${ac_cv_header_time+set}" = set; then
20591 echo $ECHO_N "(cached) $ECHO_C" >&6
20592else
20593 cat >conftest.$ac_ext <<_ACEOF
20594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020600#include <sys/types.h>
20601#include <sys/time.h>
20602#include <time.h>
20603
John Criswell7a73b802003-06-30 21:59:07 +000020604int
20605main ()
20606{
20607if ((struct tm *) 0)
20608return 0;
20609 ;
20610 return 0;
20611}
20612_ACEOF
20613rm -f conftest.$ac_objext
20614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } &&
20619 { ac_try='test -s conftest.$ac_objext'
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; }; then
20625 ac_cv_header_time=yes
20626else
20627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020628sed 's/^/| /' conftest.$ac_ext >&5
20629
John Criswell7a73b802003-06-30 21:59:07 +000020630ac_cv_header_time=no
20631fi
20632rm -f conftest.$ac_objext conftest.$ac_ext
20633fi
20634echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20635echo "${ECHO_T}$ac_cv_header_time" >&6
20636if test $ac_cv_header_time = yes; then
20637
20638cat >>confdefs.h <<\_ACEOF
20639#define TIME_WITH_SYS_TIME 1
20640_ACEOF
20641
20642fi
20643
20644echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20645echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20646if test "${ac_cv_struct_tm+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20648else
20649 cat >conftest.$ac_ext <<_ACEOF
20650#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020651/* confdefs.h. */
20652_ACEOF
20653cat confdefs.h >>conftest.$ac_ext
20654cat >>conftest.$ac_ext <<_ACEOF
20655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020656#include <sys/types.h>
20657#include <time.h>
20658
John Criswell7a73b802003-06-30 21:59:07 +000020659int
20660main ()
20661{
20662struct tm *tp; tp->tm_sec;
20663 ;
20664 return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext
20668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>&5
20670 ac_status=$?
20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672 (exit $ac_status); } &&
20673 { ac_try='test -s conftest.$ac_objext'
20674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675 (eval $ac_try) 2>&5
20676 ac_status=$?
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); }; }; then
20679 ac_cv_struct_tm=time.h
20680else
20681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020682sed 's/^/| /' conftest.$ac_ext >&5
20683
John Criswell7a73b802003-06-30 21:59:07 +000020684ac_cv_struct_tm=sys/time.h
20685fi
20686rm -f conftest.$ac_objext conftest.$ac_ext
20687fi
20688echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20689echo "${ECHO_T}$ac_cv_struct_tm" >&6
20690if test $ac_cv_struct_tm = sys/time.h; then
20691
20692cat >>confdefs.h <<\_ACEOF
20693#define TM_IN_SYS_TIME 1
20694_ACEOF
20695
20696fi
20697
20698
John Criswell7a73b802003-06-30 21:59:07 +000020699echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20700echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20701if test "${ac_cv_cxx_namespaces+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703else
20704
20705
20706 ac_ext=cc
20707ac_cpp='$CXXCPP $CPPFLAGS'
20708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20711
20712 cat >conftest.$ac_ext <<_ACEOF
20713#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020714/* confdefs.h. */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020719namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020720int
20721main ()
20722{
20723using namespace Outer::Inner; return i;
20724 ;
20725 return 0;
20726}
20727_ACEOF
20728rm -f conftest.$ac_objext
20729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20730 (eval $ac_compile) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -s conftest.$ac_objext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 ac_cv_cxx_namespaces=yes
20741else
20742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020743sed 's/^/| /' conftest.$ac_ext >&5
20744
John Criswell7a73b802003-06-30 21:59:07 +000020745ac_cv_cxx_namespaces=no
20746fi
20747rm -f conftest.$ac_objext conftest.$ac_ext
20748 ac_ext=c
20749ac_cpp='$CPP $CPPFLAGS'
20750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752ac_compiler_gnu=$ac_cv_c_compiler_gnu
20753
20754
20755fi
20756echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20757echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20758if test "$ac_cv_cxx_namespaces" = yes; then
20759
20760cat >>confdefs.h <<\_ACEOF
20761#define HAVE_NAMESPACES
20762_ACEOF
20763
20764fi
20765
20766echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20767echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20768if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20770else
20771
20772
20773
20774 ac_ext=cc
20775ac_cpp='$CXXCPP $CPPFLAGS'
20776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20779
20780 cat >conftest.$ac_ext <<_ACEOF
20781#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020782/* confdefs.h. */
20783_ACEOF
20784cat confdefs.h >>conftest.$ac_ext
20785cat >>conftest.$ac_ext <<_ACEOF
20786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020787#include <ext/hash_map>
20788#ifdef HAVE_NAMESPACES
20789using namespace std;
20790#endif
John Criswell7a73b802003-06-30 21:59:07 +000020791int
20792main ()
20793{
20794hash_map<int, int> t; return 0;
20795 ;
20796 return 0;
20797}
20798_ACEOF
20799rm -f conftest.$ac_objext
20800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20801 (eval $ac_compile) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } &&
20805 { ac_try='test -s conftest.$ac_objext'
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_cxx_have_ext_hash_map=std
20812else
20813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020814sed 's/^/| /' conftest.$ac_ext >&5
20815
John Criswell7a73b802003-06-30 21:59:07 +000020816ac_cv_cxx_have_ext_hash_map=no
20817fi
20818rm -f conftest.$ac_objext conftest.$ac_ext
20819 cat >conftest.$ac_ext <<_ACEOF
20820#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020826#include <ext/hash_map>
20827#ifdef HAVE_NAMESPACES
20828using namespace __gnu_cxx;
20829#endif
John Criswell7a73b802003-06-30 21:59:07 +000020830int
20831main ()
20832{
20833hash_map<int, int> t; return 0;
20834 ;
20835 return 0;
20836}
20837_ACEOF
20838rm -f conftest.$ac_objext
20839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20840 (eval $ac_compile) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
20844 { ac_try='test -s conftest.$ac_objext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_cxx_have_ext_hash_map=gnu
20851else
20852 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020853sed 's/^/| /' conftest.$ac_ext >&5
20854
John Criswell7a73b802003-06-30 21:59:07 +000020855ac_cv_cxx_have_ext_hash_map=no
20856fi
20857rm -f conftest.$ac_objext conftest.$ac_ext
20858 ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865fi
20866echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20867echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20868if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20869
20870cat >>confdefs.h <<\_ACEOF
20871#define HAVE_STD_EXT_HASH_MAP
20872_ACEOF
20873
20874fi
20875if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20876
20877cat >>confdefs.h <<\_ACEOF
20878#define HAVE_GNU_EXT_HASH_MAP
20879_ACEOF
20880
20881fi
20882
20883echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20884echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20885if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20887else
20888
20889
20890
20891 ac_ext=cc
20892ac_cpp='$CXXCPP $CPPFLAGS'
20893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20896
20897 cat >conftest.$ac_ext <<_ACEOF
20898#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020904#include <ext/hash_set>
20905#ifdef HAVE_NAMESPACES
20906using namespace std;
20907#endif
John Criswell7a73b802003-06-30 21:59:07 +000020908int
20909main ()
20910{
20911hash_set<int> t; return 0;
20912 ;
20913 return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext
20917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20918 (eval $ac_compile) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -s conftest.$ac_objext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_cv_cxx_have_ext_hash_set=std
20929else
20930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020931sed 's/^/| /' conftest.$ac_ext >&5
20932
John Criswell7a73b802003-06-30 21:59:07 +000020933ac_cv_cxx_have_ext_hash_set=no
20934fi
20935rm -f conftest.$ac_objext conftest.$ac_ext
20936 cat >conftest.$ac_ext <<_ACEOF
20937#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020943#include <ext/hash_set>
20944#ifdef HAVE_NAMESPACES
20945using namespace __gnu_cxx;
20946#endif
John Criswell7a73b802003-06-30 21:59:07 +000020947int
20948main ()
20949{
20950hash_set<int> t; return 0;
20951 ;
20952 return 0;
20953}
20954_ACEOF
20955rm -f conftest.$ac_objext
20956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20957 (eval $ac_compile) 2>&5
20958 ac_status=$?
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
20961 { ac_try='test -s conftest.$ac_objext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 ac_cv_cxx_have_ext_hash_set=gnu
20968else
20969 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020970sed 's/^/| /' conftest.$ac_ext >&5
20971
John Criswell7a73b802003-06-30 21:59:07 +000020972ac_cv_cxx_have_ext_hash_set=no
20973fi
20974rm -f conftest.$ac_objext conftest.$ac_ext
20975 ac_ext=c
20976ac_cpp='$CPP $CPPFLAGS'
20977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979ac_compiler_gnu=$ac_cv_c_compiler_gnu
20980
20981
20982fi
20983echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20984echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20985if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20986
20987cat >>confdefs.h <<\_ACEOF
20988#define HAVE_STD_EXT_HASH_SET
20989_ACEOF
20990
20991fi
20992if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20993
20994cat >>confdefs.h <<\_ACEOF
20995#define HAVE_GNU_EXT_HASH_SET
20996_ACEOF
20997
20998fi
20999
21000echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21001echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21002if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004else
21005
21006
21007
21008 ac_ext=cc
21009ac_cpp='$CXXCPP $CPPFLAGS'
21010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21013
21014 cat >conftest.$ac_ext <<_ACEOF
21015#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021016/* confdefs.h. */
21017_ACEOF
21018cat confdefs.h >>conftest.$ac_ext
21019cat >>conftest.$ac_ext <<_ACEOF
21020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021021#include <ext/slist>
21022#ifdef HAVE_NAMESPACES
21023using namespace std;
21024#endif
John Criswell7a73b802003-06-30 21:59:07 +000021025int
21026main ()
21027{
21028slist<int> s; return 0;
21029 ;
21030 return 0;
21031}
21032_ACEOF
21033rm -f conftest.$ac_objext
21034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21035 (eval $ac_compile) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -s conftest.$ac_objext'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_cxx_have_ext_slist=std
21046else
21047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021048sed 's/^/| /' conftest.$ac_ext >&5
21049
John Criswell7a73b802003-06-30 21:59:07 +000021050ac_cv_cxx_have_ext_slist=no
21051fi
21052rm -f conftest.$ac_objext conftest.$ac_ext
21053 cat >conftest.$ac_ext <<_ACEOF
21054#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021055/* confdefs.h. */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021060#include <ext/slist>
21061#ifdef HAVE_NAMESPACES
21062using namespace __gnu_cxx;
21063#endif
John Criswell7a73b802003-06-30 21:59:07 +000021064int
21065main ()
21066{
21067slist<int> s; return 0;
21068 ;
21069 return 0;
21070}
21071_ACEOF
21072rm -f conftest.$ac_objext
21073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074 (eval $ac_compile) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); } &&
21078 { ac_try='test -s conftest.$ac_objext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_cxx_have_ext_slist=gnu
21085else
21086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021087sed 's/^/| /' conftest.$ac_ext >&5
21088
John Criswell7a73b802003-06-30 21:59:07 +000021089ac_cv_cxx_have_ext_slist=no
21090fi
21091rm -f conftest.$ac_objext conftest.$ac_ext
21092
21093 ac_ext=c
21094ac_cpp='$CPP $CPPFLAGS'
21095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097ac_compiler_gnu=$ac_cv_c_compiler_gnu
21098
21099
21100fi
21101echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21102echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21103if test "$ac_cv_cxx_have_ext_slist" = std; then
21104
21105cat >>confdefs.h <<\_ACEOF
21106#define HAVE_EXT_SLIST std
21107_ACEOF
21108
21109fi
21110if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21111
21112cat >>confdefs.h <<\_ACEOF
21113#define HAVE_EXT_SLIST gnu
21114_ACEOF
21115
21116fi
21117
21118echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21119echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21120if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122else
21123
21124
21125
21126 ac_ext=cc
21127ac_cpp='$CXXCPP $CPPFLAGS'
21128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21131
21132 cat >conftest.$ac_ext <<_ACEOF
21133#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
21138/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021139#include <iterator>
21140#ifdef HAVE_NAMESPACES
21141using namespace std;
21142#endif
John Criswell7a73b802003-06-30 21:59:07 +000021143int
21144main ()
21145{
21146iterator<int,int,int> t; return 0;
21147 ;
21148 return 0;
21149}
21150_ACEOF
21151rm -f conftest.$ac_objext
21152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153 (eval $ac_compile) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
21157 { ac_try='test -s conftest.$ac_objext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 ac_cv_cxx_have_std_iterator=yes
21164else
21165 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021166sed 's/^/| /' conftest.$ac_ext >&5
21167
John Criswell7a73b802003-06-30 21:59:07 +000021168ac_cv_cxx_have_std_iterator=no
21169fi
21170rm -f conftest.$ac_objext conftest.$ac_ext
21171 ac_ext=c
21172ac_cpp='$CPP $CPPFLAGS'
21173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21175ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176
21177
21178fi
21179echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21180echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21181if test "$ac_cv_cxx_have_std_iterator" = yes; then
21182
21183cat >>confdefs.h <<\_ACEOF
21184#define HAVE_STD_ITERATOR
21185_ACEOF
21186
21187fi
21188
21189echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21190echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21191if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193else
21194
21195
21196
21197 ac_ext=cc
21198ac_cpp='$CXXCPP $CPPFLAGS'
21199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21202
21203 cat >conftest.$ac_ext <<_ACEOF
21204#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021205/* confdefs.h. */
21206_ACEOF
21207cat confdefs.h >>conftest.$ac_ext
21208cat >>conftest.$ac_ext <<_ACEOF
21209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021210#include <iterator>
21211#ifdef HAVE_NAMESPACES
21212using namespace std;
21213#endif
John Criswell7a73b802003-06-30 21:59:07 +000021214int
21215main ()
21216{
John Criswellc78022e2003-07-29 19:11:58 +000021217bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021218 ;
21219 return 0;
21220}
21221_ACEOF
21222rm -f conftest.$ac_objext
21223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21224 (eval $ac_compile) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_cxx_have_bi_iterator=yes
21235else
21236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021237sed 's/^/| /' conftest.$ac_ext >&5
21238
John Criswell7a73b802003-06-30 21:59:07 +000021239ac_cv_cxx_have_bi_iterator=no
21240fi
21241rm -f conftest.$ac_objext conftest.$ac_ext
21242 ac_ext=c
21243ac_cpp='$CPP $CPPFLAGS'
21244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246ac_compiler_gnu=$ac_cv_c_compiler_gnu
21247
21248
21249fi
21250echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21251echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21252if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21253
21254cat >>confdefs.h <<\_ACEOF
21255#define HAVE_BI_ITERATOR
21256_ACEOF
21257
21258fi
21259
21260echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21261echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21262if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264else
21265
21266
21267
21268 ac_ext=cc
21269ac_cpp='$CXXCPP $CPPFLAGS'
21270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21273
21274 cat >conftest.$ac_ext <<_ACEOF
21275#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021281#include <iterator>
21282#ifdef HAVE_NAMESPACES
21283using namespace std;
21284#endif
John Criswell7a73b802003-06-30 21:59:07 +000021285int
21286main ()
21287{
John Criswellc78022e2003-07-29 19:11:58 +000021288forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021289 ;
21290 return 0;
21291}
21292_ACEOF
21293rm -f conftest.$ac_objext
21294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21295 (eval $ac_compile) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } &&
21299 { ac_try='test -s conftest.$ac_objext'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_cxx_have_fwd_iterator=yes
21306else
21307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021308sed 's/^/| /' conftest.$ac_ext >&5
21309
John Criswell7a73b802003-06-30 21:59:07 +000021310ac_cv_cxx_have_fwd_iterator=no
21311fi
21312rm -f conftest.$ac_objext conftest.$ac_ext
21313 ac_ext=c
21314ac_cpp='$CPP $CPPFLAGS'
21315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21317ac_compiler_gnu=$ac_cv_c_compiler_gnu
21318
21319
21320fi
21321echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21322echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21323if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21324
21325cat >>confdefs.h <<\_ACEOF
21326#define HAVE_FWD_ITERATOR
21327_ACEOF
21328
21329fi
21330
21331
21332# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21333# for constant arguments. Useless!
21334echo "$as_me:$LINENO: checking for working alloca.h" >&5
21335echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21336if test "${ac_cv_working_alloca_h+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338else
21339 cat >conftest.$ac_ext <<_ACEOF
21340#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021341/* confdefs.h. */
21342_ACEOF
21343cat confdefs.h >>conftest.$ac_ext
21344cat >>conftest.$ac_ext <<_ACEOF
21345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021346#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021347int
21348main ()
21349{
21350char *p = (char *) alloca (2 * sizeof (int));
21351 ;
21352 return 0;
21353}
21354_ACEOF
21355rm -f conftest.$ac_objext conftest$ac_exeext
21356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357 (eval $ac_link) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -s conftest$ac_exeext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_working_alloca_h=yes
21368else
21369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021370sed 's/^/| /' conftest.$ac_ext >&5
21371
John Criswell7a73b802003-06-30 21:59:07 +000021372ac_cv_working_alloca_h=no
21373fi
21374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375fi
21376echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21377echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21378if test $ac_cv_working_alloca_h = yes; then
21379
21380cat >>confdefs.h <<\_ACEOF
21381#define HAVE_ALLOCA_H 1
21382_ACEOF
21383
21384fi
21385
21386echo "$as_me:$LINENO: checking for alloca" >&5
21387echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21388if test "${ac_cv_func_alloca_works+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21390else
21391 cat >conftest.$ac_ext <<_ACEOF
21392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021393/* confdefs.h. */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021398#ifdef __GNUC__
21399# define alloca __builtin_alloca
21400#else
21401# ifdef _MSC_VER
21402# include <malloc.h>
21403# define alloca _alloca
21404# else
21405# if HAVE_ALLOCA_H
21406# include <alloca.h>
21407# else
21408# ifdef _AIX
21409 #pragma alloca
21410# else
21411# ifndef alloca /* predefined by HP cc +Olibcalls */
21412char *alloca ();
21413# endif
21414# endif
21415# endif
21416# endif
21417#endif
21418
John Criswell7a73b802003-06-30 21:59:07 +000021419int
21420main ()
21421{
21422char *p = (char *) alloca (1);
21423 ;
21424 return 0;
21425}
21426_ACEOF
21427rm -f conftest.$ac_objext conftest$ac_exeext
21428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } &&
21433 { ac_try='test -s conftest$ac_exeext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_func_alloca_works=yes
21440else
21441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021442sed 's/^/| /' conftest.$ac_ext >&5
21443
John Criswell7a73b802003-06-30 21:59:07 +000021444ac_cv_func_alloca_works=no
21445fi
21446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21447fi
21448echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21449echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21450
21451if test $ac_cv_func_alloca_works = yes; then
21452
21453cat >>confdefs.h <<\_ACEOF
21454#define HAVE_ALLOCA 1
21455_ACEOF
21456
21457else
21458 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21459# that cause trouble. Some versions do not even contain alloca or
21460# contain a buggy version. If you still want to use their alloca,
21461# use ar to extract alloca.o from them instead of compiling alloca.c.
21462
21463ALLOCA=alloca.$ac_objext
21464
21465cat >>confdefs.h <<\_ACEOF
21466#define C_ALLOCA 1
21467_ACEOF
21468
21469
21470echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21471echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21472if test "${ac_cv_os_cray+set}" = set; then
21473 echo $ECHO_N "(cached) $ECHO_C" >&6
21474else
21475 cat >conftest.$ac_ext <<_ACEOF
21476#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021477/* confdefs.h. */
21478_ACEOF
21479cat confdefs.h >>conftest.$ac_ext
21480cat >>conftest.$ac_ext <<_ACEOF
21481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021482#if defined(CRAY) && ! defined(CRAY2)
21483webecray
21484#else
21485wenotbecray
21486#endif
21487
21488_ACEOF
21489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021490 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021491 ac_cv_os_cray=yes
21492else
21493 ac_cv_os_cray=no
21494fi
21495rm -f conftest*
21496
21497fi
21498echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21499echo "${ECHO_T}$ac_cv_os_cray" >&6
21500if test $ac_cv_os_cray = yes; then
21501 for ac_func in _getb67 GETB67 getb67; do
21502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21503echo "$as_me:$LINENO: checking for $ac_func" >&5
21504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21505if eval "test \"\${$as_ac_var+set}\" = set"; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507else
21508 cat >conftest.$ac_ext <<_ACEOF
21509#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021515/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021516 which can conflict with char $ac_func (); below.
21517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518 <limits.h> exists even on freestanding compilers. */
21519#ifdef __STDC__
21520# include <limits.h>
21521#else
21522# include <assert.h>
21523#endif
John Criswell7a73b802003-06-30 21:59:07 +000021524/* Override any gcc2 internal prototype to avoid an error. */
21525#ifdef __cplusplus
21526extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021527{
John Criswell7a73b802003-06-30 21:59:07 +000021528#endif
21529/* We use char because int might match the return type of a gcc2
21530 builtin and then its argument prototype would still apply. */
21531char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021532/* The GNU C library defines this for functions which it implements
21533 to always fail with ENOSYS. Some functions are actually named
21534 something starting with __ and the normal name is an alias. */
21535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21536choke me
21537#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021538char (*f) () = $ac_func;
21539#endif
21540#ifdef __cplusplus
21541}
John Criswell7a73b802003-06-30 21:59:07 +000021542#endif
21543
John Criswell0c38eaf2003-09-10 15:17:25 +000021544int
21545main ()
21546{
21547return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021548 ;
21549 return 0;
21550}
21551_ACEOF
21552rm -f conftest.$ac_objext conftest$ac_exeext
21553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21555 ac_status=$?
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } &&
21558 { ac_try='test -s conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 eval "$as_ac_var=yes"
21565else
21566 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021567sed 's/^/| /' conftest.$ac_ext >&5
21568
John Criswell7a73b802003-06-30 21:59:07 +000021569eval "$as_ac_var=no"
21570fi
21571rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21572fi
21573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21575if test `eval echo '${'$as_ac_var'}'` = yes; then
21576
21577cat >>confdefs.h <<_ACEOF
21578#define CRAY_STACKSEG_END $ac_func
21579_ACEOF
21580
21581 break
21582fi
21583
21584 done
21585fi
21586
21587echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21588echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21589if test "${ac_cv_c_stack_direction+set}" = set; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21591else
21592 if test "$cross_compiling" = yes; then
21593 ac_cv_c_stack_direction=0
21594else
21595 cat >conftest.$ac_ext <<_ACEOF
21596#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021597/* confdefs.h. */
21598_ACEOF
21599cat confdefs.h >>conftest.$ac_ext
21600cat >>conftest.$ac_ext <<_ACEOF
21601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021602int
21603find_stack_direction ()
21604{
21605 static char *addr = 0;
21606 auto char dummy;
21607 if (addr == 0)
21608 {
21609 addr = &dummy;
21610 return find_stack_direction ();
21611 }
21612 else
21613 return (&dummy > addr) ? 1 : -1;
21614}
21615
21616int
21617main ()
21618{
21619 exit (find_stack_direction () < 0);
21620}
21621_ACEOF
21622rm -f conftest$ac_exeext
21623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21624 (eval $ac_link) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_c_stack_direction=1
21634else
21635 echo "$as_me: program exited with status $ac_status" >&5
21636echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021637sed 's/^/| /' conftest.$ac_ext >&5
21638
John Criswell7a73b802003-06-30 21:59:07 +000021639( exit $ac_status )
21640ac_cv_c_stack_direction=-1
21641fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021642rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021643fi
21644fi
21645echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21646echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21647
21648cat >>confdefs.h <<_ACEOF
21649#define STACK_DIRECTION $ac_cv_c_stack_direction
21650_ACEOF
21651
21652
21653fi
21654
21655if test $ac_cv_c_compiler_gnu = yes; then
21656 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21657echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21658if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660else
21661 ac_pattern="Autoconf.*'x'"
21662 cat >conftest.$ac_ext <<_ACEOF
21663#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021669#include <sgtty.h>
21670Autoconf TIOCGETP
21671_ACEOF
21672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021673 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021674 ac_cv_prog_gcc_traditional=yes
21675else
21676 ac_cv_prog_gcc_traditional=no
21677fi
21678rm -f conftest*
21679
21680
21681 if test $ac_cv_prog_gcc_traditional = no; then
21682 cat >conftest.$ac_ext <<_ACEOF
21683#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021684/* confdefs.h. */
21685_ACEOF
21686cat confdefs.h >>conftest.$ac_ext
21687cat >>conftest.$ac_ext <<_ACEOF
21688/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021689#include <termio.h>
21690Autoconf TCGETA
21691_ACEOF
21692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021694 ac_cv_prog_gcc_traditional=yes
21695fi
21696rm -f conftest*
21697
21698 fi
21699fi
21700echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21701echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21702 if test $ac_cv_prog_gcc_traditional = yes; then
21703 CC="$CC -traditional"
21704 fi
21705fi
21706
21707echo "$as_me:$LINENO: checking for working memcmp" >&5
21708echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21709if test "${ac_cv_func_memcmp_working+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711else
21712 if test "$cross_compiling" = yes; then
21713 ac_cv_func_memcmp_working=no
21714else
21715 cat >conftest.$ac_ext <<_ACEOF
21716#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021722
John Criswell7a73b802003-06-30 21:59:07 +000021723int
21724main ()
21725{
21726
21727 /* Some versions of memcmp are not 8-bit clean. */
21728 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21729 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21730 exit (1);
21731
21732 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21733 or more and with at least one buffer not starting on a 4-byte boundary.
21734 William Lewis provided this test program. */
21735 {
21736 char foo[21];
21737 char bar[21];
21738 int i;
21739 for (i = 0; i < 4; i++)
21740 {
21741 char *a = foo + i;
21742 char *b = bar + i;
21743 strcpy (a, "--------01111111");
21744 strcpy (b, "--------10000000");
21745 if (memcmp (a, b, 16) >= 0)
21746 exit (1);
21747 }
21748 exit (0);
21749 }
21750
21751 ;
21752 return 0;
21753}
21754_ACEOF
21755rm -f conftest$ac_exeext
21756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21757 (eval $ac_link) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_func_memcmp_working=yes
21767else
21768 echo "$as_me: program exited with status $ac_status" >&5
21769echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021770sed 's/^/| /' conftest.$ac_ext >&5
21771
John Criswell7a73b802003-06-30 21:59:07 +000021772( exit $ac_status )
21773ac_cv_func_memcmp_working=no
21774fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021775rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021776fi
21777fi
21778echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21779echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21780test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21781
21782
21783
21784for ac_header in stdlib.h unistd.h
21785do
21786as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21787if eval "test \"\${$as_ac_Header+set}\" = set"; then
21788 echo "$as_me:$LINENO: checking for $ac_header" >&5
21789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21790if eval "test \"\${$as_ac_Header+set}\" = set"; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792fi
21793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21795else
21796 # Is the header compilable?
21797echo "$as_me:$LINENO: checking $ac_header usability" >&5
21798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21799cat >conftest.$ac_ext <<_ACEOF
21800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021801/* confdefs.h. */
21802_ACEOF
21803cat confdefs.h >>conftest.$ac_ext
21804cat >>conftest.$ac_ext <<_ACEOF
21805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021806$ac_includes_default
21807#include <$ac_header>
21808_ACEOF
21809rm -f conftest.$ac_objext
21810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21811 (eval $ac_compile) 2>&5
21812 ac_status=$?
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } &&
21815 { ac_try='test -s conftest.$ac_objext'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; }; then
21821 ac_header_compiler=yes
21822else
21823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021824sed 's/^/| /' conftest.$ac_ext >&5
21825
John Criswell7a73b802003-06-30 21:59:07 +000021826ac_header_compiler=no
21827fi
21828rm -f conftest.$ac_objext conftest.$ac_ext
21829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21830echo "${ECHO_T}$ac_header_compiler" >&6
21831
21832# Is the header present?
21833echo "$as_me:$LINENO: checking $ac_header presence" >&5
21834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21835cat >conftest.$ac_ext <<_ACEOF
21836#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021837/* confdefs.h. */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021842#include <$ac_header>
21843_ACEOF
21844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21846 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021847 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021848 rm -f conftest.er1
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } >/dev/null; then
21852 if test -s conftest.err; then
21853 ac_cpp_err=$ac_c_preproc_warn_flag
21854 else
21855 ac_cpp_err=
21856 fi
21857else
21858 ac_cpp_err=yes
21859fi
21860if test -z "$ac_cpp_err"; then
21861 ac_header_preproc=yes
21862else
21863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021864sed 's/^/| /' conftest.$ac_ext >&5
21865
John Criswell7a73b802003-06-30 21:59:07 +000021866 ac_header_preproc=no
21867fi
21868rm -f conftest.err conftest.$ac_ext
21869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21870echo "${ECHO_T}$ac_header_preproc" >&6
21871
21872# So? What about this header?
21873case $ac_header_compiler:$ac_header_preproc in
21874 yes:no )
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21879 (
21880 cat <<\_ASBOX
21881## ------------------------------------ ##
21882## Report this to bug-autoconf@gnu.org. ##
21883## ------------------------------------ ##
21884_ASBOX
21885 ) |
21886 sed "s/^/$as_me: WARNING: /" >&2
21887 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021888 no:yes )
21889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21895 (
21896 cat <<\_ASBOX
21897## ------------------------------------ ##
21898## Report this to bug-autoconf@gnu.org. ##
21899## ------------------------------------ ##
21900_ASBOX
21901 ) |
21902 sed "s/^/$as_me: WARNING: /" >&2
21903 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021904esac
21905echo "$as_me:$LINENO: checking for $ac_header" >&5
21906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21907if eval "test \"\${$as_ac_Header+set}\" = set"; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21909else
21910 eval "$as_ac_Header=$ac_header_preproc"
21911fi
21912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21914
21915fi
21916if test `eval echo '${'$as_ac_Header'}'` = yes; then
21917 cat >>confdefs.h <<_ACEOF
21918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21919_ACEOF
21920
21921fi
21922
21923done
21924
21925
21926for ac_func in getpagesize
21927do
21928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21929echo "$as_me:$LINENO: checking for $ac_func" >&5
21930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21931if eval "test \"\${$as_ac_var+set}\" = set"; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21933else
21934 cat >conftest.$ac_ext <<_ACEOF
21935#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021941/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021942 which can conflict with char $ac_func (); below.
21943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21944 <limits.h> exists even on freestanding compilers. */
21945#ifdef __STDC__
21946# include <limits.h>
21947#else
21948# include <assert.h>
21949#endif
John Criswell7a73b802003-06-30 21:59:07 +000021950/* Override any gcc2 internal prototype to avoid an error. */
21951#ifdef __cplusplus
21952extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021953{
John Criswell7a73b802003-06-30 21:59:07 +000021954#endif
21955/* We use char because int might match the return type of a gcc2
21956 builtin and then its argument prototype would still apply. */
21957char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021958/* The GNU C library defines this for functions which it implements
21959 to always fail with ENOSYS. Some functions are actually named
21960 something starting with __ and the normal name is an alias. */
21961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21962choke me
21963#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021964char (*f) () = $ac_func;
21965#endif
21966#ifdef __cplusplus
21967}
John Criswell7a73b802003-06-30 21:59:07 +000021968#endif
21969
John Criswell0c38eaf2003-09-10 15:17:25 +000021970int
21971main ()
21972{
21973return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021974 ;
21975 return 0;
21976}
21977_ACEOF
21978rm -f conftest.$ac_objext conftest$ac_exeext
21979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21980 (eval $ac_link) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
21984 { ac_try='test -s conftest$ac_exeext'
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; }; then
21990 eval "$as_ac_var=yes"
21991else
21992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021993sed 's/^/| /' conftest.$ac_ext >&5
21994
John Criswell7a73b802003-06-30 21:59:07 +000021995eval "$as_ac_var=no"
21996fi
21997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21998fi
21999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22001if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004_ACEOF
22005
22006fi
22007done
22008
22009echo "$as_me:$LINENO: checking for working mmap" >&5
22010echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22011if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22013else
22014 if test "$cross_compiling" = yes; then
22015 ac_cv_func_mmap_fixed_mapped=no
22016else
22017 cat >conftest.$ac_ext <<_ACEOF
22018#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022019/* confdefs.h. */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022024$ac_includes_default
22025/* malloc might have been renamed as rpl_malloc. */
22026#undef malloc
22027
22028/* Thanks to Mike Haertel and Jim Avera for this test.
22029 Here is a matrix of mmap possibilities:
22030 mmap private not fixed
22031 mmap private fixed at somewhere currently unmapped
22032 mmap private fixed at somewhere already mapped
22033 mmap shared not fixed
22034 mmap shared fixed at somewhere currently unmapped
22035 mmap shared fixed at somewhere already mapped
22036 For private mappings, we should verify that changes cannot be read()
22037 back from the file, nor mmap's back from the file at a different
22038 address. (There have been systems where private was not correctly
22039 implemented like the infamous i386 svr4.0, and systems where the
22040 VM page cache was not coherent with the file system buffer cache
22041 like early versions of FreeBSD and possibly contemporary NetBSD.)
22042 For shared mappings, we should conversely verify that changes get
22043 propagated back to all the places they're supposed to be.
22044
22045 Grep wants private fixed already mapped.
22046 The main things grep needs to know about mmap are:
22047 * does it exist and is it safe to write into the mmap'd area
22048 * how to use it (BSD variants) */
22049
22050#include <fcntl.h>
22051#include <sys/mman.h>
22052
22053#if !STDC_HEADERS && !HAVE_STDLIB_H
22054char *malloc ();
22055#endif
22056
22057/* This mess was copied from the GNU getpagesize.h. */
22058#if !HAVE_GETPAGESIZE
22059/* Assume that all systems that can run configure have sys/param.h. */
22060# if !HAVE_SYS_PARAM_H
22061# define HAVE_SYS_PARAM_H 1
22062# endif
22063
22064# ifdef _SC_PAGESIZE
22065# define getpagesize() sysconf(_SC_PAGESIZE)
22066# else /* no _SC_PAGESIZE */
22067# if HAVE_SYS_PARAM_H
22068# include <sys/param.h>
22069# ifdef EXEC_PAGESIZE
22070# define getpagesize() EXEC_PAGESIZE
22071# else /* no EXEC_PAGESIZE */
22072# ifdef NBPG
22073# define getpagesize() NBPG * CLSIZE
22074# ifndef CLSIZE
22075# define CLSIZE 1
22076# endif /* no CLSIZE */
22077# else /* no NBPG */
22078# ifdef NBPC
22079# define getpagesize() NBPC
22080# else /* no NBPC */
22081# ifdef PAGESIZE
22082# define getpagesize() PAGESIZE
22083# endif /* PAGESIZE */
22084# endif /* no NBPC */
22085# endif /* no NBPG */
22086# endif /* no EXEC_PAGESIZE */
22087# else /* no HAVE_SYS_PARAM_H */
22088# define getpagesize() 8192 /* punt totally */
22089# endif /* no HAVE_SYS_PARAM_H */
22090# endif /* no _SC_PAGESIZE */
22091
22092#endif /* no HAVE_GETPAGESIZE */
22093
22094int
22095main ()
22096{
22097 char *data, *data2, *data3;
22098 int i, pagesize;
22099 int fd;
22100
22101 pagesize = getpagesize ();
22102
22103 /* First, make a file with some known garbage in it. */
22104 data = (char *) malloc (pagesize);
22105 if (!data)
22106 exit (1);
22107 for (i = 0; i < pagesize; ++i)
22108 *(data + i) = rand ();
22109 umask (0);
22110 fd = creat ("conftest.mmap", 0600);
22111 if (fd < 0)
22112 exit (1);
22113 if (write (fd, data, pagesize) != pagesize)
22114 exit (1);
22115 close (fd);
22116
22117 /* Next, try to mmap the file at a fixed address which already has
22118 something else allocated at it. If we can, also make sure that
22119 we see the same garbage. */
22120 fd = open ("conftest.mmap", O_RDWR);
22121 if (fd < 0)
22122 exit (1);
22123 data2 = (char *) malloc (2 * pagesize);
22124 if (!data2)
22125 exit (1);
22126 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22127 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22128 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22129 exit (1);
22130 for (i = 0; i < pagesize; ++i)
22131 if (*(data + i) != *(data2 + i))
22132 exit (1);
22133
22134 /* Finally, make sure that changes to the mapped area do not
22135 percolate back to the file as seen by read(). (This is a bug on
22136 some variants of i386 svr4.0.) */
22137 for (i = 0; i < pagesize; ++i)
22138 *(data2 + i) = *(data2 + i) + 1;
22139 data3 = (char *) malloc (pagesize);
22140 if (!data3)
22141 exit (1);
22142 if (read (fd, data3, pagesize) != pagesize)
22143 exit (1);
22144 for (i = 0; i < pagesize; ++i)
22145 if (*(data + i) != *(data3 + i))
22146 exit (1);
22147 close (fd);
22148 exit (0);
22149}
22150_ACEOF
22151rm -f conftest$ac_exeext
22152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_func_mmap_fixed_mapped=yes
22163else
22164 echo "$as_me: program exited with status $ac_status" >&5
22165echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022166sed 's/^/| /' conftest.$ac_ext >&5
22167
John Criswell7a73b802003-06-30 21:59:07 +000022168( exit $ac_status )
22169ac_cv_func_mmap_fixed_mapped=no
22170fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022171rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022172fi
22173fi
22174echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22175echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22176if test $ac_cv_func_mmap_fixed_mapped = yes; then
22177
22178cat >>confdefs.h <<\_ACEOF
22179#define HAVE_MMAP 1
22180_ACEOF
22181
22182fi
22183rm -f conftest.mmap
22184
22185echo "$as_me:$LINENO: checking for mmap of files" >&5
22186echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22187if test "${ac_cv_func_mmap_file+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22189else
22190
22191
22192 ac_ext=c
22193ac_cpp='$CPP $CPPFLAGS'
22194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022199 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22200See \`config.log' for more details." >&5
22201echo "$as_me: error: cannot run test program while cross compiling
22202See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022203 { (exit 1); exit 1; }; }
22204else
22205 cat >conftest.$ac_ext <<_ACEOF
22206#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022212
John Criswell7a73b802003-06-30 21:59:07 +000022213#ifdef HAVE_SYS_TYPES_H
22214#include <sys/types.h>
22215#endif
22216
John Criswell5ab73462003-10-09 15:44:28 +000022217#ifdef HAVE_SYS_MMAN_H
22218#include <sys/mman.h>
22219#endif
22220
John Criswell7a73b802003-06-30 21:59:07 +000022221#ifdef HAVE_FCNTL_H
22222#include <fcntl.h>
22223#endif
22224
22225 int fd;
22226 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022227 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000022228_ACEOF
22229rm -f conftest$ac_exeext
22230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22231 (eval $ac_link) 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 ac_cv_func_mmap_file=yes
22241else
22242 echo "$as_me: program exited with status $ac_status" >&5
22243echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022244sed 's/^/| /' conftest.$ac_ext >&5
22245
John Criswell7a73b802003-06-30 21:59:07 +000022246( exit $ac_status )
22247ac_cv_func_mmap_file=no
22248fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022249rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022250fi
22251 ac_ext=c
22252ac_cpp='$CPP $CPPFLAGS'
22253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22255ac_compiler_gnu=$ac_cv_c_compiler_gnu
22256
22257
22258fi
22259echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22260echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22261if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022262
22263cat >>confdefs.h <<\_ACEOF
22264#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022265_ACEOF
22266
22267 MMAP_FILE=yes
22268
22269fi
22270
22271if test ${ac_cv_func_mmap_file} = "no"
22272then
22273 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22274echo "$as_me: error: mmap() of files required but not found" >&2;}
22275 { (exit 1); exit 1; }; }
22276fi
22277echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22278echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22279if test "${ac_cv_header_mmap_anon+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281else
22282
22283
22284 ac_ext=c
22285ac_cpp='$CPP $CPPFLAGS'
22286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22288ac_compiler_gnu=$ac_cv_c_compiler_gnu
22289
22290 cat >conftest.$ac_ext <<_ACEOF
22291#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022292/* confdefs.h. */
22293_ACEOF
22294cat confdefs.h >>conftest.$ac_ext
22295cat >>conftest.$ac_ext <<_ACEOF
22296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022297#include <sys/mman.h>
22298 #include <unistd.h>
22299 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022300int
22301main ()
22302{
22303mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22304 ;
22305 return 0;
22306}
22307_ACEOF
22308rm -f conftest.$ac_objext
22309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22310 (eval $ac_compile) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
22314 { ac_try='test -s conftest.$ac_objext'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22317 ac_status=$?
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ac_cv_header_mmap_anon=yes
22321else
22322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022323sed 's/^/| /' conftest.$ac_ext >&5
22324
John Criswell7a73b802003-06-30 21:59:07 +000022325ac_cv_header_mmap_anon=no
22326fi
22327rm -f conftest.$ac_objext conftest.$ac_ext
22328 ac_ext=c
22329ac_cpp='$CPP $CPPFLAGS'
22330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22332ac_compiler_gnu=$ac_cv_c_compiler_gnu
22333
22334
22335fi
22336echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22337echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22338if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022339
22340cat >>confdefs.h <<\_ACEOF
22341#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022342_ACEOF
22343
22344fi
22345
22346echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22347echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22348if test "${ac_cv_type_signal+set}" = set; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350else
22351 cat >conftest.$ac_ext <<_ACEOF
22352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022353/* confdefs.h. */
22354_ACEOF
22355cat confdefs.h >>conftest.$ac_ext
22356cat >>conftest.$ac_ext <<_ACEOF
22357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022358#include <sys/types.h>
22359#include <signal.h>
22360#ifdef signal
22361# undef signal
22362#endif
22363#ifdef __cplusplus
22364extern "C" void (*signal (int, void (*)(int)))(int);
22365#else
22366void (*signal ()) ();
22367#endif
22368
John Criswell7a73b802003-06-30 21:59:07 +000022369int
22370main ()
22371{
22372int i;
22373 ;
22374 return 0;
22375}
22376_ACEOF
22377rm -f conftest.$ac_objext
22378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379 (eval $ac_compile) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
22383 { ac_try='test -s conftest.$ac_objext'
22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); }; }; then
22389 ac_cv_type_signal=void
22390else
22391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022392sed 's/^/| /' conftest.$ac_ext >&5
22393
John Criswell7a73b802003-06-30 21:59:07 +000022394ac_cv_type_signal=int
22395fi
22396rm -f conftest.$ac_objext conftest.$ac_ext
22397fi
22398echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22399echo "${ECHO_T}$ac_cv_type_signal" >&6
22400
22401cat >>confdefs.h <<_ACEOF
22402#define RETSIGTYPE $ac_cv_type_signal
22403_ACEOF
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
Brian Gaekec45be042003-10-07 06:01:34 +000022415
22416
John Criswell5ab73462003-10-09 15:44:28 +000022417
22418for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll strsignal
John Criswell7a73b802003-06-30 21:59:07 +000022419do
22420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22421echo "$as_me:$LINENO: checking for $ac_func" >&5
22422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22423if eval "test \"\${$as_ac_var+set}\" = set"; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22425else
22426 cat >conftest.$ac_ext <<_ACEOF
22427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022428/* confdefs.h. */
22429_ACEOF
22430cat confdefs.h >>conftest.$ac_ext
22431cat >>conftest.$ac_ext <<_ACEOF
22432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022433/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022434 which can conflict with char $ac_func (); below.
22435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22436 <limits.h> exists even on freestanding compilers. */
22437#ifdef __STDC__
22438# include <limits.h>
22439#else
22440# include <assert.h>
22441#endif
John Criswell7a73b802003-06-30 21:59:07 +000022442/* Override any gcc2 internal prototype to avoid an error. */
22443#ifdef __cplusplus
22444extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022445{
John Criswell7a73b802003-06-30 21:59:07 +000022446#endif
22447/* We use char because int might match the return type of a gcc2
22448 builtin and then its argument prototype would still apply. */
22449char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022450/* The GNU C library defines this for functions which it implements
22451 to always fail with ENOSYS. Some functions are actually named
22452 something starting with __ and the normal name is an alias. */
22453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22454choke me
22455#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022456char (*f) () = $ac_func;
22457#endif
22458#ifdef __cplusplus
22459}
John Criswell7a73b802003-06-30 21:59:07 +000022460#endif
22461
John Criswell0c38eaf2003-09-10 15:17:25 +000022462int
22463main ()
22464{
22465return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022466 ;
22467 return 0;
22468}
22469_ACEOF
22470rm -f conftest.$ac_objext conftest$ac_exeext
22471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22472 (eval $ac_link) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } &&
22476 { ac_try='test -s conftest$ac_exeext'
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 eval "$as_ac_var=yes"
22483else
22484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022485sed 's/^/| /' conftest.$ac_ext >&5
22486
John Criswell7a73b802003-06-30 21:59:07 +000022487eval "$as_ac_var=no"
22488fi
22489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22490fi
22491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22493if test `eval echo '${'$as_ac_var'}'` = yes; then
22494 cat >>confdefs.h <<_ACEOF
22495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22496_ACEOF
22497
22498fi
22499done
22500
John Criswell5ab73462003-10-09 15:44:28 +000022501echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22502echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
22503if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22505else
22506 cat >conftest.$ac_ext <<_ACEOF
22507#line $LINENO "configure"
22508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
22513
22514#if HAVE_SIGNAL_H
22515#include <signal.h>
22516#endif
22517
22518int
22519main ()
22520{
22521#ifndef sys_siglist
22522 char *p = (char *) sys_siglist;
22523#endif
22524
22525 ;
22526 return 0;
22527}
22528_ACEOF
22529rm -f conftest.$ac_objext
22530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22531 (eval $ac_compile) 2>&5
22532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } &&
22535 { ac_try='test -s conftest.$ac_objext'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; }; then
22541 ac_cv_have_decl_sys_siglist=yes
22542else
22543 echo "$as_me: failed program was:" >&5
22544sed 's/^/| /' conftest.$ac_ext >&5
22545
22546ac_cv_have_decl_sys_siglist=no
22547fi
22548rm -f conftest.$ac_objext conftest.$ac_ext
22549fi
22550echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22551echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
22552if test $ac_cv_have_decl_sys_siglist = yes; then
22553
22554cat >>confdefs.h <<_ACEOF
22555#define HAVE_DECL_SYS_SIGLIST 1
22556_ACEOF
22557
22558
22559else
22560 cat >>confdefs.h <<_ACEOF
22561#define HAVE_DECL_SYS_SIGLIST 0
22562_ACEOF
22563
22564
22565fi
22566
22567
John Criswell7a73b802003-06-30 21:59:07 +000022568
22569
22570echo "$as_me:$LINENO: checking for mmap" >&5
22571echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22572if test "${ac_cv_func_mmap+set}" = set; then
22573 echo $ECHO_N "(cached) $ECHO_C" >&6
22574else
22575 cat >conftest.$ac_ext <<_ACEOF
22576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022582/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022583 which can conflict with char mmap (); below.
22584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22585 <limits.h> exists even on freestanding compilers. */
22586#ifdef __STDC__
22587# include <limits.h>
22588#else
22589# include <assert.h>
22590#endif
John Criswell7a73b802003-06-30 21:59:07 +000022591/* Override any gcc2 internal prototype to avoid an error. */
22592#ifdef __cplusplus
22593extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022594{
John Criswell7a73b802003-06-30 21:59:07 +000022595#endif
22596/* We use char because int might match the return type of a gcc2
22597 builtin and then its argument prototype would still apply. */
22598char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022599/* The GNU C library defines this for functions which it implements
22600 to always fail with ENOSYS. Some functions are actually named
22601 something starting with __ and the normal name is an alias. */
22602#if defined (__stub_mmap) || defined (__stub___mmap)
22603choke me
22604#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022605char (*f) () = mmap;
22606#endif
22607#ifdef __cplusplus
22608}
John Criswell7a73b802003-06-30 21:59:07 +000022609#endif
22610
John Criswell0c38eaf2003-09-10 15:17:25 +000022611int
22612main ()
22613{
22614return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022615 ;
22616 return 0;
22617}
22618_ACEOF
22619rm -f conftest.$ac_objext conftest$ac_exeext
22620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22621 (eval $ac_link) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } &&
22625 { ac_try='test -s conftest$ac_exeext'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22631 ac_cv_func_mmap=yes
22632else
22633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022634sed 's/^/| /' conftest.$ac_ext >&5
22635
John Criswell7a73b802003-06-30 21:59:07 +000022636ac_cv_func_mmap=no
22637fi
22638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22639fi
22640echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22641echo "${ECHO_T}$ac_cv_func_mmap" >&6
22642if test $ac_cv_func_mmap = yes; then
22643 :
22644else
22645 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22646echo "$as_me: error: Function mmap() required but not found" >&2;}
22647 { (exit 1); exit 1; }; }
22648fi
22649
22650echo "$as_me:$LINENO: checking for mprotect" >&5
22651echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22652if test "${ac_cv_func_mprotect+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22654else
22655 cat >conftest.$ac_ext <<_ACEOF
22656#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022657/* confdefs.h. */
22658_ACEOF
22659cat confdefs.h >>conftest.$ac_ext
22660cat >>conftest.$ac_ext <<_ACEOF
22661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022662/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022663 which can conflict with char mprotect (); below.
22664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22665 <limits.h> exists even on freestanding compilers. */
22666#ifdef __STDC__
22667# include <limits.h>
22668#else
22669# include <assert.h>
22670#endif
John Criswell7a73b802003-06-30 21:59:07 +000022671/* Override any gcc2 internal prototype to avoid an error. */
22672#ifdef __cplusplus
22673extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022674{
John Criswell7a73b802003-06-30 21:59:07 +000022675#endif
22676/* We use char because int might match the return type of a gcc2
22677 builtin and then its argument prototype would still apply. */
22678char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022679/* The GNU C library defines this for functions which it implements
22680 to always fail with ENOSYS. Some functions are actually named
22681 something starting with __ and the normal name is an alias. */
22682#if defined (__stub_mprotect) || defined (__stub___mprotect)
22683choke me
22684#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022685char (*f) () = mprotect;
22686#endif
22687#ifdef __cplusplus
22688}
John Criswell7a73b802003-06-30 21:59:07 +000022689#endif
22690
John Criswell0c38eaf2003-09-10 15:17:25 +000022691int
22692main ()
22693{
22694return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022695 ;
22696 return 0;
22697}
22698_ACEOF
22699rm -f conftest.$ac_objext conftest$ac_exeext
22700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22701 (eval $ac_link) 2>&5
22702 ac_status=$?
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); } &&
22705 { ac_try='test -s conftest$ac_exeext'
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; }; then
22711 ac_cv_func_mprotect=yes
22712else
22713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022714sed 's/^/| /' conftest.$ac_ext >&5
22715
John Criswell7a73b802003-06-30 21:59:07 +000022716ac_cv_func_mprotect=no
22717fi
22718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22719fi
22720echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22721echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22722if test $ac_cv_func_mprotect = yes; then
22723 :
22724else
22725 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22726echo "$as_me: error: Function mprotect() required but not found" >&2;}
22727 { (exit 1); exit 1; }; }
22728fi
22729
22730
John Criswellb13092b2003-07-22 21:00:24 +000022731
John Criswell7a73b802003-06-30 21:59:07 +000022732# Check whether --enable-purify or --disable-purify was given.
22733if test "${enable_purify+set}" = set; then
22734 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022735
22736else
John Criswellb13092b2003-07-22 21:00:24 +000022737 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022738fi;
John Criswellb13092b2003-07-22 21:00:24 +000022739if test ${enableval} = "no"
22740then
22741 ENABLE_PURIFY=
22742
22743else
22744 ENABLE_PURIFY=ENABLE_PURIFY=1
22745
22746fi
22747
John Criswell7a73b802003-06-30 21:59:07 +000022748# Check whether --enable-optimized or --disable-optimized was given.
22749if test "${enable_optimized+set}" = set; then
22750 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022751
22752else
John Criswellb13092b2003-07-22 21:00:24 +000022753 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022754fi;
John Criswellb13092b2003-07-22 21:00:24 +000022755if test ${enableval} = "no"
22756then
22757 ENABLE_OPTIMIZED=
22758
22759else
22760 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22761
22762fi
22763
John Criswell55126592003-10-07 21:57:39 +000022764# Check whether --enable-spec2000 or --disable-spec2000 was given.
22765if test "${enable_spec2000+set}" = set; then
22766 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022767
22768else
John Criswellb13092b2003-07-22 21:00:24 +000022769 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022770fi;
John Criswellb13092b2003-07-22 21:00:24 +000022771if test ${enableval} = "no"
22772then
John Criswell55126592003-10-07 21:57:39 +000022773 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22774 then
22775 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022776
John Criswell55126592003-10-07 21:57:39 +000022777 USE_SPEC=USE_SPEC=1
22778
22779 else
22780 USE_SPEC=
22781
22782
22783 fi
John Criswellb13092b2003-07-22 21:00:24 +000022784else
John Criswell55126592003-10-07 21:57:39 +000022785 if test ${enableval} = ""
22786 then
22787 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22788
22789 else
22790 SPEC_ROOT=${enableval}
22791
22792 fi
John Criswellb13092b2003-07-22 21:00:24 +000022793 USE_SPEC=USE_SPEC=1
22794
22795fi
22796
John Criswell7a73b802003-06-30 21:59:07 +000022797# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22798if test "${enable_precompiled_bytecode+set}" = set; then
22799 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022800
22801else
John Criswellb13092b2003-07-22 21:00:24 +000022802 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022803fi;
John Criswellb13092b2003-07-22 21:00:24 +000022804if test ${enableval} = "no"
22805then
22806 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022807
John Criswellb13092b2003-07-22 21:00:24 +000022808else
22809 UPB=USE_PRECOMPILED_BYTECODE=1
22810
22811fi
John Criswellf02dbf02003-07-22 20:07:49 +000022812
22813
22814# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22815if test "${enable_llc_diffs+set}" = set; then
22816 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022817
22818else
John Criswellb13092b2003-07-22 21:00:24 +000022819 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022820fi;
John Criswellb13092b2003-07-22 21:00:24 +000022821if test ${enableval} = "no"
22822then
22823 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022824
John Criswellb13092b2003-07-22 21:00:24 +000022825else
22826 DISABLE_LLC_DIFFS=
22827
22828fi
22829
22830# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022831if test "${enable_jit+set}" = set; then
22832 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022833
22834else
John Criswellc78022e2003-07-29 19:11:58 +000022835 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022836fi;
John Criswellb13092b2003-07-22 21:00:24 +000022837
22838if test ${enableval} = "no"
22839then
22840 JIT=
22841
22842else
John Criswellc78022e2003-07-29 19:11:58 +000022843 case $target in
22844 *i*86*)
22845 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022846
John Criswellc78022e2003-07-29 19:11:58 +000022847 ;;
22848 *sparc*)
22849 JIT=TARGET_HAS_JIT=1
22850
22851 ;;
22852 *)
22853 JIT=
22854
22855 ;;
22856 esac
John Criswellb13092b2003-07-22 21:00:24 +000022857fi
John Criswell7a73b802003-06-30 21:59:07 +000022858
22859
John Criswellc78022e2003-07-29 19:11:58 +000022860
John Criswell7a73b802003-06-30 21:59:07 +000022861# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22862if test "${with_llvmgccdir+set}" = set; then
22863 withval="$with_llvmgccdir"
22864 LLVMGCCDIR=$withval
22865
22866fi;
22867
John Criswellc78022e2003-07-29 19:11:58 +000022868
John Criswell7a73b802003-06-30 21:59:07 +000022869# Check whether --with-bcrepos or --without-bcrepos was given.
22870if test "${with_bcrepos+set}" = set; then
22871 withval="$with_bcrepos"
22872 BCR=$withval
22873
22874else
22875 BCR=/home/vadve/lattner/LLVMPrograms
22876
22877fi;
22878
John Criswellc78022e2003-07-29 19:11:58 +000022879
John Criswell7a73b802003-06-30 21:59:07 +000022880# Check whether --with-papi or --without-papi was given.
22881if test "${with_papi+set}" = set; then
22882 withval="$with_papi"
22883 PAPIDIR=$withval
22884
22885else
John Criswellde00db22003-08-25 16:49:54 +000022886 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022887
22888fi;
22889
John Criswell7a73b802003-06-30 21:59:07 +000022890
22891# Check whether --with-purify or --without-purify was given.
22892if test "${with_purify+set}" = set; then
22893 withval="$with_purify"
22894 PURIFY=$withval
22895
22896fi;
22897
John Criswellde00db22003-08-25 16:49:54 +000022898
John Criswell0c38eaf2003-09-10 15:17:25 +000022899 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022900cat >confcache <<\_ACEOF
22901# This file is a shell script that caches the results of configure
22902# tests run on this system so they can be shared between configure
22903# scripts and configure runs, see configure's option --config-cache.
22904# It is not useful on other systems. If it contains results you don't
22905# want to keep, you may remove or edit it.
22906#
22907# config.status only pays attention to the cache file if you give it
22908# the --recheck option to rerun configure.
22909#
John Criswell0c38eaf2003-09-10 15:17:25 +000022910# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022911# loading this file, other *unset* `ac_cv_foo' will be assigned the
22912# following values.
22913
22914_ACEOF
22915
22916# The following way of writing the cache mishandles newlines in values,
22917# but we know of no workaround that is simple, portable, and efficient.
22918# So, don't put newlines in cache variables' values.
22919# Ultrix sh set writes to stderr and can't be redirected directly,
22920# and sets the high bit in the cache file unless we assign to the vars.
22921{
22922 (set) 2>&1 |
22923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22924 *ac_space=\ *)
22925 # `set' does not quote correctly, so add quotes (double-quote
22926 # substitution turns \\\\ into \\, and sed turns \\ into \).
22927 sed -n \
22928 "s/'/'\\\\''/g;
22929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22930 ;;
22931 *)
22932 # `set' quotes correctly as required by POSIX, so do not add quotes.
22933 sed -n \
22934 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22935 ;;
22936 esac;
22937} |
22938 sed '
22939 t clear
22940 : clear
22941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22942 t end
22943 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22944 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022945if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022946 if test -w $cache_file; then
22947 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22948 cat confcache >$cache_file
22949 else
22950 echo "not updating unwritable cache $cache_file"
22951 fi
22952fi
22953rm -f confcache
22954
22955test "x$prefix" = xNONE && prefix=$ac_default_prefix
22956# Let make expand exec_prefix.
22957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22958
22959# VPATH may cause trouble with some makes, so we remove $(srcdir),
22960# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22961# trailing colons and then remove the whole line if VPATH becomes empty
22962# (actually we leave an empty line to preserve line numbers).
22963if test "x$srcdir" = x.; then
22964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22965s/:*\$(srcdir):*/:/;
22966s/:*\${srcdir}:*/:/;
22967s/:*@srcdir@:*/:/;
22968s/^\([^=]*=[ ]*\):*/\1/;
22969s/:*$//;
22970s/^[^=]*=[ ]*$//;
22971}'
22972fi
22973
22974DEFS=-DHAVE_CONFIG_H
22975
John Criswell0c38eaf2003-09-10 15:17:25 +000022976ac_libobjs=
22977ac_ltlibobjs=
22978for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22979 # 1. Remove the extension, and $U if already installed.
22980 ac_i=`echo "$ac_i" |
22981 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22982 # 2. Add them.
22983 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22984 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22985done
22986LIBOBJS=$ac_libobjs
22987
22988LTLIBOBJS=$ac_ltlibobjs
22989
22990
John Criswell7a73b802003-06-30 21:59:07 +000022991
22992: ${CONFIG_STATUS=./config.status}
22993ac_clean_files_save=$ac_clean_files
22994ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22995{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22996echo "$as_me: creating $CONFIG_STATUS" >&6;}
22997cat >$CONFIG_STATUS <<_ACEOF
22998#! $SHELL
22999# Generated by $as_me.
23000# Run this file to recreate the current configuration.
23001# Compiler output produced by configure, useful for debugging
23002# configure, is in config.log if it exists.
23003
23004debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023005ac_cs_recheck=false
23006ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023007SHELL=\${CONFIG_SHELL-$SHELL}
23008_ACEOF
23009
23010cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023011## --------------------- ##
23012## M4sh Initialization. ##
23013## --------------------- ##
23014
23015# Be Bourne compatible
23016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23017 emulate sh
23018 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023019 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23020 # is contrary to our usage. Disable this feature.
23021 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023022elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23023 set -o posix
23024fi
23025
John Criswell7a73b802003-06-30 21:59:07 +000023026# Support unset when possible.
23027if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23028 as_unset=unset
23029else
23030 as_unset=false
23031fi
23032
John Criswell0c38eaf2003-09-10 15:17:25 +000023033
23034# Work around bugs in pre-3.0 UWIN ksh.
23035$as_unset ENV MAIL MAILPATH
23036PS1='$ '
23037PS2='> '
23038PS4='+ '
23039
23040# NLS nuisances.
23041for as_var in \
23042 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23043 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23044 LC_TELEPHONE LC_TIME
23045do
23046 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23047 eval $as_var=C; export $as_var
23048 else
23049 $as_unset $as_var
23050 fi
23051done
23052
23053# Required to use basename.
23054if expr a : '\(a\)' >/dev/null 2>&1; then
23055 as_expr=expr
23056else
23057 as_expr=false
23058fi
23059
23060if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23061 as_basename=basename
23062else
23063 as_basename=false
23064fi
John Criswell7a73b802003-06-30 21:59:07 +000023065
23066
23067# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023068as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23070 X"$0" : 'X\(//\)$' \| \
23071 X"$0" : 'X\(/\)$' \| \
23072 . : '\(.\)' 2>/dev/null ||
23073echo X/"$0" |
23074 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23075 /^X\/\(\/\/\)$/{ s//\1/; q; }
23076 /^X\/\(\/\).*/{ s//\1/; q; }
23077 s/.*/./; q'`
23078
John Criswell0c38eaf2003-09-10 15:17:25 +000023079
John Criswell7a73b802003-06-30 21:59:07 +000023080# PATH needs CR, and LINENO needs CR and PATH.
23081# Avoid depending upon Character Ranges.
23082as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23083as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23084as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23085as_cr_digits='0123456789'
23086as_cr_alnum=$as_cr_Letters$as_cr_digits
23087
23088# The user is always right.
23089if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023090 echo "#! /bin/sh" >conf$$.sh
23091 echo "exit 0" >>conf$$.sh
23092 chmod +x conf$$.sh
23093 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023094 PATH_SEPARATOR=';'
23095 else
23096 PATH_SEPARATOR=:
23097 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023098 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023099fi
23100
23101
23102 as_lineno_1=$LINENO
23103 as_lineno_2=$LINENO
23104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23105 test "x$as_lineno_1" != "x$as_lineno_2" &&
23106 test "x$as_lineno_3" = "x$as_lineno_2" || {
23107 # Find who we are. Look in the path if we contain no path at all
23108 # relative or not.
23109 case $0 in
23110 *[\\/]* ) as_myself=$0 ;;
23111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23112for as_dir in $PATH
23113do
23114 IFS=$as_save_IFS
23115 test -z "$as_dir" && as_dir=.
23116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23117done
23118
23119 ;;
23120 esac
23121 # We did not find ourselves, most probably we were run as `sh COMMAND'
23122 # in which case we are not to be found in the path.
23123 if test "x$as_myself" = x; then
23124 as_myself=$0
23125 fi
23126 if test ! -f "$as_myself"; then
23127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23128echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23129 { (exit 1); exit 1; }; }
23130 fi
23131 case $CONFIG_SHELL in
23132 '')
23133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23135do
23136 IFS=$as_save_IFS
23137 test -z "$as_dir" && as_dir=.
23138 for as_base in sh bash ksh sh5; do
23139 case $as_dir in
23140 /*)
23141 if ("$as_dir/$as_base" -c '
23142 as_lineno_1=$LINENO
23143 as_lineno_2=$LINENO
23144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23145 test "x$as_lineno_1" != "x$as_lineno_2" &&
23146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023149 CONFIG_SHELL=$as_dir/$as_base
23150 export CONFIG_SHELL
23151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23152 fi;;
23153 esac
23154 done
23155done
23156;;
23157 esac
23158
23159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23160 # uniformly replaced by the line number. The first 'sed' inserts a
23161 # line-number line before each line; the second 'sed' does the real
23162 # work. The second script uses 'N' to pair each line-number line
23163 # with the numbered line, and appends trailing '-' during
23164 # substitution so that $LINENO is not a special case at line end.
23165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23167 sed '=' <$as_myself |
23168 sed '
23169 N
23170 s,$,-,
23171 : loop
23172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23173 t loop
23174 s,-$,,
23175 s,^['$as_cr_digits']*\n,,
23176 ' >$as_me.lineno &&
23177 chmod +x $as_me.lineno ||
23178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23179echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23180 { (exit 1); exit 1; }; }
23181
23182 # Don't try to exec as it changes $[0], causing all sort of problems
23183 # (the dirname of $[0] is not the place where we might find the
23184 # original and so on. Autoconf is especially sensible to this).
23185 . ./$as_me.lineno
23186 # Exit status is that of the last command.
23187 exit
23188}
23189
23190
23191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23192 *c*,-n*) ECHO_N= ECHO_C='
23193' ECHO_T=' ' ;;
23194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23196esac
23197
23198if expr a : '\(a\)' >/dev/null 2>&1; then
23199 as_expr=expr
23200else
23201 as_expr=false
23202fi
23203
23204rm -f conf$$ conf$$.exe conf$$.file
23205echo >conf$$.file
23206if ln -s conf$$.file conf$$ 2>/dev/null; then
23207 # We could just check for DJGPP; but this test a) works b) is more generic
23208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23209 if test -f conf$$.exe; then
23210 # Don't use ln at all; we don't have any links
23211 as_ln_s='cp -p'
23212 else
23213 as_ln_s='ln -s'
23214 fi
23215elif ln conf$$.file conf$$ 2>/dev/null; then
23216 as_ln_s=ln
23217else
23218 as_ln_s='cp -p'
23219fi
23220rm -f conf$$ conf$$.exe conf$$.file
23221
John Criswell0c38eaf2003-09-10 15:17:25 +000023222if mkdir -p . 2>/dev/null; then
23223 as_mkdir_p=:
23224else
23225 as_mkdir_p=false
23226fi
23227
John Criswell7a73b802003-06-30 21:59:07 +000023228as_executable_p="test -f"
23229
23230# Sed expression to map a string onto a valid CPP name.
23231as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23232
23233# Sed expression to map a string onto a valid variable name.
23234as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23235
23236
23237# IFS
23238# We need space, tab and new line, in precisely that order.
23239as_nl='
23240'
23241IFS=" $as_nl"
23242
23243# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023244$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023245
23246exec 6>&1
23247
23248# Open the log real soon, to keep \$[0] and so on meaningful, and to
23249# report actual input values of CONFIG_FILES etc. instead of their
23250# values after options handling. Logging --version etc. is OK.
23251exec 5>>config.log
23252{
23253 echo
23254 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23255## Running $as_me. ##
23256_ASBOX
23257} >&5
23258cat >&5 <<_CSEOF
23259
23260This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023261generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023262
23263 CONFIG_FILES = $CONFIG_FILES
23264 CONFIG_HEADERS = $CONFIG_HEADERS
23265 CONFIG_LINKS = $CONFIG_LINKS
23266 CONFIG_COMMANDS = $CONFIG_COMMANDS
23267 $ $0 $@
23268
23269_CSEOF
23270echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23271echo >&5
23272_ACEOF
23273
23274# Files that config.status was made for.
23275if test -n "$ac_config_files"; then
23276 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23277fi
23278
23279if test -n "$ac_config_headers"; then
23280 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23281fi
23282
23283if test -n "$ac_config_links"; then
23284 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23285fi
23286
23287if test -n "$ac_config_commands"; then
23288 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23289fi
23290
23291cat >>$CONFIG_STATUS <<\_ACEOF
23292
23293ac_cs_usage="\
23294\`$as_me' instantiates files from templates according to the
23295current configuration.
23296
23297Usage: $0 [OPTIONS] [FILE]...
23298
23299 -h, --help print this help, then exit
23300 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023301 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023302 -d, --debug don't remove temporary files
23303 --recheck update $as_me by reconfiguring in the same conditions
23304 --file=FILE[:TEMPLATE]
23305 instantiate the configuration file FILE
23306 --header=FILE[:TEMPLATE]
23307 instantiate the configuration header FILE
23308
23309Configuration files:
23310$config_files
23311
23312Configuration headers:
23313$config_headers
23314
John Criswellc764fbc2003-09-06 15:17:13 +000023315Configuration commands:
23316$config_commands
23317
John Criswell7a73b802003-06-30 21:59:07 +000023318Report bugs to <bug-autoconf@gnu.org>."
23319_ACEOF
23320
23321cat >>$CONFIG_STATUS <<_ACEOF
23322ac_cs_version="\\
23323[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023324configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023325 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23326
23327Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23328Free Software Foundation, Inc.
23329This config.status script is free software; the Free Software Foundation
23330gives unlimited permission to copy, distribute and modify it."
23331srcdir=$srcdir
23332INSTALL="$INSTALL"
23333_ACEOF
23334
23335cat >>$CONFIG_STATUS <<\_ACEOF
23336# If no file are specified by the user, then we need to provide default
23337# value. By we need to know if files were specified by the user.
23338ac_need_defaults=:
23339while test $# != 0
23340do
23341 case $1 in
23342 --*=*)
23343 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23344 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023345 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023346 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023347 -*)
23348 ac_option=$1
23349 ac_optarg=$2
23350 ac_shift=shift
23351 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023352 *) # This is not an option, so the user has probably given explicit
23353 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023354 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023355 ac_need_defaults=false;;
23356 esac
23357
John Criswell0c38eaf2003-09-10 15:17:25 +000023358 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023359 # Handling of the options.
23360_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023361cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23363 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023364 --version | --vers* | -V )
23365 echo "$ac_cs_version"; exit 0 ;;
23366 --he | --h)
23367 # Conflict between --help and --header
23368 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23369Try \`$0 --help' for more information." >&5
23370echo "$as_me: error: ambiguous option: $1
23371Try \`$0 --help' for more information." >&2;}
23372 { (exit 1); exit 1; }; };;
23373 --help | --hel | -h )
23374 echo "$ac_cs_usage"; exit 0 ;;
23375 --debug | --d* | -d )
23376 debug=: ;;
23377 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023378 $ac_shift
23379 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023380 ac_need_defaults=false;;
23381 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023382 $ac_shift
23383 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023384 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23387 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023388
23389 # This is an error.
23390 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23391Try \`$0 --help' for more information." >&5
23392echo "$as_me: error: unrecognized option: $1
23393Try \`$0 --help' for more information." >&2;}
23394 { (exit 1); exit 1; }; } ;;
23395
23396 *) ac_config_targets="$ac_config_targets $1" ;;
23397
23398 esac
23399 shift
23400done
23401
John Criswell0c38eaf2003-09-10 15:17:25 +000023402ac_configure_extra_args=
23403
23404if $ac_cs_silent; then
23405 exec 6>/dev/null
23406 ac_configure_extra_args="$ac_configure_extra_args --silent"
23407fi
23408
23409_ACEOF
23410cat >>$CONFIG_STATUS <<_ACEOF
23411if \$ac_cs_recheck; then
23412 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23413 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23414fi
23415
John Criswell7a73b802003-06-30 21:59:07 +000023416_ACEOF
23417
John Criswellc764fbc2003-09-06 15:17:13 +000023418cat >>$CONFIG_STATUS <<_ACEOF
23419#
23420# INIT-COMMANDS section.
23421#
John Criswell7a73b802003-06-30 21:59:07 +000023422
John Criswellc764fbc2003-09-06 15:17:13 +000023423${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23424${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23425${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23426${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23427${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23428${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23429${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23430${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23431${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23432${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23434${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23435${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023440${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023445${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023446${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23449${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23454${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23455${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023461${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023462${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023466${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023467${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023468${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023470${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23471${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023474${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23475${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023476${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23477${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23478${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23479${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23480${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23483${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023553${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23554${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023559${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023560${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023561${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023562${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023563${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23564${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023565${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023566${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023568${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023569${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23570${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23571${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023572${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023573${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023574${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023575${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023576${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023577${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023578${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
23579${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023580${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23581${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23582${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23583${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023584${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23585${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
23586${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
23587${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
23588${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
23589${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
23590${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
23591${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
23592${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23593${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23594${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23595${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23596
23597_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023598
23599
23600
23601cat >>$CONFIG_STATUS <<\_ACEOF
23602for ac_config_target in $ac_config_targets
23603do
23604 case "$ac_config_target" in
23605 # Handling of arguments.
23606 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023607 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23608 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23609 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23610 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23611 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23612 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23613 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23614 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23615 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23616 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23617 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23618 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23619 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23620 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23621 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23622 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23623 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023624 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23625 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23626 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23627 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23628 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023629 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023630 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23631 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23632 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23633 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23634 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23635 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23636 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23637 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23638 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23639 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23640 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23641 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23642 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23643 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23644 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023645 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023646 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23647 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23648 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23649 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023650 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023651 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023652 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23653 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023654 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23655 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23656 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23657 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023658 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23659 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023660 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23661 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23662 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23663 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23664 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23665 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23666 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23667 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23668 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23669 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23670 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23671 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23672 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23673 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23674 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23675 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23676 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23677 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023678 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023679 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023680 "test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/177.mesa/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023681 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23682 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23683 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23684 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23685 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23686 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23687 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23688 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23689 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23690 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23691 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23692 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23693 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23694 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23695 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23696 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23697 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023698 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23699 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023700 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23701 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023702 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23703 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23704 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23705 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23706 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23707 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23708 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23709 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23710 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23711 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23712 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23713 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23714 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23715 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23716 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23717 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23718 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23719 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23720 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23721 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23722 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23723 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23724 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23725 "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 +000023726 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023727 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23728 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23729 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23730 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23731 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23732 "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 +000023733 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023734 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023735 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23736 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023737 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23738 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23739 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23740 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23741 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23742 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023743 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023744 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023745 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023746 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023747 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23748 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023749 "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 +000023750 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23751 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023752 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023753 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23754 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23755 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023756 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023757 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023758 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023759 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023760 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023761 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023762 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
23763 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023764 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23765 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23766 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23767 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023768 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23769 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23770 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23771 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23772 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23773 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23774 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23775 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23776 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23777 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23778 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23779 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023780 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23781 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23782echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23783 { (exit 1); exit 1; }; };;
23784 esac
23785done
23786
23787# If the user did not use the arguments to specify the items to instantiate,
23788# then the envvar interface is used. Set only those that are not.
23789# We use the long form for the default assignment because of an extremely
23790# bizarre bug on SunOS 4.1.3.
23791if $ac_need_defaults; then
23792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023795fi
23796
John Criswell0c38eaf2003-09-10 15:17:25 +000023797# Have a temporary directory for convenience. Make it in the build tree
23798# simply because there is no reason to put it here, and in addition,
23799# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023800# Create a temporary directory, and hook for its removal unless debugging.
23801$debug ||
23802{
23803 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23804 trap '{ (exit 1); exit 1; }' 1 2 13 15
23805}
23806
23807# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023808
John Criswell7a73b802003-06-30 21:59:07 +000023809{
John Criswell0c38eaf2003-09-10 15:17:25 +000023810 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023811 test -n "$tmp" && test -d "$tmp"
23812} ||
23813{
John Criswell0c38eaf2003-09-10 15:17:25 +000023814 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023815 (umask 077 && mkdir $tmp)
23816} ||
23817{
John Criswell0c38eaf2003-09-10 15:17:25 +000023818 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023819 { (exit 1); exit 1; }
23820}
23821
23822_ACEOF
23823
23824cat >>$CONFIG_STATUS <<_ACEOF
23825
23826#
23827# CONFIG_FILES section.
23828#
23829
23830# No need to generate the scripts if there are no CONFIG_FILES.
23831# This happens for instance when ./config.status config.h
23832if test -n "\$CONFIG_FILES"; then
23833 # Protect against being on the right side of a sed subst in config.status.
23834 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23835 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23836s,@SHELL@,$SHELL,;t t
23837s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23838s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23839s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23840s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23841s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23842s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23843s,@exec_prefix@,$exec_prefix,;t t
23844s,@prefix@,$prefix,;t t
23845s,@program_transform_name@,$program_transform_name,;t t
23846s,@bindir@,$bindir,;t t
23847s,@sbindir@,$sbindir,;t t
23848s,@libexecdir@,$libexecdir,;t t
23849s,@datadir@,$datadir,;t t
23850s,@sysconfdir@,$sysconfdir,;t t
23851s,@sharedstatedir@,$sharedstatedir,;t t
23852s,@localstatedir@,$localstatedir,;t t
23853s,@libdir@,$libdir,;t t
23854s,@includedir@,$includedir,;t t
23855s,@oldincludedir@,$oldincludedir,;t t
23856s,@infodir@,$infodir,;t t
23857s,@mandir@,$mandir,;t t
23858s,@build_alias@,$build_alias,;t t
23859s,@host_alias@,$host_alias,;t t
23860s,@target_alias@,$target_alias,;t t
23861s,@DEFS@,$DEFS,;t t
23862s,@ECHO_C@,$ECHO_C,;t t
23863s,@ECHO_N@,$ECHO_N,;t t
23864s,@ECHO_T@,$ECHO_T,;t t
23865s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023866s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023867s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23868s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23869s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23870s,@build@,$build,;t t
23871s,@build_cpu@,$build_cpu,;t t
23872s,@build_vendor@,$build_vendor,;t t
23873s,@build_os@,$build_os,;t t
23874s,@host@,$host,;t t
23875s,@host_cpu@,$host_cpu,;t t
23876s,@host_vendor@,$host_vendor,;t t
23877s,@host_os@,$host_os,;t t
23878s,@target@,$target,;t t
23879s,@target_cpu@,$target_cpu,;t t
23880s,@target_vendor@,$target_vendor,;t t
23881s,@target_os@,$target_os,;t t
23882s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023883s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023884s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023885s,@CXX@,$CXX,;t t
23886s,@CXXFLAGS@,$CXXFLAGS,;t t
23887s,@LDFLAGS@,$LDFLAGS,;t t
23888s,@CPPFLAGS@,$CPPFLAGS,;t t
23889s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23890s,@EXEEXT@,$EXEEXT,;t t
23891s,@OBJEXT@,$OBJEXT,;t t
23892s,@CC@,$CC,;t t
23893s,@CFLAGS@,$CFLAGS,;t t
23894s,@ac_ct_CC@,$ac_ct_CC,;t t
23895s,@CPP@,$CPP,;t t
23896s,@ifGNUmake@,$ifGNUmake,;t t
23897s,@LEX@,$LEX,;t t
23898s,@LEXLIB@,$LEXLIB,;t t
23899s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23900s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023901s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023902s,@LN_S@,$LN_S,;t t
23903s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023904s,@AR@,$AR,;t t
23905s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023906s,@RANLIB@,$RANLIB,;t t
23907s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23908s,@STRIP@,$STRIP,;t t
23909s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023910s,@CXXCPP@,$CXXCPP,;t t
23911s,@F77@,$F77,;t t
23912s,@FFLAGS@,$FFLAGS,;t t
23913s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023914s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023915s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023916s,@SED@,$SED,;t t
23917s,@RM@,$RM,;t t
23918s,@MKDIR@,$MKDIR,;t t
23919s,@DATE@,$DATE,;t t
23920s,@MV@,$MV,;t t
23921s,@DOT@,$DOT,;t t
23922s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023923s,@PYTHON@,$PYTHON,;t t
23924s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023925s,@ALLOCA@,$ALLOCA,;t t
23926s,@LIBOBJS@,$LIBOBJS,;t t
23927s,@MMAP_FILE@,$MMAP_FILE,;t t
23928s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023929s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023930s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023931s,@USE_SPEC@,$USE_SPEC,;t t
23932s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023933s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023934s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023935s,@BCR@,$BCR,;t t
23936s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023937s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023938s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023939CEOF
23940
23941_ACEOF
23942
23943 cat >>$CONFIG_STATUS <<\_ACEOF
23944 # Split the substitutions into bite-sized pieces for seds with
23945 # small command number limits, like on Digital OSF/1 and HP-UX.
23946 ac_max_sed_lines=48
23947 ac_sed_frag=1 # Number of current file.
23948 ac_beg=1 # First line for current file.
23949 ac_end=$ac_max_sed_lines # Line after last line for current file.
23950 ac_more_lines=:
23951 ac_sed_cmds=
23952 while $ac_more_lines; do
23953 if test $ac_beg -gt 1; then
23954 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23955 else
23956 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23957 fi
23958 if test ! -s $tmp/subs.frag; then
23959 ac_more_lines=false
23960 else
23961 # The purpose of the label and of the branching condition is to
23962 # speed up the sed processing (if there are no `@' at all, there
23963 # is no need to browse any of the substitutions).
23964 # These are the two extra sed commands mentioned above.
23965 (echo ':t
23966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23967 if test -z "$ac_sed_cmds"; then
23968 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23969 else
23970 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23971 fi
23972 ac_sed_frag=`expr $ac_sed_frag + 1`
23973 ac_beg=$ac_end
23974 ac_end=`expr $ac_end + $ac_max_sed_lines`
23975 fi
23976 done
23977 if test -z "$ac_sed_cmds"; then
23978 ac_sed_cmds=cat
23979 fi
23980fi # test -n "$CONFIG_FILES"
23981
23982_ACEOF
23983cat >>$CONFIG_STATUS <<\_ACEOF
23984for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23986 case $ac_file in
23987 - | *:- | *:-:* ) # input from stdin
23988 cat >$tmp/stdin
23989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23993 * ) ac_file_in=$ac_file.in ;;
23994 esac
23995
23996 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23999 X"$ac_file" : 'X\(//\)[^/]' \| \
24000 X"$ac_file" : 'X\(//\)$' \| \
24001 X"$ac_file" : 'X\(/\)' \| \
24002 . : '\(.\)' 2>/dev/null ||
24003echo X"$ac_file" |
24004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24006 /^X\(\/\/\)$/{ s//\1/; q; }
24007 /^X\(\/\).*/{ s//\1/; q; }
24008 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024009 { if $as_mkdir_p; then
24010 mkdir -p "$ac_dir"
24011 else
24012 as_dir="$ac_dir"
24013 as_dirs=
24014 while test ! -d "$as_dir"; do
24015 as_dirs="$as_dir $as_dirs"
24016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24018 X"$as_dir" : 'X\(//\)[^/]' \| \
24019 X"$as_dir" : 'X\(//\)$' \| \
24020 X"$as_dir" : 'X\(/\)' \| \
24021 . : '\(.\)' 2>/dev/null ||
24022echo X"$as_dir" |
24023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24025 /^X\(\/\/\)$/{ s//\1/; q; }
24026 /^X\(\/\).*/{ s//\1/; q; }
24027 s/.*/./; q'`
24028 done
24029 test ! -n "$as_dirs" || mkdir $as_dirs
24030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24032 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024033
24034 ac_builddir=.
24035
24036if test "$ac_dir" != .; then
24037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24038 # A "../" for each directory in $ac_dir_suffix.
24039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24040else
24041 ac_dir_suffix= ac_top_builddir=
24042fi
24043
24044case $srcdir in
24045 .) # No --srcdir option. We are building in place.
24046 ac_srcdir=.
24047 if test -z "$ac_top_builddir"; then
24048 ac_top_srcdir=.
24049 else
24050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24051 fi ;;
24052 [\\/]* | ?:[\\/]* ) # Absolute path.
24053 ac_srcdir=$srcdir$ac_dir_suffix;
24054 ac_top_srcdir=$srcdir ;;
24055 *) # Relative path.
24056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24058esac
24059# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24060# absolute.
24061ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024062ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024063ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24064ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24065
24066
24067 case $INSTALL in
24068 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24069 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24070 esac
24071
24072 if test x"$ac_file" != x-; then
24073 { echo "$as_me:$LINENO: creating $ac_file" >&5
24074echo "$as_me: creating $ac_file" >&6;}
24075 rm -f "$ac_file"
24076 fi
24077 # Let's still pretend it is `configure' which instantiates (i.e., don't
24078 # use $as_me), people would be surprised to read:
24079 # /* config.h. Generated by config.status. */
24080 if test x"$ac_file" = x-; then
24081 configure_input=
24082 else
24083 configure_input="$ac_file. "
24084 fi
24085 configure_input=$configure_input"Generated from `echo $ac_file_in |
24086 sed 's,.*/,,'` by configure."
24087
24088 # First look for the input files in the build tree, otherwise in the
24089 # src tree.
24090 ac_file_inputs=`IFS=:
24091 for f in $ac_file_in; do
24092 case $f in
24093 -) echo $tmp/stdin ;;
24094 [\\/$]*)
24095 # Absolute (can't be DOS-style, as IFS=:)
24096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24097echo "$as_me: error: cannot find input file: $f" >&2;}
24098 { (exit 1); exit 1; }; }
24099 echo $f;;
24100 *) # Relative
24101 if test -f "$f"; then
24102 # Build tree
24103 echo $f
24104 elif test -f "$srcdir/$f"; then
24105 # Source tree
24106 echo $srcdir/$f
24107 else
24108 # /dev/null tree
24109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24110echo "$as_me: error: cannot find input file: $f" >&2;}
24111 { (exit 1); exit 1; }; }
24112 fi;;
24113 esac
24114 done` || { (exit 1); exit 1; }
24115_ACEOF
24116cat >>$CONFIG_STATUS <<_ACEOF
24117 sed "$ac_vpsub
24118$extrasub
24119_ACEOF
24120cat >>$CONFIG_STATUS <<\_ACEOF
24121:t
24122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24123s,@configure_input@,$configure_input,;t t
24124s,@srcdir@,$ac_srcdir,;t t
24125s,@abs_srcdir@,$ac_abs_srcdir,;t t
24126s,@top_srcdir@,$ac_top_srcdir,;t t
24127s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24128s,@builddir@,$ac_builddir,;t t
24129s,@abs_builddir@,$ac_abs_builddir,;t t
24130s,@top_builddir@,$ac_top_builddir,;t t
24131s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24132s,@INSTALL@,$ac_INSTALL,;t t
24133" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24134 rm -f $tmp/stdin
24135 if test x"$ac_file" != x-; then
24136 mv $tmp/out $ac_file
24137 else
24138 cat $tmp/out
24139 rm -f $tmp/out
24140 fi
24141
24142done
24143_ACEOF
24144cat >>$CONFIG_STATUS <<\_ACEOF
24145
24146#
24147# CONFIG_HEADER section.
24148#
24149
24150# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24151# NAME is the cpp macro being defined and VALUE is the value it is being given.
24152#
24153# ac_d sets the value in "#define NAME VALUE" lines.
24154ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24155ac_dB='[ ].*$,\1#\2'
24156ac_dC=' '
24157ac_dD=',;t'
24158# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24159ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24160ac_uB='$,\1#\2define\3'
24161ac_uC=' '
24162ac_uD=',;t'
24163
24164for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24165 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24166 case $ac_file in
24167 - | *:- | *:-:* ) # input from stdin
24168 cat >$tmp/stdin
24169 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24171 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24173 * ) ac_file_in=$ac_file.in ;;
24174 esac
24175
24176 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24177echo "$as_me: creating $ac_file" >&6;}
24178
24179 # First look for the input files in the build tree, otherwise in the
24180 # src tree.
24181 ac_file_inputs=`IFS=:
24182 for f in $ac_file_in; do
24183 case $f in
24184 -) echo $tmp/stdin ;;
24185 [\\/$]*)
24186 # Absolute (can't be DOS-style, as IFS=:)
24187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24188echo "$as_me: error: cannot find input file: $f" >&2;}
24189 { (exit 1); exit 1; }; }
24190 echo $f;;
24191 *) # Relative
24192 if test -f "$f"; then
24193 # Build tree
24194 echo $f
24195 elif test -f "$srcdir/$f"; then
24196 # Source tree
24197 echo $srcdir/$f
24198 else
24199 # /dev/null tree
24200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24201echo "$as_me: error: cannot find input file: $f" >&2;}
24202 { (exit 1); exit 1; }; }
24203 fi;;
24204 esac
24205 done` || { (exit 1); exit 1; }
24206 # Remove the trailing spaces.
24207 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24208
24209_ACEOF
24210
24211# Transform confdefs.h into two sed scripts, `conftest.defines' and
24212# `conftest.undefs', that substitutes the proper values into
24213# config.h.in to produce config.h. The first handles `#define'
24214# templates, and the second `#undef' templates.
24215# And first: Protect against being on the right side of a sed subst in
24216# config.status. Protect against being in an unquoted here document
24217# in config.status.
24218rm -f conftest.defines conftest.undefs
24219# Using a here document instead of a string reduces the quoting nightmare.
24220# Putting comments in sed scripts is not portable.
24221#
24222# `end' is used to avoid that the second main sed command (meant for
24223# 0-ary CPP macros) applies to n-ary macro definitions.
24224# See the Autoconf documentation for `clear'.
24225cat >confdef2sed.sed <<\_ACEOF
24226s/[\\&,]/\\&/g
24227s,[\\$`],\\&,g
24228t clear
24229: clear
24230s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24231t end
24232s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24233: end
24234_ACEOF
24235# If some macros were called several times there might be several times
24236# the same #defines, which is useless. Nevertheless, we may not want to
24237# sort them, since we want the *last* AC-DEFINE to be honored.
24238uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24239sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24240rm -f confdef2sed.sed
24241
24242# This sed command replaces #undef with comments. This is necessary, for
24243# example, in the case of _POSIX_SOURCE, which is predefined and required
24244# on some systems where configure will not decide to define it.
24245cat >>conftest.undefs <<\_ACEOF
24246s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24247_ACEOF
24248
24249# Break up conftest.defines because some shells have a limit on the size
24250# of here documents, and old seds have small limits too (100 cmds).
24251echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024252echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024253echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24254echo ' :' >>$CONFIG_STATUS
24255rm -f conftest.tail
24256while grep . conftest.defines >/dev/null
24257do
24258 # Write a limited-size here document to $tmp/defines.sed.
24259 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24260 # Speed up: don't consider the non `#define' lines.
24261 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24262 # Work around the forget-to-reset-the-flag bug.
24263 echo 't clr' >>$CONFIG_STATUS
24264 echo ': clr' >>$CONFIG_STATUS
24265 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24266 echo 'CEOF
24267 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24268 rm -f $tmp/in
24269 mv $tmp/out $tmp/in
24270' >>$CONFIG_STATUS
24271 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24272 rm -f conftest.defines
24273 mv conftest.tail conftest.defines
24274done
24275rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024276echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024277echo >>$CONFIG_STATUS
24278
24279# Break up conftest.undefs because some shells have a limit on the size
24280# of here documents, and old seds have small limits too (100 cmds).
24281echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24282rm -f conftest.tail
24283while grep . conftest.undefs >/dev/null
24284do
24285 # Write a limited-size here document to $tmp/undefs.sed.
24286 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24287 # Speed up: don't consider the non `#undef'
24288 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24289 # Work around the forget-to-reset-the-flag bug.
24290 echo 't clr' >>$CONFIG_STATUS
24291 echo ': clr' >>$CONFIG_STATUS
24292 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24293 echo 'CEOF
24294 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24295 rm -f $tmp/in
24296 mv $tmp/out $tmp/in
24297' >>$CONFIG_STATUS
24298 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24299 rm -f conftest.undefs
24300 mv conftest.tail conftest.undefs
24301done
24302rm -f conftest.undefs
24303
24304cat >>$CONFIG_STATUS <<\_ACEOF
24305 # Let's still pretend it is `configure' which instantiates (i.e., don't
24306 # use $as_me), people would be surprised to read:
24307 # /* config.h. Generated by config.status. */
24308 if test x"$ac_file" = x-; then
24309 echo "/* Generated by configure. */" >$tmp/config.h
24310 else
24311 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24312 fi
24313 cat $tmp/in >>$tmp/config.h
24314 rm -f $tmp/in
24315 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024316 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024317 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24318echo "$as_me: $ac_file is unchanged" >&6;}
24319 else
24320 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322 X"$ac_file" : 'X\(//\)[^/]' \| \
24323 X"$ac_file" : 'X\(//\)$' \| \
24324 X"$ac_file" : 'X\(/\)' \| \
24325 . : '\(.\)' 2>/dev/null ||
24326echo X"$ac_file" |
24327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329 /^X\(\/\/\)$/{ s//\1/; q; }
24330 /^X\(\/\).*/{ s//\1/; q; }
24331 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024332 { if $as_mkdir_p; then
24333 mkdir -p "$ac_dir"
24334 else
24335 as_dir="$ac_dir"
24336 as_dirs=
24337 while test ! -d "$as_dir"; do
24338 as_dirs="$as_dir $as_dirs"
24339 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24341 X"$as_dir" : 'X\(//\)[^/]' \| \
24342 X"$as_dir" : 'X\(//\)$' \| \
24343 X"$as_dir" : 'X\(/\)' \| \
24344 . : '\(.\)' 2>/dev/null ||
24345echo X"$as_dir" |
24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24347 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24348 /^X\(\/\/\)$/{ s//\1/; q; }
24349 /^X\(\/\).*/{ s//\1/; q; }
24350 s/.*/./; q'`
24351 done
24352 test ! -n "$as_dirs" || mkdir $as_dirs
24353 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24355 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024356
24357 rm -f $ac_file
24358 mv $tmp/config.h $ac_file
24359 fi
24360 else
24361 cat $tmp/config.h
24362 rm -f $tmp/config.h
24363 fi
24364done
24365_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024366cat >>$CONFIG_STATUS <<\_ACEOF
24367
24368#
24369# CONFIG_COMMANDS section.
24370#
24371for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24372 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24373 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24374 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24375$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24376 X"$ac_dest" : 'X\(//\)[^/]' \| \
24377 X"$ac_dest" : 'X\(//\)$' \| \
24378 X"$ac_dest" : 'X\(/\)' \| \
24379 . : '\(.\)' 2>/dev/null ||
24380echo X"$ac_dest" |
24381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24382 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24383 /^X\(\/\/\)$/{ s//\1/; q; }
24384 /^X\(\/\).*/{ s//\1/; q; }
24385 s/.*/./; q'`
24386 ac_builddir=.
24387
24388if test "$ac_dir" != .; then
24389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24390 # A "../" for each directory in $ac_dir_suffix.
24391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24392else
24393 ac_dir_suffix= ac_top_builddir=
24394fi
24395
24396case $srcdir in
24397 .) # No --srcdir option. We are building in place.
24398 ac_srcdir=.
24399 if test -z "$ac_top_builddir"; then
24400 ac_top_srcdir=.
24401 else
24402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24403 fi ;;
24404 [\\/]* | ?:[\\/]* ) # Absolute path.
24405 ac_srcdir=$srcdir$ac_dir_suffix;
24406 ac_top_srcdir=$srcdir ;;
24407 *) # Relative path.
24408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24409 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24410esac
24411# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24412# absolute.
24413ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024414ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024415ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24416ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24417
24418
24419 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24420echo "$as_me: executing $ac_dest commands" >&6;}
24421 case $ac_dest in
24422 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24423 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24424 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24425 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24426 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24427 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24428 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24429 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24430 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24431 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24432 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24433 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24434 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24435 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24436 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24437 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24438 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 +000024439 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24440 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24441 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24442 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24443 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024444 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024445 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24446 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24447 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24448 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24449 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24450 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24451 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24452 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24453 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24454 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24455 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24456 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24457 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24458 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24459 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 +000024460 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 +000024461 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24462 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24463 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24464 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 +000024465 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 +000024466 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 +000024467 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24468 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 +000024469 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24470 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24471 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24472 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024473 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24474 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024475 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24476 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24477 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24478 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24479 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24480 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24481 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24482 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24483 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24484 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24485 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24486 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24487 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24488 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24489 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24490 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24491 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24492 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 +000024493 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 +000024494 test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
John Criswell5ab73462003-10-09 15:44:28 +000024495 test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/177.mesa/Makefile test/Programs/External/SPEC/CFP2000/177.mesa/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024496 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 ;;
24497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 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 ;;
24506 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 ;;
24507 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 ;;
24508 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 ;;
24509 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 ;;
24510 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24511 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24512 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 +000024513 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24514 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 +000024515 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 ;;
24516 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 +000024517 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24518 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 ;;
24519 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 ;;
24520 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 ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 ;;
24529 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 ;;
24530 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 ;;
24531 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 ;;
24532 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 ;;
24533 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 ;;
24534 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 ;;
24535 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 ;;
24536 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 ;;
24537 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 ;;
24538 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 ;;
24539 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 ;;
24540 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 +000024541 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 +000024542 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 ;;
24543 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 ;;
24544 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 ;;
24545 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 ;;
24546 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 ;;
24547 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 +000024548 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 +000024549 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 +000024550 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24551 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 +000024552 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24553 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24554 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 ;;
24555 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 ;;
24556 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 ;;
24557 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 +000024558 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 +000024559 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 +000024560 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 +000024561 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 +000024562 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 ;;
24563 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 +000024564 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 +000024565 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24566 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024567 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024568 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24569 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24570 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024571 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024572 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024573 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024574 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 +000024575 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 +000024576 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 +000024577 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
24578 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024579 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24580 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24581 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24582 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024583 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24584 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
24585 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
24586 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
24587 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
24588 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
24589 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
24590 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
24591 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24592 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24593 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24594 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24595 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