blob: bd25d0d08778735963c911299b50125f9e619fec [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswell0c38eaf2003-09-10 15:17:25 +00003# Generated by GNU Autoconf 2.57 for [LLVM] [1.0].
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME='[LLVM]'
424PACKAGE_TARNAME='--llvm--'
425PACKAGE_VERSION='[1.0]'
426PACKAGE_STRING='[LLVM] [1.0]'
427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
John Criswell7ec78aa2003-10-16 01:49:00 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
John Criswell12399a12003-09-30 15:55:44 +0000430ac_subdirs_all="$ac_subdirs_all projects/reopt"
John Criswell559a6c12003-09-30 16:31:48 +0000431ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446# include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451# include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462# include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_unique_file=""Makefile.config.in""
John Criswell55126592003-10-07 21:57:39 +0000470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RPWD SED RM MKDIR DATE MV DOT ETAGS PYTHON QMTEST ALLOCA LIBOBJS MMAP_FILE ENABLE_PURIFY ENABLE_OPTIMIZED SPEC_ROOT USE_SPEC UPB DISABLE_LLC_DIFFS JIT BCR PAPIDIR PURIFY LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000471ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
517 ac_prev=
518 continue
519 fi
520
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523 # Accept the important Cygnus configure options, so we can diagnose typos.
524
525 case $ac_option in
526
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 ac_prev=bindir ;;
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 bindir=$ac_optarg ;;
531
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
536
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
546
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 ac_prev=datadir ;;
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 | --da=*)
551 datadir=$ac_optarg ;;
552
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
561
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 case $ac_option in
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 *) ac_optarg=yes ;;
572 esac
573 eval "enable_$ac_feature='$ac_optarg'" ;;
574
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
583
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
586 with_gas=yes ;;
587
588 -help | --help | --hel | --he | -h)
589 ac_init_help=long ;;
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
594
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
599
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
606
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 ac_prev=infodir ;;
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
611
612 -libdir | --libdir | --libdi | --libd)
613 ac_prev=libdir ;;
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir=$ac_optarg ;;
616
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
623
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
632
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 ac_prev=mandir ;;
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir=$ac_optarg ;;
637
638 -nfp | --nfp | --nf)
639 # Obsolete; use --without-fp.
640 with_fp=no ;;
641
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
644 no_create=yes ;;
645
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 no_recursion=yes ;;
649
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
658
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 ac_prev=prefix ;;
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix=$ac_optarg ;;
663
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
670
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
677
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
694
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
697 silent=yes ;;
698
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 ac_prev=sbindir ;;
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 | --sbi=* | --sb=*)
703 sbindir=$ac_optarg ;;
704
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
708 | --sha | --sh)
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 | --sha=* | --sh=*)
714 sharedstatedir=$ac_optarg ;;
715
716 -site | --site | --sit)
717 ac_prev=site ;;
718 -site=* | --site=* | --sit=*)
719 site=$ac_optarg ;;
720
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 ac_prev=srcdir ;;
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir=$ac_optarg ;;
725
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
732
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
737
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 verbose=yes ;;
740
741 -version | --version | --versio | --versi | --vers | -V)
742 ac_init_version=: ;;
743
744 -with-* | --with-*)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case $ac_option in
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_$ac_package='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
783
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
787 ;;
788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
799 *)
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805 ;;
806
807 esac
808done
809
810if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
830do
831 eval ac_val=$`echo $ac_var`
832 case $ac_val in
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
836 esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
879 srcdir=$ac_confdir
880 if test ! -r $srcdir/$ac_unique_file; then
881 srcdir=..
882 fi
883else
884 ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
890 else
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
893 fi
894fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CC_set=${CC+set}
928ac_env_CC_value=$CC
929ac_cv_env_CC_set=${CC+set}
930ac_cv_env_CC_value=$CC
931ac_env_CFLAGS_set=${CFLAGS+set}
932ac_env_CFLAGS_value=$CFLAGS
933ac_cv_env_CFLAGS_set=${CFLAGS+set}
934ac_cv_env_CFLAGS_value=$CFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
958 cat <<_ACEOF
959\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981 cat <<_ACEOF
982Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
984 [$ac_default_prefix]
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1008_ACEOF
1009
1010 cat <<\_ACEOF
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001036 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswell55126592003-10-07 21:57:39 +00001037 --enable-spec Compile SPEC 2000 benchmarks (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001054 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1108# absolute.
1109ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +00001110ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1113
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 fi
1129 cd $ac_popdir
1130 done
1131fi
1132
1133test -n "$ac_init_help" && exit 0
1134if $ac_init_version; then
1135 cat <<\_ACEOF
1136[LLVM] configure [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +00001137generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001138
1139Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1140Free Software Foundation, Inc.
1141This configure script is free software; the Free Software Foundation
1142gives unlimited permission to copy, distribute and modify it.
1143_ACEOF
1144 exit 0
1145fi
1146exec 5>config.log
1147cat >&5 <<_ACEOF
1148This file contains any messages produced by compilers while
1149running configure, to aid debugging if configure makes a mistake.
1150
1151It was created by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +00001152generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001153
1154 $ $0 $@
1155
1156_ACEOF
1157{
1158cat <<_ASUNAME
1159## --------- ##
1160## Platform. ##
1161## --------- ##
1162
1163hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1164uname -m = `(uname -m) 2>/dev/null || echo unknown`
1165uname -r = `(uname -r) 2>/dev/null || echo unknown`
1166uname -s = `(uname -s) 2>/dev/null || echo unknown`
1167uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168
1169/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1170/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171
1172/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1173/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1174/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1175hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1176/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1177/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1178/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179
1180_ASUNAME
1181
1182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1183for as_dir in $PATH
1184do
1185 IFS=$as_save_IFS
1186 test -z "$as_dir" && as_dir=.
1187 echo "PATH: $as_dir"
1188done
1189
1190} >&5
1191
1192cat >&5 <<_ACEOF
1193
1194
1195## ----------- ##
1196## Core tests. ##
1197## ----------- ##
1198
1199_ACEOF
1200
1201
1202# Keep a trace of the command line.
1203# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001205# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001206# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001207ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001208ac_configure_args0=
1209ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001210ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001211ac_must_keep_next=false
1212for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001213do
John Criswell0c38eaf2003-09-10 15:17:25 +00001214 for ac_arg
1215 do
1216 case $ac_arg in
1217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 continue ;;
1221 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 esac
1224 case $ac_pass in
1225 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 2)
1227 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1228 if test $ac_must_keep_next = true; then
1229 ac_must_keep_next=false # Got value, back to normal.
1230 else
1231 case $ac_arg in
1232 *=* | --config-cache | -C | -disable-* | --disable-* \
1233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1235 | -with-* | --with-* | -without-* | --without-* | --x)
1236 case "$ac_configure_args0 " in
1237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 esac
1239 ;;
1240 -* ) ac_must_keep_next=true ;;
1241 esac
1242 fi
1243 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1244 # Get rid of the leading space.
1245 ac_sep=" "
1246 ;;
1247 esac
1248 done
John Criswell7a73b802003-06-30 21:59:07 +00001249done
John Criswell0c38eaf2003-09-10 15:17:25 +00001250$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1251$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001252
1253# When interrupted or exit'd, cleanup temporary files, and complete
1254# config.log. We remove comments because anyway the quotes in there
1255# would cause problems or look ugly.
1256# WARNING: Be sure not to use single quotes in there, as some shells,
1257# such as our DU 5.0 friend, will then `close' the trap.
1258trap 'exit_status=$?
1259 # Save into config.log some information that might help in debugging.
1260 {
1261 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001262
John Criswell7a73b802003-06-30 21:59:07 +00001263 cat <<\_ASBOX
1264## ---------------- ##
1265## Cache variables. ##
1266## ---------------- ##
1267_ASBOX
1268 echo
1269 # The following way of writing the cache mishandles newlines in values,
1270{
1271 (set) 2>&1 |
1272 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 *ac_space=\ *)
1274 sed -n \
1275 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 ;;
1278 *)
1279 sed -n \
1280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 ;;
1282 esac;
1283}
1284 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001285
1286 cat <<\_ASBOX
1287## ----------------- ##
1288## Output variables. ##
1289## ----------------- ##
1290_ASBOX
1291 echo
1292 for ac_var in $ac_subst_vars
1293 do
1294 eval ac_val=$`echo $ac_var`
1295 echo "$ac_var='"'"'$ac_val'"'"'"
1296 done | sort
1297 echo
1298
1299 if test -n "$ac_subst_files"; then
1300 cat <<\_ASBOX
1301## ------------- ##
1302## Output files. ##
1303## ------------- ##
1304_ASBOX
1305 echo
1306 for ac_var in $ac_subst_files
1307 do
1308 eval ac_val=$`echo $ac_var`
1309 echo "$ac_var='"'"'$ac_val'"'"'"
1310 done | sort
1311 echo
1312 fi
1313
John Criswell7a73b802003-06-30 21:59:07 +00001314 if test -s confdefs.h; then
1315 cat <<\_ASBOX
1316## ----------- ##
1317## confdefs.h. ##
1318## ----------- ##
1319_ASBOX
1320 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001321 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001322 echo
1323 fi
1324 test "$ac_signal" != 0 &&
1325 echo "$as_me: caught signal $ac_signal"
1326 echo "$as_me: exit $exit_status"
1327 } >&5
1328 rm -f core core.* *.core &&
1329 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 exit $exit_status
1331 ' 0
1332for ac_signal in 1 2 13 15; do
1333 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1334done
1335ac_signal=0
1336
1337# confdefs.h avoids OS command line length limits that DEFS can exceed.
1338rm -rf conftest* confdefs.h
1339# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340echo >confdefs.h
1341
1342# Predefined preprocessor variables.
1343
1344cat >>confdefs.h <<_ACEOF
1345#define PACKAGE_NAME "$PACKAGE_NAME"
1346_ACEOF
1347
1348
1349cat >>confdefs.h <<_ACEOF
1350#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1351_ACEOF
1352
1353
1354cat >>confdefs.h <<_ACEOF
1355#define PACKAGE_VERSION "$PACKAGE_VERSION"
1356_ACEOF
1357
1358
1359cat >>confdefs.h <<_ACEOF
1360#define PACKAGE_STRING "$PACKAGE_STRING"
1361_ACEOF
1362
1363
1364cat >>confdefs.h <<_ACEOF
1365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1366_ACEOF
1367
1368
1369# Let the site file select an alternate cache file if it wants to.
1370# Prefer explicitly selected file to automatically selected ones.
1371if test -z "$CONFIG_SITE"; then
1372 if test "x$prefix" != xNONE; then
1373 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 else
1375 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 fi
1377fi
1378for ac_site_file in $CONFIG_SITE; do
1379 if test -r "$ac_site_file"; then
1380 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1381echo "$as_me: loading site script $ac_site_file" >&6;}
1382 sed 's/^/| /' "$ac_site_file" >&5
1383 . "$ac_site_file"
1384 fi
1385done
1386
1387if test -r "$cache_file"; then
1388 # Some versions of bash will fail to source /dev/null (special
1389 # files actually), so we avoid doing that.
1390 if test -f "$cache_file"; then
1391 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1392echo "$as_me: loading cache $cache_file" >&6;}
1393 case $cache_file in
1394 [\\/]* | ?:[\\/]* ) . $cache_file;;
1395 *) . ./$cache_file;;
1396 esac
1397 fi
1398else
1399 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1400echo "$as_me: creating cache $cache_file" >&6;}
1401 >$cache_file
1402fi
1403
1404# Check that the precious variables saved in the cache have kept the same
1405# value.
1406ac_cache_corrupted=false
1407for ac_var in `(set) 2>&1 |
1408 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1409 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1410 eval ac_new_set=\$ac_env_${ac_var}_set
1411 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1412 eval ac_new_val="\$ac_env_${ac_var}_value"
1413 case $ac_old_set,$ac_new_set in
1414 set,)
1415 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1416echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1417 ac_cache_corrupted=: ;;
1418 ,set)
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1420echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1422 ,);;
1423 *)
1424 if test "x$ac_old_val" != "x$ac_new_val"; then
1425 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1428echo "$as_me: former value: $ac_old_val" >&2;}
1429 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1430echo "$as_me: current value: $ac_new_val" >&2;}
1431 ac_cache_corrupted=:
1432 fi;;
1433 esac
1434 # Pass precious variables to config.status.
1435 if test "$ac_new_set" = set; then
1436 case $ac_new_val in
1437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1438 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1439 *) ac_arg=$ac_var=$ac_new_val ;;
1440 esac
1441 case " $ac_configure_args " in
1442 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1443 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1444 esac
1445 fi
1446done
1447if $ac_cache_corrupted; then
1448 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1449echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1450 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1451echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1452 { (exit 1); exit 1; }; }
1453fi
1454
1455ac_ext=c
1456ac_cpp='$CPP $CPPFLAGS'
1457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
John Criswell0c38eaf2003-09-10 15:17:25 +00001487
John Criswell7a73b802003-06-30 21:59:07 +00001488ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001489for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001490 if test -f $ac_dir/install-sh; then
1491 ac_aux_dir=$ac_dir
1492 ac_install_sh="$ac_aux_dir/install-sh -c"
1493 break
1494 elif test -f $ac_dir/install.sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install.sh -c"
1497 break
1498 elif test -f $ac_dir/shtool; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/shtool install -c"
1501 break
1502 fi
1503done
1504if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1506echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001507 { (exit 1); exit 1; }; }
1508fi
1509ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1510ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1511ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1512
John Criswell392aaa32003-07-22 19:18:09 +00001513
John Criswell1b824322003-09-15 17:19:42 +00001514if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001515then
John Criswell1b824322003-09-15 17:19:42 +00001516 if test -f ${srcdir}/include/Config/config.h
1517 then
1518 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001519echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1520 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001521 fi
John Criswell93e1c722003-09-15 17:04:06 +00001522fi
1523
John Criswell7ec78aa2003-10-16 01:49:00 +00001524if test -d ${srcdir}/projects/sample
1525then
1526
1527
1528subdirs="$subdirs projects/sample"
1529
1530fi
1531
John Criswell12399a12003-09-30 15:55:44 +00001532if test -d ${srcdir}/projects/reopt
1533then
1534
1535
1536subdirs="$subdirs projects/reopt"
1537
1538fi
1539
John Criswell559a6c12003-09-30 16:31:48 +00001540if test -d ${srcdir}/projects/poolalloc
1541then
1542
1543
1544subdirs="$subdirs projects/poolalloc"
1545
1546fi
1547
John Criswell0c38eaf2003-09-10 15:17:25 +00001548 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001549
John Criswell0c38eaf2003-09-10 15:17:25 +00001550 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswell0c38eaf2003-09-10 15:17:25 +00001553 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswell0c38eaf2003-09-10 15:17:25 +00001556 ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswell0c38eaf2003-09-10 15:17:25 +00001559 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswell0c38eaf2003-09-10 15:17:25 +00001562 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswell0c38eaf2003-09-10 15:17:25 +00001565 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswell0c38eaf2003-09-10 15:17:25 +00001568 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswell0c38eaf2003-09-10 15:17:25 +00001571 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswell0c38eaf2003-09-10 15:17:25 +00001574 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswell0c38eaf2003-09-10 15:17:25 +00001577 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswell0c38eaf2003-09-10 15:17:25 +00001580 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswell0c38eaf2003-09-10 15:17:25 +00001583 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswell0c38eaf2003-09-10 15:17:25 +00001586 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswell0c38eaf2003-09-10 15:17:25 +00001589 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswell0c38eaf2003-09-10 15:17:25 +00001592 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswell0c38eaf2003-09-10 15:17:25 +00001595 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswell0c38eaf2003-09-10 15:17:25 +00001598 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
Brian Gaekec45be042003-10-07 06:01:34 +00001616 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswell0c38eaf2003-09-10 15:17:25 +00001649 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswell0c38eaf2003-09-10 15:17:25 +00001652 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswell0c38eaf2003-09-10 15:17:25 +00001658 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswell0c38eaf2003-09-10 15:17:25 +00001661 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswell613758d2003-09-11 18:03:50 +00001664 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libcurses/Makefile"
1665
1666
John Criswell0c38eaf2003-09-10 15:17:25 +00001667 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswell0c38eaf2003-09-10 15:17:25 +00001670 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswell0c38eaf2003-09-10 15:17:25 +00001673 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswell0c38eaf2003-09-10 15:17:25 +00001676 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswell613758d2003-09-11 18:03:50 +00001679 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libtermcap/Makefile"
1680
1681
John Criswell0c38eaf2003-09-10 15:17:25 +00001682 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswell613758d2003-09-11 18:03:50 +00001685 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutempter/Makefile"
1686
1687
1688 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libutil/Makefile"
1689
1690
John Criswell0c38eaf2003-09-10 15:17:25 +00001691 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswell0c38eaf2003-09-10 15:17:25 +00001694 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswell0c38eaf2003-09-10 15:17:25 +00001697 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswell0c38eaf2003-09-10 15:17:25 +00001700 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswellf424d742003-10-07 21:13:47 +00001703 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1704
1705
1706 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001707
1708
John Criswell0c38eaf2003-09-10 15:17:25 +00001709 ac_config_commands="$ac_config_commands test/Programs/Makefile"
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/Makefile.programs"
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.Makefile"
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.dsgraph.report"
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.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswell0c38eaf2003-09-10 15:17:25 +00001727 ac_config_commands="$ac_config_commands test/Programs/TEST.example.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.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.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.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
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.Makefile"
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.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.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/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswell0c38eaf2003-09-10 15:17:25 +00001757 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswell0c38eaf2003-09-10 15:17:25 +00001760 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswell613758d2003-09-11 18:03:50 +00001763 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1764
1765
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswell5ab73462003-10-09 15:44:28 +00001769 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/177.mesa/Makefile"
1770
1771
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/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/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/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/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/164.gzip/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/175.vpr/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/176.gcc/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/181.mcf/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/186.crafty/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/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswell987e49c2003-10-10 01:11:54 +00001802 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/252.eon/Makefile"
1803
1804
1805 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile"
1806
1807
John Criswell0c38eaf2003-09-10 15:17:25 +00001808 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/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/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswell0c38eaf2003-09-10 15:17:25 +00001817 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswell0c38eaf2003-09-10 15:17:25 +00001823 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswell0c38eaf2003-09-10 15:17:25 +00001826 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
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/Applications/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/Applications/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswell39e83892003-09-12 16:36:17 +00001835 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/aha/Makefile"
1836
1837
1838 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Applications/sgefa/Makefile"
1839
1840
John Criswell48e3cb92003-09-12 16:31:43 +00001841 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/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/Fhourstones/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/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/01-qbsort/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/03-testtrie/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/04-bisect/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/05-eks/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/08-main/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/McCat/09-vor/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/McCat/12-IOtest/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/McCat/15-trie/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/McCat/17-bintr/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/McCat/18-imp/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/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/bh/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/bisort/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/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswell48e3cb92003-09-12 16:31:43 +00001892 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswell48e3cb92003-09-12 16:31:43 +00001895 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswell48e3cb92003-09-12 16:31:43 +00001898 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/perimeter/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/Olden/power/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/Olden/treeadd/Makefile"
1905
1906
1907 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile"
1908
1909
1910 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswell39e83892003-09-12 16:36:17 +00001913 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/OptimizerEval/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/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/Ptrdist/anagram/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/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell48e3cb92003-09-12 16:31:43 +00001925 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001926
1927
John Criswell48e3cb92003-09-12 16:31:43 +00001928 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001929
1930
John Criswell48e3cb92003-09-12 16:31:43 +00001931 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001932
1933
John Criswell48e3cb92003-09-12 16:31:43 +00001934 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001935
1936
John Criswell48e3cb92003-09-12 16:31:43 +00001937 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001938
1939
John Criswell0c38eaf2003-09-10 15:17:25 +00001940 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001941
1942
John Criswell0c38eaf2003-09-10 15:17:25 +00001943 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001944
1945
John Criswellffaaf3b2003-09-10 18:38:44 +00001946 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Gizmos/Makefile"
1947
1948
1949 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Makefile"
1950
1951
1952 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile"
1953
1954
1955 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Shootout/Makefile"
1956
1957
1958 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Stanford/Makefile"
1959
1960
1961 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Benchmarks/Misc/Makefile"
1962
1963
John Criswell0c38eaf2003-09-10 15:17:25 +00001964 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001965
1966
John Criswell0c38eaf2003-09-10 15:17:25 +00001967 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001968
1969
John Criswell0afe8252003-09-11 20:53:48 +00001970 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1971
1972
John Criswell67181ca2003-09-26 14:53:17 +00001973 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/Makefile"
1974
1975
John Criswell68886d42003-09-26 19:51:42 +00001976 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C/Makefile"
1977
1978
1979 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/Makefile"
1980
1981
John Criswellc66bbd52003-09-29 21:35:32 +00001982 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Regression/C++/EH/Makefile"
1983
1984
John Criswell0c38eaf2003-09-10 15:17:25 +00001985 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001986
1987
John Criswell0c38eaf2003-09-10 15:17:25 +00001988 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001989
1990
John Criswell0c38eaf2003-09-10 15:17:25 +00001991 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001992
1993
John Criswell0c38eaf2003-09-10 15:17:25 +00001994 ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001995
1996
John Criswell0c38eaf2003-09-10 15:17:25 +00001997 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001998
1999
John Criswell0c38eaf2003-09-10 15:17:25 +00002000 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002001
2002
John Criswell0c38eaf2003-09-10 15:17:25 +00002003 ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002004
2005
John Criswell0c38eaf2003-09-10 15:17:25 +00002006 ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002007
2008
John Criswellddb7b4e2003-09-16 15:54:19 +00002009 ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002010
2011
Chris Lattnerebd70302003-09-13 03:29:53 +00002012 ac_config_commands="$ac_config_commands tools/llvm-ar/Makefile"
2013
2014
John Criswellddb7b4e2003-09-16 15:54:19 +00002015 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
2016
2017
John Criswell0c38eaf2003-09-10 15:17:25 +00002018 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002019
2020
John Criswellddb7b4e2003-09-16 15:54:19 +00002021 ac_config_commands="$ac_config_commands tools/llvm-link/Makefile"
2022
2023
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00002024 ac_config_commands="$ac_config_commands tools/llvm-nm/Makefile"
2025
2026
John Criswellddb7b4e2003-09-16 15:54:19 +00002027 ac_config_commands="$ac_config_commands tools/opt/Makefile"
2028
2029
Brian Gaekec45be042003-10-07 06:01:34 +00002030 ac_config_commands="$ac_config_commands utils/Makefile"
2031
2032
2033 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
2034
2035
2036 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
2037
2038
2039 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
2040
2041
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002043
2044
John Criswell0c38eaf2003-09-10 15:17:25 +00002045 ac_config_commands="$ac_config_commands projects/ModuleMaker/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.common"
John Criswellc764fbc2003-09-06 15:17:13 +00002049
2050
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
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/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00002055
2056
John Criswell392aaa32003-07-22 19:18:09 +00002057
2058
John Criswell7a73b802003-06-30 21:59:07 +00002059# Find a good install program. We prefer a C program (faster),
2060# so one script is as good as another. But avoid the broken or
2061# incompatible versions:
2062# SysV /etc/install, /usr/sbin/install
2063# SunOS /usr/etc/install
2064# IRIX /sbin/install
2065# AIX /bin/install
2066# AmigaOS /C/install, which installs bootblocks on floppy discs
2067# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070# ./install, which can be erroneously created by make from ./install.sh.
2071echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2072echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2073if test -z "$INSTALL"; then
2074if test "${ac_cv_path_install+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 # Account for people who put trailing slashes in PATH elements.
2083case $as_dir/ in
2084 ./ | .// | /cC/* | \
2085 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2086 /usr/ucb/* ) ;;
2087 *)
2088 # OSF1 and SCO ODT 3.0 have their own names for install.
2089 # Don't use installbsd from OSF since it installs stuff as root
2090 # by default.
2091 for ac_prog in ginstall scoinst install; do
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2094 if test $ac_prog = install &&
2095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2096 # AIX install. It has an incompatible calling convention.
2097 :
2098 elif test $ac_prog = install &&
2099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100 # program-specific install script used by HP pwplus--don't use.
2101 :
2102 else
2103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2104 break 3
2105 fi
2106 fi
2107 done
2108 done
2109 ;;
2110esac
2111done
2112
2113
2114fi
2115 if test "${ac_cv_path_install+set}" = set; then
2116 INSTALL=$ac_cv_path_install
2117 else
2118 # As a last resort, use the slow shell script. We don't cache a
2119 # path for INSTALL within a source directory, because that will
2120 # break other packages using the cache if that directory is
2121 # removed, or if the path is relative.
2122 INSTALL=$ac_install_sh
2123 fi
2124fi
2125echo "$as_me:$LINENO: result: $INSTALL" >&5
2126echo "${ECHO_T}$INSTALL" >&6
2127
2128# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2129# It thinks the first close brace ends the variable substitution.
2130test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2131
2132test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2133
2134test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2135
2136
2137# Make sure we can run config.sub.
2138$ac_config_sub sun4 >/dev/null 2>&1 ||
2139 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2140echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2141 { (exit 1); exit 1; }; }
2142
2143echo "$as_me:$LINENO: checking build system type" >&5
2144echo $ECHO_N "checking build system type... $ECHO_C" >&6
2145if test "${ac_cv_build+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148 ac_cv_build_alias=$build_alias
2149test -z "$ac_cv_build_alias" &&
2150 ac_cv_build_alias=`$ac_config_guess`
2151test -z "$ac_cv_build_alias" &&
2152 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2153echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2154 { (exit 1); exit 1; }; }
2155ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2156 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2157echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2158 { (exit 1); exit 1; }; }
2159
2160fi
2161echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2162echo "${ECHO_T}$ac_cv_build" >&6
2163build=$ac_cv_build
2164build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2165build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2166build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2167
2168
2169echo "$as_me:$LINENO: checking host system type" >&5
2170echo $ECHO_N "checking host system type... $ECHO_C" >&6
2171if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
2174 ac_cv_host_alias=$host_alias
2175test -z "$ac_cv_host_alias" &&
2176 ac_cv_host_alias=$ac_cv_build_alias
2177ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2179echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2181
2182fi
2183echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184echo "${ECHO_T}$ac_cv_host" >&6
2185host=$ac_cv_host
2186host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2187host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2188host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2189
2190
2191echo "$as_me:$LINENO: checking target system type" >&5
2192echo $ECHO_N "checking target system type... $ECHO_C" >&6
2193if test "${ac_cv_target+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 ac_cv_target_alias=$target_alias
2197test "x$ac_cv_target_alias" = "x" &&
2198 ac_cv_target_alias=$ac_cv_host_alias
2199ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2200 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2201echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2202 { (exit 1); exit 1; }; }
2203
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206echo "${ECHO_T}$ac_cv_target" >&6
2207target=$ac_cv_target
2208target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2209target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2210target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2211
2212
2213# The aliases save the names the user supplied, while $host etc.
2214# will get canonicalized.
2215test -n "$target_alias" &&
2216 test "$program_prefix$program_suffix$program_transform_name" = \
2217 NONENONEs,x,x, &&
2218 program_prefix=${target_alias}-
2219
2220case $build in
2221 *i*86*) OS=Linux
2222
John Criswellf02dbf02003-07-22 20:07:49 +00002223 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002224
2225 ;;
2226
2227 *sparc*) OS=SunOS
2228
2229 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2230
2231 ;;
2232
2233 *) OS=Unknown
2234
2235 ;;
2236esac
2237
2238case $target in
2239 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2240
2241 ;;
2242esac
2243
John Criswell76595452003-07-01 22:07:39 +00002244case $target in
2245 *i*86*) ARCH=x86
2246
2247 ;;
2248 *sparc*solaris*) ARCH=Sparc
2249
2250 ;;
2251esac
2252
John Criswell7a73b802003-06-30 21:59:07 +00002253
2254ac_ext=cc
2255ac_cpp='$CXXCPP $CPPFLAGS'
2256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2259if test -n "$ac_tool_prefix"; then
2260 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2261 do
2262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_CXX+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 if test -n "$CXX"; then
2270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285
2286fi
2287fi
2288CXX=$ac_cv_prog_CXX
2289if test -n "$CXX"; then
2290 echo "$as_me:$LINENO: result: $CXX" >&5
2291echo "${ECHO_T}$CXX" >&6
2292else
2293 echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297 test -n "$CXX" && break
2298 done
2299fi
2300if test -z "$CXX"; then
2301 ac_ct_CXX=$CXX
2302 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2303do
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305set dummy $ac_prog; ac_word=$2
2306echo "$as_me:$LINENO: checking for $ac_word" >&5
2307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 if test -n "$ac_ct_CXX"; then
2312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2313else
2314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315for as_dir in $PATH
2316do
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321 ac_cv_prog_ac_ct_CXX="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2324 fi
2325done
2326done
2327
2328fi
2329fi
2330ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2331if test -n "$ac_ct_CXX"; then
2332 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2333echo "${ECHO_T}$ac_ct_CXX" >&6
2334else
2335 echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6
2337fi
2338
2339 test -n "$ac_ct_CXX" && break
2340done
2341test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2342
2343 CXX=$ac_ct_CXX
2344fi
2345
2346
2347# Provide some information about the compiler.
2348echo "$as_me:$LINENO:" \
2349 "checking for C++ compiler version" >&5
2350ac_compiler=`set X $ac_compile; echo $2`
2351{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2352 (eval $ac_compiler --version </dev/null >&5) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2357 (eval $ac_compiler -v </dev/null >&5) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2362 (eval $ac_compiler -V </dev/null >&5) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2366
2367cat >conftest.$ac_ext <<_ACEOF
2368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002374
John Criswell7a73b802003-06-30 21:59:07 +00002375int
2376main ()
2377{
2378
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002384ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002385# Try to create an executable without -o first, disregard a.out.
2386# It will help us diagnose broken compilers, and finding out an intuition
2387# of exeext.
2388echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2389echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2390ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2392 (eval $ac_link_default) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 # Find the output, starting from the most likely. This scheme is
2397# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2398# resort.
2399
2400# Be careful to initialize this variable, since it used to be cached.
2401# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2402ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002403# b.out is created by i960 compilers.
2404for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2405do
2406 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002407 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2409 ;;
2410 conftest.$ac_ext )
2411 # This is the source file.
2412 ;;
2413 [ab].out )
2414 # We found the default executable, but exeext='' is most
2415 # certainly right.
2416 break;;
2417 *.* )
2418 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2419 # FIXME: I believe we export ac_cv_exeext for Libtool,
2420 # but it would be cool to find out if it's true. Does anybody
2421 # maintain Libtool? --akim.
2422 export ac_cv_exeext
2423 break;;
2424 * )
2425 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002426 esac
2427done
2428else
2429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: C++ compiler cannot create executables
2435See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002436 { (exit 77); exit 77; }; }
2437fi
2438
2439ac_exeext=$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_file" >&5
2441echo "${ECHO_T}$ac_file" >&6
2442
2443# Check the compiler produces executables we can run. If not, either
2444# the compiler is broken, or we cross compile.
2445echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2446echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2447# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448# If not cross compiling, check that we can run a simple program.
2449if test "$cross_compiling" != yes; then
2450 if { ac_try='./$ac_file'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2456 cross_compiling=no
2457 else
2458 if test "$cross_compiling" = maybe; then
2459 cross_compiling=yes
2460 else
2461 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002462If you meant to cross compile, use \`--host'.
2463See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002464echo "$as_me: 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." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002467 { (exit 1); exit 1; }; }
2468 fi
2469 fi
2470fi
2471echo "$as_me:$LINENO: result: yes" >&5
2472echo "${ECHO_T}yes" >&6
2473
John Criswell0c38eaf2003-09-10 15:17:25 +00002474rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002475ac_clean_files=$ac_clean_files_save
2476# Check the compiler produces executables we can run. If not, either
2477# the compiler is broken, or we cross compile.
2478echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2479echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2480echo "$as_me:$LINENO: result: $cross_compiling" >&5
2481echo "${ECHO_T}$cross_compiling" >&6
2482
2483echo "$as_me:$LINENO: checking for suffix of executables" >&5
2484echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486 (eval $ac_link) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; then
2490 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2491# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2492# work properly (i.e., refer to `conftest.exe'), while it won't with
2493# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002494for ac_file in conftest.exe conftest conftest.*; do
2495 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002496 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2499 export ac_cv_exeext
2500 break;;
2501 * ) break;;
2502 esac
2503done
2504else
John Criswell0c38eaf2003-09-10 15:17:25 +00002505 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506See \`config.log' for more details." >&5
2507echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002509 { (exit 1); exit 1; }; }
2510fi
2511
2512rm -f conftest$ac_cv_exeext
2513echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514echo "${ECHO_T}$ac_cv_exeext" >&6
2515
2516rm -f conftest.$ac_ext
2517EXEEXT=$ac_cv_exeext
2518ac_exeext=$EXEEXT
2519echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521if test "${ac_cv_objext+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 cat >conftest.$ac_ext <<_ACEOF
2525#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002526/* confdefs.h. */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
2530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002531
John Criswell7a73b802003-06-30 21:59:07 +00002532int
2533main ()
2534{
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540rm -f conftest.o conftest.obj
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; then
2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550 break;;
2551 esac
2552done
2553else
2554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002555sed 's/^/| /' conftest.$ac_ext >&5
2556
2557{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558See \`config.log' for more details." >&5
2559echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002561 { (exit 1); exit 1; }; }
2562fi
2563
2564rm -f conftest.$ac_cv_objext conftest.$ac_ext
2565fi
2566echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567echo "${ECHO_T}$ac_cv_objext" >&6
2568OBJEXT=$ac_cv_objext
2569ac_objext=$OBJEXT
2570echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2571echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2572if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 cat >conftest.$ac_ext <<_ACEOF
2576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002582
John Criswell7a73b802003-06-30 21:59:07 +00002583int
2584main ()
2585{
2586#ifndef __GNUC__
2587 choke me
2588#endif
2589
2590 ;
2591 return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext
2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_compiler_gnu=yes
2607else
2608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002609sed 's/^/| /' conftest.$ac_ext >&5
2610
John Criswell7a73b802003-06-30 21:59:07 +00002611ac_compiler_gnu=no
2612fi
2613rm -f conftest.$ac_objext conftest.$ac_ext
2614ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2615
2616fi
2617echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2618echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2619GXX=`test $ac_compiler_gnu = yes && echo yes`
2620ac_test_CXXFLAGS=${CXXFLAGS+set}
2621ac_save_CXXFLAGS=$CXXFLAGS
2622CXXFLAGS="-g"
2623echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2624echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2625if test "${ac_cv_prog_cxx_g+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 cat >conftest.$ac_ext <<_ACEOF
2629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_prog_cxx_g=yes
2657else
2658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002659sed 's/^/| /' conftest.$ac_ext >&5
2660
John Criswell7a73b802003-06-30 21:59:07 +00002661ac_cv_prog_cxx_g=no
2662fi
2663rm -f conftest.$ac_objext conftest.$ac_ext
2664fi
2665echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2666echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2667if test "$ac_test_CXXFLAGS" = set; then
2668 CXXFLAGS=$ac_save_CXXFLAGS
2669elif test $ac_cv_prog_cxx_g = yes; then
2670 if test "$GXX" = yes; then
2671 CXXFLAGS="-g -O2"
2672 else
2673 CXXFLAGS="-g"
2674 fi
2675else
2676 if test "$GXX" = yes; then
2677 CXXFLAGS="-O2"
2678 else
2679 CXXFLAGS=
2680 fi
2681fi
2682for ac_declaration in \
2683 ''\
2684 '#include <stdlib.h>' \
2685 'extern "C" void std::exit (int) throw (); using std::exit;' \
2686 'extern "C" void std::exit (int); using std::exit;' \
2687 'extern "C" void exit (int) throw ();' \
2688 'extern "C" void exit (int);' \
2689 'void exit (int);'
2690do
2691 cat >conftest.$ac_ext <<_ACEOF
2692#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002693/* confdefs.h. */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
2697/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002698#include <stdlib.h>
2699$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002700int
2701main ()
2702{
2703exit (42);
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708rm -f conftest.$ac_objext
2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 :
2721else
2722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002723sed 's/^/| /' conftest.$ac_ext >&5
2724
John Criswell7a73b802003-06-30 21:59:07 +00002725continue
2726fi
2727rm -f conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002730/* confdefs.h. */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002735$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002736int
2737main ()
2738{
2739exit (42);
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -s conftest.$ac_objext'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; }; then
2756 break
2757else
2758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002759sed 's/^/| /' conftest.$ac_ext >&5
2760
John Criswell7a73b802003-06-30 21:59:07 +00002761fi
2762rm -f conftest.$ac_objext conftest.$ac_ext
2763done
2764rm -f conftest*
2765if test -n "$ac_declaration"; then
2766 echo '#ifdef __cplusplus' >>confdefs.h
2767 echo $ac_declaration >>confdefs.h
2768 echo '#endif' >>confdefs.h
2769fi
2770
2771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777ac_ext=c
2778ac_cpp='$CPP $CPPFLAGS'
2779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782if test -n "$ac_tool_prefix"; then
2783 for ac_prog in gcc
2784 do
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787echo "$as_me:$LINENO: checking for $ac_word" >&5
2788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806done
2807done
2808
2809fi
2810fi
2811CC=$ac_cv_prog_CC
2812if test -n "$CC"; then
2813 echo "$as_me:$LINENO: result: $CC" >&5
2814echo "${ECHO_T}$CC" >&6
2815else
2816 echo "$as_me:$LINENO: result: no" >&5
2817echo "${ECHO_T}no" >&6
2818fi
2819
2820 test -n "$CC" && break
2821 done
2822fi
2823if test -z "$CC"; then
2824 ac_ct_CC=$CC
2825 for ac_prog in gcc
2826do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828set dummy $ac_prog; ac_word=$2
2829echo "$as_me:$LINENO: checking for $ac_word" >&5
2830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833else
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_ac_ct_CC="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848done
2849done
2850
2851fi
2852fi
2853ac_ct_CC=$ac_cv_prog_ac_ct_CC
2854if test -n "$ac_ct_CC"; then
2855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2856echo "${ECHO_T}$ac_ct_CC" >&6
2857else
2858 echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861
2862 test -n "$ac_ct_CC" && break
2863done
2864
2865 CC=$ac_ct_CC
2866fi
2867
2868
John Criswell0c38eaf2003-09-10 15:17:25 +00002869test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: no acceptable C compiler found in \$PATH
2872See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002873 { (exit 1); exit 1; }; }
2874
2875# Provide some information about the compiler.
2876echo "$as_me:$LINENO:" \
2877 "checking for C compiler version" >&5
2878ac_compiler=`set X $ac_compile; echo $2`
2879{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2880 (eval $ac_compiler --version </dev/null >&5) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2885 (eval $ac_compiler -v </dev/null >&5) 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2890 (eval $ac_compiler -V </dev/null >&5) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2894
2895echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2896echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2897if test "${ac_cv_c_compiler_gnu+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899else
2900 cat >conftest.$ac_ext <<_ACEOF
2901#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002907
John Criswell7a73b802003-06-30 21:59:07 +00002908int
2909main ()
2910{
2911#ifndef __GNUC__
2912 choke me
2913#endif
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext
2920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 ac_compiler_gnu=yes
2932else
2933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002934sed 's/^/| /' conftest.$ac_ext >&5
2935
John Criswell7a73b802003-06-30 21:59:07 +00002936ac_compiler_gnu=no
2937fi
2938rm -f conftest.$ac_objext conftest.$ac_ext
2939ac_cv_c_compiler_gnu=$ac_compiler_gnu
2940
2941fi
2942echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2943echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2944GCC=`test $ac_compiler_gnu = yes && echo yes`
2945ac_test_CFLAGS=${CFLAGS+set}
2946ac_save_CFLAGS=$CFLAGS
2947CFLAGS="-g"
2948echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2949echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2950if test "${ac_cv_prog_cc_g+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 cat >conftest.$ac_ext <<_ACEOF
2954#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002960
John Criswell7a73b802003-06-30 21:59:07 +00002961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
2970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 ac_cv_prog_cc_g=yes
2982else
2983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002984sed 's/^/| /' conftest.$ac_ext >&5
2985
John Criswell7a73b802003-06-30 21:59:07 +00002986ac_cv_prog_cc_g=no
2987fi
2988rm -f conftest.$ac_objext conftest.$ac_ext
2989fi
2990echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2991echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2992if test "$ac_test_CFLAGS" = set; then
2993 CFLAGS=$ac_save_CFLAGS
2994elif test $ac_cv_prog_cc_g = yes; then
2995 if test "$GCC" = yes; then
2996 CFLAGS="-g -O2"
2997 else
2998 CFLAGS="-g"
2999 fi
3000else
3001 if test "$GCC" = yes; then
3002 CFLAGS="-O2"
3003 else
3004 CFLAGS=
3005 fi
3006fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003007echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3008echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3009if test "${ac_cv_prog_cc_stdc+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 ac_cv_prog_cc_stdc=no
3013ac_save_CC=$CC
3014cat >conftest.$ac_ext <<_ACEOF
3015#line $LINENO "configure"
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#include <stdarg.h>
3022#include <stdio.h>
3023#include <sys/types.h>
3024#include <sys/stat.h>
3025/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3026struct buf { int x; };
3027FILE * (*rcsopen) (struct buf *, struct stat *, int);
3028static char *e (p, i)
3029 char **p;
3030 int i;
3031{
3032 return p[i];
3033}
3034static char *f (char * (*g) (char **, int), char **p, ...)
3035{
3036 char *s;
3037 va_list v;
3038 va_start (v,p);
3039 s = g (p, va_arg (v,int));
3040 va_end (v);
3041 return s;
3042}
3043int test (int i, double x);
3044struct s1 {int (*f) (int a);};
3045struct s2 {int (*f) (double a);};
3046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3047int argc;
3048char **argv;
3049int
3050main ()
3051{
3052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057# Don't try gcc -ansi; that turns off useful extensions and
3058# breaks some systems' header files.
3059# AIX -qlanglvl=ansi
3060# Ultrix and OSF/1 -std1
3061# HP-UX 10.20 and later -Ae
3062# HP-UX older versions -Aa -D_HPUX_SOURCE
3063# SVR4 -Xc -D__EXTENSIONS__
3064for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3065do
3066 CC="$ac_save_CC $ac_arg"
3067 rm -f conftest.$ac_objext
3068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3069 (eval $ac_compile) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 (eval $ac_try) 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_prog_cc_stdc=$ac_arg
3080break
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085fi
3086rm -f conftest.$ac_objext
3087done
3088rm -f conftest.$ac_ext conftest.$ac_objext
3089CC=$ac_save_CC
3090
3091fi
3092
3093case "x$ac_cv_prog_cc_stdc" in
3094 x|xno)
3095 echo "$as_me:$LINENO: result: none needed" >&5
3096echo "${ECHO_T}none needed" >&6 ;;
3097 *)
3098 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3099echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3100 CC="$CC $ac_cv_prog_cc_stdc" ;;
3101esac
3102
John Criswell7a73b802003-06-30 21:59:07 +00003103# Some people use a C++ compiler to compile C. Since we use `exit',
3104# in C++ we need to declare it. In case someone uses the same compiler
3105# for both compiling C and C++ we need to have the C++ compiler decide
3106# the declaration of exit, since it's the most demanding environment.
3107cat >conftest.$ac_ext <<_ACEOF
3108#ifndef __cplusplus
3109 choke me
3110#endif
3111_ACEOF
3112rm -f conftest.$ac_objext
3113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3114 (eval $ac_compile) 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 (eval $ac_try) 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 for ac_declaration in \
3125 ''\
3126 '#include <stdlib.h>' \
3127 'extern "C" void std::exit (int) throw (); using std::exit;' \
3128 'extern "C" void std::exit (int); using std::exit;' \
3129 'extern "C" void exit (int) throw ();' \
3130 'extern "C" void exit (int);' \
3131 'void exit (int);'
3132do
3133 cat >conftest.$ac_ext <<_ACEOF
3134#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003140#include <stdlib.h>
3141$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003142int
3143main ()
3144{
3145exit (42);
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 :
3163else
3164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003165sed 's/^/| /' conftest.$ac_ext >&5
3166
John Criswell7a73b802003-06-30 21:59:07 +00003167continue
3168fi
3169rm -f conftest.$ac_objext conftest.$ac_ext
3170 cat >conftest.$ac_ext <<_ACEOF
3171#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003177$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003178int
3179main ()
3180{
3181exit (42);
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
3187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 break
3199else
3200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003201sed 's/^/| /' conftest.$ac_ext >&5
3202
John Criswell7a73b802003-06-30 21:59:07 +00003203fi
3204rm -f conftest.$ac_objext conftest.$ac_ext
3205done
3206rm -f conftest*
3207if test -n "$ac_declaration"; then
3208 echo '#ifdef __cplusplus' >>confdefs.h
3209 echo $ac_declaration >>confdefs.h
3210 echo '#endif' >>confdefs.h
3211fi
3212
3213else
3214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003215sed 's/^/| /' conftest.$ac_ext >&5
3216
John Criswell7a73b802003-06-30 21:59:07 +00003217fi
3218rm -f conftest.$ac_objext conftest.$ac_ext
3219ac_ext=c
3220ac_cpp='$CPP $CPPFLAGS'
3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224
3225ac_ext=c
3226ac_cpp='$CPP $CPPFLAGS'
3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3231echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3232# On Suns, sometimes $CPP names a directory.
3233if test -n "$CPP" && test -d "$CPP"; then
3234 CPP=
3235fi
3236if test -z "$CPP"; then
3237 if test "${ac_cv_prog_CPP+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239else
3240 # Double quotes because CPP needs to be expanded
3241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3242 do
3243 ac_preproc_ok=false
3244for ac_c_preproc_warn_flag in '' yes
3245do
3246 # Use a header file that comes with gcc, so configuring glibc
3247 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3249 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003250 # On the NeXT, cc -E runs the code through the compiler's parser,
3251 # not just through cpp. "Syntax error" is here to catch this case.
3252 cat >conftest.$ac_ext <<_ACEOF
3253#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#ifdef __STDC__
3260# include <limits.h>
3261#else
3262# include <assert.h>
3263#endif
John Criswell7a73b802003-06-30 21:59:07 +00003264 Syntax error
3265_ACEOF
3266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3268 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003269 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3276 else
3277 ac_cpp_err=
3278 fi
3279else
3280 ac_cpp_err=yes
3281fi
3282if test -z "$ac_cpp_err"; then
3283 :
3284else
3285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003286sed 's/^/| /' conftest.$ac_ext >&5
3287
John Criswell7a73b802003-06-30 21:59:07 +00003288 # Broken: fails on valid input.
3289continue
3290fi
3291rm -f conftest.err conftest.$ac_ext
3292
3293 # OK, works on sane cases. Now check whether non-existent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003302#include <ac_nonexistent.h>
3303_ACEOF
3304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3306 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003307 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null; then
3312 if test -s conftest.err; then
3313 ac_cpp_err=$ac_c_preproc_warn_flag
3314 else
3315 ac_cpp_err=
3316 fi
3317else
3318 ac_cpp_err=yes
3319fi
3320if test -z "$ac_cpp_err"; then
3321 # Broken: success on invalid input.
3322continue
3323else
3324 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003325sed 's/^/| /' conftest.$ac_ext >&5
3326
John Criswell7a73b802003-06-30 21:59:07 +00003327 # Passes both tests.
3328ac_preproc_ok=:
3329break
3330fi
3331rm -f conftest.err conftest.$ac_ext
3332
3333done
3334# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3335rm -f conftest.err conftest.$ac_ext
3336if $ac_preproc_ok; then
3337 break
3338fi
3339
3340 done
3341 ac_cv_prog_CPP=$CPP
3342
3343fi
3344 CPP=$ac_cv_prog_CPP
3345else
3346 ac_cv_prog_CPP=$CPP
3347fi
3348echo "$as_me:$LINENO: result: $CPP" >&5
3349echo "${ECHO_T}$CPP" >&6
3350ac_preproc_ok=false
3351for ac_c_preproc_warn_flag in '' yes
3352do
3353 # Use a header file that comes with gcc, so configuring glibc
3354 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3356 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003357 # On the NeXT, cc -E runs the code through the compiler's parser,
3358 # not just through cpp. "Syntax error" is here to catch this case.
3359 cat >conftest.$ac_ext <<_ACEOF
3360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#ifdef __STDC__
3367# include <limits.h>
3368#else
3369# include <assert.h>
3370#endif
John Criswell7a73b802003-06-30 21:59:07 +00003371 Syntax error
3372_ACEOF
3373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3375 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003376 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 else
3384 ac_cpp_err=
3385 fi
3386else
3387 ac_cpp_err=yes
3388fi
3389if test -z "$ac_cpp_err"; then
3390 :
3391else
3392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003393sed 's/^/| /' conftest.$ac_ext >&5
3394
John Criswell7a73b802003-06-30 21:59:07 +00003395 # Broken: fails on valid input.
3396continue
3397fi
3398rm -f conftest.err conftest.$ac_ext
3399
3400 # OK, works on sane cases. Now check whether non-existent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3403#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003404/* confdefs.h. */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003409#include <ac_nonexistent.h>
3410_ACEOF
3411if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3413 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003414 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } >/dev/null; then
3419 if test -s conftest.err; then
3420 ac_cpp_err=$ac_c_preproc_warn_flag
3421 else
3422 ac_cpp_err=
3423 fi
3424else
3425 ac_cpp_err=yes
3426fi
3427if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3429continue
3430else
3431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003432sed 's/^/| /' conftest.$ac_ext >&5
3433
John Criswell7a73b802003-06-30 21:59:07 +00003434 # Passes both tests.
3435ac_preproc_ok=:
3436break
3437fi
3438rm -f conftest.err conftest.$ac_ext
3439
3440done
3441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442rm -f conftest.err conftest.$ac_ext
3443if $ac_preproc_ok; then
3444 :
3445else
John Criswell0c38eaf2003-09-10 15:17:25 +00003446 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447See \`config.log' for more details." >&5
3448echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003450 { (exit 1); exit 1; }; }
3451fi
3452
3453ac_ext=c
3454ac_cpp='$CPP $CPPFLAGS'
3455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460if test "$GCC" != "yes"
3461then
3462 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3463echo "$as_me: error: gcc required but not found" >&2;}
3464 { (exit 1); exit 1; }; }
3465fi
3466
3467if test "$GXX" != "yes"
3468then
3469 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3470echo "$as_me: error: g++ required but not found" >&2;}
3471 { (exit 1); exit 1; }; }
3472fi
3473
John Criswellde00db22003-08-25 16:49:54 +00003474gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3475if test "$gccmajor" -lt "3"
3476then
3477 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3478echo "$as_me: error: gcc 3.x required" >&2;}
3479 { (exit 1); exit 1; }; }
3480fi
3481
John Criswell7a73b802003-06-30 21:59:07 +00003482 echo "$as_me:$LINENO: checking for GNU make" >&5
3483echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3484if test "${_cv_gnu_make_command+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 _cv_gnu_make_command='' ;
3488 for a in "$MAKE" make gmake gnumake ; do
3489 if test -z "$a" ; then continue ; fi ;
3490 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3491 _cv_gnu_make_command=$a ;
3492 break;
3493 fi
3494 done ;
3495
3496fi
3497echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3498echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3499 if test "x$_cv_gnu_make_command" != "x" ; then
3500 ifGNUmake='' ;
3501 else
3502 ifGNUmake='#' ;
3503 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3504echo "${ECHO_T}\"Not found\"" >&6;
3505 fi
3506
3507
3508if test -z "$_cv_gnu_make_command"
3509then
3510 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3511echo "$as_me: error: GNU Make required but not found" >&2;}
3512 { (exit 1); exit 1; }; }
3513fi
3514
3515
3516echo "$as_me:$LINENO: checking " >&5
3517echo $ECHO_N "checking ... $ECHO_C" >&6
3518if test "${ac_cv_has_flex+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520else
3521 for ac_prog in flex lex
3522do
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524set dummy $ac_prog; ac_word=$2
3525echo "$as_me:$LINENO: checking for $ac_word" >&5
3526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527if test "${ac_cv_prog_LEX+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530 if test -n "$LEX"; then
3531 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_LEX="$ac_prog"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545done
3546
3547fi
3548fi
3549LEX=$ac_cv_prog_LEX
3550if test -n "$LEX"; then
3551 echo "$as_me:$LINENO: result: $LEX" >&5
3552echo "${ECHO_T}$LEX" >&6
3553else
3554 echo "$as_me:$LINENO: result: no" >&5
3555echo "${ECHO_T}no" >&6
3556fi
3557
3558 test -n "$LEX" && break
3559done
3560test -n "$LEX" || LEX=":"
3561
3562if test -z "$LEXLIB"
3563then
3564 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3565echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3566if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569 ac_check_lib_save_LIBS=$LIBS
3570LIBS="-lfl $LIBS"
3571cat >conftest.$ac_ext <<_ACEOF
3572#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003573/* confdefs.h. */
3574_ACEOF
3575cat confdefs.h >>conftest.$ac_ext
3576cat >>conftest.$ac_ext <<_ACEOF
3577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003578
3579/* Override any gcc2 internal prototype to avoid an error. */
3580#ifdef __cplusplus
3581extern "C"
3582#endif
3583/* We use char because int might match the return type of a gcc2
3584 builtin and then its argument prototype would still apply. */
3585char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003586int
3587main ()
3588{
3589yywrap ();
3590 ;
3591 return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596 (eval $ac_link) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -s conftest$ac_exeext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_lib_fl_yywrap=yes
3607else
3608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003609sed 's/^/| /' conftest.$ac_ext >&5
3610
John Criswell7a73b802003-06-30 21:59:07 +00003611ac_cv_lib_fl_yywrap=no
3612fi
3613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3614LIBS=$ac_check_lib_save_LIBS
3615fi
3616echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3617echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3618if test $ac_cv_lib_fl_yywrap = yes; then
3619 LEXLIB="-lfl"
3620else
3621 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3622echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3623if test "${ac_cv_lib_l_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-ll $LIBS"
3628cat >conftest.$ac_ext <<_ACEOF
3629#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003630/* confdefs.h. */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003635
3636/* Override any gcc2 internal prototype to avoid an error. */
3637#ifdef __cplusplus
3638extern "C"
3639#endif
3640/* We use char because int might match the return type of a gcc2
3641 builtin and then its argument prototype would still apply. */
3642char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003643int
3644main ()
3645{
3646yywrap ();
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651rm -f conftest.$ac_objext conftest$ac_exeext
3652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_lib_l_yywrap=yes
3664else
3665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003666sed 's/^/| /' conftest.$ac_ext >&5
3667
John Criswell7a73b802003-06-30 21:59:07 +00003668ac_cv_lib_l_yywrap=no
3669fi
3670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3671LIBS=$ac_check_lib_save_LIBS
3672fi
3673echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3674echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3675if test $ac_cv_lib_l_yywrap = yes; then
3676 LEXLIB="-ll"
3677fi
3678
3679fi
3680
3681fi
3682
3683if test "x$LEX" != "x:"; then
3684 echo "$as_me:$LINENO: checking lex output file root" >&5
3685echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3686if test "${ac_cv_prog_lex_root+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 # The minimal lex program is just a single line: %%. But some broken lexes
3690# (Solaris, I think it was) want two %% lines, so accommodate them.
3691cat >conftest.l <<_ACEOF
3692%%
3693%%
3694_ACEOF
3695{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3696 (eval $LEX conftest.l) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }
3700if test -f lex.yy.c; then
3701 ac_cv_prog_lex_root=lex.yy
3702elif test -f lexyy.c; then
3703 ac_cv_prog_lex_root=lexyy
3704else
3705 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3706echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3707 { (exit 1); exit 1; }; }
3708fi
3709fi
3710echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3711echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3712rm -f conftest.l
3713LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3714
3715echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3716echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3717if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 # POSIX says lex can declare yytext either as a pointer or an array; the
3721# default is implementation-dependent. Figure out which it is, since
3722# not all implementations provide the %pointer and %array declarations.
3723ac_cv_prog_lex_yytext_pointer=no
3724echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3725ac_save_LIBS=$LIBS
3726LIBS="$LIBS $LEXLIB"
3727cat >conftest.$ac_ext <<_ACEOF
3728`cat $LEX_OUTPUT_ROOT.c`
3729_ACEOF
3730rm -f conftest.$ac_objext conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732 (eval $ac_link) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -s conftest$ac_exeext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_cv_prog_lex_yytext_pointer=yes
3743else
3744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003745sed 's/^/| /' conftest.$ac_ext >&5
3746
John Criswell7a73b802003-06-30 21:59:07 +00003747fi
3748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3749LIBS=$ac_save_LIBS
3750rm -f "${LEX_OUTPUT_ROOT}.c"
3751
3752fi
3753echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3754echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3755if test $ac_cv_prog_lex_yytext_pointer = yes; then
3756
3757cat >>confdefs.h <<\_ACEOF
3758#define YYTEXT_POINTER 1
3759_ACEOF
3760
3761fi
3762
3763fi
3764
3765fi
3766echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3767echo "${ECHO_T}$ac_cv_has_flex" >&6
3768if test "$LEX" != "flex"; then
3769 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3770echo "$as_me: error: flex not found but required" >&2;}
3771 { (exit 1); exit 1; }; }
3772fi
3773
3774echo "$as_me:$LINENO: checking " >&5
3775echo $ECHO_N "checking ... $ECHO_C" >&6
3776if test "${ac_cv_has_bison+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 for ac_prog in 'bison -y' byacc
3780do
3781 # Extract the first word of "$ac_prog", so it can be a program name with args.
3782set dummy $ac_prog; ac_word=$2
3783echo "$as_me:$LINENO: checking for $ac_word" >&5
3784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3785if test "${ac_cv_prog_YACC+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788 if test -n "$YACC"; then
3789 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3790else
3791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792for as_dir in $PATH
3793do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_YACC="$ac_prog"
3799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3801 fi
3802done
3803done
3804
3805fi
3806fi
3807YACC=$ac_cv_prog_YACC
3808if test -n "$YACC"; then
3809 echo "$as_me:$LINENO: result: $YACC" >&5
3810echo "${ECHO_T}$YACC" >&6
3811else
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814fi
3815
3816 test -n "$YACC" && break
3817done
3818test -n "$YACC" || YACC="yacc"
3819
3820
3821fi
3822echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3823echo "${ECHO_T}$ac_cv_has_bison" >&6
3824if test "$YACC" != "bison -y"; then
3825 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3826echo "$as_me: error: bison not found but required" >&2;}
3827 { (exit 1); exit 1; }; }
3828else
3829 YACC=bison
3830
3831fi
3832
3833
3834# Check whether --enable-shared or --disable-shared was given.
3835if test "${enable_shared+set}" = set; then
3836 enableval="$enable_shared"
3837 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003838 case $enableval in
3839 yes) enable_shared=yes ;;
3840 no) enable_shared=no ;;
3841 *)
3842 enable_shared=no
3843 # Look at the argument we got. We use all the common list separators.
3844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3845 for pkg in $enableval; do
3846 IFS="$lt_save_ifs"
3847 if test "X$pkg" = "X$p"; then
3848 enable_shared=yes
3849 fi
3850 done
3851 IFS="$lt_save_ifs"
3852 ;;
3853 esac
John Criswell7a73b802003-06-30 21:59:07 +00003854else
3855 enable_shared=yes
3856fi;
John Criswell47fdd832003-07-14 16:52:07 +00003857
John Criswell7a73b802003-06-30 21:59:07 +00003858# Check whether --enable-static or --disable-static was given.
3859if test "${enable_static+set}" = set; then
3860 enableval="$enable_static"
3861 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003862 case $enableval in
3863 yes) enable_static=yes ;;
3864 no) enable_static=no ;;
3865 *)
3866 enable_static=no
3867 # Look at the argument we got. We use all the common list separators.
3868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3869 for pkg in $enableval; do
3870 IFS="$lt_save_ifs"
3871 if test "X$pkg" = "X$p"; then
3872 enable_static=yes
3873 fi
3874 done
3875 IFS="$lt_save_ifs"
3876 ;;
3877 esac
John Criswell7a73b802003-06-30 21:59:07 +00003878else
3879 enable_static=yes
3880fi;
John Criswell47fdd832003-07-14 16:52:07 +00003881
John Criswell7a73b802003-06-30 21:59:07 +00003882# Check whether --enable-fast-install or --disable-fast-install was given.
3883if test "${enable_fast_install+set}" = set; then
3884 enableval="$enable_fast_install"
3885 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003886 case $enableval in
3887 yes) enable_fast_install=yes ;;
3888 no) enable_fast_install=no ;;
3889 *)
3890 enable_fast_install=no
3891 # Look at the argument we got. We use all the common list separators.
3892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3893 for pkg in $enableval; do
3894 IFS="$lt_save_ifs"
3895 if test "X$pkg" = "X$p"; then
3896 enable_fast_install=yes
3897 fi
3898 done
3899 IFS="$lt_save_ifs"
3900 ;;
3901 esac
John Criswell7a73b802003-06-30 21:59:07 +00003902else
3903 enable_fast_install=yes
3904fi;
John Criswell47fdd832003-07-14 16:52:07 +00003905
3906echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3907echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3908if test "${lt_cv_path_SED+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 # Loop through the user's path and test for sed and gsed.
3912# Then use that list of sed's as ones to test for truncation.
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for lt_ac_prog in sed gsed; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3921 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3922 fi
3923 done
3924 done
3925done
3926lt_ac_max=0
3927lt_ac_count=0
3928# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3929# along with /bin/sed that truncates output.
3930for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3931 test ! -f $lt_ac_sed && break
3932 cat /dev/null > conftest.in
3933 lt_ac_count=0
3934 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3935 # Check for GNU sed and select it if it is found.
3936 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3937 lt_cv_path_SED=$lt_ac_sed
3938 break
3939 fi
3940 while true; do
3941 cat conftest.in conftest.in >conftest.tmp
3942 mv conftest.tmp conftest.in
3943 cp conftest.in conftest.nl
3944 echo >>conftest.nl
3945 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3946 cmp -s conftest.out conftest.nl || break
3947 # 10000 chars as input seems more than enough
3948 test $lt_ac_count -gt 10 && break
3949 lt_ac_count=`expr $lt_ac_count + 1`
3950 if test $lt_ac_count -gt $lt_ac_max; then
3951 lt_ac_max=$lt_ac_count
3952 lt_cv_path_SED=$lt_ac_sed
3953 fi
3954 done
3955done
3956SED=$lt_cv_path_SED
3957
John Criswell7a73b802003-06-30 21:59:07 +00003958fi
3959
John Criswell47fdd832003-07-14 16:52:07 +00003960echo "$as_me:$LINENO: result: $SED" >&5
3961echo "${ECHO_T}$SED" >&6
3962
3963echo "$as_me:$LINENO: checking for egrep" >&5
3964echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3965if test "${ac_cv_prog_egrep+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3969 then ac_cv_prog_egrep='grep -E'
3970 else ac_cv_prog_egrep='egrep'
3971 fi
3972fi
3973echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3974echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3975 EGREP=$ac_cv_prog_egrep
3976
3977
John Criswell7a73b802003-06-30 21:59:07 +00003978
3979# Check whether --with-gnu-ld or --without-gnu-ld was given.
3980if test "${with_gnu_ld+set}" = set; then
3981 withval="$with_gnu_ld"
3982 test "$withval" = no || with_gnu_ld=yes
3983else
3984 with_gnu_ld=no
3985fi;
3986ac_prog=ld
3987if test "$GCC" = yes; then
3988 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003989 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3990echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003991 case $host in
3992 *-*-mingw*)
3993 # gcc leaves a trailing carriage return which upsets mingw
3994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3995 *)
3996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3997 esac
3998 case $ac_prog in
3999 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00004000 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00004001 re_direlt='/[^/][^/]*/\.\./'
4002 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00004003 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00004004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00004005 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00004006 done
4007 test -z "$LD" && LD="$ac_prog"
4008 ;;
4009 "")
4010 # If it fails, then pretend we aren't using GCC.
4011 ac_prog=ld
4012 ;;
4013 *)
4014 # If it is relative, then search for the first ld in PATH.
4015 with_gnu_ld=unknown
4016 ;;
4017 esac
4018elif test "$with_gnu_ld" = yes; then
4019 echo "$as_me:$LINENO: checking for GNU ld" >&5
4020echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4021else
4022 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4023echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4024fi
4025if test "${lt_cv_path_LD+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00004029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004030 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00004031 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004032 test -z "$ac_dir" && ac_dir=.
4033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4034 lt_cv_path_LD="$ac_dir/$ac_prog"
4035 # Check to see if the program is GNU ld. I'd rather use --version,
4036 # but apparently some GNU ld's only accept -v.
4037 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00004038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4039 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004040 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00004041 ;;
4042 *)
John Criswell7a73b802003-06-30 21:59:07 +00004043 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00004044 ;;
4045 esac
John Criswell7a73b802003-06-30 21:59:07 +00004046 fi
4047 done
John Criswell47fdd832003-07-14 16:52:07 +00004048 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004049else
4050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4051fi
4052fi
4053
4054LD="$lt_cv_path_LD"
4055if test -n "$LD"; then
4056 echo "$as_me:$LINENO: result: $LD" >&5
4057echo "${ECHO_T}$LD" >&6
4058else
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
4061fi
4062test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4063echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4064 { (exit 1); exit 1; }; }
4065echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4066echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4067if test "${lt_cv_prog_gnu_ld+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00004071case `"$LD" -v 2>&1 </dev/null` in
4072*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00004073 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00004074 ;;
4075*)
John Criswell7a73b802003-06-30 21:59:07 +00004076 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00004077 ;;
4078esac
John Criswell7a73b802003-06-30 21:59:07 +00004079fi
4080echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4081echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4082with_gnu_ld=$lt_cv_prog_gnu_ld
4083
4084
4085echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4086echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4087if test "${lt_cv_ld_reload_flag+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090 lt_cv_ld_reload_flag='-r'
4091fi
4092echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4093echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4094reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00004095case $reload_flag in
4096"" | " "*) ;;
4097*) reload_flag=" $reload_flag" ;;
4098esac
4099reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00004100
4101echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4102echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4103if test "${lt_cv_path_NM+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 if test -n "$NM"; then
4107 # Let the user override the test.
4108 lt_cv_path_NM="$NM"
4109else
John Criswell47fdd832003-07-14 16:52:07 +00004110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00004111 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00004112 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004113 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00004114 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4115 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00004116 # Check to see if the nm accepts a BSD-compat flag.
4117 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118 # nm: unknown option "B" ignored
4119 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00004120 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00004122 lt_cv_path_NM="$tmp_nm -B"
4123 break
John Criswell47fdd832003-07-14 16:52:07 +00004124 ;;
4125 *)
4126 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127 */dev/null*)
4128 lt_cv_path_NM="$tmp_nm -p"
4129 break
4130 ;;
4131 *)
4132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133 continue # so that we can try to find one that supports BSD flags
4134 ;;
4135 esac
4136 esac
John Criswell7a73b802003-06-30 21:59:07 +00004137 fi
4138 done
John Criswell47fdd832003-07-14 16:52:07 +00004139 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00004140 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4141fi
4142fi
John Criswell47fdd832003-07-14 16:52:07 +00004143echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4144echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004145NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00004146
4147echo "$as_me:$LINENO: checking whether ln -s works" >&5
4148echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4149LN_S=$as_ln_s
4150if test "$LN_S" = "ln -s"; then
4151 echo "$as_me:$LINENO: result: yes" >&5
4152echo "${ECHO_T}yes" >&6
4153else
4154 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4155echo "${ECHO_T}no, using $LN_S" >&6
4156fi
4157
John Criswell47fdd832003-07-14 16:52:07 +00004158echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4159echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004160if test "${lt_cv_deplibs_check_method+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 lt_cv_file_magic_cmd='$MAGIC_CMD'
4164lt_cv_file_magic_test_file=
4165lt_cv_deplibs_check_method='unknown'
4166# Need to set the preceding variable on all platforms that support
4167# interlibrary dependencies.
4168# 'none' -- dependencies not supported.
4169# `unknown' -- same as none, but documents that we really don't know.
4170# 'pass_all' -- all dependencies passed with no checks.
4171# 'test_compile' -- check by making test program.
4172# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00004173# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00004174# If you have `file' or equivalent on your system and you're not sure
4175# whether `pass_all' will *always* work, you probably want this one.
4176
4177case $host_os in
4178aix4* | aix5*)
4179 lt_cv_deplibs_check_method=pass_all
4180 ;;
4181
4182beos*)
4183 lt_cv_deplibs_check_method=pass_all
4184 ;;
4185
4186bsdi4*)
4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4188 lt_cv_file_magic_cmd='/usr/bin/file -L'
4189 lt_cv_file_magic_test_file=/shlib/libc.so
4190 ;;
4191
4192cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004193 # win32_libid is a shell function defined in ltmain.sh
4194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4195 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004196 ;;
4197
4198darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004199 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004200 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4201 lt_cv_file_magic_cmd='/usr/bin/file -L'
4202 case "$host_os" in
4203 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004204 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004205 ;;
4206 *) # Darwin 1.3 on
4207 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4208 ;;
4209 esac
John Criswell47fdd832003-07-14 16:52:07 +00004210 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004211 ;;
4212
4213freebsd*)
4214 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4215 case $host_cpu in
4216 i*86 )
4217 # Not sure whether the presence of OpenBSD here was a mistake.
4218 # Let's accept both of them until this is cleared up.
4219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4220 lt_cv_file_magic_cmd=/usr/bin/file
4221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4222 ;;
4223 esac
4224 else
4225 lt_cv_deplibs_check_method=pass_all
4226 fi
4227 ;;
4228
4229gnu*)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232
John Criswell47fdd832003-07-14 16:52:07 +00004233hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004234 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004235 case "$host_cpu" in
4236 ia64*)
4237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4238 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4239 ;;
4240 hppa*64*)
4241 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]'
4242 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4243 ;;
4244 *)
4245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4246 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4247 ;;
4248 esac
John Criswell7a73b802003-06-30 21:59:07 +00004249 ;;
4250
John Criswell47fdd832003-07-14 16:52:07 +00004251irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004252 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004253 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004254 # this will be overridden with pass_all, but let us keep it just in case
4255 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4256 ;;
4257 *)
4258 case $LD in
4259 *-32|*"-32 ") libmagic=32-bit;;
4260 *-n32|*"-n32 ") libmagic=N32;;
4261 *-64|*"-64 ") libmagic=64-bit;;
4262 *) libmagic=never-match;;
4263 esac
4264 # this will be overridden with pass_all, but let us keep it just in case
4265 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4266 ;;
4267 esac
4268 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
4271
4272# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004273linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004274 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004275 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004276 lt_cv_deplibs_check_method=pass_all ;;
4277 *)
4278 # glibc up to 2.1.1 does not perform some relocations on ARM
4279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4280 esac
4281 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4282 ;;
4283
4284netbsd*)
4285 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004287 else
John Criswell47fdd832003-07-14 16:52:07 +00004288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004289 fi
4290 ;;
4291
4292newos6*)
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4294 lt_cv_file_magic_cmd=/usr/bin/file
4295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4296 ;;
4297
John Criswell47fdd832003-07-14 16:52:07 +00004298nto-qnx)
4299 lt_cv_deplibs_check_method=unknown
4300 ;;
4301
John Criswell7a73b802003-06-30 21:59:07 +00004302openbsd*)
4303 lt_cv_file_magic_cmd=/usr/bin/file
4304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4307 else
4308 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4309 fi
4310 ;;
4311
4312osf3* | osf4* | osf5*)
4313 # this will be overridden with pass_all, but let us keep it just in case
4314 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4315 lt_cv_file_magic_test_file=/shlib/libc.so
4316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319sco3.2v5*)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322
4323solaris*)
4324 lt_cv_deplibs_check_method=pass_all
4325 lt_cv_file_magic_test_file=/lib/libc.so
4326 ;;
4327
John Criswell7a73b802003-06-30 21:59:07 +00004328sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4329 case $host_vendor in
4330 motorola)
4331 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]'
4332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4333 ;;
4334 ncr)
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337 sequent)
4338 lt_cv_file_magic_cmd='/bin/file'
4339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4340 ;;
4341 sni)
4342 lt_cv_file_magic_cmd='/bin/file'
4343 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4344 lt_cv_file_magic_test_file=/lib/libc.so
4345 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004346 siemens)
4347 lt_cv_deplibs_check_method=pass_all
4348 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004349 esac
4350 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004351
4352sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4353 lt_cv_deplibs_check_method=pass_all
4354 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004355esac
4356
4357fi
4358echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4359echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4360file_magic_cmd=$lt_cv_file_magic_cmd
4361deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004362test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004363
4364
4365
4366
John Criswell47fdd832003-07-14 16:52:07 +00004367# If no C compiler was specified, use CC.
4368LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004369
John Criswell47fdd832003-07-14 16:52:07 +00004370# Allow CC to be a program name with arguments.
4371compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004372
John Criswell47fdd832003-07-14 16:52:07 +00004373# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4374if test "${enable_libtool_lock+set}" = set; then
4375 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004376
John Criswell47fdd832003-07-14 16:52:07 +00004377fi;
4378test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004379
John Criswell47fdd832003-07-14 16:52:07 +00004380# Some flags need to be propagated to the compiler or linker for good
4381# libtool support.
4382case $host in
4383ia64-*-hpux*)
4384 # Find out which ABI we are using.
4385 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004391 case `/usr/bin/file conftest.$ac_objext` in
4392 *ELF-32*)
4393 HPUX_IA64_MODE="32"
4394 ;;
4395 *ELF-64*)
4396 HPUX_IA64_MODE="64"
4397 ;;
4398 esac
4399 fi
4400 rm -rf conftest*
4401 ;;
4402*-*-irix6*)
4403 # Find out which ABI we are using.
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00004404 echo '#line 4404 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004407 ac_status=$?
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004409 (exit $ac_status); }; then
4410 if test "$lt_cv_prog_gnu_ld" = yes; then
4411 case `/usr/bin/file conftest.$ac_objext` in
4412 *32-bit*)
4413 LD="${LD-ld} -melf32bsmip"
4414 ;;
4415 *N32*)
4416 LD="${LD-ld} -melf32bmipn32"
4417 ;;
4418 *64-bit*)
4419 LD="${LD-ld} -melf64bmip"
4420 ;;
4421 esac
4422 else
4423 case `/usr/bin/file conftest.$ac_objext` in
4424 *32-bit*)
4425 LD="${LD-ld} -32"
4426 ;;
4427 *N32*)
4428 LD="${LD-ld} -n32"
4429 ;;
4430 *64-bit*)
4431 LD="${LD-ld} -64"
4432 ;;
4433 esac
4434 fi
4435 fi
4436 rm -rf conftest*
4437 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004438
John Criswell47fdd832003-07-14 16:52:07 +00004439x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4440 # Find out which ABI we are using.
4441 echo 'int i;' > conftest.$ac_ext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; then
4447 case "`/usr/bin/file conftest.o`" in
4448 *32-bit*)
4449 case $host in
4450 x86_64-*linux*)
4451 LD="${LD-ld} -m elf_i386"
4452 ;;
4453 ppc64-*linux*)
4454 LD="${LD-ld} -m elf32ppclinux"
4455 ;;
4456 s390x-*linux*)
4457 LD="${LD-ld} -m elf_s390"
4458 ;;
4459 sparc64-*linux*)
4460 LD="${LD-ld} -m elf32_sparc"
4461 ;;
4462 esac
4463 ;;
4464 *64-bit*)
4465 case $host in
4466 x86_64-*linux*)
4467 LD="${LD-ld} -m elf_x86_64"
4468 ;;
4469 ppc*-*linux*|powerpc*-*linux*)
4470 LD="${LD-ld} -m elf64ppc"
4471 ;;
4472 s390*-*linux*)
4473 LD="${LD-ld} -m elf64_s390"
4474 ;;
4475 sparc*-*linux*)
4476 LD="${LD-ld} -m elf64_sparc"
4477 ;;
4478 esac
4479 ;;
4480 esac
4481 fi
4482 rm -rf conftest*
4483 ;;
4484
4485*-*-sco3.2v5*)
4486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4487 SAVE_CFLAGS="$CFLAGS"
4488 CFLAGS="$CFLAGS -belf"
4489 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4490echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4491if test "${lt_cv_cc_needs_belf+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 ac_ext=c
4495ac_cpp='$CPP $CPPFLAGS'
4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 cat >conftest.$ac_ext <<_ACEOF
4501#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004502/* confdefs.h. */
4503_ACEOF
4504cat confdefs.h >>conftest.$ac_ext
4505cat >>conftest.$ac_ext <<_ACEOF
4506/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004507
John Criswell47fdd832003-07-14 16:52:07 +00004508int
4509main ()
John Criswell7a73b802003-06-30 21:59:07 +00004510{
John Criswell7a73b802003-06-30 21:59:07 +00004511
John Criswell47fdd832003-07-14 16:52:07 +00004512 ;
4513 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004514}
John Criswell47fdd832003-07-14 16:52:07 +00004515_ACEOF
4516rm -f conftest.$ac_objext conftest$ac_exeext
4517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004518 (eval $ac_link) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004521 (exit $ac_status); } &&
4522 { ac_try='test -s conftest$ac_exeext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004529else
John Criswell47fdd832003-07-14 16:52:07 +00004530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004531sed 's/^/| /' conftest.$ac_ext >&5
4532
John Criswell47fdd832003-07-14 16:52:07 +00004533lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004534fi
John Criswell47fdd832003-07-14 16:52:07 +00004535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 ac_ext=c
4537ac_cpp='$CPP $CPPFLAGS'
4538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
John Criswell7a73b802003-06-30 21:59:07 +00004542fi
John Criswell47fdd832003-07-14 16:52:07 +00004543echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4544echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4545 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4546 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4547 CFLAGS="$SAVE_CFLAGS"
4548 fi
4549 ;;
4550
4551esac
4552
4553need_locks="$enable_libtool_lock"
4554
John Criswell7a73b802003-06-30 21:59:07 +00004555
4556
4557echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4558echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4559if test "${ac_cv_header_stdc+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 cat >conftest.$ac_ext <<_ACEOF
4563#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004564/* confdefs.h. */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004569#include <stdlib.h>
4570#include <stdarg.h>
4571#include <string.h>
4572#include <float.h>
4573
John Criswell0c38eaf2003-09-10 15:17:25 +00004574int
4575main ()
4576{
4577
4578 ;
4579 return 0;
4580}
John Criswell7a73b802003-06-30 21:59:07 +00004581_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004582rm -f conftest.$ac_objext
4583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004585 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004594 ac_cv_header_stdc=yes
4595else
4596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004600fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004601rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004602
4603if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat >conftest.$ac_ext <<_ACEOF
4606#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004607/* confdefs.h. */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004612#include <string.h>
4613
4614_ACEOF
4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004616 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004617 :
4618else
4619 ac_cv_header_stdc=no
4620fi
4621rm -f conftest*
4622
4623fi
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat >conftest.$ac_ext <<_ACEOF
4628#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004634#include <stdlib.h>
4635
4636_ACEOF
4637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004638 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004639 :
4640else
4641 ac_cv_header_stdc=no
4642fi
4643rm -f conftest*
4644
4645fi
4646
4647if test $ac_cv_header_stdc = yes; then
4648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4649 if test "$cross_compiling" = yes; then
4650 :
4651else
4652 cat >conftest.$ac_ext <<_ACEOF
4653#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004659#include <ctype.h>
4660#if ((' ' & 0x0FF) == 0x020)
4661# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4662# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4663#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004664# define ISLOWER(c) \
4665 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004666 || ('j' <= (c) && (c) <= 'r') \
4667 || ('s' <= (c) && (c) <= 'z'))
4668# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4669#endif
4670
4671#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4672int
4673main ()
4674{
4675 int i;
4676 for (i = 0; i < 256; i++)
4677 if (XOR (islower (i), ISLOWER (i))
4678 || toupper (i) != TOUPPER (i))
4679 exit(2);
4680 exit (0);
4681}
4682_ACEOF
4683rm -f conftest$ac_exeext
4684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 (eval $ac_try) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 :
4695else
4696 echo "$as_me: program exited with status $ac_status" >&5
4697echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004698sed 's/^/| /' conftest.$ac_ext >&5
4699
John Criswell7a73b802003-06-30 21:59:07 +00004700( exit $ac_status )
4701ac_cv_header_stdc=no
4702fi
John Criswell0c38eaf2003-09-10 15:17:25 +00004703rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004704fi
4705fi
4706fi
4707echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4708echo "${ECHO_T}$ac_cv_header_stdc" >&6
4709if test $ac_cv_header_stdc = yes; then
4710
4711cat >>confdefs.h <<\_ACEOF
4712#define STDC_HEADERS 1
4713_ACEOF
4714
4715fi
4716
4717# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4728 inttypes.h stdint.h unistd.h
4729do
4730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4731echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 cat >conftest.$ac_ext <<_ACEOF
4737#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004743$ac_includes_default
4744
4745#include <$ac_header>
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 eval "$as_ac_Header=yes"
4760else
4761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004762sed 's/^/| /' conftest.$ac_ext >&5
4763
John Criswell7a73b802003-06-30 21:59:07 +00004764eval "$as_ac_Header=no"
4765fi
4766rm -f conftest.$ac_objext conftest.$ac_ext
4767fi
4768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4770if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771 cat >>confdefs.h <<_ACEOF
4772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773_ACEOF
4774
4775fi
4776
4777done
4778
4779
4780
4781for ac_header in dlfcn.h
4782do
4783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785 echo "$as_me:$LINENO: checking for $ac_header" >&5
4786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789fi
4790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792else
4793 # Is the header compilable?
4794echo "$as_me:$LINENO: checking $ac_header usability" >&5
4795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4796cat >conftest.$ac_ext <<_ACEOF
4797#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004803$ac_includes_default
4804#include <$ac_header>
4805_ACEOF
4806rm -f conftest.$ac_objext
4807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_header_compiler=yes
4819else
4820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004821sed 's/^/| /' conftest.$ac_ext >&5
4822
John Criswell7a73b802003-06-30 21:59:07 +00004823ac_header_compiler=no
4824fi
4825rm -f conftest.$ac_objext conftest.$ac_ext
4826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4827echo "${ECHO_T}$ac_header_compiler" >&6
4828
4829# Is the header present?
4830echo "$as_me:$LINENO: checking $ac_header presence" >&5
4831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4832cat >conftest.$ac_ext <<_ACEOF
4833#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004834/* confdefs.h. */
4835_ACEOF
4836cat confdefs.h >>conftest.$ac_ext
4837cat >>conftest.$ac_ext <<_ACEOF
4838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004839#include <$ac_header>
4840_ACEOF
4841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004844 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 else
4852 ac_cpp_err=
4853 fi
4854else
4855 ac_cpp_err=yes
4856fi
4857if test -z "$ac_cpp_err"; then
4858 ac_header_preproc=yes
4859else
4860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004861sed 's/^/| /' conftest.$ac_ext >&5
4862
John Criswell7a73b802003-06-30 21:59:07 +00004863 ac_header_preproc=no
4864fi
4865rm -f conftest.err conftest.$ac_ext
4866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867echo "${ECHO_T}$ac_header_preproc" >&6
4868
4869# So? What about this header?
4870case $ac_header_compiler:$ac_header_preproc in
4871 yes:no )
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4876 (
4877 cat <<\_ASBOX
4878## ------------------------------------ ##
4879## Report this to bug-autoconf@gnu.org. ##
4880## ------------------------------------ ##
4881_ASBOX
4882 ) |
4883 sed "s/^/$as_me: WARNING: /" >&2
4884 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004885 no:yes )
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 (
4893 cat <<\_ASBOX
4894## ------------------------------------ ##
4895## Report this to bug-autoconf@gnu.org. ##
4896## ------------------------------------ ##
4897_ASBOX
4898 ) |
4899 sed "s/^/$as_me: WARNING: /" >&2
4900 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004901esac
4902echo "$as_me:$LINENO: checking for $ac_header" >&5
4903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4904if eval "test \"\${$as_ac_Header+set}\" = set"; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 eval "$as_ac_Header=$ac_header_preproc"
4908fi
4909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4911
4912fi
4913if test `eval echo '${'$as_ac_Header'}'` = yes; then
4914 cat >>confdefs.h <<_ACEOF
4915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4916_ACEOF
4917
4918fi
4919
4920done
4921
John Criswell47fdd832003-07-14 16:52:07 +00004922ac_ext=cc
4923ac_cpp='$CXXCPP $CPPFLAGS'
4924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4927echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4928echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4929if test -z "$CXXCPP"; then
4930 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
John Criswell47fdd832003-07-14 16:52:07 +00004933 # Double quotes because CXXCPP needs to be expanded
4934 for CXXCPP in "$CXX -E" "/lib/cpp"
4935 do
4936 ac_preproc_ok=false
4937for ac_cxx_preproc_warn_flag in '' yes
4938do
4939 # Use a header file that comes with gcc, so configuring glibc
4940 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4942 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004943 # On the NeXT, cc -E runs the code through the compiler's parser,
4944 # not just through cpp. "Syntax error" is here to catch this case.
4945 cat >conftest.$ac_ext <<_ACEOF
4946#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#ifdef __STDC__
4953# include <limits.h>
4954#else
4955# include <assert.h>
4956#endif
John Criswell47fdd832003-07-14 16:52:07 +00004957 Syntax error
4958_ACEOF
4959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4961 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004962 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null; then
4967 if test -s conftest.err; then
4968 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004969 else
John Criswell47fdd832003-07-14 16:52:07 +00004970 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004971 fi
John Criswell47fdd832003-07-14 16:52:07 +00004972else
4973 ac_cpp_err=yes
4974fi
4975if test -z "$ac_cpp_err"; then
4976 :
4977else
4978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004979sed 's/^/| /' conftest.$ac_ext >&5
4980
John Criswell47fdd832003-07-14 16:52:07 +00004981 # Broken: fails on valid input.
4982continue
4983fi
4984rm -f conftest.err conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether non-existent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004995#include <ac_nonexistent.h>
4996_ACEOF
4997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005000 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_cxx_preproc_warn_flag
5007 else
5008 ac_cpp_err=
5009 fi
5010else
5011 ac_cpp_err=yes
5012fi
5013if test -z "$ac_cpp_err"; then
5014 # Broken: success on invalid input.
5015continue
5016else
5017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005018sed 's/^/| /' conftest.$ac_ext >&5
5019
John Criswell47fdd832003-07-14 16:52:07 +00005020 # Passes both tests.
5021ac_preproc_ok=:
5022break
5023fi
5024rm -f conftest.err conftest.$ac_ext
5025
5026done
5027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5028rm -f conftest.err conftest.$ac_ext
5029if $ac_preproc_ok; then
5030 break
John Criswell7a73b802003-06-30 21:59:07 +00005031fi
5032
John Criswell47fdd832003-07-14 16:52:07 +00005033 done
5034 ac_cv_prog_CXXCPP=$CXXCPP
5035
5036fi
5037 CXXCPP=$ac_cv_prog_CXXCPP
5038else
5039 ac_cv_prog_CXXCPP=$CXXCPP
5040fi
5041echo "$as_me:$LINENO: result: $CXXCPP" >&5
5042echo "${ECHO_T}$CXXCPP" >&6
5043ac_preproc_ok=false
5044for ac_cxx_preproc_warn_flag in '' yes
5045do
5046 # Use a header file that comes with gcc, so configuring glibc
5047 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00005048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5049 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00005050 # On the NeXT, cc -E runs the code through the compiler's parser,
5051 # not just through cpp. "Syntax error" is here to catch this case.
5052 cat >conftest.$ac_ext <<_ACEOF
5053#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005054/* confdefs.h. */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h. */
5059#ifdef __STDC__
5060# include <limits.h>
5061#else
5062# include <assert.h>
5063#endif
John Criswell47fdd832003-07-14 16:52:07 +00005064 Syntax error
5065_ACEOF
5066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005069 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_cxx_preproc_warn_flag
5076 else
5077 ac_cpp_err=
5078 fi
5079else
5080 ac_cpp_err=yes
5081fi
5082if test -z "$ac_cpp_err"; then
5083 :
5084else
5085 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005086sed 's/^/| /' conftest.$ac_ext >&5
5087
John Criswell47fdd832003-07-14 16:52:07 +00005088 # Broken: fails on valid input.
5089continue
5090fi
5091rm -f conftest.err conftest.$ac_ext
5092
5093 # OK, works on sane cases. Now check whether non-existent headers
5094 # can be detected and how.
5095 cat >conftest.$ac_ext <<_ACEOF
5096#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00005097/* confdefs.h. */
5098_ACEOF
5099cat confdefs.h >>conftest.$ac_ext
5100cat >>conftest.$ac_ext <<_ACEOF
5101/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005102#include <ac_nonexistent.h>
5103_ACEOF
5104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00005107 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00005108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_cxx_preproc_warn_flag
5114 else
5115 ac_cpp_err=
5116 fi
5117else
5118 ac_cpp_err=yes
5119fi
5120if test -z "$ac_cpp_err"; then
5121 # Broken: success on invalid input.
5122continue
5123else
5124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005125sed 's/^/| /' conftest.$ac_ext >&5
5126
John Criswell47fdd832003-07-14 16:52:07 +00005127 # Passes both tests.
5128ac_preproc_ok=:
5129break
5130fi
5131rm -f conftest.err conftest.$ac_ext
5132
5133done
5134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5135rm -f conftest.err conftest.$ac_ext
5136if $ac_preproc_ok; then
5137 :
5138else
John Criswell0c38eaf2003-09-10 15:17:25 +00005139 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5140See \`config.log' for more details." >&5
5141echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00005143 { (exit 1); exit 1; }; }
5144fi
5145
5146ac_ext=cc
5147ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151
5152
5153ac_ext=f
5154ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5155ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5157if test -n "$ac_tool_prefix"; then
John Criswell0c38eaf2003-09-10 15:17:25 +00005158 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 +00005159 do
5160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164if test "${ac_cv_prog_F77+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167 if test -n "$F77"; then
5168 ac_cv_prog_F77="$F77" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181done
5182done
5183
5184fi
5185fi
5186F77=$ac_cv_prog_F77
5187if test -n "$F77"; then
5188 echo "$as_me:$LINENO: result: $F77" >&5
5189echo "${ECHO_T}$F77" >&6
5190else
5191 echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193fi
5194
5195 test -n "$F77" && break
5196 done
5197fi
5198if test -z "$F77"; then
5199 ac_ct_F77=$F77
John Criswell0c38eaf2003-09-10 15:17:25 +00005200 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 +00005201do
5202 # Extract the first word of "$ac_prog", so it can be a program name with args.
5203set dummy $ac_prog; ac_word=$2
5204echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209 if test -n "$ac_ct_F77"; then
5210 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_ac_ct_F77="$ac_prog"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 break 2
5222 fi
5223done
5224done
5225
5226fi
5227fi
5228ac_ct_F77=$ac_cv_prog_ac_ct_F77
5229if test -n "$ac_ct_F77"; then
5230 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5231echo "${ECHO_T}$ac_ct_F77" >&6
5232else
5233 echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
5235fi
5236
5237 test -n "$ac_ct_F77" && break
5238done
5239
5240 F77=$ac_ct_F77
5241fi
5242
5243
5244# Provide some information about the compiler.
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00005245echo "$as_me:5245:" \
John Criswell47fdd832003-07-14 16:52:07 +00005246 "checking for Fortran 77 compiler version" >&5
5247ac_compiler=`set X $ac_compile; echo $2`
5248{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5249 (eval $ac_compiler --version </dev/null >&5) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }
5253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5254 (eval $ac_compiler -v </dev/null >&5) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }
5258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5259 (eval $ac_compiler -V </dev/null >&5) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }
5263
5264# If we don't use `.F' as extension, the preprocessor is not run on the
5265# input file.
5266ac_save_ext=$ac_ext
5267ac_ext=F
5268echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5269echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5270if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273 cat >conftest.$ac_ext <<_ACEOF
5274 program main
5275#ifndef __GNUC__
5276 choke me
5277#endif
5278
5279 end
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_compiler_gnu=yes
5294else
5295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005296sed 's/^/| /' conftest.$ac_ext >&5
5297
John Criswell47fdd832003-07-14 16:52:07 +00005298ac_compiler_gnu=no
5299fi
5300rm -f conftest.$ac_objext conftest.$ac_ext
5301ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5302
5303fi
5304echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5305echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5306ac_ext=$ac_save_ext
5307G77=`test $ac_compiler_gnu = yes && echo yes`
5308ac_test_FFLAGS=${FFLAGS+set}
5309ac_save_FFLAGS=$FFLAGS
5310FFLAGS=
5311echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5312echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5313if test "${ac_cv_prog_f77_g+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316 FFLAGS=-g
5317cat >conftest.$ac_ext <<_ACEOF
5318 program main
5319
5320 end
5321_ACEOF
5322rm -f conftest.$ac_objext
5323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 (eval $ac_try) 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_prog_f77_g=yes
5335else
5336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005337sed 's/^/| /' conftest.$ac_ext >&5
5338
John Criswell47fdd832003-07-14 16:52:07 +00005339ac_cv_prog_f77_g=no
5340fi
5341rm -f conftest.$ac_objext conftest.$ac_ext
5342
5343fi
5344echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5345echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5346if test "$ac_test_FFLAGS" = set; then
5347 FFLAGS=$ac_save_FFLAGS
5348elif test $ac_cv_prog_f77_g = yes; then
5349 if test "$G77" = yes; then
5350 FFLAGS="-g -O2"
5351 else
5352 FFLAGS="-g"
5353 fi
5354else
5355 if test "$G77" = yes; then
5356 FFLAGS="-O2"
5357 else
5358 FFLAGS=
5359 fi
5360fi
5361ac_ext=c
5362ac_cpp='$CPP $CPPFLAGS'
5363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366
5367
5368
5369# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5370
5371# find the maximum length of command line arguments
5372echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5373echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5374if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 i=0
5378 testring="ABCD"
5379
5380 case $build_os in
5381 msdosdjgpp*)
5382 # On DJGPP, this test can blow up pretty badly due to problems in libc
5383 # (any single argument exceeding 2000 bytes causes a buffer overrun
5384 # during glob expansion). Even if it were fixed, the result of this
5385 # check would be larger than it should be.
5386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5387 ;;
5388
5389 gnu*)
5390 # Under GNU Hurd, this test is not required because there is
5391 # no limit to the length of command line arguments.
5392 # Libtool will interpret -1 as no limit whatsoever
5393 lt_cv_sys_max_cmd_len=-1;
5394 ;;
5395
5396 cygwin* | mingw*)
5397 # On Win9x/ME, this test blows up -- it succeeds, but takes
5398 # about 5 minutes as the teststring grows exponentially.
5399 # Worse, since 9x/ME are not pre-emptively multitasking,
5400 # you end up with a "frozen" computer, even though with patience
5401 # the test eventually succeeds (with a max line length of 256k).
5402 # Instead, let's just punt: use the minimum linelength reported by
5403 # all of the supported platforms: 8192 (on NT/2K/XP).
5404 lt_cv_sys_max_cmd_len=8192;
5405 ;;
5406
5407 *)
5408 # If test is not a shell built-in, we'll probably end up computing a
5409 # maximum length that is only half of the actual maximum length, but
5410 # we can't tell.
5411 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5412 = "XX$testring") >/dev/null 2>&1 &&
5413 new_result=`expr "X$testring" : ".*" 2>&1` &&
5414 lt_cv_sys_max_cmd_len=$new_result &&
5415 test $i != 17 # 1/2 MB should be enough
5416 do
5417 i=`expr $i + 1`
5418 testring=$testring$testring
5419 done
5420 testring=
5421 # Add a significant safety factor because C++ compilers can tack on massive
5422 # amounts of additional arguments before passing them to the linker.
5423 # It appears as though 1/2 is a usable value.
5424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5425 ;;
5426 esac
5427
5428fi
5429
5430if test -n $lt_cv_sys_max_cmd_len ; then
5431 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5432echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5433else
5434 echo "$as_me:$LINENO: result: none" >&5
5435echo "${ECHO_T}none" >&6
5436fi
5437
5438
5439
5440
5441# Check for command to grab the raw symbol name followed by C symbol from nm.
5442echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5443echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5444if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447
5448# These are sane defaults that work on at least a few old systems.
5449# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5450
5451# Character class describing NM global symbol codes.
5452symcode='[BCDEGRST]'
5453
5454# Regexp to match symbols that can be accessed directly from C.
5455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5456
5457# Transform the above into a raw symbol and a C symbol.
5458symxfrm='\1 \2\3 \3'
5459
5460# Transform an extracted symbol line into a proper C declaration
5461lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5462
5463# Transform an extracted symbol line into symbol name and symbol address
5464lt_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'"
5465
5466# Define system-specific variables.
5467case $host_os in
5468aix*)
5469 symcode='[BCDT]'
5470 ;;
5471cygwin* | mingw* | pw32*)
5472 symcode='[ABCDGISTW]'
5473 ;;
5474hpux*) # Its linker distinguishes data from code symbols
5475 if test "$host_cpu" = ia64; then
5476 symcode='[ABCDEGRST]'
5477 fi
5478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5479 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'"
5480 ;;
5481irix* | nonstopux*)
5482 symcode='[BCDEGRST]'
5483 ;;
5484osf*)
5485 symcode='[BCDEGQRST]'
5486 ;;
5487solaris* | sysv5*)
5488 symcode='[BDT]'
5489 ;;
5490sysv4)
5491 symcode='[DFNSTU]'
5492 ;;
5493esac
5494
5495# Handle CRLF in mingw tool chain
5496opt_cr=
5497case $build_os in
5498mingw*)
5499 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5500 ;;
5501esac
5502
5503# If we're using GNU nm, then use its standard symbol codes.
5504case `$NM -V 2>&1` in
5505*GNU* | *'with BFD'*)
5506 symcode='[ABCDGISTW]' ;;
5507esac
5508
5509# Try without a prefix undercore, then with it.
5510for ac_symprfx in "" "_"; do
5511
5512 # Write the raw and C identifiers.
5513 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5514
5515 # Check to see that the pipe works correctly.
5516 pipe_works=no
5517
5518 rm -f conftest*
5519 cat > conftest.$ac_ext <<EOF
5520#ifdef __cplusplus
5521extern "C" {
5522#endif
5523char nm_test_var;
5524void nm_test_func(){}
5525#ifdef __cplusplus
5526}
5527#endif
5528int main(){nm_test_var='a';nm_test_func();return(0);}
5529EOF
5530
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; then
5536 # Now try to grab the symbols.
5537 nlist=conftest.nm
5538 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5539 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && test -s "$nlist"; then
5543 # Try sorting and uniquifying the output.
5544 if sort "$nlist" | uniq > "$nlist"T; then
5545 mv -f "$nlist"T "$nlist"
5546 else
5547 rm -f "$nlist"T
5548 fi
5549
5550 # Make sure that we snagged all the symbols we need.
5551 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5552 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5553 cat <<EOF > conftest.$ac_ext
5554#ifdef __cplusplus
5555extern "C" {
5556#endif
5557
5558EOF
5559 # Now generate the symbol file.
5560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5561
5562 cat <<EOF >> conftest.$ac_ext
5563#if defined (__STDC__) && __STDC__
5564# define lt_ptr_t void *
5565#else
5566# define lt_ptr_t char *
5567# define const
5568#endif
5569
5570/* The mapping between symbol names and symbols. */
5571const struct {
5572 const char *name;
5573 lt_ptr_t address;
5574}
5575lt_preloaded_symbols[] =
5576{
5577EOF
5578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5579 cat <<\EOF >> conftest.$ac_ext
5580 {0, (lt_ptr_t) 0}
5581};
5582
5583#ifdef __cplusplus
5584}
5585#endif
5586EOF
5587 # Now try linking the two files.
5588 mv conftest.$ac_objext conftstm.$ac_objext
5589 lt_save_LIBS="$LIBS"
5590 lt_save_CFLAGS="$CFLAGS"
5591 LIBS="conftstm.$ac_objext"
5592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5598 pipe_works=yes
5599 fi
5600 LIBS="$lt_save_LIBS"
5601 CFLAGS="$lt_save_CFLAGS"
5602 else
5603 echo "cannot find nm_test_func in $nlist" >&5
5604 fi
5605 else
5606 echo "cannot find nm_test_var in $nlist" >&5
5607 fi
5608 else
5609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5610 fi
5611 else
5612 echo "$progname: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5614 fi
5615 rm -f conftest* conftst*
5616
5617 # Do not use the global_symbol_pipe unless it works.
5618 if test "$pipe_works" = yes; then
5619 break
5620 else
5621 lt_cv_sys_global_symbol_pipe=
5622 fi
5623done
5624
5625fi
5626
5627if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628 lt_cv_sys_global_symbol_to_cdecl=
5629fi
5630if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631 echo "$as_me:$LINENO: result: failed" >&5
5632echo "${ECHO_T}failed" >&6
5633else
5634 echo "$as_me:$LINENO: result: ok" >&5
5635echo "${ECHO_T}ok" >&6
5636fi
5637
5638echo "$as_me:$LINENO: checking for objdir" >&5
5639echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5640if test "${lt_cv_objdir+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643 rm -f .libs 2>/dev/null
5644mkdir .libs 2>/dev/null
5645if test -d .libs; then
5646 lt_cv_objdir=.libs
5647else
5648 # MS-DOS does not allow filenames that begin with a dot.
5649 lt_cv_objdir=_libs
5650fi
5651rmdir .libs 2>/dev/null
5652fi
5653echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5654echo "${ECHO_T}$lt_cv_objdir" >&6
5655objdir=$lt_cv_objdir
5656
5657
5658
5659
5660
5661case $host_os in
5662aix3*)
5663 # AIX sometimes has problems with the GCC collect2 program. For some
5664 # reason, if we set the COLLECT_NAMES environment variable, the problems
5665 # vanish in a puff of smoke.
5666 if test "X${COLLECT_NAMES+set}" != Xset; then
5667 COLLECT_NAMES=
5668 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005669 fi
5670 ;;
5671esac
5672
John Criswell47fdd832003-07-14 16:52:07 +00005673# Sed substitution that helps us do robust quoting. It backslashifies
5674# metacharacters that are still active within double-quoted strings.
5675Xsed='sed -e s/^X//'
5676sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5677
5678# Same as above, but do not quote variable references.
5679double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5680
5681# Sed substitution to delay expansion of an escaped shell variable in a
5682# double_quote_subst'ed string.
5683delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5684
5685# Sed substitution to avoid accidental globbing in evaled expressions
5686no_glob_subst='s/\*/\\\*/g'
5687
5688# Constants:
5689rm="rm -f"
5690
5691# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005692default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005693can_build_shared=yes
5694
5695# All known linkers require a `.a' archive for static linking (except M$VC,
5696# which needs '.lib').
5697libext=a
5698ltmain="$ac_aux_dir/ltmain.sh"
5699ofile="$default_ofile"
5700with_gnu_ld="$lt_cv_prog_gnu_ld"
5701
5702if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5704set dummy ${ac_tool_prefix}ar; ac_word=$2
5705echo "$as_me:$LINENO: checking for $ac_word" >&5
5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707if test "${ac_cv_prog_AR+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710 if test -n "$AR"; then
5711 ac_cv_prog_AR="$AR" # Let the user override the test.
5712else
5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH
5715do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_AR="${ac_tool_prefix}ar"
5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5723 fi
5724done
5725done
5726
5727fi
5728fi
5729AR=$ac_cv_prog_AR
5730if test -n "$AR"; then
5731 echo "$as_me:$LINENO: result: $AR" >&5
5732echo "${ECHO_T}$AR" >&6
5733else
5734 echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6
5736fi
5737
5738fi
5739if test -z "$ac_cv_prog_AR"; then
5740 ac_ct_AR=$AR
5741 # Extract the first word of "ar", so it can be a program name with args.
5742set dummy ar; ac_word=$2
5743echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
5748 if test -n "$ac_ct_AR"; then
5749 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_AR="ar"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
5763done
5764
5765 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5766fi
5767fi
5768ac_ct_AR=$ac_cv_prog_ac_ct_AR
5769if test -n "$ac_ct_AR"; then
5770 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5771echo "${ECHO_T}$ac_ct_AR" >&6
5772else
5773 echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6
5775fi
5776
5777 AR=$ac_ct_AR
5778else
5779 AR="$ac_cv_prog_AR"
5780fi
5781
John Criswell7a73b802003-06-30 21:59:07 +00005782if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785echo "$as_me:$LINENO: checking for $ac_word" >&5
5786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5787if test "${ac_cv_prog_RANLIB+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804done
5805done
5806
5807fi
5808fi
5809RANLIB=$ac_cv_prog_RANLIB
5810if test -n "$RANLIB"; then
5811 echo "$as_me:$LINENO: result: $RANLIB" >&5
5812echo "${ECHO_T}$RANLIB" >&6
5813else
5814 echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6
5816fi
5817
5818fi
5819if test -z "$ac_cv_prog_RANLIB"; then
5820 ac_ct_RANLIB=$RANLIB
5821 # Extract the first word of "ranlib", so it can be a program name with args.
5822set dummy ranlib; ac_word=$2
5823echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828 if test -n "$ac_ct_RANLIB"; then
5829 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_ac_ct_RANLIB="ranlib"
5839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842done
5843done
5844
5845 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5846fi
5847fi
5848ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5849if test -n "$ac_ct_RANLIB"; then
5850 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5851echo "${ECHO_T}$ac_ct_RANLIB" >&6
5852else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855fi
5856
5857 RANLIB=$ac_ct_RANLIB
5858else
5859 RANLIB="$ac_cv_prog_RANLIB"
5860fi
5861
5862if test -n "$ac_tool_prefix"; then
5863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5864set dummy ${ac_tool_prefix}strip; ac_word=$2
5865echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867if test "${ac_cv_prog_STRIP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870 if test -n "$STRIP"; then
5871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885done
5886
5887fi
5888fi
5889STRIP=$ac_cv_prog_STRIP
5890if test -n "$STRIP"; then
5891 echo "$as_me:$LINENO: result: $STRIP" >&5
5892echo "${ECHO_T}$STRIP" >&6
5893else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896fi
5897
5898fi
5899if test -z "$ac_cv_prog_STRIP"; then
5900 ac_ct_STRIP=$STRIP
5901 # Extract the first word of "strip", so it can be a program name with args.
5902set dummy strip; ac_word=$2
5903echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 if test -n "$ac_ct_STRIP"; then
5909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918 ac_cv_prog_ac_ct_STRIP="strip"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923done
5924
5925 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5926fi
5927fi
5928ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5929if test -n "$ac_ct_STRIP"; then
5930 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5931echo "${ECHO_T}$ac_ct_STRIP" >&6
5932else
5933 echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6
5935fi
5936
5937 STRIP=$ac_ct_STRIP
5938else
5939 STRIP="$ac_cv_prog_STRIP"
5940fi
5941
5942
John Criswell7a73b802003-06-30 21:59:07 +00005943old_CC="$CC"
5944old_CFLAGS="$CFLAGS"
5945
5946# Set sane defaults for various variables
5947test -z "$AR" && AR=ar
5948test -z "$AR_FLAGS" && AR_FLAGS=cru
5949test -z "$AS" && AS=as
5950test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005951test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005952test -z "$DLLTOOL" && DLLTOOL=dlltool
5953test -z "$LD" && LD=ld
5954test -z "$LN_S" && LN_S="ln -s"
5955test -z "$MAGIC_CMD" && MAGIC_CMD=file
5956test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005957test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005958test -z "$OBJDUMP" && OBJDUMP=objdump
5959test -z "$RANLIB" && RANLIB=:
5960test -z "$STRIP" && STRIP=:
5961test -z "$ac_objext" && ac_objext=o
5962
John Criswell7a73b802003-06-30 21:59:07 +00005963# Determine commands to create old-style static archives.
5964old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5965old_postinstall_cmds='chmod 644 $oldlib'
5966old_postuninstall_cmds=
5967
5968if test -n "$RANLIB"; then
5969 case $host_os in
5970 openbsd*)
5971 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5972 ;;
5973 *)
5974 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5975 ;;
5976 esac
5977 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5978fi
5979
John Criswell47fdd832003-07-14 16:52:07 +00005980# Only perform the check for file, if the check method requires it
5981case $deplibs_check_method in
5982file_magic*)
5983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5984 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5985echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5986if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005988else
John Criswell47fdd832003-07-14 16:52:07 +00005989 case $MAGIC_CMD in
5990[\\/*] | ?:[\\/]*)
5991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5992 ;;
5993*)
5994 lt_save_MAGIC_CMD="$MAGIC_CMD"
5995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5997 for ac_dir in $ac_dummy; do
5998 IFS="$lt_save_ifs"
5999 test -z "$ac_dir" && ac_dir=.
6000 if test -f $ac_dir/${ac_tool_prefix}file; then
6001 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6002 if test -n "$file_magic_test_file"; then
6003 case $deplibs_check_method in
6004 "file_magic "*)
6005 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6008 $EGREP "$file_magic_regex" > /dev/null; then
6009 :
6010 else
6011 cat <<EOF 1>&2
6012
6013*** Warning: the command libtool uses to detect shared libraries,
6014*** $file_magic_cmd, produces output that libtool cannot recognize.
6015*** The result is that libtool may fail to recognize shared libraries
6016*** as such. This will affect the creation of libtool libraries that
6017*** depend on shared libraries, but programs linked with such libtool
6018*** libraries will work regardless of this problem. Nevertheless, you
6019*** may want to report the problem to your system manager and/or to
6020*** bug-libtool@gnu.org
6021
6022EOF
6023 fi ;;
6024 esac
6025 fi
6026 break
6027 fi
6028 done
6029 IFS="$lt_save_ifs"
6030 MAGIC_CMD="$lt_save_MAGIC_CMD"
6031 ;;
6032esac
John Criswell7a73b802003-06-30 21:59:07 +00006033fi
John Criswell7a73b802003-06-30 21:59:07 +00006034
John Criswell47fdd832003-07-14 16:52:07 +00006035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6036if test -n "$MAGIC_CMD"; then
6037 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6038echo "${ECHO_T}$MAGIC_CMD" >&6
6039else
6040 echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6
6042fi
John Criswell7a73b802003-06-30 21:59:07 +00006043
John Criswell47fdd832003-07-14 16:52:07 +00006044if test -z "$lt_cv_path_MAGIC_CMD"; then
6045 if test -n "$ac_tool_prefix"; then
6046 echo "$as_me:$LINENO: checking for file" >&5
6047echo $ECHO_N "checking for file... $ECHO_C" >&6
6048if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051 case $MAGIC_CMD in
6052[\\/*] | ?:[\\/]*)
6053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6054 ;;
6055*)
6056 lt_save_MAGIC_CMD="$MAGIC_CMD"
6057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6059 for ac_dir in $ac_dummy; do
6060 IFS="$lt_save_ifs"
6061 test -z "$ac_dir" && ac_dir=.
6062 if test -f $ac_dir/file; then
6063 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6064 if test -n "$file_magic_test_file"; then
6065 case $deplibs_check_method in
6066 "file_magic "*)
6067 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6070 $EGREP "$file_magic_regex" > /dev/null; then
6071 :
6072 else
6073 cat <<EOF 1>&2
6074
6075*** Warning: the command libtool uses to detect shared libraries,
6076*** $file_magic_cmd, produces output that libtool cannot recognize.
6077*** The result is that libtool may fail to recognize shared libraries
6078*** as such. This will affect the creation of libtool libraries that
6079*** depend on shared libraries, but programs linked with such libtool
6080*** libraries will work regardless of this problem. Nevertheless, you
6081*** may want to report the problem to your system manager and/or to
6082*** bug-libtool@gnu.org
6083
6084EOF
6085 fi ;;
6086 esac
6087 fi
6088 break
6089 fi
6090 done
6091 IFS="$lt_save_ifs"
6092 MAGIC_CMD="$lt_save_MAGIC_CMD"
6093 ;;
6094esac
6095fi
6096
6097MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6098if test -n "$MAGIC_CMD"; then
6099 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6100echo "${ECHO_T}$MAGIC_CMD" >&6
6101else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104fi
6105
6106 else
6107 MAGIC_CMD=:
6108 fi
6109fi
6110
6111 fi
6112 ;;
6113esac
6114
6115enable_dlopen=no
6116enable_win32_dll=no
6117
6118# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6119if test "${enable_libtool_lock+set}" = set; then
6120 enableval="$enable_libtool_lock"
6121
6122fi;
6123test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6124
John Criswell7a73b802003-06-30 21:59:07 +00006125
6126# Check whether --with-pic or --without-pic was given.
6127if test "${with_pic+set}" = set; then
6128 withval="$with_pic"
6129 pic_mode="$withval"
6130else
6131 pic_mode=default
6132fi;
6133test -z "$pic_mode" && pic_mode=default
6134
John Criswell47fdd832003-07-14 16:52:07 +00006135# Use C for the default configuration in the libtool script
6136tagname=
6137lt_save_CC="$CC"
6138ac_ext=c
6139ac_cpp='$CPP $CPPFLAGS'
6140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143
6144
6145# Source file extension for C test sources.
6146ac_ext=c
6147
6148# Object file extension for compiled C test sources.
6149objext=o
6150objext=$objext
6151
6152# Code to be used in simple compile tests
6153lt_simple_compile_test_code="int some_variable = 0;\n"
6154
6155# Code to be used in simple link tests
6156lt_simple_link_test_code='int main(){return(0);}\n'
6157
6158
6159# If no C compiler was specified, use CC.
6160LTCC=${LTCC-"$CC"}
6161
6162# Allow CC to be a program name with arguments.
6163compiler=$CC
6164
6165
6166#
6167# Check for any special shared library compilation flags.
6168#
6169lt_prog_cc_shlib=
6170if test "$GCC" = no; then
6171 case $host_os in
6172 sco3.2v5*)
6173 lt_prog_cc_shlib='-belf'
6174 ;;
6175 esac
6176fi
6177if test -n "$lt_prog_cc_shlib"; then
6178 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6179echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6180 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6181 else
6182 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6183echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6184 lt_cv_prog_cc_can_build_shared=no
6185 fi
6186fi
6187
6188
6189#
6190# Check to make sure the static flag actually works.
6191#
6192echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6193echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6194if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
John Criswell47fdd832003-07-14 16:52:07 +00006197 lt_prog_compiler_static_works=no
6198 save_LDFLAGS="$LDFLAGS"
6199 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6200 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6202 # The compiler can only warn and ignore the option if not recognized
6203 # So say no if there are warnings
6204 if test -s conftest.err; then
6205 # Append any errors to the config.log.
6206 cat conftest.err 1>&5
6207 else
6208 lt_prog_compiler_static_works=yes
6209 fi
6210 fi
6211 $rm conftest*
6212 LDFLAGS="$save_LDFLAGS"
6213
6214fi
6215echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6216echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6217
6218if test x"$lt_prog_compiler_static_works" = xyes; then
6219 :
6220else
6221 lt_prog_compiler_static=
6222fi
6223
6224
6225
6226## CAVEAT EMPTOR:
6227## There is no encapsulation within the following macros, do not change
6228## the running order or otherwise move them around unless you know exactly
6229## what you are doing...
6230
6231lt_prog_compiler_no_builtin_flag=
6232
6233if test "$GCC" = yes; then
6234 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6235
6236 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6237echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6238if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240else
6241 lt_cv_prog_compiler_rtti_exceptions=no
6242 ac_outfile=conftest.$ac_objext
6243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6244 lt_compiler_flag="-fno-rtti -fno-exceptions"
6245 # Insert the option either (1) after the last *FLAGS variable, or
6246 # (2) before a word containing "conftest.", or (3) at the end.
6247 # Note that $ac_compile itself does not contain backslashes and begins
6248 # with a dollar sign (not a hyphen), so the echo should work correctly.
6249 # The option is referenced via a variable to avoid confusing sed.
6250 lt_compile=`echo "$ac_compile" | $SED \
6251 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6253 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006254 (eval echo "\"\$as_me:6254: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006255 (eval "$lt_compile" 2>conftest.err)
6256 ac_status=$?
6257 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006258 echo "$as_me:6258: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006259 if (exit $ac_status) && test -s "$ac_outfile"; then
6260 # The compiler can only warn and ignore the option if not recognized
6261 # So say no if there are warnings
6262 if test ! -s conftest.err; then
6263 lt_cv_prog_compiler_rtti_exceptions=yes
6264 fi
6265 fi
6266 $rm conftest*
6267
6268fi
6269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6270echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6271
6272if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6274else
6275 :
6276fi
6277
6278fi
6279
6280lt_prog_compiler_wl=
6281lt_prog_compiler_pic=
6282lt_prog_compiler_static=
6283
6284echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6285echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006286
6287 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_prog_compiler_wl='-Wl,'
6289 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006290
6291 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006292 aix*)
6293 # All AIX code is PIC.
6294 if test "$host_cpu" = ia64; then
6295 # AIX 5 now supports IA64 processor
6296 lt_prog_compiler_static='-Bstatic'
6297 fi
John Criswell7a73b802003-06-30 21:59:07 +00006298 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006299
John Criswell7a73b802003-06-30 21:59:07 +00006300 amigaos*)
6301 # FIXME: we need at least 68020 code to build shared libraries, but
6302 # adding the `-m68020' flag to GCC prevents building anything better,
6303 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006304 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006305 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006306
6307 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006308 # PIC is the default for these OSes.
6309 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006310
6311 mingw* | pw32* | os2*)
6312 # This hack is so that the source file can tell whether it is being
6313 # built for inclusion in a dll (and should export symbols for example).
6314 lt_prog_compiler_pic='-DDLL_EXPORT'
6315 ;;
6316
John Criswell7a73b802003-06-30 21:59:07 +00006317 darwin* | rhapsody*)
6318 # PIC is the default on this platform
6319 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006320 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006321 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006322
6323 msdosdjgpp*)
6324 # Just because we use GCC doesn't mean we suddenly get shared libraries
6325 # on systems that don't support them.
6326 lt_prog_compiler_can_build_shared=no
6327 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006328 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006329
John Criswell7a73b802003-06-30 21:59:07 +00006330 sysv4*MP*)
6331 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006332 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006333 fi
6334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006335
6336 hpux*)
6337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6338 # not for PA HP-UX.
6339 case "$host_cpu" in
6340 hppa*64*|ia64*)
6341 # +Z the default
6342 ;;
6343 *)
6344 lt_prog_compiler_pic='-fPIC'
6345 ;;
6346 esac
6347 ;;
6348
John Criswell7a73b802003-06-30 21:59:07 +00006349 *)
John Criswell47fdd832003-07-14 16:52:07 +00006350 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006351 ;;
6352 esac
6353 else
John Criswell47fdd832003-07-14 16:52:07 +00006354 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006355 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006356 aix*)
6357 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006358 if test "$host_cpu" = ia64; then
6359 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006360 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006361 else
John Criswell47fdd832003-07-14 16:52:07 +00006362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006363 fi
6364 ;;
6365
John Criswell47fdd832003-07-14 16:52:07 +00006366 mingw* | pw32* | os2*)
6367 # This hack is so that the source file can tell whether it is being
6368 # built for inclusion in a dll (and should export symbols for example).
6369 lt_prog_compiler_pic='-DDLL_EXPORT'
6370 ;;
6371
John Criswell7a73b802003-06-30 21:59:07 +00006372 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006373 lt_prog_compiler_wl='-Wl,'
6374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6375 # not for PA HP-UX.
6376 case "$host_cpu" in
6377 hppa*64*|ia64*)
6378 # +Z the default
6379 ;;
6380 *)
6381 lt_prog_compiler_pic='+Z'
6382 ;;
6383 esac
6384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6385 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006386 ;;
6387
John Criswell47fdd832003-07-14 16:52:07 +00006388 irix5* | irix6* | nonstopux*)
6389 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006390 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006391 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006392 ;;
6393
6394 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006395 lt_prog_compiler_pic='-KPIC'
6396 lt_prog_compiler_static='-Bstatic'
6397 ;;
6398
6399 linux*)
6400 case $CC in
6401 icc|ecc)
6402 lt_prog_compiler_wl='-Wl,'
6403 lt_prog_compiler_pic='-KPIC'
6404 lt_prog_compiler_static='-static'
6405 ;;
6406 ccc)
6407 lt_prog_compiler_wl='-Wl,'
6408 # All Alpha code is PIC.
6409 lt_prog_compiler_static='-non_shared'
6410 ;;
6411 esac
John Criswell7a73b802003-06-30 21:59:07 +00006412 ;;
6413
6414 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006415 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006416 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006417 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006418 ;;
6419
6420 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006421 lt_prog_compiler_pic='-Kpic'
6422 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006423 ;;
6424
6425 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006426 lt_prog_compiler_wl='-Wl,'
6427 lt_prog_compiler_pic='-KPIC'
6428 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006429 ;;
6430
6431 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006432 lt_prog_compiler_wl='-Qoption ld '
6433 lt_prog_compiler_pic='-PIC'
6434 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006435 ;;
6436
6437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006438 lt_prog_compiler_wl='-Wl,'
6439 lt_prog_compiler_pic='-KPIC'
6440 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006441 ;;
6442
6443 sysv4*MP*)
6444 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006445 lt_prog_compiler_pic='-Kconform_pic'
6446 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006447 fi
6448 ;;
6449
John Criswell47fdd832003-07-14 16:52:07 +00006450 uts4*)
6451 lt_prog_compiler_pic='-pic'
6452 lt_prog_compiler_static='-Bstatic'
6453 ;;
6454
John Criswell7a73b802003-06-30 21:59:07 +00006455 *)
John Criswell47fdd832003-07-14 16:52:07 +00006456 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006457 ;;
6458 esac
6459 fi
6460
John Criswell47fdd832003-07-14 16:52:07 +00006461echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6462echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006463
John Criswell47fdd832003-07-14 16:52:07 +00006464#
6465# Check to make sure the PIC flag actually works.
6466#
6467if test -n "$lt_prog_compiler_pic"; then
6468 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6470if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
John Criswell47fdd832003-07-14 16:52:07 +00006473 lt_prog_compiler_pic_works=no
6474 ac_outfile=conftest.$ac_objext
6475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6477 # Insert the option either (1) after the last *FLAGS variable, or
6478 # (2) before a word containing "conftest.", or (3) at the end.
6479 # Note that $ac_compile itself does not contain backslashes and begins
6480 # with a dollar sign (not a hyphen), so the echo should work correctly.
6481 # The option is referenced via a variable to avoid confusing sed.
6482 lt_compile=`echo "$ac_compile" | $SED \
6483 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6485 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006486 (eval echo "\"\$as_me:6486: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006487 (eval "$lt_compile" 2>conftest.err)
6488 ac_status=$?
6489 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006490 echo "$as_me:6490: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006491 if (exit $ac_status) && test -s "$ac_outfile"; then
6492 # The compiler can only warn and ignore the option if not recognized
6493 # So say no if there are warnings
6494 if test ! -s conftest.err; then
6495 lt_prog_compiler_pic_works=yes
6496 fi
6497 fi
6498 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006499
John Criswell47fdd832003-07-14 16:52:07 +00006500fi
6501echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6502echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006503
John Criswell47fdd832003-07-14 16:52:07 +00006504if test x"$lt_prog_compiler_pic_works" = xyes; then
6505 case $lt_prog_compiler_pic in
6506 "" | " "*) ;;
6507 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6508 esac
John Criswell7a73b802003-06-30 21:59:07 +00006509else
John Criswell47fdd832003-07-14 16:52:07 +00006510 lt_prog_compiler_pic=
6511 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006512fi
6513
John Criswell7a73b802003-06-30 21:59:07 +00006514fi
John Criswell47fdd832003-07-14 16:52:07 +00006515case "$host_os" in
6516 # For platforms which do not support PIC, -DPIC is meaningless:
6517 *djgpp*)
6518 lt_prog_compiler_pic=
6519 ;;
6520 *)
6521 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6522 ;;
6523esac
John Criswell7a73b802003-06-30 21:59:07 +00006524
John Criswell7a73b802003-06-30 21:59:07 +00006525echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6526echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006527if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006528 echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
John Criswell47fdd832003-07-14 16:52:07 +00006530 lt_cv_prog_compiler_c_o=no
6531 $rm -r conftest 2>/dev/null
6532 mkdir conftest
6533 cd conftest
6534 mkdir out
6535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006536
John Criswell47fdd832003-07-14 16:52:07 +00006537 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6538 # that will create temporary files in the current directory regardless of
6539 # the output directory. Thus, making CWD read-only will cause this test
6540 # to fail, enabling locking or at least warning the user not to do parallel
6541 # builds.
6542 chmod -w .
6543
6544 lt_compiler_flag="-o out/conftest2.$ac_objext"
6545 # Insert the option either (1) after the last *FLAGS variable, or
6546 # (2) before a word containing "conftest.", or (3) at the end.
6547 # Note that $ac_compile itself does not contain backslashes and begins
6548 # with a dollar sign (not a hyphen), so the echo should work correctly.
6549 lt_compile=`echo "$ac_compile" | $SED \
6550 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6552 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006553 (eval echo "\"\$as_me:6553: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006554 (eval "$lt_compile" 2>out/conftest.err)
6555 ac_status=$?
6556 cat out/conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00006557 echo "$as_me:6557: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6559 then
6560 # The compiler can only warn and ignore the option if not recognized
6561 # So say no if there are warnings
6562 if test ! -s out/conftest.err; then
6563 lt_cv_prog_compiler_c_o=yes
6564 fi
6565 fi
6566 chmod u+w .
6567 $rm conftest* out/*
6568 rmdir out
6569 cd ..
6570 rmdir conftest
6571 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006572
6573fi
John Criswell47fdd832003-07-14 16:52:07 +00006574echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6575echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006576
John Criswell7a73b802003-06-30 21:59:07 +00006577
John Criswell7a73b802003-06-30 21:59:07 +00006578hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006579if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006580 # do not overwrite the value of need_locks provided by the user
6581 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6582echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6583 hard_links=yes
6584 $rm conftest*
6585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6586 touch conftest.a
6587 ln conftest.a conftest.b 2>&5 || hard_links=no
6588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6589 echo "$as_me:$LINENO: result: $hard_links" >&5
6590echo "${ECHO_T}$hard_links" >&6
6591 if test "$hard_links" = no; then
6592 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6593echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6594 need_locks=warn
6595 fi
6596else
6597 need_locks=no
6598fi
John Criswell7a73b802003-06-30 21:59:07 +00006599
John Criswell47fdd832003-07-14 16:52:07 +00006600echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6601echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6602
6603 runpath_var=
6604 allow_undefined_flag=
6605 enable_shared_with_static_runtimes=no
6606 archive_cmds=
6607 archive_expsym_cmds=
6608 old_archive_From_new_cmds=
6609 old_archive_from_expsyms_cmds=
6610 export_dynamic_flag_spec=
6611 whole_archive_flag_spec=
6612 thread_safe_flag_spec=
6613 hardcode_libdir_flag_spec=
6614 hardcode_libdir_flag_spec_ld=
6615 hardcode_libdir_separator=
6616 hardcode_direct=no
6617 hardcode_minus_L=no
6618 hardcode_shlibpath_var=unsupported
6619 link_all_deplibs=unknown
6620 hardcode_automatic=no
6621 module_cmds=
6622 module_expsym_cmds=
6623 always_export_symbols=no
6624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6625 # include_expsyms should be a list of space-separated symbols to be *always*
6626 # included in the symbol list
6627 include_expsyms=
6628 # exclude_expsyms can be an extended regexp of symbols to exclude
6629 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6630 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6631 # as well as any symbol that contains `d'.
6632 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6633 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6634 # platforms (ab)use it in PIC code, but their linkers get confused if
6635 # the symbol is explicitly referenced. Since portable code cannot
6636 # rely on this symbol name, it's probably fine to never include it in
6637 # preloaded symbol tables.
6638 extract_expsyms_cmds=
6639
6640 case $host_os in
6641 cygwin* | mingw* | pw32*)
6642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6643 # When not using gcc, we currently assume that we are using
6644 # Microsoft Visual C++.
6645 if test "$GCC" != yes; then
6646 with_gnu_ld=no
6647 fi
6648 ;;
6649 openbsd*)
6650 with_gnu_ld=no
6651 ;;
6652 esac
6653
6654 ld_shlibs=yes
6655 if test "$with_gnu_ld" = yes; then
6656 # If archive_cmds runs LD, not CC, wlarc should be empty
6657 wlarc='${wl}'
6658
6659 # See if GNU ld supports shared libraries.
6660 case $host_os in
6661 aix3* | aix4* | aix5*)
6662 # On AIX/PPC, the GNU linker is very broken
6663 if test "$host_cpu" != ia64; then
6664 ld_shlibs=no
6665 cat <<EOF 1>&2
6666
6667*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6668*** to be unable to reliably create shared libraries on AIX.
6669*** Therefore, libtool is disabling shared libraries support. If you
6670*** really care for shared libraries, you may want to modify your PATH
6671*** so that a non-GNU linker is found, and then restart.
6672
6673EOF
6674 fi
6675 ;;
6676
6677 amigaos*)
6678 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)'
6679 hardcode_libdir_flag_spec='-L$libdir'
6680 hardcode_minus_L=yes
6681
6682 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6683 # that the semantics of dynamic libraries on AmigaOS, at least up
6684 # to version 4, is to share data among multiple programs linked
6685 # with the same dynamic library. Since this doesn't match the
6686 # behavior of shared libraries on other platforms, we can't use
6687 # them.
6688 ld_shlibs=no
6689 ;;
6690
6691 beos*)
6692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6693 allow_undefined_flag=unsupported
6694 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6695 # support --undefined. This deserves some investigation. FIXME
6696 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6697 else
6698 ld_shlibs=no
6699 fi
6700 ;;
6701
6702 cygwin* | mingw* | pw32*)
6703 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6704 # as there is no search path for DLLs.
6705 hardcode_libdir_flag_spec='-L$libdir'
6706 allow_undefined_flag=unsupported
6707 always_export_symbols=no
6708 enable_shared_with_static_runtimes=yes
6709 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6710
6711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6713 # If the export-symbols file already is a .def file (1st line
6714 # is EXPORTS), use it as is; otherwise, prepend...
6715 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6716 cp $export_symbols $output_objdir/$soname.def;
6717 else
6718 echo EXPORTS > $output_objdir/$soname.def;
6719 cat $export_symbols >> $output_objdir/$soname.def;
6720 fi~
6721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6722 else
6723 ld_shlibs=no
6724 fi
6725 ;;
6726
6727 netbsd*)
6728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6730 wlarc=
6731 else
6732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6734 fi
6735 ;;
6736
6737 solaris* | sysv5*)
6738 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6739 ld_shlibs=no
6740 cat <<EOF 1>&2
6741
6742*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6743*** create shared libraries on Solaris systems. Therefore, libtool
6744*** is disabling shared libraries support. We urge you to upgrade GNU
6745*** binutils to release 2.9.1 or newer. Another option is to modify
6746*** your PATH or compiler configuration so that the native linker is
6747*** used, and then restart.
6748
6749EOF
6750 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6753 else
6754 ld_shlibs=no
6755 fi
6756 ;;
6757
6758 sunos4*)
6759 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6760 wlarc=
6761 hardcode_direct=yes
6762 hardcode_shlibpath_var=no
6763 ;;
6764
6765 *)
6766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6769 else
6770 ld_shlibs=no
6771 fi
6772 ;;
6773 esac
6774
6775 if test "$ld_shlibs" = yes; then
6776 runpath_var=LD_RUN_PATH
6777 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6778 export_dynamic_flag_spec='${wl}--export-dynamic'
6779 # ancient GNU ld didn't support --whole-archive et. al.
6780 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6781 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6782 else
6783 whole_archive_flag_spec=
6784 fi
6785 fi
6786 else
6787 # PORTME fill in a description of your system's linker (not GNU ld)
6788 case $host_os in
6789 aix3*)
6790 allow_undefined_flag=unsupported
6791 always_export_symbols=yes
6792 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'
6793 # Note: this linker hardcodes the directories in LIBPATH if there
6794 # are no directories specified by -L.
6795 hardcode_minus_L=yes
6796 if test "$GCC" = yes && test -z "$link_static_flag"; then
6797 # Neither direct hardcoding nor static linking is supported with a
6798 # broken collect2.
6799 hardcode_direct=unsupported
6800 fi
6801 ;;
6802
6803 aix4* | aix5*)
6804 if test "$host_cpu" = ia64; then
6805 # On IA64, the linker does run time linking by default, so we don't
6806 # have to do anything special.
6807 aix_use_runtimelinking=no
6808 exp_sym_flag='-Bexport'
6809 no_entry_flag=""
6810 else
6811 # If we're using GNU nm, then we don't want the "-C" option.
6812 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6813 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6814 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'
6815 else
6816 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'
6817 fi
6818 aix_use_runtimelinking=no
6819
6820 # Test if we are trying to use run time linking or normal
6821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6822 # need to do runtime linking.
6823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6824 for ld_flag in $LDFLAGS; do
6825 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6826 aix_use_runtimelinking=yes
6827 break
6828 fi
6829 done
6830 esac
6831
6832 exp_sym_flag='-bexport'
6833 no_entry_flag='-bnoentry'
6834 fi
6835
6836 # When large executables or shared objects are built, AIX ld can
6837 # have problems creating the table of contents. If linking a library
6838 # or program results in "error TOC overflow" add -mminimal-toc to
6839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6841
6842 archive_cmds=''
6843 hardcode_direct=yes
6844 hardcode_libdir_separator=':'
6845 link_all_deplibs=yes
6846
6847 if test "$GCC" = yes; then
6848 case $host_os in aix4.012|aix4.012.*)
6849 # We only want to do this on AIX 4.2 and lower, the check
6850 # below for broken collect2 doesn't work under 4.3+
6851 collect2name=`${CC} -print-prog-name=collect2`
6852 if test -f "$collect2name" && \
6853 strings "$collect2name" | grep resolve_lib_name >/dev/null
6854 then
6855 # We have reworked collect2
6856 hardcode_direct=yes
6857 else
6858 # We have old collect2
6859 hardcode_direct=unsupported
6860 # It fails to find uninstalled libraries when the uninstalled
6861 # path is not listed in the libpath. Setting hardcode_minus_L
6862 # to unsupported forces relinking
6863 hardcode_minus_L=yes
6864 hardcode_libdir_flag_spec='-L$libdir'
6865 hardcode_libdir_separator=
6866 fi
6867 esac
6868 shared_flag='-shared'
6869 else
6870 # not using gcc
6871 if test "$host_cpu" = ia64; then
6872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6873 # chokes on -Wl,-G. The following line is correct:
6874 shared_flag='-G'
6875 else
6876 if test "$aix_use_runtimelinking" = yes; then
6877 shared_flag='${wl}-G'
6878 else
6879 shared_flag='${wl}-bM:SRE'
6880 fi
6881 fi
6882 fi
6883
6884 # It seems that -bexpall does not export symbols beginning with
6885 # underscore (_), so it is better to generate a list of symbols to export.
6886 always_export_symbols=yes
6887 if test "$aix_use_runtimelinking" = yes; then
6888 # Warning - without using the other runtime loading flags (-brtl),
6889 # -berok will link without error, but may produce a broken library.
6890 allow_undefined_flag='-berok'
6891 # Determine the default libpath from the value encoded in an empty executable.
6892 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006893#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006894/* confdefs.h. */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006899
John Criswell7a73b802003-06-30 21:59:07 +00006900int
6901main ()
6902{
John Criswell47fdd832003-07-14 16:52:07 +00006903
John Criswell7a73b802003-06-30 21:59:07 +00006904 ;
6905 return 0;
6906}
6907_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006908rm -f conftest.$ac_objext conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006914 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006920
John Criswell47fdd832003-07-14 16:52:07 +00006921aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6922}'`
6923# Check for a 64-bit object if we didn't find anything.
6924if 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; }
6925}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006926else
6927 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006928sed 's/^/| /' conftest.$ac_ext >&5
6929
John Criswell7a73b802003-06-30 21:59:07 +00006930fi
John Criswell47fdd832003-07-14 16:52:07 +00006931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006933
John Criswell47fdd832003-07-14 16:52:07 +00006934 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6935 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"
6936 else
6937 if test "$host_cpu" = ia64; then
6938 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6939 allow_undefined_flag="-z nodefs"
6940 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"
6941 else
6942 # Determine the default libpath from the value encoded in an empty executable.
6943 cat >conftest.$ac_ext <<_ACEOF
6944#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006950
John Criswell47fdd832003-07-14 16:52:07 +00006951int
6952main ()
6953{
John Criswell7a73b802003-06-30 21:59:07 +00006954
John Criswell47fdd832003-07-14 16:52:07 +00006955 ;
6956 return 0;
6957}
6958_ACEOF
6959rm -f conftest.$ac_objext conftest$ac_exeext
6960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } &&
6965 { ac_try='test -s conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006971
John Criswell47fdd832003-07-14 16:52:07 +00006972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6973}'`
6974# Check for a 64-bit object if we didn't find anything.
6975if 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; }
6976}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006977else
John Criswell47fdd832003-07-14 16:52:07 +00006978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006979sed 's/^/| /' conftest.$ac_ext >&5
6980
John Criswell47fdd832003-07-14 16:52:07 +00006981fi
6982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006984
John Criswell47fdd832003-07-14 16:52:07 +00006985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6986 # Warning - without using the other run time loading flags,
6987 # -berok will link without error, but may produce a broken library.
6988 no_undefined_flag=' ${wl}-bernotok'
6989 allow_undefined_flag=' ${wl}-berok'
6990 # -bexpall does not export symbols beginning with underscore (_)
6991 always_export_symbols=yes
6992 # Exported symbols can be pulled into shared objects from archives
6993 whole_archive_flag_spec=' '
6994 archive_cmds_need_lc=yes
6995 # This is similar to how AIX traditionally builds it's shared libraries.
6996 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 +00006997 fi
6998 fi
John Criswell7a73b802003-06-30 21:59:07 +00006999 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007000
7001 amigaos*)
7002 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)'
7003 hardcode_libdir_flag_spec='-L$libdir'
7004 hardcode_minus_L=yes
7005 # see comment about different semantics on the GNU ld section
7006 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00007007 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007008
John Criswell47fdd832003-07-14 16:52:07 +00007009 bsdi4*)
7010 export_dynamic_flag_spec=-rdynamic
7011 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007012
John Criswell47fdd832003-07-14 16:52:07 +00007013 cygwin* | mingw* | pw32*)
7014 # When not using gcc, we currently assume that we are using
7015 # Microsoft Visual C++.
7016 # hardcode_libdir_flag_spec is actually meaningless, as there is
7017 # no search path for DLLs.
7018 hardcode_libdir_flag_spec=' '
7019 allow_undefined_flag=unsupported
7020 # Tell ltmain to make .lib files, not .a files.
7021 libext=lib
7022 # Tell ltmain to make .dll files, not .so files.
7023 shrext=".dll"
7024 # FIXME: Setting linknames here is a bad hack.
7025 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7026 # The linker will automatically build a .lib file if we build a DLL.
7027 old_archive_From_new_cmds='true'
7028 # FIXME: Should let the user specify the lib program.
7029 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7030 fix_srcfile_path='`cygpath -w "$srcfile"`'
7031 enable_shared_with_static_runtimes=yes
7032 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007033
John Criswell47fdd832003-07-14 16:52:07 +00007034 darwin* | rhapsody*)
7035 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7036 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00007037 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00007038 rhapsody* | darwin1.[012])
7039 allow_undefined_flag='-undefined suppress'
7040 ;;
7041 *) # Darwin 1.3 on
7042 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00007043 ;;
7044 esac
John Criswell47fdd832003-07-14 16:52:07 +00007045 # FIXME: Relying on posixy $() will cause problems for
7046 # cross-compilation, but unfortunately the echo tests do not
7047 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7048 # `"' quotes if we put them in here... so don't!
7049 lt_int_apple_cc_single_mod=no
7050 output_verbose_link_cmd='echo'
7051 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7052 lt_int_apple_cc_single_mod=yes
7053 fi
7054 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7055 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7056 else
7057 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'
7058 fi
7059 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7060 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7061 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7062 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}'
7063 else
7064 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}'
7065 fi
7066 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}'
7067 hardcode_direct=no
7068 hardcode_automatic=yes
7069 hardcode_shlibpath_var=unsupported
7070 whole_archive_flag_spec='-all_load $convenience'
7071 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007072 fi
John Criswell47fdd832003-07-14 16:52:07 +00007073 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007074
John Criswell47fdd832003-07-14 16:52:07 +00007075 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007077 hardcode_libdir_flag_spec='-L$libdir'
7078 hardcode_shlibpath_var=no
7079 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007080
John Criswell47fdd832003-07-14 16:52:07 +00007081 freebsd1*)
7082 ld_shlibs=no
7083 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007084
John Criswell47fdd832003-07-14 16:52:07 +00007085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7086 # support. Future versions do this automatically, but an explicit c++rt0.o
7087 # does not break anything, and helps significantly (at the cost of a little
7088 # extra space).
7089 freebsd2.2*)
7090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7091 hardcode_libdir_flag_spec='-R$libdir'
7092 hardcode_direct=yes
7093 hardcode_shlibpath_var=no
7094 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007095
John Criswell47fdd832003-07-14 16:52:07 +00007096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7097 freebsd2*)
7098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7099 hardcode_direct=yes
7100 hardcode_minus_L=yes
7101 hardcode_shlibpath_var=no
7102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007103
John Criswell47fdd832003-07-14 16:52:07 +00007104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7105 freebsd*)
7106 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7107 hardcode_libdir_flag_spec='-R$libdir'
7108 hardcode_direct=yes
7109 hardcode_shlibpath_var=no
7110 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007111
John Criswell47fdd832003-07-14 16:52:07 +00007112 hpux9*)
7113 if test "$GCC" = yes; then
7114 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'
7115 else
7116 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'
7117 fi
7118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7119 hardcode_libdir_separator=:
7120 hardcode_direct=yes
7121
7122 # hardcode_minus_L: Not really in the search PATH,
7123 # but as the default location of the library.
7124 hardcode_minus_L=yes
7125 export_dynamic_flag_spec='${wl}-E'
7126 ;;
7127
7128 hpux10* | hpux11*)
7129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7130 case "$host_cpu" in
7131 hppa*64*|ia64*)
7132 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7133 ;;
7134 *)
7135 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7136 ;;
7137 esac
7138 else
7139 case "$host_cpu" in
7140 hppa*64*|ia64*)
7141 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7142 ;;
7143 *)
7144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7145 ;;
7146 esac
7147 fi
7148 if test "$with_gnu_ld" = no; then
7149 case "$host_cpu" in
7150 hppa*64*)
7151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7152 hardcode_libdir_flag_spec_ld='+b $libdir'
7153 hardcode_libdir_separator=:
7154 hardcode_direct=no
7155 hardcode_shlibpath_var=no
7156 ;;
7157 ia64*)
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_direct=no
7160 hardcode_shlibpath_var=no
7161
7162 # hardcode_minus_L: Not really in the search PATH,
7163 # but as the default location of the library.
7164 hardcode_minus_L=yes
7165 ;;
7166 *)
7167 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7168 hardcode_libdir_separator=:
7169 hardcode_direct=yes
7170 export_dynamic_flag_spec='${wl}-E'
7171
7172 # hardcode_minus_L: Not really in the search PATH,
7173 # but as the default location of the library.
7174 hardcode_minus_L=yes
7175 ;;
7176 esac
7177 fi
7178 ;;
7179
7180 irix5* | irix6* | nonstopux*)
7181 if test "$GCC" = yes; then
7182 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'
7183 else
7184 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'
7185 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7186 fi
7187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7188 hardcode_libdir_separator=:
7189 link_all_deplibs=yes
7190 ;;
7191
7192 netbsd*)
7193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7195 else
7196 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7197 fi
7198 hardcode_libdir_flag_spec='-R$libdir'
7199 hardcode_direct=yes
7200 hardcode_shlibpath_var=no
7201 ;;
7202
7203 newsos6)
7204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7205 hardcode_direct=yes
7206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207 hardcode_libdir_separator=:
7208 hardcode_shlibpath_var=no
7209 ;;
7210
7211 openbsd*)
7212 hardcode_direct=yes
7213 hardcode_shlibpath_var=no
7214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7217 export_dynamic_flag_spec='${wl}-E'
7218 else
7219 case $host_os in
7220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7222 hardcode_libdir_flag_spec='-R$libdir'
7223 ;;
7224 *)
7225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7227 ;;
7228 esac
7229 fi
7230 ;;
7231
7232 os2*)
7233 hardcode_libdir_flag_spec='-L$libdir'
7234 hardcode_minus_L=yes
7235 allow_undefined_flag=unsupported
7236 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'
7237 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7238 ;;
7239
7240 osf3*)
7241 if test "$GCC" = yes; then
7242 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7243 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'
7244 else
7245 allow_undefined_flag=' -expect_unresolved \*'
7246 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'
7247 fi
7248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7249 hardcode_libdir_separator=:
7250 ;;
7251
7252 osf4* | osf5*) # as osf3* with the addition of -msym flag
7253 if test "$GCC" = yes; then
7254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7255 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'
7256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7257 else
7258 allow_undefined_flag=' -expect_unresolved \*'
7259 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'
7260 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7261 $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'
7262
7263 # Both c and cxx compiler support -rpath directly
7264 hardcode_libdir_flag_spec='-rpath $libdir'
7265 fi
7266 hardcode_libdir_separator=:
7267 ;;
7268
7269 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007272 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007273 runpath_var=LD_RUN_PATH
7274 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007275 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007276
John Criswell47fdd832003-07-14 16:52:07 +00007277 solaris*)
7278 no_undefined_flag=' -z text'
7279 if test "$GCC" = yes; then
7280 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7282 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7283 else
7284 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7285 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7286 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7287 fi
7288 hardcode_libdir_flag_spec='-R$libdir'
7289 hardcode_shlibpath_var=no
7290 case $host_os in
7291 solaris2.[0-5] | solaris2.[0-5].*) ;;
7292 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7293 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7294 esac
7295 link_all_deplibs=yes
7296 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007297
John Criswell47fdd832003-07-14 16:52:07 +00007298 sunos4*)
7299 if test "x$host_vendor" = xsequent; then
7300 # Use $CC to link under sequent, because it throws in some extra .o
7301 # files that make .init and .fini sections work.
7302 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7303 else
7304 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7305 fi
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_direct=yes
7308 hardcode_minus_L=yes
7309 hardcode_shlibpath_var=no
7310 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007311
John Criswell47fdd832003-07-14 16:52:07 +00007312 sysv4)
7313 case $host_vendor in
7314 sni)
7315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316 hardcode_direct=yes # is this really true???
7317 ;;
7318 siemens)
7319 ## LD is ld it makes a PLAMLIB
7320 ## CC just makes a GrossModule.
7321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7322 reload_cmds='$CC -r -o $output$reload_objs'
7323 hardcode_direct=no
7324 ;;
7325 motorola)
7326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7328 ;;
7329 esac
7330 runpath_var='LD_RUN_PATH'
7331 hardcode_shlibpath_var=no
7332 ;;
7333
7334 sysv4.3*)
7335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336 hardcode_shlibpath_var=no
7337 export_dynamic_flag_spec='-Bexport'
7338 ;;
7339
7340 sysv4*MP*)
7341 if test -d /usr/nec; then
7342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7343 hardcode_shlibpath_var=no
7344 runpath_var=LD_RUN_PATH
7345 hardcode_runpath_var=yes
7346 ld_shlibs=yes
7347 fi
7348 ;;
7349
7350 sysv4.2uw2*)
7351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7352 hardcode_direct=yes
7353 hardcode_minus_L=no
7354 hardcode_shlibpath_var=no
7355 hardcode_runpath_var=yes
7356 runpath_var=LD_RUN_PATH
7357 ;;
7358
7359 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7360 no_undefined_flag='${wl}-z ${wl}text'
7361 if test "$GCC" = yes; then
7362 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7363 else
7364 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365 fi
7366 runpath_var='LD_RUN_PATH'
7367 hardcode_shlibpath_var=no
7368 ;;
7369
7370 sysv5*)
7371 no_undefined_flag=' -z text'
7372 # $CC -shared without GNU ld will not create a library from C++
7373 # object files and a static libstdc++, better avoid it by now
7374 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7376 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7377 hardcode_libdir_flag_spec=
7378 hardcode_shlibpath_var=no
7379 runpath_var='LD_RUN_PATH'
7380 ;;
7381
7382 uts4*)
7383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7384 hardcode_libdir_flag_spec='-L$libdir'
7385 hardcode_shlibpath_var=no
7386 ;;
7387
7388 *)
7389 ld_shlibs=no
7390 ;;
7391 esac
7392 fi
7393
John Criswell7a73b802003-06-30 21:59:07 +00007394echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7395echo "${ECHO_T}$ld_shlibs" >&6
7396test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007397
John Criswell47fdd832003-07-14 16:52:07 +00007398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7399if test "$GCC" = yes; then
7400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7401fi
7402
7403#
7404# Do we need to explicitly link libc?
7405#
7406case "x$archive_cmds_need_lc" in
7407x|xyes)
7408 # Assume -lc should be added
7409 archive_cmds_need_lc=yes
7410
7411 if test "$enable_shared" = yes && test "$GCC" = yes; then
7412 case $archive_cmds in
7413 *'~'*)
7414 # FIXME: we may have to deal with multi-command sequences.
7415 ;;
7416 '$CC '*)
7417 # Test whether the compiler implicitly links with -lc since on some
7418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7419 # to ld, don't add -lc before -lgcc.
7420 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7421echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7422 $rm conftest*
7423 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7424
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426 (eval $ac_compile) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } 2>conftest.err; then
7430 soname=conftest
7431 lib=conftest
7432 libobjs=conftest.$ac_objext
7433 deplibs=
7434 wl=$lt_prog_compiler_wl
7435 compiler_flags=-v
7436 linker_flags=-v
7437 verstring=
7438 output_objdir=.
7439 libname=conftest
7440 lt_save_allow_undefined_flag=$allow_undefined_flag
7441 allow_undefined_flag=
7442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7443 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }
7447 then
7448 archive_cmds_need_lc=no
7449 else
7450 archive_cmds_need_lc=yes
7451 fi
7452 allow_undefined_flag=$lt_save_allow_undefined_flag
7453 else
7454 cat conftest.err 1>&5
7455 fi
7456 $rm conftest*
7457 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7458echo "${ECHO_T}$archive_cmds_need_lc" >&6
7459 ;;
7460 esac
7461 fi
7462 ;;
7463esac
7464
John Criswell7a73b802003-06-30 21:59:07 +00007465echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7466echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7467hardcode_action=
7468if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007469 test -n "$runpath_var " || \
7470 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007471
7472 # We can hardcode non-existant directories.
7473 if test "$hardcode_direct" != no &&
7474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7475 # have to relink, otherwise we might link with an installed library
7476 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007478 test "$hardcode_minus_L" != no; then
7479 # Linking always hardcodes the temporary library directory.
7480 hardcode_action=relink
7481 else
7482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7483 hardcode_action=immediate
7484 fi
7485else
7486 # We cannot hardcode anything, or else we can only hardcode existing
7487 # directories.
7488 hardcode_action=unsupported
7489fi
7490echo "$as_me:$LINENO: result: $hardcode_action" >&5
7491echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007492
John Criswell47fdd832003-07-14 16:52:07 +00007493if test "$hardcode_action" = relink; then
7494 # Fast installation is not supported
7495 enable_fast_install=no
7496elif test "$shlibpath_overrides_runpath" = yes ||
7497 test "$enable_shared" = no; then
7498 # Fast installation is not necessary
7499 enable_fast_install=needless
7500fi
7501
John Criswell7a73b802003-06-30 21:59:07 +00007502striplib=
7503old_striplib=
7504echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7505echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7506if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7509 echo "$as_me:$LINENO: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
7511else
John Criswell47fdd832003-07-14 16:52:07 +00007512# FIXME - insert some real tests, host_os isn't really good enough
7513 case $host_os in
7514 darwin*)
7515 if test -n "$STRIP" ; then
7516 striplib="$STRIP -x"
7517 echo "$as_me:$LINENO: result: yes" >&5
7518echo "${ECHO_T}yes" >&6
7519 else
John Criswell7a73b802003-06-30 21:59:07 +00007520 echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
7522fi
John Criswell47fdd832003-07-14 16:52:07 +00007523 ;;
7524 *)
7525 echo "$as_me:$LINENO: result: no" >&5
7526echo "${ECHO_T}no" >&6
7527 ;;
7528 esac
7529fi
John Criswell7a73b802003-06-30 21:59:07 +00007530
John Criswell7a73b802003-06-30 21:59:07 +00007531echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7532echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7533library_names_spec=
7534libname_spec='lib$name'
7535soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007536shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007537postinstall_cmds=
7538postuninstall_cmds=
7539finish_cmds=
7540finish_eval=
7541shlibpath_var=
7542shlibpath_overrides_runpath=unknown
7543version_type=none
7544dynamic_linker="$host_os ld.so"
7545sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007546if test "$GCC" = yes; then
7547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7548 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7549 # if the path contains ";" then we assume it to be the separator
7550 # otherwise default to the standard path separator (i.e. ":") - it is
7551 # assumed that no part of a normal pathname contains ";" but that should
7552 # okay in the real world where ";" in dirpaths is itself problematic.
7553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7554 else
7555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7556 fi
7557else
7558 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7559fi
7560need_lib_prefix=unknown
7561hardcode_into_libs=no
7562
7563# when you set need_version to no, make sure it does not cause -set_version
7564# flags to be left without arguments
7565need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007566
7567case $host_os in
7568aix3*)
7569 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007571 shlibpath_var=LIBPATH
7572
John Criswell47fdd832003-07-14 16:52:07 +00007573 # AIX 3 has no versioning support, so we append a major version to the name.
7574 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007575 ;;
7576
7577aix4* | aix5*)
7578 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007579 need_lib_prefix=no
7580 need_version=no
7581 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007582 if test "$host_cpu" = ia64; then
7583 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007584 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007585 shlibpath_var=LD_LIBRARY_PATH
7586 else
7587 # With GCC up to 2.95.x, collect2 would create an import file
7588 # for dependence libraries. The import file would start with
7589 # the line `#! .'. This would cause the generated library to
7590 # depend on `.', always an invalid library. This was fixed in
7591 # development snapshots of GCC prior to 3.0.
7592 case $host_os in
7593 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7595 echo ' yes '
7596 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7597 :
7598 else
7599 can_build_shared=no
7600 fi
7601 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007602 esac
John Criswell47fdd832003-07-14 16:52:07 +00007603 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7604 # soname into executable. Probably we can add versioning support to
7605 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007606 if test "$aix_use_runtimelinking" = yes; then
7607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7608 # instead of lib<name>.a to let people know that these are not
7609 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007611 else
7612 # We preserve .a as extension for shared libraries through AIX4.2
7613 # and later when we are not doing run time linking.
7614 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007615 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007616 fi
7617 shlibpath_var=LIBPATH
7618 fi
7619 ;;
7620
7621amigaos*)
7622 library_names_spec='$libname.ixlibrary $libname.a'
7623 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7624 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'
7625 ;;
7626
7627beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007628 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007629 dynamic_linker="$host_os ld.so"
7630 shlibpath_var=LIBRARY_PATH
7631 ;;
7632
7633bsdi4*)
7634 version_type=linux
7635 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7637 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7639 shlibpath_var=LD_LIBRARY_PATH
7640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007642 # the default ld.so.conf also contains /usr/contrib/lib and
7643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7644 # libtool to hard-code these into programs
7645 ;;
7646
7647cygwin* | mingw* | pw32*)
7648 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007649 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007650 need_version=no
7651 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007652
John Criswell7a73b802003-06-30 21:59:07 +00007653 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007654 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007655 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7657 postinstall_cmds='base_file=`basename \${file}`~
7658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007659 dldir=$destdir/`dirname \$dlpath`~
7660 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007661 $install_prog $dir/$dlname \$dldir/$dlname'
7662 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007663 dlpath=$dir/\$dldll~
7664 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007665 shlibpath_overrides_runpath=yes
7666
7667 case $host_os in
7668 cygwin*)
7669 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7670 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7671 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7672 ;;
7673 mingw*)
7674 # MinGW DLLs use traditional 'lib' prefix
7675 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7677 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7678 # It is most probably a Windows format PATH printed by
7679 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7680 # path with ; separators, and with drive letters. We can handle the
7681 # drive letters (cygwin fileutils understands them), so leave them,
7682 # especially as we might pass files found there to a mingw objdump,
7683 # which wouldn't understand a cygwinified path. Ahh.
7684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7685 else
7686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7687 fi
7688 ;;
7689 pw32*)
7690 # pw32 DLLs use 'pw' prefix rather than 'lib'
7691 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7692 ;;
7693 esac
John Criswell7a73b802003-06-30 21:59:07 +00007694 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007695
John Criswell7a73b802003-06-30 21:59:07 +00007696 *)
John Criswell47fdd832003-07-14 16:52:07 +00007697 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007698 ;;
7699 esac
7700 dynamic_linker='Win32 ld.exe'
7701 # FIXME: first we should search . and the directory the executable is in
7702 shlibpath_var=PATH
7703 ;;
7704
7705darwin* | rhapsody*)
7706 dynamic_linker="$host_os dyld"
7707 version_type=darwin
7708 need_lib_prefix=no
7709 need_version=no
7710 # FIXME: Relying on posixy $() will cause problems for
7711 # cross-compilation, but unfortunately the echo tests do not
7712 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007713 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7714 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007715 shlibpath_overrides_runpath=yes
7716 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007717 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7718 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7719 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7720 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"`
7721 fi
7722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7723 ;;
7724
7725dgux*)
7726 version_type=linux
7727 need_lib_prefix=no
7728 need_version=no
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007732 ;;
7733
7734freebsd1*)
7735 dynamic_linker=no
7736 ;;
7737
7738freebsd*)
7739 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7740 version_type=freebsd-$objformat
7741 case $version_type in
7742 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007744 need_version=no
7745 need_lib_prefix=no
7746 ;;
7747 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007749 need_version=yes
7750 ;;
7751 esac
7752 shlibpath_var=LD_LIBRARY_PATH
7753 case $host_os in
7754 freebsd2*)
7755 shlibpath_overrides_runpath=yes
7756 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007757 freebsd3.01* | freebsdelf3.01*)
7758 shlibpath_overrides_runpath=yes
7759 hardcode_into_libs=yes
7760 ;;
7761 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007762 shlibpath_overrides_runpath=no
7763 hardcode_into_libs=yes
7764 ;;
7765 esac
7766 ;;
7767
7768gnu*)
7769 version_type=linux
7770 need_lib_prefix=no
7771 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7773 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007774 shlibpath_var=LD_LIBRARY_PATH
7775 hardcode_into_libs=yes
7776 ;;
7777
7778hpux9* | hpux10* | hpux11*)
7779 # Give a soname corresponding to the major version so that dld.sl refuses to
7780 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007781 version_type=sunos
7782 need_lib_prefix=no
7783 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007784 case "$host_cpu" in
7785 ia64*)
7786 shrext='.so'
7787 hardcode_into_libs=yes
7788 dynamic_linker="$host_os dld.so"
7789 shlibpath_var=LD_LIBRARY_PATH
7790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7792 soname_spec='${libname}${release}${shared_ext}$major'
7793 if test "X$HPUX_IA64_MODE" = X32; then
7794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7795 else
7796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7797 fi
7798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7799 ;;
7800 hppa*64*)
7801 shrext='.sl'
7802 hardcode_into_libs=yes
7803 dynamic_linker="$host_os dld.sl"
7804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 soname_spec='${libname}${release}${shared_ext}$major'
7808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7810 ;;
7811 *)
7812 shrext='.sl'
7813 dynamic_linker="$host_os dld.sl"
7814 shlibpath_var=SHLIB_PATH
7815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7818 ;;
7819 esac
John Criswell7a73b802003-06-30 21:59:07 +00007820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7821 postinstall_cmds='chmod 555 $lib'
7822 ;;
7823
John Criswell47fdd832003-07-14 16:52:07 +00007824irix5* | irix6* | nonstopux*)
7825 case $host_os in
7826 nonstopux*) version_type=nonstopux ;;
7827 *)
7828 if test "$lt_cv_prog_gnu_ld" = yes; then
7829 version_type=linux
7830 else
7831 version_type=irix
7832 fi ;;
7833 esac
John Criswell7a73b802003-06-30 21:59:07 +00007834 need_lib_prefix=no
7835 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007836 soname_spec='${libname}${release}${shared_ext}$major'
7837 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 +00007838 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007839 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007840 libsuff= shlibsuff=
7841 ;;
7842 *)
7843 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7845 libsuff= shlibsuff= libmagic=32-bit;;
7846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7847 libsuff=32 shlibsuff=N32 libmagic=N32;;
7848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007850 *) libsuff= shlibsuff= libmagic=never-match;;
7851 esac
7852 ;;
7853 esac
7854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7855 shlibpath_overrides_runpath=no
7856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007858 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007859 ;;
7860
7861# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007862linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007863 dynamic_linker=no
7864 ;;
7865
7866# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007867linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007868 version_type=linux
7869 need_lib_prefix=no
7870 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7874 shlibpath_var=LD_LIBRARY_PATH
7875 shlibpath_overrides_runpath=no
7876 # This implies no fast_install, which is unacceptable.
7877 # Some rework will be needed to allow for fast_install
7878 # before this can be enabled.
7879 hardcode_into_libs=yes
7880
7881 # We used to test for /lib/ld.so.1 and disable shared libraries on
7882 # powerpc, because MkLinux only supported shared libraries with the
7883 # GNU dynamic linker. Since this was broken with cross compilers,
7884 # most powerpc-linux boxes support dynamic linking these days and
7885 # people can always --disable-shared, the test was removed, and we
7886 # assume the GNU/Linux dynamic linker is in use.
7887 dynamic_linker='GNU/Linux ld.so'
7888 ;;
7889
7890netbsd*)
7891 version_type=sunos
7892 need_lib_prefix=no
7893 need_version=no
7894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7897 dynamic_linker='NetBSD (a.out) ld.so'
7898 else
John Criswell47fdd832003-07-14 16:52:07 +00007899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7900 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007901 dynamic_linker='NetBSD ld.elf_so'
7902 fi
7903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=yes
7905 hardcode_into_libs=yes
7906 ;;
7907
7908newsos6)
7909 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7911 shlibpath_var=LD_LIBRARY_PATH
7912 shlibpath_overrides_runpath=yes
7913 ;;
7914
7915nto-qnx)
7916 version_type=linux
7917 need_lib_prefix=no
7918 need_version=no
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007921 shlibpath_var=LD_LIBRARY_PATH
7922 shlibpath_overrides_runpath=yes
7923 ;;
7924
7925openbsd*)
7926 version_type=sunos
7927 need_lib_prefix=no
7928 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007932 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 +00007933 case $host_os in
7934 openbsd2.[89] | openbsd2.[89].*)
7935 shlibpath_overrides_runpath=no
7936 ;;
7937 *)
7938 shlibpath_overrides_runpath=yes
7939 ;;
7940 esac
John Criswell7a73b802003-06-30 21:59:07 +00007941 else
7942 shlibpath_overrides_runpath=yes
7943 fi
John Criswell7a73b802003-06-30 21:59:07 +00007944 ;;
7945
7946os2*)
7947 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007948 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007949 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007950 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007951 dynamic_linker='OS/2 ld.exe'
7952 shlibpath_var=LIBPATH
7953 ;;
7954
7955osf3* | osf4* | osf5*)
7956 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007957 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007958 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007959 soname_spec='${libname}${release}${shared_ext}$major'
7960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007961 shlibpath_var=LD_LIBRARY_PATH
7962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7964 ;;
7965
7966sco3.2v5*)
7967 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007968 soname_spec='${libname}${release}${shared_ext}$major'
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007970 shlibpath_var=LD_LIBRARY_PATH
7971 ;;
7972
7973solaris*)
7974 version_type=linux
7975 need_lib_prefix=no
7976 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007979 shlibpath_var=LD_LIBRARY_PATH
7980 shlibpath_overrides_runpath=yes
7981 hardcode_into_libs=yes
7982 # ldd complains unless libraries are executable
7983 postinstall_cmds='chmod +x $lib'
7984 ;;
7985
7986sunos4*)
7987 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7990 shlibpath_var=LD_LIBRARY_PATH
7991 shlibpath_overrides_runpath=yes
7992 if test "$with_gnu_ld" = yes; then
7993 need_lib_prefix=no
7994 fi
7995 need_version=yes
7996 ;;
7997
7998sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7999 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00008002 shlibpath_var=LD_LIBRARY_PATH
8003 case $host_vendor in
8004 sni)
8005 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00008006 need_lib_prefix=no
8007 export_dynamic_flag_spec='${wl}-Blargedynsym'
8008 runpath_var=LD_RUN_PATH
8009 ;;
8010 siemens)
8011 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00008012 ;;
8013 motorola)
8014 need_lib_prefix=no
8015 need_version=no
8016 shlibpath_overrides_runpath=no
8017 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8018 ;;
8019 esac
8020 ;;
8021
John Criswell7a73b802003-06-30 21:59:07 +00008022sysv4*MP*)
8023 if test -d /usr/nec ;then
8024 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00008025 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8026 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00008027 shlibpath_var=LD_LIBRARY_PATH
8028 fi
8029 ;;
8030
John Criswell47fdd832003-07-14 16:52:07 +00008031uts4*)
8032 version_type=linux
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8034 soname_spec='${libname}${release}${shared_ext}$major'
8035 shlibpath_var=LD_LIBRARY_PATH
8036 ;;
8037
John Criswell7a73b802003-06-30 21:59:07 +00008038*)
8039 dynamic_linker=no
8040 ;;
8041esac
8042echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8043echo "${ECHO_T}$dynamic_linker" >&6
8044test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00008045
8046if test "x$enable_dlopen" != xyes; then
8047 enable_dlopen=unknown
8048 enable_dlopen_self=unknown
8049 enable_dlopen_self_static=unknown
8050else
8051 lt_cv_dlopen=no
8052 lt_cv_dlopen_libs=
8053
8054 case $host_os in
8055 beos*)
8056 lt_cv_dlopen="load_add_on"
8057 lt_cv_dlopen_libs=
8058 lt_cv_dlopen_self=yes
8059 ;;
8060
John Criswell47fdd832003-07-14 16:52:07 +00008061 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008062 lt_cv_dlopen="LoadLibrary"
8063 lt_cv_dlopen_libs=
8064 ;;
8065
John Criswell47fdd832003-07-14 16:52:07 +00008066 cygwin*)
8067 lt_cv_dlopen="dlopen"
8068 lt_cv_dlopen_libs=
8069 ;;
8070
8071 darwin*)
8072 # if libdl is installed we need to link against it
8073 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8074echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8075if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078 ac_check_lib_save_LIBS=$LIBS
8079LIBS="-ldl $LIBS"
8080cat >conftest.$ac_ext <<_ACEOF
8081#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008082/* confdefs.h. */
8083_ACEOF
8084cat confdefs.h >>conftest.$ac_ext
8085cat >>conftest.$ac_ext <<_ACEOF
8086/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008087
8088/* Override any gcc2 internal prototype to avoid an error. */
8089#ifdef __cplusplus
8090extern "C"
8091#endif
8092/* We use char because int might match the return type of a gcc2
8093 builtin and then its argument prototype would still apply. */
8094char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008095int
8096main ()
8097{
8098dlopen ();
8099 ;
8100 return 0;
8101}
8102_ACEOF
8103rm -f conftest.$ac_objext conftest$ac_exeext
8104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8105 (eval $ac_link) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_cv_lib_dl_dlopen=yes
8116else
8117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008118sed 's/^/| /' conftest.$ac_ext >&5
8119
John Criswell47fdd832003-07-14 16:52:07 +00008120ac_cv_lib_dl_dlopen=no
8121fi
8122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8123LIBS=$ac_check_lib_save_LIBS
8124fi
8125echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8126echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8127if test $ac_cv_lib_dl_dlopen = yes; then
8128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8129else
8130
8131 lt_cv_dlopen="dyld"
8132 lt_cv_dlopen_libs=
8133 lt_cv_dlopen_self=yes
8134
8135fi
8136
8137 ;;
8138
John Criswell7a73b802003-06-30 21:59:07 +00008139 *)
8140 echo "$as_me:$LINENO: checking for shl_load" >&5
8141echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8142if test "${ac_cv_func_shl_load+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145 cat >conftest.$ac_ext <<_ACEOF
8146#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008152/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008153 which can conflict with char shl_load (); below.
8154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8155 <limits.h> exists even on freestanding compilers. */
8156#ifdef __STDC__
8157# include <limits.h>
8158#else
8159# include <assert.h>
8160#endif
John Criswell7a73b802003-06-30 21:59:07 +00008161/* Override any gcc2 internal prototype to avoid an error. */
8162#ifdef __cplusplus
8163extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008164{
John Criswell7a73b802003-06-30 21:59:07 +00008165#endif
8166/* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8168char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008169/* The GNU C library defines this for functions which it implements
8170 to always fail with ENOSYS. Some functions are actually named
8171 something starting with __ and the normal name is an alias. */
8172#if defined (__stub_shl_load) || defined (__stub___shl_load)
8173choke me
8174#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008175char (*f) () = shl_load;
8176#endif
8177#ifdef __cplusplus
8178}
John Criswell7a73b802003-06-30 21:59:07 +00008179#endif
8180
John Criswell0c38eaf2003-09-10 15:17:25 +00008181int
8182main ()
8183{
8184return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008185 ;
8186 return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_func_shl_load=yes
8202else
8203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008204sed 's/^/| /' conftest.$ac_ext >&5
8205
John Criswell7a73b802003-06-30 21:59:07 +00008206ac_cv_func_shl_load=no
8207fi
8208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209fi
8210echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8211echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8212if test $ac_cv_func_shl_load = yes; then
8213 lt_cv_dlopen="shl_load"
8214else
8215 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8216echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8217if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220 ac_check_lib_save_LIBS=$LIBS
8221LIBS="-ldld $LIBS"
8222cat >conftest.$ac_ext <<_ACEOF
8223#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008229
8230/* Override any gcc2 internal prototype to avoid an error. */
8231#ifdef __cplusplus
8232extern "C"
8233#endif
8234/* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008237int
8238main ()
8239{
8240shl_load ();
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest.$ac_objext conftest$ac_exeext
8246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_lib_dld_shl_load=yes
8258else
8259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008260sed 's/^/| /' conftest.$ac_ext >&5
8261
John Criswell7a73b802003-06-30 21:59:07 +00008262ac_cv_lib_dld_shl_load=no
8263fi
8264rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8265LIBS=$ac_check_lib_save_LIBS
8266fi
8267echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8268echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8269if test $ac_cv_lib_dld_shl_load = yes; then
8270 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8271else
8272 echo "$as_me:$LINENO: checking for dlopen" >&5
8273echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8274if test "${ac_cv_func_dlopen+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 cat >conftest.$ac_ext <<_ACEOF
8278#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008279/* confdefs.h. */
8280_ACEOF
8281cat confdefs.h >>conftest.$ac_ext
8282cat >>conftest.$ac_ext <<_ACEOF
8283/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008284/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008285 which can conflict with char dlopen (); below.
8286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287 <limits.h> exists even on freestanding compilers. */
8288#ifdef __STDC__
8289# include <limits.h>
8290#else
8291# include <assert.h>
8292#endif
John Criswell7a73b802003-06-30 21:59:07 +00008293/* Override any gcc2 internal prototype to avoid an error. */
8294#ifdef __cplusplus
8295extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008296{
John Criswell7a73b802003-06-30 21:59:07 +00008297#endif
8298/* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008301/* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304#if defined (__stub_dlopen) || defined (__stub___dlopen)
8305choke me
8306#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008307char (*f) () = dlopen;
8308#endif
8309#ifdef __cplusplus
8310}
John Criswell7a73b802003-06-30 21:59:07 +00008311#endif
8312
John Criswell0c38eaf2003-09-10 15:17:25 +00008313int
8314main ()
8315{
8316return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008317 ;
8318 return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext conftest$ac_exeext
8322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8323 (eval $ac_link) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -s conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_cv_func_dlopen=yes
8334else
8335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008336sed 's/^/| /' conftest.$ac_ext >&5
8337
John Criswell7a73b802003-06-30 21:59:07 +00008338ac_cv_func_dlopen=no
8339fi
8340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341fi
8342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8343echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8344if test $ac_cv_func_dlopen = yes; then
8345 lt_cv_dlopen="dlopen"
8346else
8347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8349if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 ac_check_lib_save_LIBS=$LIBS
8353LIBS="-ldl $LIBS"
8354cat >conftest.$ac_ext <<_ACEOF
8355#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008361
8362/* Override any gcc2 internal prototype to avoid an error. */
8363#ifdef __cplusplus
8364extern "C"
8365#endif
8366/* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8368char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008369int
8370main ()
8371{
8372dlopen ();
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext conftest$ac_exeext
8378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_lib_dl_dlopen=yes
8390else
8391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008392sed 's/^/| /' conftest.$ac_ext >&5
8393
John Criswell7a73b802003-06-30 21:59:07 +00008394ac_cv_lib_dl_dlopen=no
8395fi
8396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8397LIBS=$ac_check_lib_save_LIBS
8398fi
8399echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8400echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8401if test $ac_cv_lib_dl_dlopen = yes; then
8402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8403else
8404 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8405echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8406if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 ac_check_lib_save_LIBS=$LIBS
8410LIBS="-lsvld $LIBS"
8411cat >conftest.$ac_ext <<_ACEOF
8412#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008418
8419/* Override any gcc2 internal prototype to avoid an error. */
8420#ifdef __cplusplus
8421extern "C"
8422#endif
8423/* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008426int
8427main ()
8428{
8429dlopen ();
8430 ;
8431 return 0;
8432}
8433_ACEOF
8434rm -f conftest.$ac_objext conftest$ac_exeext
8435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 ac_cv_lib_svld_dlopen=yes
8447else
8448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008449sed 's/^/| /' conftest.$ac_ext >&5
8450
John Criswell7a73b802003-06-30 21:59:07 +00008451ac_cv_lib_svld_dlopen=no
8452fi
8453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454LIBS=$ac_check_lib_save_LIBS
8455fi
8456echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8457echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8458if test $ac_cv_lib_svld_dlopen = yes; then
8459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8460else
8461 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8462echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8463if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465else
8466 ac_check_lib_save_LIBS=$LIBS
8467LIBS="-ldld $LIBS"
8468cat >conftest.$ac_ext <<_ACEOF
8469#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008470/* confdefs.h. */
8471_ACEOF
8472cat confdefs.h >>conftest.$ac_ext
8473cat >>conftest.$ac_ext <<_ACEOF
8474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008475
8476/* Override any gcc2 internal prototype to avoid an error. */
8477#ifdef __cplusplus
8478extern "C"
8479#endif
8480/* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8482char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008483int
8484main ()
8485{
8486dld_link ();
8487 ;
8488 return 0;
8489}
8490_ACEOF
8491rm -f conftest.$ac_objext conftest$ac_exeext
8492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_cv_lib_dld_dld_link=yes
8504else
8505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008506sed 's/^/| /' conftest.$ac_ext >&5
8507
John Criswell7a73b802003-06-30 21:59:07 +00008508ac_cv_lib_dld_dld_link=no
8509fi
8510rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8511LIBS=$ac_check_lib_save_LIBS
8512fi
8513echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8514echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8515if test $ac_cv_lib_dld_dld_link = yes; then
8516 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8517fi
8518
8519
8520fi
8521
8522
8523fi
8524
8525
8526fi
8527
8528
8529fi
8530
8531
8532fi
8533
8534 ;;
8535 esac
8536
8537 if test "x$lt_cv_dlopen" != xno; then
8538 enable_dlopen=yes
8539 else
8540 enable_dlopen=no
8541 fi
8542
8543 case $lt_cv_dlopen in
8544 dlopen)
8545 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008546 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008547
8548 save_LDFLAGS="$LDFLAGS"
8549 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8550
8551 save_LIBS="$LIBS"
8552 LIBS="$lt_cv_dlopen_libs $LIBS"
8553
8554 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8555echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8556if test "${lt_cv_dlopen_self+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559 if test "$cross_compiling" = yes; then :
8560 lt_cv_dlopen_self=cross
8561else
John Criswell47fdd832003-07-14 16:52:07 +00008562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008563 lt_status=$lt_dlunknown
8564 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00008565#line 8565 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008566#include "confdefs.h"
8567
8568#if HAVE_DLFCN_H
8569#include <dlfcn.h>
8570#endif
8571
8572#include <stdio.h>
8573
8574#ifdef RTLD_GLOBAL
8575# define LT_DLGLOBAL RTLD_GLOBAL
8576#else
8577# ifdef DL_GLOBAL
8578# define LT_DLGLOBAL DL_GLOBAL
8579# else
8580# define LT_DLGLOBAL 0
8581# endif
8582#endif
8583
8584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8585 find out it does not work in some platform. */
8586#ifndef LT_DLLAZY_OR_NOW
8587# ifdef RTLD_LAZY
8588# define LT_DLLAZY_OR_NOW RTLD_LAZY
8589# else
8590# ifdef DL_LAZY
8591# define LT_DLLAZY_OR_NOW DL_LAZY
8592# else
8593# ifdef RTLD_NOW
8594# define LT_DLLAZY_OR_NOW RTLD_NOW
8595# else
8596# ifdef DL_NOW
8597# define LT_DLLAZY_OR_NOW DL_NOW
8598# else
8599# define LT_DLLAZY_OR_NOW 0
8600# endif
8601# endif
8602# endif
8603# endif
8604#endif
8605
8606#ifdef __cplusplus
8607extern "C" void exit (int);
8608#endif
8609
8610void fnord() { int i=42;}
8611int main ()
8612{
8613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8614 int status = $lt_dlunknown;
8615
8616 if (self)
8617 {
8618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8620 /* dlclose (self); */
8621 }
8622
8623 exit (status);
8624}
8625EOF
8626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8631 (./conftest; exit; ) 2>/dev/null
8632 lt_status=$?
8633 case x$lt_status in
8634 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8635 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8636 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8637 esac
8638 else :
8639 # compilation failed
8640 lt_cv_dlopen_self=no
8641 fi
8642fi
8643rm -fr conftest*
8644
8645
8646fi
8647echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8648echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8649
8650 if test "x$lt_cv_dlopen_self" = xyes; then
8651 LDFLAGS="$LDFLAGS $link_static_flag"
8652 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8653echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8654if test "${lt_cv_dlopen_self_static+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656else
8657 if test "$cross_compiling" = yes; then :
8658 lt_cv_dlopen_self_static=cross
8659else
John Criswell47fdd832003-07-14 16:52:07 +00008660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008661 lt_status=$lt_dlunknown
8662 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +00008663#line 8663 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008664#include "confdefs.h"
8665
8666#if HAVE_DLFCN_H
8667#include <dlfcn.h>
8668#endif
8669
8670#include <stdio.h>
8671
8672#ifdef RTLD_GLOBAL
8673# define LT_DLGLOBAL RTLD_GLOBAL
8674#else
8675# ifdef DL_GLOBAL
8676# define LT_DLGLOBAL DL_GLOBAL
8677# else
8678# define LT_DLGLOBAL 0
8679# endif
8680#endif
8681
8682/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8683 find out it does not work in some platform. */
8684#ifndef LT_DLLAZY_OR_NOW
8685# ifdef RTLD_LAZY
8686# define LT_DLLAZY_OR_NOW RTLD_LAZY
8687# else
8688# ifdef DL_LAZY
8689# define LT_DLLAZY_OR_NOW DL_LAZY
8690# else
8691# ifdef RTLD_NOW
8692# define LT_DLLAZY_OR_NOW RTLD_NOW
8693# else
8694# ifdef DL_NOW
8695# define LT_DLLAZY_OR_NOW DL_NOW
8696# else
8697# define LT_DLLAZY_OR_NOW 0
8698# endif
8699# endif
8700# endif
8701# endif
8702#endif
8703
8704#ifdef __cplusplus
8705extern "C" void exit (int);
8706#endif
8707
8708void fnord() { int i=42;}
8709int main ()
8710{
8711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8712 int status = $lt_dlunknown;
8713
8714 if (self)
8715 {
8716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8718 /* dlclose (self); */
8719 }
8720
8721 exit (status);
8722}
8723EOF
8724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8729 (./conftest; exit; ) 2>/dev/null
8730 lt_status=$?
8731 case x$lt_status in
8732 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8733 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8734 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8735 esac
8736 else :
8737 # compilation failed
8738 lt_cv_dlopen_self_static=no
8739 fi
8740fi
8741rm -fr conftest*
8742
8743
8744fi
8745echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8746echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8747 fi
8748
8749 CPPFLAGS="$save_CPPFLAGS"
8750 LDFLAGS="$save_LDFLAGS"
8751 LIBS="$save_LIBS"
8752 ;;
8753 esac
8754
8755 case $lt_cv_dlopen_self in
8756 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8757 *) enable_dlopen_self=unknown ;;
8758 esac
8759
8760 case $lt_cv_dlopen_self_static in
8761 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8762 *) enable_dlopen_self_static=unknown ;;
8763 esac
8764fi
8765
8766
John Criswell47fdd832003-07-14 16:52:07 +00008767# Report which librarie types wil actually be built
8768echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8769echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8770echo "$as_me:$LINENO: result: $can_build_shared" >&5
8771echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008772
John Criswell47fdd832003-07-14 16:52:07 +00008773echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8774echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8775test "$can_build_shared" = "no" && enable_shared=no
8776
8777# On AIX, shared libraries and static libraries use the same namespace, and
8778# are all built from PIC.
8779case "$host_os" in
8780aix3*)
8781 test "$enable_shared" = yes && enable_static=no
8782 if test -n "$RANLIB"; then
8783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8784 postinstall_cmds='$RANLIB $lib'
8785 fi
8786 ;;
8787
8788aix4*)
8789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8790 test "$enable_shared" = yes && enable_static=no
8791 fi
8792 ;;
8793 darwin* | rhapsody*)
8794 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8795 archive_cmds_need_lc=no
8796 case "$host_os" in
8797 rhapsody* | darwin1.[012])
8798 allow_undefined_flag='-undefined suppress'
8799 ;;
8800 *) # Darwin 1.3 on
8801 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8802 ;;
8803 esac
8804 # FIXME: Relying on posixy $() will cause problems for
8805 # cross-compilation, but unfortunately the echo tests do not
8806 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8807 # `"' quotes if we put them in here... so don't!
8808 output_verbose_link_cmd='echo'
8809 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8810 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8812 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}'
8813 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}'
8814 hardcode_direct=no
8815 hardcode_automatic=yes
8816 hardcode_shlibpath_var=unsupported
8817 whole_archive_flag_spec='-all_load $convenience'
8818 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008819 fi
John Criswell7a73b802003-06-30 21:59:07 +00008820 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008821esac
8822echo "$as_me:$LINENO: result: $enable_shared" >&5
8823echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008824
John Criswell47fdd832003-07-14 16:52:07 +00008825echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8826echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8827# Make sure either enable_shared or enable_static is yes.
8828test "$enable_shared" = yes || enable_static=yes
8829echo "$as_me:$LINENO: result: $enable_static" >&5
8830echo "${ECHO_T}$enable_static" >&6
8831
8832# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008833# libtool distribution, otherwise you forgot to ship ltmain.sh
8834# with your package, and you will get complaints that there are
8835# no rules to generate ltmain.sh.
8836if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008837 # See if we are running on zsh, and set the options which allow our commands through
8838 # without removal of \ escapes.
8839 if test -n "${ZSH_VERSION+set}" ; then
8840 setopt NO_GLOB_SUBST
8841 fi
John Criswell7a73b802003-06-30 21:59:07 +00008842 # Now quote all the things that may contain metacharacters while being
8843 # careful not to overquote the AC_SUBSTed values. We take copies of the
8844 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008845 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8846 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8847 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8848 deplibs_check_method reload_flag reload_cmds need_locks \
8849 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8850 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008851 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008852 old_postinstall_cmds old_postuninstall_cmds \
8853 compiler \
8854 CC \
8855 LD \
8856 lt_prog_compiler_wl \
8857 lt_prog_compiler_pic \
8858 lt_prog_compiler_static \
8859 lt_prog_compiler_no_builtin_flag \
8860 export_dynamic_flag_spec \
8861 thread_safe_flag_spec \
8862 whole_archive_flag_spec \
8863 enable_shared_with_static_runtimes \
8864 old_archive_cmds \
8865 old_archive_from_new_cmds \
8866 predep_objects \
8867 postdep_objects \
8868 predeps \
8869 postdeps \
8870 compiler_lib_search_path \
8871 archive_cmds \
8872 archive_expsym_cmds \
8873 postinstall_cmds \
8874 postuninstall_cmds \
8875 old_archive_from_expsyms_cmds \
8876 allow_undefined_flag \
8877 no_undefined_flag \
8878 export_symbols_cmds \
8879 hardcode_libdir_flag_spec \
8880 hardcode_libdir_flag_spec_ld \
8881 hardcode_libdir_separator \
8882 hardcode_automatic \
8883 module_cmds \
8884 module_expsym_cmds \
8885 lt_cv_prog_compiler_c_o \
8886 exclude_expsyms \
8887 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008888
8889 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008890 old_archive_cmds | \
8891 old_archive_from_new_cmds | \
8892 archive_cmds | \
8893 archive_expsym_cmds | \
8894 module_cmds | \
8895 module_expsym_cmds | \
8896 old_archive_from_expsyms_cmds | \
8897 export_symbols_cmds | \
8898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008899 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008900 old_postinstall_cmds | old_postuninstall_cmds | \
8901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008902 # Double-quote double-evaled strings.
8903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8904 ;;
8905 *)
8906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8907 ;;
8908 esac
8909 done
8910
John Criswell47fdd832003-07-14 16:52:07 +00008911 case $lt_echo in
8912 *'\$0 --fallback-echo"')
8913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8914 ;;
8915 esac
8916
8917cfgfile="${ofile}T"
8918 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8919 $rm -f "$cfgfile"
8920 { echo "$as_me:$LINENO: creating $ofile" >&5
8921echo "$as_me: creating $ofile" >&6;}
8922
8923 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008924#! $SHELL
8925
John Criswell47fdd832003-07-14 16:52:07 +00008926# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008927# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8928# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8929#
John Criswell47fdd832003-07-14 16:52:07 +00008930# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8931# Free Software Foundation, Inc.
8932#
8933# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008934# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8935#
8936# This program is free software; you can redistribute it and/or modify
8937# it under the terms of the GNU General Public License as published by
8938# the Free Software Foundation; either version 2 of the License, or
8939# (at your option) any later version.
8940#
8941# This program is distributed in the hope that it will be useful, but
8942# WITHOUT ANY WARRANTY; without even the implied warranty of
8943# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8944# General Public License for more details.
8945#
8946# You should have received a copy of the GNU General Public License
8947# along with this program; if not, write to the Free Software
8948# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8949#
8950# As a special exception to the GNU General Public License, if you
8951# distribute this file as part of a program that contains a
8952# configuration script generated by Autoconf, you may include it under
8953# the same distribution terms that you use for the rest of that program.
8954
John Criswell47fdd832003-07-14 16:52:07 +00008955# A sed program that does not truncate output.
8956SED=$lt_SED
8957
John Criswell7a73b802003-06-30 21:59:07 +00008958# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008959Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008960
8961# The HP-UX ksh and POSIX shell print the target directory to stdout
8962# if CDPATH is set.
8963if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8964
John Criswell47fdd832003-07-14 16:52:07 +00008965# The names of the tagged configurations supported by this script.
8966available_tags=
8967
John Criswell7a73b802003-06-30 21:59:07 +00008968# ### BEGIN LIBTOOL CONFIG
8969
8970# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8971
8972# Shell to use when invoking shell scripts.
8973SHELL=$lt_SHELL
8974
8975# Whether or not to build shared libraries.
8976build_libtool_libs=$enable_shared
8977
8978# Whether or not to build static libraries.
8979build_old_libs=$enable_static
8980
8981# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008982build_libtool_need_lc=$archive_cmds_need_lc
8983
8984# Whether or not to disallow shared libs when runtime libs are static
8985allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008986
8987# Whether or not to optimize for fast installation.
8988fast_install=$enable_fast_install
8989
8990# The host system.
8991host_alias=$host_alias
8992host=$host
8993
8994# An echo program that does not interpret backslashes.
8995echo=$lt_echo
8996
8997# The archiver.
8998AR=$lt_AR
8999AR_FLAGS=$lt_AR_FLAGS
9000
John Criswell47fdd832003-07-14 16:52:07 +00009001# A C compiler.
9002LTCC=$lt_LTCC
9003
9004# A language-specific compiler.
9005CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009006
9007# Is the compiler the GNU C compiler?
9008with_gcc=$GCC
9009
John Criswell47fdd832003-07-14 16:52:07 +00009010# An ERE matcher.
9011EGREP=$lt_EGREP
9012
John Criswell7a73b802003-06-30 21:59:07 +00009013# The linker used to build libraries.
9014LD=$lt_LD
9015
9016# Whether we need hard or soft links.
9017LN_S=$lt_LN_S
9018
9019# A BSD-compatible nm program.
9020NM=$lt_NM
9021
9022# A symbol stripping program
9023STRIP=$STRIP
9024
9025# Used to examine libraries when file_magic_cmd begins "file"
9026MAGIC_CMD=$MAGIC_CMD
9027
9028# Used on cygwin: DLL creation program.
9029DLLTOOL="$DLLTOOL"
9030
9031# Used on cygwin: object dumper.
9032OBJDUMP="$OBJDUMP"
9033
9034# Used on cygwin: assembler.
9035AS="$AS"
9036
9037# The name of the directory that contains temporary libtool files.
9038objdir=$objdir
9039
9040# How to create reloadable object files.
9041reload_flag=$lt_reload_flag
9042reload_cmds=$lt_reload_cmds
9043
9044# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009045wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009046
9047# Object file suffix (normally "o").
9048objext="$ac_objext"
9049
9050# Old archive suffix (normally "a").
9051libext="$libext"
9052
John Criswell47fdd832003-07-14 16:52:07 +00009053# Shared library suffix (normally ".so").
9054shrext='$shrext'
9055
John Criswell7a73b802003-06-30 21:59:07 +00009056# Executable file suffix (normally "").
9057exeext="$exeext"
9058
9059# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009060pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009061pic_mode=$pic_mode
9062
John Criswell47fdd832003-07-14 16:52:07 +00009063# What is the maximum length of a command?
9064max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009065
John Criswell47fdd832003-07-14 16:52:07 +00009066# Does compiler simultaneously support -c and -o options?
9067compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009068
9069# Must we lock files when doing compilation ?
9070need_locks=$lt_need_locks
9071
9072# Do we need the lib prefix for modules?
9073need_lib_prefix=$need_lib_prefix
9074
9075# Do we need a version for libraries?
9076need_version=$need_version
9077
9078# Whether dlopen is supported.
9079dlopen_support=$enable_dlopen
9080
9081# Whether dlopen of programs is supported.
9082dlopen_self=$enable_dlopen_self
9083
9084# Whether dlopen of statically linked programs is supported.
9085dlopen_self_static=$enable_dlopen_self_static
9086
9087# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009088link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009089
9090# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009092
9093# Compiler flag to allow reflexive dlopens.
9094export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9095
9096# Compiler flag to generate shared objects directly from archives.
9097whole_archive_flag_spec=$lt_whole_archive_flag_spec
9098
9099# Compiler flag to generate thread-safe objects.
9100thread_safe_flag_spec=$lt_thread_safe_flag_spec
9101
9102# Library versioning type.
9103version_type=$version_type
9104
9105# Format of library name prefix.
9106libname_spec=$lt_libname_spec
9107
9108# List of archive names. First name is the real one, the rest are links.
9109# The last name is the one that the linker finds with -lNAME.
9110library_names_spec=$lt_library_names_spec
9111
9112# The coded name of the library, if different from the real name.
9113soname_spec=$lt_soname_spec
9114
9115# Commands used to build and install an old-style archive.
9116RANLIB=$lt_RANLIB
9117old_archive_cmds=$lt_old_archive_cmds
9118old_postinstall_cmds=$lt_old_postinstall_cmds
9119old_postuninstall_cmds=$lt_old_postuninstall_cmds
9120
9121# Create an old-style archive from a shared archive.
9122old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9123
9124# Create a temporary old-style archive to link instead of a shared archive.
9125old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9126
9127# Commands used to build and install a shared archive.
9128archive_cmds=$lt_archive_cmds
9129archive_expsym_cmds=$lt_archive_expsym_cmds
9130postinstall_cmds=$lt_postinstall_cmds
9131postuninstall_cmds=$lt_postuninstall_cmds
9132
John Criswell47fdd832003-07-14 16:52:07 +00009133# Commands used to build a loadable module (assumed same as above if empty)
9134module_cmds=$lt_module_cmds
9135module_expsym_cmds=$lt_module_expsym_cmds
9136
John Criswell7a73b802003-06-30 21:59:07 +00009137# Commands to strip libraries.
9138old_striplib=$lt_old_striplib
9139striplib=$lt_striplib
9140
John Criswell47fdd832003-07-14 16:52:07 +00009141# Dependencies to place before the objects being linked to create a
9142# shared library.
9143predep_objects=$lt_predep_objects
9144
9145# Dependencies to place after the objects being linked to create a
9146# shared library.
9147postdep_objects=$lt_postdep_objects
9148
9149# Dependencies to place before the objects being linked to create a
9150# shared library.
9151predeps=$lt_predeps
9152
9153# Dependencies to place after the objects being linked to create a
9154# shared library.
9155postdeps=$lt_postdeps
9156
9157# The library search path used internally by the compiler when linking
9158# a shared library.
9159compiler_lib_search_path=$lt_compiler_lib_search_path
9160
John Criswell7a73b802003-06-30 21:59:07 +00009161# Method to check whether dependent libraries are shared objects.
9162deplibs_check_method=$lt_deplibs_check_method
9163
9164# Command to use when deplibs_check_method == file_magic.
9165file_magic_cmd=$lt_file_magic_cmd
9166
9167# Flag that allows shared libraries with undefined symbols to be built.
9168allow_undefined_flag=$lt_allow_undefined_flag
9169
9170# Flag that forces no undefined symbols.
9171no_undefined_flag=$lt_no_undefined_flag
9172
9173# Commands used to finish a libtool library installation in a directory.
9174finish_cmds=$lt_finish_cmds
9175
9176# Same as above, but a single script fragment to be evaled but not shown.
9177finish_eval=$lt_finish_eval
9178
9179# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009180global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009181
9182# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009183global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009184
9185# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009186global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009187
9188# This is the shared library runtime path variable.
9189runpath_var=$runpath_var
9190
9191# This is the shared library path variable.
9192shlibpath_var=$shlibpath_var
9193
9194# Is shlibpath searched before the hard-coded library search path?
9195shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9196
9197# How to hardcode a shared library path into an executable.
9198hardcode_action=$hardcode_action
9199
9200# Whether we should hardcode library paths into libraries.
9201hardcode_into_libs=$hardcode_into_libs
9202
9203# Flag to hardcode \$libdir into a binary during linking.
9204# This must work even if \$libdir does not exist.
9205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9206
John Criswell47fdd832003-07-14 16:52:07 +00009207# If ld is used when linking, flag to hardcode \$libdir into
9208# a binary during linking. This must work even if \$libdir does
9209# not exist.
9210hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9211
John Criswell7a73b802003-06-30 21:59:07 +00009212# Whether we need a single -rpath flag with a separated argument.
9213hardcode_libdir_separator=$lt_hardcode_libdir_separator
9214
John Criswell47fdd832003-07-14 16:52:07 +00009215# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009216# resulting binary.
9217hardcode_direct=$hardcode_direct
9218
9219# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9220# resulting binary.
9221hardcode_minus_L=$hardcode_minus_L
9222
9223# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9224# the resulting binary.
9225hardcode_shlibpath_var=$hardcode_shlibpath_var
9226
John Criswell47fdd832003-07-14 16:52:07 +00009227# Set to yes if building a shared library automatically hardcodes DIR into the library
9228# and all subsequent libraries and executables linked against it.
9229hardcode_automatic=$hardcode_automatic
9230
John Criswell7a73b802003-06-30 21:59:07 +00009231# Variables whose values should be saved in libtool wrapper scripts and
9232# restored at relink time.
9233variables_saved_for_relink="$variables_saved_for_relink"
9234
9235# Whether libtool must link a program against all its dependency libraries.
9236link_all_deplibs=$link_all_deplibs
9237
9238# Compile-time system search path for libraries
9239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9240
9241# Run-time system search path for libraries
9242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9243
9244# Fix the shell variable \$srcfile for the compiler.
9245fix_srcfile_path="$fix_srcfile_path"
9246
9247# Set to yes if exported symbols are required.
9248always_export_symbols=$always_export_symbols
9249
9250# The commands to list exported symbols.
9251export_symbols_cmds=$lt_export_symbols_cmds
9252
9253# The commands to extract the exported symbol list from a shared archive.
9254extract_expsyms_cmds=$lt_extract_expsyms_cmds
9255
9256# Symbols that should not be listed in the preloaded symbols.
9257exclude_expsyms=$lt_exclude_expsyms
9258
9259# Symbols that must always be exported.
9260include_expsyms=$lt_include_expsyms
9261
9262# ### END LIBTOOL CONFIG
9263
9264__EOF__
9265
John Criswell47fdd832003-07-14 16:52:07 +00009266
John Criswell7a73b802003-06-30 21:59:07 +00009267 case $host_os in
9268 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009269 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009270
9271# AIX sometimes has problems with the GCC collect2 program. For some
9272# reason, if we set the COLLECT_NAMES environment variable, the problems
9273# vanish in a puff of smoke.
9274if test "X${COLLECT_NAMES+set}" != Xset; then
9275 COLLECT_NAMES=
9276 export COLLECT_NAMES
9277fi
9278EOF
9279 ;;
9280 esac
9281
John Criswell7a73b802003-06-30 21:59:07 +00009282 # We use sed instead of cat because bash on DJGPP gets confused if
9283 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9284 # text mode, it properly converts lines to CR/LF. This bash problem
9285 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009286 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009287
John Criswell47fdd832003-07-14 16:52:07 +00009288 mv -f "$cfgfile" "$ofile" || \
9289 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009290 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009291
9292else
9293 # If there is no Makefile yet, we rely on a make rule to execute
9294 # `config.status --recheck' to rerun these tests and create the
9295 # libtool script then.
9296 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009297fi
John Criswell7a73b802003-06-30 21:59:07 +00009298
9299
John Criswell47fdd832003-07-14 16:52:07 +00009300ac_ext=c
9301ac_cpp='$CPP $CPPFLAGS'
9302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306CC="$lt_save_CC"
9307
9308
9309# Check whether --with-tags or --without-tags was given.
9310if test "${with_tags+set}" = set; then
9311 withval="$with_tags"
9312 tagnames="$withval"
9313fi;
9314
9315if test -f "$ltmain" && test -n "$tagnames"; then
9316 if test ! -f "${ofile}"; then
9317 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9318echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9319 fi
9320
9321 if test -z "$LTCC"; then
9322 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9323 if test -z "$LTCC"; then
9324 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9325echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9326 else
9327 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9328echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9329 fi
9330 fi
9331
9332 # Extract list of available tagged configurations in $ofile.
9333 # Note that this assumes the entire list is on one line.
9334 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9335
9336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9337 for tagname in $tagnames; do
9338 IFS="$lt_save_ifs"
9339 # Check whether tagname contains only valid characters
9340 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9341 "") ;;
9342 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9343echo "$as_me: error: invalid tag name: $tagname" >&2;}
9344 { (exit 1); exit 1; }; }
9345 ;;
9346 esac
9347
9348 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9349 then
9350 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9351echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9352 { (exit 1); exit 1; }; }
9353 fi
9354
9355 # Update the list of available tags.
9356 if test -n "$tagname"; then
9357 echo appending configuration tag \"$tagname\" to $ofile
9358
9359 case $tagname in
9360 CXX)
9361 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9362 ac_ext=cc
9363ac_cpp='$CXXCPP $CPPFLAGS'
9364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9367
9368
9369
9370
9371archive_cmds_need_lc_CXX=no
9372allow_undefined_flag_CXX=
9373always_export_symbols_CXX=no
9374archive_expsym_cmds_CXX=
9375export_dynamic_flag_spec_CXX=
9376hardcode_direct_CXX=no
9377hardcode_libdir_flag_spec_CXX=
9378hardcode_libdir_flag_spec_ld_CXX=
9379hardcode_libdir_separator_CXX=
9380hardcode_minus_L_CXX=no
9381hardcode_automatic_CXX=no
9382module_cmds_CXX=
9383module_expsym_cmds_CXX=
9384link_all_deplibs_CXX=unknown
9385old_archive_cmds_CXX=$old_archive_cmds
9386no_undefined_flag_CXX=
9387whole_archive_flag_spec_CXX=
9388enable_shared_with_static_runtimes_CXX=no
9389
9390# Dependencies to place before and after the object being linked:
9391predep_objects_CXX=
9392postdep_objects_CXX=
9393predeps_CXX=
9394postdeps_CXX=
9395compiler_lib_search_path_CXX=
9396
9397# Source file extension for C++ test sources.
9398ac_ext=cc
9399
9400# Object file extension for compiled C++ test sources.
9401objext=o
9402objext_CXX=$objext
9403
9404# Code to be used in simple compile tests
9405lt_simple_compile_test_code="int some_variable = 0;\n"
9406
9407# Code to be used in simple link tests
9408lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9409
9410# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9411
9412# If no C compiler was specified, use CC.
9413LTCC=${LTCC-"$CC"}
9414
9415# Allow CC to be a program name with arguments.
9416compiler=$CC
9417
9418
9419# Allow CC to be a program name with arguments.
9420lt_save_CC=$CC
9421lt_save_LD=$LD
9422lt_save_GCC=$GCC
9423GCC=$GXX
9424lt_save_with_gnu_ld=$with_gnu_ld
9425lt_save_path_LD=$lt_cv_path_LD
9426if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9427 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9428else
9429 unset lt_cv_prog_gnu_ld
9430fi
9431if test -n "${lt_cv_path_LDCXX+set}"; then
9432 lt_cv_path_LD=$lt_cv_path_LDCXX
9433else
9434 unset lt_cv_path_LD
9435fi
9436test -z "${LDCXX+set}" || LD=$LDCXX
9437CC=${CXX-"c++"}
9438compiler=$CC
9439compiler_CXX=$CC
9440cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9441
9442# We don't want -fno-exception wen compiling C++ code, so set the
9443# no_builtin_flag separately
9444if test "$GXX" = yes; then
9445 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9446else
9447 lt_prog_compiler_no_builtin_flag_CXX=
9448fi
9449
9450if test "$GXX" = yes; then
9451 # Set up default GNU C++ configuration
9452
9453
9454# Check whether --with-gnu-ld or --without-gnu-ld was given.
9455if test "${with_gnu_ld+set}" = set; then
9456 withval="$with_gnu_ld"
9457 test "$withval" = no || with_gnu_ld=yes
9458else
9459 with_gnu_ld=no
9460fi;
9461ac_prog=ld
9462if test "$GCC" = yes; then
9463 # Check if gcc -print-prog-name=ld gives a path.
9464 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9465echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9466 case $host in
9467 *-*-mingw*)
9468 # gcc leaves a trailing carriage return which upsets mingw
9469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9470 *)
9471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9472 esac
9473 case $ac_prog in
9474 # Accept absolute paths.
9475 [\\/]* | ?:[\\/]*)
9476 re_direlt='/[^/][^/]*/\.\./'
9477 # Canonicalize the path of ld
9478 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9480 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9481 done
9482 test -z "$LD" && LD="$ac_prog"
9483 ;;
9484 "")
9485 # If it fails, then pretend we aren't using GCC.
9486 ac_prog=ld
9487 ;;
9488 *)
9489 # If it is relative, then search for the first ld in PATH.
9490 with_gnu_ld=unknown
9491 ;;
9492 esac
9493elif test "$with_gnu_ld" = yes; then
9494 echo "$as_me:$LINENO: checking for GNU ld" >&5
9495echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9496else
9497 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9498echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9499fi
9500if test "${lt_cv_path_LD+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502else
9503 if test -z "$LD"; then
9504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9505 for ac_dir in $PATH; do
9506 IFS="$lt_save_ifs"
9507 test -z "$ac_dir" && ac_dir=.
9508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9509 lt_cv_path_LD="$ac_dir/$ac_prog"
9510 # Check to see if the program is GNU ld. I'd rather use --version,
9511 # but apparently some GNU ld's only accept -v.
9512 # Break only if it was the GNU/non-GNU ld that we prefer.
9513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9514 *GNU* | *'with BFD'*)
9515 test "$with_gnu_ld" != no && break
9516 ;;
9517 *)
9518 test "$with_gnu_ld" != yes && break
9519 ;;
9520 esac
9521 fi
9522 done
9523 IFS="$lt_save_ifs"
9524else
9525 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9526fi
9527fi
9528
9529LD="$lt_cv_path_LD"
9530if test -n "$LD"; then
9531 echo "$as_me:$LINENO: result: $LD" >&5
9532echo "${ECHO_T}$LD" >&6
9533else
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
9536fi
9537test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9538echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9539 { (exit 1); exit 1; }; }
9540echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9541echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9542if test "${lt_cv_prog_gnu_ld+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9546case `"$LD" -v 2>&1 </dev/null` in
9547*GNU* | *'with BFD'*)
9548 lt_cv_prog_gnu_ld=yes
9549 ;;
9550*)
9551 lt_cv_prog_gnu_ld=no
9552 ;;
9553esac
9554fi
9555echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9556echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9557with_gnu_ld=$lt_cv_prog_gnu_ld
9558
9559
9560
9561 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9562 # archiving commands below assume that GNU ld is being used.
9563 if test "$with_gnu_ld" = yes; then
9564 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 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'
9566
9567 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9568 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9569
9570 # If archive_cmds runs LD, not CC, wlarc should be empty
9571 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9572 # investigate it a little bit more. (MM)
9573 wlarc='${wl}'
9574
9575 # ancient GNU ld didn't support --whole-archive et. al.
9576 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9577 grep 'no-whole-archive' > /dev/null; then
9578 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9579 else
9580 whole_archive_flag_spec_CXX=
9581 fi
9582 else
9583 with_gnu_ld=no
9584 wlarc=
9585
9586 # A generic and very simple default shared library creation
9587 # command for GNU C++ for the case where it uses the native
9588 # linker, instead of GNU ld. If possible, this setting should
9589 # overridden to take advantage of the native linker features on
9590 # the platform it is being used on.
9591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9592 fi
9593
9594 # Commands to make compiler produce verbose output that lists
9595 # what "hidden" libraries, object files and flags are used when
9596 # linking a shared library.
9597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9598
9599else
9600 GXX=no
9601 with_gnu_ld=no
9602 wlarc=
9603fi
9604
9605# PORTME: fill in a description of your system's C++ link characteristics
9606echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9607echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9608ld_shlibs_CXX=yes
9609case $host_os in
9610 aix3*)
9611 # FIXME: insert proper C++ library support
9612 ld_shlibs_CXX=no
9613 ;;
9614 aix4* | aix5*)
9615 if test "$host_cpu" = ia64; then
9616 # On IA64, the linker does run time linking by default, so we don't
9617 # have to do anything special.
9618 aix_use_runtimelinking=no
9619 exp_sym_flag='-Bexport'
9620 no_entry_flag=""
9621 else
9622 aix_use_runtimelinking=no
9623
9624 # Test if we are trying to use run time linking or normal
9625 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9626 # need to do runtime linking.
9627 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9628 for ld_flag in $LDFLAGS; do
9629 case $ld_flag in
9630 *-brtl*)
9631 aix_use_runtimelinking=yes
9632 break
9633 ;;
9634 esac
9635 done
9636 esac
9637
9638 exp_sym_flag='-bexport'
9639 no_entry_flag='-bnoentry'
9640 fi
9641
9642 # When large executables or shared objects are built, AIX ld can
9643 # have problems creating the table of contents. If linking a library
9644 # or program results in "error TOC overflow" add -mminimal-toc to
9645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9647
9648 archive_cmds_CXX=''
9649 hardcode_direct_CXX=yes
9650 hardcode_libdir_separator_CXX=':'
9651 link_all_deplibs_CXX=yes
9652
9653 if test "$GXX" = yes; then
9654 case $host_os in aix4.012|aix4.012.*)
9655 # We only want to do this on AIX 4.2 and lower, the check
9656 # below for broken collect2 doesn't work under 4.3+
9657 collect2name=`${CC} -print-prog-name=collect2`
9658 if test -f "$collect2name" && \
9659 strings "$collect2name" | grep resolve_lib_name >/dev/null
9660 then
9661 # We have reworked collect2
9662 hardcode_direct_CXX=yes
9663 else
9664 # We have old collect2
9665 hardcode_direct_CXX=unsupported
9666 # It fails to find uninstalled libraries when the uninstalled
9667 # path is not listed in the libpath. Setting hardcode_minus_L
9668 # to unsupported forces relinking
9669 hardcode_minus_L_CXX=yes
9670 hardcode_libdir_flag_spec_CXX='-L$libdir'
9671 hardcode_libdir_separator_CXX=
9672 fi
9673 esac
9674 shared_flag='-shared'
9675 else
9676 # not using gcc
9677 if test "$host_cpu" = ia64; then
9678 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9679 # chokes on -Wl,-G. The following line is correct:
9680 shared_flag='-G'
9681 else
9682 if test "$aix_use_runtimelinking" = yes; then
9683 shared_flag='${wl}-G'
9684 else
9685 shared_flag='${wl}-bM:SRE'
9686 fi
9687 fi
9688 fi
9689
9690 # It seems that -bexpall does not export symbols beginning with
9691 # underscore (_), so it is better to generate a list of symbols to export.
9692 always_export_symbols_CXX=yes
9693 if test "$aix_use_runtimelinking" = yes; then
9694 # Warning - without using the other runtime loading flags (-brtl),
9695 # -berok will link without error, but may produce a broken library.
9696 allow_undefined_flag_CXX='-berok'
9697 # Determine the default libpath from the value encoded in an empty executable.
9698 cat >conftest.$ac_ext <<_ACEOF
9699#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009700/* confdefs.h. */
9701_ACEOF
9702cat confdefs.h >>conftest.$ac_ext
9703cat >>conftest.$ac_ext <<_ACEOF
9704/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009705
John Criswell47fdd832003-07-14 16:52:07 +00009706int
9707main ()
9708{
9709
9710 ;
9711 return 0;
9712}
9713_ACEOF
9714rm -f conftest.$ac_objext conftest$ac_exeext
9715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -s conftest$ac_exeext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 (eval $ac_try) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726
9727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9728}'`
9729# Check for a 64-bit object if we didn't find anything.
9730if 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; }
9731}'`; fi
9732else
9733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009734sed 's/^/| /' conftest.$ac_ext >&5
9735
John Criswell47fdd832003-07-14 16:52:07 +00009736fi
9737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9739
9740 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9741
9742 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"
9743 else
9744 if test "$host_cpu" = ia64; then
9745 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9746 allow_undefined_flag_CXX="-z nodefs"
9747 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"
9748 else
9749 # Determine the default libpath from the value encoded in an empty executable.
9750 cat >conftest.$ac_ext <<_ACEOF
9751#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009752/* confdefs.h. */
9753_ACEOF
9754cat confdefs.h >>conftest.$ac_ext
9755cat >>conftest.$ac_ext <<_ACEOF
9756/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009757
John Criswell47fdd832003-07-14 16:52:07 +00009758int
9759main ()
9760{
9761
9762 ;
9763 return 0;
9764}
9765_ACEOF
9766rm -f conftest.$ac_objext conftest$ac_exeext
9767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778
9779aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9780}'`
9781# Check for a 64-bit object if we didn't find anything.
9782if 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; }
9783}'`; fi
9784else
9785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009786sed 's/^/| /' conftest.$ac_ext >&5
9787
John Criswell47fdd832003-07-14 16:52:07 +00009788fi
9789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9791
9792 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9793 # Warning - without using the other run time loading flags,
9794 # -berok will link without error, but may produce a broken library.
9795 no_undefined_flag_CXX=' ${wl}-bernotok'
9796 allow_undefined_flag_CXX=' ${wl}-berok'
9797 # -bexpall does not export symbols beginning with underscore (_)
9798 always_export_symbols_CXX=yes
9799 # Exported symbols can be pulled into shared objects from archives
9800 whole_archive_flag_spec_CXX=' '
9801 archive_cmds_need_lc_CXX=yes
9802 # This is similar to how AIX traditionally builds it's shared libraries.
9803 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'
9804 fi
9805 fi
9806 ;;
9807 chorus*)
9808 case $cc_basename in
9809 *)
9810 # FIXME: insert proper C++ library support
9811 ld_shlibs_CXX=no
9812 ;;
9813 esac
9814 ;;
9815
9816 cygwin* | mingw* | pw32*)
9817 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9818 # as there is no search path for DLLs.
9819 hardcode_libdir_flag_spec_CXX='-L$libdir'
9820 allow_undefined_flag_CXX=unsupported
9821 always_export_symbols_CXX=no
9822 enable_shared_with_static_runtimes_CXX=yes
9823
9824 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9825 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'
9826 # If the export-symbols file already is a .def file (1st line
9827 # is EXPORTS), use it as is; otherwise, prepend...
9828 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9829 cp $export_symbols $output_objdir/$soname.def;
9830 else
9831 echo EXPORTS > $output_objdir/$soname.def;
9832 cat $export_symbols >> $output_objdir/$soname.def;
9833 fi~
9834 $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'
9835 else
9836 ld_shlibs_CXX=no
9837 fi
9838 ;;
9839
9840 darwin* | rhapsody*)
9841 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9842 archive_cmds_need_lc_CXX=no
9843 case "$host_os" in
9844 rhapsody* | darwin1.[012])
9845 allow_undefined_flag_CXX='-undefined suppress'
9846 ;;
9847 *) # Darwin 1.3 on
9848 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9849 ;;
9850 esac
9851 lt_int_apple_cc_single_mod=no
9852 output_verbose_link_cmd='echo'
9853 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9854 lt_int_apple_cc_single_mod=yes
9855 fi
9856 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9857 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9858 else
9859 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'
9860 fi
9861 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9862
9863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9864 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9865 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}'
9866 else
9867 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}'
9868 fi
9869 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}'
9870 hardcode_direct_CXX=no
9871 hardcode_automatic_CXX=yes
9872 hardcode_shlibpath_var_CXX=unsupported
9873 whole_archive_flag_spec_CXX='-all_load $convenience'
9874 link_all_deplibs_CXX=yes
9875 fi
9876 ;;
9877
9878 dgux*)
9879 case $cc_basename in
9880 ec++)
9881 # FIXME: insert proper C++ library support
9882 ld_shlibs_CXX=no
9883 ;;
9884 ghcx)
9885 # Green Hills C++ Compiler
9886 # FIXME: insert proper C++ library support
9887 ld_shlibs_CXX=no
9888 ;;
9889 *)
9890 # FIXME: insert proper C++ library support
9891 ld_shlibs_CXX=no
9892 ;;
9893 esac
9894 ;;
9895 freebsd12*)
9896 # C++ shared libraries reported to be fairly broken before switch to ELF
9897 ld_shlibs_CXX=no
9898 ;;
9899 freebsd-elf*)
9900 archive_cmds_need_lc_CXX=no
9901 ;;
9902 freebsd*)
9903 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9904 # conventions
9905 ld_shlibs_CXX=yes
9906 ;;
9907 gnu*)
9908 ;;
9909 hpux9*)
9910 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator_CXX=:
9912 export_dynamic_flag_spec_CXX='${wl}-E'
9913 hardcode_direct_CXX=yes
9914 hardcode_minus_L_CXX=yes # Not in the search PATH,
9915 # but as the default
9916 # location of the library.
9917
9918 case $cc_basename in
9919 CC)
9920 # FIXME: insert proper C++ library support
9921 ld_shlibs_CXX=no
9922 ;;
9923 aCC)
9924 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'
9925 # Commands to make compiler produce verbose output that lists
9926 # what "hidden" libraries, object files and flags are used when
9927 # linking a shared library.
9928 #
9929 # There doesn't appear to be a way to prevent this compiler from
9930 # explicitly linking system object files so we need to strip them
9931 # from the output so that they don't get included in the library
9932 # dependencies.
9933 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'
9934 ;;
9935 *)
9936 if test "$GXX" = yes; then
9937 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'
9938 else
9939 # FIXME: insert proper C++ library support
9940 ld_shlibs_CXX=no
9941 fi
9942 ;;
9943 esac
9944 ;;
9945 hpux10*|hpux11*)
9946 if test $with_gnu_ld = no; then
9947 case "$host_cpu" in
9948 hppa*64*)
9949 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9950 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9951 hardcode_libdir_separator_CXX=:
9952 ;;
9953 ia64*)
9954 hardcode_libdir_flag_spec_CXX='-L$libdir'
9955 ;;
9956 *)
9957 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9958 hardcode_libdir_separator_CXX=:
9959 export_dynamic_flag_spec_CXX='${wl}-E'
9960 ;;
9961 esac
9962 fi
9963 case "$host_cpu" in
9964 hppa*64*)
9965 hardcode_direct_CXX=no
9966 hardcode_shlibpath_var_CXX=no
9967 ;;
9968 ia64*)
9969 hardcode_direct_CXX=no
9970 hardcode_shlibpath_var_CXX=no
9971 hardcode_minus_L_CXX=yes # Not in the search PATH,
9972 # but as the default
9973 # location of the library.
9974 ;;
9975 *)
9976 hardcode_direct_CXX=yes
9977 hardcode_minus_L_CXX=yes # Not in the search PATH,
9978 # but as the default
9979 # location of the library.
9980 ;;
9981 esac
9982
9983 case $cc_basename in
9984 CC)
9985 # FIXME: insert proper C++ library support
9986 ld_shlibs_CXX=no
9987 ;;
9988 aCC)
9989 case "$host_cpu" in
9990 hppa*64*|ia64*)
9991 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9992 ;;
9993 *)
9994 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9995 ;;
9996 esac
9997 # Commands to make compiler produce verbose output that lists
9998 # what "hidden" libraries, object files and flags are used when
9999 # linking a shared library.
10000 #
10001 # There doesn't appear to be a way to prevent this compiler from
10002 # explicitly linking system object files so we need to strip them
10003 # from the output so that they don't get included in the library
10004 # dependencies.
10005 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'
10006 ;;
10007 *)
10008 if test "$GXX" = yes; then
10009 if test $with_gnu_ld = no; then
10010 case "$host_cpu" in
10011 ia64*|hppa*64*)
10012 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10013 ;;
10014 *)
10015 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'
10016 ;;
10017 esac
10018 fi
10019 else
10020 # FIXME: insert proper C++ library support
10021 ld_shlibs_CXX=no
10022 fi
10023 ;;
10024 esac
10025 ;;
10026 irix5* | irix6*)
10027 case $cc_basename in
10028 CC)
10029 # SGI C++
10030 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'
10031
10032 # Archives containing C++ object files must be created using
10033 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10034 # necessary to make sure instantiated templates are included
10035 # in the archive.
10036 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10037 ;;
10038 *)
10039 if test "$GXX" = yes; then
10040 if test "$with_gnu_ld" = no; then
10041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10042 else
10043 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'
10044 fi
10045 fi
10046 link_all_deplibs_CXX=yes
10047 ;;
10048 esac
10049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10050 hardcode_libdir_separator_CXX=:
10051 ;;
10052 linux*)
10053 case $cc_basename in
10054 KCC)
10055 # Kuck and Associates, Inc. (KAI) C++ Compiler
10056
10057 # KCC will only create a shared library if the output file
10058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10059 # to its proper name (with version) after linking.
10060 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'
10061 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'
10062 # Commands to make compiler produce verbose output that lists
10063 # what "hidden" libraries, object files and flags are used when
10064 # linking a shared library.
10065 #
10066 # There doesn't appear to be a way to prevent this compiler from
10067 # explicitly linking system object files so we need to strip them
10068 # from the output so that they don't get included in the library
10069 # dependencies.
10070 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'
10071
10072 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10074
10075 # Archives containing C++ object files must be created using
10076 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10077 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10078 ;;
10079 icpc)
10080 # Intel C++
10081 with_gnu_ld=yes
10082 archive_cmds_need_lc_CXX=no
10083 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084 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'
10085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10088 ;;
10089 cxx)
10090 # Compaq C++
10091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10092 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'
10093
10094 runpath_var=LD_RUN_PATH
10095 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10096 hardcode_libdir_separator_CXX=:
10097
10098 # Commands to make compiler produce verbose output that lists
10099 # what "hidden" libraries, object files and flags are used when
10100 # linking a shared library.
10101 #
10102 # There doesn't appear to be a way to prevent this compiler from
10103 # explicitly linking system object files so we need to strip them
10104 # from the output so that they don't get included in the library
10105 # dependencies.
10106 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'
10107 ;;
10108 esac
10109 ;;
10110 lynxos*)
10111 # FIXME: insert proper C++ library support
10112 ld_shlibs_CXX=no
10113 ;;
10114 m88k*)
10115 # FIXME: insert proper C++ library support
10116 ld_shlibs_CXX=no
10117 ;;
10118 mvs*)
10119 case $cc_basename in
10120 cxx)
10121 # FIXME: insert proper C++ library support
10122 ld_shlibs_CXX=no
10123 ;;
10124 *)
10125 # FIXME: insert proper C++ library support
10126 ld_shlibs_CXX=no
10127 ;;
10128 esac
10129 ;;
10130 netbsd*)
10131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10133 wlarc=
10134 hardcode_libdir_flag_spec_CXX='-R$libdir'
10135 hardcode_direct_CXX=yes
10136 hardcode_shlibpath_var_CXX=no
10137 fi
10138 # Workaround some broken pre-1.5 toolchains
10139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10140 ;;
10141 osf3*)
10142 case $cc_basename in
10143 KCC)
10144 # Kuck and Associates, Inc. (KAI) C++ Compiler
10145
10146 # KCC will only create a shared library if the output file
10147 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10148 # to its proper name (with version) after linking.
10149 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'
10150
10151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10152 hardcode_libdir_separator_CXX=:
10153
10154 # Archives containing C++ object files must be created using
10155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10156 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10157
10158 ;;
10159 RCC)
10160 # Rational C++ 2.4.1
10161 # FIXME: insert proper C++ library support
10162 ld_shlibs_CXX=no
10163 ;;
10164 cxx)
10165 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10166 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'
10167
10168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10169 hardcode_libdir_separator_CXX=:
10170
10171 # Commands to make compiler produce verbose output that lists
10172 # what "hidden" libraries, object files and flags are used when
10173 # linking a shared library.
10174 #
10175 # There doesn't appear to be a way to prevent this compiler from
10176 # explicitly linking system object files so we need to strip them
10177 # from the output so that they don't get included in the library
10178 # dependencies.
10179 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'
10180 ;;
10181 *)
10182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10183 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10184 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'
10185
10186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10187 hardcode_libdir_separator_CXX=:
10188
10189 # Commands to make compiler produce verbose output that lists
10190 # what "hidden" libraries, object files and flags are used when
10191 # linking a shared library.
10192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10193
10194 else
10195 # FIXME: insert proper C++ library support
10196 ld_shlibs_CXX=no
10197 fi
10198 ;;
10199 esac
10200 ;;
10201 osf4* | osf5*)
10202 case $cc_basename in
10203 KCC)
10204 # Kuck and Associates, Inc. (KAI) C++ Compiler
10205
10206 # KCC will only create a shared library if the output file
10207 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10208 # to its proper name (with version) after linking.
10209 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'
10210
10211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10212 hardcode_libdir_separator_CXX=:
10213
10214 # Archives containing C++ object files must be created using
10215 # the KAI C++ compiler.
10216 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10217 ;;
10218 RCC)
10219 # Rational C++ 2.4.1
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10222 ;;
10223 cxx)
10224 allow_undefined_flag_CXX=' -expect_unresolved \*'
10225 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'
10226 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10227 echo "-hidden">> $lib.exp~
10228 $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~
10229 $rm $lib.exp'
10230
10231 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10232 hardcode_libdir_separator_CXX=:
10233
10234 # Commands to make compiler produce verbose output that lists
10235 # what "hidden" libraries, object files and flags are used when
10236 # linking a shared library.
10237 #
10238 # There doesn't appear to be a way to prevent this compiler from
10239 # explicitly linking system object files so we need to strip them
10240 # from the output so that they don't get included in the library
10241 # dependencies.
10242 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'
10243 ;;
10244 *)
10245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10246 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10247 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'
10248
10249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10250 hardcode_libdir_separator_CXX=:
10251
10252 # Commands to make compiler produce verbose output that lists
10253 # what "hidden" libraries, object files and flags are used when
10254 # linking a shared library.
10255 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10256
10257 else
10258 # FIXME: insert proper C++ library support
10259 ld_shlibs_CXX=no
10260 fi
10261 ;;
10262 esac
10263 ;;
10264 psos*)
10265 # FIXME: insert proper C++ library support
10266 ld_shlibs_CXX=no
10267 ;;
10268 sco*)
10269 archive_cmds_need_lc_CXX=no
10270 case $cc_basename in
10271 CC)
10272 # FIXME: insert proper C++ library support
10273 ld_shlibs_CXX=no
10274 ;;
10275 *)
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10278 ;;
10279 esac
10280 ;;
10281 sunos4*)
10282 case $cc_basename in
10283 CC)
10284 # Sun C++ 4.x
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 ;;
10288 lcc)
10289 # Lucid
10290 # FIXME: insert proper C++ library support
10291 ld_shlibs_CXX=no
10292 ;;
10293 *)
10294 # FIXME: insert proper C++ library support
10295 ld_shlibs_CXX=no
10296 ;;
10297 esac
10298 ;;
10299 solaris*)
10300 case $cc_basename in
10301 CC)
10302 # Sun C++ 4.2, 5.x and Centerline C++
10303 no_undefined_flag_CXX=' -zdefs'
10304 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10305 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10306 $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'
10307
10308 hardcode_libdir_flag_spec_CXX='-R$libdir'
10309 hardcode_shlibpath_var_CXX=no
10310 case $host_os in
10311 solaris2.0-5 | solaris2.0-5.*) ;;
10312 *)
10313 # The C++ compiler is used as linker so we must use $wl
10314 # flag to pass the commands to the underlying system
10315 # linker.
10316 # Supported since Solaris 2.6 (maybe 2.5.1?)
10317 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10318 ;;
10319 esac
10320 link_all_deplibs_CXX=yes
10321
10322 # Commands to make compiler produce verbose output that lists
10323 # what "hidden" libraries, object files and flags are used when
10324 # linking a shared library.
10325 #
10326 # There doesn't appear to be a way to prevent this compiler from
10327 # explicitly linking system object files so we need to strip them
10328 # from the output so that they don't get included in the library
10329 # dependencies.
10330 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'
10331
10332 # Archives containing C++ object files must be created using
10333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10334 # necessary to make sure instantiated templates are included
10335 # in the archive.
10336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10337 ;;
10338 gcx)
10339 # Green Hills C++ Compiler
10340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10341
10342 # The C++ compiler must be used to create the archive.
10343 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10344 ;;
10345 *)
10346 # GNU C++ compiler with Solaris linker
10347 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10348 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10349 if $CC --version | grep -v '^2\.7' > /dev/null; then
10350 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10351 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10352 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10353
10354 # Commands to make compiler produce verbose output that lists
10355 # what "hidden" libraries, object files and flags are used when
10356 # linking a shared library.
10357 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10358 else
10359 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10360 # platform.
10361 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10362 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10363 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10364
10365 # Commands to make compiler produce verbose output that lists
10366 # what "hidden" libraries, object files and flags are used when
10367 # linking a shared library.
10368 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10369 fi
10370
10371 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10372 fi
10373 ;;
10374 esac
10375 ;;
10376 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10377 archive_cmds_need_lc_CXX=no
10378 ;;
10379 tandem*)
10380 case $cc_basename in
10381 NCC)
10382 # NonStop-UX NCC 3.20
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386 *)
10387 # FIXME: insert proper C++ library support
10388 ld_shlibs_CXX=no
10389 ;;
10390 esac
10391 ;;
10392 vxworks*)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 *)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10399 ;;
10400esac
10401echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10402echo "${ECHO_T}$ld_shlibs_CXX" >&6
10403test "$ld_shlibs_CXX" = no && can_build_shared=no
10404
10405GCC_CXX="$GXX"
10406LD_CXX="$LD"
10407
10408## CAVEAT EMPTOR:
10409## There is no encapsulation within the following macros, do not change
10410## the running order or otherwise move them around unless you know exactly
10411## what you are doing...
10412
10413cat > conftest.$ac_ext <<EOF
10414class Foo
10415{
10416public:
10417 Foo (void) { a = 0; }
10418private:
10419 int a;
10420};
10421EOF
10422
10423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; then
10428 # Parse the compiler output and extract the necessary
10429 # objects, libraries and library flags.
10430
10431 # Sentinel used to keep track of whether or not we are before
10432 # the conftest object file.
10433 pre_test_object_deps_done=no
10434
10435 # The `*' in the case matches for architectures that use `case' in
10436 # $output_verbose_cmd can trigger glob expansion during the loop
10437 # eval without this substitution.
10438 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10439
10440 for p in `eval $output_verbose_link_cmd`; do
10441 case $p in
10442
10443 -L* | -R* | -l*)
10444 # Some compilers place space between "-{L,R}" and the path.
10445 # Remove the space.
10446 if test $p = "-L" \
10447 || test $p = "-R"; then
10448 prev=$p
10449 continue
10450 else
10451 prev=
10452 fi
10453
10454 if test "$pre_test_object_deps_done" = no; then
10455 case $p in
10456 -L* | -R*)
10457 # Internal compiler library paths should come after those
10458 # provided the user. The postdeps already come after the
10459 # user supplied libs so there is no need to process them.
10460 if test -z "$compiler_lib_search_path_CXX"; then
10461 compiler_lib_search_path_CXX="${prev}${p}"
10462 else
10463 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10464 fi
10465 ;;
10466 # The "-l" case would never come before the object being
10467 # linked, so don't bother handling this case.
10468 esac
10469 else
10470 if test -z "$postdeps_CXX"; then
10471 postdeps_CXX="${prev}${p}"
10472 else
10473 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10474 fi
10475 fi
10476 ;;
10477
10478 *.$objext)
10479 # This assumes that the test object file only shows up
10480 # once in the compiler output.
10481 if test "$p" = "conftest.$objext"; then
10482 pre_test_object_deps_done=yes
10483 continue
10484 fi
10485
10486 if test "$pre_test_object_deps_done" = no; then
10487 if test -z "$predep_objects_CXX"; then
10488 predep_objects_CXX="$p"
10489 else
10490 predep_objects_CXX="$predep_objects_CXX $p"
10491 fi
10492 else
10493 if test -z "$postdep_objects_CXX"; then
10494 postdep_objects_CXX="$p"
10495 else
10496 postdep_objects_CXX="$postdep_objects_CXX $p"
10497 fi
10498 fi
10499 ;;
10500
10501 *) ;; # Ignore the rest.
10502
10503 esac
10504 done
10505
10506 # Clean up.
10507 rm -f a.out a.exe
10508else
10509 echo "libtool.m4: error: problem compiling CXX test program"
10510fi
10511
10512$rm -f confest.$objext
10513
10514case " $postdeps_CXX " in
10515*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10516esac
10517
10518lt_prog_compiler_wl_CXX=
10519lt_prog_compiler_pic_CXX=
10520lt_prog_compiler_static_CXX=
10521
10522echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10523echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10524
10525 # C++ specific cases for pic, static, wl, etc.
10526 if test "$GXX" = yes; then
10527 lt_prog_compiler_wl_CXX='-Wl,'
10528 lt_prog_compiler_static_CXX='-static'
10529
10530 case $host_os in
10531 aix*)
10532 # All AIX code is PIC.
10533 if test "$host_cpu" = ia64; then
10534 # AIX 5 now supports IA64 processor
10535 lt_prog_compiler_static_CXX='-Bstatic'
10536 fi
10537 ;;
10538 amigaos*)
10539 # FIXME: we need at least 68020 code to build shared libraries, but
10540 # adding the `-m68020' flag to GCC prevents building anything better,
10541 # like `-m68040'.
10542 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10543 ;;
10544 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10545 # PIC is the default for these OSes.
10546 ;;
10547 mingw* | os2* | pw32*)
10548 # This hack is so that the source file can tell whether it is being
10549 # built for inclusion in a dll (and should export symbols for example).
10550 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10551 ;;
10552 darwin* | rhapsody*)
10553 # PIC is the default on this platform
10554 # Common symbols not allowed in MH_DYLIB files
10555 lt_prog_compiler_pic_CXX='-fno-common'
10556 ;;
10557 *djgpp*)
10558 # DJGPP does not support shared libraries at all
10559 lt_prog_compiler_pic_CXX=
10560 ;;
10561 sysv4*MP*)
10562 if test -d /usr/nec; then
10563 lt_prog_compiler_pic_CXX=-Kconform_pic
10564 fi
10565 ;;
10566 hpux*)
10567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10568 # not for PA HP-UX.
10569 case "$host_cpu" in
10570 hppa*64*|ia64*)
10571 ;;
10572 *)
10573 lt_prog_compiler_pic_CXX='-fPIC'
10574 ;;
10575 esac
10576 ;;
10577 *)
10578 lt_prog_compiler_pic_CXX='-fPIC'
10579 ;;
10580 esac
10581 else
10582 case $host_os in
10583 aix4* | aix5*)
10584 # All AIX code is PIC.
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 now supports IA64 processor
10587 lt_prog_compiler_static_CXX='-Bstatic'
10588 else
10589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10590 fi
10591 ;;
10592 chorus*)
10593 case $cc_basename in
10594 cxch68)
10595 # Green Hills C++ Compiler
10596 # _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"
10597 ;;
10598 esac
10599 ;;
10600 dgux*)
10601 case $cc_basename in
10602 ec++)
10603 lt_prog_compiler_pic_CXX='-KPIC'
10604 ;;
10605 ghcx)
10606 # Green Hills C++ Compiler
10607 lt_prog_compiler_pic_CXX='-pic'
10608 ;;
10609 *)
10610 ;;
10611 esac
10612 ;;
10613 freebsd*)
10614 # FreeBSD uses GNU C++
10615 ;;
10616 hpux9* | hpux10* | hpux11*)
10617 case $cc_basename in
10618 CC)
10619 lt_prog_compiler_wl_CXX='-Wl,'
10620 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10621 if test "$host_cpu" != ia64; then
10622 lt_prog_compiler_pic_CXX='+Z'
10623 fi
10624 ;;
10625 aCC)
10626 lt_prog_compiler_wl_CXX='-Wl,'
10627 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10628 case "$host_cpu" in
10629 hppa*64*|ia64*)
10630 # +Z the default
10631 ;;
10632 *)
10633 lt_prog_compiler_pic_CXX='+Z'
10634 ;;
10635 esac
10636 ;;
10637 *)
10638 ;;
10639 esac
10640 ;;
10641 irix5* | irix6* | nonstopux*)
10642 case $cc_basename in
10643 CC)
10644 lt_prog_compiler_wl_CXX='-Wl,'
10645 lt_prog_compiler_static_CXX='-non_shared'
10646 # CC pic flag -KPIC is the default.
10647 ;;
10648 *)
10649 ;;
10650 esac
10651 ;;
10652 linux*)
10653 case $cc_basename in
10654 KCC)
10655 # KAI C++ Compiler
10656 lt_prog_compiler_wl_CXX='--backend -Wl,'
10657 lt_prog_compiler_pic_CXX='-fPIC'
10658 ;;
10659 icpc)
10660 # Intel C++
10661 lt_prog_compiler_wl_CXX='-Wl,'
10662 lt_prog_compiler_pic_CXX='-KPIC'
10663 lt_prog_compiler_static_CXX='-static'
10664 ;;
10665 cxx)
10666 # Compaq C++
10667 # Make sure the PIC flag is empty. It appears that all Alpha
10668 # Linux and Compaq Tru64 Unix objects are PIC.
10669 lt_prog_compiler_pic_CXX=
10670 lt_prog_compiler_static_CXX='-non_shared'
10671 ;;
10672 *)
10673 ;;
10674 esac
10675 ;;
10676 lynxos*)
10677 ;;
10678 m88k*)
10679 ;;
10680 mvs*)
10681 case $cc_basename in
10682 cxx)
10683 lt_prog_compiler_pic_CXX='-W c,exportall'
10684 ;;
10685 *)
10686 ;;
10687 esac
10688 ;;
10689 netbsd*)
10690 ;;
10691 osf3* | osf4* | osf5*)
10692 case $cc_basename in
10693 KCC)
10694 lt_prog_compiler_wl_CXX='--backend -Wl,'
10695 ;;
10696 RCC)
10697 # Rational C++ 2.4.1
10698 lt_prog_compiler_pic_CXX='-pic'
10699 ;;
10700 cxx)
10701 # Digital/Compaq C++
10702 lt_prog_compiler_wl_CXX='-Wl,'
10703 # Make sure the PIC flag is empty. It appears that all Alpha
10704 # Linux and Compaq Tru64 Unix objects are PIC.
10705 lt_prog_compiler_pic_CXX=
10706 lt_prog_compiler_static_CXX='-non_shared'
10707 ;;
10708 *)
10709 ;;
10710 esac
10711 ;;
10712 psos*)
10713 ;;
10714 sco*)
10715 case $cc_basename in
10716 CC)
10717 lt_prog_compiler_pic_CXX='-fPIC'
10718 ;;
10719 *)
10720 ;;
10721 esac
10722 ;;
10723 solaris*)
10724 case $cc_basename in
10725 CC)
10726 # Sun C++ 4.2, 5.x and Centerline C++
10727 lt_prog_compiler_pic_CXX='-KPIC'
10728 lt_prog_compiler_static_CXX='-Bstatic'
10729 lt_prog_compiler_wl_CXX='-Qoption ld '
10730 ;;
10731 gcx)
10732 # Green Hills C++ Compiler
10733 lt_prog_compiler_pic_CXX='-PIC'
10734 ;;
10735 *)
10736 ;;
10737 esac
10738 ;;
10739 sunos4*)
10740 case $cc_basename in
10741 CC)
10742 # Sun C++ 4.x
10743 lt_prog_compiler_pic_CXX='-pic'
10744 lt_prog_compiler_static_CXX='-Bstatic'
10745 ;;
10746 lcc)
10747 # Lucid
10748 lt_prog_compiler_pic_CXX='-pic'
10749 ;;
10750 *)
10751 ;;
10752 esac
10753 ;;
10754 tandem*)
10755 case $cc_basename in
10756 NCC)
10757 # NonStop-UX NCC 3.20
10758 lt_prog_compiler_pic_CXX='-KPIC'
10759 ;;
10760 *)
10761 ;;
10762 esac
10763 ;;
10764 unixware*)
10765 ;;
10766 vxworks*)
10767 ;;
10768 *)
10769 lt_prog_compiler_can_build_shared_CXX=no
10770 ;;
10771 esac
10772 fi
10773
10774echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10775echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10776
10777#
10778# Check to make sure the PIC flag actually works.
10779#
10780if test -n "$lt_prog_compiler_pic_CXX"; then
10781 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10782echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10783if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 lt_prog_compiler_pic_works_CXX=no
10787 ac_outfile=conftest.$ac_objext
10788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10789 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10790 # Insert the option either (1) after the last *FLAGS variable, or
10791 # (2) before a word containing "conftest.", or (3) at the end.
10792 # Note that $ac_compile itself does not contain backslashes and begins
10793 # with a dollar sign (not a hyphen), so the echo should work correctly.
10794 # The option is referenced via a variable to avoid confusing sed.
10795 lt_compile=`echo "$ac_compile" | $SED \
10796 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10798 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000010799 (eval echo "\"\$as_me:10799: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010800 (eval "$lt_compile" 2>conftest.err)
10801 ac_status=$?
10802 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000010803 echo "$as_me:10803: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010804 if (exit $ac_status) && test -s "$ac_outfile"; then
10805 # The compiler can only warn and ignore the option if not recognized
10806 # So say no if there are warnings
10807 if test ! -s conftest.err; then
10808 lt_prog_compiler_pic_works_CXX=yes
10809 fi
10810 fi
10811 $rm conftest*
10812
10813fi
10814echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10815echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10816
10817if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10818 case $lt_prog_compiler_pic_CXX in
10819 "" | " "*) ;;
10820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10821 esac
10822else
10823 lt_prog_compiler_pic_CXX=
10824 lt_prog_compiler_can_build_shared_CXX=no
10825fi
10826
10827fi
10828case "$host_os" in
10829 # For platforms which do not support PIC, -DPIC is meaningless:
10830 *djgpp*)
10831 lt_prog_compiler_pic_CXX=
10832 ;;
10833 *)
10834 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10835 ;;
10836esac
10837
10838echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10839echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10840if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 lt_cv_prog_compiler_c_o_CXX=no
10844 $rm -r conftest 2>/dev/null
10845 mkdir conftest
10846 cd conftest
10847 mkdir out
10848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10849
10850 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10851 # that will create temporary files in the current directory regardless of
10852 # the output directory. Thus, making CWD read-only will cause this test
10853 # to fail, enabling locking or at least warning the user not to do parallel
10854 # builds.
10855 chmod -w .
10856
10857 lt_compiler_flag="-o out/conftest2.$ac_objext"
10858 # Insert the option either (1) after the last *FLAGS variable, or
10859 # (2) before a word containing "conftest.", or (3) at the end.
10860 # Note that $ac_compile itself does not contain backslashes and begins
10861 # with a dollar sign (not a hyphen), so the echo should work correctly.
10862 lt_compile=`echo "$ac_compile" | $SED \
10863 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10865 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000010866 (eval echo "\"\$as_me:10866: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010867 (eval "$lt_compile" 2>out/conftest.err)
10868 ac_status=$?
10869 cat out/conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000010870 echo "$as_me:10870: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10872 then
10873 # The compiler can only warn and ignore the option if not recognized
10874 # So say no if there are warnings
10875 if test ! -s out/conftest.err; then
10876 lt_cv_prog_compiler_c_o_CXX=yes
10877 fi
10878 fi
10879 chmod u+w .
10880 $rm conftest* out/*
10881 rmdir out
10882 cd ..
10883 rmdir conftest
10884 $rm conftest*
10885
10886fi
10887echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10888echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10889
10890
10891hard_links="nottested"
10892if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10893 # do not overwrite the value of need_locks provided by the user
10894 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10895echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10896 hard_links=yes
10897 $rm conftest*
10898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10899 touch conftest.a
10900 ln conftest.a conftest.b 2>&5 || hard_links=no
10901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10902 echo "$as_me:$LINENO: result: $hard_links" >&5
10903echo "${ECHO_T}$hard_links" >&6
10904 if test "$hard_links" = no; then
10905 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10906echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10907 need_locks=warn
10908 fi
10909else
10910 need_locks=no
10911fi
10912
10913echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10914echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10915
10916 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10917 case $host_os in
10918 aix4* | aix5*)
10919 # If we're using GNU nm, then we don't want the "-C" option.
10920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10921 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10922 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'
10923 else
10924 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'
10925 fi
10926 ;;
10927 pw32*)
10928 export_symbols_cmds_CXX="$ltdll_cmds"
10929 ;;
10930 cygwin* | mingw*)
10931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10932 ;;
10933 *)
10934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10935 ;;
10936 esac
10937
10938echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10939echo "${ECHO_T}$ld_shlibs_CXX" >&6
10940test "$ld_shlibs_CXX" = no && can_build_shared=no
10941
10942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10943if test "$GCC" = yes; then
10944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10945fi
10946
10947#
10948# Do we need to explicitly link libc?
10949#
10950case "x$archive_cmds_need_lc_CXX" in
10951x|xyes)
10952 # Assume -lc should be added
10953 archive_cmds_need_lc_CXX=yes
10954
10955 if test "$enable_shared" = yes && test "$GCC" = yes; then
10956 case $archive_cmds_CXX in
10957 *'~'*)
10958 # FIXME: we may have to deal with multi-command sequences.
10959 ;;
10960 '$CC '*)
10961 # Test whether the compiler implicitly links with -lc since on some
10962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10963 # to ld, don't add -lc before -lgcc.
10964 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10965echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10966 $rm conftest*
10967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10968
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970 (eval $ac_compile) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } 2>conftest.err; then
10974 soname=conftest
10975 lib=conftest
10976 libobjs=conftest.$ac_objext
10977 deplibs=
10978 wl=$lt_prog_compiler_wl_CXX
10979 compiler_flags=-v
10980 linker_flags=-v
10981 verstring=
10982 output_objdir=.
10983 libname=conftest
10984 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10985 allow_undefined_flag_CXX=
10986 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10987 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }
10991 then
10992 archive_cmds_need_lc_CXX=no
10993 else
10994 archive_cmds_need_lc_CXX=yes
10995 fi
10996 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10997 else
10998 cat conftest.err 1>&5
10999 fi
11000 $rm conftest*
11001 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11002echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11003 ;;
11004 esac
11005 fi
11006 ;;
11007esac
11008
11009echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11010echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11011hardcode_action_CXX=
11012if test -n "$hardcode_libdir_flag_spec_CXX" || \
11013 test -n "$runpath_var CXX" || \
11014 test "X$hardcode_automatic_CXX"="Xyes" ; then
11015
11016 # We can hardcode non-existant directories.
11017 if test "$hardcode_direct_CXX" != no &&
11018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11019 # have to relink, otherwise we might link with an installed library
11020 # when we should be linking with a yet-to-be-installed one
11021 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11022 test "$hardcode_minus_L_CXX" != no; then
11023 # Linking always hardcodes the temporary library directory.
11024 hardcode_action_CXX=relink
11025 else
11026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11027 hardcode_action_CXX=immediate
11028 fi
11029else
11030 # We cannot hardcode anything, or else we can only hardcode existing
11031 # directories.
11032 hardcode_action_CXX=unsupported
11033fi
11034echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11035echo "${ECHO_T}$hardcode_action_CXX" >&6
11036
11037if test "$hardcode_action_CXX" = relink; then
11038 # Fast installation is not supported
11039 enable_fast_install=no
11040elif test "$shlibpath_overrides_runpath" = yes ||
11041 test "$enable_shared" = no; then
11042 # Fast installation is not necessary
11043 enable_fast_install=needless
11044fi
11045
11046striplib=
11047old_striplib=
11048echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11049echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11050if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11051 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11052 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11053 echo "$as_me:$LINENO: result: yes" >&5
11054echo "${ECHO_T}yes" >&6
11055else
11056# FIXME - insert some real tests, host_os isn't really good enough
11057 case $host_os in
11058 darwin*)
11059 if test -n "$STRIP" ; then
11060 striplib="$STRIP -x"
11061 echo "$as_me:$LINENO: result: yes" >&5
11062echo "${ECHO_T}yes" >&6
11063 else
11064 echo "$as_me:$LINENO: result: no" >&5
11065echo "${ECHO_T}no" >&6
11066fi
11067 ;;
11068 *)
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071 ;;
11072 esac
11073fi
11074
11075echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11076echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11077library_names_spec=
11078libname_spec='lib$name'
11079soname_spec=
11080shrext=".so"
11081postinstall_cmds=
11082postuninstall_cmds=
11083finish_cmds=
11084finish_eval=
11085shlibpath_var=
11086shlibpath_overrides_runpath=unknown
11087version_type=none
11088dynamic_linker="$host_os ld.so"
11089sys_lib_dlsearch_path_spec="/lib /usr/lib"
11090if test "$GCC" = yes; then
11091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11092 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11093 # if the path contains ";" then we assume it to be the separator
11094 # otherwise default to the standard path separator (i.e. ":") - it is
11095 # assumed that no part of a normal pathname contains ";" but that should
11096 # okay in the real world where ";" in dirpaths is itself problematic.
11097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11098 else
11099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11100 fi
11101else
11102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103fi
11104need_lib_prefix=unknown
11105hardcode_into_libs=no
11106
11107# when you set need_version to no, make sure it does not cause -set_version
11108# flags to be left without arguments
11109need_version=unknown
11110
11111case $host_os in
11112aix3*)
11113 version_type=linux
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11115 shlibpath_var=LIBPATH
11116
11117 # AIX 3 has no versioning support, so we append a major version to the name.
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 ;;
11120
11121aix4* | aix5*)
11122 version_type=linux
11123 need_lib_prefix=no
11124 need_version=no
11125 hardcode_into_libs=yes
11126 if test "$host_cpu" = ia64; then
11127 # AIX 5 supports IA64
11128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 else
11131 # With GCC up to 2.95.x, collect2 would create an import file
11132 # for dependence libraries. The import file would start with
11133 # the line `#! .'. This would cause the generated library to
11134 # depend on `.', always an invalid library. This was fixed in
11135 # development snapshots of GCC prior to 3.0.
11136 case $host_os in
11137 aix4 | aix4.[01] | aix4.[01].*)
11138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11139 echo ' yes '
11140 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11141 :
11142 else
11143 can_build_shared=no
11144 fi
11145 ;;
11146 esac
11147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11148 # soname into executable. Probably we can add versioning support to
11149 # collect2, so additional links can be useful in future.
11150 if test "$aix_use_runtimelinking" = yes; then
11151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11152 # instead of lib<name>.a to let people know that these are not
11153 # typical AIX shared libraries.
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 else
11156 # We preserve .a as extension for shared libraries through AIX4.2
11157 # and later when we are not doing run time linking.
11158 library_names_spec='${libname}${release}.a $libname.a'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 fi
11161 shlibpath_var=LIBPATH
11162 fi
11163 ;;
11164
11165amigaos*)
11166 library_names_spec='$libname.ixlibrary $libname.a'
11167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11168 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'
11169 ;;
11170
11171beos*)
11172 library_names_spec='${libname}${shared_ext}'
11173 dynamic_linker="$host_os ld.so"
11174 shlibpath_var=LIBRARY_PATH
11175 ;;
11176
11177bsdi4*)
11178 version_type=linux
11179 need_version=no
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11185 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11186 # the default ld.so.conf also contains /usr/contrib/lib and
11187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11188 # libtool to hard-code these into programs
11189 ;;
11190
11191cygwin* | mingw* | pw32*)
11192 version_type=windows
11193 shrext=".dll"
11194 need_version=no
11195 need_lib_prefix=no
11196
11197 case $GCC,$host_os in
11198 yes,cygwin* | yes,mingw* | yes,pw32*)
11199 library_names_spec='$libname.dll.a'
11200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11201 postinstall_cmds='base_file=`basename \${file}`~
11202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11203 dldir=$destdir/`dirname \$dlpath`~
11204 test -d \$dldir || mkdir -p \$dldir~
11205 $install_prog $dir/$dlname \$dldir/$dlname'
11206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11207 dlpath=$dir/\$dldll~
11208 $rm \$dlpath'
11209 shlibpath_overrides_runpath=yes
11210
11211 case $host_os in
11212 cygwin*)
11213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11215 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11216 ;;
11217 mingw*)
11218 # MinGW DLLs use traditional 'lib' prefix
11219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11221 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11222 # It is most probably a Windows format PATH printed by
11223 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11224 # path with ; separators, and with drive letters. We can handle the
11225 # drive letters (cygwin fileutils understands them), so leave them,
11226 # especially as we might pass files found there to a mingw objdump,
11227 # which wouldn't understand a cygwinified path. Ahh.
11228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11229 else
11230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11231 fi
11232 ;;
11233 pw32*)
11234 # pw32 DLLs use 'pw' prefix rather than 'lib'
11235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11236 ;;
11237 esac
11238 ;;
11239
11240 *)
11241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11242 ;;
11243 esac
11244 dynamic_linker='Win32 ld.exe'
11245 # FIXME: first we should search . and the directory the executable is in
11246 shlibpath_var=PATH
11247 ;;
11248
11249darwin* | rhapsody*)
11250 dynamic_linker="$host_os dyld"
11251 version_type=darwin
11252 need_lib_prefix=no
11253 need_version=no
11254 # FIXME: Relying on posixy $() will cause problems for
11255 # cross-compilation, but unfortunately the echo tests do not
11256 # yet detect zsh echo's removal of \ escapes.
11257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11258 soname_spec='${libname}${release}${major}$shared_ext'
11259 shlibpath_overrides_runpath=yes
11260 shlibpath_var=DYLD_LIBRARY_PATH
11261 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11263 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11264 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"`
11265 fi
11266 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11267 ;;
11268
11269dgux*)
11270 version_type=linux
11271 need_lib_prefix=no
11272 need_version=no
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 ;;
11277
11278freebsd1*)
11279 dynamic_linker=no
11280 ;;
11281
11282freebsd*)
11283 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11284 version_type=freebsd-$objformat
11285 case $version_type in
11286 freebsd-elf*)
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11288 need_version=no
11289 need_lib_prefix=no
11290 ;;
11291 freebsd-*)
11292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11293 need_version=yes
11294 ;;
11295 esac
11296 shlibpath_var=LD_LIBRARY_PATH
11297 case $host_os in
11298 freebsd2*)
11299 shlibpath_overrides_runpath=yes
11300 ;;
11301 freebsd3.01* | freebsdelf3.01*)
11302 shlibpath_overrides_runpath=yes
11303 hardcode_into_libs=yes
11304 ;;
11305 *) # from 3.2 on
11306 shlibpath_overrides_runpath=no
11307 hardcode_into_libs=yes
11308 ;;
11309 esac
11310 ;;
11311
11312gnu*)
11313 version_type=linux
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11317 soname_spec='${libname}${release}${shared_ext}$major'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 hardcode_into_libs=yes
11320 ;;
11321
11322hpux9* | hpux10* | hpux11*)
11323 # Give a soname corresponding to the major version so that dld.sl refuses to
11324 # link against other versions.
11325 version_type=sunos
11326 need_lib_prefix=no
11327 need_version=no
11328 case "$host_cpu" in
11329 ia64*)
11330 shrext='.so'
11331 hardcode_into_libs=yes
11332 dynamic_linker="$host_os dld.so"
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 if test "X$HPUX_IA64_MODE" = X32; then
11338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11339 else
11340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11341 fi
11342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11343 ;;
11344 hppa*64*)
11345 shrext='.sl'
11346 hardcode_into_libs=yes
11347 dynamic_linker="$host_os dld.sl"
11348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354 ;;
11355 *)
11356 shrext='.sl'
11357 dynamic_linker="$host_os dld.sl"
11358 shlibpath_var=SHLIB_PATH
11359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 ;;
11363 esac
11364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11365 postinstall_cmds='chmod 555 $lib'
11366 ;;
11367
11368irix5* | irix6* | nonstopux*)
11369 case $host_os in
11370 nonstopux*) version_type=nonstopux ;;
11371 *)
11372 if test "$lt_cv_prog_gnu_ld" = yes; then
11373 version_type=linux
11374 else
11375 version_type=irix
11376 fi ;;
11377 esac
11378 need_lib_prefix=no
11379 need_version=no
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11382 case $host_os in
11383 irix5* | nonstopux*)
11384 libsuff= shlibsuff=
11385 ;;
11386 *)
11387 case $LD in # libtool.m4 will add one of these switches to LD
11388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11389 libsuff= shlibsuff= libmagic=32-bit;;
11390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11391 libsuff=32 shlibsuff=N32 libmagic=N32;;
11392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11394 *) libsuff= shlibsuff= libmagic=never-match;;
11395 esac
11396 ;;
11397 esac
11398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11399 shlibpath_overrides_runpath=no
11400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11402 hardcode_into_libs=yes
11403 ;;
11404
11405# No shared lib support for Linux oldld, aout, or coff.
11406linux*oldld* | linux*aout* | linux*coff*)
11407 dynamic_linker=no
11408 ;;
11409
11410# This must be Linux ELF.
11411linux*)
11412 version_type=linux
11413 need_lib_prefix=no
11414 need_version=no
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=no
11420 # This implies no fast_install, which is unacceptable.
11421 # Some rework will be needed to allow for fast_install
11422 # before this can be enabled.
11423 hardcode_into_libs=yes
11424
11425 # We used to test for /lib/ld.so.1 and disable shared libraries on
11426 # powerpc, because MkLinux only supported shared libraries with the
11427 # GNU dynamic linker. Since this was broken with cross compilers,
11428 # most powerpc-linux boxes support dynamic linking these days and
11429 # people can always --disable-shared, the test was removed, and we
11430 # assume the GNU/Linux dynamic linker is in use.
11431 dynamic_linker='GNU/Linux ld.so'
11432 ;;
11433
11434netbsd*)
11435 version_type=sunos
11436 need_lib_prefix=no
11437 need_version=no
11438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441 dynamic_linker='NetBSD (a.out) ld.so'
11442 else
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 dynamic_linker='NetBSD ld.elf_so'
11446 fi
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 ;;
11451
11452newsos6)
11453 version_type=linux
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 ;;
11458
11459nto-qnx)
11460 version_type=linux
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=yes
11467 ;;
11468
11469openbsd*)
11470 version_type=sunos
11471 need_lib_prefix=no
11472 need_version=no
11473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11477 case $host_os in
11478 openbsd2.[89] | openbsd2.[89].*)
11479 shlibpath_overrides_runpath=no
11480 ;;
11481 *)
11482 shlibpath_overrides_runpath=yes
11483 ;;
11484 esac
11485 else
11486 shlibpath_overrides_runpath=yes
11487 fi
11488 ;;
11489
11490os2*)
11491 libname_spec='$name'
11492 shrext=".dll"
11493 need_lib_prefix=no
11494 library_names_spec='$libname${shared_ext} $libname.a'
11495 dynamic_linker='OS/2 ld.exe'
11496 shlibpath_var=LIBPATH
11497 ;;
11498
11499osf3* | osf4* | osf5*)
11500 version_type=osf
11501 need_lib_prefix=no
11502 need_version=no
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 shlibpath_var=LD_LIBRARY_PATH
11506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11508 ;;
11509
11510sco3.2v5*)
11511 version_type=osf
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 ;;
11516
11517solaris*)
11518 version_type=linux
11519 need_lib_prefix=no
11520 need_version=no
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 soname_spec='${libname}${release}${shared_ext}$major'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=yes
11525 hardcode_into_libs=yes
11526 # ldd complains unless libraries are executable
11527 postinstall_cmds='chmod +x $lib'
11528 ;;
11529
11530sunos4*)
11531 version_type=sunos
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 if test "$with_gnu_ld" = yes; then
11537 need_lib_prefix=no
11538 fi
11539 need_version=yes
11540 ;;
11541
11542sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11543 version_type=linux
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 case $host_vendor in
11548 sni)
11549 shlibpath_overrides_runpath=no
11550 need_lib_prefix=no
11551 export_dynamic_flag_spec='${wl}-Blargedynsym'
11552 runpath_var=LD_RUN_PATH
11553 ;;
11554 siemens)
11555 need_lib_prefix=no
11556 ;;
11557 motorola)
11558 need_lib_prefix=no
11559 need_version=no
11560 shlibpath_overrides_runpath=no
11561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11562 ;;
11563 esac
11564 ;;
11565
11566sysv4*MP*)
11567 if test -d /usr/nec ;then
11568 version_type=linux
11569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11570 soname_spec='$libname${shared_ext}.$major'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 fi
11573 ;;
11574
11575uts4*)
11576 version_type=linux
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 ;;
11581
11582*)
11583 dynamic_linker=no
11584 ;;
11585esac
11586echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11587echo "${ECHO_T}$dynamic_linker" >&6
11588test "$dynamic_linker" = no && can_build_shared=no
11589
11590if test "x$enable_dlopen" != xyes; then
11591 enable_dlopen=unknown
11592 enable_dlopen_self=unknown
11593 enable_dlopen_self_static=unknown
11594else
11595 lt_cv_dlopen=no
11596 lt_cv_dlopen_libs=
11597
11598 case $host_os in
11599 beos*)
11600 lt_cv_dlopen="load_add_on"
11601 lt_cv_dlopen_libs=
11602 lt_cv_dlopen_self=yes
11603 ;;
11604
11605 mingw* | pw32*)
11606 lt_cv_dlopen="LoadLibrary"
11607 lt_cv_dlopen_libs=
11608 ;;
11609
11610 cygwin*)
11611 lt_cv_dlopen="dlopen"
11612 lt_cv_dlopen_libs=
11613 ;;
11614
11615 darwin*)
11616 # if libdl is installed we need to link against it
11617 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11618echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11619if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 ac_check_lib_save_LIBS=$LIBS
11623LIBS="-ldl $LIBS"
11624cat >conftest.$ac_ext <<_ACEOF
11625#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011631
11632/* Override any gcc2 internal prototype to avoid an error. */
11633#ifdef __cplusplus
11634extern "C"
11635#endif
11636/* We use char because int might match the return type of a gcc2
11637 builtin and then its argument prototype would still apply. */
11638char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011639int
11640main ()
11641{
11642dlopen ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext conftest$ac_exeext
11648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11649 (eval $ac_link) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_cv_lib_dl_dlopen=yes
11660else
11661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011662sed 's/^/| /' conftest.$ac_ext >&5
11663
John Criswell47fdd832003-07-14 16:52:07 +000011664ac_cv_lib_dl_dlopen=no
11665fi
11666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11667LIBS=$ac_check_lib_save_LIBS
11668fi
11669echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11670echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11671if test $ac_cv_lib_dl_dlopen = yes; then
11672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11673else
11674
11675 lt_cv_dlopen="dyld"
11676 lt_cv_dlopen_libs=
11677 lt_cv_dlopen_self=yes
11678
11679fi
11680
11681 ;;
11682
11683 *)
11684 echo "$as_me:$LINENO: checking for shl_load" >&5
11685echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11686if test "${ac_cv_func_shl_load+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 cat >conftest.$ac_ext <<_ACEOF
11690#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011696/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011697 which can conflict with char shl_load (); below.
11698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11699 <limits.h> exists even on freestanding compilers. */
11700#ifdef __STDC__
11701# include <limits.h>
11702#else
11703# include <assert.h>
11704#endif
John Criswell47fdd832003-07-14 16:52:07 +000011705/* Override any gcc2 internal prototype to avoid an error. */
11706#ifdef __cplusplus
11707extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011708{
John Criswell47fdd832003-07-14 16:52:07 +000011709#endif
11710/* We use char because int might match the return type of a gcc2
11711 builtin and then its argument prototype would still apply. */
11712char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011713/* The GNU C library defines this for functions which it implements
11714 to always fail with ENOSYS. Some functions are actually named
11715 something starting with __ and the normal name is an alias. */
11716#if defined (__stub_shl_load) || defined (__stub___shl_load)
11717choke me
11718#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011719char (*f) () = shl_load;
11720#endif
11721#ifdef __cplusplus
11722}
John Criswell47fdd832003-07-14 16:52:07 +000011723#endif
11724
John Criswell0c38eaf2003-09-10 15:17:25 +000011725int
11726main ()
11727{
11728return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011729 ;
11730 return 0;
11731}
11732_ACEOF
11733rm -f conftest.$ac_objext conftest$ac_exeext
11734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -s conftest$ac_exeext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_func_shl_load=yes
11746else
11747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011748sed 's/^/| /' conftest.$ac_ext >&5
11749
John Criswell47fdd832003-07-14 16:52:07 +000011750ac_cv_func_shl_load=no
11751fi
11752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11753fi
11754echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11755echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11756if test $ac_cv_func_shl_load = yes; then
11757 lt_cv_dlopen="shl_load"
11758else
11759 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11760echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11761if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 ac_check_lib_save_LIBS=$LIBS
11765LIBS="-ldld $LIBS"
11766cat >conftest.$ac_ext <<_ACEOF
11767#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011768/* confdefs.h. */
11769_ACEOF
11770cat confdefs.h >>conftest.$ac_ext
11771cat >>conftest.$ac_ext <<_ACEOF
11772/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011773
11774/* Override any gcc2 internal prototype to avoid an error. */
11775#ifdef __cplusplus
11776extern "C"
11777#endif
11778/* We use char because int might match the return type of a gcc2
11779 builtin and then its argument prototype would still apply. */
11780char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011781int
11782main ()
11783{
11784shl_load ();
11785 ;
11786 return 0;
11787}
11788_ACEOF
11789rm -f conftest.$ac_objext conftest$ac_exeext
11790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791 (eval $ac_link) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_lib_dld_shl_load=yes
11802else
11803 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011804sed 's/^/| /' conftest.$ac_ext >&5
11805
John Criswell47fdd832003-07-14 16:52:07 +000011806ac_cv_lib_dld_shl_load=no
11807fi
11808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11809LIBS=$ac_check_lib_save_LIBS
11810fi
11811echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11812echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11813if test $ac_cv_lib_dld_shl_load = yes; then
11814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11815else
11816 echo "$as_me:$LINENO: checking for dlopen" >&5
11817echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11818if test "${ac_cv_func_dlopen+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
11822#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011828/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011829 which can conflict with char dlopen (); below.
11830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831 <limits.h> exists even on freestanding compilers. */
11832#ifdef __STDC__
11833# include <limits.h>
11834#else
11835# include <assert.h>
11836#endif
John Criswell47fdd832003-07-14 16:52:07 +000011837/* Override any gcc2 internal prototype to avoid an error. */
11838#ifdef __cplusplus
11839extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011840{
John Criswell47fdd832003-07-14 16:52:07 +000011841#endif
11842/* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11844char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011845/* The GNU C library defines this for functions which it implements
11846 to always fail with ENOSYS. Some functions are actually named
11847 something starting with __ and the normal name is an alias. */
11848#if defined (__stub_dlopen) || defined (__stub___dlopen)
11849choke me
11850#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011851char (*f) () = dlopen;
11852#endif
11853#ifdef __cplusplus
11854}
John Criswell47fdd832003-07-14 16:52:07 +000011855#endif
11856
John Criswell0c38eaf2003-09-10 15:17:25 +000011857int
11858main ()
11859{
11860return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011861 ;
11862 return 0;
11863}
11864_ACEOF
11865rm -f conftest.$ac_objext conftest$ac_exeext
11866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867 (eval $ac_link) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -s conftest$ac_exeext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_func_dlopen=yes
11878else
11879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011880sed 's/^/| /' conftest.$ac_ext >&5
11881
John Criswell47fdd832003-07-14 16:52:07 +000011882ac_cv_func_dlopen=no
11883fi
11884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11885fi
11886echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11887echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11888if test $ac_cv_func_dlopen = yes; then
11889 lt_cv_dlopen="dlopen"
11890else
11891 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11892echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11893if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895else
11896 ac_check_lib_save_LIBS=$LIBS
11897LIBS="-ldl $LIBS"
11898cat >conftest.$ac_ext <<_ACEOF
11899#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011905
11906/* Override any gcc2 internal prototype to avoid an error. */
11907#ifdef __cplusplus
11908extern "C"
11909#endif
11910/* We use char because int might match the return type of a gcc2
11911 builtin and then its argument prototype would still apply. */
11912char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011913int
11914main ()
11915{
11916dlopen ();
11917 ;
11918 return 0;
11919}
11920_ACEOF
11921rm -f conftest.$ac_objext conftest$ac_exeext
11922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11923 (eval $ac_link) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_dl_dlopen=yes
11934else
11935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011936sed 's/^/| /' conftest.$ac_ext >&5
11937
John Criswell47fdd832003-07-14 16:52:07 +000011938ac_cv_lib_dl_dlopen=no
11939fi
11940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941LIBS=$ac_check_lib_save_LIBS
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11944echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11945if test $ac_cv_lib_dl_dlopen = yes; then
11946 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11947else
11948 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11949echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11950if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 ac_check_lib_save_LIBS=$LIBS
11954LIBS="-lsvld $LIBS"
11955cat >conftest.$ac_ext <<_ACEOF
11956#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011962
11963/* Override any gcc2 internal prototype to avoid an error. */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011970int
11971main ()
11972{
11973dlopen ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980 (eval $ac_link) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_lib_svld_dlopen=yes
11991else
11992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011993sed 's/^/| /' conftest.$ac_ext >&5
11994
John Criswell47fdd832003-07-14 16:52:07 +000011995ac_cv_lib_svld_dlopen=no
11996fi
11997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12001echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12002if test $ac_cv_lib_svld_dlopen = yes; then
12003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12004else
12005 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12006echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12007if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 ac_check_lib_save_LIBS=$LIBS
12011LIBS="-ldld $LIBS"
12012cat >conftest.$ac_ext <<_ACEOF
12013#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000012014/* confdefs.h. */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012019
12020/* Override any gcc2 internal prototype to avoid an error. */
12021#ifdef __cplusplus
12022extern "C"
12023#endif
12024/* We use char because int might match the return type of a gcc2
12025 builtin and then its argument prototype would still apply. */
12026char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012027int
12028main ()
12029{
12030dld_link ();
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_lib_dld_dld_link=yes
12048else
12049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012050sed 's/^/| /' conftest.$ac_ext >&5
12051
John Criswell47fdd832003-07-14 16:52:07 +000012052ac_cv_lib_dld_dld_link=no
12053fi
12054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12055LIBS=$ac_check_lib_save_LIBS
12056fi
12057echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12058echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12059if test $ac_cv_lib_dld_dld_link = yes; then
12060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12061fi
12062
12063
12064fi
12065
12066
12067fi
12068
12069
12070fi
12071
12072
12073fi
12074
12075
12076fi
12077
12078 ;;
12079 esac
12080
12081 if test "x$lt_cv_dlopen" != xno; then
12082 enable_dlopen=yes
12083 else
12084 enable_dlopen=no
12085 fi
12086
12087 case $lt_cv_dlopen in
12088 dlopen)
12089 save_CPPFLAGS="$CPPFLAGS"
12090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12091
12092 save_LDFLAGS="$LDFLAGS"
12093 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12094
12095 save_LIBS="$LIBS"
12096 LIBS="$lt_cv_dlopen_libs $LIBS"
12097
12098 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12099echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12100if test "${lt_cv_dlopen_self+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 if test "$cross_compiling" = yes; then :
12104 lt_cv_dlopen_self=cross
12105else
12106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107 lt_status=$lt_dlunknown
12108 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000012109#line 12109 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012110#include "confdefs.h"
12111
12112#if HAVE_DLFCN_H
12113#include <dlfcn.h>
12114#endif
12115
12116#include <stdio.h>
12117
12118#ifdef RTLD_GLOBAL
12119# define LT_DLGLOBAL RTLD_GLOBAL
12120#else
12121# ifdef DL_GLOBAL
12122# define LT_DLGLOBAL DL_GLOBAL
12123# else
12124# define LT_DLGLOBAL 0
12125# endif
12126#endif
12127
12128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129 find out it does not work in some platform. */
12130#ifndef LT_DLLAZY_OR_NOW
12131# ifdef RTLD_LAZY
12132# define LT_DLLAZY_OR_NOW RTLD_LAZY
12133# else
12134# ifdef DL_LAZY
12135# define LT_DLLAZY_OR_NOW DL_LAZY
12136# else
12137# ifdef RTLD_NOW
12138# define LT_DLLAZY_OR_NOW RTLD_NOW
12139# else
12140# ifdef DL_NOW
12141# define LT_DLLAZY_OR_NOW DL_NOW
12142# else
12143# define LT_DLLAZY_OR_NOW 0
12144# endif
12145# endif
12146# endif
12147# endif
12148#endif
12149
12150#ifdef __cplusplus
12151extern "C" void exit (int);
12152#endif
12153
12154void fnord() { int i=42;}
12155int main ()
12156{
12157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12158 int status = $lt_dlunknown;
12159
12160 if (self)
12161 {
12162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12164 /* dlclose (self); */
12165 }
12166
12167 exit (status);
12168}
12169EOF
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171 (eval $ac_link) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12175 (./conftest; exit; ) 2>/dev/null
12176 lt_status=$?
12177 case x$lt_status in
12178 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12179 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12180 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12181 esac
12182 else :
12183 # compilation failed
12184 lt_cv_dlopen_self=no
12185 fi
12186fi
12187rm -fr conftest*
12188
12189
12190fi
12191echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12192echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12193
12194 if test "x$lt_cv_dlopen_self" = xyes; then
12195 LDFLAGS="$LDFLAGS $link_static_flag"
12196 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12197echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12198if test "${lt_cv_dlopen_self_static+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201 if test "$cross_compiling" = yes; then :
12202 lt_cv_dlopen_self_static=cross
12203else
12204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12205 lt_status=$lt_dlunknown
12206 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000012207#line 12207 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012208#include "confdefs.h"
12209
12210#if HAVE_DLFCN_H
12211#include <dlfcn.h>
12212#endif
12213
12214#include <stdio.h>
12215
12216#ifdef RTLD_GLOBAL
12217# define LT_DLGLOBAL RTLD_GLOBAL
12218#else
12219# ifdef DL_GLOBAL
12220# define LT_DLGLOBAL DL_GLOBAL
12221# else
12222# define LT_DLGLOBAL 0
12223# endif
12224#endif
12225
12226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12227 find out it does not work in some platform. */
12228#ifndef LT_DLLAZY_OR_NOW
12229# ifdef RTLD_LAZY
12230# define LT_DLLAZY_OR_NOW RTLD_LAZY
12231# else
12232# ifdef DL_LAZY
12233# define LT_DLLAZY_OR_NOW DL_LAZY
12234# else
12235# ifdef RTLD_NOW
12236# define LT_DLLAZY_OR_NOW RTLD_NOW
12237# else
12238# ifdef DL_NOW
12239# define LT_DLLAZY_OR_NOW DL_NOW
12240# else
12241# define LT_DLLAZY_OR_NOW 0
12242# endif
12243# endif
12244# endif
12245# endif
12246#endif
12247
12248#ifdef __cplusplus
12249extern "C" void exit (int);
12250#endif
12251
12252void fnord() { int i=42;}
12253int main ()
12254{
12255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256 int status = $lt_dlunknown;
12257
12258 if (self)
12259 {
12260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12262 /* dlclose (self); */
12263 }
12264
12265 exit (status);
12266}
12267EOF
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12273 (./conftest; exit; ) 2>/dev/null
12274 lt_status=$?
12275 case x$lt_status in
12276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12278 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12279 esac
12280 else :
12281 # compilation failed
12282 lt_cv_dlopen_self_static=no
12283 fi
12284fi
12285rm -fr conftest*
12286
12287
12288fi
12289echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12290echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12291 fi
12292
12293 CPPFLAGS="$save_CPPFLAGS"
12294 LDFLAGS="$save_LDFLAGS"
12295 LIBS="$save_LIBS"
12296 ;;
12297 esac
12298
12299 case $lt_cv_dlopen_self in
12300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12301 *) enable_dlopen_self=unknown ;;
12302 esac
12303
12304 case $lt_cv_dlopen_self_static in
12305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12306 *) enable_dlopen_self_static=unknown ;;
12307 esac
12308fi
12309
12310
12311# The else clause should only fire when bootstrapping the
12312# libtool distribution, otherwise you forgot to ship ltmain.sh
12313# with your package, and you will get complaints that there are
12314# no rules to generate ltmain.sh.
12315if test -f "$ltmain"; then
12316 # See if we are running on zsh, and set the options which allow our commands through
12317 # without removal of \ escapes.
12318 if test -n "${ZSH_VERSION+set}" ; then
12319 setopt NO_GLOB_SUBST
12320 fi
12321 # Now quote all the things that may contain metacharacters while being
12322 # careful not to overquote the AC_SUBSTed values. We take copies of the
12323 # variables and quote the copies for generation of the libtool script.
12324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12327 deplibs_check_method reload_flag reload_cmds need_locks \
12328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12329 lt_cv_sys_global_symbol_to_c_name_address \
12330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12331 old_postinstall_cmds old_postuninstall_cmds \
12332 compiler_CXX \
12333 CC_CXX \
12334 LD_CXX \
12335 lt_prog_compiler_wl_CXX \
12336 lt_prog_compiler_pic_CXX \
12337 lt_prog_compiler_static_CXX \
12338 lt_prog_compiler_no_builtin_flag_CXX \
12339 export_dynamic_flag_spec_CXX \
12340 thread_safe_flag_spec_CXX \
12341 whole_archive_flag_spec_CXX \
12342 enable_shared_with_static_runtimes_CXX \
12343 old_archive_cmds_CXX \
12344 old_archive_from_new_cmds_CXX \
12345 predep_objects_CXX \
12346 postdep_objects_CXX \
12347 predeps_CXX \
12348 postdeps_CXX \
12349 compiler_lib_search_path_CXX \
12350 archive_cmds_CXX \
12351 archive_expsym_cmds_CXX \
12352 postinstall_cmds_CXX \
12353 postuninstall_cmds_CXX \
12354 old_archive_from_expsyms_cmds_CXX \
12355 allow_undefined_flag_CXX \
12356 no_undefined_flag_CXX \
12357 export_symbols_cmds_CXX \
12358 hardcode_libdir_flag_spec_CXX \
12359 hardcode_libdir_flag_spec_ld_CXX \
12360 hardcode_libdir_separator_CXX \
12361 hardcode_automatic_CXX \
12362 module_cmds_CXX \
12363 module_expsym_cmds_CXX \
12364 lt_cv_prog_compiler_c_o_CXX \
12365 exclude_expsyms_CXX \
12366 include_expsyms_CXX; do
12367
12368 case $var in
12369 old_archive_cmds_CXX | \
12370 old_archive_from_new_cmds_CXX | \
12371 archive_cmds_CXX | \
12372 archive_expsym_cmds_CXX | \
12373 module_cmds_CXX | \
12374 module_expsym_cmds_CXX | \
12375 old_archive_from_expsyms_cmds_CXX | \
12376 export_symbols_cmds_CXX | \
12377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12378 postinstall_cmds | postuninstall_cmds | \
12379 old_postinstall_cmds | old_postuninstall_cmds | \
12380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12381 # Double-quote double-evaled strings.
12382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12383 ;;
12384 *)
12385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12386 ;;
12387 esac
12388 done
12389
12390 case $lt_echo in
12391 *'\$0 --fallback-echo"')
12392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12393 ;;
12394 esac
12395
12396cfgfile="$ofile"
12397
12398 cat <<__EOF__ >> "$cfgfile"
12399# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12400
12401# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12402
12403# Shell to use when invoking shell scripts.
12404SHELL=$lt_SHELL
12405
12406# Whether or not to build shared libraries.
12407build_libtool_libs=$enable_shared
12408
12409# Whether or not to build static libraries.
12410build_old_libs=$enable_static
12411
12412# Whether or not to add -lc for building shared libraries.
12413build_libtool_need_lc=$archive_cmds_need_lc_CXX
12414
12415# Whether or not to disallow shared libs when runtime libs are static
12416allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12417
12418# Whether or not to optimize for fast installation.
12419fast_install=$enable_fast_install
12420
12421# The host system.
12422host_alias=$host_alias
12423host=$host
12424
12425# An echo program that does not interpret backslashes.
12426echo=$lt_echo
12427
12428# The archiver.
12429AR=$lt_AR
12430AR_FLAGS=$lt_AR_FLAGS
12431
12432# A C compiler.
12433LTCC=$lt_LTCC
12434
12435# A language-specific compiler.
12436CC=$lt_compiler_CXX
12437
12438# Is the compiler the GNU C compiler?
12439with_gcc=$GCC_CXX
12440
12441# An ERE matcher.
12442EGREP=$lt_EGREP
12443
12444# The linker used to build libraries.
12445LD=$lt_LD_CXX
12446
12447# Whether we need hard or soft links.
12448LN_S=$lt_LN_S
12449
12450# A BSD-compatible nm program.
12451NM=$lt_NM
12452
12453# A symbol stripping program
12454STRIP=$STRIP
12455
12456# Used to examine libraries when file_magic_cmd begins "file"
12457MAGIC_CMD=$MAGIC_CMD
12458
12459# Used on cygwin: DLL creation program.
12460DLLTOOL="$DLLTOOL"
12461
12462# Used on cygwin: object dumper.
12463OBJDUMP="$OBJDUMP"
12464
12465# Used on cygwin: assembler.
12466AS="$AS"
12467
12468# The name of the directory that contains temporary libtool files.
12469objdir=$objdir
12470
12471# How to create reloadable object files.
12472reload_flag=$lt_reload_flag
12473reload_cmds=$lt_reload_cmds
12474
12475# How to pass a linker flag through the compiler.
12476wl=$lt_lt_prog_compiler_wl_CXX
12477
12478# Object file suffix (normally "o").
12479objext="$ac_objext"
12480
12481# Old archive suffix (normally "a").
12482libext="$libext"
12483
12484# Shared library suffix (normally ".so").
12485shrext='$shrext'
12486
12487# Executable file suffix (normally "").
12488exeext="$exeext"
12489
12490# Additional compiler flags for building library objects.
12491pic_flag=$lt_lt_prog_compiler_pic_CXX
12492pic_mode=$pic_mode
12493
12494# What is the maximum length of a command?
12495max_cmd_len=$lt_cv_sys_max_cmd_len
12496
12497# Does compiler simultaneously support -c and -o options?
12498compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12499
12500# Must we lock files when doing compilation ?
12501need_locks=$lt_need_locks
12502
12503# Do we need the lib prefix for modules?
12504need_lib_prefix=$need_lib_prefix
12505
12506# Do we need a version for libraries?
12507need_version=$need_version
12508
12509# Whether dlopen is supported.
12510dlopen_support=$enable_dlopen
12511
12512# Whether dlopen of programs is supported.
12513dlopen_self=$enable_dlopen_self
12514
12515# Whether dlopen of statically linked programs is supported.
12516dlopen_self_static=$enable_dlopen_self_static
12517
12518# Compiler flag to prevent dynamic linking.
12519link_static_flag=$lt_lt_prog_compiler_static_CXX
12520
12521# Compiler flag to turn off builtin functions.
12522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12523
12524# Compiler flag to allow reflexive dlopens.
12525export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12526
12527# Compiler flag to generate shared objects directly from archives.
12528whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12529
12530# Compiler flag to generate thread-safe objects.
12531thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12532
12533# Library versioning type.
12534version_type=$version_type
12535
12536# Format of library name prefix.
12537libname_spec=$lt_libname_spec
12538
12539# List of archive names. First name is the real one, the rest are links.
12540# The last name is the one that the linker finds with -lNAME.
12541library_names_spec=$lt_library_names_spec
12542
12543# The coded name of the library, if different from the real name.
12544soname_spec=$lt_soname_spec
12545
12546# Commands used to build and install an old-style archive.
12547RANLIB=$lt_RANLIB
12548old_archive_cmds=$lt_old_archive_cmds_CXX
12549old_postinstall_cmds=$lt_old_postinstall_cmds
12550old_postuninstall_cmds=$lt_old_postuninstall_cmds
12551
12552# Create an old-style archive from a shared archive.
12553old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12554
12555# Create a temporary old-style archive to link instead of a shared archive.
12556old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12557
12558# Commands used to build and install a shared archive.
12559archive_cmds=$lt_archive_cmds_CXX
12560archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12561postinstall_cmds=$lt_postinstall_cmds
12562postuninstall_cmds=$lt_postuninstall_cmds
12563
12564# Commands used to build a loadable module (assumed same as above if empty)
12565module_cmds=$lt_module_cmds_CXX
12566module_expsym_cmds=$lt_module_expsym_cmds_CXX
12567
12568# Commands to strip libraries.
12569old_striplib=$lt_old_striplib
12570striplib=$lt_striplib
12571
12572# Dependencies to place before the objects being linked to create a
12573# shared library.
12574predep_objects=$lt_predep_objects_CXX
12575
12576# Dependencies to place after the objects being linked to create a
12577# shared library.
12578postdep_objects=$lt_postdep_objects_CXX
12579
12580# Dependencies to place before the objects being linked to create a
12581# shared library.
12582predeps=$lt_predeps_CXX
12583
12584# Dependencies to place after the objects being linked to create a
12585# shared library.
12586postdeps=$lt_postdeps_CXX
12587
12588# The library search path used internally by the compiler when linking
12589# a shared library.
12590compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12591
12592# Method to check whether dependent libraries are shared objects.
12593deplibs_check_method=$lt_deplibs_check_method
12594
12595# Command to use when deplibs_check_method == file_magic.
12596file_magic_cmd=$lt_file_magic_cmd
12597
12598# Flag that allows shared libraries with undefined symbols to be built.
12599allow_undefined_flag=$lt_allow_undefined_flag_CXX
12600
12601# Flag that forces no undefined symbols.
12602no_undefined_flag=$lt_no_undefined_flag_CXX
12603
12604# Commands used to finish a libtool library installation in a directory.
12605finish_cmds=$lt_finish_cmds
12606
12607# Same as above, but a single script fragment to be evaled but not shown.
12608finish_eval=$lt_finish_eval
12609
12610# Take the output of nm and produce a listing of raw symbols and C names.
12611global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12612
12613# Transform the output of nm in a proper C declaration
12614global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12615
12616# Transform the output of nm in a C name address pair
12617global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12618
12619# This is the shared library runtime path variable.
12620runpath_var=$runpath_var
12621
12622# This is the shared library path variable.
12623shlibpath_var=$shlibpath_var
12624
12625# Is shlibpath searched before the hard-coded library search path?
12626shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12627
12628# How to hardcode a shared library path into an executable.
12629hardcode_action=$hardcode_action_CXX
12630
12631# Whether we should hardcode library paths into libraries.
12632hardcode_into_libs=$hardcode_into_libs
12633
12634# Flag to hardcode \$libdir into a binary during linking.
12635# This must work even if \$libdir does not exist.
12636hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12637
12638# If ld is used when linking, flag to hardcode \$libdir into
12639# a binary during linking. This must work even if \$libdir does
12640# not exist.
12641hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12642
12643# Whether we need a single -rpath flag with a separated argument.
12644hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12645
12646# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12647# resulting binary.
12648hardcode_direct=$hardcode_direct_CXX
12649
12650# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12651# resulting binary.
12652hardcode_minus_L=$hardcode_minus_L_CXX
12653
12654# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12655# the resulting binary.
12656hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12657
12658# Set to yes if building a shared library automatically hardcodes DIR into the library
12659# and all subsequent libraries and executables linked against it.
12660hardcode_automatic=$hardcode_automatic_CXX
12661
12662# Variables whose values should be saved in libtool wrapper scripts and
12663# restored at relink time.
12664variables_saved_for_relink="$variables_saved_for_relink"
12665
12666# Whether libtool must link a program against all its dependency libraries.
12667link_all_deplibs=$link_all_deplibs_CXX
12668
12669# Compile-time system search path for libraries
12670sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12671
12672# Run-time system search path for libraries
12673sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12674
12675# Fix the shell variable \$srcfile for the compiler.
12676fix_srcfile_path="$fix_srcfile_path_CXX"
12677
12678# Set to yes if exported symbols are required.
12679always_export_symbols=$always_export_symbols_CXX
12680
12681# The commands to list exported symbols.
12682export_symbols_cmds=$lt_export_symbols_cmds_CXX
12683
12684# The commands to extract the exported symbol list from a shared archive.
12685extract_expsyms_cmds=$lt_extract_expsyms_cmds
12686
12687# Symbols that should not be listed in the preloaded symbols.
12688exclude_expsyms=$lt_exclude_expsyms_CXX
12689
12690# Symbols that must always be exported.
12691include_expsyms=$lt_include_expsyms_CXX
12692
12693# ### END LIBTOOL TAG CONFIG: $tagname
12694
12695__EOF__
12696
12697
12698else
12699 # If there is no Makefile yet, we rely on a make rule to execute
12700 # `config.status --recheck' to rerun these tests and create the
12701 # libtool script then.
12702 test -f Makefile && make "$ltmain"
12703fi
12704
12705
12706ac_ext=c
12707ac_cpp='$CPP $CPPFLAGS'
12708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710ac_compiler_gnu=$ac_cv_c_compiler_gnu
12711
12712CC=$lt_save_CC
12713LDCXX=$LD
12714LD=$lt_save_LD
12715GCC=$lt_save_GCC
12716with_gnu_ldcxx=$with_gnu_ld
12717with_gnu_ld=$lt_save_with_gnu_ld
12718lt_cv_path_LDCXX=$lt_cv_path_LD
12719lt_cv_path_LD=$lt_save_path_LD
12720lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12721lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12722
12723 else
12724 tagname=""
12725 fi
12726 ;;
12727
12728 F77)
12729 if test -n "$F77" && test "X$F77" != "Xno"; then
12730
12731ac_ext=f
12732ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12733ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12734ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12735
12736
12737archive_cmds_need_lc_F77=no
12738allow_undefined_flag_F77=
12739always_export_symbols_F77=no
12740archive_expsym_cmds_F77=
12741export_dynamic_flag_spec_F77=
12742hardcode_direct_F77=no
12743hardcode_libdir_flag_spec_F77=
12744hardcode_libdir_flag_spec_ld_F77=
12745hardcode_libdir_separator_F77=
12746hardcode_minus_L_F77=no
12747hardcode_automatic_F77=no
12748module_cmds_F77=
12749module_expsym_cmds_F77=
12750link_all_deplibs_F77=unknown
12751old_archive_cmds_F77=$old_archive_cmds
12752no_undefined_flag_F77=
12753whole_archive_flag_spec_F77=
12754enable_shared_with_static_runtimes_F77=no
12755
12756# Source file extension for f77 test sources.
12757ac_ext=f
12758
12759# Object file extension for compiled f77 test sources.
12760objext=o
12761objext_F77=$objext
12762
12763# Code to be used in simple compile tests
12764lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12765
12766# Code to be used in simple link tests
12767lt_simple_link_test_code=" program t\n end\n"
12768
12769# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12770
12771# If no C compiler was specified, use CC.
12772LTCC=${LTCC-"$CC"}
12773
12774# Allow CC to be a program name with arguments.
12775compiler=$CC
12776
12777
12778# Allow CC to be a program name with arguments.
12779lt_save_CC="$CC"
12780CC=${F77-"f77"}
12781compiler=$CC
12782compiler_F77=$CC
12783cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12784
12785echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12786echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12787echo "$as_me:$LINENO: result: $can_build_shared" >&5
12788echo "${ECHO_T}$can_build_shared" >&6
12789
12790echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12791echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12792test "$can_build_shared" = "no" && enable_shared=no
12793
12794# On AIX, shared libraries and static libraries use the same namespace, and
12795# are all built from PIC.
12796case "$host_os" in
12797aix3*)
12798 test "$enable_shared" = yes && enable_static=no
12799 if test -n "$RANLIB"; then
12800 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12801 postinstall_cmds='$RANLIB $lib'
12802 fi
12803 ;;
12804aix4*)
12805 test "$enable_shared" = yes && enable_static=no
12806 ;;
12807esac
12808echo "$as_me:$LINENO: result: $enable_shared" >&5
12809echo "${ECHO_T}$enable_shared" >&6
12810
12811echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12812echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12813# Make sure either enable_shared or enable_static is yes.
12814test "$enable_shared" = yes || enable_static=yes
12815echo "$as_me:$LINENO: result: $enable_static" >&5
12816echo "${ECHO_T}$enable_static" >&6
12817
12818test "$ld_shlibs_F77" = no && can_build_shared=no
12819
12820GCC_F77="$G77"
12821LD_F77="$LD"
12822
12823lt_prog_compiler_wl_F77=
12824lt_prog_compiler_pic_F77=
12825lt_prog_compiler_static_F77=
12826
12827echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12828echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12829
12830 if test "$GCC" = yes; then
12831 lt_prog_compiler_wl_F77='-Wl,'
12832 lt_prog_compiler_static_F77='-static'
12833
12834 case $host_os in
12835 aix*)
12836 # All AIX code is PIC.
12837 if test "$host_cpu" = ia64; then
12838 # AIX 5 now supports IA64 processor
12839 lt_prog_compiler_static_F77='-Bstatic'
12840 fi
12841 ;;
12842
12843 amigaos*)
12844 # FIXME: we need at least 68020 code to build shared libraries, but
12845 # adding the `-m68020' flag to GCC prevents building anything better,
12846 # like `-m68040'.
12847 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12848 ;;
12849
12850 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12851 # PIC is the default for these OSes.
12852 ;;
12853
12854 mingw* | pw32* | os2*)
12855 # This hack is so that the source file can tell whether it is being
12856 # built for inclusion in a dll (and should export symbols for example).
12857 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12858 ;;
12859
12860 darwin* | rhapsody*)
12861 # PIC is the default on this platform
12862 # Common symbols not allowed in MH_DYLIB files
12863 lt_prog_compiler_pic_F77='-fno-common'
12864 ;;
12865
12866 msdosdjgpp*)
12867 # Just because we use GCC doesn't mean we suddenly get shared libraries
12868 # on systems that don't support them.
12869 lt_prog_compiler_can_build_shared_F77=no
12870 enable_shared=no
12871 ;;
12872
12873 sysv4*MP*)
12874 if test -d /usr/nec; then
12875 lt_prog_compiler_pic_F77=-Kconform_pic
12876 fi
12877 ;;
12878
12879 hpux*)
12880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12881 # not for PA HP-UX.
12882 case "$host_cpu" in
12883 hppa*64*|ia64*)
12884 # +Z the default
12885 ;;
12886 *)
12887 lt_prog_compiler_pic_F77='-fPIC'
12888 ;;
12889 esac
12890 ;;
12891
12892 *)
12893 lt_prog_compiler_pic_F77='-fPIC'
12894 ;;
12895 esac
12896 else
12897 # PORTME Check for flag to pass linker flags through the system compiler.
12898 case $host_os in
12899 aix*)
12900 lt_prog_compiler_wl_F77='-Wl,'
12901 if test "$host_cpu" = ia64; then
12902 # AIX 5 now supports IA64 processor
12903 lt_prog_compiler_static_F77='-Bstatic'
12904 else
12905 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12906 fi
12907 ;;
12908
12909 mingw* | pw32* | os2*)
12910 # This hack is so that the source file can tell whether it is being
12911 # built for inclusion in a dll (and should export symbols for example).
12912 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12913 ;;
12914
12915 hpux9* | hpux10* | hpux11*)
12916 lt_prog_compiler_wl_F77='-Wl,'
12917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12918 # not for PA HP-UX.
12919 case "$host_cpu" in
12920 hppa*64*|ia64*)
12921 # +Z the default
12922 ;;
12923 *)
12924 lt_prog_compiler_pic_F77='+Z'
12925 ;;
12926 esac
12927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12928 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12929 ;;
12930
12931 irix5* | irix6* | nonstopux*)
12932 lt_prog_compiler_wl_F77='-Wl,'
12933 # PIC (with -KPIC) is the default.
12934 lt_prog_compiler_static_F77='-non_shared'
12935 ;;
12936
12937 newsos6)
12938 lt_prog_compiler_pic_F77='-KPIC'
12939 lt_prog_compiler_static_F77='-Bstatic'
12940 ;;
12941
12942 linux*)
12943 case $CC in
12944 icc|ecc)
12945 lt_prog_compiler_wl_F77='-Wl,'
12946 lt_prog_compiler_pic_F77='-KPIC'
12947 lt_prog_compiler_static_F77='-static'
12948 ;;
12949 ccc)
12950 lt_prog_compiler_wl_F77='-Wl,'
12951 # All Alpha code is PIC.
12952 lt_prog_compiler_static_F77='-non_shared'
12953 ;;
12954 esac
12955 ;;
12956
12957 osf3* | osf4* | osf5*)
12958 lt_prog_compiler_wl_F77='-Wl,'
12959 # All OSF/1 code is PIC.
12960 lt_prog_compiler_static_F77='-non_shared'
12961 ;;
12962
12963 sco3.2v5*)
12964 lt_prog_compiler_pic_F77='-Kpic'
12965 lt_prog_compiler_static_F77='-dn'
12966 ;;
12967
12968 solaris*)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 lt_prog_compiler_pic_F77='-KPIC'
12971 lt_prog_compiler_static_F77='-Bstatic'
12972 ;;
12973
12974 sunos4*)
12975 lt_prog_compiler_wl_F77='-Qoption ld '
12976 lt_prog_compiler_pic_F77='-PIC'
12977 lt_prog_compiler_static_F77='-Bstatic'
12978 ;;
12979
12980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12981 lt_prog_compiler_wl_F77='-Wl,'
12982 lt_prog_compiler_pic_F77='-KPIC'
12983 lt_prog_compiler_static_F77='-Bstatic'
12984 ;;
12985
12986 sysv4*MP*)
12987 if test -d /usr/nec ;then
12988 lt_prog_compiler_pic_F77='-Kconform_pic'
12989 lt_prog_compiler_static_F77='-Bstatic'
12990 fi
12991 ;;
12992
12993 uts4*)
12994 lt_prog_compiler_pic_F77='-pic'
12995 lt_prog_compiler_static_F77='-Bstatic'
12996 ;;
12997
12998 *)
12999 lt_prog_compiler_can_build_shared_F77=no
13000 ;;
13001 esac
13002 fi
13003
13004echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13005echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13006
13007#
13008# Check to make sure the PIC flag actually works.
13009#
13010if test -n "$lt_prog_compiler_pic_F77"; then
13011 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13012echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13013if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015else
13016 lt_prog_compiler_pic_works_F77=no
13017 ac_outfile=conftest.$ac_objext
13018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13019 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13020 # Insert the option either (1) after the last *FLAGS variable, or
13021 # (2) before a word containing "conftest.", or (3) at the end.
13022 # Note that $ac_compile itself does not contain backslashes and begins
13023 # with a dollar sign (not a hyphen), so the echo should work correctly.
13024 # The option is referenced via a variable to avoid confusing sed.
13025 lt_compile=`echo "$ac_compile" | $SED \
13026 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13028 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000013029 (eval echo "\"\$as_me:13029: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013030 (eval "$lt_compile" 2>conftest.err)
13031 ac_status=$?
13032 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000013033 echo "$as_me:13033: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013034 if (exit $ac_status) && test -s "$ac_outfile"; then
13035 # The compiler can only warn and ignore the option if not recognized
13036 # So say no if there are warnings
13037 if test ! -s conftest.err; then
13038 lt_prog_compiler_pic_works_F77=yes
13039 fi
13040 fi
13041 $rm conftest*
13042
13043fi
13044echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13045echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13046
13047if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13048 case $lt_prog_compiler_pic_F77 in
13049 "" | " "*) ;;
13050 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13051 esac
13052else
13053 lt_prog_compiler_pic_F77=
13054 lt_prog_compiler_can_build_shared_F77=no
13055fi
13056
13057fi
13058case "$host_os" in
13059 # For platforms which do not support PIC, -DPIC is meaningless:
13060 *djgpp*)
13061 lt_prog_compiler_pic_F77=
13062 ;;
13063 *)
13064 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13065 ;;
13066esac
13067
13068echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13069echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13070if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 lt_cv_prog_compiler_c_o_F77=no
13074 $rm -r conftest 2>/dev/null
13075 mkdir conftest
13076 cd conftest
13077 mkdir out
13078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13079
13080 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13081 # that will create temporary files in the current directory regardless of
13082 # the output directory. Thus, making CWD read-only will cause this test
13083 # to fail, enabling locking or at least warning the user not to do parallel
13084 # builds.
13085 chmod -w .
13086
13087 lt_compiler_flag="-o out/conftest2.$ac_objext"
13088 # Insert the option either (1) after the last *FLAGS variable, or
13089 # (2) before a word containing "conftest.", or (3) at the end.
13090 # Note that $ac_compile itself does not contain backslashes and begins
13091 # with a dollar sign (not a hyphen), so the echo should work correctly.
13092 lt_compile=`echo "$ac_compile" | $SED \
13093 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13095 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000013096 (eval echo "\"\$as_me:13096: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013097 (eval "$lt_compile" 2>out/conftest.err)
13098 ac_status=$?
13099 cat out/conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000013100 echo "$as_me:13100: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13102 then
13103 # The compiler can only warn and ignore the option if not recognized
13104 # So say no if there are warnings
13105 if test ! -s out/conftest.err; then
13106 lt_cv_prog_compiler_c_o_F77=yes
13107 fi
13108 fi
13109 chmod u+w .
13110 $rm conftest* out/*
13111 rmdir out
13112 cd ..
13113 rmdir conftest
13114 $rm conftest*
13115
13116fi
13117echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13118echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13119
13120
13121hard_links="nottested"
13122if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13123 # do not overwrite the value of need_locks provided by the user
13124 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13125echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13126 hard_links=yes
13127 $rm conftest*
13128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129 touch conftest.a
13130 ln conftest.a conftest.b 2>&5 || hard_links=no
13131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13132 echo "$as_me:$LINENO: result: $hard_links" >&5
13133echo "${ECHO_T}$hard_links" >&6
13134 if test "$hard_links" = no; then
13135 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13136echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13137 need_locks=warn
13138 fi
13139else
13140 need_locks=no
13141fi
13142
13143echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13144echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13145
13146 runpath_var=
13147 allow_undefined_flag_F77=
13148 enable_shared_with_static_runtimes_F77=no
13149 archive_cmds_F77=
13150 archive_expsym_cmds_F77=
13151 old_archive_From_new_cmds_F77=
13152 old_archive_from_expsyms_cmds_F77=
13153 export_dynamic_flag_spec_F77=
13154 whole_archive_flag_spec_F77=
13155 thread_safe_flag_spec_F77=
13156 hardcode_libdir_flag_spec_F77=
13157 hardcode_libdir_flag_spec_ld_F77=
13158 hardcode_libdir_separator_F77=
13159 hardcode_direct_F77=no
13160 hardcode_minus_L_F77=no
13161 hardcode_shlibpath_var_F77=unsupported
13162 link_all_deplibs_F77=unknown
13163 hardcode_automatic_F77=no
13164 module_cmds_F77=
13165 module_expsym_cmds_F77=
13166 always_export_symbols_F77=no
13167 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13168 # include_expsyms should be a list of space-separated symbols to be *always*
13169 # included in the symbol list
13170 include_expsyms_F77=
13171 # exclude_expsyms can be an extended regexp of symbols to exclude
13172 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13173 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13174 # as well as any symbol that contains `d'.
13175 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13176 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13177 # platforms (ab)use it in PIC code, but their linkers get confused if
13178 # the symbol is explicitly referenced. Since portable code cannot
13179 # rely on this symbol name, it's probably fine to never include it in
13180 # preloaded symbol tables.
13181 extract_expsyms_cmds=
13182
13183 case $host_os in
13184 cygwin* | mingw* | pw32*)
13185 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13186 # When not using gcc, we currently assume that we are using
13187 # Microsoft Visual C++.
13188 if test "$GCC" != yes; then
13189 with_gnu_ld=no
13190 fi
13191 ;;
13192 openbsd*)
13193 with_gnu_ld=no
13194 ;;
13195 esac
13196
13197 ld_shlibs_F77=yes
13198 if test "$with_gnu_ld" = yes; then
13199 # If archive_cmds runs LD, not CC, wlarc should be empty
13200 wlarc='${wl}'
13201
13202 # See if GNU ld supports shared libraries.
13203 case $host_os in
13204 aix3* | aix4* | aix5*)
13205 # On AIX/PPC, the GNU linker is very broken
13206 if test "$host_cpu" != ia64; then
13207 ld_shlibs_F77=no
13208 cat <<EOF 1>&2
13209
13210*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13211*** to be unable to reliably create shared libraries on AIX.
13212*** Therefore, libtool is disabling shared libraries support. If you
13213*** really care for shared libraries, you may want to modify your PATH
13214*** so that a non-GNU linker is found, and then restart.
13215
13216EOF
13217 fi
13218 ;;
13219
13220 amigaos*)
13221 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)'
13222 hardcode_libdir_flag_spec_F77='-L$libdir'
13223 hardcode_minus_L_F77=yes
13224
13225 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13226 # that the semantics of dynamic libraries on AmigaOS, at least up
13227 # to version 4, is to share data among multiple programs linked
13228 # with the same dynamic library. Since this doesn't match the
13229 # behavior of shared libraries on other platforms, we can't use
13230 # them.
13231 ld_shlibs_F77=no
13232 ;;
13233
13234 beos*)
13235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13236 allow_undefined_flag_F77=unsupported
13237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13238 # support --undefined. This deserves some investigation. FIXME
13239 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 else
13241 ld_shlibs_F77=no
13242 fi
13243 ;;
13244
13245 cygwin* | mingw* | pw32*)
13246 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13247 # as there is no search path for DLLs.
13248 hardcode_libdir_flag_spec_F77='-L$libdir'
13249 allow_undefined_flag_F77=unsupported
13250 always_export_symbols_F77=no
13251 enable_shared_with_static_runtimes_F77=yes
13252 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13253
13254 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13256 # If the export-symbols file already is a .def file (1st line
13257 # is EXPORTS), use it as is; otherwise, prepend...
13258 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13259 cp $export_symbols $output_objdir/$soname.def;
13260 else
13261 echo EXPORTS > $output_objdir/$soname.def;
13262 cat $export_symbols >> $output_objdir/$soname.def;
13263 fi~
13264 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13265 else
13266 ld_shlibs=no
13267 fi
13268 ;;
13269
13270 netbsd*)
13271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13272 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13273 wlarc=
13274 else
13275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13277 fi
13278 ;;
13279
13280 solaris* | sysv5*)
13281 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13282 ld_shlibs_F77=no
13283 cat <<EOF 1>&2
13284
13285*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13286*** create shared libraries on Solaris systems. Therefore, libtool
13287*** is disabling shared libraries support. We urge you to upgrade GNU
13288*** binutils to release 2.9.1 or newer. Another option is to modify
13289*** your PATH or compiler configuration so that the native linker is
13290*** used, and then restart.
13291
13292EOF
13293 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13296 else
13297 ld_shlibs_F77=no
13298 fi
13299 ;;
13300
13301 sunos4*)
13302 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13303 wlarc=
13304 hardcode_direct_F77=yes
13305 hardcode_shlibpath_var_F77=no
13306 ;;
13307
13308 *)
13309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13310 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13311 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13312 else
13313 ld_shlibs_F77=no
13314 fi
13315 ;;
13316 esac
13317
13318 if test "$ld_shlibs_F77" = yes; then
13319 runpath_var=LD_RUN_PATH
13320 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13321 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13322 # ancient GNU ld didn't support --whole-archive et. al.
13323 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13324 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13325 else
13326 whole_archive_flag_spec_F77=
13327 fi
13328 fi
13329 else
13330 # PORTME fill in a description of your system's linker (not GNU ld)
13331 case $host_os in
13332 aix3*)
13333 allow_undefined_flag_F77=unsupported
13334 always_export_symbols_F77=yes
13335 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'
13336 # Note: this linker hardcodes the directories in LIBPATH if there
13337 # are no directories specified by -L.
13338 hardcode_minus_L_F77=yes
13339 if test "$GCC" = yes && test -z "$link_static_flag"; then
13340 # Neither direct hardcoding nor static linking is supported with a
13341 # broken collect2.
13342 hardcode_direct_F77=unsupported
13343 fi
13344 ;;
13345
13346 aix4* | aix5*)
13347 if test "$host_cpu" = ia64; then
13348 # On IA64, the linker does run time linking by default, so we don't
13349 # have to do anything special.
13350 aix_use_runtimelinking=no
13351 exp_sym_flag='-Bexport'
13352 no_entry_flag=""
13353 else
13354 # If we're using GNU nm, then we don't want the "-C" option.
13355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13357 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'
13358 else
13359 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'
13360 fi
13361 aix_use_runtimelinking=no
13362
13363 # Test if we are trying to use run time linking or normal
13364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13365 # need to do runtime linking.
13366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13367 for ld_flag in $LDFLAGS; do
13368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13369 aix_use_runtimelinking=yes
13370 break
13371 fi
13372 done
13373 esac
13374
13375 exp_sym_flag='-bexport'
13376 no_entry_flag='-bnoentry'
13377 fi
13378
13379 # When large executables or shared objects are built, AIX ld can
13380 # have problems creating the table of contents. If linking a library
13381 # or program results in "error TOC overflow" add -mminimal-toc to
13382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13384
13385 archive_cmds_F77=''
13386 hardcode_direct_F77=yes
13387 hardcode_libdir_separator_F77=':'
13388 link_all_deplibs_F77=yes
13389
13390 if test "$GCC" = yes; then
13391 case $host_os in aix4.012|aix4.012.*)
13392 # We only want to do this on AIX 4.2 and lower, the check
13393 # below for broken collect2 doesn't work under 4.3+
13394 collect2name=`${CC} -print-prog-name=collect2`
13395 if test -f "$collect2name" && \
13396 strings "$collect2name" | grep resolve_lib_name >/dev/null
13397 then
13398 # We have reworked collect2
13399 hardcode_direct_F77=yes
13400 else
13401 # We have old collect2
13402 hardcode_direct_F77=unsupported
13403 # It fails to find uninstalled libraries when the uninstalled
13404 # path is not listed in the libpath. Setting hardcode_minus_L
13405 # to unsupported forces relinking
13406 hardcode_minus_L_F77=yes
13407 hardcode_libdir_flag_spec_F77='-L$libdir'
13408 hardcode_libdir_separator_F77=
13409 fi
13410 esac
13411 shared_flag='-shared'
13412 else
13413 # not using gcc
13414 if test "$host_cpu" = ia64; then
13415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13416 # chokes on -Wl,-G. The following line is correct:
13417 shared_flag='-G'
13418 else
13419 if test "$aix_use_runtimelinking" = yes; then
13420 shared_flag='${wl}-G'
13421 else
13422 shared_flag='${wl}-bM:SRE'
13423 fi
13424 fi
13425 fi
13426
13427 # It seems that -bexpall does not export symbols beginning with
13428 # underscore (_), so it is better to generate a list of symbols to export.
13429 always_export_symbols_F77=yes
13430 if test "$aix_use_runtimelinking" = yes; then
13431 # Warning - without using the other runtime loading flags (-brtl),
13432 # -berok will link without error, but may produce a broken library.
13433 allow_undefined_flag_F77='-berok'
13434 # Determine the default libpath from the value encoded in an empty executable.
13435 cat >conftest.$ac_ext <<_ACEOF
13436 program main
13437
13438 end
13439_ACEOF
13440rm -f conftest.$ac_objext conftest$ac_exeext
13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452
13453aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13454}'`
13455# Check for a 64-bit object if we didn't find anything.
13456if 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; }
13457}'`; fi
13458else
13459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013460sed 's/^/| /' conftest.$ac_ext >&5
13461
John Criswell47fdd832003-07-14 16:52:07 +000013462fi
13463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13465
13466 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13467 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"
13468 else
13469 if test "$host_cpu" = ia64; then
13470 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13471 allow_undefined_flag_F77="-z nodefs"
13472 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"
13473 else
13474 # Determine the default libpath from the value encoded in an empty executable.
13475 cat >conftest.$ac_ext <<_ACEOF
13476 program main
13477
13478 end
13479_ACEOF
13480rm -f conftest.$ac_objext conftest$ac_exeext
13481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -s conftest$ac_exeext'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492
13493aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13494}'`
13495# Check for a 64-bit object if we didn't find anything.
13496if 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; }
13497}'`; fi
13498else
13499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013500sed 's/^/| /' conftest.$ac_ext >&5
13501
John Criswell47fdd832003-07-14 16:52:07 +000013502fi
13503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505
13506 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13507 # Warning - without using the other run time loading flags,
13508 # -berok will link without error, but may produce a broken library.
13509 no_undefined_flag_F77=' ${wl}-bernotok'
13510 allow_undefined_flag_F77=' ${wl}-berok'
13511 # -bexpall does not export symbols beginning with underscore (_)
13512 always_export_symbols_F77=yes
13513 # Exported symbols can be pulled into shared objects from archives
13514 whole_archive_flag_spec_F77=' '
13515 archive_cmds_need_lc_F77=yes
13516 # This is similar to how AIX traditionally builds it's shared libraries.
13517 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'
13518 fi
13519 fi
13520 ;;
13521
13522 amigaos*)
13523 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)'
13524 hardcode_libdir_flag_spec_F77='-L$libdir'
13525 hardcode_minus_L_F77=yes
13526 # see comment about different semantics on the GNU ld section
13527 ld_shlibs_F77=no
13528 ;;
13529
13530 bsdi4*)
13531 export_dynamic_flag_spec_F77=-rdynamic
13532 ;;
13533
13534 cygwin* | mingw* | pw32*)
13535 # When not using gcc, we currently assume that we are using
13536 # Microsoft Visual C++.
13537 # hardcode_libdir_flag_spec is actually meaningless, as there is
13538 # no search path for DLLs.
13539 hardcode_libdir_flag_spec_F77=' '
13540 allow_undefined_flag_F77=unsupported
13541 # Tell ltmain to make .lib files, not .a files.
13542 libext=lib
13543 # Tell ltmain to make .dll files, not .so files.
13544 shrext=".dll"
13545 # FIXME: Setting linknames here is a bad hack.
13546 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13547 # The linker will automatically build a .lib file if we build a DLL.
13548 old_archive_From_new_cmds_F77='true'
13549 # FIXME: Should let the user specify the lib program.
13550 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13551 fix_srcfile_path='`cygpath -w "$srcfile"`'
13552 enable_shared_with_static_runtimes_F77=yes
13553 ;;
13554
13555 darwin* | rhapsody*)
13556 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13557 archive_cmds_need_lc_F77=no
13558 case "$host_os" in
13559 rhapsody* | darwin1.[012])
13560 allow_undefined_flag_F77='-undefined suppress'
13561 ;;
13562 *) # Darwin 1.3 on
13563 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13564 ;;
13565 esac
13566 # FIXME: Relying on posixy $() will cause problems for
13567 # cross-compilation, but unfortunately the echo tests do not
13568 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13569 # `"' quotes if we put them in here... so don't!
13570 lt_int_apple_cc_single_mod=no
13571 output_verbose_link_cmd='echo'
13572 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13573 lt_int_apple_cc_single_mod=yes
13574 fi
13575 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13576 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13577 else
13578 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'
13579 fi
13580 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13582 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13583 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}'
13584 else
13585 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}'
13586 fi
13587 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}'
13588 hardcode_direct_F77=no
13589 hardcode_automatic_F77=yes
13590 hardcode_shlibpath_var_F77=unsupported
13591 whole_archive_flag_spec_F77='-all_load $convenience'
13592 link_all_deplibs_F77=yes
13593 fi
13594 ;;
13595
13596 dgux*)
13597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13598 hardcode_libdir_flag_spec_F77='-L$libdir'
13599 hardcode_shlibpath_var_F77=no
13600 ;;
13601
13602 freebsd1*)
13603 ld_shlibs_F77=no
13604 ;;
13605
13606 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13607 # support. Future versions do this automatically, but an explicit c++rt0.o
13608 # does not break anything, and helps significantly (at the cost of a little
13609 # extra space).
13610 freebsd2.2*)
13611 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13612 hardcode_libdir_flag_spec_F77='-R$libdir'
13613 hardcode_direct_F77=yes
13614 hardcode_shlibpath_var_F77=no
13615 ;;
13616
13617 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13618 freebsd2*)
13619 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_direct_F77=yes
13621 hardcode_minus_L_F77=yes
13622 hardcode_shlibpath_var_F77=no
13623 ;;
13624
13625 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13626 freebsd*)
13627 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13628 hardcode_libdir_flag_spec_F77='-R$libdir'
13629 hardcode_direct_F77=yes
13630 hardcode_shlibpath_var_F77=no
13631 ;;
13632
13633 hpux9*)
13634 if test "$GCC" = yes; then
13635 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'
13636 else
13637 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'
13638 fi
13639 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13640 hardcode_libdir_separator_F77=:
13641 hardcode_direct_F77=yes
13642
13643 # hardcode_minus_L: Not really in the search PATH,
13644 # but as the default location of the library.
13645 hardcode_minus_L_F77=yes
13646 export_dynamic_flag_spec_F77='${wl}-E'
13647 ;;
13648
13649 hpux10* | hpux11*)
13650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13651 case "$host_cpu" in
13652 hppa*64*|ia64*)
13653 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 ;;
13655 *)
13656 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13657 ;;
13658 esac
13659 else
13660 case "$host_cpu" in
13661 hppa*64*|ia64*)
13662 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13663 ;;
13664 *)
13665 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13666 ;;
13667 esac
13668 fi
13669 if test "$with_gnu_ld" = no; then
13670 case "$host_cpu" in
13671 hppa*64*)
13672 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13673 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13674 hardcode_libdir_separator_F77=:
13675 hardcode_direct_F77=no
13676 hardcode_shlibpath_var_F77=no
13677 ;;
13678 ia64*)
13679 hardcode_libdir_flag_spec_F77='-L$libdir'
13680 hardcode_direct_F77=no
13681 hardcode_shlibpath_var_F77=no
13682
13683 # hardcode_minus_L: Not really in the search PATH,
13684 # but as the default location of the library.
13685 hardcode_minus_L_F77=yes
13686 ;;
13687 *)
13688 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13689 hardcode_libdir_separator_F77=:
13690 hardcode_direct_F77=yes
13691 export_dynamic_flag_spec_F77='${wl}-E'
13692
13693 # hardcode_minus_L: Not really in the search PATH,
13694 # but as the default location of the library.
13695 hardcode_minus_L_F77=yes
13696 ;;
13697 esac
13698 fi
13699 ;;
13700
13701 irix5* | irix6* | nonstopux*)
13702 if test "$GCC" = yes; then
13703 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'
13704 else
13705 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'
13706 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13707 fi
13708 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13709 hardcode_libdir_separator_F77=:
13710 link_all_deplibs_F77=yes
13711 ;;
13712
13713 netbsd*)
13714 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13715 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13716 else
13717 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13718 fi
13719 hardcode_libdir_flag_spec_F77='-R$libdir'
13720 hardcode_direct_F77=yes
13721 hardcode_shlibpath_var_F77=no
13722 ;;
13723
13724 newsos6)
13725 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13726 hardcode_direct_F77=yes
13727 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13728 hardcode_libdir_separator_F77=:
13729 hardcode_shlibpath_var_F77=no
13730 ;;
13731
13732 openbsd*)
13733 hardcode_direct_F77=yes
13734 hardcode_shlibpath_var_F77=no
13735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13736 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13737 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13738 export_dynamic_flag_spec_F77='${wl}-E'
13739 else
13740 case $host_os in
13741 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13742 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13743 hardcode_libdir_flag_spec_F77='-R$libdir'
13744 ;;
13745 *)
13746 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13747 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13748 ;;
13749 esac
13750 fi
13751 ;;
13752
13753 os2*)
13754 hardcode_libdir_flag_spec_F77='-L$libdir'
13755 hardcode_minus_L_F77=yes
13756 allow_undefined_flag_F77=unsupported
13757 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'
13758 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13759 ;;
13760
13761 osf3*)
13762 if test "$GCC" = yes; then
13763 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13764 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'
13765 else
13766 allow_undefined_flag_F77=' -expect_unresolved \*'
13767 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'
13768 fi
13769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13770 hardcode_libdir_separator_F77=:
13771 ;;
13772
13773 osf4* | osf5*) # as osf3* with the addition of -msym flag
13774 if test "$GCC" = yes; then
13775 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13776 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'
13777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13778 else
13779 allow_undefined_flag_F77=' -expect_unresolved \*'
13780 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'
13781 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~
13782 $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'
13783
13784 # Both c and cxx compiler support -rpath directly
13785 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13786 fi
13787 hardcode_libdir_separator_F77=:
13788 ;;
13789
13790 sco3.2v5*)
13791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13792 hardcode_shlibpath_var_F77=no
13793 export_dynamic_flag_spec_F77='${wl}-Bexport'
13794 runpath_var=LD_RUN_PATH
13795 hardcode_runpath_var=yes
13796 ;;
13797
13798 solaris*)
13799 no_undefined_flag_F77=' -z text'
13800 if test "$GCC" = yes; then
13801 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13803 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13804 else
13805 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13806 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13808 fi
13809 hardcode_libdir_flag_spec_F77='-R$libdir'
13810 hardcode_shlibpath_var_F77=no
13811 case $host_os in
13812 solaris2.[0-5] | solaris2.[0-5].*) ;;
13813 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13814 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13815 esac
13816 link_all_deplibs_F77=yes
13817 ;;
13818
13819 sunos4*)
13820 if test "x$host_vendor" = xsequent; then
13821 # Use $CC to link under sequent, because it throws in some extra .o
13822 # files that make .init and .fini sections work.
13823 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13824 else
13825 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13826 fi
13827 hardcode_libdir_flag_spec_F77='-L$libdir'
13828 hardcode_direct_F77=yes
13829 hardcode_minus_L_F77=yes
13830 hardcode_shlibpath_var_F77=no
13831 ;;
13832
13833 sysv4)
13834 case $host_vendor in
13835 sni)
13836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13837 hardcode_direct_F77=yes # is this really true???
13838 ;;
13839 siemens)
13840 ## LD is ld it makes a PLAMLIB
13841 ## CC just makes a GrossModule.
13842 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13843 reload_cmds_F77='$CC -r -o $output$reload_objs'
13844 hardcode_direct_F77=no
13845 ;;
13846 motorola)
13847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13848 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13849 ;;
13850 esac
13851 runpath_var='LD_RUN_PATH'
13852 hardcode_shlibpath_var_F77=no
13853 ;;
13854
13855 sysv4.3*)
13856 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13857 hardcode_shlibpath_var_F77=no
13858 export_dynamic_flag_spec_F77='-Bexport'
13859 ;;
13860
13861 sysv4*MP*)
13862 if test -d /usr/nec; then
13863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13864 hardcode_shlibpath_var_F77=no
13865 runpath_var=LD_RUN_PATH
13866 hardcode_runpath_var=yes
13867 ld_shlibs_F77=yes
13868 fi
13869 ;;
13870
13871 sysv4.2uw2*)
13872 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_direct_F77=yes
13874 hardcode_minus_L_F77=no
13875 hardcode_shlibpath_var_F77=no
13876 hardcode_runpath_var=yes
13877 runpath_var=LD_RUN_PATH
13878 ;;
13879
13880 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13881 no_undefined_flag_F77='${wl}-z ${wl}text'
13882 if test "$GCC" = yes; then
13883 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13884 else
13885 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13886 fi
13887 runpath_var='LD_RUN_PATH'
13888 hardcode_shlibpath_var_F77=no
13889 ;;
13890
13891 sysv5*)
13892 no_undefined_flag_F77=' -z text'
13893 # $CC -shared without GNU ld will not create a library from C++
13894 # object files and a static libstdc++, better avoid it by now
13895 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13896 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13897 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13898 hardcode_libdir_flag_spec_F77=
13899 hardcode_shlibpath_var_F77=no
13900 runpath_var='LD_RUN_PATH'
13901 ;;
13902
13903 uts4*)
13904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13905 hardcode_libdir_flag_spec_F77='-L$libdir'
13906 hardcode_shlibpath_var_F77=no
13907 ;;
13908
13909 *)
13910 ld_shlibs_F77=no
13911 ;;
13912 esac
13913 fi
13914
13915echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13916echo "${ECHO_T}$ld_shlibs_F77" >&6
13917test "$ld_shlibs_F77" = no && can_build_shared=no
13918
13919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13920if test "$GCC" = yes; then
13921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13922fi
13923
13924#
13925# Do we need to explicitly link libc?
13926#
13927case "x$archive_cmds_need_lc_F77" in
13928x|xyes)
13929 # Assume -lc should be added
13930 archive_cmds_need_lc_F77=yes
13931
13932 if test "$enable_shared" = yes && test "$GCC" = yes; then
13933 case $archive_cmds_F77 in
13934 *'~'*)
13935 # FIXME: we may have to deal with multi-command sequences.
13936 ;;
13937 '$CC '*)
13938 # Test whether the compiler implicitly links with -lc since on some
13939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13940 # to ld, don't add -lc before -lgcc.
13941 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13943 $rm conftest*
13944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13945
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947 (eval $ac_compile) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } 2>conftest.err; then
13951 soname=conftest
13952 lib=conftest
13953 libobjs=conftest.$ac_objext
13954 deplibs=
13955 wl=$lt_prog_compiler_wl_F77
13956 compiler_flags=-v
13957 linker_flags=-v
13958 verstring=
13959 output_objdir=.
13960 libname=conftest
13961 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13962 allow_undefined_flag_F77=
13963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13964 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }
13968 then
13969 archive_cmds_need_lc_F77=no
13970 else
13971 archive_cmds_need_lc_F77=yes
13972 fi
13973 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13974 else
13975 cat conftest.err 1>&5
13976 fi
13977 $rm conftest*
13978 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13979echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13980 ;;
13981 esac
13982 fi
13983 ;;
13984esac
13985
13986echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13987echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13988hardcode_action_F77=
13989if test -n "$hardcode_libdir_flag_spec_F77" || \
13990 test -n "$runpath_var F77" || \
13991 test "X$hardcode_automatic_F77"="Xyes" ; then
13992
13993 # We can hardcode non-existant directories.
13994 if test "$hardcode_direct_F77" != no &&
13995 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13996 # have to relink, otherwise we might link with an installed library
13997 # when we should be linking with a yet-to-be-installed one
13998 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13999 test "$hardcode_minus_L_F77" != no; then
14000 # Linking always hardcodes the temporary library directory.
14001 hardcode_action_F77=relink
14002 else
14003 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14004 hardcode_action_F77=immediate
14005 fi
14006else
14007 # We cannot hardcode anything, or else we can only hardcode existing
14008 # directories.
14009 hardcode_action_F77=unsupported
14010fi
14011echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14012echo "${ECHO_T}$hardcode_action_F77" >&6
14013
14014if test "$hardcode_action_F77" = relink; then
14015 # Fast installation is not supported
14016 enable_fast_install=no
14017elif test "$shlibpath_overrides_runpath" = yes ||
14018 test "$enable_shared" = no; then
14019 # Fast installation is not necessary
14020 enable_fast_install=needless
14021fi
14022
14023striplib=
14024old_striplib=
14025echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14026echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14027if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14028 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14029 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14030 echo "$as_me:$LINENO: result: yes" >&5
14031echo "${ECHO_T}yes" >&6
14032else
14033# FIXME - insert some real tests, host_os isn't really good enough
14034 case $host_os in
14035 darwin*)
14036 if test -n "$STRIP" ; then
14037 striplib="$STRIP -x"
14038 echo "$as_me:$LINENO: result: yes" >&5
14039echo "${ECHO_T}yes" >&6
14040 else
14041 echo "$as_me:$LINENO: result: no" >&5
14042echo "${ECHO_T}no" >&6
14043fi
14044 ;;
14045 *)
14046 echo "$as_me:$LINENO: result: no" >&5
14047echo "${ECHO_T}no" >&6
14048 ;;
14049 esac
14050fi
14051
14052echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14053echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14054library_names_spec=
14055libname_spec='lib$name'
14056soname_spec=
14057shrext=".so"
14058postinstall_cmds=
14059postuninstall_cmds=
14060finish_cmds=
14061finish_eval=
14062shlibpath_var=
14063shlibpath_overrides_runpath=unknown
14064version_type=none
14065dynamic_linker="$host_os ld.so"
14066sys_lib_dlsearch_path_spec="/lib /usr/lib"
14067if test "$GCC" = yes; then
14068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14069 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14070 # if the path contains ";" then we assume it to be the separator
14071 # otherwise default to the standard path separator (i.e. ":") - it is
14072 # assumed that no part of a normal pathname contains ";" but that should
14073 # okay in the real world where ";" in dirpaths is itself problematic.
14074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14075 else
14076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14077 fi
14078else
14079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14080fi
14081need_lib_prefix=unknown
14082hardcode_into_libs=no
14083
14084# when you set need_version to no, make sure it does not cause -set_version
14085# flags to be left without arguments
14086need_version=unknown
14087
14088case $host_os in
14089aix3*)
14090 version_type=linux
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14092 shlibpath_var=LIBPATH
14093
14094 # AIX 3 has no versioning support, so we append a major version to the name.
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 ;;
14097
14098aix4* | aix5*)
14099 version_type=linux
14100 need_lib_prefix=no
14101 need_version=no
14102 hardcode_into_libs=yes
14103 if test "$host_cpu" = ia64; then
14104 # AIX 5 supports IA64
14105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14106 shlibpath_var=LD_LIBRARY_PATH
14107 else
14108 # With GCC up to 2.95.x, collect2 would create an import file
14109 # for dependence libraries. The import file would start with
14110 # the line `#! .'. This would cause the generated library to
14111 # depend on `.', always an invalid library. This was fixed in
14112 # development snapshots of GCC prior to 3.0.
14113 case $host_os in
14114 aix4 | aix4.[01] | aix4.[01].*)
14115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14116 echo ' yes '
14117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14118 :
14119 else
14120 can_build_shared=no
14121 fi
14122 ;;
14123 esac
14124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14125 # soname into executable. Probably we can add versioning support to
14126 # collect2, so additional links can be useful in future.
14127 if test "$aix_use_runtimelinking" = yes; then
14128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14129 # instead of lib<name>.a to let people know that these are not
14130 # typical AIX shared libraries.
14131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14132 else
14133 # We preserve .a as extension for shared libraries through AIX4.2
14134 # and later when we are not doing run time linking.
14135 library_names_spec='${libname}${release}.a $libname.a'
14136 soname_spec='${libname}${release}${shared_ext}$major'
14137 fi
14138 shlibpath_var=LIBPATH
14139 fi
14140 ;;
14141
14142amigaos*)
14143 library_names_spec='$libname.ixlibrary $libname.a'
14144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14145 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'
14146 ;;
14147
14148beos*)
14149 library_names_spec='${libname}${shared_ext}'
14150 dynamic_linker="$host_os ld.so"
14151 shlibpath_var=LIBRARY_PATH
14152 ;;
14153
14154bsdi4*)
14155 version_type=linux
14156 need_version=no
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14158 soname_spec='${libname}${release}${shared_ext}$major'
14159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14160 shlibpath_var=LD_LIBRARY_PATH
14161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14163 # the default ld.so.conf also contains /usr/contrib/lib and
14164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14165 # libtool to hard-code these into programs
14166 ;;
14167
14168cygwin* | mingw* | pw32*)
14169 version_type=windows
14170 shrext=".dll"
14171 need_version=no
14172 need_lib_prefix=no
14173
14174 case $GCC,$host_os in
14175 yes,cygwin* | yes,mingw* | yes,pw32*)
14176 library_names_spec='$libname.dll.a'
14177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14178 postinstall_cmds='base_file=`basename \${file}`~
14179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14180 dldir=$destdir/`dirname \$dlpath`~
14181 test -d \$dldir || mkdir -p \$dldir~
14182 $install_prog $dir/$dlname \$dldir/$dlname'
14183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14184 dlpath=$dir/\$dldll~
14185 $rm \$dlpath'
14186 shlibpath_overrides_runpath=yes
14187
14188 case $host_os in
14189 cygwin*)
14190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14192 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14193 ;;
14194 mingw*)
14195 # MinGW DLLs use traditional 'lib' prefix
14196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14199 # It is most probably a Windows format PATH printed by
14200 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14201 # path with ; separators, and with drive letters. We can handle the
14202 # drive letters (cygwin fileutils understands them), so leave them,
14203 # especially as we might pass files found there to a mingw objdump,
14204 # which wouldn't understand a cygwinified path. Ahh.
14205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14206 else
14207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14208 fi
14209 ;;
14210 pw32*)
14211 # pw32 DLLs use 'pw' prefix rather than 'lib'
14212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14213 ;;
14214 esac
14215 ;;
14216
14217 *)
14218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14219 ;;
14220 esac
14221 dynamic_linker='Win32 ld.exe'
14222 # FIXME: first we should search . and the directory the executable is in
14223 shlibpath_var=PATH
14224 ;;
14225
14226darwin* | rhapsody*)
14227 dynamic_linker="$host_os dyld"
14228 version_type=darwin
14229 need_lib_prefix=no
14230 need_version=no
14231 # FIXME: Relying on posixy $() will cause problems for
14232 # cross-compilation, but unfortunately the echo tests do not
14233 # yet detect zsh echo's removal of \ escapes.
14234 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14235 soname_spec='${libname}${release}${major}$shared_ext'
14236 shlibpath_overrides_runpath=yes
14237 shlibpath_var=DYLD_LIBRARY_PATH
14238 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14239 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14240 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14241 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"`
14242 fi
14243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14244 ;;
14245
14246dgux*)
14247 version_type=linux
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 ;;
14254
14255freebsd1*)
14256 dynamic_linker=no
14257 ;;
14258
14259freebsd*)
14260 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14261 version_type=freebsd-$objformat
14262 case $version_type in
14263 freebsd-elf*)
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14265 need_version=no
14266 need_lib_prefix=no
14267 ;;
14268 freebsd-*)
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14270 need_version=yes
14271 ;;
14272 esac
14273 shlibpath_var=LD_LIBRARY_PATH
14274 case $host_os in
14275 freebsd2*)
14276 shlibpath_overrides_runpath=yes
14277 ;;
14278 freebsd3.01* | freebsdelf3.01*)
14279 shlibpath_overrides_runpath=yes
14280 hardcode_into_libs=yes
14281 ;;
14282 *) # from 3.2 on
14283 shlibpath_overrides_runpath=no
14284 hardcode_into_libs=yes
14285 ;;
14286 esac
14287 ;;
14288
14289gnu*)
14290 version_type=linux
14291 need_lib_prefix=no
14292 need_version=no
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 hardcode_into_libs=yes
14297 ;;
14298
14299hpux9* | hpux10* | hpux11*)
14300 # Give a soname corresponding to the major version so that dld.sl refuses to
14301 # link against other versions.
14302 version_type=sunos
14303 need_lib_prefix=no
14304 need_version=no
14305 case "$host_cpu" in
14306 ia64*)
14307 shrext='.so'
14308 hardcode_into_libs=yes
14309 dynamic_linker="$host_os dld.so"
14310 shlibpath_var=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 if test "X$HPUX_IA64_MODE" = X32; then
14315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14316 else
14317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14318 fi
14319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14320 ;;
14321 hppa*64*)
14322 shrext='.sl'
14323 hardcode_into_libs=yes
14324 dynamic_linker="$host_os dld.sl"
14325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14328 soname_spec='${libname}${release}${shared_ext}$major'
14329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14331 ;;
14332 *)
14333 shrext='.sl'
14334 dynamic_linker="$host_os dld.sl"
14335 shlibpath_var=SHLIB_PATH
14336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14338 soname_spec='${libname}${release}${shared_ext}$major'
14339 ;;
14340 esac
14341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14342 postinstall_cmds='chmod 555 $lib'
14343 ;;
14344
14345irix5* | irix6* | nonstopux*)
14346 case $host_os in
14347 nonstopux*) version_type=nonstopux ;;
14348 *)
14349 if test "$lt_cv_prog_gnu_ld" = yes; then
14350 version_type=linux
14351 else
14352 version_type=irix
14353 fi ;;
14354 esac
14355 need_lib_prefix=no
14356 need_version=no
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14359 case $host_os in
14360 irix5* | nonstopux*)
14361 libsuff= shlibsuff=
14362 ;;
14363 *)
14364 case $LD in # libtool.m4 will add one of these switches to LD
14365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14366 libsuff= shlibsuff= libmagic=32-bit;;
14367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14368 libsuff=32 shlibsuff=N32 libmagic=N32;;
14369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14371 *) libsuff= shlibsuff= libmagic=never-match;;
14372 esac
14373 ;;
14374 esac
14375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14376 shlibpath_overrides_runpath=no
14377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14379 hardcode_into_libs=yes
14380 ;;
14381
14382# No shared lib support for Linux oldld, aout, or coff.
14383linux*oldld* | linux*aout* | linux*coff*)
14384 dynamic_linker=no
14385 ;;
14386
14387# This must be Linux ELF.
14388linux*)
14389 version_type=linux
14390 need_lib_prefix=no
14391 need_version=no
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14395 shlibpath_var=LD_LIBRARY_PATH
14396 shlibpath_overrides_runpath=no
14397 # This implies no fast_install, which is unacceptable.
14398 # Some rework will be needed to allow for fast_install
14399 # before this can be enabled.
14400 hardcode_into_libs=yes
14401
14402 # We used to test for /lib/ld.so.1 and disable shared libraries on
14403 # powerpc, because MkLinux only supported shared libraries with the
14404 # GNU dynamic linker. Since this was broken with cross compilers,
14405 # most powerpc-linux boxes support dynamic linking these days and
14406 # people can always --disable-shared, the test was removed, and we
14407 # assume the GNU/Linux dynamic linker is in use.
14408 dynamic_linker='GNU/Linux ld.so'
14409 ;;
14410
14411netbsd*)
14412 version_type=sunos
14413 need_lib_prefix=no
14414 need_version=no
14415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 dynamic_linker='NetBSD (a.out) ld.so'
14419 else
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 dynamic_linker='NetBSD ld.elf_so'
14423 fi
14424 shlibpath_var=LD_LIBRARY_PATH
14425 shlibpath_overrides_runpath=yes
14426 hardcode_into_libs=yes
14427 ;;
14428
14429newsos6)
14430 version_type=linux
14431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=yes
14434 ;;
14435
14436nto-qnx)
14437 version_type=linux
14438 need_lib_prefix=no
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 shlibpath_overrides_runpath=yes
14444 ;;
14445
14446openbsd*)
14447 version_type=sunos
14448 need_lib_prefix=no
14449 need_version=no
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14452 shlibpath_var=LD_LIBRARY_PATH
14453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14454 case $host_os in
14455 openbsd2.[89] | openbsd2.[89].*)
14456 shlibpath_overrides_runpath=no
14457 ;;
14458 *)
14459 shlibpath_overrides_runpath=yes
14460 ;;
14461 esac
14462 else
14463 shlibpath_overrides_runpath=yes
14464 fi
14465 ;;
14466
14467os2*)
14468 libname_spec='$name'
14469 shrext=".dll"
14470 need_lib_prefix=no
14471 library_names_spec='$libname${shared_ext} $libname.a'
14472 dynamic_linker='OS/2 ld.exe'
14473 shlibpath_var=LIBPATH
14474 ;;
14475
14476osf3* | osf4* | osf5*)
14477 version_type=osf
14478 need_lib_prefix=no
14479 need_version=no
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14485 ;;
14486
14487sco3.2v5*)
14488 version_type=osf
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 ;;
14493
14494solaris*)
14495 version_type=linux
14496 need_lib_prefix=no
14497 need_version=no
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14500 shlibpath_var=LD_LIBRARY_PATH
14501 shlibpath_overrides_runpath=yes
14502 hardcode_into_libs=yes
14503 # ldd complains unless libraries are executable
14504 postinstall_cmds='chmod +x $lib'
14505 ;;
14506
14507sunos4*)
14508 version_type=sunos
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14511 shlibpath_var=LD_LIBRARY_PATH
14512 shlibpath_overrides_runpath=yes
14513 if test "$with_gnu_ld" = yes; then
14514 need_lib_prefix=no
14515 fi
14516 need_version=yes
14517 ;;
14518
14519sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14520 version_type=linux
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 case $host_vendor in
14525 sni)
14526 shlibpath_overrides_runpath=no
14527 need_lib_prefix=no
14528 export_dynamic_flag_spec='${wl}-Blargedynsym'
14529 runpath_var=LD_RUN_PATH
14530 ;;
14531 siemens)
14532 need_lib_prefix=no
14533 ;;
14534 motorola)
14535 need_lib_prefix=no
14536 need_version=no
14537 shlibpath_overrides_runpath=no
14538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14539 ;;
14540 esac
14541 ;;
14542
14543sysv4*MP*)
14544 if test -d /usr/nec ;then
14545 version_type=linux
14546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14547 soname_spec='$libname${shared_ext}.$major'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 fi
14550 ;;
14551
14552uts4*)
14553 version_type=linux
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 shlibpath_var=LD_LIBRARY_PATH
14557 ;;
14558
14559*)
14560 dynamic_linker=no
14561 ;;
14562esac
14563echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14564echo "${ECHO_T}$dynamic_linker" >&6
14565test "$dynamic_linker" = no && can_build_shared=no
14566
14567
14568# The else clause should only fire when bootstrapping the
14569# libtool distribution, otherwise you forgot to ship ltmain.sh
14570# with your package, and you will get complaints that there are
14571# no rules to generate ltmain.sh.
14572if test -f "$ltmain"; then
14573 # See if we are running on zsh, and set the options which allow our commands through
14574 # without removal of \ escapes.
14575 if test -n "${ZSH_VERSION+set}" ; then
14576 setopt NO_GLOB_SUBST
14577 fi
14578 # Now quote all the things that may contain metacharacters while being
14579 # careful not to overquote the AC_SUBSTed values. We take copies of the
14580 # variables and quote the copies for generation of the libtool script.
14581 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14582 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14583 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14584 deplibs_check_method reload_flag reload_cmds need_locks \
14585 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14586 lt_cv_sys_global_symbol_to_c_name_address \
14587 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14588 old_postinstall_cmds old_postuninstall_cmds \
14589 compiler_F77 \
14590 CC_F77 \
14591 LD_F77 \
14592 lt_prog_compiler_wl_F77 \
14593 lt_prog_compiler_pic_F77 \
14594 lt_prog_compiler_static_F77 \
14595 lt_prog_compiler_no_builtin_flag_F77 \
14596 export_dynamic_flag_spec_F77 \
14597 thread_safe_flag_spec_F77 \
14598 whole_archive_flag_spec_F77 \
14599 enable_shared_with_static_runtimes_F77 \
14600 old_archive_cmds_F77 \
14601 old_archive_from_new_cmds_F77 \
14602 predep_objects_F77 \
14603 postdep_objects_F77 \
14604 predeps_F77 \
14605 postdeps_F77 \
14606 compiler_lib_search_path_F77 \
14607 archive_cmds_F77 \
14608 archive_expsym_cmds_F77 \
14609 postinstall_cmds_F77 \
14610 postuninstall_cmds_F77 \
14611 old_archive_from_expsyms_cmds_F77 \
14612 allow_undefined_flag_F77 \
14613 no_undefined_flag_F77 \
14614 export_symbols_cmds_F77 \
14615 hardcode_libdir_flag_spec_F77 \
14616 hardcode_libdir_flag_spec_ld_F77 \
14617 hardcode_libdir_separator_F77 \
14618 hardcode_automatic_F77 \
14619 module_cmds_F77 \
14620 module_expsym_cmds_F77 \
14621 lt_cv_prog_compiler_c_o_F77 \
14622 exclude_expsyms_F77 \
14623 include_expsyms_F77; do
14624
14625 case $var in
14626 old_archive_cmds_F77 | \
14627 old_archive_from_new_cmds_F77 | \
14628 archive_cmds_F77 | \
14629 archive_expsym_cmds_F77 | \
14630 module_cmds_F77 | \
14631 module_expsym_cmds_F77 | \
14632 old_archive_from_expsyms_cmds_F77 | \
14633 export_symbols_cmds_F77 | \
14634 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14635 postinstall_cmds | postuninstall_cmds | \
14636 old_postinstall_cmds | old_postuninstall_cmds | \
14637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14638 # Double-quote double-evaled strings.
14639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14640 ;;
14641 *)
14642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14643 ;;
14644 esac
14645 done
14646
14647 case $lt_echo in
14648 *'\$0 --fallback-echo"')
14649 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14650 ;;
14651 esac
14652
14653cfgfile="$ofile"
14654
14655 cat <<__EOF__ >> "$cfgfile"
14656# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14657
14658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14659
14660# Shell to use when invoking shell scripts.
14661SHELL=$lt_SHELL
14662
14663# Whether or not to build shared libraries.
14664build_libtool_libs=$enable_shared
14665
14666# Whether or not to build static libraries.
14667build_old_libs=$enable_static
14668
14669# Whether or not to add -lc for building shared libraries.
14670build_libtool_need_lc=$archive_cmds_need_lc_F77
14671
14672# Whether or not to disallow shared libs when runtime libs are static
14673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14674
14675# Whether or not to optimize for fast installation.
14676fast_install=$enable_fast_install
14677
14678# The host system.
14679host_alias=$host_alias
14680host=$host
14681
14682# An echo program that does not interpret backslashes.
14683echo=$lt_echo
14684
14685# The archiver.
14686AR=$lt_AR
14687AR_FLAGS=$lt_AR_FLAGS
14688
14689# A C compiler.
14690LTCC=$lt_LTCC
14691
14692# A language-specific compiler.
14693CC=$lt_compiler_F77
14694
14695# Is the compiler the GNU C compiler?
14696with_gcc=$GCC_F77
14697
14698# An ERE matcher.
14699EGREP=$lt_EGREP
14700
14701# The linker used to build libraries.
14702LD=$lt_LD_F77
14703
14704# Whether we need hard or soft links.
14705LN_S=$lt_LN_S
14706
14707# A BSD-compatible nm program.
14708NM=$lt_NM
14709
14710# A symbol stripping program
14711STRIP=$STRIP
14712
14713# Used to examine libraries when file_magic_cmd begins "file"
14714MAGIC_CMD=$MAGIC_CMD
14715
14716# Used on cygwin: DLL creation program.
14717DLLTOOL="$DLLTOOL"
14718
14719# Used on cygwin: object dumper.
14720OBJDUMP="$OBJDUMP"
14721
14722# Used on cygwin: assembler.
14723AS="$AS"
14724
14725# The name of the directory that contains temporary libtool files.
14726objdir=$objdir
14727
14728# How to create reloadable object files.
14729reload_flag=$lt_reload_flag
14730reload_cmds=$lt_reload_cmds
14731
14732# How to pass a linker flag through the compiler.
14733wl=$lt_lt_prog_compiler_wl_F77
14734
14735# Object file suffix (normally "o").
14736objext="$ac_objext"
14737
14738# Old archive suffix (normally "a").
14739libext="$libext"
14740
14741# Shared library suffix (normally ".so").
14742shrext='$shrext'
14743
14744# Executable file suffix (normally "").
14745exeext="$exeext"
14746
14747# Additional compiler flags for building library objects.
14748pic_flag=$lt_lt_prog_compiler_pic_F77
14749pic_mode=$pic_mode
14750
14751# What is the maximum length of a command?
14752max_cmd_len=$lt_cv_sys_max_cmd_len
14753
14754# Does compiler simultaneously support -c and -o options?
14755compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14756
14757# Must we lock files when doing compilation ?
14758need_locks=$lt_need_locks
14759
14760# Do we need the lib prefix for modules?
14761need_lib_prefix=$need_lib_prefix
14762
14763# Do we need a version for libraries?
14764need_version=$need_version
14765
14766# Whether dlopen is supported.
14767dlopen_support=$enable_dlopen
14768
14769# Whether dlopen of programs is supported.
14770dlopen_self=$enable_dlopen_self
14771
14772# Whether dlopen of statically linked programs is supported.
14773dlopen_self_static=$enable_dlopen_self_static
14774
14775# Compiler flag to prevent dynamic linking.
14776link_static_flag=$lt_lt_prog_compiler_static_F77
14777
14778# Compiler flag to turn off builtin functions.
14779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14780
14781# Compiler flag to allow reflexive dlopens.
14782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14783
14784# Compiler flag to generate shared objects directly from archives.
14785whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14786
14787# Compiler flag to generate thread-safe objects.
14788thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14789
14790# Library versioning type.
14791version_type=$version_type
14792
14793# Format of library name prefix.
14794libname_spec=$lt_libname_spec
14795
14796# List of archive names. First name is the real one, the rest are links.
14797# The last name is the one that the linker finds with -lNAME.
14798library_names_spec=$lt_library_names_spec
14799
14800# The coded name of the library, if different from the real name.
14801soname_spec=$lt_soname_spec
14802
14803# Commands used to build and install an old-style archive.
14804RANLIB=$lt_RANLIB
14805old_archive_cmds=$lt_old_archive_cmds_F77
14806old_postinstall_cmds=$lt_old_postinstall_cmds
14807old_postuninstall_cmds=$lt_old_postuninstall_cmds
14808
14809# Create an old-style archive from a shared archive.
14810old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14811
14812# Create a temporary old-style archive to link instead of a shared archive.
14813old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14814
14815# Commands used to build and install a shared archive.
14816archive_cmds=$lt_archive_cmds_F77
14817archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14818postinstall_cmds=$lt_postinstall_cmds
14819postuninstall_cmds=$lt_postuninstall_cmds
14820
14821# Commands used to build a loadable module (assumed same as above if empty)
14822module_cmds=$lt_module_cmds_F77
14823module_expsym_cmds=$lt_module_expsym_cmds_F77
14824
14825# Commands to strip libraries.
14826old_striplib=$lt_old_striplib
14827striplib=$lt_striplib
14828
14829# Dependencies to place before the objects being linked to create a
14830# shared library.
14831predep_objects=$lt_predep_objects_F77
14832
14833# Dependencies to place after the objects being linked to create a
14834# shared library.
14835postdep_objects=$lt_postdep_objects_F77
14836
14837# Dependencies to place before the objects being linked to create a
14838# shared library.
14839predeps=$lt_predeps_F77
14840
14841# Dependencies to place after the objects being linked to create a
14842# shared library.
14843postdeps=$lt_postdeps_F77
14844
14845# The library search path used internally by the compiler when linking
14846# a shared library.
14847compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14848
14849# Method to check whether dependent libraries are shared objects.
14850deplibs_check_method=$lt_deplibs_check_method
14851
14852# Command to use when deplibs_check_method == file_magic.
14853file_magic_cmd=$lt_file_magic_cmd
14854
14855# Flag that allows shared libraries with undefined symbols to be built.
14856allow_undefined_flag=$lt_allow_undefined_flag_F77
14857
14858# Flag that forces no undefined symbols.
14859no_undefined_flag=$lt_no_undefined_flag_F77
14860
14861# Commands used to finish a libtool library installation in a directory.
14862finish_cmds=$lt_finish_cmds
14863
14864# Same as above, but a single script fragment to be evaled but not shown.
14865finish_eval=$lt_finish_eval
14866
14867# Take the output of nm and produce a listing of raw symbols and C names.
14868global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14869
14870# Transform the output of nm in a proper C declaration
14871global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14872
14873# Transform the output of nm in a C name address pair
14874global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14875
14876# This is the shared library runtime path variable.
14877runpath_var=$runpath_var
14878
14879# This is the shared library path variable.
14880shlibpath_var=$shlibpath_var
14881
14882# Is shlibpath searched before the hard-coded library search path?
14883shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14884
14885# How to hardcode a shared library path into an executable.
14886hardcode_action=$hardcode_action_F77
14887
14888# Whether we should hardcode library paths into libraries.
14889hardcode_into_libs=$hardcode_into_libs
14890
14891# Flag to hardcode \$libdir into a binary during linking.
14892# This must work even if \$libdir does not exist.
14893hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14894
14895# If ld is used when linking, flag to hardcode \$libdir into
14896# a binary during linking. This must work even if \$libdir does
14897# not exist.
14898hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14899
14900# Whether we need a single -rpath flag with a separated argument.
14901hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14902
14903# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14904# resulting binary.
14905hardcode_direct=$hardcode_direct_F77
14906
14907# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14908# resulting binary.
14909hardcode_minus_L=$hardcode_minus_L_F77
14910
14911# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14912# the resulting binary.
14913hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14914
14915# Set to yes if building a shared library automatically hardcodes DIR into the library
14916# and all subsequent libraries and executables linked against it.
14917hardcode_automatic=$hardcode_automatic_F77
14918
14919# Variables whose values should be saved in libtool wrapper scripts and
14920# restored at relink time.
14921variables_saved_for_relink="$variables_saved_for_relink"
14922
14923# Whether libtool must link a program against all its dependency libraries.
14924link_all_deplibs=$link_all_deplibs_F77
14925
14926# Compile-time system search path for libraries
14927sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14928
14929# Run-time system search path for libraries
14930sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14931
14932# Fix the shell variable \$srcfile for the compiler.
14933fix_srcfile_path="$fix_srcfile_path_F77"
14934
14935# Set to yes if exported symbols are required.
14936always_export_symbols=$always_export_symbols_F77
14937
14938# The commands to list exported symbols.
14939export_symbols_cmds=$lt_export_symbols_cmds_F77
14940
14941# The commands to extract the exported symbol list from a shared archive.
14942extract_expsyms_cmds=$lt_extract_expsyms_cmds
14943
14944# Symbols that should not be listed in the preloaded symbols.
14945exclude_expsyms=$lt_exclude_expsyms_F77
14946
14947# Symbols that must always be exported.
14948include_expsyms=$lt_include_expsyms_F77
14949
14950# ### END LIBTOOL TAG CONFIG: $tagname
14951
14952__EOF__
14953
14954
14955else
14956 # If there is no Makefile yet, we rely on a make rule to execute
14957 # `config.status --recheck' to rerun these tests and create the
14958 # libtool script then.
14959 test -f Makefile && make "$ltmain"
14960fi
14961
14962
14963ac_ext=c
14964ac_cpp='$CPP $CPPFLAGS'
14965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14967ac_compiler_gnu=$ac_cv_c_compiler_gnu
14968
14969CC="$lt_save_CC"
14970
14971 else
14972 tagname=""
14973 fi
14974 ;;
14975
14976 GCJ)
14977 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14978
14979
14980
14981# Source file extension for Java test sources.
14982ac_ext=java
14983
14984# Object file extension for compiled Java test sources.
14985objext=o
14986objext_GCJ=$objext
14987
14988# Code to be used in simple compile tests
14989lt_simple_compile_test_code="class foo {}\n"
14990
14991# Code to be used in simple link tests
14992lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14993
14994# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14995
14996# If no C compiler was specified, use CC.
14997LTCC=${LTCC-"$CC"}
14998
14999# Allow CC to be a program name with arguments.
15000compiler=$CC
15001
15002
15003# Allow CC to be a program name with arguments.
15004lt_save_CC="$CC"
15005CC=${GCJ-"gcj"}
15006compiler=$CC
15007compiler_GCJ=$CC
15008
15009# GCJ did not exist at the time GCC didn't implicitly link libc in.
15010archive_cmds_need_lc_GCJ=no
15011
15012## CAVEAT EMPTOR:
15013## There is no encapsulation within the following macros, do not change
15014## the running order or otherwise move them around unless you know exactly
15015## what you are doing...
15016
15017lt_prog_compiler_no_builtin_flag_GCJ=
15018
15019if test "$GCC" = yes; then
15020 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15021
15022 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15023echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15024if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
15027 lt_cv_prog_compiler_rtti_exceptions=no
15028 ac_outfile=conftest.$ac_objext
15029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15030 lt_compiler_flag="-fno-rtti -fno-exceptions"
15031 # Insert the option either (1) after the last *FLAGS variable, or
15032 # (2) before a word containing "conftest.", or (3) at the end.
15033 # Note that $ac_compile itself does not contain backslashes and begins
15034 # with a dollar sign (not a hyphen), so the echo should work correctly.
15035 # The option is referenced via a variable to avoid confusing sed.
15036 lt_compile=`echo "$ac_compile" | $SED \
15037 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015040 (eval echo "\"\$as_me:15040: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015041 (eval "$lt_compile" 2>conftest.err)
15042 ac_status=$?
15043 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015044 echo "$as_me:15044: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015045 if (exit $ac_status) && test -s "$ac_outfile"; then
15046 # The compiler can only warn and ignore the option if not recognized
15047 # So say no if there are warnings
15048 if test ! -s conftest.err; then
15049 lt_cv_prog_compiler_rtti_exceptions=yes
15050 fi
15051 fi
15052 $rm conftest*
15053
15054fi
15055echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15056echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15057
15058if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15059 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15060else
15061 :
15062fi
15063
15064fi
15065
15066lt_prog_compiler_wl_GCJ=
15067lt_prog_compiler_pic_GCJ=
15068lt_prog_compiler_static_GCJ=
15069
15070echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15071echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15072
15073 if test "$GCC" = yes; then
15074 lt_prog_compiler_wl_GCJ='-Wl,'
15075 lt_prog_compiler_static_GCJ='-static'
15076
15077 case $host_os in
15078 aix*)
15079 # All AIX code is PIC.
15080 if test "$host_cpu" = ia64; then
15081 # AIX 5 now supports IA64 processor
15082 lt_prog_compiler_static_GCJ='-Bstatic'
15083 fi
15084 ;;
15085
15086 amigaos*)
15087 # FIXME: we need at least 68020 code to build shared libraries, but
15088 # adding the `-m68020' flag to GCC prevents building anything better,
15089 # like `-m68040'.
15090 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15091 ;;
15092
15093 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15094 # PIC is the default for these OSes.
15095 ;;
15096
15097 mingw* | pw32* | os2*)
15098 # This hack is so that the source file can tell whether it is being
15099 # built for inclusion in a dll (and should export symbols for example).
15100 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15101 ;;
15102
15103 darwin* | rhapsody*)
15104 # PIC is the default on this platform
15105 # Common symbols not allowed in MH_DYLIB files
15106 lt_prog_compiler_pic_GCJ='-fno-common'
15107 ;;
15108
15109 msdosdjgpp*)
15110 # Just because we use GCC doesn't mean we suddenly get shared libraries
15111 # on systems that don't support them.
15112 lt_prog_compiler_can_build_shared_GCJ=no
15113 enable_shared=no
15114 ;;
15115
15116 sysv4*MP*)
15117 if test -d /usr/nec; then
15118 lt_prog_compiler_pic_GCJ=-Kconform_pic
15119 fi
15120 ;;
15121
15122 hpux*)
15123 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15124 # not for PA HP-UX.
15125 case "$host_cpu" in
15126 hppa*64*|ia64*)
15127 # +Z the default
15128 ;;
15129 *)
15130 lt_prog_compiler_pic_GCJ='-fPIC'
15131 ;;
15132 esac
15133 ;;
15134
15135 *)
15136 lt_prog_compiler_pic_GCJ='-fPIC'
15137 ;;
15138 esac
15139 else
15140 # PORTME Check for flag to pass linker flags through the system compiler.
15141 case $host_os in
15142 aix*)
15143 lt_prog_compiler_wl_GCJ='-Wl,'
15144 if test "$host_cpu" = ia64; then
15145 # AIX 5 now supports IA64 processor
15146 lt_prog_compiler_static_GCJ='-Bstatic'
15147 else
15148 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15149 fi
15150 ;;
15151
15152 mingw* | pw32* | os2*)
15153 # This hack is so that the source file can tell whether it is being
15154 # built for inclusion in a dll (and should export symbols for example).
15155 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15156 ;;
15157
15158 hpux9* | hpux10* | hpux11*)
15159 lt_prog_compiler_wl_GCJ='-Wl,'
15160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15161 # not for PA HP-UX.
15162 case "$host_cpu" in
15163 hppa*64*|ia64*)
15164 # +Z the default
15165 ;;
15166 *)
15167 lt_prog_compiler_pic_GCJ='+Z'
15168 ;;
15169 esac
15170 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15171 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15172 ;;
15173
15174 irix5* | irix6* | nonstopux*)
15175 lt_prog_compiler_wl_GCJ='-Wl,'
15176 # PIC (with -KPIC) is the default.
15177 lt_prog_compiler_static_GCJ='-non_shared'
15178 ;;
15179
15180 newsos6)
15181 lt_prog_compiler_pic_GCJ='-KPIC'
15182 lt_prog_compiler_static_GCJ='-Bstatic'
15183 ;;
15184
15185 linux*)
15186 case $CC in
15187 icc|ecc)
15188 lt_prog_compiler_wl_GCJ='-Wl,'
15189 lt_prog_compiler_pic_GCJ='-KPIC'
15190 lt_prog_compiler_static_GCJ='-static'
15191 ;;
15192 ccc)
15193 lt_prog_compiler_wl_GCJ='-Wl,'
15194 # All Alpha code is PIC.
15195 lt_prog_compiler_static_GCJ='-non_shared'
15196 ;;
15197 esac
15198 ;;
15199
15200 osf3* | osf4* | osf5*)
15201 lt_prog_compiler_wl_GCJ='-Wl,'
15202 # All OSF/1 code is PIC.
15203 lt_prog_compiler_static_GCJ='-non_shared'
15204 ;;
15205
15206 sco3.2v5*)
15207 lt_prog_compiler_pic_GCJ='-Kpic'
15208 lt_prog_compiler_static_GCJ='-dn'
15209 ;;
15210
15211 solaris*)
15212 lt_prog_compiler_wl_GCJ='-Wl,'
15213 lt_prog_compiler_pic_GCJ='-KPIC'
15214 lt_prog_compiler_static_GCJ='-Bstatic'
15215 ;;
15216
15217 sunos4*)
15218 lt_prog_compiler_wl_GCJ='-Qoption ld '
15219 lt_prog_compiler_pic_GCJ='-PIC'
15220 lt_prog_compiler_static_GCJ='-Bstatic'
15221 ;;
15222
15223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15224 lt_prog_compiler_wl_GCJ='-Wl,'
15225 lt_prog_compiler_pic_GCJ='-KPIC'
15226 lt_prog_compiler_static_GCJ='-Bstatic'
15227 ;;
15228
15229 sysv4*MP*)
15230 if test -d /usr/nec ;then
15231 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15232 lt_prog_compiler_static_GCJ='-Bstatic'
15233 fi
15234 ;;
15235
15236 uts4*)
15237 lt_prog_compiler_pic_GCJ='-pic'
15238 lt_prog_compiler_static_GCJ='-Bstatic'
15239 ;;
15240
15241 *)
15242 lt_prog_compiler_can_build_shared_GCJ=no
15243 ;;
15244 esac
15245 fi
15246
15247echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15248echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15249
15250#
15251# Check to make sure the PIC flag actually works.
15252#
15253if test -n "$lt_prog_compiler_pic_GCJ"; then
15254 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15255echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15256if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258else
15259 lt_prog_compiler_pic_works_GCJ=no
15260 ac_outfile=conftest.$ac_objext
15261 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15262 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15263 # Insert the option either (1) after the last *FLAGS variable, or
15264 # (2) before a word containing "conftest.", or (3) at the end.
15265 # Note that $ac_compile itself does not contain backslashes and begins
15266 # with a dollar sign (not a hyphen), so the echo should work correctly.
15267 # The option is referenced via a variable to avoid confusing sed.
15268 lt_compile=`echo "$ac_compile" | $SED \
15269 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15271 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015272 (eval echo "\"\$as_me:15272: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015273 (eval "$lt_compile" 2>conftest.err)
15274 ac_status=$?
15275 cat conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015276 echo "$as_me:15276: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015277 if (exit $ac_status) && test -s "$ac_outfile"; then
15278 # The compiler can only warn and ignore the option if not recognized
15279 # So say no if there are warnings
15280 if test ! -s conftest.err; then
15281 lt_prog_compiler_pic_works_GCJ=yes
15282 fi
15283 fi
15284 $rm conftest*
15285
15286fi
15287echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15288echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15289
15290if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15291 case $lt_prog_compiler_pic_GCJ in
15292 "" | " "*) ;;
15293 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15294 esac
15295else
15296 lt_prog_compiler_pic_GCJ=
15297 lt_prog_compiler_can_build_shared_GCJ=no
15298fi
15299
15300fi
15301case "$host_os" in
15302 # For platforms which do not support PIC, -DPIC is meaningless:
15303 *djgpp*)
15304 lt_prog_compiler_pic_GCJ=
15305 ;;
15306 *)
15307 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15308 ;;
15309esac
15310
15311echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15312echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15313if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 lt_cv_prog_compiler_c_o_GCJ=no
15317 $rm -r conftest 2>/dev/null
15318 mkdir conftest
15319 cd conftest
15320 mkdir out
15321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15322
15323 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15324 # that will create temporary files in the current directory regardless of
15325 # the output directory. Thus, making CWD read-only will cause this test
15326 # to fail, enabling locking or at least warning the user not to do parallel
15327 # builds.
15328 chmod -w .
15329
15330 lt_compiler_flag="-o out/conftest2.$ac_objext"
15331 # Insert the option either (1) after the last *FLAGS variable, or
15332 # (2) before a word containing "conftest.", or (3) at the end.
15333 # Note that $ac_compile itself does not contain backslashes and begins
15334 # with a dollar sign (not a hyphen), so the echo should work correctly.
15335 lt_compile=`echo "$ac_compile" | $SED \
15336 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15338 -e 's:$: $lt_compiler_flag:'`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015339 (eval echo "\"\$as_me:15339: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015340 (eval "$lt_compile" 2>out/conftest.err)
15341 ac_status=$?
15342 cat out/conftest.err >&5
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000015343 echo "$as_me:15343: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15345 then
15346 # The compiler can only warn and ignore the option if not recognized
15347 # So say no if there are warnings
15348 if test ! -s out/conftest.err; then
15349 lt_cv_prog_compiler_c_o_GCJ=yes
15350 fi
15351 fi
15352 chmod u+w .
15353 $rm conftest* out/*
15354 rmdir out
15355 cd ..
15356 rmdir conftest
15357 $rm conftest*
15358
15359fi
15360echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15361echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15362
15363
15364hard_links="nottested"
15365if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15366 # do not overwrite the value of need_locks provided by the user
15367 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15368echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15369 hard_links=yes
15370 $rm conftest*
15371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372 touch conftest.a
15373 ln conftest.a conftest.b 2>&5 || hard_links=no
15374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15375 echo "$as_me:$LINENO: result: $hard_links" >&5
15376echo "${ECHO_T}$hard_links" >&6
15377 if test "$hard_links" = no; then
15378 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15379echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15380 need_locks=warn
15381 fi
15382else
15383 need_locks=no
15384fi
15385
15386echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15387echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15388
15389 runpath_var=
15390 allow_undefined_flag_GCJ=
15391 enable_shared_with_static_runtimes_GCJ=no
15392 archive_cmds_GCJ=
15393 archive_expsym_cmds_GCJ=
15394 old_archive_From_new_cmds_GCJ=
15395 old_archive_from_expsyms_cmds_GCJ=
15396 export_dynamic_flag_spec_GCJ=
15397 whole_archive_flag_spec_GCJ=
15398 thread_safe_flag_spec_GCJ=
15399 hardcode_libdir_flag_spec_GCJ=
15400 hardcode_libdir_flag_spec_ld_GCJ=
15401 hardcode_libdir_separator_GCJ=
15402 hardcode_direct_GCJ=no
15403 hardcode_minus_L_GCJ=no
15404 hardcode_shlibpath_var_GCJ=unsupported
15405 link_all_deplibs_GCJ=unknown
15406 hardcode_automatic_GCJ=no
15407 module_cmds_GCJ=
15408 module_expsym_cmds_GCJ=
15409 always_export_symbols_GCJ=no
15410 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15411 # include_expsyms should be a list of space-separated symbols to be *always*
15412 # included in the symbol list
15413 include_expsyms_GCJ=
15414 # exclude_expsyms can be an extended regexp of symbols to exclude
15415 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15416 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15417 # as well as any symbol that contains `d'.
15418 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15419 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15420 # platforms (ab)use it in PIC code, but their linkers get confused if
15421 # the symbol is explicitly referenced. Since portable code cannot
15422 # rely on this symbol name, it's probably fine to never include it in
15423 # preloaded symbol tables.
15424 extract_expsyms_cmds=
15425
15426 case $host_os in
15427 cygwin* | mingw* | pw32*)
15428 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15429 # When not using gcc, we currently assume that we are using
15430 # Microsoft Visual C++.
15431 if test "$GCC" != yes; then
15432 with_gnu_ld=no
15433 fi
15434 ;;
15435 openbsd*)
15436 with_gnu_ld=no
15437 ;;
15438 esac
15439
15440 ld_shlibs_GCJ=yes
15441 if test "$with_gnu_ld" = yes; then
15442 # If archive_cmds runs LD, not CC, wlarc should be empty
15443 wlarc='${wl}'
15444
15445 # See if GNU ld supports shared libraries.
15446 case $host_os in
15447 aix3* | aix4* | aix5*)
15448 # On AIX/PPC, the GNU linker is very broken
15449 if test "$host_cpu" != ia64; then
15450 ld_shlibs_GCJ=no
15451 cat <<EOF 1>&2
15452
15453*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15454*** to be unable to reliably create shared libraries on AIX.
15455*** Therefore, libtool is disabling shared libraries support. If you
15456*** really care for shared libraries, you may want to modify your PATH
15457*** so that a non-GNU linker is found, and then restart.
15458
15459EOF
15460 fi
15461 ;;
15462
15463 amigaos*)
15464 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)'
15465 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15466 hardcode_minus_L_GCJ=yes
15467
15468 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15469 # that the semantics of dynamic libraries on AmigaOS, at least up
15470 # to version 4, is to share data among multiple programs linked
15471 # with the same dynamic library. Since this doesn't match the
15472 # behavior of shared libraries on other platforms, we can't use
15473 # them.
15474 ld_shlibs_GCJ=no
15475 ;;
15476
15477 beos*)
15478 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15479 allow_undefined_flag_GCJ=unsupported
15480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15481 # support --undefined. This deserves some investigation. FIXME
15482 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15483 else
15484 ld_shlibs_GCJ=no
15485 fi
15486 ;;
15487
15488 cygwin* | mingw* | pw32*)
15489 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15490 # as there is no search path for DLLs.
15491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15492 allow_undefined_flag_GCJ=unsupported
15493 always_export_symbols_GCJ=no
15494 enable_shared_with_static_runtimes_GCJ=yes
15495 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15496
15497 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15499 # If the export-symbols file already is a .def file (1st line
15500 # is EXPORTS), use it as is; otherwise, prepend...
15501 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15502 cp $export_symbols $output_objdir/$soname.def;
15503 else
15504 echo EXPORTS > $output_objdir/$soname.def;
15505 cat $export_symbols >> $output_objdir/$soname.def;
15506 fi~
15507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15508 else
15509 ld_shlibs=no
15510 fi
15511 ;;
15512
15513 netbsd*)
15514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15515 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15516 wlarc=
15517 else
15518 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15519 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15520 fi
15521 ;;
15522
15523 solaris* | sysv5*)
15524 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15525 ld_shlibs_GCJ=no
15526 cat <<EOF 1>&2
15527
15528*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15529*** create shared libraries on Solaris systems. Therefore, libtool
15530*** is disabling shared libraries support. We urge you to upgrade GNU
15531*** binutils to release 2.9.1 or newer. Another option is to modify
15532*** your PATH or compiler configuration so that the native linker is
15533*** used, and then restart.
15534
15535EOF
15536 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539 else
15540 ld_shlibs_GCJ=no
15541 fi
15542 ;;
15543
15544 sunos4*)
15545 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 wlarc=
15547 hardcode_direct_GCJ=yes
15548 hardcode_shlibpath_var_GCJ=no
15549 ;;
15550
15551 *)
15552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15555 else
15556 ld_shlibs_GCJ=no
15557 fi
15558 ;;
15559 esac
15560
15561 if test "$ld_shlibs_GCJ" = yes; then
15562 runpath_var=LD_RUN_PATH
15563 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15564 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15565 # ancient GNU ld didn't support --whole-archive et. al.
15566 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15567 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15568 else
15569 whole_archive_flag_spec_GCJ=
15570 fi
15571 fi
15572 else
15573 # PORTME fill in a description of your system's linker (not GNU ld)
15574 case $host_os in
15575 aix3*)
15576 allow_undefined_flag_GCJ=unsupported
15577 always_export_symbols_GCJ=yes
15578 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'
15579 # Note: this linker hardcodes the directories in LIBPATH if there
15580 # are no directories specified by -L.
15581 hardcode_minus_L_GCJ=yes
15582 if test "$GCC" = yes && test -z "$link_static_flag"; then
15583 # Neither direct hardcoding nor static linking is supported with a
15584 # broken collect2.
15585 hardcode_direct_GCJ=unsupported
15586 fi
15587 ;;
15588
15589 aix4* | aix5*)
15590 if test "$host_cpu" = ia64; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15595 no_entry_flag=""
15596 else
15597 # If we're using GNU nm, then we don't want the "-C" option.
15598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600 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'
15601 else
15602 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'
15603 fi
15604 aix_use_runtimelinking=no
15605
15606 # Test if we are trying to use run time linking or normal
15607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608 # need to do runtime linking.
15609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610 for ld_flag in $LDFLAGS; do
15611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612 aix_use_runtimelinking=yes
15613 break
15614 fi
15615 done
15616 esac
15617
15618 exp_sym_flag='-bexport'
15619 no_entry_flag='-bnoentry'
15620 fi
15621
15622 # When large executables or shared objects are built, AIX ld can
15623 # have problems creating the table of contents. If linking a library
15624 # or program results in "error TOC overflow" add -mminimal-toc to
15625 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15626 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15627
15628 archive_cmds_GCJ=''
15629 hardcode_direct_GCJ=yes
15630 hardcode_libdir_separator_GCJ=':'
15631 link_all_deplibs_GCJ=yes
15632
15633 if test "$GCC" = yes; then
15634 case $host_os in aix4.012|aix4.012.*)
15635 # We only want to do this on AIX 4.2 and lower, the check
15636 # below for broken collect2 doesn't work under 4.3+
15637 collect2name=`${CC} -print-prog-name=collect2`
15638 if test -f "$collect2name" && \
15639 strings "$collect2name" | grep resolve_lib_name >/dev/null
15640 then
15641 # We have reworked collect2
15642 hardcode_direct_GCJ=yes
15643 else
15644 # We have old collect2
15645 hardcode_direct_GCJ=unsupported
15646 # It fails to find uninstalled libraries when the uninstalled
15647 # path is not listed in the libpath. Setting hardcode_minus_L
15648 # to unsupported forces relinking
15649 hardcode_minus_L_GCJ=yes
15650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15651 hardcode_libdir_separator_GCJ=
15652 fi
15653 esac
15654 shared_flag='-shared'
15655 else
15656 # not using gcc
15657 if test "$host_cpu" = ia64; then
15658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15659 # chokes on -Wl,-G. The following line is correct:
15660 shared_flag='-G'
15661 else
15662 if test "$aix_use_runtimelinking" = yes; then
15663 shared_flag='${wl}-G'
15664 else
15665 shared_flag='${wl}-bM:SRE'
15666 fi
15667 fi
15668 fi
15669
15670 # It seems that -bexpall does not export symbols beginning with
15671 # underscore (_), so it is better to generate a list of symbols to export.
15672 always_export_symbols_GCJ=yes
15673 if test "$aix_use_runtimelinking" = yes; then
15674 # Warning - without using the other runtime loading flags (-brtl),
15675 # -berok will link without error, but may produce a broken library.
15676 allow_undefined_flag_GCJ='-berok'
15677 # Determine the default libpath from the value encoded in an empty executable.
15678 cat >conftest.$ac_ext <<_ACEOF
15679#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015685
John Criswell47fdd832003-07-14 16:52:07 +000015686int
15687main ()
15688{
15689
15690 ;
15691 return 0;
15692}
15693_ACEOF
15694rm -f conftest.$ac_objext conftest$ac_exeext
15695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706
15707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15708}'`
15709# Check for a 64-bit object if we didn't find anything.
15710if 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; }
15711}'`; fi
15712else
15713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015714sed 's/^/| /' conftest.$ac_ext >&5
15715
John Criswell47fdd832003-07-14 16:52:07 +000015716fi
15717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15719
15720 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15721 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"
15722 else
15723 if test "$host_cpu" = ia64; then
15724 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15725 allow_undefined_flag_GCJ="-z nodefs"
15726 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"
15727 else
15728 # Determine the default libpath from the value encoded in an empty executable.
15729 cat >conftest.$ac_ext <<_ACEOF
15730#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015731/* confdefs.h. */
15732_ACEOF
15733cat confdefs.h >>conftest.$ac_ext
15734cat >>conftest.$ac_ext <<_ACEOF
15735/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015736
John Criswell47fdd832003-07-14 16:52:07 +000015737int
15738main ()
15739{
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext conftest$ac_exeext
15746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest$ac_exeext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757
15758aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15759}'`
15760# Check for a 64-bit object if we didn't find anything.
15761if 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; }
15762}'`; fi
15763else
15764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015765sed 's/^/| /' conftest.$ac_ext >&5
15766
John Criswell47fdd832003-07-14 16:52:07 +000015767fi
15768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15770
15771 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15772 # Warning - without using the other run time loading flags,
15773 # -berok will link without error, but may produce a broken library.
15774 no_undefined_flag_GCJ=' ${wl}-bernotok'
15775 allow_undefined_flag_GCJ=' ${wl}-berok'
15776 # -bexpall does not export symbols beginning with underscore (_)
15777 always_export_symbols_GCJ=yes
15778 # Exported symbols can be pulled into shared objects from archives
15779 whole_archive_flag_spec_GCJ=' '
15780 archive_cmds_need_lc_GCJ=yes
15781 # This is similar to how AIX traditionally builds it's shared libraries.
15782 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'
15783 fi
15784 fi
15785 ;;
15786
15787 amigaos*)
15788 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)'
15789 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15790 hardcode_minus_L_GCJ=yes
15791 # see comment about different semantics on the GNU ld section
15792 ld_shlibs_GCJ=no
15793 ;;
15794
15795 bsdi4*)
15796 export_dynamic_flag_spec_GCJ=-rdynamic
15797 ;;
15798
15799 cygwin* | mingw* | pw32*)
15800 # When not using gcc, we currently assume that we are using
15801 # Microsoft Visual C++.
15802 # hardcode_libdir_flag_spec is actually meaningless, as there is
15803 # no search path for DLLs.
15804 hardcode_libdir_flag_spec_GCJ=' '
15805 allow_undefined_flag_GCJ=unsupported
15806 # Tell ltmain to make .lib files, not .a files.
15807 libext=lib
15808 # Tell ltmain to make .dll files, not .so files.
15809 shrext=".dll"
15810 # FIXME: Setting linknames here is a bad hack.
15811 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15812 # The linker will automatically build a .lib file if we build a DLL.
15813 old_archive_From_new_cmds_GCJ='true'
15814 # FIXME: Should let the user specify the lib program.
15815 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15816 fix_srcfile_path='`cygpath -w "$srcfile"`'
15817 enable_shared_with_static_runtimes_GCJ=yes
15818 ;;
15819
15820 darwin* | rhapsody*)
15821 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15822 archive_cmds_need_lc_GCJ=no
15823 case "$host_os" in
15824 rhapsody* | darwin1.[012])
15825 allow_undefined_flag_GCJ='-undefined suppress'
15826 ;;
15827 *) # Darwin 1.3 on
15828 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15829 ;;
15830 esac
15831 # FIXME: Relying on posixy $() will cause problems for
15832 # cross-compilation, but unfortunately the echo tests do not
15833 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15834 # `"' quotes if we put them in here... so don't!
15835 lt_int_apple_cc_single_mod=no
15836 output_verbose_link_cmd='echo'
15837 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15838 lt_int_apple_cc_single_mod=yes
15839 fi
15840 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15841 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15842 else
15843 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'
15844 fi
15845 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15846 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15847 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15848 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}'
15849 else
15850 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}'
15851 fi
15852 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}'
15853 hardcode_direct_GCJ=no
15854 hardcode_automatic_GCJ=yes
15855 hardcode_shlibpath_var_GCJ=unsupported
15856 whole_archive_flag_spec_GCJ='-all_load $convenience'
15857 link_all_deplibs_GCJ=yes
15858 fi
15859 ;;
15860
15861 dgux*)
15862 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15864 hardcode_shlibpath_var_GCJ=no
15865 ;;
15866
15867 freebsd1*)
15868 ld_shlibs_GCJ=no
15869 ;;
15870
15871 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15872 # support. Future versions do this automatically, but an explicit c++rt0.o
15873 # does not break anything, and helps significantly (at the cost of a little
15874 # extra space).
15875 freebsd2.2*)
15876 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15878 hardcode_direct_GCJ=yes
15879 hardcode_shlibpath_var_GCJ=no
15880 ;;
15881
15882 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15883 freebsd2*)
15884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15885 hardcode_direct_GCJ=yes
15886 hardcode_minus_L_GCJ=yes
15887 hardcode_shlibpath_var_GCJ=no
15888 ;;
15889
15890 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15891 freebsd*)
15892 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15893 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15894 hardcode_direct_GCJ=yes
15895 hardcode_shlibpath_var_GCJ=no
15896 ;;
15897
15898 hpux9*)
15899 if test "$GCC" = yes; then
15900 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'
15901 else
15902 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'
15903 fi
15904 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15905 hardcode_libdir_separator_GCJ=:
15906 hardcode_direct_GCJ=yes
15907
15908 # hardcode_minus_L: Not really in the search PATH,
15909 # but as the default location of the library.
15910 hardcode_minus_L_GCJ=yes
15911 export_dynamic_flag_spec_GCJ='${wl}-E'
15912 ;;
15913
15914 hpux10* | hpux11*)
15915 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15916 case "$host_cpu" in
15917 hppa*64*|ia64*)
15918 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15919 ;;
15920 *)
15921 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15922 ;;
15923 esac
15924 else
15925 case "$host_cpu" in
15926 hppa*64*|ia64*)
15927 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15928 ;;
15929 *)
15930 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15931 ;;
15932 esac
15933 fi
15934 if test "$with_gnu_ld" = no; then
15935 case "$host_cpu" in
15936 hppa*64*)
15937 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15938 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15939 hardcode_libdir_separator_GCJ=:
15940 hardcode_direct_GCJ=no
15941 hardcode_shlibpath_var_GCJ=no
15942 ;;
15943 ia64*)
15944 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15945 hardcode_direct_GCJ=no
15946 hardcode_shlibpath_var_GCJ=no
15947
15948 # hardcode_minus_L: Not really in the search PATH,
15949 # but as the default location of the library.
15950 hardcode_minus_L_GCJ=yes
15951 ;;
15952 *)
15953 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15954 hardcode_libdir_separator_GCJ=:
15955 hardcode_direct_GCJ=yes
15956 export_dynamic_flag_spec_GCJ='${wl}-E'
15957
15958 # hardcode_minus_L: Not really in the search PATH,
15959 # but as the default location of the library.
15960 hardcode_minus_L_GCJ=yes
15961 ;;
15962 esac
15963 fi
15964 ;;
15965
15966 irix5* | irix6* | nonstopux*)
15967 if test "$GCC" = yes; then
15968 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'
15969 else
15970 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'
15971 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15972 fi
15973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15974 hardcode_libdir_separator_GCJ=:
15975 link_all_deplibs_GCJ=yes
15976 ;;
15977
15978 netbsd*)
15979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15981 else
15982 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15983 fi
15984 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15985 hardcode_direct_GCJ=yes
15986 hardcode_shlibpath_var_GCJ=no
15987 ;;
15988
15989 newsos6)
15990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15991 hardcode_direct_GCJ=yes
15992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15993 hardcode_libdir_separator_GCJ=:
15994 hardcode_shlibpath_var_GCJ=no
15995 ;;
15996
15997 openbsd*)
15998 hardcode_direct_GCJ=yes
15999 hardcode_shlibpath_var_GCJ=no
16000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16001 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16003 export_dynamic_flag_spec_GCJ='${wl}-E'
16004 else
16005 case $host_os in
16006 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16007 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16008 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16009 ;;
16010 *)
16011 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16013 ;;
16014 esac
16015 fi
16016 ;;
16017
16018 os2*)
16019 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020 hardcode_minus_L_GCJ=yes
16021 allow_undefined_flag_GCJ=unsupported
16022 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'
16023 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16024 ;;
16025
16026 osf3*)
16027 if test "$GCC" = yes; then
16028 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16029 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'
16030 else
16031 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16032 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'
16033 fi
16034 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16035 hardcode_libdir_separator_GCJ=:
16036 ;;
16037
16038 osf4* | osf5*) # as osf3* with the addition of -msym flag
16039 if test "$GCC" = yes; then
16040 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16041 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'
16042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16043 else
16044 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16045 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'
16046 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~
16047 $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'
16048
16049 # Both c and cxx compiler support -rpath directly
16050 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16051 fi
16052 hardcode_libdir_separator_GCJ=:
16053 ;;
16054
16055 sco3.2v5*)
16056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16057 hardcode_shlibpath_var_GCJ=no
16058 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16059 runpath_var=LD_RUN_PATH
16060 hardcode_runpath_var=yes
16061 ;;
16062
16063 solaris*)
16064 no_undefined_flag_GCJ=' -z text'
16065 if test "$GCC" = yes; then
16066 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16067 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16068 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16069 else
16070 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16071 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16072 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16073 fi
16074 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16075 hardcode_shlibpath_var_GCJ=no
16076 case $host_os in
16077 solaris2.[0-5] | solaris2.[0-5].*) ;;
16078 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16079 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16080 esac
16081 link_all_deplibs_GCJ=yes
16082 ;;
16083
16084 sunos4*)
16085 if test "x$host_vendor" = xsequent; then
16086 # Use $CC to link under sequent, because it throws in some extra .o
16087 # files that make .init and .fini sections work.
16088 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16089 else
16090 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16091 fi
16092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16093 hardcode_direct_GCJ=yes
16094 hardcode_minus_L_GCJ=yes
16095 hardcode_shlibpath_var_GCJ=no
16096 ;;
16097
16098 sysv4)
16099 case $host_vendor in
16100 sni)
16101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16102 hardcode_direct_GCJ=yes # is this really true???
16103 ;;
16104 siemens)
16105 ## LD is ld it makes a PLAMLIB
16106 ## CC just makes a GrossModule.
16107 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16108 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16109 hardcode_direct_GCJ=no
16110 ;;
16111 motorola)
16112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16113 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16114 ;;
16115 esac
16116 runpath_var='LD_RUN_PATH'
16117 hardcode_shlibpath_var_GCJ=no
16118 ;;
16119
16120 sysv4.3*)
16121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var_GCJ=no
16123 export_dynamic_flag_spec_GCJ='-Bexport'
16124 ;;
16125
16126 sysv4*MP*)
16127 if test -d /usr/nec; then
16128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16129 hardcode_shlibpath_var_GCJ=no
16130 runpath_var=LD_RUN_PATH
16131 hardcode_runpath_var=yes
16132 ld_shlibs_GCJ=yes
16133 fi
16134 ;;
16135
16136 sysv4.2uw2*)
16137 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_direct_GCJ=yes
16139 hardcode_minus_L_GCJ=no
16140 hardcode_shlibpath_var_GCJ=no
16141 hardcode_runpath_var=yes
16142 runpath_var=LD_RUN_PATH
16143 ;;
16144
16145 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16146 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16147 if test "$GCC" = yes; then
16148 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16149 else
16150 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16151 fi
16152 runpath_var='LD_RUN_PATH'
16153 hardcode_shlibpath_var_GCJ=no
16154 ;;
16155
16156 sysv5*)
16157 no_undefined_flag_GCJ=' -z text'
16158 # $CC -shared without GNU ld will not create a library from C++
16159 # object files and a static libstdc++, better avoid it by now
16160 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16161 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16162 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16163 hardcode_libdir_flag_spec_GCJ=
16164 hardcode_shlibpath_var_GCJ=no
16165 runpath_var='LD_RUN_PATH'
16166 ;;
16167
16168 uts4*)
16169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16171 hardcode_shlibpath_var_GCJ=no
16172 ;;
16173
16174 *)
16175 ld_shlibs_GCJ=no
16176 ;;
16177 esac
16178 fi
16179
16180echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16181echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16182test "$ld_shlibs_GCJ" = no && can_build_shared=no
16183
16184variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16185if test "$GCC" = yes; then
16186 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16187fi
16188
16189#
16190# Do we need to explicitly link libc?
16191#
16192case "x$archive_cmds_need_lc_GCJ" in
16193x|xyes)
16194 # Assume -lc should be added
16195 archive_cmds_need_lc_GCJ=yes
16196
16197 if test "$enable_shared" = yes && test "$GCC" = yes; then
16198 case $archive_cmds_GCJ in
16199 *'~'*)
16200 # FIXME: we may have to deal with multi-command sequences.
16201 ;;
16202 '$CC '*)
16203 # Test whether the compiler implicitly links with -lc since on some
16204 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16205 # to ld, don't add -lc before -lgcc.
16206 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16207echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16208 $rm conftest*
16209 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16210
16211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16212 (eval $ac_compile) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } 2>conftest.err; then
16216 soname=conftest
16217 lib=conftest
16218 libobjs=conftest.$ac_objext
16219 deplibs=
16220 wl=$lt_prog_compiler_wl_GCJ
16221 compiler_flags=-v
16222 linker_flags=-v
16223 verstring=
16224 output_objdir=.
16225 libname=conftest
16226 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16227 allow_undefined_flag_GCJ=
16228 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16229 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }
16233 then
16234 archive_cmds_need_lc_GCJ=no
16235 else
16236 archive_cmds_need_lc_GCJ=yes
16237 fi
16238 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16239 else
16240 cat conftest.err 1>&5
16241 fi
16242 $rm conftest*
16243 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16244echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16245 ;;
16246 esac
16247 fi
16248 ;;
16249esac
16250
16251echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16252echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16253hardcode_action_GCJ=
16254if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16255 test -n "$runpath_var GCJ" || \
16256 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16257
16258 # We can hardcode non-existant directories.
16259 if test "$hardcode_direct_GCJ" != no &&
16260 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16261 # have to relink, otherwise we might link with an installed library
16262 # when we should be linking with a yet-to-be-installed one
16263 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16264 test "$hardcode_minus_L_GCJ" != no; then
16265 # Linking always hardcodes the temporary library directory.
16266 hardcode_action_GCJ=relink
16267 else
16268 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16269 hardcode_action_GCJ=immediate
16270 fi
16271else
16272 # We cannot hardcode anything, or else we can only hardcode existing
16273 # directories.
16274 hardcode_action_GCJ=unsupported
16275fi
16276echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16277echo "${ECHO_T}$hardcode_action_GCJ" >&6
16278
16279if test "$hardcode_action_GCJ" = relink; then
16280 # Fast installation is not supported
16281 enable_fast_install=no
16282elif test "$shlibpath_overrides_runpath" = yes ||
16283 test "$enable_shared" = no; then
16284 # Fast installation is not necessary
16285 enable_fast_install=needless
16286fi
16287
16288striplib=
16289old_striplib=
16290echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16291echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16292if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16293 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16294 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16295 echo "$as_me:$LINENO: result: yes" >&5
16296echo "${ECHO_T}yes" >&6
16297else
16298# FIXME - insert some real tests, host_os isn't really good enough
16299 case $host_os in
16300 darwin*)
16301 if test -n "$STRIP" ; then
16302 striplib="$STRIP -x"
16303 echo "$as_me:$LINENO: result: yes" >&5
16304echo "${ECHO_T}yes" >&6
16305 else
16306 echo "$as_me:$LINENO: result: no" >&5
16307echo "${ECHO_T}no" >&6
16308fi
16309 ;;
16310 *)
16311 echo "$as_me:$LINENO: result: no" >&5
16312echo "${ECHO_T}no" >&6
16313 ;;
16314 esac
16315fi
16316
16317echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16318echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16319library_names_spec=
16320libname_spec='lib$name'
16321soname_spec=
16322shrext=".so"
16323postinstall_cmds=
16324postuninstall_cmds=
16325finish_cmds=
16326finish_eval=
16327shlibpath_var=
16328shlibpath_overrides_runpath=unknown
16329version_type=none
16330dynamic_linker="$host_os ld.so"
16331sys_lib_dlsearch_path_spec="/lib /usr/lib"
16332if test "$GCC" = yes; then
16333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16334 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16335 # if the path contains ";" then we assume it to be the separator
16336 # otherwise default to the standard path separator (i.e. ":") - it is
16337 # assumed that no part of a normal pathname contains ";" but that should
16338 # okay in the real world where ";" in dirpaths is itself problematic.
16339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16340 else
16341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16342 fi
16343else
16344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16345fi
16346need_lib_prefix=unknown
16347hardcode_into_libs=no
16348
16349# when you set need_version to no, make sure it does not cause -set_version
16350# flags to be left without arguments
16351need_version=unknown
16352
16353case $host_os in
16354aix3*)
16355 version_type=linux
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16357 shlibpath_var=LIBPATH
16358
16359 # AIX 3 has no versioning support, so we append a major version to the name.
16360 soname_spec='${libname}${release}${shared_ext}$major'
16361 ;;
16362
16363aix4* | aix5*)
16364 version_type=linux
16365 need_lib_prefix=no
16366 need_version=no
16367 hardcode_into_libs=yes
16368 if test "$host_cpu" = ia64; then
16369 # AIX 5 supports IA64
16370 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16371 shlibpath_var=LD_LIBRARY_PATH
16372 else
16373 # With GCC up to 2.95.x, collect2 would create an import file
16374 # for dependence libraries. The import file would start with
16375 # the line `#! .'. This would cause the generated library to
16376 # depend on `.', always an invalid library. This was fixed in
16377 # development snapshots of GCC prior to 3.0.
16378 case $host_os in
16379 aix4 | aix4.[01] | aix4.[01].*)
16380 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16381 echo ' yes '
16382 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16383 :
16384 else
16385 can_build_shared=no
16386 fi
16387 ;;
16388 esac
16389 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16390 # soname into executable. Probably we can add versioning support to
16391 # collect2, so additional links can be useful in future.
16392 if test "$aix_use_runtimelinking" = yes; then
16393 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16394 # instead of lib<name>.a to let people know that these are not
16395 # typical AIX shared libraries.
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 else
16398 # We preserve .a as extension for shared libraries through AIX4.2
16399 # and later when we are not doing run time linking.
16400 library_names_spec='${libname}${release}.a $libname.a'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 fi
16403 shlibpath_var=LIBPATH
16404 fi
16405 ;;
16406
16407amigaos*)
16408 library_names_spec='$libname.ixlibrary $libname.a'
16409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16410 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'
16411 ;;
16412
16413beos*)
16414 library_names_spec='${libname}${shared_ext}'
16415 dynamic_linker="$host_os ld.so"
16416 shlibpath_var=LIBRARY_PATH
16417 ;;
16418
16419bsdi4*)
16420 version_type=linux
16421 need_version=no
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16428 # the default ld.so.conf also contains /usr/contrib/lib and
16429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16430 # libtool to hard-code these into programs
16431 ;;
16432
16433cygwin* | mingw* | pw32*)
16434 version_type=windows
16435 shrext=".dll"
16436 need_version=no
16437 need_lib_prefix=no
16438
16439 case $GCC,$host_os in
16440 yes,cygwin* | yes,mingw* | yes,pw32*)
16441 library_names_spec='$libname.dll.a'
16442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16443 postinstall_cmds='base_file=`basename \${file}`~
16444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16445 dldir=$destdir/`dirname \$dlpath`~
16446 test -d \$dldir || mkdir -p \$dldir~
16447 $install_prog $dir/$dlname \$dldir/$dlname'
16448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16449 dlpath=$dir/\$dldll~
16450 $rm \$dlpath'
16451 shlibpath_overrides_runpath=yes
16452
16453 case $host_os in
16454 cygwin*)
16455 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16456 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16458 ;;
16459 mingw*)
16460 # MinGW DLLs use traditional 'lib' prefix
16461 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16462 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16463 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16464 # It is most probably a Windows format PATH printed by
16465 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16466 # path with ; separators, and with drive letters. We can handle the
16467 # drive letters (cygwin fileutils understands them), so leave them,
16468 # especially as we might pass files found there to a mingw objdump,
16469 # which wouldn't understand a cygwinified path. Ahh.
16470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16471 else
16472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16473 fi
16474 ;;
16475 pw32*)
16476 # pw32 DLLs use 'pw' prefix rather than 'lib'
16477 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16478 ;;
16479 esac
16480 ;;
16481
16482 *)
16483 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16484 ;;
16485 esac
16486 dynamic_linker='Win32 ld.exe'
16487 # FIXME: first we should search . and the directory the executable is in
16488 shlibpath_var=PATH
16489 ;;
16490
16491darwin* | rhapsody*)
16492 dynamic_linker="$host_os dyld"
16493 version_type=darwin
16494 need_lib_prefix=no
16495 need_version=no
16496 # FIXME: Relying on posixy $() will cause problems for
16497 # cross-compilation, but unfortunately the echo tests do not
16498 # yet detect zsh echo's removal of \ escapes.
16499 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16500 soname_spec='${libname}${release}${major}$shared_ext'
16501 shlibpath_overrides_runpath=yes
16502 shlibpath_var=DYLD_LIBRARY_PATH
16503 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16504 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16505 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16506 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"`
16507 fi
16508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16509 ;;
16510
16511dgux*)
16512 version_type=linux
16513 need_lib_prefix=no
16514 need_version=no
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 ;;
16519
16520freebsd1*)
16521 dynamic_linker=no
16522 ;;
16523
16524freebsd*)
16525 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16526 version_type=freebsd-$objformat
16527 case $version_type in
16528 freebsd-elf*)
16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16530 need_version=no
16531 need_lib_prefix=no
16532 ;;
16533 freebsd-*)
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16535 need_version=yes
16536 ;;
16537 esac
16538 shlibpath_var=LD_LIBRARY_PATH
16539 case $host_os in
16540 freebsd2*)
16541 shlibpath_overrides_runpath=yes
16542 ;;
16543 freebsd3.01* | freebsdelf3.01*)
16544 shlibpath_overrides_runpath=yes
16545 hardcode_into_libs=yes
16546 ;;
16547 *) # from 3.2 on
16548 shlibpath_overrides_runpath=no
16549 hardcode_into_libs=yes
16550 ;;
16551 esac
16552 ;;
16553
16554gnu*)
16555 version_type=linux
16556 need_lib_prefix=no
16557 need_version=no
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 hardcode_into_libs=yes
16562 ;;
16563
16564hpux9* | hpux10* | hpux11*)
16565 # Give a soname corresponding to the major version so that dld.sl refuses to
16566 # link against other versions.
16567 version_type=sunos
16568 need_lib_prefix=no
16569 need_version=no
16570 case "$host_cpu" in
16571 ia64*)
16572 shrext='.so'
16573 hardcode_into_libs=yes
16574 dynamic_linker="$host_os dld.so"
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16578 soname_spec='${libname}${release}${shared_ext}$major'
16579 if test "X$HPUX_IA64_MODE" = X32; then
16580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16581 else
16582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16583 fi
16584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16585 ;;
16586 hppa*64*)
16587 shrext='.sl'
16588 hardcode_into_libs=yes
16589 dynamic_linker="$host_os dld.sl"
16590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16596 ;;
16597 *)
16598 shrext='.sl'
16599 dynamic_linker="$host_os dld.sl"
16600 shlibpath_var=SHLIB_PATH
16601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 ;;
16605 esac
16606 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16607 postinstall_cmds='chmod 555 $lib'
16608 ;;
16609
16610irix5* | irix6* | nonstopux*)
16611 case $host_os in
16612 nonstopux*) version_type=nonstopux ;;
16613 *)
16614 if test "$lt_cv_prog_gnu_ld" = yes; then
16615 version_type=linux
16616 else
16617 version_type=irix
16618 fi ;;
16619 esac
16620 need_lib_prefix=no
16621 need_version=no
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16624 case $host_os in
16625 irix5* | nonstopux*)
16626 libsuff= shlibsuff=
16627 ;;
16628 *)
16629 case $LD in # libtool.m4 will add one of these switches to LD
16630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16631 libsuff= shlibsuff= libmagic=32-bit;;
16632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16633 libsuff=32 shlibsuff=N32 libmagic=N32;;
16634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16636 *) libsuff= shlibsuff= libmagic=never-match;;
16637 esac
16638 ;;
16639 esac
16640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16641 shlibpath_overrides_runpath=no
16642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16644 hardcode_into_libs=yes
16645 ;;
16646
16647# No shared lib support for Linux oldld, aout, or coff.
16648linux*oldld* | linux*aout* | linux*coff*)
16649 dynamic_linker=no
16650 ;;
16651
16652# This must be Linux ELF.
16653linux*)
16654 version_type=linux
16655 need_lib_prefix=no
16656 need_version=no
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 shlibpath_overrides_runpath=no
16662 # This implies no fast_install, which is unacceptable.
16663 # Some rework will be needed to allow for fast_install
16664 # before this can be enabled.
16665 hardcode_into_libs=yes
16666
16667 # We used to test for /lib/ld.so.1 and disable shared libraries on
16668 # powerpc, because MkLinux only supported shared libraries with the
16669 # GNU dynamic linker. Since this was broken with cross compilers,
16670 # most powerpc-linux boxes support dynamic linking these days and
16671 # people can always --disable-shared, the test was removed, and we
16672 # assume the GNU/Linux dynamic linker is in use.
16673 dynamic_linker='GNU/Linux ld.so'
16674 ;;
16675
16676netbsd*)
16677 version_type=sunos
16678 need_lib_prefix=no
16679 need_version=no
16680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16683 dynamic_linker='NetBSD (a.out) ld.so'
16684 else
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16686 soname_spec='${libname}${release}${shared_ext}$major'
16687 dynamic_linker='NetBSD ld.elf_so'
16688 fi
16689 shlibpath_var=LD_LIBRARY_PATH
16690 shlibpath_overrides_runpath=yes
16691 hardcode_into_libs=yes
16692 ;;
16693
16694newsos6)
16695 version_type=linux
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes
16699 ;;
16700
16701nto-qnx)
16702 version_type=linux
16703 need_lib_prefix=no
16704 need_version=no
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 ;;
16710
16711openbsd*)
16712 version_type=sunos
16713 need_lib_prefix=no
16714 need_version=no
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16719 case $host_os in
16720 openbsd2.[89] | openbsd2.[89].*)
16721 shlibpath_overrides_runpath=no
16722 ;;
16723 *)
16724 shlibpath_overrides_runpath=yes
16725 ;;
16726 esac
16727 else
16728 shlibpath_overrides_runpath=yes
16729 fi
16730 ;;
16731
16732os2*)
16733 libname_spec='$name'
16734 shrext=".dll"
16735 need_lib_prefix=no
16736 library_names_spec='$libname${shared_ext} $libname.a'
16737 dynamic_linker='OS/2 ld.exe'
16738 shlibpath_var=LIBPATH
16739 ;;
16740
16741osf3* | osf4* | osf5*)
16742 version_type=osf
16743 need_lib_prefix=no
16744 need_version=no
16745 soname_spec='${libname}${release}${shared_ext}$major'
16746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747 shlibpath_var=LD_LIBRARY_PATH
16748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16750 ;;
16751
16752sco3.2v5*)
16753 version_type=osf
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 shlibpath_var=LD_LIBRARY_PATH
16757 ;;
16758
16759solaris*)
16760 version_type=linux
16761 need_lib_prefix=no
16762 need_version=no
16763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764 soname_spec='${libname}${release}${shared_ext}$major'
16765 shlibpath_var=LD_LIBRARY_PATH
16766 shlibpath_overrides_runpath=yes
16767 hardcode_into_libs=yes
16768 # ldd complains unless libraries are executable
16769 postinstall_cmds='chmod +x $lib'
16770 ;;
16771
16772sunos4*)
16773 version_type=sunos
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 if test "$with_gnu_ld" = yes; then
16779 need_lib_prefix=no
16780 fi
16781 need_version=yes
16782 ;;
16783
16784sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16785 version_type=linux
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 case $host_vendor in
16790 sni)
16791 shlibpath_overrides_runpath=no
16792 need_lib_prefix=no
16793 export_dynamic_flag_spec='${wl}-Blargedynsym'
16794 runpath_var=LD_RUN_PATH
16795 ;;
16796 siemens)
16797 need_lib_prefix=no
16798 ;;
16799 motorola)
16800 need_lib_prefix=no
16801 need_version=no
16802 shlibpath_overrides_runpath=no
16803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16804 ;;
16805 esac
16806 ;;
16807
16808sysv4*MP*)
16809 if test -d /usr/nec ;then
16810 version_type=linux
16811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16812 soname_spec='$libname${shared_ext}.$major'
16813 shlibpath_var=LD_LIBRARY_PATH
16814 fi
16815 ;;
16816
16817uts4*)
16818 version_type=linux
16819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16820 soname_spec='${libname}${release}${shared_ext}$major'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 ;;
16823
16824*)
16825 dynamic_linker=no
16826 ;;
16827esac
16828echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16829echo "${ECHO_T}$dynamic_linker" >&6
16830test "$dynamic_linker" = no && can_build_shared=no
16831
16832if test "x$enable_dlopen" != xyes; then
16833 enable_dlopen=unknown
16834 enable_dlopen_self=unknown
16835 enable_dlopen_self_static=unknown
16836else
16837 lt_cv_dlopen=no
16838 lt_cv_dlopen_libs=
16839
16840 case $host_os in
16841 beos*)
16842 lt_cv_dlopen="load_add_on"
16843 lt_cv_dlopen_libs=
16844 lt_cv_dlopen_self=yes
16845 ;;
16846
16847 mingw* | pw32*)
16848 lt_cv_dlopen="LoadLibrary"
16849 lt_cv_dlopen_libs=
16850 ;;
16851
16852 cygwin*)
16853 lt_cv_dlopen="dlopen"
16854 lt_cv_dlopen_libs=
16855 ;;
16856
16857 darwin*)
16858 # if libdl is installed we need to link against it
16859 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16860echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16861if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 ac_check_lib_save_LIBS=$LIBS
16865LIBS="-ldl $LIBS"
16866cat >conftest.$ac_ext <<_ACEOF
16867#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016873
16874/* Override any gcc2 internal prototype to avoid an error. */
16875#ifdef __cplusplus
16876extern "C"
16877#endif
16878/* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016881int
16882main ()
16883{
16884dlopen ();
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext conftest$ac_exeext
16890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891 (eval $ac_link) 2>&5
16892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -s conftest$ac_exeext'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; }; then
16901 ac_cv_lib_dl_dlopen=yes
16902else
16903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016904sed 's/^/| /' conftest.$ac_ext >&5
16905
John Criswell47fdd832003-07-14 16:52:07 +000016906ac_cv_lib_dl_dlopen=no
16907fi
16908rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16909LIBS=$ac_check_lib_save_LIBS
16910fi
16911echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16912echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16913if test $ac_cv_lib_dl_dlopen = yes; then
16914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16915else
16916
16917 lt_cv_dlopen="dyld"
16918 lt_cv_dlopen_libs=
16919 lt_cv_dlopen_self=yes
16920
16921fi
16922
16923 ;;
16924
16925 *)
16926 echo "$as_me:$LINENO: checking for shl_load" >&5
16927echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16928if test "${ac_cv_func_shl_load+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930else
16931 cat >conftest.$ac_ext <<_ACEOF
16932#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016933/* confdefs.h. */
16934_ACEOF
16935cat confdefs.h >>conftest.$ac_ext
16936cat >>conftest.$ac_ext <<_ACEOF
16937/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016938/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016939 which can conflict with char shl_load (); below.
16940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16941 <limits.h> exists even on freestanding compilers. */
16942#ifdef __STDC__
16943# include <limits.h>
16944#else
16945# include <assert.h>
16946#endif
John Criswell47fdd832003-07-14 16:52:07 +000016947/* Override any gcc2 internal prototype to avoid an error. */
16948#ifdef __cplusplus
16949extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016950{
John Criswell47fdd832003-07-14 16:52:07 +000016951#endif
16952/* We use char because int might match the return type of a gcc2
16953 builtin and then its argument prototype would still apply. */
16954char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016955/* The GNU C library defines this for functions which it implements
16956 to always fail with ENOSYS. Some functions are actually named
16957 something starting with __ and the normal name is an alias. */
16958#if defined (__stub_shl_load) || defined (__stub___shl_load)
16959choke me
16960#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016961char (*f) () = shl_load;
16962#endif
16963#ifdef __cplusplus
16964}
John Criswell47fdd832003-07-14 16:52:07 +000016965#endif
16966
John Criswell0c38eaf2003-09-10 15:17:25 +000016967int
16968main ()
16969{
16970return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext conftest$ac_exeext
16976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977 (eval $ac_link) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -s conftest$ac_exeext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_func_shl_load=yes
16988else
16989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016990sed 's/^/| /' conftest.$ac_ext >&5
16991
John Criswell47fdd832003-07-14 16:52:07 +000016992ac_cv_func_shl_load=no
16993fi
16994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16995fi
16996echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16997echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16998if test $ac_cv_func_shl_load = yes; then
16999 lt_cv_dlopen="shl_load"
17000else
17001 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17002echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17003if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006 ac_check_lib_save_LIBS=$LIBS
17007LIBS="-ldld $LIBS"
17008cat >conftest.$ac_ext <<_ACEOF
17009#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017010/* confdefs.h. */
17011_ACEOF
17012cat confdefs.h >>conftest.$ac_ext
17013cat >>conftest.$ac_ext <<_ACEOF
17014/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017015
17016/* Override any gcc2 internal prototype to avoid an error. */
17017#ifdef __cplusplus
17018extern "C"
17019#endif
17020/* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17022char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017023int
17024main ()
17025{
17026shl_load ();
17027 ;
17028 return 0;
17029}
17030_ACEOF
17031rm -f conftest.$ac_objext conftest$ac_exeext
17032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>&5
17034 ac_status=$?
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -s conftest$ac_exeext'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17040 ac_status=$?
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_lib_dld_shl_load=yes
17044else
17045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017046sed 's/^/| /' conftest.$ac_ext >&5
17047
John Criswell47fdd832003-07-14 16:52:07 +000017048ac_cv_lib_dld_shl_load=no
17049fi
17050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17051LIBS=$ac_check_lib_save_LIBS
17052fi
17053echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17054echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17055if test $ac_cv_lib_dld_shl_load = yes; then
17056 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17057else
17058 echo "$as_me:$LINENO: checking for dlopen" >&5
17059echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17060if test "${ac_cv_func_dlopen+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17062else
17063 cat >conftest.$ac_ext <<_ACEOF
17064#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017070/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017071 which can conflict with char dlopen (); below.
17072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073 <limits.h> exists even on freestanding compilers. */
17074#ifdef __STDC__
17075# include <limits.h>
17076#else
17077# include <assert.h>
17078#endif
John Criswell47fdd832003-07-14 16:52:07 +000017079/* Override any gcc2 internal prototype to avoid an error. */
17080#ifdef __cplusplus
17081extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017082{
John Criswell47fdd832003-07-14 16:52:07 +000017083#endif
17084/* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17086char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017087/* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
17090#if defined (__stub_dlopen) || defined (__stub___dlopen)
17091choke me
17092#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017093char (*f) () = dlopen;
17094#endif
17095#ifdef __cplusplus
17096}
John Criswell47fdd832003-07-14 16:52:07 +000017097#endif
17098
John Criswell0c38eaf2003-09-10 15:17:25 +000017099int
17100main ()
17101{
17102return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017103 ;
17104 return 0;
17105}
17106_ACEOF
17107rm -f conftest.$ac_objext conftest$ac_exeext
17108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -s conftest$ac_exeext'
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
17119 ac_cv_func_dlopen=yes
17120else
17121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017122sed 's/^/| /' conftest.$ac_ext >&5
17123
John Criswell47fdd832003-07-14 16:52:07 +000017124ac_cv_func_dlopen=no
17125fi
17126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17127fi
17128echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17129echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17130if test $ac_cv_func_dlopen = yes; then
17131 lt_cv_dlopen="dlopen"
17132else
17133 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17134echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17135if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137else
17138 ac_check_lib_save_LIBS=$LIBS
17139LIBS="-ldl $LIBS"
17140cat >conftest.$ac_ext <<_ACEOF
17141#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017147
17148/* Override any gcc2 internal prototype to avoid an error. */
17149#ifdef __cplusplus
17150extern "C"
17151#endif
17152/* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017155int
17156main ()
17157{
17158dlopen ();
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext conftest$ac_exeext
17164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_lib_dl_dlopen=yes
17176else
17177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017178sed 's/^/| /' conftest.$ac_ext >&5
17179
John Criswell47fdd832003-07-14 16:52:07 +000017180ac_cv_lib_dl_dlopen=no
17181fi
17182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183LIBS=$ac_check_lib_save_LIBS
17184fi
17185echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17186echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17187if test $ac_cv_lib_dl_dlopen = yes; then
17188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17189else
17190 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17191echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17192if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195 ac_check_lib_save_LIBS=$LIBS
17196LIBS="-lsvld $LIBS"
17197cat >conftest.$ac_ext <<_ACEOF
17198#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017199/* confdefs.h. */
17200_ACEOF
17201cat confdefs.h >>conftest.$ac_ext
17202cat >>conftest.$ac_ext <<_ACEOF
17203/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017204
17205/* Override any gcc2 internal prototype to avoid an error. */
17206#ifdef __cplusplus
17207extern "C"
17208#endif
17209/* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017212int
17213main ()
17214{
17215dlopen ();
17216 ;
17217 return 0;
17218}
17219_ACEOF
17220rm -f conftest.$ac_objext conftest$ac_exeext
17221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>&5
17223 ac_status=$?
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -s conftest$ac_exeext'
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; }; then
17232 ac_cv_lib_svld_dlopen=yes
17233else
17234 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017235sed 's/^/| /' conftest.$ac_ext >&5
17236
John Criswell47fdd832003-07-14 16:52:07 +000017237ac_cv_lib_svld_dlopen=no
17238fi
17239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17240LIBS=$ac_check_lib_save_LIBS
17241fi
17242echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17243echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17244if test $ac_cv_lib_svld_dlopen = yes; then
17245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17246else
17247 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17248echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17249if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251else
17252 ac_check_lib_save_LIBS=$LIBS
17253LIBS="-ldld $LIBS"
17254cat >conftest.$ac_ext <<_ACEOF
17255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000017256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017261
17262/* Override any gcc2 internal prototype to avoid an error. */
17263#ifdef __cplusplus
17264extern "C"
17265#endif
17266/* We use char because int might match the return type of a gcc2
17267 builtin and then its argument prototype would still apply. */
17268char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017269int
17270main ()
17271{
17272dld_link ();
17273 ;
17274 return 0;
17275}
17276_ACEOF
17277rm -f conftest.$ac_objext conftest$ac_exeext
17278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_lib_dld_dld_link=yes
17290else
17291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017292sed 's/^/| /' conftest.$ac_ext >&5
17293
John Criswell47fdd832003-07-14 16:52:07 +000017294ac_cv_lib_dld_dld_link=no
17295fi
17296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297LIBS=$ac_check_lib_save_LIBS
17298fi
17299echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17300echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17301if test $ac_cv_lib_dld_dld_link = yes; then
17302 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17303fi
17304
17305
17306fi
17307
17308
17309fi
17310
17311
17312fi
17313
17314
17315fi
17316
17317
17318fi
17319
17320 ;;
17321 esac
17322
17323 if test "x$lt_cv_dlopen" != xno; then
17324 enable_dlopen=yes
17325 else
17326 enable_dlopen=no
17327 fi
17328
17329 case $lt_cv_dlopen in
17330 dlopen)
17331 save_CPPFLAGS="$CPPFLAGS"
17332 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17333
17334 save_LDFLAGS="$LDFLAGS"
17335 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17336
17337 save_LIBS="$LIBS"
17338 LIBS="$lt_cv_dlopen_libs $LIBS"
17339
17340 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17341echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17342if test "${lt_cv_dlopen_self+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345 if test "$cross_compiling" = yes; then :
17346 lt_cv_dlopen_self=cross
17347else
17348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17349 lt_status=$lt_dlunknown
17350 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000017351#line 17351 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017352#include "confdefs.h"
17353
17354#if HAVE_DLFCN_H
17355#include <dlfcn.h>
17356#endif
17357
17358#include <stdio.h>
17359
17360#ifdef RTLD_GLOBAL
17361# define LT_DLGLOBAL RTLD_GLOBAL
17362#else
17363# ifdef DL_GLOBAL
17364# define LT_DLGLOBAL DL_GLOBAL
17365# else
17366# define LT_DLGLOBAL 0
17367# endif
17368#endif
17369
17370/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17371 find out it does not work in some platform. */
17372#ifndef LT_DLLAZY_OR_NOW
17373# ifdef RTLD_LAZY
17374# define LT_DLLAZY_OR_NOW RTLD_LAZY
17375# else
17376# ifdef DL_LAZY
17377# define LT_DLLAZY_OR_NOW DL_LAZY
17378# else
17379# ifdef RTLD_NOW
17380# define LT_DLLAZY_OR_NOW RTLD_NOW
17381# else
17382# ifdef DL_NOW
17383# define LT_DLLAZY_OR_NOW DL_NOW
17384# else
17385# define LT_DLLAZY_OR_NOW 0
17386# endif
17387# endif
17388# endif
17389# endif
17390#endif
17391
17392#ifdef __cplusplus
17393extern "C" void exit (int);
17394#endif
17395
17396void fnord() { int i=42;}
17397int main ()
17398{
17399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17400 int status = $lt_dlunknown;
17401
17402 if (self)
17403 {
17404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17406 /* dlclose (self); */
17407 }
17408
17409 exit (status);
17410}
17411EOF
17412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17413 (eval $ac_link) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17417 (./conftest; exit; ) 2>/dev/null
17418 lt_status=$?
17419 case x$lt_status in
17420 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17421 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17422 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17423 esac
17424 else :
17425 # compilation failed
17426 lt_cv_dlopen_self=no
17427 fi
17428fi
17429rm -fr conftest*
17430
17431
17432fi
17433echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17434echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17435
17436 if test "x$lt_cv_dlopen_self" = xyes; then
17437 LDFLAGS="$LDFLAGS $link_static_flag"
17438 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17439echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17440if test "${lt_cv_dlopen_self_static+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443 if test "$cross_compiling" = yes; then :
17444 lt_cv_dlopen_self_static=cross
17445else
17446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17447 lt_status=$lt_dlunknown
17448 cat > conftest.$ac_ext <<EOF
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000017449#line 17449 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017450#include "confdefs.h"
17451
17452#if HAVE_DLFCN_H
17453#include <dlfcn.h>
17454#endif
17455
17456#include <stdio.h>
17457
17458#ifdef RTLD_GLOBAL
17459# define LT_DLGLOBAL RTLD_GLOBAL
17460#else
17461# ifdef DL_GLOBAL
17462# define LT_DLGLOBAL DL_GLOBAL
17463# else
17464# define LT_DLGLOBAL 0
17465# endif
17466#endif
17467
17468/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17469 find out it does not work in some platform. */
17470#ifndef LT_DLLAZY_OR_NOW
17471# ifdef RTLD_LAZY
17472# define LT_DLLAZY_OR_NOW RTLD_LAZY
17473# else
17474# ifdef DL_LAZY
17475# define LT_DLLAZY_OR_NOW DL_LAZY
17476# else
17477# ifdef RTLD_NOW
17478# define LT_DLLAZY_OR_NOW RTLD_NOW
17479# else
17480# ifdef DL_NOW
17481# define LT_DLLAZY_OR_NOW DL_NOW
17482# else
17483# define LT_DLLAZY_OR_NOW 0
17484# endif
17485# endif
17486# endif
17487# endif
17488#endif
17489
17490#ifdef __cplusplus
17491extern "C" void exit (int);
17492#endif
17493
17494void fnord() { int i=42;}
17495int main ()
17496{
17497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17498 int status = $lt_dlunknown;
17499
17500 if (self)
17501 {
17502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17504 /* dlclose (self); */
17505 }
17506
17507 exit (status);
17508}
17509EOF
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511 (eval $ac_link) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17515 (./conftest; exit; ) 2>/dev/null
17516 lt_status=$?
17517 case x$lt_status in
17518 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17519 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17520 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17521 esac
17522 else :
17523 # compilation failed
17524 lt_cv_dlopen_self_static=no
17525 fi
17526fi
17527rm -fr conftest*
17528
17529
17530fi
17531echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17532echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17533 fi
17534
17535 CPPFLAGS="$save_CPPFLAGS"
17536 LDFLAGS="$save_LDFLAGS"
17537 LIBS="$save_LIBS"
17538 ;;
17539 esac
17540
17541 case $lt_cv_dlopen_self in
17542 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17543 *) enable_dlopen_self=unknown ;;
17544 esac
17545
17546 case $lt_cv_dlopen_self_static in
17547 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17548 *) enable_dlopen_self_static=unknown ;;
17549 esac
17550fi
17551
17552
17553# The else clause should only fire when bootstrapping the
17554# libtool distribution, otherwise you forgot to ship ltmain.sh
17555# with your package, and you will get complaints that there are
17556# no rules to generate ltmain.sh.
17557if test -f "$ltmain"; then
17558 # See if we are running on zsh, and set the options which allow our commands through
17559 # without removal of \ escapes.
17560 if test -n "${ZSH_VERSION+set}" ; then
17561 setopt NO_GLOB_SUBST
17562 fi
17563 # Now quote all the things that may contain metacharacters while being
17564 # careful not to overquote the AC_SUBSTed values. We take copies of the
17565 # variables and quote the copies for generation of the libtool script.
17566 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17567 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17568 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17569 deplibs_check_method reload_flag reload_cmds need_locks \
17570 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17571 lt_cv_sys_global_symbol_to_c_name_address \
17572 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17573 old_postinstall_cmds old_postuninstall_cmds \
17574 compiler_GCJ \
17575 CC_GCJ \
17576 LD_GCJ \
17577 lt_prog_compiler_wl_GCJ \
17578 lt_prog_compiler_pic_GCJ \
17579 lt_prog_compiler_static_GCJ \
17580 lt_prog_compiler_no_builtin_flag_GCJ \
17581 export_dynamic_flag_spec_GCJ \
17582 thread_safe_flag_spec_GCJ \
17583 whole_archive_flag_spec_GCJ \
17584 enable_shared_with_static_runtimes_GCJ \
17585 old_archive_cmds_GCJ \
17586 old_archive_from_new_cmds_GCJ \
17587 predep_objects_GCJ \
17588 postdep_objects_GCJ \
17589 predeps_GCJ \
17590 postdeps_GCJ \
17591 compiler_lib_search_path_GCJ \
17592 archive_cmds_GCJ \
17593 archive_expsym_cmds_GCJ \
17594 postinstall_cmds_GCJ \
17595 postuninstall_cmds_GCJ \
17596 old_archive_from_expsyms_cmds_GCJ \
17597 allow_undefined_flag_GCJ \
17598 no_undefined_flag_GCJ \
17599 export_symbols_cmds_GCJ \
17600 hardcode_libdir_flag_spec_GCJ \
17601 hardcode_libdir_flag_spec_ld_GCJ \
17602 hardcode_libdir_separator_GCJ \
17603 hardcode_automatic_GCJ \
17604 module_cmds_GCJ \
17605 module_expsym_cmds_GCJ \
17606 lt_cv_prog_compiler_c_o_GCJ \
17607 exclude_expsyms_GCJ \
17608 include_expsyms_GCJ; do
17609
17610 case $var in
17611 old_archive_cmds_GCJ | \
17612 old_archive_from_new_cmds_GCJ | \
17613 archive_cmds_GCJ | \
17614 archive_expsym_cmds_GCJ | \
17615 module_cmds_GCJ | \
17616 module_expsym_cmds_GCJ | \
17617 old_archive_from_expsyms_cmds_GCJ | \
17618 export_symbols_cmds_GCJ | \
17619 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17620 postinstall_cmds | postuninstall_cmds | \
17621 old_postinstall_cmds | old_postuninstall_cmds | \
17622 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17623 # Double-quote double-evaled strings.
17624 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17625 ;;
17626 *)
17627 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17628 ;;
17629 esac
17630 done
17631
17632 case $lt_echo in
17633 *'\$0 --fallback-echo"')
17634 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17635 ;;
17636 esac
17637
17638cfgfile="$ofile"
17639
17640 cat <<__EOF__ >> "$cfgfile"
17641# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17642
17643# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17644
17645# Shell to use when invoking shell scripts.
17646SHELL=$lt_SHELL
17647
17648# Whether or not to build shared libraries.
17649build_libtool_libs=$enable_shared
17650
17651# Whether or not to build static libraries.
17652build_old_libs=$enable_static
17653
17654# Whether or not to add -lc for building shared libraries.
17655build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17656
17657# Whether or not to disallow shared libs when runtime libs are static
17658allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17659
17660# Whether or not to optimize for fast installation.
17661fast_install=$enable_fast_install
17662
17663# The host system.
17664host_alias=$host_alias
17665host=$host
17666
17667# An echo program that does not interpret backslashes.
17668echo=$lt_echo
17669
17670# The archiver.
17671AR=$lt_AR
17672AR_FLAGS=$lt_AR_FLAGS
17673
17674# A C compiler.
17675LTCC=$lt_LTCC
17676
17677# A language-specific compiler.
17678CC=$lt_compiler_GCJ
17679
17680# Is the compiler the GNU C compiler?
17681with_gcc=$GCC_GCJ
17682
17683# An ERE matcher.
17684EGREP=$lt_EGREP
17685
17686# The linker used to build libraries.
17687LD=$lt_LD_GCJ
17688
17689# Whether we need hard or soft links.
17690LN_S=$lt_LN_S
17691
17692# A BSD-compatible nm program.
17693NM=$lt_NM
17694
17695# A symbol stripping program
17696STRIP=$STRIP
17697
17698# Used to examine libraries when file_magic_cmd begins "file"
17699MAGIC_CMD=$MAGIC_CMD
17700
17701# Used on cygwin: DLL creation program.
17702DLLTOOL="$DLLTOOL"
17703
17704# Used on cygwin: object dumper.
17705OBJDUMP="$OBJDUMP"
17706
17707# Used on cygwin: assembler.
17708AS="$AS"
17709
17710# The name of the directory that contains temporary libtool files.
17711objdir=$objdir
17712
17713# How to create reloadable object files.
17714reload_flag=$lt_reload_flag
17715reload_cmds=$lt_reload_cmds
17716
17717# How to pass a linker flag through the compiler.
17718wl=$lt_lt_prog_compiler_wl_GCJ
17719
17720# Object file suffix (normally "o").
17721objext="$ac_objext"
17722
17723# Old archive suffix (normally "a").
17724libext="$libext"
17725
17726# Shared library suffix (normally ".so").
17727shrext='$shrext'
17728
17729# Executable file suffix (normally "").
17730exeext="$exeext"
17731
17732# Additional compiler flags for building library objects.
17733pic_flag=$lt_lt_prog_compiler_pic_GCJ
17734pic_mode=$pic_mode
17735
17736# What is the maximum length of a command?
17737max_cmd_len=$lt_cv_sys_max_cmd_len
17738
17739# Does compiler simultaneously support -c and -o options?
17740compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17741
17742# Must we lock files when doing compilation ?
17743need_locks=$lt_need_locks
17744
17745# Do we need the lib prefix for modules?
17746need_lib_prefix=$need_lib_prefix
17747
17748# Do we need a version for libraries?
17749need_version=$need_version
17750
17751# Whether dlopen is supported.
17752dlopen_support=$enable_dlopen
17753
17754# Whether dlopen of programs is supported.
17755dlopen_self=$enable_dlopen_self
17756
17757# Whether dlopen of statically linked programs is supported.
17758dlopen_self_static=$enable_dlopen_self_static
17759
17760# Compiler flag to prevent dynamic linking.
17761link_static_flag=$lt_lt_prog_compiler_static_GCJ
17762
17763# Compiler flag to turn off builtin functions.
17764no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17765
17766# Compiler flag to allow reflexive dlopens.
17767export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17768
17769# Compiler flag to generate shared objects directly from archives.
17770whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17771
17772# Compiler flag to generate thread-safe objects.
17773thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17774
17775# Library versioning type.
17776version_type=$version_type
17777
17778# Format of library name prefix.
17779libname_spec=$lt_libname_spec
17780
17781# List of archive names. First name is the real one, the rest are links.
17782# The last name is the one that the linker finds with -lNAME.
17783library_names_spec=$lt_library_names_spec
17784
17785# The coded name of the library, if different from the real name.
17786soname_spec=$lt_soname_spec
17787
17788# Commands used to build and install an old-style archive.
17789RANLIB=$lt_RANLIB
17790old_archive_cmds=$lt_old_archive_cmds_GCJ
17791old_postinstall_cmds=$lt_old_postinstall_cmds
17792old_postuninstall_cmds=$lt_old_postuninstall_cmds
17793
17794# Create an old-style archive from a shared archive.
17795old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17796
17797# Create a temporary old-style archive to link instead of a shared archive.
17798old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17799
17800# Commands used to build and install a shared archive.
17801archive_cmds=$lt_archive_cmds_GCJ
17802archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17803postinstall_cmds=$lt_postinstall_cmds
17804postuninstall_cmds=$lt_postuninstall_cmds
17805
17806# Commands used to build a loadable module (assumed same as above if empty)
17807module_cmds=$lt_module_cmds_GCJ
17808module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17809
17810# Commands to strip libraries.
17811old_striplib=$lt_old_striplib
17812striplib=$lt_striplib
17813
17814# Dependencies to place before the objects being linked to create a
17815# shared library.
17816predep_objects=$lt_predep_objects_GCJ
17817
17818# Dependencies to place after the objects being linked to create a
17819# shared library.
17820postdep_objects=$lt_postdep_objects_GCJ
17821
17822# Dependencies to place before the objects being linked to create a
17823# shared library.
17824predeps=$lt_predeps_GCJ
17825
17826# Dependencies to place after the objects being linked to create a
17827# shared library.
17828postdeps=$lt_postdeps_GCJ
17829
17830# The library search path used internally by the compiler when linking
17831# a shared library.
17832compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17833
17834# Method to check whether dependent libraries are shared objects.
17835deplibs_check_method=$lt_deplibs_check_method
17836
17837# Command to use when deplibs_check_method == file_magic.
17838file_magic_cmd=$lt_file_magic_cmd
17839
17840# Flag that allows shared libraries with undefined symbols to be built.
17841allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17842
17843# Flag that forces no undefined symbols.
17844no_undefined_flag=$lt_no_undefined_flag_GCJ
17845
17846# Commands used to finish a libtool library installation in a directory.
17847finish_cmds=$lt_finish_cmds
17848
17849# Same as above, but a single script fragment to be evaled but not shown.
17850finish_eval=$lt_finish_eval
17851
17852# Take the output of nm and produce a listing of raw symbols and C names.
17853global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17854
17855# Transform the output of nm in a proper C declaration
17856global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17857
17858# Transform the output of nm in a C name address pair
17859global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17860
17861# This is the shared library runtime path variable.
17862runpath_var=$runpath_var
17863
17864# This is the shared library path variable.
17865shlibpath_var=$shlibpath_var
17866
17867# Is shlibpath searched before the hard-coded library search path?
17868shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17869
17870# How to hardcode a shared library path into an executable.
17871hardcode_action=$hardcode_action_GCJ
17872
17873# Whether we should hardcode library paths into libraries.
17874hardcode_into_libs=$hardcode_into_libs
17875
17876# Flag to hardcode \$libdir into a binary during linking.
17877# This must work even if \$libdir does not exist.
17878hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17879
17880# If ld is used when linking, flag to hardcode \$libdir into
17881# a binary during linking. This must work even if \$libdir does
17882# not exist.
17883hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17884
17885# Whether we need a single -rpath flag with a separated argument.
17886hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17887
17888# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17889# resulting binary.
17890hardcode_direct=$hardcode_direct_GCJ
17891
17892# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17893# resulting binary.
17894hardcode_minus_L=$hardcode_minus_L_GCJ
17895
17896# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17897# the resulting binary.
17898hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17899
17900# Set to yes if building a shared library automatically hardcodes DIR into the library
17901# and all subsequent libraries and executables linked against it.
17902hardcode_automatic=$hardcode_automatic_GCJ
17903
17904# Variables whose values should be saved in libtool wrapper scripts and
17905# restored at relink time.
17906variables_saved_for_relink="$variables_saved_for_relink"
17907
17908# Whether libtool must link a program against all its dependency libraries.
17909link_all_deplibs=$link_all_deplibs_GCJ
17910
17911# Compile-time system search path for libraries
17912sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17913
17914# Run-time system search path for libraries
17915sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17916
17917# Fix the shell variable \$srcfile for the compiler.
17918fix_srcfile_path="$fix_srcfile_path_GCJ"
17919
17920# Set to yes if exported symbols are required.
17921always_export_symbols=$always_export_symbols_GCJ
17922
17923# The commands to list exported symbols.
17924export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17925
17926# The commands to extract the exported symbol list from a shared archive.
17927extract_expsyms_cmds=$lt_extract_expsyms_cmds
17928
17929# Symbols that should not be listed in the preloaded symbols.
17930exclude_expsyms=$lt_exclude_expsyms_GCJ
17931
17932# Symbols that must always be exported.
17933include_expsyms=$lt_include_expsyms_GCJ
17934
17935# ### END LIBTOOL TAG CONFIG: $tagname
17936
17937__EOF__
17938
17939
17940else
17941 # If there is no Makefile yet, we rely on a make rule to execute
17942 # `config.status --recheck' to rerun these tests and create the
17943 # libtool script then.
17944 test -f Makefile && make "$ltmain"
17945fi
17946
17947
17948ac_ext=c
17949ac_cpp='$CPP $CPPFLAGS'
17950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952ac_compiler_gnu=$ac_cv_c_compiler_gnu
17953
17954CC="$lt_save_CC"
17955
17956 else
17957 tagname=""
17958 fi
17959 ;;
17960
17961 RC)
17962
17963
17964
17965# Source file extension for RC test sources.
17966ac_ext=rc
17967
17968# Object file extension for compiled RC test sources.
17969objext=o
17970objext_RC=$objext
17971
17972# Code to be used in simple compile tests
17973lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17974
17975# Code to be used in simple link tests
17976lt_simple_link_test_code="$lt_simple_compile_test_code"
17977
17978# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17979
17980# If no C compiler was specified, use CC.
17981LTCC=${LTCC-"$CC"}
17982
17983# Allow CC to be a program name with arguments.
17984compiler=$CC
17985
17986
17987# Allow CC to be a program name with arguments.
17988lt_save_CC="$CC"
17989CC=${RC-"windres"}
17990compiler=$CC
17991compiler_RC=$CC
17992lt_cv_prog_compiler_c_o_RC=yes
17993
17994# The else clause should only fire when bootstrapping the
17995# libtool distribution, otherwise you forgot to ship ltmain.sh
17996# with your package, and you will get complaints that there are
17997# no rules to generate ltmain.sh.
17998if test -f "$ltmain"; then
17999 # See if we are running on zsh, and set the options which allow our commands through
18000 # without removal of \ escapes.
18001 if test -n "${ZSH_VERSION+set}" ; then
18002 setopt NO_GLOB_SUBST
18003 fi
18004 # Now quote all the things that may contain metacharacters while being
18005 # careful not to overquote the AC_SUBSTed values. We take copies of the
18006 # variables and quote the copies for generation of the libtool script.
18007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18008 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18009 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18010 deplibs_check_method reload_flag reload_cmds need_locks \
18011 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18012 lt_cv_sys_global_symbol_to_c_name_address \
18013 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18014 old_postinstall_cmds old_postuninstall_cmds \
18015 compiler_RC \
18016 CC_RC \
18017 LD_RC \
18018 lt_prog_compiler_wl_RC \
18019 lt_prog_compiler_pic_RC \
18020 lt_prog_compiler_static_RC \
18021 lt_prog_compiler_no_builtin_flag_RC \
18022 export_dynamic_flag_spec_RC \
18023 thread_safe_flag_spec_RC \
18024 whole_archive_flag_spec_RC \
18025 enable_shared_with_static_runtimes_RC \
18026 old_archive_cmds_RC \
18027 old_archive_from_new_cmds_RC \
18028 predep_objects_RC \
18029 postdep_objects_RC \
18030 predeps_RC \
18031 postdeps_RC \
18032 compiler_lib_search_path_RC \
18033 archive_cmds_RC \
18034 archive_expsym_cmds_RC \
18035 postinstall_cmds_RC \
18036 postuninstall_cmds_RC \
18037 old_archive_from_expsyms_cmds_RC \
18038 allow_undefined_flag_RC \
18039 no_undefined_flag_RC \
18040 export_symbols_cmds_RC \
18041 hardcode_libdir_flag_spec_RC \
18042 hardcode_libdir_flag_spec_ld_RC \
18043 hardcode_libdir_separator_RC \
18044 hardcode_automatic_RC \
18045 module_cmds_RC \
18046 module_expsym_cmds_RC \
18047 lt_cv_prog_compiler_c_o_RC \
18048 exclude_expsyms_RC \
18049 include_expsyms_RC; do
18050
18051 case $var in
18052 old_archive_cmds_RC | \
18053 old_archive_from_new_cmds_RC | \
18054 archive_cmds_RC | \
18055 archive_expsym_cmds_RC | \
18056 module_cmds_RC | \
18057 module_expsym_cmds_RC | \
18058 old_archive_from_expsyms_cmds_RC | \
18059 export_symbols_cmds_RC | \
18060 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18061 postinstall_cmds | postuninstall_cmds | \
18062 old_postinstall_cmds | old_postuninstall_cmds | \
18063 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18064 # Double-quote double-evaled strings.
18065 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18066 ;;
18067 *)
18068 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18069 ;;
18070 esac
18071 done
18072
18073 case $lt_echo in
18074 *'\$0 --fallback-echo"')
18075 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18076 ;;
18077 esac
18078
18079cfgfile="$ofile"
18080
18081 cat <<__EOF__ >> "$cfgfile"
18082# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18083
18084# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18085
18086# Shell to use when invoking shell scripts.
18087SHELL=$lt_SHELL
18088
18089# Whether or not to build shared libraries.
18090build_libtool_libs=$enable_shared
18091
18092# Whether or not to build static libraries.
18093build_old_libs=$enable_static
18094
18095# Whether or not to add -lc for building shared libraries.
18096build_libtool_need_lc=$archive_cmds_need_lc_RC
18097
18098# Whether or not to disallow shared libs when runtime libs are static
18099allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18100
18101# Whether or not to optimize for fast installation.
18102fast_install=$enable_fast_install
18103
18104# The host system.
18105host_alias=$host_alias
18106host=$host
18107
18108# An echo program that does not interpret backslashes.
18109echo=$lt_echo
18110
18111# The archiver.
18112AR=$lt_AR
18113AR_FLAGS=$lt_AR_FLAGS
18114
18115# A C compiler.
18116LTCC=$lt_LTCC
18117
18118# A language-specific compiler.
18119CC=$lt_compiler_RC
18120
18121# Is the compiler the GNU C compiler?
18122with_gcc=$GCC_RC
18123
18124# An ERE matcher.
18125EGREP=$lt_EGREP
18126
18127# The linker used to build libraries.
18128LD=$lt_LD_RC
18129
18130# Whether we need hard or soft links.
18131LN_S=$lt_LN_S
18132
18133# A BSD-compatible nm program.
18134NM=$lt_NM
18135
18136# A symbol stripping program
18137STRIP=$STRIP
18138
18139# Used to examine libraries when file_magic_cmd begins "file"
18140MAGIC_CMD=$MAGIC_CMD
18141
18142# Used on cygwin: DLL creation program.
18143DLLTOOL="$DLLTOOL"
18144
18145# Used on cygwin: object dumper.
18146OBJDUMP="$OBJDUMP"
18147
18148# Used on cygwin: assembler.
18149AS="$AS"
18150
18151# The name of the directory that contains temporary libtool files.
18152objdir=$objdir
18153
18154# How to create reloadable object files.
18155reload_flag=$lt_reload_flag
18156reload_cmds=$lt_reload_cmds
18157
18158# How to pass a linker flag through the compiler.
18159wl=$lt_lt_prog_compiler_wl_RC
18160
18161# Object file suffix (normally "o").
18162objext="$ac_objext"
18163
18164# Old archive suffix (normally "a").
18165libext="$libext"
18166
18167# Shared library suffix (normally ".so").
18168shrext='$shrext'
18169
18170# Executable file suffix (normally "").
18171exeext="$exeext"
18172
18173# Additional compiler flags for building library objects.
18174pic_flag=$lt_lt_prog_compiler_pic_RC
18175pic_mode=$pic_mode
18176
18177# What is the maximum length of a command?
18178max_cmd_len=$lt_cv_sys_max_cmd_len
18179
18180# Does compiler simultaneously support -c and -o options?
18181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18182
18183# Must we lock files when doing compilation ?
18184need_locks=$lt_need_locks
18185
18186# Do we need the lib prefix for modules?
18187need_lib_prefix=$need_lib_prefix
18188
18189# Do we need a version for libraries?
18190need_version=$need_version
18191
18192# Whether dlopen is supported.
18193dlopen_support=$enable_dlopen
18194
18195# Whether dlopen of programs is supported.
18196dlopen_self=$enable_dlopen_self
18197
18198# Whether dlopen of statically linked programs is supported.
18199dlopen_self_static=$enable_dlopen_self_static
18200
18201# Compiler flag to prevent dynamic linking.
18202link_static_flag=$lt_lt_prog_compiler_static_RC
18203
18204# Compiler flag to turn off builtin functions.
18205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18206
18207# Compiler flag to allow reflexive dlopens.
18208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18209
18210# Compiler flag to generate shared objects directly from archives.
18211whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18212
18213# Compiler flag to generate thread-safe objects.
18214thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18215
18216# Library versioning type.
18217version_type=$version_type
18218
18219# Format of library name prefix.
18220libname_spec=$lt_libname_spec
18221
18222# List of archive names. First name is the real one, the rest are links.
18223# The last name is the one that the linker finds with -lNAME.
18224library_names_spec=$lt_library_names_spec
18225
18226# The coded name of the library, if different from the real name.
18227soname_spec=$lt_soname_spec
18228
18229# Commands used to build and install an old-style archive.
18230RANLIB=$lt_RANLIB
18231old_archive_cmds=$lt_old_archive_cmds_RC
18232old_postinstall_cmds=$lt_old_postinstall_cmds
18233old_postuninstall_cmds=$lt_old_postuninstall_cmds
18234
18235# Create an old-style archive from a shared archive.
18236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18237
18238# Create a temporary old-style archive to link instead of a shared archive.
18239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18240
18241# Commands used to build and install a shared archive.
18242archive_cmds=$lt_archive_cmds_RC
18243archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18244postinstall_cmds=$lt_postinstall_cmds
18245postuninstall_cmds=$lt_postuninstall_cmds
18246
18247# Commands used to build a loadable module (assumed same as above if empty)
18248module_cmds=$lt_module_cmds_RC
18249module_expsym_cmds=$lt_module_expsym_cmds_RC
18250
18251# Commands to strip libraries.
18252old_striplib=$lt_old_striplib
18253striplib=$lt_striplib
18254
18255# Dependencies to place before the objects being linked to create a
18256# shared library.
18257predep_objects=$lt_predep_objects_RC
18258
18259# Dependencies to place after the objects being linked to create a
18260# shared library.
18261postdep_objects=$lt_postdep_objects_RC
18262
18263# Dependencies to place before the objects being linked to create a
18264# shared library.
18265predeps=$lt_predeps_RC
18266
18267# Dependencies to place after the objects being linked to create a
18268# shared library.
18269postdeps=$lt_postdeps_RC
18270
18271# The library search path used internally by the compiler when linking
18272# a shared library.
18273compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18274
18275# Method to check whether dependent libraries are shared objects.
18276deplibs_check_method=$lt_deplibs_check_method
18277
18278# Command to use when deplibs_check_method == file_magic.
18279file_magic_cmd=$lt_file_magic_cmd
18280
18281# Flag that allows shared libraries with undefined symbols to be built.
18282allow_undefined_flag=$lt_allow_undefined_flag_RC
18283
18284# Flag that forces no undefined symbols.
18285no_undefined_flag=$lt_no_undefined_flag_RC
18286
18287# Commands used to finish a libtool library installation in a directory.
18288finish_cmds=$lt_finish_cmds
18289
18290# Same as above, but a single script fragment to be evaled but not shown.
18291finish_eval=$lt_finish_eval
18292
18293# Take the output of nm and produce a listing of raw symbols and C names.
18294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18295
18296# Transform the output of nm in a proper C declaration
18297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18298
18299# Transform the output of nm in a C name address pair
18300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18301
18302# This is the shared library runtime path variable.
18303runpath_var=$runpath_var
18304
18305# This is the shared library path variable.
18306shlibpath_var=$shlibpath_var
18307
18308# Is shlibpath searched before the hard-coded library search path?
18309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18310
18311# How to hardcode a shared library path into an executable.
18312hardcode_action=$hardcode_action_RC
18313
18314# Whether we should hardcode library paths into libraries.
18315hardcode_into_libs=$hardcode_into_libs
18316
18317# Flag to hardcode \$libdir into a binary during linking.
18318# This must work even if \$libdir does not exist.
18319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18320
18321# If ld is used when linking, flag to hardcode \$libdir into
18322# a binary during linking. This must work even if \$libdir does
18323# not exist.
18324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18325
18326# Whether we need a single -rpath flag with a separated argument.
18327hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18328
18329# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18330# resulting binary.
18331hardcode_direct=$hardcode_direct_RC
18332
18333# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18334# resulting binary.
18335hardcode_minus_L=$hardcode_minus_L_RC
18336
18337# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18338# the resulting binary.
18339hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18340
18341# Set to yes if building a shared library automatically hardcodes DIR into the library
18342# and all subsequent libraries and executables linked against it.
18343hardcode_automatic=$hardcode_automatic_RC
18344
18345# Variables whose values should be saved in libtool wrapper scripts and
18346# restored at relink time.
18347variables_saved_for_relink="$variables_saved_for_relink"
18348
18349# Whether libtool must link a program against all its dependency libraries.
18350link_all_deplibs=$link_all_deplibs_RC
18351
18352# Compile-time system search path for libraries
18353sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18354
18355# Run-time system search path for libraries
18356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18357
18358# Fix the shell variable \$srcfile for the compiler.
18359fix_srcfile_path="$fix_srcfile_path_RC"
18360
18361# Set to yes if exported symbols are required.
18362always_export_symbols=$always_export_symbols_RC
18363
18364# The commands to list exported symbols.
18365export_symbols_cmds=$lt_export_symbols_cmds_RC
18366
18367# The commands to extract the exported symbol list from a shared archive.
18368extract_expsyms_cmds=$lt_extract_expsyms_cmds
18369
18370# Symbols that should not be listed in the preloaded symbols.
18371exclude_expsyms=$lt_exclude_expsyms_RC
18372
18373# Symbols that must always be exported.
18374include_expsyms=$lt_include_expsyms_RC
18375
18376# ### END LIBTOOL TAG CONFIG: $tagname
18377
18378__EOF__
18379
18380
18381else
18382 # If there is no Makefile yet, we rely on a make rule to execute
18383 # `config.status --recheck' to rerun these tests and create the
18384 # libtool script then.
18385 test -f Makefile && make "$ltmain"
18386fi
18387
18388
18389ac_ext=c
18390ac_cpp='$CPP $CPPFLAGS'
18391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393ac_compiler_gnu=$ac_cv_c_compiler_gnu
18394
18395CC="$lt_save_CC"
18396
18397 ;;
18398
18399 *)
18400 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18401echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18402 { (exit 1); exit 1; }; }
18403 ;;
18404 esac
18405
18406 # Append the new tag name to the list of available tags.
18407 if test -n "$tagname" ; then
18408 available_tags="$available_tags $tagname"
18409 fi
18410 fi
18411 done
18412 IFS="$lt_save_ifs"
18413
18414 # Now substitute the updated list of available tags.
18415 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18416 mv "${ofile}T" "$ofile"
18417 chmod +x "$ofile"
18418 else
18419 rm -f "${ofile}T"
18420 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18421echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18422 { (exit 1); exit 1; }; }
18423 fi
18424fi
John Criswell7a73b802003-06-30 21:59:07 +000018425
18426
18427
18428# This can be used to rebuild libtool when needed
18429LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18430
18431# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018432LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018433
18434# Prevent multiple expansion
18435
18436
18437
John Criswell47fdd832003-07-14 16:52:07 +000018438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
John Criswellde00db22003-08-25 16:49:54 +000018456# Extract the first word of "pwd", so it can be a program name with args.
18457set dummy pwd; ac_word=$2
18458echo "$as_me:$LINENO: checking for $ac_word" >&5
18459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18460if test "${ac_cv_path_RPWD+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462else
18463 case $RPWD in
18464 [\\/]* | ?:[\\/]*)
18465 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18466 ;;
18467 *)
18468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469for as_dir in $PATH
18470do
18471 IFS=$as_save_IFS
18472 test -z "$as_dir" && as_dir=.
18473 for ac_exec_ext in '' $ac_executable_extensions; do
18474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18475 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18477 break 2
18478 fi
18479done
18480done
18481
John Criswell39827c82003-09-23 15:28:52 +000018482 test -z "$ac_cv_path_RPWD" && ac_cv_path_RPWD="false"
John Criswellde00db22003-08-25 16:49:54 +000018483 ;;
18484esac
18485fi
18486RPWD=$ac_cv_path_RPWD
18487
18488if test -n "$RPWD"; then
18489 echo "$as_me:$LINENO: result: $RPWD" >&5
18490echo "${ECHO_T}$RPWD" >&6
18491else
18492 echo "$as_me:$LINENO: result: no" >&5
18493echo "${ECHO_T}no" >&6
18494fi
18495
John Criswell39827c82003-09-23 15:28:52 +000018496if test ${RPWD} = "false"
18497then
18498 { { echo "$as_me:$LINENO: error: pwd required but not found" >&5
18499echo "$as_me: error: pwd required but not found" >&2;}
18500 { (exit 1); exit 1; }; }
18501fi
18502
John Criswell7a73b802003-06-30 21:59:07 +000018503# Extract the first word of "ar", so it can be a program name with args.
18504set dummy ar; ac_word=$2
18505echo "$as_me:$LINENO: checking for $ac_word" >&5
18506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18507if test "${ac_cv_path_AR+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509else
18510 case $AR in
18511 [\\/]* | ?:[\\/]*)
18512 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18513 ;;
18514 *)
18515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18516for as_dir in $PATH
18517do
18518 IFS=$as_save_IFS
18519 test -z "$as_dir" && as_dir=.
18520 for ac_exec_ext in '' $ac_executable_extensions; do
18521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18522 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18524 break 2
18525 fi
18526done
18527done
18528
John Criswell39827c82003-09-23 15:28:52 +000018529 test -z "$ac_cv_path_AR" && ac_cv_path_AR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018530 ;;
18531esac
18532fi
18533AR=$ac_cv_path_AR
18534
18535if test -n "$AR"; then
18536 echo "$as_me:$LINENO: result: $AR" >&5
18537echo "${ECHO_T}$AR" >&6
18538else
18539 echo "$as_me:$LINENO: result: no" >&5
18540echo "${ECHO_T}no" >&6
18541fi
18542
John Criswell39827c82003-09-23 15:28:52 +000018543if test ${AR} = "false"
18544then
18545 { { echo "$as_me:$LINENO: error: ar required but not found" >&5
18546echo "$as_me: error: ar required but not found" >&2;}
18547 { (exit 1); exit 1; }; }
18548fi
18549
John Criswell7a73b802003-06-30 21:59:07 +000018550# Extract the first word of "sed", so it can be a program name with args.
18551set dummy sed; ac_word=$2
18552echo "$as_me:$LINENO: checking for $ac_word" >&5
18553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18554if test "${ac_cv_path_SED+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18556else
18557 case $SED in
18558 [\\/]* | ?:[\\/]*)
18559 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18560 ;;
18561 *)
18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563for as_dir in $PATH
18564do
18565 IFS=$as_save_IFS
18566 test -z "$as_dir" && as_dir=.
18567 for ac_exec_ext in '' $ac_executable_extensions; do
18568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18571 break 2
18572 fi
18573done
18574done
18575
John Criswell39827c82003-09-23 15:28:52 +000018576 test -z "$ac_cv_path_SED" && ac_cv_path_SED="false"
John Criswell7a73b802003-06-30 21:59:07 +000018577 ;;
18578esac
18579fi
18580SED=$ac_cv_path_SED
18581
18582if test -n "$SED"; then
18583 echo "$as_me:$LINENO: result: $SED" >&5
18584echo "${ECHO_T}$SED" >&6
18585else
18586 echo "$as_me:$LINENO: result: no" >&5
18587echo "${ECHO_T}no" >&6
18588fi
18589
John Criswell39827c82003-09-23 15:28:52 +000018590if test ${SED} = "false"
18591then
18592 { { echo "$as_me:$LINENO: error: sed required but not found" >&5
18593echo "$as_me: error: sed required but not found" >&2;}
18594 { (exit 1); exit 1; }; }
18595fi
18596
John Criswell7a73b802003-06-30 21:59:07 +000018597# Extract the first word of "rm", so it can be a program name with args.
18598set dummy rm; ac_word=$2
18599echo "$as_me:$LINENO: checking for $ac_word" >&5
18600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18601if test "${ac_cv_path_RM+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603else
18604 case $RM in
18605 [\\/]* | ?:[\\/]*)
18606 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18607 ;;
18608 *)
18609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18610for as_dir in $PATH
18611do
18612 IFS=$as_save_IFS
18613 test -z "$as_dir" && as_dir=.
18614 for ac_exec_ext in '' $ac_executable_extensions; do
18615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18616 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18618 break 2
18619 fi
18620done
18621done
18622
John Criswell39827c82003-09-23 15:28:52 +000018623 test -z "$ac_cv_path_RM" && ac_cv_path_RM="false"
John Criswell7a73b802003-06-30 21:59:07 +000018624 ;;
18625esac
18626fi
18627RM=$ac_cv_path_RM
18628
18629if test -n "$RM"; then
18630 echo "$as_me:$LINENO: result: $RM" >&5
18631echo "${ECHO_T}$RM" >&6
18632else
18633 echo "$as_me:$LINENO: result: no" >&5
18634echo "${ECHO_T}no" >&6
18635fi
18636
John Criswell39827c82003-09-23 15:28:52 +000018637if test ${RM} = "false"
18638then
18639 { { echo "$as_me:$LINENO: error: rm required but not found" >&5
18640echo "$as_me: error: rm required but not found" >&2;}
18641 { (exit 1); exit 1; }; }
18642fi
18643
John Criswell7a73b802003-06-30 21:59:07 +000018644# Extract the first word of "echo", so it can be a program name with args.
18645set dummy echo; ac_word=$2
18646echo "$as_me:$LINENO: checking for $ac_word" >&5
18647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18648if test "${ac_cv_path_ECHO+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650else
18651 case $ECHO in
18652 [\\/]* | ?:[\\/]*)
18653 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18654 ;;
18655 *)
18656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18657for as_dir in $PATH
18658do
18659 IFS=$as_save_IFS
18660 test -z "$as_dir" && as_dir=.
18661 for ac_exec_ext in '' $ac_executable_extensions; do
18662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18663 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18665 break 2
18666 fi
18667done
18668done
18669
John Criswell39827c82003-09-23 15:28:52 +000018670 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="false"
John Criswell7a73b802003-06-30 21:59:07 +000018671 ;;
18672esac
18673fi
18674ECHO=$ac_cv_path_ECHO
18675
18676if test -n "$ECHO"; then
18677 echo "$as_me:$LINENO: result: $ECHO" >&5
18678echo "${ECHO_T}$ECHO" >&6
18679else
18680 echo "$as_me:$LINENO: result: no" >&5
18681echo "${ECHO_T}no" >&6
18682fi
18683
John Criswell39827c82003-09-23 15:28:52 +000018684if test ${ECHO} = "false"
18685then
18686 { { echo "$as_me:$LINENO: error: echo required but not found" >&5
18687echo "$as_me: error: echo required but not found" >&2;}
18688 { (exit 1); exit 1; }; }
18689fi
18690
John Criswell7a73b802003-06-30 21:59:07 +000018691# Extract the first word of "mkdir", so it can be a program name with args.
18692set dummy mkdir; ac_word=$2
18693echo "$as_me:$LINENO: checking for $ac_word" >&5
18694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695if test "${ac_cv_path_MKDIR+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 case $MKDIR in
18699 [\\/]* | ?:[\\/]*)
18700 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18701 ;;
18702 *)
18703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704for as_dir in $PATH
18705do
18706 IFS=$as_save_IFS
18707 test -z "$as_dir" && as_dir=.
18708 for ac_exec_ext in '' $ac_executable_extensions; do
18709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712 break 2
18713 fi
18714done
18715done
18716
John Criswell39827c82003-09-23 15:28:52 +000018717 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="false"
John Criswell7a73b802003-06-30 21:59:07 +000018718 ;;
18719esac
18720fi
18721MKDIR=$ac_cv_path_MKDIR
18722
18723if test -n "$MKDIR"; then
18724 echo "$as_me:$LINENO: result: $MKDIR" >&5
18725echo "${ECHO_T}$MKDIR" >&6
18726else
18727 echo "$as_me:$LINENO: result: no" >&5
18728echo "${ECHO_T}no" >&6
18729fi
18730
John Criswell39827c82003-09-23 15:28:52 +000018731if test ${MKDIR} = "false"
18732then
18733 { { echo "$as_me:$LINENO: error: mkdir required but not found" >&5
18734echo "$as_me: error: mkdir required but not found" >&2;}
18735 { (exit 1); exit 1; }; }
18736fi
18737
John Criswell7a73b802003-06-30 21:59:07 +000018738# Extract the first word of "date", so it can be a program name with args.
18739set dummy date; ac_word=$2
18740echo "$as_me:$LINENO: checking for $ac_word" >&5
18741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742if test "${ac_cv_path_DATE+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745 case $DATE in
18746 [\\/]* | ?:[\\/]*)
18747 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18748 ;;
18749 *)
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751for as_dir in $PATH
18752do
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759 break 2
18760 fi
18761done
18762done
18763
John Criswell39827c82003-09-23 15:28:52 +000018764 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="false"
John Criswell7a73b802003-06-30 21:59:07 +000018765 ;;
18766esac
18767fi
18768DATE=$ac_cv_path_DATE
18769
18770if test -n "$DATE"; then
18771 echo "$as_me:$LINENO: result: $DATE" >&5
18772echo "${ECHO_T}$DATE" >&6
18773else
18774 echo "$as_me:$LINENO: result: no" >&5
18775echo "${ECHO_T}no" >&6
18776fi
18777
John Criswell39827c82003-09-23 15:28:52 +000018778if test ${DATE} = "false"
18779then
18780 { { echo "$as_me:$LINENO: error: date required but not found" >&5
18781echo "$as_me: error: date required but not found" >&2;}
18782 { (exit 1); exit 1; }; }
18783fi
18784
John Criswell7a73b802003-06-30 21:59:07 +000018785# Extract the first word of "mv", so it can be a program name with args.
18786set dummy mv; ac_word=$2
18787echo "$as_me:$LINENO: checking for $ac_word" >&5
18788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18789if test "${ac_cv_path_MV+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18791else
18792 case $MV in
18793 [\\/]* | ?:[\\/]*)
18794 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18795 ;;
18796 *)
18797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18798for as_dir in $PATH
18799do
18800 IFS=$as_save_IFS
18801 test -z "$as_dir" && as_dir=.
18802 for ac_exec_ext in '' $ac_executable_extensions; do
18803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18804 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18806 break 2
18807 fi
18808done
18809done
18810
John Criswell39827c82003-09-23 15:28:52 +000018811 test -z "$ac_cv_path_MV" && ac_cv_path_MV="false"
John Criswell7a73b802003-06-30 21:59:07 +000018812 ;;
18813esac
18814fi
18815MV=$ac_cv_path_MV
18816
18817if test -n "$MV"; then
18818 echo "$as_me:$LINENO: result: $MV" >&5
18819echo "${ECHO_T}$MV" >&6
18820else
18821 echo "$as_me:$LINENO: result: no" >&5
18822echo "${ECHO_T}no" >&6
18823fi
18824
John Criswell39827c82003-09-23 15:28:52 +000018825if test ${MV} = "false"
18826then
18827 { { echo "$as_me:$LINENO: error: mv required but not found" >&5
18828echo "$as_me: error: mv required but not found" >&2;}
18829 { (exit 1); exit 1; }; }
18830fi
18831
John Criswell7a73b802003-06-30 21:59:07 +000018832# Extract the first word of "dot", so it can be a program name with args.
18833set dummy dot; ac_word=$2
18834echo "$as_me:$LINENO: checking for $ac_word" >&5
18835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18836if test "${ac_cv_path_DOT+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 case $DOT in
18840 [\\/]* | ?:[\\/]*)
18841 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18842 ;;
18843 *)
18844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845for as_dir in $PATH
18846do
18847 IFS=$as_save_IFS
18848 test -z "$as_dir" && as_dir=.
18849 for ac_exec_ext in '' $ac_executable_extensions; do
18850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853 break 2
18854 fi
18855done
18856done
18857
John Criswell39827c82003-09-23 15:28:52 +000018858 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="false"
John Criswell7a73b802003-06-30 21:59:07 +000018859 ;;
18860esac
18861fi
18862DOT=$ac_cv_path_DOT
18863
18864if test -n "$DOT"; then
18865 echo "$as_me:$LINENO: result: $DOT" >&5
18866echo "${ECHO_T}$DOT" >&6
18867else
18868 echo "$as_me:$LINENO: result: no" >&5
18869echo "${ECHO_T}no" >&6
18870fi
18871
John Criswell39827c82003-09-23 15:28:52 +000018872
John Criswell7a73b802003-06-30 21:59:07 +000018873# Extract the first word of "etags", so it can be a program name with args.
18874set dummy etags; ac_word=$2
18875echo "$as_me:$LINENO: checking for $ac_word" >&5
18876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18877if test "${ac_cv_path_ETAGS+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18879else
18880 case $ETAGS in
18881 [\\/]* | ?:[\\/]*)
18882 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18883 ;;
18884 *)
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886for as_dir in $PATH
18887do
18888 IFS=$as_save_IFS
18889 test -z "$as_dir" && as_dir=.
18890 for ac_exec_ext in '' $ac_executable_extensions; do
18891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18894 break 2
18895 fi
18896done
18897done
18898
John Criswell39827c82003-09-23 15:28:52 +000018899 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="false"
John Criswell7a73b802003-06-30 21:59:07 +000018900 ;;
18901esac
18902fi
18903ETAGS=$ac_cv_path_ETAGS
18904
18905if test -n "$ETAGS"; then
18906 echo "$as_me:$LINENO: result: $ETAGS" >&5
18907echo "${ECHO_T}$ETAGS" >&6
18908else
18909 echo "$as_me:$LINENO: result: no" >&5
18910echo "${ECHO_T}no" >&6
18911fi
18912
John Criswell39827c82003-09-23 15:28:52 +000018913
John Criswellde00db22003-08-25 16:49:54 +000018914# Extract the first word of "python", so it can be a program name with args.
18915set dummy python; ac_word=$2
18916echo "$as_me:$LINENO: checking for $ac_word" >&5
18917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18918if test "${ac_cv_path_PYTHON+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 case $PYTHON in
18922 [\\/]* | ?:[\\/]*)
18923 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18924 ;;
18925 *)
18926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927for as_dir in $PATH
18928do
18929 IFS=$as_save_IFS
18930 test -z "$as_dir" && as_dir=.
18931 for ac_exec_ext in '' $ac_executable_extensions; do
18932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18933 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935 break 2
18936 fi
18937done
18938done
18939
John Criswell39827c82003-09-23 15:28:52 +000018940 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="false"
John Criswellde00db22003-08-25 16:49:54 +000018941 ;;
18942esac
18943fi
18944PYTHON=$ac_cv_path_PYTHON
18945
18946if test -n "$PYTHON"; then
18947 echo "$as_me:$LINENO: result: $PYTHON" >&5
18948echo "${ECHO_T}$PYTHON" >&6
18949else
18950 echo "$as_me:$LINENO: result: no" >&5
18951echo "${ECHO_T}no" >&6
18952fi
18953
John Criswell39827c82003-09-23 15:28:52 +000018954if test ${PYTHON} = "false"
18955then
John Criswell61095982003-09-23 20:46:32 +000018956 { echo "$as_me:$LINENO: WARNING: python required but not found" >&5
18957echo "$as_me: WARNING: python required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018958fi
18959
John Criswellde00db22003-08-25 16:49:54 +000018960# Extract the first word of "qmtest", so it can be a program name with args.
18961set dummy qmtest; ac_word=$2
18962echo "$as_me:$LINENO: checking for $ac_word" >&5
18963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964if test "${ac_cv_path_QMTEST+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967 case $QMTEST in
18968 [\\/]* | ?:[\\/]*)
18969 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18970 ;;
18971 *)
18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973for as_dir in $PATH
18974do
18975 IFS=$as_save_IFS
18976 test -z "$as_dir" && as_dir=.
18977 for ac_exec_ext in '' $ac_executable_extensions; do
18978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18981 break 2
18982 fi
18983done
18984done
18985
John Criswell39827c82003-09-23 15:28:52 +000018986 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="false"
John Criswellde00db22003-08-25 16:49:54 +000018987 ;;
18988esac
18989fi
18990QMTEST=$ac_cv_path_QMTEST
18991
18992if test -n "$QMTEST"; then
18993 echo "$as_me:$LINENO: result: $QMTEST" >&5
18994echo "${ECHO_T}$QMTEST" >&6
18995else
18996 echo "$as_me:$LINENO: result: no" >&5
18997echo "${ECHO_T}no" >&6
18998fi
18999
John Criswell39827c82003-09-23 15:28:52 +000019000if test ${QMTEST} = "false"
19001then
John Criswell61095982003-09-23 20:46:32 +000019002 { echo "$as_me:$LINENO: WARNING: qmtest required but not found" >&5
19003echo "$as_me: WARNING: qmtest required but not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019004fi
John Criswellde00db22003-08-25 16:49:54 +000019005
19006pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19007pymajor=`echo $pyversion | cut -d. -f1`
19008pyminor=`echo $pyversion | cut -d. -f2`
19009
19010if test "$pymajor" -ge "2"
19011then
19012 if test "$pymajor" -eq "2"
19013 then
19014 if test "$pyminor" -lt "2"
19015 then
19016 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19017echo "$as_me: error: Python 2.2 or greater required" >&2;}
19018 { (exit 1); exit 1; }; }
19019 fi
19020 fi
19021else
19022 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
19023echo "$as_me: error: Python 2.2 or greater required" >&2;}
19024 { (exit 1); exit 1; }; }
19025fi
John Criswell7a73b802003-06-30 21:59:07 +000019026
19027
19028
19029
19030
19031echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19032echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19033if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035else
19036 ac_check_lib_save_LIBS=$LIBS
19037LIBS="-lelf $LIBS"
19038cat >conftest.$ac_ext <<_ACEOF
19039#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019045
19046/* Override any gcc2 internal prototype to avoid an error. */
19047#ifdef __cplusplus
19048extern "C"
19049#endif
19050/* We use char because int might match the return type of a gcc2
19051 builtin and then its argument prototype would still apply. */
19052char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019053int
19054main ()
19055{
19056elf_begin ();
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061rm -f conftest.$ac_objext conftest$ac_exeext
19062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19063 (eval $ac_link) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -s conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_lib_elf_elf_begin=yes
19074else
19075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019076sed 's/^/| /' conftest.$ac_ext >&5
19077
John Criswell7a73b802003-06-30 21:59:07 +000019078ac_cv_lib_elf_elf_begin=no
19079fi
19080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19081LIBS=$ac_check_lib_save_LIBS
19082fi
19083echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19084echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19085if test $ac_cv_lib_elf_elf_begin = yes; then
19086 cat >>confdefs.h <<_ACEOF
19087#define HAVE_LIBELF 1
19088_ACEOF
19089
19090 LIBS="-lelf $LIBS"
19091
19092fi
19093
19094
19095echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19096echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19097if test "${ac_cv_search_dlopen+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19099else
19100 ac_func_search_save_LIBS=$LIBS
19101ac_cv_search_dlopen=no
19102cat >conftest.$ac_ext <<_ACEOF
19103#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019109
19110/* Override any gcc2 internal prototype to avoid an error. */
19111#ifdef __cplusplus
19112extern "C"
19113#endif
19114/* We use char because int might match the return type of a gcc2
19115 builtin and then its argument prototype would still apply. */
19116char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019117int
19118main ()
19119{
19120dlopen ();
19121 ;
19122 return 0;
19123}
19124_ACEOF
19125rm -f conftest.$ac_objext conftest$ac_exeext
19126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127 (eval $ac_link) 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -s conftest$ac_exeext'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_search_dlopen="none required"
19138else
19139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019140sed 's/^/| /' conftest.$ac_ext >&5
19141
John Criswell7a73b802003-06-30 21:59:07 +000019142fi
19143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19144if test "$ac_cv_search_dlopen" = no; then
19145 for ac_lib in dl; do
19146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19147 cat >conftest.$ac_ext <<_ACEOF
19148#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019154
19155/* Override any gcc2 internal prototype to avoid an error. */
19156#ifdef __cplusplus
19157extern "C"
19158#endif
19159/* We use char because int might match the return type of a gcc2
19160 builtin and then its argument prototype would still apply. */
19161char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019162int
19163main ()
19164{
19165dlopen ();
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext conftest$ac_exeext
19171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19172 (eval $ac_link) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_search_dlopen="-l$ac_lib"
19183break
19184else
19185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019186sed 's/^/| /' conftest.$ac_ext >&5
19187
John Criswell7a73b802003-06-30 21:59:07 +000019188fi
19189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19190 done
19191fi
19192LIBS=$ac_func_search_save_LIBS
19193fi
19194echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19195echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19196if test "$ac_cv_search_dlopen" != no; then
19197 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019198
19199cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019200#define HAVE_DLOPEN 1
19201_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019202
19203else
Brian Gaekec45be042003-10-07 06:01:34 +000019204 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19205echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019206fi
19207
19208
19209echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19210echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19211if test "${ac_cv_search_mallinfo+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213else
19214 ac_func_search_save_LIBS=$LIBS
19215ac_cv_search_mallinfo=no
19216cat >conftest.$ac_ext <<_ACEOF
19217#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019223
19224/* Override any gcc2 internal prototype to avoid an error. */
19225#ifdef __cplusplus
19226extern "C"
19227#endif
19228/* We use char because int might match the return type of a gcc2
19229 builtin and then its argument prototype would still apply. */
19230char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019231int
19232main ()
19233{
19234mallinfo ();
19235 ;
19236 return 0;
19237}
19238_ACEOF
19239rm -f conftest.$ac_objext conftest$ac_exeext
19240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19241 (eval $ac_link) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -s conftest$ac_exeext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_search_mallinfo="none required"
19252else
19253 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019254sed 's/^/| /' conftest.$ac_ext >&5
19255
John Criswell7a73b802003-06-30 21:59:07 +000019256fi
19257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19258if test "$ac_cv_search_mallinfo" = no; then
19259 for ac_lib in malloc; do
19260 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19261 cat >conftest.$ac_ext <<_ACEOF
19262#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019263/* confdefs.h. */
19264_ACEOF
19265cat confdefs.h >>conftest.$ac_ext
19266cat >>conftest.$ac_ext <<_ACEOF
19267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019268
19269/* Override any gcc2 internal prototype to avoid an error. */
19270#ifdef __cplusplus
19271extern "C"
19272#endif
19273/* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019276int
19277main ()
19278{
19279mallinfo ();
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext conftest$ac_exeext
19285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -s conftest$ac_exeext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_cv_search_mallinfo="-l$ac_lib"
19297break
19298else
19299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019300sed 's/^/| /' conftest.$ac_ext >&5
19301
John Criswell7a73b802003-06-30 21:59:07 +000019302fi
19303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19304 done
19305fi
19306LIBS=$ac_func_search_save_LIBS
19307fi
19308echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19309echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19310if test "$ac_cv_search_mallinfo" != no; then
19311 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019312
19313cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019314#define HAVE_MALLINFO 1
19315_ACEOF
19316
19317fi
19318
19319
19320
19321echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19322echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19323if test "${ac_cv_header_stdc+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325else
19326 cat >conftest.$ac_ext <<_ACEOF
19327#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019328/* confdefs.h. */
19329_ACEOF
19330cat confdefs.h >>conftest.$ac_ext
19331cat >>conftest.$ac_ext <<_ACEOF
19332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019333#include <stdlib.h>
19334#include <stdarg.h>
19335#include <string.h>
19336#include <float.h>
19337
John Criswell0c38eaf2003-09-10 15:17:25 +000019338int
19339main ()
19340{
19341
19342 ;
19343 return 0;
19344}
John Criswell7a73b802003-06-30 21:59:07 +000019345_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019346rm -f conftest.$ac_objext
19347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019349 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000019350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019351 (exit $ac_status); } &&
19352 { ac_try='test -s conftest.$ac_objext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019358 ac_cv_header_stdc=yes
19359else
19360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019364fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019365rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019366
19367if test $ac_cv_header_stdc = yes; then
19368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19369 cat >conftest.$ac_ext <<_ACEOF
19370#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019376#include <string.h>
19377
19378_ACEOF
19379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019380 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019381 :
19382else
19383 ac_cv_header_stdc=no
19384fi
19385rm -f conftest*
19386
19387fi
19388
19389if test $ac_cv_header_stdc = yes; then
19390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19391 cat >conftest.$ac_ext <<_ACEOF
19392#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019398#include <stdlib.h>
19399
19400_ACEOF
19401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019402 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019403 :
19404else
19405 ac_cv_header_stdc=no
19406fi
19407rm -f conftest*
19408
19409fi
19410
19411if test $ac_cv_header_stdc = yes; then
19412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19413 if test "$cross_compiling" = yes; then
19414 :
19415else
19416 cat >conftest.$ac_ext <<_ACEOF
19417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019418/* confdefs.h. */
19419_ACEOF
19420cat confdefs.h >>conftest.$ac_ext
19421cat >>conftest.$ac_ext <<_ACEOF
19422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019423#include <ctype.h>
19424#if ((' ' & 0x0FF) == 0x020)
19425# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19426# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19427#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019428# define ISLOWER(c) \
19429 (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000019430 || ('j' <= (c) && (c) <= 'r') \
19431 || ('s' <= (c) && (c) <= 'z'))
19432# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19433#endif
19434
19435#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19436int
19437main ()
19438{
19439 int i;
19440 for (i = 0; i < 256; i++)
19441 if (XOR (islower (i), ISLOWER (i))
19442 || toupper (i) != TOUPPER (i))
19443 exit(2);
19444 exit (0);
19445}
19446_ACEOF
19447rm -f conftest$ac_exeext
19448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449 (eval $ac_link) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 :
19459else
19460 echo "$as_me: program exited with status $ac_status" >&5
19461echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019462sed 's/^/| /' conftest.$ac_ext >&5
19463
John Criswell7a73b802003-06-30 21:59:07 +000019464( exit $ac_status )
19465ac_cv_header_stdc=no
19466fi
John Criswell0c38eaf2003-09-10 15:17:25 +000019467rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019468fi
19469fi
19470fi
19471echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19472echo "${ECHO_T}$ac_cv_header_stdc" >&6
19473if test $ac_cv_header_stdc = yes; then
19474
19475cat >>confdefs.h <<\_ACEOF
19476#define STDC_HEADERS 1
19477_ACEOF
19478
19479fi
19480
19481echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19482echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19483if test "${ac_cv_header_sys_wait_h+set}" = set; then
19484 echo $ECHO_N "(cached) $ECHO_C" >&6
19485else
19486 cat >conftest.$ac_ext <<_ACEOF
19487#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019493#include <sys/types.h>
19494#include <sys/wait.h>
19495#ifndef WEXITSTATUS
19496# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19497#endif
19498#ifndef WIFEXITED
19499# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19500#endif
19501
John Criswell7a73b802003-06-30 21:59:07 +000019502int
19503main ()
19504{
19505 int s;
19506 wait (&s);
19507 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext
19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514 (eval $ac_compile) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_header_sys_wait_h=yes
19525else
19526 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019527sed 's/^/| /' conftest.$ac_ext >&5
19528
John Criswell7a73b802003-06-30 21:59:07 +000019529ac_cv_header_sys_wait_h=no
19530fi
19531rm -f conftest.$ac_objext conftest.$ac_ext
19532fi
19533echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19534echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19535if test $ac_cv_header_sys_wait_h = yes; then
19536
19537cat >>confdefs.h <<\_ACEOF
19538#define HAVE_SYS_WAIT_H 1
19539_ACEOF
19540
19541fi
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19553do
19554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19555if eval "test \"\${$as_ac_Header+set}\" = set"; then
19556 echo "$as_me:$LINENO: checking for $ac_header" >&5
19557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19558if eval "test \"\${$as_ac_Header+set}\" = set"; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560fi
19561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19563else
19564 # Is the header compilable?
19565echo "$as_me:$LINENO: checking $ac_header usability" >&5
19566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19567cat >conftest.$ac_ext <<_ACEOF
19568#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019569/* confdefs.h. */
19570_ACEOF
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019574$ac_includes_default
19575#include <$ac_header>
19576_ACEOF
19577rm -f conftest.$ac_objext
19578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579 (eval $ac_compile) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_header_compiler=yes
19590else
19591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019592sed 's/^/| /' conftest.$ac_ext >&5
19593
John Criswell7a73b802003-06-30 21:59:07 +000019594ac_header_compiler=no
19595fi
19596rm -f conftest.$ac_objext conftest.$ac_ext
19597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19598echo "${ECHO_T}$ac_header_compiler" >&6
19599
19600# Is the header present?
19601echo "$as_me:$LINENO: checking $ac_header presence" >&5
19602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19603cat >conftest.$ac_ext <<_ACEOF
19604#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019610#include <$ac_header>
19611_ACEOF
19612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19614 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019615 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } >/dev/null; then
19620 if test -s conftest.err; then
19621 ac_cpp_err=$ac_c_preproc_warn_flag
19622 else
19623 ac_cpp_err=
19624 fi
19625else
19626 ac_cpp_err=yes
19627fi
19628if test -z "$ac_cpp_err"; then
19629 ac_header_preproc=yes
19630else
19631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019632sed 's/^/| /' conftest.$ac_ext >&5
19633
John Criswell7a73b802003-06-30 21:59:07 +000019634 ac_header_preproc=no
19635fi
19636rm -f conftest.err conftest.$ac_ext
19637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19638echo "${ECHO_T}$ac_header_preproc" >&6
19639
19640# So? What about this header?
19641case $ac_header_compiler:$ac_header_preproc in
19642 yes:no )
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19647 (
19648 cat <<\_ASBOX
19649## ------------------------------------ ##
19650## Report this to bug-autoconf@gnu.org. ##
19651## ------------------------------------ ##
19652_ASBOX
19653 ) |
19654 sed "s/^/$as_me: WARNING: /" >&2
19655 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019656 no:yes )
19657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19663 (
19664 cat <<\_ASBOX
19665## ------------------------------------ ##
19666## Report this to bug-autoconf@gnu.org. ##
19667## ------------------------------------ ##
19668_ASBOX
19669 ) |
19670 sed "s/^/$as_me: WARNING: /" >&2
19671 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019672esac
19673echo "$as_me:$LINENO: checking for $ac_header" >&5
19674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19675if eval "test \"\${$as_ac_Header+set}\" = set"; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677else
19678 eval "$as_ac_Header=$ac_header_preproc"
19679fi
19680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19682
19683fi
19684if test `eval echo '${'$as_ac_Header'}'` = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19687_ACEOF
19688
19689fi
19690
19691done
19692
19693
19694
19695
19696
John Criswelle8a63eb2003-10-23 19:16:12 +000019697for ac_header in malloc.h sys/mman.h sys/resource.h
John Criswell7a73b802003-06-30 21:59:07 +000019698do
19699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19700if eval "test \"\${$as_ac_Header+set}\" = set"; then
19701 echo "$as_me:$LINENO: checking for $ac_header" >&5
19702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19703if eval "test \"\${$as_ac_Header+set}\" = set"; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705fi
19706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19708else
19709 # Is the header compilable?
19710echo "$as_me:$LINENO: checking $ac_header usability" >&5
19711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19712cat >conftest.$ac_ext <<_ACEOF
19713#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019714/* confdefs.h. */
19715_ACEOF
19716cat confdefs.h >>conftest.$ac_ext
19717cat >>conftest.$ac_ext <<_ACEOF
19718/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019719$ac_includes_default
19720#include <$ac_header>
19721_ACEOF
19722rm -f conftest.$ac_objext
19723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_header_compiler=yes
19735else
19736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019737sed 's/^/| /' conftest.$ac_ext >&5
19738
John Criswell7a73b802003-06-30 21:59:07 +000019739ac_header_compiler=no
19740fi
19741rm -f conftest.$ac_objext conftest.$ac_ext
19742echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19743echo "${ECHO_T}$ac_header_compiler" >&6
19744
19745# Is the header present?
19746echo "$as_me:$LINENO: checking $ac_header presence" >&5
19747echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19748cat >conftest.$ac_ext <<_ACEOF
19749#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019755#include <$ac_header>
19756_ACEOF
19757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19759 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019760 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } >/dev/null; then
19765 if test -s conftest.err; then
19766 ac_cpp_err=$ac_c_preproc_warn_flag
19767 else
19768 ac_cpp_err=
19769 fi
19770else
19771 ac_cpp_err=yes
19772fi
19773if test -z "$ac_cpp_err"; then
19774 ac_header_preproc=yes
19775else
19776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019777sed 's/^/| /' conftest.$ac_ext >&5
19778
John Criswell7a73b802003-06-30 21:59:07 +000019779 ac_header_preproc=no
19780fi
19781rm -f conftest.err conftest.$ac_ext
19782echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19783echo "${ECHO_T}$ac_header_preproc" >&6
19784
19785# So? What about this header?
19786case $ac_header_compiler:$ac_header_preproc in
19787 yes:no )
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19792 (
19793 cat <<\_ASBOX
19794## ------------------------------------ ##
19795## Report this to bug-autoconf@gnu.org. ##
19796## ------------------------------------ ##
19797_ASBOX
19798 ) |
19799 sed "s/^/$as_me: WARNING: /" >&2
19800 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019801 no:yes )
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19808 (
19809 cat <<\_ASBOX
19810## ------------------------------------ ##
19811## Report this to bug-autoconf@gnu.org. ##
19812## ------------------------------------ ##
19813_ASBOX
19814 ) |
19815 sed "s/^/$as_me: WARNING: /" >&2
19816 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019817esac
19818echo "$as_me:$LINENO: checking for $ac_header" >&5
19819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19820if eval "test \"\${$as_ac_Header+set}\" = set"; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822else
19823 eval "$as_ac_Header=$ac_header_preproc"
19824fi
19825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19827
19828fi
19829if test `eval echo '${'$as_ac_Header'}'` = yes; then
19830 cat >>confdefs.h <<_ACEOF
19831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19832_ACEOF
19833
19834fi
19835
19836done
19837
19838
19839
19840
19841for ac_header in dlfcn.h link.h
19842do
19843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19844if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo "$as_me:$LINENO: checking for $ac_header" >&5
19846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19847if eval "test \"\${$as_ac_Header+set}\" = set"; then
19848 echo $ECHO_N "(cached) $ECHO_C" >&6
19849fi
19850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19852else
19853 # Is the header compilable?
19854echo "$as_me:$LINENO: checking $ac_header usability" >&5
19855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19856cat >conftest.$ac_ext <<_ACEOF
19857#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019863$ac_includes_default
19864#include <$ac_header>
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } &&
19872 { ac_try='test -s conftest.$ac_objext'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_header_compiler=yes
19879else
19880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019881sed 's/^/| /' conftest.$ac_ext >&5
19882
John Criswell7a73b802003-06-30 21:59:07 +000019883ac_header_compiler=no
19884fi
19885rm -f conftest.$ac_objext conftest.$ac_ext
19886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19887echo "${ECHO_T}$ac_header_compiler" >&6
19888
19889# Is the header present?
19890echo "$as_me:$LINENO: checking $ac_header presence" >&5
19891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19892cat >conftest.$ac_ext <<_ACEOF
19893#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019899#include <$ac_header>
19900_ACEOF
19901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19903 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019904 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } >/dev/null; then
19909 if test -s conftest.err; then
19910 ac_cpp_err=$ac_c_preproc_warn_flag
19911 else
19912 ac_cpp_err=
19913 fi
19914else
19915 ac_cpp_err=yes
19916fi
19917if test -z "$ac_cpp_err"; then
19918 ac_header_preproc=yes
19919else
19920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019921sed 's/^/| /' conftest.$ac_ext >&5
19922
John Criswell7a73b802003-06-30 21:59:07 +000019923 ac_header_preproc=no
19924fi
19925rm -f conftest.err conftest.$ac_ext
19926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19927echo "${ECHO_T}$ac_header_preproc" >&6
19928
19929# So? What about this header?
19930case $ac_header_compiler:$ac_header_preproc in
19931 yes:no )
19932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19936 (
19937 cat <<\_ASBOX
19938## ------------------------------------ ##
19939## Report this to bug-autoconf@gnu.org. ##
19940## ------------------------------------ ##
19941_ASBOX
19942 ) |
19943 sed "s/^/$as_me: WARNING: /" >&2
19944 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019945 no:yes )
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019951echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19952 (
19953 cat <<\_ASBOX
19954## ------------------------------------ ##
19955## Report this to bug-autoconf@gnu.org. ##
19956## ------------------------------------ ##
19957_ASBOX
19958 ) |
19959 sed "s/^/$as_me: WARNING: /" >&2
19960 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019961esac
19962echo "$as_me:$LINENO: checking for $ac_header" >&5
19963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19964if eval "test \"\${$as_ac_Header+set}\" = set"; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 eval "$as_ac_Header=$ac_header_preproc"
19968fi
19969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19971
19972fi
19973if test `eval echo '${'$as_ac_Header'}'` = yes; then
19974 cat >>confdefs.h <<_ACEOF
19975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19976_ACEOF
19977
19978fi
19979
19980done
19981
19982
19983
John Criswell7a73b802003-06-30 21:59:07 +000019984echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19985echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19986if test "${ac_cv_c_const+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19988else
19989 cat >conftest.$ac_ext <<_ACEOF
19990#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019991/* confdefs.h. */
19992_ACEOF
19993cat confdefs.h >>conftest.$ac_ext
19994cat >>conftest.$ac_ext <<_ACEOF
19995/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019996
John Criswell7a73b802003-06-30 21:59:07 +000019997int
19998main ()
19999{
20000/* FIXME: Include the comments suggested by Paul. */
20001#ifndef __cplusplus
20002 /* Ultrix mips cc rejects this. */
20003 typedef int charset[2];
20004 const charset x;
20005 /* SunOS 4.1.1 cc rejects this. */
20006 char const *const *ccp;
20007 char **p;
20008 /* NEC SVR4.0.2 mips cc rejects this. */
20009 struct point {int x, y;};
20010 static struct point const zero = {0,0};
20011 /* AIX XL C 1.02.0.0 rejects this.
20012 It does not let you subtract one const X* pointer from another in
20013 an arm of an if-expression whose if-part is not a constant
20014 expression */
20015 const char *g = "string";
20016 ccp = &g + (g ? g-g : 0);
20017 /* HPUX 7.0 cc rejects these. */
20018 ++ccp;
20019 p = (char**) ccp;
20020 ccp = (char const *const *) p;
20021 { /* SCO 3.2v4 cc rejects this. */
20022 char *t;
20023 char const *s = 0 ? (char *) 0 : (char const *) 0;
20024
20025 *t++ = 0;
20026 }
20027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20028 int x[] = {25, 17};
20029 const int *foo = &x[0];
20030 ++foo;
20031 }
20032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20033 typedef const int *iptr;
20034 iptr p = 0;
20035 ++p;
20036 }
20037 { /* AIX XL C 1.02.0.0 rejects this saying
20038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20039 struct s { int j; const int *ap[3]; };
20040 struct s *b; b->j = 5;
20041 }
20042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20043 const int foo = 10;
20044 }
20045#endif
20046
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20053 (eval $ac_compile) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_c_const=yes
20064else
20065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020066sed 's/^/| /' conftest.$ac_ext >&5
20067
John Criswell7a73b802003-06-30 21:59:07 +000020068ac_cv_c_const=no
20069fi
20070rm -f conftest.$ac_objext conftest.$ac_ext
20071fi
20072echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20073echo "${ECHO_T}$ac_cv_c_const" >&6
20074if test $ac_cv_c_const = no; then
20075
20076cat >>confdefs.h <<\_ACEOF
20077#define const
20078_ACEOF
20079
20080fi
20081
20082echo "$as_me:$LINENO: checking for inline" >&5
20083echo $ECHO_N "checking for inline... $ECHO_C" >&6
20084if test "${ac_cv_c_inline+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086else
20087 ac_cv_c_inline=no
20088for ac_kw in inline __inline__ __inline; do
20089 cat >conftest.$ac_ext <<_ACEOF
20090#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020091/* confdefs.h. */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020096#ifndef __cplusplus
John Criswell0c38eaf2003-09-10 15:17:25 +000020097typedef int foo_t;
20098static $ac_kw foo_t static_foo () {return 0; }
20099$ac_kw foo_t foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000020100#endif
20101
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105 (eval $ac_compile) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_c_inline=$ac_kw; break
20116else
20117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020118sed 's/^/| /' conftest.$ac_ext >&5
20119
John Criswell7a73b802003-06-30 21:59:07 +000020120fi
20121rm -f conftest.$ac_objext conftest.$ac_ext
20122done
20123
20124fi
20125echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20126echo "${ECHO_T}$ac_cv_c_inline" >&6
20127case $ac_cv_c_inline in
20128 inline | yes) ;;
20129 no)
20130cat >>confdefs.h <<\_ACEOF
20131#define inline
20132_ACEOF
20133 ;;
20134 *) cat >>confdefs.h <<_ACEOF
20135#define inline $ac_cv_c_inline
20136_ACEOF
20137 ;;
20138esac
20139
20140
20141echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20142echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20143if test "${ac_cv_c_bigendian+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145else
20146 # See if sys/param.h defines the BYTE_ORDER macro.
20147cat >conftest.$ac_ext <<_ACEOF
20148#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020149/* confdefs.h. */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020154#include <sys/types.h>
20155#include <sys/param.h>
20156
John Criswell7a73b802003-06-30 21:59:07 +000020157int
20158main ()
20159{
20160#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20161 bogus endian macros
20162#endif
20163
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168rm -f conftest.$ac_objext
20169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170 (eval $ac_compile) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } &&
20174 { ac_try='test -s conftest.$ac_objext'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; }; then
20180 # It does; now see whether it defined to BIG_ENDIAN or not.
20181cat >conftest.$ac_ext <<_ACEOF
20182#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020188#include <sys/types.h>
20189#include <sys/param.h>
20190
John Criswell7a73b802003-06-30 21:59:07 +000020191int
20192main ()
20193{
20194#if BYTE_ORDER != BIG_ENDIAN
20195 not big endian
20196#endif
20197
20198 ;
20199 return 0;
20200}
20201_ACEOF
20202rm -f conftest.$ac_objext
20203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204 (eval $ac_compile) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } &&
20208 { ac_try='test -s conftest.$ac_objext'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20214 ac_cv_c_bigendian=yes
20215else
20216 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020217sed 's/^/| /' conftest.$ac_ext >&5
20218
John Criswell7a73b802003-06-30 21:59:07 +000020219ac_cv_c_bigendian=no
20220fi
20221rm -f conftest.$ac_objext conftest.$ac_ext
20222else
20223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020224sed 's/^/| /' conftest.$ac_ext >&5
20225
John Criswell7a73b802003-06-30 21:59:07 +000020226# It does not; compile a test program.
20227if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020228 # try to guess the endianness by grepping values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000020229 ac_cv_c_bigendian=unknown
20230 cat >conftest.$ac_ext <<_ACEOF
20231#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020237short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20238short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20239void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20240short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20241short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20242void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswell7a73b802003-06-30 21:59:07 +000020243int
20244main ()
20245{
20246 _ascii (); _ebcdic ();
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
John Criswell0c38eaf2003-09-10 15:17:25 +000020263 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020264 ac_cv_c_bigendian=yes
20265fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020266if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000020267 if test "$ac_cv_c_bigendian" = unknown; then
20268 ac_cv_c_bigendian=no
20269 else
20270 # finding both strings is unlikely to happen, but who knows?
20271 ac_cv_c_bigendian=unknown
20272 fi
20273fi
20274else
20275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020276sed 's/^/| /' conftest.$ac_ext >&5
20277
John Criswell7a73b802003-06-30 21:59:07 +000020278fi
20279rm -f conftest.$ac_objext conftest.$ac_ext
20280else
20281 cat >conftest.$ac_ext <<_ACEOF
20282#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020288int
20289main ()
20290{
20291 /* Are we little or big endian? From Harbison&Steele. */
20292 union
20293 {
20294 long l;
20295 char c[sizeof (long)];
20296 } u;
20297 u.l = 1;
20298 exit (u.c[sizeof (long) - 1] == 1);
20299}
20300_ACEOF
20301rm -f conftest$ac_exeext
20302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 ac_cv_c_bigendian=no
20313else
20314 echo "$as_me: program exited with status $ac_status" >&5
20315echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020316sed 's/^/| /' conftest.$ac_ext >&5
20317
John Criswell7a73b802003-06-30 21:59:07 +000020318( exit $ac_status )
20319ac_cv_c_bigendian=yes
20320fi
John Criswell0c38eaf2003-09-10 15:17:25 +000020321rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020322fi
20323fi
20324rm -f conftest.$ac_objext conftest.$ac_ext
20325fi
20326echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20327echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20328case $ac_cv_c_bigendian in
20329 yes)
John Criswell5ab73462003-10-09 15:44:28 +000020330
20331cat >>confdefs.h <<\_ACEOF
20332#define ENDIAN_BIG
John Criswell7a73b802003-06-30 21:59:07 +000020333_ACEOF
20334 ;;
20335 no)
John Criswell5ab73462003-10-09 15:44:28 +000020336
20337cat >>confdefs.h <<\_ACEOF
20338#define ENDIAN_LITTLE
John Criswell7a73b802003-06-30 21:59:07 +000020339_ACEOF
20340 ;;
20341 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020342 { { echo "$as_me:$LINENO: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020343presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020344echo "$as_me: error: unknown endianness
John Criswell7a73b802003-06-30 21:59:07 +000020345presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20346 { (exit 1); exit 1; }; } ;;
20347esac
20348
20349
20350echo "$as_me:$LINENO: checking for pid_t" >&5
20351echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20352if test "${ac_cv_type_pid_t+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354else
20355 cat >conftest.$ac_ext <<_ACEOF
20356#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020362$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020363int
20364main ()
20365{
20366if ((pid_t *) 0)
20367 return 0;
20368if (sizeof (pid_t))
20369 return 0;
20370 ;
20371 return 0;
20372}
20373_ACEOF
20374rm -f conftest.$ac_objext
20375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376 (eval $ac_compile) 2>&5
20377 ac_status=$?
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } &&
20380 { ac_try='test -s conftest.$ac_objext'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; }; then
20386 ac_cv_type_pid_t=yes
20387else
20388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020389sed 's/^/| /' conftest.$ac_ext >&5
20390
John Criswell7a73b802003-06-30 21:59:07 +000020391ac_cv_type_pid_t=no
20392fi
20393rm -f conftest.$ac_objext conftest.$ac_ext
20394fi
20395echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20396echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20397if test $ac_cv_type_pid_t = yes; then
20398 :
20399else
20400
20401cat >>confdefs.h <<_ACEOF
20402#define pid_t int
20403_ACEOF
20404
20405fi
20406
20407echo "$as_me:$LINENO: checking for size_t" >&5
20408echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20409if test "${ac_cv_type_size_t+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412 cat >conftest.$ac_ext <<_ACEOF
20413#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020419$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020420int
20421main ()
20422{
20423if ((size_t *) 0)
20424 return 0;
20425if (sizeof (size_t))
20426 return 0;
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20433 (eval $ac_compile) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_cv_type_size_t=yes
20444else
20445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020446sed 's/^/| /' conftest.$ac_ext >&5
20447
John Criswell7a73b802003-06-30 21:59:07 +000020448ac_cv_type_size_t=no
20449fi
20450rm -f conftest.$ac_objext conftest.$ac_ext
20451fi
20452echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20453echo "${ECHO_T}$ac_cv_type_size_t" >&6
20454if test $ac_cv_type_size_t = yes; then
20455 :
20456else
20457
20458cat >>confdefs.h <<_ACEOF
20459#define size_t unsigned
20460_ACEOF
20461
20462fi
20463
20464echo "$as_me:$LINENO: checking for int64_t" >&5
20465echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20466if test "${ac_cv_type_int64_t+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468else
20469 cat >conftest.$ac_ext <<_ACEOF
20470#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020471/* confdefs.h. */
20472_ACEOF
20473cat confdefs.h >>conftest.$ac_ext
20474cat >>conftest.$ac_ext <<_ACEOF
20475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020476$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020477int
20478main ()
20479{
20480if ((int64_t *) 0)
20481 return 0;
20482if (sizeof (int64_t))
20483 return 0;
20484 ;
20485 return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext
20489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20490 (eval $ac_compile) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -s conftest.$ac_objext'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_cv_type_int64_t=yes
20501else
20502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020503sed 's/^/| /' conftest.$ac_ext >&5
20504
John Criswell7a73b802003-06-30 21:59:07 +000020505ac_cv_type_int64_t=no
20506fi
20507rm -f conftest.$ac_objext conftest.$ac_ext
20508fi
20509echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20510echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20511if test $ac_cv_type_int64_t = yes; then
20512
20513cat >>confdefs.h <<_ACEOF
20514#define HAVE_INT64_T 1
20515_ACEOF
20516
20517
20518else
20519 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20520echo "$as_me: error: Type int64_t required but not found" >&2;}
20521 { (exit 1); exit 1; }; }
20522fi
20523
20524echo "$as_me:$LINENO: checking for uint64_t" >&5
20525echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20526if test "${ac_cv_type_uint64_t+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20528else
20529 cat >conftest.$ac_ext <<_ACEOF
20530#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020536$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020537int
20538main ()
20539{
20540if ((uint64_t *) 0)
20541 return 0;
20542if (sizeof (uint64_t))
20543 return 0;
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -s conftest.$ac_objext'
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; }; then
20560 ac_cv_type_uint64_t=yes
20561else
20562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020563sed 's/^/| /' conftest.$ac_ext >&5
20564
John Criswell7a73b802003-06-30 21:59:07 +000020565ac_cv_type_uint64_t=no
20566fi
20567rm -f conftest.$ac_objext conftest.$ac_ext
20568fi
20569echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20570echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20571if test $ac_cv_type_uint64_t = yes; then
20572
20573cat >>confdefs.h <<_ACEOF
20574#define HAVE_UINT64_T 1
20575_ACEOF
20576
20577
20578else
20579 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20580echo "$as_me: error: Type uint64_t required but not found" >&2;}
20581 { (exit 1); exit 1; }; }
20582fi
20583
20584echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20585echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20586if test "${ac_cv_header_time+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588else
20589 cat >conftest.$ac_ext <<_ACEOF
20590#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020591/* confdefs.h. */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020596#include <sys/types.h>
20597#include <sys/time.h>
20598#include <time.h>
20599
John Criswell7a73b802003-06-30 21:59:07 +000020600int
20601main ()
20602{
20603if ((struct tm *) 0)
20604return 0;
20605 ;
20606 return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
20610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611 (eval $ac_compile) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -s conftest.$ac_objext'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_cv_header_time=yes
20622else
20623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020624sed 's/^/| /' conftest.$ac_ext >&5
20625
John Criswell7a73b802003-06-30 21:59:07 +000020626ac_cv_header_time=no
20627fi
20628rm -f conftest.$ac_objext conftest.$ac_ext
20629fi
20630echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20631echo "${ECHO_T}$ac_cv_header_time" >&6
20632if test $ac_cv_header_time = yes; then
20633
20634cat >>confdefs.h <<\_ACEOF
20635#define TIME_WITH_SYS_TIME 1
20636_ACEOF
20637
20638fi
20639
20640echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20641echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20642if test "${ac_cv_struct_tm+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644else
20645 cat >conftest.$ac_ext <<_ACEOF
20646#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020652#include <sys/types.h>
20653#include <time.h>
20654
John Criswell7a73b802003-06-30 21:59:07 +000020655int
20656main ()
20657{
20658struct tm *tp; tp->tm_sec;
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663rm -f conftest.$ac_objext
20664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20665 (eval $ac_compile) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 ac_cv_struct_tm=time.h
20676else
20677 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020678sed 's/^/| /' conftest.$ac_ext >&5
20679
John Criswell7a73b802003-06-30 21:59:07 +000020680ac_cv_struct_tm=sys/time.h
20681fi
20682rm -f conftest.$ac_objext conftest.$ac_ext
20683fi
20684echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20685echo "${ECHO_T}$ac_cv_struct_tm" >&6
20686if test $ac_cv_struct_tm = sys/time.h; then
20687
20688cat >>confdefs.h <<\_ACEOF
20689#define TM_IN_SYS_TIME 1
20690_ACEOF
20691
20692fi
20693
20694
John Criswella0137d32003-10-13 16:22:01 +000020695
20696
20697
20698 ac_ext=c
20699ac_cpp='$CPP $CPPFLAGS'
20700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20702ac_compiler_gnu=$ac_cv_c_compiler_gnu
20703
20704 if test "$cross_compiling" = yes; then
20705 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20706See \`config.log' for more details." >&5
20707echo "$as_me: error: cannot run test program while cross compiling
20708See \`config.log' for more details." >&2;}
20709 { (exit 1); exit 1; }; }
20710else
20711 cat >conftest.$ac_ext <<_ACEOF
20712#line $LINENO "configure"
20713/* confdefs.h. */
20714_ACEOF
20715cat confdefs.h >>conftest.$ac_ext
20716cat >>conftest.$ac_ext <<_ACEOF
20717/* end confdefs.h. */
20718#include <stdio.h>
20719 #include <stdlib.h>
20720int
20721main ()
20722{
20723
20724 volatile double A, B;
20725 char Buffer[100];
20726 A = 1;
20727 A /= 10.0;
20728 sprintf(Buffer, "%a", A);
20729 B = atof(Buffer);
20730 if (A != B)
20731 return (1);
20732 if (A != 0x1.999999999999ap-4)
20733 return (1);
20734 return (0);
20735 ;
20736 return 0;
20737}
20738_ACEOF
20739rm -f conftest$ac_exeext
20740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ac_c_printf_a=yes
20751else
20752 echo "$as_me: program exited with status $ac_status" >&5
20753echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756( exit $ac_status )
20757ac_c_printf_a=no
20758fi
20759rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20760fi
20761 ac_ext=c
20762ac_cpp='$CPP $CPPFLAGS'
20763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20765ac_compiler_gnu=$ac_cv_c_compiler_gnu
20766
20767 if test "$ac_c_printf_a" = "yes"; then
20768
20769cat >>confdefs.h <<\_ACEOF
20770#define HAVE_PRINTF_A 1
20771_ACEOF
20772
20773 fi
20774
20775
John Criswell7a73b802003-06-30 21:59:07 +000020776echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20777echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20778if test "${ac_cv_cxx_namespaces+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780else
20781
20782
20783 ac_ext=cc
20784ac_cpp='$CXXCPP $CPPFLAGS'
20785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20788
20789 cat >conftest.$ac_ext <<_ACEOF
20790#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020791/* confdefs.h. */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020796namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020797int
20798main ()
20799{
20800using namespace Outer::Inner; return i;
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807 (eval $ac_compile) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -s conftest.$ac_objext'
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; }; then
20817 ac_cv_cxx_namespaces=yes
20818else
20819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020820sed 's/^/| /' conftest.$ac_ext >&5
20821
John Criswell7a73b802003-06-30 21:59:07 +000020822ac_cv_cxx_namespaces=no
20823fi
20824rm -f conftest.$ac_objext conftest.$ac_ext
20825 ac_ext=c
20826ac_cpp='$CPP $CPPFLAGS'
20827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830
20831
20832fi
20833echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20834echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20835if test "$ac_cv_cxx_namespaces" = yes; then
20836
20837cat >>confdefs.h <<\_ACEOF
20838#define HAVE_NAMESPACES
20839_ACEOF
20840
20841fi
20842
20843echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20844echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20845if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20847else
20848
20849
20850
20851 ac_ext=cc
20852ac_cpp='$CXXCPP $CPPFLAGS'
20853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20856
20857 cat >conftest.$ac_ext <<_ACEOF
20858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020864#include <ext/hash_map>
20865#ifdef HAVE_NAMESPACES
20866using namespace std;
20867#endif
John Criswell7a73b802003-06-30 21:59:07 +000020868int
20869main ()
20870{
20871hash_map<int, int> t; return 0;
20872 ;
20873 return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext
20877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20878 (eval $ac_compile) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -s conftest.$ac_objext'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 ac_cv_cxx_have_ext_hash_map=std
20889else
20890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020891sed 's/^/| /' conftest.$ac_ext >&5
20892
John Criswell7a73b802003-06-30 21:59:07 +000020893ac_cv_cxx_have_ext_hash_map=no
20894fi
20895rm -f conftest.$ac_objext conftest.$ac_ext
20896 cat >conftest.$ac_ext <<_ACEOF
20897#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020898/* confdefs.h. */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020903#include <ext/hash_map>
20904#ifdef HAVE_NAMESPACES
20905using namespace __gnu_cxx;
20906#endif
John Criswell7a73b802003-06-30 21:59:07 +000020907int
20908main ()
20909{
20910hash_map<int, int> t; return 0;
20911 ;
20912 return 0;
20913}
20914_ACEOF
20915rm -f conftest.$ac_objext
20916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20917 (eval $ac_compile) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
20921 { ac_try='test -s conftest.$ac_objext'
20922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); }; }; then
20927 ac_cv_cxx_have_ext_hash_map=gnu
20928else
20929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020930sed 's/^/| /' conftest.$ac_ext >&5
20931
John Criswell7a73b802003-06-30 21:59:07 +000020932ac_cv_cxx_have_ext_hash_map=no
20933fi
20934rm -f conftest.$ac_objext conftest.$ac_ext
20935 ac_ext=c
20936ac_cpp='$CPP $CPPFLAGS'
20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
20941
20942fi
20943echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20944echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20945if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20946
20947cat >>confdefs.h <<\_ACEOF
20948#define HAVE_STD_EXT_HASH_MAP
20949_ACEOF
20950
20951fi
20952if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20953
20954cat >>confdefs.h <<\_ACEOF
20955#define HAVE_GNU_EXT_HASH_MAP
20956_ACEOF
20957
20958fi
20959
20960echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20961echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20962if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964else
20965
20966
20967
20968 ac_ext=cc
20969ac_cpp='$CXXCPP $CPPFLAGS'
20970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20973
20974 cat >conftest.$ac_ext <<_ACEOF
20975#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020976/* confdefs.h. */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020981#include <ext/hash_set>
20982#ifdef HAVE_NAMESPACES
20983using namespace std;
20984#endif
John Criswell7a73b802003-06-30 21:59:07 +000020985int
20986main ()
20987{
20988hash_set<int> t; return 0;
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20995 (eval $ac_compile) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; }; then
21005 ac_cv_cxx_have_ext_hash_set=std
21006else
21007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021008sed 's/^/| /' conftest.$ac_ext >&5
21009
John Criswell7a73b802003-06-30 21:59:07 +000021010ac_cv_cxx_have_ext_hash_set=no
21011fi
21012rm -f conftest.$ac_objext conftest.$ac_ext
21013 cat >conftest.$ac_ext <<_ACEOF
21014#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021015/* confdefs.h. */
21016_ACEOF
21017cat confdefs.h >>conftest.$ac_ext
21018cat >>conftest.$ac_ext <<_ACEOF
21019/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021020#include <ext/hash_set>
21021#ifdef HAVE_NAMESPACES
21022using namespace __gnu_cxx;
21023#endif
John Criswell7a73b802003-06-30 21:59:07 +000021024int
21025main ()
21026{
21027hash_set<int> t; return 0;
21028 ;
21029 return 0;
21030}
21031_ACEOF
21032rm -f conftest.$ac_objext
21033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21034 (eval $ac_compile) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
21038 { ac_try='test -s conftest.$ac_objext'
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 ac_cv_cxx_have_ext_hash_set=gnu
21045else
21046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021047sed 's/^/| /' conftest.$ac_ext >&5
21048
John Criswell7a73b802003-06-30 21:59:07 +000021049ac_cv_cxx_have_ext_hash_set=no
21050fi
21051rm -f conftest.$ac_objext conftest.$ac_ext
21052 ac_ext=c
21053ac_cpp='$CPP $CPPFLAGS'
21054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21056ac_compiler_gnu=$ac_cv_c_compiler_gnu
21057
21058
21059fi
21060echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
21061echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
21062if test "$ac_cv_cxx_have_ext_hash_set" = std; then
21063
21064cat >>confdefs.h <<\_ACEOF
21065#define HAVE_STD_EXT_HASH_SET
21066_ACEOF
21067
21068fi
21069if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
21070
21071cat >>confdefs.h <<\_ACEOF
21072#define HAVE_GNU_EXT_HASH_SET
21073_ACEOF
21074
21075fi
21076
21077echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
21078echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
21079if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081else
21082
21083
21084
21085 ac_ext=cc
21086ac_cpp='$CXXCPP $CPPFLAGS'
21087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21090
21091 cat >conftest.$ac_ext <<_ACEOF
21092#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021098#include <ext/slist>
21099#ifdef HAVE_NAMESPACES
21100using namespace std;
21101#endif
John Criswell7a73b802003-06-30 21:59:07 +000021102int
21103main ()
21104{
21105slist<int> s; return 0;
21106 ;
21107 return 0;
21108}
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112 (eval $ac_compile) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } &&
21116 { ac_try='test -s conftest.$ac_objext'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21122 ac_cv_cxx_have_ext_slist=std
21123else
21124 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021125sed 's/^/| /' conftest.$ac_ext >&5
21126
John Criswell7a73b802003-06-30 21:59:07 +000021127ac_cv_cxx_have_ext_slist=no
21128fi
21129rm -f conftest.$ac_objext conftest.$ac_ext
21130 cat >conftest.$ac_ext <<_ACEOF
21131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021132/* confdefs.h. */
21133_ACEOF
21134cat confdefs.h >>conftest.$ac_ext
21135cat >>conftest.$ac_ext <<_ACEOF
21136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021137#include <ext/slist>
21138#ifdef HAVE_NAMESPACES
21139using namespace __gnu_cxx;
21140#endif
John Criswell7a73b802003-06-30 21:59:07 +000021141int
21142main ()
21143{
21144slist<int> s; return 0;
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151 (eval $ac_compile) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -s conftest.$ac_objext'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_cv_cxx_have_ext_slist=gnu
21162else
21163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021164sed 's/^/| /' conftest.$ac_ext >&5
21165
John Criswell7a73b802003-06-30 21:59:07 +000021166ac_cv_cxx_have_ext_slist=no
21167fi
21168rm -f conftest.$ac_objext conftest.$ac_ext
21169
21170 ac_ext=c
21171ac_cpp='$CPP $CPPFLAGS'
21172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174ac_compiler_gnu=$ac_cv_c_compiler_gnu
21175
21176
21177fi
21178echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
21179echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
21180if test "$ac_cv_cxx_have_ext_slist" = std; then
21181
21182cat >>confdefs.h <<\_ACEOF
21183#define HAVE_EXT_SLIST std
21184_ACEOF
21185
21186fi
21187if test "$ac_cv_cxx_have_ext_slist" = gnu; then
21188
21189cat >>confdefs.h <<\_ACEOF
21190#define HAVE_EXT_SLIST gnu
21191_ACEOF
21192
21193fi
21194
21195echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21196echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21197if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21198 echo $ECHO_N "(cached) $ECHO_C" >&6
21199else
21200
21201
21202
21203 ac_ext=cc
21204ac_cpp='$CXXCPP $CPPFLAGS'
21205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21208
21209 cat >conftest.$ac_ext <<_ACEOF
21210#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021211/* confdefs.h. */
21212_ACEOF
21213cat confdefs.h >>conftest.$ac_ext
21214cat >>conftest.$ac_ext <<_ACEOF
21215/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021216#include <iterator>
21217#ifdef HAVE_NAMESPACES
21218using namespace std;
21219#endif
John Criswell7a73b802003-06-30 21:59:07 +000021220int
21221main ()
21222{
21223iterator<int,int,int> t; return 0;
21224 ;
21225 return 0;
21226}
21227_ACEOF
21228rm -f conftest.$ac_objext
21229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21230 (eval $ac_compile) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236 (eval $ac_try) 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 ac_cv_cxx_have_std_iterator=yes
21241else
21242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021243sed 's/^/| /' conftest.$ac_ext >&5
21244
John Criswell7a73b802003-06-30 21:59:07 +000021245ac_cv_cxx_have_std_iterator=no
21246fi
21247rm -f conftest.$ac_objext conftest.$ac_ext
21248 ac_ext=c
21249ac_cpp='$CPP $CPPFLAGS'
21250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21252ac_compiler_gnu=$ac_cv_c_compiler_gnu
21253
21254
21255fi
21256echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21257echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21258if test "$ac_cv_cxx_have_std_iterator" = yes; then
21259
21260cat >>confdefs.h <<\_ACEOF
21261#define HAVE_STD_ITERATOR
21262_ACEOF
21263
21264fi
21265
21266echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21267echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21268if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
21271
21272
21273
21274 ac_ext=cc
21275ac_cpp='$CXXCPP $CPPFLAGS'
21276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21279
21280 cat >conftest.$ac_ext <<_ACEOF
21281#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021287#include <iterator>
21288#ifdef HAVE_NAMESPACES
21289using namespace std;
21290#endif
John Criswell7a73b802003-06-30 21:59:07 +000021291int
21292main ()
21293{
John Criswellc78022e2003-07-29 19:11:58 +000021294bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021295 ;
21296 return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext
21300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } &&
21305 { ac_try='test -s conftest.$ac_objext'
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 ac_cv_cxx_have_bi_iterator=yes
21312else
21313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021314sed 's/^/| /' conftest.$ac_ext >&5
21315
John Criswell7a73b802003-06-30 21:59:07 +000021316ac_cv_cxx_have_bi_iterator=no
21317fi
21318rm -f conftest.$ac_objext conftest.$ac_ext
21319 ac_ext=c
21320ac_cpp='$CPP $CPPFLAGS'
21321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323ac_compiler_gnu=$ac_cv_c_compiler_gnu
21324
21325
21326fi
21327echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21328echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21329if test "$ac_cv_cxx_have_bi_iterator" = yes; then
21330
21331cat >>confdefs.h <<\_ACEOF
21332#define HAVE_BI_ITERATOR
21333_ACEOF
21334
21335fi
21336
21337echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21338echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21339if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341else
21342
21343
21344
21345 ac_ext=cc
21346ac_cpp='$CXXCPP $CPPFLAGS'
21347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21350
21351 cat >conftest.$ac_ext <<_ACEOF
21352#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021353/* confdefs.h. */
21354_ACEOF
21355cat confdefs.h >>conftest.$ac_ext
21356cat >>conftest.$ac_ext <<_ACEOF
21357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021358#include <iterator>
21359#ifdef HAVE_NAMESPACES
21360using namespace std;
21361#endif
John Criswell7a73b802003-06-30 21:59:07 +000021362int
21363main ()
21364{
John Criswellc78022e2003-07-29 19:11:58 +000021365forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021366 ;
21367 return 0;
21368}
21369_ACEOF
21370rm -f conftest.$ac_objext
21371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21372 (eval $ac_compile) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
21376 { ac_try='test -s conftest.$ac_objext'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_cv_cxx_have_fwd_iterator=yes
21383else
21384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021385sed 's/^/| /' conftest.$ac_ext >&5
21386
John Criswell7a73b802003-06-30 21:59:07 +000021387ac_cv_cxx_have_fwd_iterator=no
21388fi
21389rm -f conftest.$ac_objext conftest.$ac_ext
21390 ac_ext=c
21391ac_cpp='$CPP $CPPFLAGS'
21392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395
21396
21397fi
21398echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21399echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21400if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
21401
21402cat >>confdefs.h <<\_ACEOF
21403#define HAVE_FWD_ITERATOR
21404_ACEOF
21405
21406fi
21407
21408
21409# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21410# for constant arguments. Useless!
21411echo "$as_me:$LINENO: checking for working alloca.h" >&5
21412echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21413if test "${ac_cv_working_alloca_h+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21415else
21416 cat >conftest.$ac_ext <<_ACEOF
21417#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021418/* confdefs.h. */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021423#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021424int
21425main ()
21426{
21427char *p = (char *) alloca (2 * sizeof (int));
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext conftest$ac_exeext
21433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21434 (eval $ac_link) 2>&5
21435 ac_status=$?
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
21438 { ac_try='test -s conftest$ac_exeext'
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; }; then
21444 ac_cv_working_alloca_h=yes
21445else
21446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021447sed 's/^/| /' conftest.$ac_ext >&5
21448
John Criswell7a73b802003-06-30 21:59:07 +000021449ac_cv_working_alloca_h=no
21450fi
21451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21452fi
21453echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21454echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21455if test $ac_cv_working_alloca_h = yes; then
21456
21457cat >>confdefs.h <<\_ACEOF
21458#define HAVE_ALLOCA_H 1
21459_ACEOF
21460
21461fi
21462
21463echo "$as_me:$LINENO: checking for alloca" >&5
21464echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21465if test "${ac_cv_func_alloca_works+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21467else
21468 cat >conftest.$ac_ext <<_ACEOF
21469#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021475#ifdef __GNUC__
21476# define alloca __builtin_alloca
21477#else
21478# ifdef _MSC_VER
21479# include <malloc.h>
21480# define alloca _alloca
21481# else
21482# if HAVE_ALLOCA_H
21483# include <alloca.h>
21484# else
21485# ifdef _AIX
21486 #pragma alloca
21487# else
21488# ifndef alloca /* predefined by HP cc +Olibcalls */
21489char *alloca ();
21490# endif
21491# endif
21492# endif
21493# endif
21494#endif
21495
John Criswell7a73b802003-06-30 21:59:07 +000021496int
21497main ()
21498{
21499char *p = (char *) alloca (1);
21500 ;
21501 return 0;
21502}
21503_ACEOF
21504rm -f conftest.$ac_objext conftest$ac_exeext
21505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -s conftest$ac_exeext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ac_cv_func_alloca_works=yes
21517else
21518 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021519sed 's/^/| /' conftest.$ac_ext >&5
21520
John Criswell7a73b802003-06-30 21:59:07 +000021521ac_cv_func_alloca_works=no
21522fi
21523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21524fi
21525echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21526echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21527
21528if test $ac_cv_func_alloca_works = yes; then
21529
21530cat >>confdefs.h <<\_ACEOF
21531#define HAVE_ALLOCA 1
21532_ACEOF
21533
21534else
21535 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21536# that cause trouble. Some versions do not even contain alloca or
21537# contain a buggy version. If you still want to use their alloca,
21538# use ar to extract alloca.o from them instead of compiling alloca.c.
21539
21540ALLOCA=alloca.$ac_objext
21541
21542cat >>confdefs.h <<\_ACEOF
21543#define C_ALLOCA 1
21544_ACEOF
21545
21546
21547echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21548echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21549if test "${ac_cv_os_cray+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551else
21552 cat >conftest.$ac_ext <<_ACEOF
21553#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021554/* confdefs.h. */
21555_ACEOF
21556cat confdefs.h >>conftest.$ac_ext
21557cat >>conftest.$ac_ext <<_ACEOF
21558/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021559#if defined(CRAY) && ! defined(CRAY2)
21560webecray
21561#else
21562wenotbecray
21563#endif
21564
21565_ACEOF
21566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021567 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021568 ac_cv_os_cray=yes
21569else
21570 ac_cv_os_cray=no
21571fi
21572rm -f conftest*
21573
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21576echo "${ECHO_T}$ac_cv_os_cray" >&6
21577if test $ac_cv_os_cray = yes; then
21578 for ac_func in _getb67 GETB67 getb67; do
21579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21580echo "$as_me:$LINENO: checking for $ac_func" >&5
21581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21582if eval "test \"\${$as_ac_var+set}\" = set"; then
21583 echo $ECHO_N "(cached) $ECHO_C" >&6
21584else
21585 cat >conftest.$ac_ext <<_ACEOF
21586#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021587/* confdefs.h. */
21588_ACEOF
21589cat confdefs.h >>conftest.$ac_ext
21590cat >>conftest.$ac_ext <<_ACEOF
21591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021592/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021593 which can conflict with char $ac_func (); below.
21594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21595 <limits.h> exists even on freestanding compilers. */
21596#ifdef __STDC__
21597# include <limits.h>
21598#else
21599# include <assert.h>
21600#endif
John Criswell7a73b802003-06-30 21:59:07 +000021601/* Override any gcc2 internal prototype to avoid an error. */
21602#ifdef __cplusplus
21603extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021604{
John Criswell7a73b802003-06-30 21:59:07 +000021605#endif
21606/* We use char because int might match the return type of a gcc2
21607 builtin and then its argument prototype would still apply. */
21608char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021609/* The GNU C library defines this for functions which it implements
21610 to always fail with ENOSYS. Some functions are actually named
21611 something starting with __ and the normal name is an alias. */
21612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21613choke me
21614#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021615char (*f) () = $ac_func;
21616#endif
21617#ifdef __cplusplus
21618}
John Criswell7a73b802003-06-30 21:59:07 +000021619#endif
21620
John Criswell0c38eaf2003-09-10 15:17:25 +000021621int
21622main ()
21623{
21624return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021625 ;
21626 return 0;
21627}
21628_ACEOF
21629rm -f conftest.$ac_objext conftest$ac_exeext
21630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21631 (eval $ac_link) 2>&5
21632 ac_status=$?
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
21635 { ac_try='test -s conftest$ac_exeext'
21636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637 (eval $ac_try) 2>&5
21638 ac_status=$?
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); }; }; then
21641 eval "$as_ac_var=yes"
21642else
21643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021644sed 's/^/| /' conftest.$ac_ext >&5
21645
John Criswell7a73b802003-06-30 21:59:07 +000021646eval "$as_ac_var=no"
21647fi
21648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21649fi
21650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21652if test `eval echo '${'$as_ac_var'}'` = yes; then
21653
21654cat >>confdefs.h <<_ACEOF
21655#define CRAY_STACKSEG_END $ac_func
21656_ACEOF
21657
21658 break
21659fi
21660
21661 done
21662fi
21663
21664echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21665echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21666if test "${ac_cv_c_stack_direction+set}" = set; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21668else
21669 if test "$cross_compiling" = yes; then
21670 ac_cv_c_stack_direction=0
21671else
21672 cat >conftest.$ac_ext <<_ACEOF
21673#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021674/* confdefs.h. */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021679int
21680find_stack_direction ()
21681{
21682 static char *addr = 0;
21683 auto char dummy;
21684 if (addr == 0)
21685 {
21686 addr = &dummy;
21687 return find_stack_direction ();
21688 }
21689 else
21690 return (&dummy > addr) ? 1 : -1;
21691}
21692
21693int
21694main ()
21695{
21696 exit (find_stack_direction () < 0);
21697}
21698_ACEOF
21699rm -f conftest$ac_exeext
21700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21701 (eval $ac_link) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); }; }; then
21710 ac_cv_c_stack_direction=1
21711else
21712 echo "$as_me: program exited with status $ac_status" >&5
21713echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021714sed 's/^/| /' conftest.$ac_ext >&5
21715
John Criswell7a73b802003-06-30 21:59:07 +000021716( exit $ac_status )
21717ac_cv_c_stack_direction=-1
21718fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021719rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021720fi
21721fi
21722echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21723echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21724
21725cat >>confdefs.h <<_ACEOF
21726#define STACK_DIRECTION $ac_cv_c_stack_direction
21727_ACEOF
21728
21729
21730fi
21731
21732if test $ac_cv_c_compiler_gnu = yes; then
21733 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21734echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21735if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737else
21738 ac_pattern="Autoconf.*'x'"
21739 cat >conftest.$ac_ext <<_ACEOF
21740#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021746#include <sgtty.h>
21747Autoconf TIOCGETP
21748_ACEOF
21749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021750 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021751 ac_cv_prog_gcc_traditional=yes
21752else
21753 ac_cv_prog_gcc_traditional=no
21754fi
21755rm -f conftest*
21756
21757
21758 if test $ac_cv_prog_gcc_traditional = no; then
21759 cat >conftest.$ac_ext <<_ACEOF
21760#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021761/* confdefs.h. */
21762_ACEOF
21763cat confdefs.h >>conftest.$ac_ext
21764cat >>conftest.$ac_ext <<_ACEOF
21765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021766#include <termio.h>
21767Autoconf TCGETA
21768_ACEOF
21769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021770 $EGREP "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021771 ac_cv_prog_gcc_traditional=yes
21772fi
21773rm -f conftest*
21774
21775 fi
21776fi
21777echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21778echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21779 if test $ac_cv_prog_gcc_traditional = yes; then
21780 CC="$CC -traditional"
21781 fi
21782fi
21783
21784echo "$as_me:$LINENO: checking for working memcmp" >&5
21785echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21786if test "${ac_cv_func_memcmp_working+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788else
21789 if test "$cross_compiling" = yes; then
21790 ac_cv_func_memcmp_working=no
21791else
21792 cat >conftest.$ac_ext <<_ACEOF
21793#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021799
John Criswell7a73b802003-06-30 21:59:07 +000021800int
21801main ()
21802{
21803
21804 /* Some versions of memcmp are not 8-bit clean. */
21805 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21806 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21807 exit (1);
21808
21809 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21810 or more and with at least one buffer not starting on a 4-byte boundary.
21811 William Lewis provided this test program. */
21812 {
21813 char foo[21];
21814 char bar[21];
21815 int i;
21816 for (i = 0; i < 4; i++)
21817 {
21818 char *a = foo + i;
21819 char *b = bar + i;
21820 strcpy (a, "--------01111111");
21821 strcpy (b, "--------10000000");
21822 if (memcmp (a, b, 16) >= 0)
21823 exit (1);
21824 }
21825 exit (0);
21826 }
21827
21828 ;
21829 return 0;
21830}
21831_ACEOF
21832rm -f conftest$ac_exeext
21833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21834 (eval $ac_link) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; }; then
21843 ac_cv_func_memcmp_working=yes
21844else
21845 echo "$as_me: program exited with status $ac_status" >&5
21846echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021847sed 's/^/| /' conftest.$ac_ext >&5
21848
John Criswell7a73b802003-06-30 21:59:07 +000021849( exit $ac_status )
21850ac_cv_func_memcmp_working=no
21851fi
John Criswell0c38eaf2003-09-10 15:17:25 +000021852rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021853fi
21854fi
21855echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21856echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21857test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21858
21859
21860
21861for ac_header in stdlib.h unistd.h
21862do
21863as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21864if eval "test \"\${$as_ac_Header+set}\" = set"; then
21865 echo "$as_me:$LINENO: checking for $ac_header" >&5
21866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21867if eval "test \"\${$as_ac_Header+set}\" = set"; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21869fi
21870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21872else
21873 # Is the header compilable?
21874echo "$as_me:$LINENO: checking $ac_header usability" >&5
21875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21876cat >conftest.$ac_ext <<_ACEOF
21877#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021878/* confdefs.h. */
21879_ACEOF
21880cat confdefs.h >>conftest.$ac_ext
21881cat >>conftest.$ac_ext <<_ACEOF
21882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021883$ac_includes_default
21884#include <$ac_header>
21885_ACEOF
21886rm -f conftest.$ac_objext
21887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21888 (eval $ac_compile) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } &&
21892 { ac_try='test -s conftest.$ac_objext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21895 ac_status=$?
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 ac_header_compiler=yes
21899else
21900 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021901sed 's/^/| /' conftest.$ac_ext >&5
21902
John Criswell7a73b802003-06-30 21:59:07 +000021903ac_header_compiler=no
21904fi
21905rm -f conftest.$ac_objext conftest.$ac_ext
21906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21907echo "${ECHO_T}$ac_header_compiler" >&6
21908
21909# Is the header present?
21910echo "$as_me:$LINENO: checking $ac_header presence" >&5
21911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21912cat >conftest.$ac_ext <<_ACEOF
21913#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021914/* confdefs.h. */
21915_ACEOF
21916cat confdefs.h >>conftest.$ac_ext
21917cat >>conftest.$ac_ext <<_ACEOF
21918/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021919#include <$ac_header>
21920_ACEOF
21921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21923 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021924 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021925 rm -f conftest.er1
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } >/dev/null; then
21929 if test -s conftest.err; then
21930 ac_cpp_err=$ac_c_preproc_warn_flag
21931 else
21932 ac_cpp_err=
21933 fi
21934else
21935 ac_cpp_err=yes
21936fi
21937if test -z "$ac_cpp_err"; then
21938 ac_header_preproc=yes
21939else
21940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021941sed 's/^/| /' conftest.$ac_ext >&5
21942
John Criswell7a73b802003-06-30 21:59:07 +000021943 ac_header_preproc=no
21944fi
21945rm -f conftest.err conftest.$ac_ext
21946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21947echo "${ECHO_T}$ac_header_preproc" >&6
21948
21949# So? What about this header?
21950case $ac_header_compiler:$ac_header_preproc in
21951 yes:no )
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21956 (
21957 cat <<\_ASBOX
21958## ------------------------------------ ##
21959## Report this to bug-autoconf@gnu.org. ##
21960## ------------------------------------ ##
21961_ASBOX
21962 ) |
21963 sed "s/^/$as_me: WARNING: /" >&2
21964 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021965 no:yes )
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21972 (
21973 cat <<\_ASBOX
21974## ------------------------------------ ##
21975## Report this to bug-autoconf@gnu.org. ##
21976## ------------------------------------ ##
21977_ASBOX
21978 ) |
21979 sed "s/^/$as_me: WARNING: /" >&2
21980 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021981esac
21982echo "$as_me:$LINENO: checking for $ac_header" >&5
21983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21984if eval "test \"\${$as_ac_Header+set}\" = set"; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21986else
21987 eval "$as_ac_Header=$ac_header_preproc"
21988fi
21989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21991
21992fi
21993if test `eval echo '${'$as_ac_Header'}'` = yes; then
21994 cat >>confdefs.h <<_ACEOF
21995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21996_ACEOF
21997
21998fi
21999
22000done
22001
22002
22003for ac_func in getpagesize
22004do
22005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22006echo "$as_me:$LINENO: checking for $ac_func" >&5
22007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22008if eval "test \"\${$as_ac_var+set}\" = set"; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22010else
22011 cat >conftest.$ac_ext <<_ACEOF
22012#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022013/* confdefs.h. */
22014_ACEOF
22015cat confdefs.h >>conftest.$ac_ext
22016cat >>conftest.$ac_ext <<_ACEOF
22017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022018/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022019 which can conflict with char $ac_func (); below.
22020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22021 <limits.h> exists even on freestanding compilers. */
22022#ifdef __STDC__
22023# include <limits.h>
22024#else
22025# include <assert.h>
22026#endif
John Criswell7a73b802003-06-30 21:59:07 +000022027/* Override any gcc2 internal prototype to avoid an error. */
22028#ifdef __cplusplus
22029extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022030{
John Criswell7a73b802003-06-30 21:59:07 +000022031#endif
22032/* We use char because int might match the return type of a gcc2
22033 builtin and then its argument prototype would still apply. */
22034char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022035/* The GNU C library defines this for functions which it implements
22036 to always fail with ENOSYS. Some functions are actually named
22037 something starting with __ and the normal name is an alias. */
22038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22039choke me
22040#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022041char (*f) () = $ac_func;
22042#endif
22043#ifdef __cplusplus
22044}
John Criswell7a73b802003-06-30 21:59:07 +000022045#endif
22046
John Criswell0c38eaf2003-09-10 15:17:25 +000022047int
22048main ()
22049{
22050return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022051 ;
22052 return 0;
22053}
22054_ACEOF
22055rm -f conftest.$ac_objext conftest$ac_exeext
22056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057 (eval $ac_link) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); } &&
22061 { ac_try='test -s conftest$ac_exeext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 eval "$as_ac_var=yes"
22068else
22069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022070sed 's/^/| /' conftest.$ac_ext >&5
22071
John Criswell7a73b802003-06-30 21:59:07 +000022072eval "$as_ac_var=no"
22073fi
22074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22075fi
22076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22078if test `eval echo '${'$as_ac_var'}'` = yes; then
22079 cat >>confdefs.h <<_ACEOF
22080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22081_ACEOF
22082
22083fi
22084done
22085
22086echo "$as_me:$LINENO: checking for working mmap" >&5
22087echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22088if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22090else
22091 if test "$cross_compiling" = yes; then
22092 ac_cv_func_mmap_fixed_mapped=no
22093else
22094 cat >conftest.$ac_ext <<_ACEOF
22095#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022096/* confdefs.h. */
22097_ACEOF
22098cat confdefs.h >>conftest.$ac_ext
22099cat >>conftest.$ac_ext <<_ACEOF
22100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022101$ac_includes_default
22102/* malloc might have been renamed as rpl_malloc. */
22103#undef malloc
22104
22105/* Thanks to Mike Haertel and Jim Avera for this test.
22106 Here is a matrix of mmap possibilities:
22107 mmap private not fixed
22108 mmap private fixed at somewhere currently unmapped
22109 mmap private fixed at somewhere already mapped
22110 mmap shared not fixed
22111 mmap shared fixed at somewhere currently unmapped
22112 mmap shared fixed at somewhere already mapped
22113 For private mappings, we should verify that changes cannot be read()
22114 back from the file, nor mmap's back from the file at a different
22115 address. (There have been systems where private was not correctly
22116 implemented like the infamous i386 svr4.0, and systems where the
22117 VM page cache was not coherent with the file system buffer cache
22118 like early versions of FreeBSD and possibly contemporary NetBSD.)
22119 For shared mappings, we should conversely verify that changes get
22120 propagated back to all the places they're supposed to be.
22121
22122 Grep wants private fixed already mapped.
22123 The main things grep needs to know about mmap are:
22124 * does it exist and is it safe to write into the mmap'd area
22125 * how to use it (BSD variants) */
22126
22127#include <fcntl.h>
22128#include <sys/mman.h>
22129
22130#if !STDC_HEADERS && !HAVE_STDLIB_H
22131char *malloc ();
22132#endif
22133
22134/* This mess was copied from the GNU getpagesize.h. */
22135#if !HAVE_GETPAGESIZE
22136/* Assume that all systems that can run configure have sys/param.h. */
22137# if !HAVE_SYS_PARAM_H
22138# define HAVE_SYS_PARAM_H 1
22139# endif
22140
22141# ifdef _SC_PAGESIZE
22142# define getpagesize() sysconf(_SC_PAGESIZE)
22143# else /* no _SC_PAGESIZE */
22144# if HAVE_SYS_PARAM_H
22145# include <sys/param.h>
22146# ifdef EXEC_PAGESIZE
22147# define getpagesize() EXEC_PAGESIZE
22148# else /* no EXEC_PAGESIZE */
22149# ifdef NBPG
22150# define getpagesize() NBPG * CLSIZE
22151# ifndef CLSIZE
22152# define CLSIZE 1
22153# endif /* no CLSIZE */
22154# else /* no NBPG */
22155# ifdef NBPC
22156# define getpagesize() NBPC
22157# else /* no NBPC */
22158# ifdef PAGESIZE
22159# define getpagesize() PAGESIZE
22160# endif /* PAGESIZE */
22161# endif /* no NBPC */
22162# endif /* no NBPG */
22163# endif /* no EXEC_PAGESIZE */
22164# else /* no HAVE_SYS_PARAM_H */
22165# define getpagesize() 8192 /* punt totally */
22166# endif /* no HAVE_SYS_PARAM_H */
22167# endif /* no _SC_PAGESIZE */
22168
22169#endif /* no HAVE_GETPAGESIZE */
22170
22171int
22172main ()
22173{
22174 char *data, *data2, *data3;
22175 int i, pagesize;
22176 int fd;
22177
22178 pagesize = getpagesize ();
22179
22180 /* First, make a file with some known garbage in it. */
22181 data = (char *) malloc (pagesize);
22182 if (!data)
22183 exit (1);
22184 for (i = 0; i < pagesize; ++i)
22185 *(data + i) = rand ();
22186 umask (0);
22187 fd = creat ("conftest.mmap", 0600);
22188 if (fd < 0)
22189 exit (1);
22190 if (write (fd, data, pagesize) != pagesize)
22191 exit (1);
22192 close (fd);
22193
22194 /* Next, try to mmap the file at a fixed address which already has
22195 something else allocated at it. If we can, also make sure that
22196 we see the same garbage. */
22197 fd = open ("conftest.mmap", O_RDWR);
22198 if (fd < 0)
22199 exit (1);
22200 data2 = (char *) malloc (2 * pagesize);
22201 if (!data2)
22202 exit (1);
22203 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
22204 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22205 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22206 exit (1);
22207 for (i = 0; i < pagesize; ++i)
22208 if (*(data + i) != *(data2 + i))
22209 exit (1);
22210
22211 /* Finally, make sure that changes to the mapped area do not
22212 percolate back to the file as seen by read(). (This is a bug on
22213 some variants of i386 svr4.0.) */
22214 for (i = 0; i < pagesize; ++i)
22215 *(data2 + i) = *(data2 + i) + 1;
22216 data3 = (char *) malloc (pagesize);
22217 if (!data3)
22218 exit (1);
22219 if (read (fd, data3, pagesize) != pagesize)
22220 exit (1);
22221 for (i = 0; i < pagesize; ++i)
22222 if (*(data + i) != *(data3 + i))
22223 exit (1);
22224 close (fd);
22225 exit (0);
22226}
22227_ACEOF
22228rm -f conftest$ac_exeext
22229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22230 (eval $ac_link) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22236 ac_status=$?
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; }; then
22239 ac_cv_func_mmap_fixed_mapped=yes
22240else
22241 echo "$as_me: program exited with status $ac_status" >&5
22242echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022243sed 's/^/| /' conftest.$ac_ext >&5
22244
John Criswell7a73b802003-06-30 21:59:07 +000022245( exit $ac_status )
22246ac_cv_func_mmap_fixed_mapped=no
22247fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022248rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022249fi
22250fi
22251echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22252echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22253if test $ac_cv_func_mmap_fixed_mapped = yes; then
22254
22255cat >>confdefs.h <<\_ACEOF
22256#define HAVE_MMAP 1
22257_ACEOF
22258
22259fi
22260rm -f conftest.mmap
22261
22262echo "$as_me:$LINENO: checking for mmap of files" >&5
22263echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22264if test "${ac_cv_func_mmap_file+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266else
22267
22268
22269 ac_ext=c
22270ac_cpp='$CPP $CPPFLAGS'
22271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273ac_compiler_gnu=$ac_cv_c_compiler_gnu
22274
22275 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022276 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22277See \`config.log' for more details." >&5
22278echo "$as_me: error: cannot run test program while cross compiling
22279See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022280 { (exit 1); exit 1; }; }
22281else
22282 cat >conftest.$ac_ext <<_ACEOF
22283#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022284/* confdefs.h. */
22285_ACEOF
22286cat confdefs.h >>conftest.$ac_ext
22287cat >>conftest.$ac_ext <<_ACEOF
22288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022289
John Criswell7a73b802003-06-30 21:59:07 +000022290#ifdef HAVE_SYS_TYPES_H
22291#include <sys/types.h>
22292#endif
22293
John Criswell5ab73462003-10-09 15:44:28 +000022294#ifdef HAVE_SYS_MMAN_H
22295#include <sys/mman.h>
22296#endif
22297
John Criswell7a73b802003-06-30 21:59:07 +000022298#ifdef HAVE_FCNTL_H
22299#include <fcntl.h>
22300#endif
22301
22302 int fd;
22303 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022304 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 +000022305_ACEOF
22306rm -f conftest$ac_exeext
22307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22308 (eval $ac_link) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_func_mmap_file=yes
22318else
22319 echo "$as_me: program exited with status $ac_status" >&5
22320echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022321sed 's/^/| /' conftest.$ac_ext >&5
22322
John Criswell7a73b802003-06-30 21:59:07 +000022323( exit $ac_status )
22324ac_cv_func_mmap_file=no
22325fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022326rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022327fi
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_func_mmap_file" >&5
22337echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22338if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022339
22340cat >>confdefs.h <<\_ACEOF
22341#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022342_ACEOF
22343
22344 MMAP_FILE=yes
22345
22346fi
22347
22348if test ${ac_cv_func_mmap_file} = "no"
22349then
22350 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
22351echo "$as_me: error: mmap() of files required but not found" >&2;}
22352 { (exit 1); exit 1; }; }
22353fi
22354echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22355echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22356if test "${ac_cv_header_mmap_anon+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359
22360
22361 ac_ext=c
22362ac_cpp='$CPP $CPPFLAGS'
22363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22365ac_compiler_gnu=$ac_cv_c_compiler_gnu
22366
22367 cat >conftest.$ac_ext <<_ACEOF
22368#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022369/* confdefs.h. */
22370_ACEOF
22371cat confdefs.h >>conftest.$ac_ext
22372cat >>conftest.$ac_ext <<_ACEOF
22373/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022374#include <sys/mman.h>
22375 #include <unistd.h>
22376 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022377int
22378main ()
22379{
22380mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22381 ;
22382 return 0;
22383}
22384_ACEOF
22385rm -f conftest.$ac_objext
22386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387 (eval $ac_compile) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
22391 { ac_try='test -s conftest.$ac_objext'
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_header_mmap_anon=yes
22398else
22399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022400sed 's/^/| /' conftest.$ac_ext >&5
22401
John Criswell7a73b802003-06-30 21:59:07 +000022402ac_cv_header_mmap_anon=no
22403fi
22404rm -f conftest.$ac_objext conftest.$ac_ext
22405 ac_ext=c
22406ac_cpp='$CPP $CPPFLAGS'
22407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22409ac_compiler_gnu=$ac_cv_c_compiler_gnu
22410
22411
22412fi
22413echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22414echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22415if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022416
22417cat >>confdefs.h <<\_ACEOF
22418#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022419_ACEOF
22420
22421fi
22422
22423echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22424echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22425if test "${ac_cv_type_signal+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 cat >conftest.$ac_ext <<_ACEOF
22429#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022430/* confdefs.h. */
22431_ACEOF
22432cat confdefs.h >>conftest.$ac_ext
22433cat >>conftest.$ac_ext <<_ACEOF
22434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022435#include <sys/types.h>
22436#include <signal.h>
22437#ifdef signal
22438# undef signal
22439#endif
22440#ifdef __cplusplus
22441extern "C" void (*signal (int, void (*)(int)))(int);
22442#else
22443void (*signal ()) ();
22444#endif
22445
John Criswell7a73b802003-06-30 21:59:07 +000022446int
22447main ()
22448{
22449int i;
22450 ;
22451 return 0;
22452}
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456 (eval $ac_compile) 2>&5
22457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } &&
22460 { ac_try='test -s conftest.$ac_objext'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; }; then
22466 ac_cv_type_signal=void
22467else
22468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022469sed 's/^/| /' conftest.$ac_ext >&5
22470
John Criswell7a73b802003-06-30 21:59:07 +000022471ac_cv_type_signal=int
22472fi
22473rm -f conftest.$ac_objext conftest.$ac_ext
22474fi
22475echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22476echo "${ECHO_T}$ac_cv_type_signal" >&6
22477
22478cat >>confdefs.h <<_ACEOF
22479#define RETSIGTYPE $ac_cv_type_signal
22480_ACEOF
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
Brian Gaekec45be042003-10-07 06:01:34 +000022492
22493
John Criswella0137d32003-10-13 16:22:01 +000022494for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol strtoq strtoll
John Criswell7a73b802003-06-30 21:59:07 +000022495do
22496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22497echo "$as_me:$LINENO: checking for $ac_func" >&5
22498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22499if eval "test \"\${$as_ac_var+set}\" = set"; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501else
22502 cat >conftest.$ac_ext <<_ACEOF
22503#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022504/* confdefs.h. */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022509/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022510 which can conflict with char $ac_func (); below.
22511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22512 <limits.h> exists even on freestanding compilers. */
22513#ifdef __STDC__
22514# include <limits.h>
22515#else
22516# include <assert.h>
22517#endif
John Criswell7a73b802003-06-30 21:59:07 +000022518/* Override any gcc2 internal prototype to avoid an error. */
22519#ifdef __cplusplus
22520extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022521{
John Criswell7a73b802003-06-30 21:59:07 +000022522#endif
22523/* We use char because int might match the return type of a gcc2
22524 builtin and then its argument prototype would still apply. */
22525char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022526/* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22530choke me
22531#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022532char (*f) () = $ac_func;
22533#endif
22534#ifdef __cplusplus
22535}
John Criswell7a73b802003-06-30 21:59:07 +000022536#endif
22537
John Criswell0c38eaf2003-09-10 15:17:25 +000022538int
22539main ()
22540{
22541return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022542 ;
22543 return 0;
22544}
22545_ACEOF
22546rm -f conftest.$ac_objext conftest$ac_exeext
22547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22548 (eval $ac_link) 2>&5
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try='test -s conftest$ac_exeext'
22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22555 ac_status=$?
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 eval "$as_ac_var=yes"
22559else
22560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022561sed 's/^/| /' conftest.$ac_ext >&5
22562
John Criswell7a73b802003-06-30 21:59:07 +000022563eval "$as_ac_var=no"
22564fi
22565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22566fi
22567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22569if test `eval echo '${'$as_ac_var'}'` = yes; then
22570 cat >>confdefs.h <<_ACEOF
22571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22572_ACEOF
22573
22574fi
22575done
22576
22577
22578
22579echo "$as_me:$LINENO: checking for mmap" >&5
22580echo $ECHO_N "checking for mmap... $ECHO_C" >&6
22581if test "${ac_cv_func_mmap+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583else
22584 cat >conftest.$ac_ext <<_ACEOF
22585#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022586/* confdefs.h. */
22587_ACEOF
22588cat confdefs.h >>conftest.$ac_ext
22589cat >>conftest.$ac_ext <<_ACEOF
22590/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022591/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022592 which can conflict with char mmap (); below.
22593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22594 <limits.h> exists even on freestanding compilers. */
22595#ifdef __STDC__
22596# include <limits.h>
22597#else
22598# include <assert.h>
22599#endif
John Criswell7a73b802003-06-30 21:59:07 +000022600/* Override any gcc2 internal prototype to avoid an error. */
22601#ifdef __cplusplus
22602extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022603{
John Criswell7a73b802003-06-30 21:59:07 +000022604#endif
22605/* We use char because int might match the return type of a gcc2
22606 builtin and then its argument prototype would still apply. */
22607char mmap ();
John Criswell7a73b802003-06-30 21:59:07 +000022608/* The GNU C library defines this for functions which it implements
22609 to always fail with ENOSYS. Some functions are actually named
22610 something starting with __ and the normal name is an alias. */
22611#if defined (__stub_mmap) || defined (__stub___mmap)
22612choke me
22613#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022614char (*f) () = mmap;
22615#endif
22616#ifdef __cplusplus
22617}
John Criswell7a73b802003-06-30 21:59:07 +000022618#endif
22619
John Criswell0c38eaf2003-09-10 15:17:25 +000022620int
22621main ()
22622{
22623return f != mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022624 ;
22625 return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext conftest$ac_exeext
22629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22630 (eval $ac_link) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } &&
22634 { ac_try='test -s conftest$ac_exeext'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 ac_cv_func_mmap=yes
22641else
22642 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022643sed 's/^/| /' conftest.$ac_ext >&5
22644
John Criswell7a73b802003-06-30 21:59:07 +000022645ac_cv_func_mmap=no
22646fi
22647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22648fi
22649echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22650echo "${ECHO_T}$ac_cv_func_mmap" >&6
22651if test $ac_cv_func_mmap = yes; then
22652 :
22653else
22654 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22655echo "$as_me: error: Function mmap() required but not found" >&2;}
22656 { (exit 1); exit 1; }; }
22657fi
22658
22659echo "$as_me:$LINENO: checking for mprotect" >&5
22660echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22661if test "${ac_cv_func_mprotect+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663else
22664 cat >conftest.$ac_ext <<_ACEOF
22665#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022666/* confdefs.h. */
22667_ACEOF
22668cat confdefs.h >>conftest.$ac_ext
22669cat >>conftest.$ac_ext <<_ACEOF
22670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022671/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022672 which can conflict with char mprotect (); below.
22673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22674 <limits.h> exists even on freestanding compilers. */
22675#ifdef __STDC__
22676# include <limits.h>
22677#else
22678# include <assert.h>
22679#endif
John Criswell7a73b802003-06-30 21:59:07 +000022680/* Override any gcc2 internal prototype to avoid an error. */
22681#ifdef __cplusplus
22682extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022683{
John Criswell7a73b802003-06-30 21:59:07 +000022684#endif
22685/* We use char because int might match the return type of a gcc2
22686 builtin and then its argument prototype would still apply. */
22687char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022688/* The GNU C library defines this for functions which it implements
22689 to always fail with ENOSYS. Some functions are actually named
22690 something starting with __ and the normal name is an alias. */
22691#if defined (__stub_mprotect) || defined (__stub___mprotect)
22692choke me
22693#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022694char (*f) () = mprotect;
22695#endif
22696#ifdef __cplusplus
22697}
John Criswell7a73b802003-06-30 21:59:07 +000022698#endif
22699
John Criswell0c38eaf2003-09-10 15:17:25 +000022700int
22701main ()
22702{
22703return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022704 ;
22705 return 0;
22706}
22707_ACEOF
22708rm -f conftest.$ac_objext conftest$ac_exeext
22709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710 (eval $ac_link) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
22714 { ac_try='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22717 ac_status=$?
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 ac_cv_func_mprotect=yes
22721else
22722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022723sed 's/^/| /' conftest.$ac_ext >&5
22724
John Criswell7a73b802003-06-30 21:59:07 +000022725ac_cv_func_mprotect=no
22726fi
22727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22728fi
22729echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22730echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22731if test $ac_cv_func_mprotect = yes; then
22732 :
22733else
22734 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22735echo "$as_me: error: Function mprotect() required but not found" >&2;}
22736 { (exit 1); exit 1; }; }
22737fi
22738
22739
John Criswellb13092b2003-07-22 21:00:24 +000022740
John Criswell7a73b802003-06-30 21:59:07 +000022741# Check whether --enable-purify or --disable-purify was given.
22742if test "${enable_purify+set}" = set; then
22743 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022744
22745else
John Criswellb13092b2003-07-22 21:00:24 +000022746 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022747fi;
John Criswellb13092b2003-07-22 21:00:24 +000022748if test ${enableval} = "no"
22749then
22750 ENABLE_PURIFY=
22751
22752else
22753 ENABLE_PURIFY=ENABLE_PURIFY=1
22754
22755fi
22756
John Criswell7a73b802003-06-30 21:59:07 +000022757# Check whether --enable-optimized or --disable-optimized was given.
22758if test "${enable_optimized+set}" = set; then
22759 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022760
22761else
John Criswellb13092b2003-07-22 21:00:24 +000022762 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022763fi;
John Criswellb13092b2003-07-22 21:00:24 +000022764if test ${enableval} = "no"
22765then
22766 ENABLE_OPTIMIZED=
22767
22768else
22769 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22770
22771fi
22772
John Criswell55126592003-10-07 21:57:39 +000022773# Check whether --enable-spec2000 or --disable-spec2000 was given.
22774if test "${enable_spec2000+set}" = set; then
22775 enableval="$enable_spec2000"
John Criswell7a73b802003-06-30 21:59:07 +000022776
22777else
John Criswellb13092b2003-07-22 21:00:24 +000022778 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022779fi;
John Criswellb13092b2003-07-22 21:00:24 +000022780if test ${enableval} = "no"
22781then
John Criswell55126592003-10-07 21:57:39 +000022782 if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
22783 then
22784 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
John Criswellb13092b2003-07-22 21:00:24 +000022785
John Criswell55126592003-10-07 21:57:39 +000022786 USE_SPEC=USE_SPEC=1
22787
22788 else
22789 USE_SPEC=
22790
22791
22792 fi
John Criswellb13092b2003-07-22 21:00:24 +000022793else
John Criswell55126592003-10-07 21:57:39 +000022794 if test ${enableval} = ""
22795 then
22796 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22797
22798 else
22799 SPEC_ROOT=${enableval}
22800
22801 fi
John Criswellb13092b2003-07-22 21:00:24 +000022802 USE_SPEC=USE_SPEC=1
22803
22804fi
22805
John Criswell7a73b802003-06-30 21:59:07 +000022806# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22807if test "${enable_precompiled_bytecode+set}" = set; then
22808 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022809
22810else
John Criswellb13092b2003-07-22 21:00:24 +000022811 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022812fi;
John Criswellb13092b2003-07-22 21:00:24 +000022813if test ${enableval} = "no"
22814then
22815 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022816
John Criswellb13092b2003-07-22 21:00:24 +000022817else
22818 UPB=USE_PRECOMPILED_BYTECODE=1
22819
22820fi
John Criswellf02dbf02003-07-22 20:07:49 +000022821
22822
22823# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22824if test "${enable_llc_diffs+set}" = set; then
22825 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022826
22827else
John Criswellb13092b2003-07-22 21:00:24 +000022828 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022829fi;
John Criswellb13092b2003-07-22 21:00:24 +000022830if test ${enableval} = "no"
22831then
22832 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022833
John Criswellb13092b2003-07-22 21:00:24 +000022834else
22835 DISABLE_LLC_DIFFS=
22836
22837fi
22838
22839# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022840if test "${enable_jit+set}" = set; then
22841 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022842
22843else
John Criswellc78022e2003-07-29 19:11:58 +000022844 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022845fi;
John Criswellb13092b2003-07-22 21:00:24 +000022846
22847if test ${enableval} = "no"
22848then
22849 JIT=
22850
22851else
John Criswellc78022e2003-07-29 19:11:58 +000022852 case $target in
22853 *i*86*)
22854 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022855
John Criswellc78022e2003-07-29 19:11:58 +000022856 ;;
22857 *sparc*)
22858 JIT=TARGET_HAS_JIT=1
22859
22860 ;;
22861 *)
22862 JIT=
22863
22864 ;;
22865 esac
John Criswellb13092b2003-07-22 21:00:24 +000022866fi
John Criswell7a73b802003-06-30 21:59:07 +000022867
22868
John Criswellc78022e2003-07-29 19:11:58 +000022869
John Criswell7a73b802003-06-30 21:59:07 +000022870# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22871if test "${with_llvmgccdir+set}" = set; then
22872 withval="$with_llvmgccdir"
22873 LLVMGCCDIR=$withval
22874
22875fi;
22876
John Criswellc78022e2003-07-29 19:11:58 +000022877
John Criswell7a73b802003-06-30 21:59:07 +000022878# Check whether --with-bcrepos or --without-bcrepos was given.
22879if test "${with_bcrepos+set}" = set; then
22880 withval="$with_bcrepos"
22881 BCR=$withval
22882
22883else
22884 BCR=/home/vadve/lattner/LLVMPrograms
22885
22886fi;
22887
John Criswellc78022e2003-07-29 19:11:58 +000022888
John Criswell7a73b802003-06-30 21:59:07 +000022889# Check whether --with-papi or --without-papi was given.
22890if test "${with_papi+set}" = set; then
22891 withval="$with_papi"
22892 PAPIDIR=$withval
22893
22894else
John Criswellde00db22003-08-25 16:49:54 +000022895 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022896
22897fi;
22898
John Criswell7a73b802003-06-30 21:59:07 +000022899
22900# Check whether --with-purify or --without-purify was given.
22901if test "${with_purify+set}" = set; then
22902 withval="$with_purify"
22903 PURIFY=$withval
22904
22905fi;
22906
John Criswellde00db22003-08-25 16:49:54 +000022907
John Criswell0c38eaf2003-09-10 15:17:25 +000022908 ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022909cat >confcache <<\_ACEOF
22910# This file is a shell script that caches the results of configure
22911# tests run on this system so they can be shared between configure
22912# scripts and configure runs, see configure's option --config-cache.
22913# It is not useful on other systems. If it contains results you don't
22914# want to keep, you may remove or edit it.
22915#
22916# config.status only pays attention to the cache file if you give it
22917# the --recheck option to rerun configure.
22918#
John Criswell0c38eaf2003-09-10 15:17:25 +000022919# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022920# loading this file, other *unset* `ac_cv_foo' will be assigned the
22921# following values.
22922
22923_ACEOF
22924
22925# The following way of writing the cache mishandles newlines in values,
22926# but we know of no workaround that is simple, portable, and efficient.
22927# So, don't put newlines in cache variables' values.
22928# Ultrix sh set writes to stderr and can't be redirected directly,
22929# and sets the high bit in the cache file unless we assign to the vars.
22930{
22931 (set) 2>&1 |
22932 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22933 *ac_space=\ *)
22934 # `set' does not quote correctly, so add quotes (double-quote
22935 # substitution turns \\\\ into \\, and sed turns \\ into \).
22936 sed -n \
22937 "s/'/'\\\\''/g;
22938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22939 ;;
22940 *)
22941 # `set' quotes correctly as required by POSIX, so do not add quotes.
22942 sed -n \
22943 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22944 ;;
22945 esac;
22946} |
22947 sed '
22948 t clear
22949 : clear
22950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22951 t end
22952 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22953 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022954if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022955 if test -w $cache_file; then
22956 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22957 cat confcache >$cache_file
22958 else
22959 echo "not updating unwritable cache $cache_file"
22960 fi
22961fi
22962rm -f confcache
22963
22964test "x$prefix" = xNONE && prefix=$ac_default_prefix
22965# Let make expand exec_prefix.
22966test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22967
22968# VPATH may cause trouble with some makes, so we remove $(srcdir),
22969# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22970# trailing colons and then remove the whole line if VPATH becomes empty
22971# (actually we leave an empty line to preserve line numbers).
22972if test "x$srcdir" = x.; then
22973 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22974s/:*\$(srcdir):*/:/;
22975s/:*\${srcdir}:*/:/;
22976s/:*@srcdir@:*/:/;
22977s/^\([^=]*=[ ]*\):*/\1/;
22978s/:*$//;
22979s/^[^=]*=[ ]*$//;
22980}'
22981fi
22982
22983DEFS=-DHAVE_CONFIG_H
22984
John Criswell0c38eaf2003-09-10 15:17:25 +000022985ac_libobjs=
22986ac_ltlibobjs=
22987for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22988 # 1. Remove the extension, and $U if already installed.
22989 ac_i=`echo "$ac_i" |
22990 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22991 # 2. Add them.
22992 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22993 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22994done
22995LIBOBJS=$ac_libobjs
22996
22997LTLIBOBJS=$ac_ltlibobjs
22998
22999
John Criswell7a73b802003-06-30 21:59:07 +000023000
23001: ${CONFIG_STATUS=./config.status}
23002ac_clean_files_save=$ac_clean_files
23003ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23004{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23005echo "$as_me: creating $CONFIG_STATUS" >&6;}
23006cat >$CONFIG_STATUS <<_ACEOF
23007#! $SHELL
23008# Generated by $as_me.
23009# Run this file to recreate the current configuration.
23010# Compiler output produced by configure, useful for debugging
23011# configure, is in config.log if it exists.
23012
23013debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023014ac_cs_recheck=false
23015ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023016SHELL=\${CONFIG_SHELL-$SHELL}
23017_ACEOF
23018
23019cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023020## --------------------- ##
23021## M4sh Initialization. ##
23022## --------------------- ##
23023
23024# Be Bourne compatible
23025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23026 emulate sh
23027 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023028 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23029 # is contrary to our usage. Disable this feature.
23030 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023031elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23032 set -o posix
23033fi
23034
John Criswell7a73b802003-06-30 21:59:07 +000023035# Support unset when possible.
23036if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23037 as_unset=unset
23038else
23039 as_unset=false
23040fi
23041
John Criswell0c38eaf2003-09-10 15:17:25 +000023042
23043# Work around bugs in pre-3.0 UWIN ksh.
23044$as_unset ENV MAIL MAILPATH
23045PS1='$ '
23046PS2='> '
23047PS4='+ '
23048
23049# NLS nuisances.
23050for as_var in \
23051 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23052 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23053 LC_TELEPHONE LC_TIME
23054do
23055 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23056 eval $as_var=C; export $as_var
23057 else
23058 $as_unset $as_var
23059 fi
23060done
23061
23062# Required to use basename.
23063if expr a : '\(a\)' >/dev/null 2>&1; then
23064 as_expr=expr
23065else
23066 as_expr=false
23067fi
23068
23069if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23070 as_basename=basename
23071else
23072 as_basename=false
23073fi
John Criswell7a73b802003-06-30 21:59:07 +000023074
23075
23076# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023077as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023078$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23079 X"$0" : 'X\(//\)$' \| \
23080 X"$0" : 'X\(/\)$' \| \
23081 . : '\(.\)' 2>/dev/null ||
23082echo X/"$0" |
23083 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23084 /^X\/\(\/\/\)$/{ s//\1/; q; }
23085 /^X\/\(\/\).*/{ s//\1/; q; }
23086 s/.*/./; q'`
23087
John Criswell0c38eaf2003-09-10 15:17:25 +000023088
John Criswell7a73b802003-06-30 21:59:07 +000023089# PATH needs CR, and LINENO needs CR and PATH.
23090# Avoid depending upon Character Ranges.
23091as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23092as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23093as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23094as_cr_digits='0123456789'
23095as_cr_alnum=$as_cr_Letters$as_cr_digits
23096
23097# The user is always right.
23098if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023099 echo "#! /bin/sh" >conf$$.sh
23100 echo "exit 0" >>conf$$.sh
23101 chmod +x conf$$.sh
23102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023103 PATH_SEPARATOR=';'
23104 else
23105 PATH_SEPARATOR=:
23106 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023107 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023108fi
23109
23110
23111 as_lineno_1=$LINENO
23112 as_lineno_2=$LINENO
23113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23114 test "x$as_lineno_1" != "x$as_lineno_2" &&
23115 test "x$as_lineno_3" = "x$as_lineno_2" || {
23116 # Find who we are. Look in the path if we contain no path at all
23117 # relative or not.
23118 case $0 in
23119 *[\\/]* ) as_myself=$0 ;;
23120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23121for as_dir in $PATH
23122do
23123 IFS=$as_save_IFS
23124 test -z "$as_dir" && as_dir=.
23125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23126done
23127
23128 ;;
23129 esac
23130 # We did not find ourselves, most probably we were run as `sh COMMAND'
23131 # in which case we are not to be found in the path.
23132 if test "x$as_myself" = x; then
23133 as_myself=$0
23134 fi
23135 if test ! -f "$as_myself"; then
23136 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23137echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23138 { (exit 1); exit 1; }; }
23139 fi
23140 case $CONFIG_SHELL in
23141 '')
23142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23143for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23144do
23145 IFS=$as_save_IFS
23146 test -z "$as_dir" && as_dir=.
23147 for as_base in sh bash ksh sh5; do
23148 case $as_dir in
23149 /*)
23150 if ("$as_dir/$as_base" -c '
23151 as_lineno_1=$LINENO
23152 as_lineno_2=$LINENO
23153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23154 test "x$as_lineno_1" != "x$as_lineno_2" &&
23155 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023156 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23157 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023158 CONFIG_SHELL=$as_dir/$as_base
23159 export CONFIG_SHELL
23160 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23161 fi;;
23162 esac
23163 done
23164done
23165;;
23166 esac
23167
23168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23169 # uniformly replaced by the line number. The first 'sed' inserts a
23170 # line-number line before each line; the second 'sed' does the real
23171 # work. The second script uses 'N' to pair each line-number line
23172 # with the numbered line, and appends trailing '-' during
23173 # substitution so that $LINENO is not a special case at line end.
23174 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23175 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23176 sed '=' <$as_myself |
23177 sed '
23178 N
23179 s,$,-,
23180 : loop
23181 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23182 t loop
23183 s,-$,,
23184 s,^['$as_cr_digits']*\n,,
23185 ' >$as_me.lineno &&
23186 chmod +x $as_me.lineno ||
23187 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23188echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23189 { (exit 1); exit 1; }; }
23190
23191 # Don't try to exec as it changes $[0], causing all sort of problems
23192 # (the dirname of $[0] is not the place where we might find the
23193 # original and so on. Autoconf is especially sensible to this).
23194 . ./$as_me.lineno
23195 # Exit status is that of the last command.
23196 exit
23197}
23198
23199
23200case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23201 *c*,-n*) ECHO_N= ECHO_C='
23202' ECHO_T=' ' ;;
23203 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23204 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23205esac
23206
23207if expr a : '\(a\)' >/dev/null 2>&1; then
23208 as_expr=expr
23209else
23210 as_expr=false
23211fi
23212
23213rm -f conf$$ conf$$.exe conf$$.file
23214echo >conf$$.file
23215if ln -s conf$$.file conf$$ 2>/dev/null; then
23216 # We could just check for DJGPP; but this test a) works b) is more generic
23217 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23218 if test -f conf$$.exe; then
23219 # Don't use ln at all; we don't have any links
23220 as_ln_s='cp -p'
23221 else
23222 as_ln_s='ln -s'
23223 fi
23224elif ln conf$$.file conf$$ 2>/dev/null; then
23225 as_ln_s=ln
23226else
23227 as_ln_s='cp -p'
23228fi
23229rm -f conf$$ conf$$.exe conf$$.file
23230
John Criswell0c38eaf2003-09-10 15:17:25 +000023231if mkdir -p . 2>/dev/null; then
23232 as_mkdir_p=:
23233else
23234 as_mkdir_p=false
23235fi
23236
John Criswell7a73b802003-06-30 21:59:07 +000023237as_executable_p="test -f"
23238
23239# Sed expression to map a string onto a valid CPP name.
23240as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23241
23242# Sed expression to map a string onto a valid variable name.
23243as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23244
23245
23246# IFS
23247# We need space, tab and new line, in precisely that order.
23248as_nl='
23249'
23250IFS=" $as_nl"
23251
23252# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023253$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023254
23255exec 6>&1
23256
23257# Open the log real soon, to keep \$[0] and so on meaningful, and to
23258# report actual input values of CONFIG_FILES etc. instead of their
23259# values after options handling. Logging --version etc. is OK.
23260exec 5>>config.log
23261{
23262 echo
23263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23264## Running $as_me. ##
23265_ASBOX
23266} >&5
23267cat >&5 <<_CSEOF
23268
23269This file was extended by [LLVM] $as_me [1.0], which was
John Criswell0c38eaf2003-09-10 15:17:25 +000023270generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023271
23272 CONFIG_FILES = $CONFIG_FILES
23273 CONFIG_HEADERS = $CONFIG_HEADERS
23274 CONFIG_LINKS = $CONFIG_LINKS
23275 CONFIG_COMMANDS = $CONFIG_COMMANDS
23276 $ $0 $@
23277
23278_CSEOF
23279echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23280echo >&5
23281_ACEOF
23282
23283# Files that config.status was made for.
23284if test -n "$ac_config_files"; then
23285 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23286fi
23287
23288if test -n "$ac_config_headers"; then
23289 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23290fi
23291
23292if test -n "$ac_config_links"; then
23293 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23294fi
23295
23296if test -n "$ac_config_commands"; then
23297 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23298fi
23299
23300cat >>$CONFIG_STATUS <<\_ACEOF
23301
23302ac_cs_usage="\
23303\`$as_me' instantiates files from templates according to the
23304current configuration.
23305
23306Usage: $0 [OPTIONS] [FILE]...
23307
23308 -h, --help print this help, then exit
23309 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023310 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023311 -d, --debug don't remove temporary files
23312 --recheck update $as_me by reconfiguring in the same conditions
23313 --file=FILE[:TEMPLATE]
23314 instantiate the configuration file FILE
23315 --header=FILE[:TEMPLATE]
23316 instantiate the configuration header FILE
23317
23318Configuration files:
23319$config_files
23320
23321Configuration headers:
23322$config_headers
23323
John Criswellc764fbc2003-09-06 15:17:13 +000023324Configuration commands:
23325$config_commands
23326
John Criswell7a73b802003-06-30 21:59:07 +000023327Report bugs to <bug-autoconf@gnu.org>."
23328_ACEOF
23329
23330cat >>$CONFIG_STATUS <<_ACEOF
23331ac_cs_version="\\
23332[LLVM] config.status [1.0]
John Criswell0c38eaf2003-09-10 15:17:25 +000023333configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023334 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23335
23336Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23337Free Software Foundation, Inc.
23338This config.status script is free software; the Free Software Foundation
23339gives unlimited permission to copy, distribute and modify it."
23340srcdir=$srcdir
23341INSTALL="$INSTALL"
23342_ACEOF
23343
23344cat >>$CONFIG_STATUS <<\_ACEOF
23345# If no file are specified by the user, then we need to provide default
23346# value. By we need to know if files were specified by the user.
23347ac_need_defaults=:
23348while test $# != 0
23349do
23350 case $1 in
23351 --*=*)
23352 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23353 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023354 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023355 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023356 -*)
23357 ac_option=$1
23358 ac_optarg=$2
23359 ac_shift=shift
23360 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023361 *) # This is not an option, so the user has probably given explicit
23362 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023363 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023364 ac_need_defaults=false;;
23365 esac
23366
John Criswell0c38eaf2003-09-10 15:17:25 +000023367 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023368 # Handling of the options.
23369_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023370cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023371 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23372 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023373 --version | --vers* | -V )
23374 echo "$ac_cs_version"; exit 0 ;;
23375 --he | --h)
23376 # Conflict between --help and --header
23377 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23378Try \`$0 --help' for more information." >&5
23379echo "$as_me: error: ambiguous option: $1
23380Try \`$0 --help' for more information." >&2;}
23381 { (exit 1); exit 1; }; };;
23382 --help | --hel | -h )
23383 echo "$ac_cs_usage"; exit 0 ;;
23384 --debug | --d* | -d )
23385 debug=: ;;
23386 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023387 $ac_shift
23388 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023389 ac_need_defaults=false;;
23390 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023391 $ac_shift
23392 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023393 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23396 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023397
23398 # This is an error.
23399 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23400Try \`$0 --help' for more information." >&5
23401echo "$as_me: error: unrecognized option: $1
23402Try \`$0 --help' for more information." >&2;}
23403 { (exit 1); exit 1; }; } ;;
23404
23405 *) ac_config_targets="$ac_config_targets $1" ;;
23406
23407 esac
23408 shift
23409done
23410
John Criswell0c38eaf2003-09-10 15:17:25 +000023411ac_configure_extra_args=
23412
23413if $ac_cs_silent; then
23414 exec 6>/dev/null
23415 ac_configure_extra_args="$ac_configure_extra_args --silent"
23416fi
23417
23418_ACEOF
23419cat >>$CONFIG_STATUS <<_ACEOF
23420if \$ac_cs_recheck; then
23421 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23422 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23423fi
23424
John Criswell7a73b802003-06-30 21:59:07 +000023425_ACEOF
23426
John Criswellc764fbc2003-09-06 15:17:13 +000023427cat >>$CONFIG_STATUS <<_ACEOF
23428#
23429# INIT-COMMANDS section.
23430#
John Criswell7a73b802003-06-30 21:59:07 +000023431
John Criswellc764fbc2003-09-06 15:17:13 +000023432${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23433${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23434${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
23435${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23436${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
23437${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
23438${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
23439${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
23440${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
23441${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
23442${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
23443${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
23444${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
23445${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
23446${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
23447${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
23448${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023449${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
23450${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
23451${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
23452${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
23453${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023454${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023455${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
23456${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
23457${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
23458${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
23459${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
23460${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
23461${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
23462${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
23463${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
23464${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
23465${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
23466${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23467${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
23468${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
23469${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023470${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libcurses/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023471${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
23472${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
23473${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
23474${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023475${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libtermcap/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023476${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023477${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutempter/Makefile`
23478${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libutil/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023479${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
23480${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
23481${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23482${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023483${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23484${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023485${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23486${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23487${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23488${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23489${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
23490${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23491${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23492${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23493${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23494${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23495${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23496${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23497${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23498${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23499${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23500${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
23501${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23502${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000023503${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
John Criswellc764fbc2003-09-06 15:17:13 +000023504${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
John Criswell5ab73462003-10-09 15:44:28 +000023505${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/177.mesa/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023506${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
23507${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
23508${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
23509${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
23510${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
23511${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
23512${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
23513${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
23514${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
23515${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
John Criswell987e49c2003-10-10 01:11:54 +000023516${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/252.eon/Makefile`
23517${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023518${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
23519${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
23520${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
23521${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
23522${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
23523${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23524${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
John Criswell48e3cb92003-09-12 16:31:43 +000023525${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Makefile`
23526${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/Burg/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023527${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/aha/Makefile`
23528${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Applications/sgefa/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023529${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Makefile`
23530${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile`
23531${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/Makefile`
23532${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile`
23533${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile`
23534${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile`
23535${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile`
23536${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile`
23537${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile`
23538${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile`
23539${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile`
23540${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile`
23541${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile`
23542${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/Makefile`
23543${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile`
23544${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile`
23545${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile`
23546${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/health/Makefile`
23547${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile`
23548${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile`
23549${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/power/Makefile`
23550${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile`
23551${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile`
23552${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Olden/voronoi/Makefile`
John Criswell39e83892003-09-12 16:36:17 +000023553${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023554${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile`
23555${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile`
23556${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile`
23557${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile`
23558${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile`
23559${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/Ptrdist/yacr2/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023560${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile`
John Criswell48e3cb92003-09-12 16:31:43 +000023561${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/sim/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023562${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23563${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
John Criswellffaaf3b2003-09-10 18:38:44 +000023564${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Gizmos/Makefile`
23565${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Makefile`
23566${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile`
23567${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Shootout/Makefile`
23568${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Stanford/Makefile`
23569${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Benchmarks/Misc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023570${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023571${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
John Criswell0afe8252003-09-11 20:53:48 +000023572${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswell67181ca2003-09-26 14:53:17 +000023573${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/Makefile`
John Criswell68886d42003-09-26 19:51:42 +000023574${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C/Makefile`
23575${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/Makefile`
John Criswellc66bbd52003-09-29 21:35:32 +000023576${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Regression/C++/EH/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023577${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23578${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023579${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023580${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
23581${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
23582${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023583${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023584${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023585${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
Chris Lattnerebd70302003-09-13 03:29:53 +000023586${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-ar/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023587${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023588${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023589${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-link/Makefile`
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023590${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-nm/Makefile`
John Criswellddb7b4e2003-09-16 15:54:19 +000023591${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023592${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23593${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
23594${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
23595${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023596${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023597${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
23598${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
23599${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
23600${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
23601
23602_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023603
23604
23605
23606cat >>$CONFIG_STATUS <<\_ACEOF
23607for ac_config_target in $ac_config_targets
23608do
23609 case "$ac_config_target" in
23610 # Handling of arguments.
23611 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023612 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23613 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23614 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
23615 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23616 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
23617 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
23618 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
23619 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
23620 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
23621 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
23622 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
23623 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
23624 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
23625 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
23626 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
23627 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
23628 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023629 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
23630 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
23631 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
23632 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
23633 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023634 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023635 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
23636 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
23637 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
23638 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
23639 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
23640 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
23641 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
23642 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
23643 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
23644 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
23645 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
23646 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23647 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
23648 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
23649 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023650 "runtime/GCCLibraries/libcurses/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libcurses/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023651 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
23652 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
23653 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
23654 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023655 "runtime/GCCLibraries/libtermcap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libtermcap/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023656 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023657 "runtime/GCCLibraries/libutempter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutempter/Makefile" ;;
23658 "runtime/GCCLibraries/libutil/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libutil/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023659 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
23660 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
23661 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23662 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023663 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23664 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023665 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23666 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23667 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23668 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23669 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
23670 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23671 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23672 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23673 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23674 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23675 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23676 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23677 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23678 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23679 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23680 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23681 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23682 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000023683 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023684 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
John Criswell5ab73462003-10-09 15:44:28 +000023685 "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 +000023686 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23687 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23688 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23689 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23690 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23691 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23692 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23693 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23694 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23695 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
John Criswell987e49c2003-10-10 01:11:54 +000023696 "test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/252.eon/Makefile" ;;
23697 "test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023698 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23699 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23700 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23701 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23702 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23703 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23704 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023705 "test/Programs/MultiSource/Applications/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Makefile" ;;
23706 "test/Programs/MultiSource/Applications/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/Burg/Makefile" ;;
John Criswell39e83892003-09-12 16:36:17 +000023707 "test/Programs/MultiSource/Applications/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/aha/Makefile" ;;
23708 "test/Programs/MultiSource/Applications/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Applications/sgefa/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023709 "test/Programs/MultiSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Makefile" ;;
23710 "test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Fhourstones/Makefile" ;;
23711 "test/Programs/MultiSource/Benchmarks/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/Makefile" ;;
23712 "test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/01-qbsort/Makefile" ;;
23713 "test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/03-testtrie/Makefile" ;;
23714 "test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/04-bisect/Makefile" ;;
23715 "test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/05-eks/Makefile" ;;
23716 "test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/08-main/Makefile" ;;
23717 "test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/09-vor/Makefile" ;;
23718 "test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/12-IOtest/Makefile" ;;
23719 "test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/15-trie/Makefile" ;;
23720 "test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/17-bintr/Makefile" ;;
23721 "test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/McCat/18-imp/Makefile" ;;
23722 "test/Programs/MultiSource/Benchmarks/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/Makefile" ;;
23723 "test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bh/Makefile" ;;
23724 "test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/bisort/Makefile" ;;
23725 "test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/em3d/Makefile" ;;
23726 "test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/health/Makefile" ;;
23727 "test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/mst/Makefile" ;;
23728 "test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/perimeter/Makefile" ;;
23729 "test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/power/Makefile" ;;
23730 "test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/treeadd/Makefile" ;;
23731 "test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Olden/tsp/Makefile" ;;
23732 "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 +000023733 "test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/OptimizerEval/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023734 "test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/Makefile" ;;
23735 "test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/anagram/Makefile" ;;
23736 "test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/bc/Makefile" ;;
23737 "test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ft/Makefile" ;;
23738 "test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/Ptrdist/ks/Makefile" ;;
23739 "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 +000023740 "test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/llubenchmark/Makefile" ;;
John Criswell48e3cb92003-09-12 16:31:43 +000023741 "test/Programs/MultiSource/Benchmarks/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/sim/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023742 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23743 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
John Criswellffaaf3b2003-09-10 18:38:44 +000023744 "test/Programs/SingleSource/Gizmos/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Gizmos/Makefile" ;;
23745 "test/Programs/SingleSource/Benchmarks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Makefile" ;;
23746 "test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Dhrystone/Makefile" ;;
23747 "test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Shootout/Makefile" ;;
23748 "test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Stanford/Makefile" ;;
23749 "test/Programs/SingleSource/Benchmarks/Misc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Benchmarks/Misc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023750 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023751 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
John Criswell0afe8252003-09-11 20:53:48 +000023752 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswell67181ca2003-09-26 14:53:17 +000023753 "test/Programs/SingleSource/Regression/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/Makefile" ;;
John Criswell68886d42003-09-26 19:51:42 +000023754 "test/Programs/SingleSource/Regression/C/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C/Makefile" ;;
23755 "test/Programs/SingleSource/Regression/C++/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Regression/C++/Makefile" ;;
John Criswellc66bbd52003-09-29 21:35:32 +000023756 "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 +000023757 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23758 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023759 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023760 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23761 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23762 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023763 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023764 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023765 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000023766 "tools/llvm-ar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-ar/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023767 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023768 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023769 "tools/llvm-link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-link/Makefile" ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000023770 "tools/llvm-nm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-nm/Makefile" ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000023771 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023772 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23773 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23774 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23775 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023776 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023777 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23778 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23779 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23780 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023781 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23783echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23784 { (exit 1); exit 1; }; };;
23785 esac
23786done
23787
23788# If the user did not use the arguments to specify the items to instantiate,
23789# then the envvar interface is used. Set only those that are not.
23790# We use the long form for the default assignment because of an extremely
23791# bizarre bug on SunOS 4.1.3.
23792if $ac_need_defaults; then
23793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023796fi
23797
John Criswell0c38eaf2003-09-10 15:17:25 +000023798# Have a temporary directory for convenience. Make it in the build tree
23799# simply because there is no reason to put it here, and in addition,
23800# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023801# Create a temporary directory, and hook for its removal unless debugging.
23802$debug ||
23803{
23804 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23805 trap '{ (exit 1); exit 1; }' 1 2 13 15
23806}
23807
23808# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023809
John Criswell7a73b802003-06-30 21:59:07 +000023810{
John Criswell0c38eaf2003-09-10 15:17:25 +000023811 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023812 test -n "$tmp" && test -d "$tmp"
23813} ||
23814{
John Criswell0c38eaf2003-09-10 15:17:25 +000023815 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023816 (umask 077 && mkdir $tmp)
23817} ||
23818{
John Criswell0c38eaf2003-09-10 15:17:25 +000023819 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023820 { (exit 1); exit 1; }
23821}
23822
23823_ACEOF
23824
23825cat >>$CONFIG_STATUS <<_ACEOF
23826
23827#
23828# CONFIG_FILES section.
23829#
23830
23831# No need to generate the scripts if there are no CONFIG_FILES.
23832# This happens for instance when ./config.status config.h
23833if test -n "\$CONFIG_FILES"; then
23834 # Protect against being on the right side of a sed subst in config.status.
23835 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23836 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23837s,@SHELL@,$SHELL,;t t
23838s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23839s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23840s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23841s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23842s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23843s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23844s,@exec_prefix@,$exec_prefix,;t t
23845s,@prefix@,$prefix,;t t
23846s,@program_transform_name@,$program_transform_name,;t t
23847s,@bindir@,$bindir,;t t
23848s,@sbindir@,$sbindir,;t t
23849s,@libexecdir@,$libexecdir,;t t
23850s,@datadir@,$datadir,;t t
23851s,@sysconfdir@,$sysconfdir,;t t
23852s,@sharedstatedir@,$sharedstatedir,;t t
23853s,@localstatedir@,$localstatedir,;t t
23854s,@libdir@,$libdir,;t t
23855s,@includedir@,$includedir,;t t
23856s,@oldincludedir@,$oldincludedir,;t t
23857s,@infodir@,$infodir,;t t
23858s,@mandir@,$mandir,;t t
23859s,@build_alias@,$build_alias,;t t
23860s,@host_alias@,$host_alias,;t t
23861s,@target_alias@,$target_alias,;t t
23862s,@DEFS@,$DEFS,;t t
23863s,@ECHO_C@,$ECHO_C,;t t
23864s,@ECHO_N@,$ECHO_N,;t t
23865s,@ECHO_T@,$ECHO_T,;t t
23866s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023867s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023868s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23869s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23870s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23871s,@build@,$build,;t t
23872s,@build_cpu@,$build_cpu,;t t
23873s,@build_vendor@,$build_vendor,;t t
23874s,@build_os@,$build_os,;t t
23875s,@host@,$host,;t t
23876s,@host_cpu@,$host_cpu,;t t
23877s,@host_vendor@,$host_vendor,;t t
23878s,@host_os@,$host_os,;t t
23879s,@target@,$target,;t t
23880s,@target_cpu@,$target_cpu,;t t
23881s,@target_vendor@,$target_vendor,;t t
23882s,@target_os@,$target_os,;t t
23883s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023884s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023885s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023886s,@CXX@,$CXX,;t t
23887s,@CXXFLAGS@,$CXXFLAGS,;t t
23888s,@LDFLAGS@,$LDFLAGS,;t t
23889s,@CPPFLAGS@,$CPPFLAGS,;t t
23890s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23891s,@EXEEXT@,$EXEEXT,;t t
23892s,@OBJEXT@,$OBJEXT,;t t
23893s,@CC@,$CC,;t t
23894s,@CFLAGS@,$CFLAGS,;t t
23895s,@ac_ct_CC@,$ac_ct_CC,;t t
23896s,@CPP@,$CPP,;t t
23897s,@ifGNUmake@,$ifGNUmake,;t t
23898s,@LEX@,$LEX,;t t
23899s,@LEXLIB@,$LEXLIB,;t t
23900s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23901s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023902s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023903s,@LN_S@,$LN_S,;t t
23904s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023905s,@AR@,$AR,;t t
23906s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023907s,@RANLIB@,$RANLIB,;t t
23908s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23909s,@STRIP@,$STRIP,;t t
23910s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023911s,@CXXCPP@,$CXXCPP,;t t
23912s,@F77@,$F77,;t t
23913s,@FFLAGS@,$FFLAGS,;t t
23914s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023915s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023916s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023917s,@SED@,$SED,;t t
23918s,@RM@,$RM,;t t
23919s,@MKDIR@,$MKDIR,;t t
23920s,@DATE@,$DATE,;t t
23921s,@MV@,$MV,;t t
23922s,@DOT@,$DOT,;t t
23923s,@ETAGS@,$ETAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023924s,@PYTHON@,$PYTHON,;t t
23925s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023926s,@ALLOCA@,$ALLOCA,;t t
23927s,@LIBOBJS@,$LIBOBJS,;t t
23928s,@MMAP_FILE@,$MMAP_FILE,;t t
23929s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023930s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell55126592003-10-07 21:57:39 +000023931s,@SPEC_ROOT@,$SPEC_ROOT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023932s,@USE_SPEC@,$USE_SPEC,;t t
23933s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023934s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023935s,@JIT@,$JIT,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023936s,@BCR@,$BCR,;t t
23937s,@PAPIDIR@,$PAPIDIR,;t t
John Criswellce2141f2003-10-02 19:02:30 +000023938s,@PURIFY@,$PURIFY,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023939s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023940CEOF
23941
23942_ACEOF
23943
23944 cat >>$CONFIG_STATUS <<\_ACEOF
23945 # Split the substitutions into bite-sized pieces for seds with
23946 # small command number limits, like on Digital OSF/1 and HP-UX.
23947 ac_max_sed_lines=48
23948 ac_sed_frag=1 # Number of current file.
23949 ac_beg=1 # First line for current file.
23950 ac_end=$ac_max_sed_lines # Line after last line for current file.
23951 ac_more_lines=:
23952 ac_sed_cmds=
23953 while $ac_more_lines; do
23954 if test $ac_beg -gt 1; then
23955 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23956 else
23957 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23958 fi
23959 if test ! -s $tmp/subs.frag; then
23960 ac_more_lines=false
23961 else
23962 # The purpose of the label and of the branching condition is to
23963 # speed up the sed processing (if there are no `@' at all, there
23964 # is no need to browse any of the substitutions).
23965 # These are the two extra sed commands mentioned above.
23966 (echo ':t
23967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23968 if test -z "$ac_sed_cmds"; then
23969 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23970 else
23971 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23972 fi
23973 ac_sed_frag=`expr $ac_sed_frag + 1`
23974 ac_beg=$ac_end
23975 ac_end=`expr $ac_end + $ac_max_sed_lines`
23976 fi
23977 done
23978 if test -z "$ac_sed_cmds"; then
23979 ac_sed_cmds=cat
23980 fi
23981fi # test -n "$CONFIG_FILES"
23982
23983_ACEOF
23984cat >>$CONFIG_STATUS <<\_ACEOF
23985for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23987 case $ac_file in
23988 - | *:- | *:-:* ) # input from stdin
23989 cat >$tmp/stdin
23990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23994 * ) ac_file_in=$ac_file.in ;;
23995 esac
23996
23997 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23998 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24000 X"$ac_file" : 'X\(//\)[^/]' \| \
24001 X"$ac_file" : 'X\(//\)$' \| \
24002 X"$ac_file" : 'X\(/\)' \| \
24003 . : '\(.\)' 2>/dev/null ||
24004echo X"$ac_file" |
24005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24007 /^X\(\/\/\)$/{ s//\1/; q; }
24008 /^X\(\/\).*/{ s//\1/; q; }
24009 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024010 { if $as_mkdir_p; then
24011 mkdir -p "$ac_dir"
24012 else
24013 as_dir="$ac_dir"
24014 as_dirs=
24015 while test ! -d "$as_dir"; do
24016 as_dirs="$as_dir $as_dirs"
24017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24019 X"$as_dir" : 'X\(//\)[^/]' \| \
24020 X"$as_dir" : 'X\(//\)$' \| \
24021 X"$as_dir" : 'X\(/\)' \| \
24022 . : '\(.\)' 2>/dev/null ||
24023echo X"$as_dir" |
24024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24026 /^X\(\/\/\)$/{ s//\1/; q; }
24027 /^X\(\/\).*/{ s//\1/; q; }
24028 s/.*/./; q'`
24029 done
24030 test ! -n "$as_dirs" || mkdir $as_dirs
24031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24032echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24033 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024034
24035 ac_builddir=.
24036
24037if test "$ac_dir" != .; then
24038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24039 # A "../" for each directory in $ac_dir_suffix.
24040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24041else
24042 ac_dir_suffix= ac_top_builddir=
24043fi
24044
24045case $srcdir in
24046 .) # No --srcdir option. We are building in place.
24047 ac_srcdir=.
24048 if test -z "$ac_top_builddir"; then
24049 ac_top_srcdir=.
24050 else
24051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24052 fi ;;
24053 [\\/]* | ?:[\\/]* ) # Absolute path.
24054 ac_srcdir=$srcdir$ac_dir_suffix;
24055 ac_top_srcdir=$srcdir ;;
24056 *) # Relative path.
24057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24059esac
24060# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24061# absolute.
24062ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024063ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000024064ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24065ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24066
24067
24068 case $INSTALL in
24069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24070 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24071 esac
24072
24073 if test x"$ac_file" != x-; then
24074 { echo "$as_me:$LINENO: creating $ac_file" >&5
24075echo "$as_me: creating $ac_file" >&6;}
24076 rm -f "$ac_file"
24077 fi
24078 # Let's still pretend it is `configure' which instantiates (i.e., don't
24079 # use $as_me), people would be surprised to read:
24080 # /* config.h. Generated by config.status. */
24081 if test x"$ac_file" = x-; then
24082 configure_input=
24083 else
24084 configure_input="$ac_file. "
24085 fi
24086 configure_input=$configure_input"Generated from `echo $ac_file_in |
24087 sed 's,.*/,,'` by configure."
24088
24089 # First look for the input files in the build tree, otherwise in the
24090 # src tree.
24091 ac_file_inputs=`IFS=:
24092 for f in $ac_file_in; do
24093 case $f in
24094 -) echo $tmp/stdin ;;
24095 [\\/$]*)
24096 # Absolute (can't be DOS-style, as IFS=:)
24097 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24098echo "$as_me: error: cannot find input file: $f" >&2;}
24099 { (exit 1); exit 1; }; }
24100 echo $f;;
24101 *) # Relative
24102 if test -f "$f"; then
24103 # Build tree
24104 echo $f
24105 elif test -f "$srcdir/$f"; then
24106 # Source tree
24107 echo $srcdir/$f
24108 else
24109 # /dev/null tree
24110 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24111echo "$as_me: error: cannot find input file: $f" >&2;}
24112 { (exit 1); exit 1; }; }
24113 fi;;
24114 esac
24115 done` || { (exit 1); exit 1; }
24116_ACEOF
24117cat >>$CONFIG_STATUS <<_ACEOF
24118 sed "$ac_vpsub
24119$extrasub
24120_ACEOF
24121cat >>$CONFIG_STATUS <<\_ACEOF
24122:t
24123/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24124s,@configure_input@,$configure_input,;t t
24125s,@srcdir@,$ac_srcdir,;t t
24126s,@abs_srcdir@,$ac_abs_srcdir,;t t
24127s,@top_srcdir@,$ac_top_srcdir,;t t
24128s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24129s,@builddir@,$ac_builddir,;t t
24130s,@abs_builddir@,$ac_abs_builddir,;t t
24131s,@top_builddir@,$ac_top_builddir,;t t
24132s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24133s,@INSTALL@,$ac_INSTALL,;t t
24134" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24135 rm -f $tmp/stdin
24136 if test x"$ac_file" != x-; then
24137 mv $tmp/out $ac_file
24138 else
24139 cat $tmp/out
24140 rm -f $tmp/out
24141 fi
24142
24143done
24144_ACEOF
24145cat >>$CONFIG_STATUS <<\_ACEOF
24146
24147#
24148# CONFIG_HEADER section.
24149#
24150
24151# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24152# NAME is the cpp macro being defined and VALUE is the value it is being given.
24153#
24154# ac_d sets the value in "#define NAME VALUE" lines.
24155ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24156ac_dB='[ ].*$,\1#\2'
24157ac_dC=' '
24158ac_dD=',;t'
24159# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24160ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24161ac_uB='$,\1#\2define\3'
24162ac_uC=' '
24163ac_uD=',;t'
24164
24165for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24167 case $ac_file in
24168 - | *:- | *:-:* ) # input from stdin
24169 cat >$tmp/stdin
24170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24174 * ) ac_file_in=$ac_file.in ;;
24175 esac
24176
24177 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24178echo "$as_me: creating $ac_file" >&6;}
24179
24180 # First look for the input files in the build tree, otherwise in the
24181 # src tree.
24182 ac_file_inputs=`IFS=:
24183 for f in $ac_file_in; do
24184 case $f in
24185 -) echo $tmp/stdin ;;
24186 [\\/$]*)
24187 # Absolute (can't be DOS-style, as IFS=:)
24188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24189echo "$as_me: error: cannot find input file: $f" >&2;}
24190 { (exit 1); exit 1; }; }
24191 echo $f;;
24192 *) # Relative
24193 if test -f "$f"; then
24194 # Build tree
24195 echo $f
24196 elif test -f "$srcdir/$f"; then
24197 # Source tree
24198 echo $srcdir/$f
24199 else
24200 # /dev/null tree
24201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24202echo "$as_me: error: cannot find input file: $f" >&2;}
24203 { (exit 1); exit 1; }; }
24204 fi;;
24205 esac
24206 done` || { (exit 1); exit 1; }
24207 # Remove the trailing spaces.
24208 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24209
24210_ACEOF
24211
24212# Transform confdefs.h into two sed scripts, `conftest.defines' and
24213# `conftest.undefs', that substitutes the proper values into
24214# config.h.in to produce config.h. The first handles `#define'
24215# templates, and the second `#undef' templates.
24216# And first: Protect against being on the right side of a sed subst in
24217# config.status. Protect against being in an unquoted here document
24218# in config.status.
24219rm -f conftest.defines conftest.undefs
24220# Using a here document instead of a string reduces the quoting nightmare.
24221# Putting comments in sed scripts is not portable.
24222#
24223# `end' is used to avoid that the second main sed command (meant for
24224# 0-ary CPP macros) applies to n-ary macro definitions.
24225# See the Autoconf documentation for `clear'.
24226cat >confdef2sed.sed <<\_ACEOF
24227s/[\\&,]/\\&/g
24228s,[\\$`],\\&,g
24229t clear
24230: clear
24231s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24232t end
24233s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24234: end
24235_ACEOF
24236# If some macros were called several times there might be several times
24237# the same #defines, which is useless. Nevertheless, we may not want to
24238# sort them, since we want the *last* AC-DEFINE to be honored.
24239uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24240sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24241rm -f confdef2sed.sed
24242
24243# This sed command replaces #undef with comments. This is necessary, for
24244# example, in the case of _POSIX_SOURCE, which is predefined and required
24245# on some systems where configure will not decide to define it.
24246cat >>conftest.undefs <<\_ACEOF
24247s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24248_ACEOF
24249
24250# Break up conftest.defines because some shells have a limit on the size
24251# of here documents, and old seds have small limits too (100 cmds).
24252echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswell0c38eaf2003-09-10 15:17:25 +000024253echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024254echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24255echo ' :' >>$CONFIG_STATUS
24256rm -f conftest.tail
24257while grep . conftest.defines >/dev/null
24258do
24259 # Write a limited-size here document to $tmp/defines.sed.
24260 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24261 # Speed up: don't consider the non `#define' lines.
24262 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24263 # Work around the forget-to-reset-the-flag bug.
24264 echo 't clr' >>$CONFIG_STATUS
24265 echo ': clr' >>$CONFIG_STATUS
24266 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24267 echo 'CEOF
24268 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24269 rm -f $tmp/in
24270 mv $tmp/out $tmp/in
24271' >>$CONFIG_STATUS
24272 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24273 rm -f conftest.defines
24274 mv conftest.tail conftest.defines
24275done
24276rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024277echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024278echo >>$CONFIG_STATUS
24279
24280# Break up conftest.undefs because some shells have a limit on the size
24281# of here documents, and old seds have small limits too (100 cmds).
24282echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24283rm -f conftest.tail
24284while grep . conftest.undefs >/dev/null
24285do
24286 # Write a limited-size here document to $tmp/undefs.sed.
24287 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24288 # Speed up: don't consider the non `#undef'
24289 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24290 # Work around the forget-to-reset-the-flag bug.
24291 echo 't clr' >>$CONFIG_STATUS
24292 echo ': clr' >>$CONFIG_STATUS
24293 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24294 echo 'CEOF
24295 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24296 rm -f $tmp/in
24297 mv $tmp/out $tmp/in
24298' >>$CONFIG_STATUS
24299 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24300 rm -f conftest.undefs
24301 mv conftest.tail conftest.undefs
24302done
24303rm -f conftest.undefs
24304
24305cat >>$CONFIG_STATUS <<\_ACEOF
24306 # Let's still pretend it is `configure' which instantiates (i.e., don't
24307 # use $as_me), people would be surprised to read:
24308 # /* config.h. Generated by config.status. */
24309 if test x"$ac_file" = x-; then
24310 echo "/* Generated by configure. */" >$tmp/config.h
24311 else
24312 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24313 fi
24314 cat $tmp/in >>$tmp/config.h
24315 rm -f $tmp/in
24316 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024317 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024318 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24319echo "$as_me: $ac_file is unchanged" >&6;}
24320 else
24321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24323 X"$ac_file" : 'X\(//\)[^/]' \| \
24324 X"$ac_file" : 'X\(//\)$' \| \
24325 X"$ac_file" : 'X\(/\)' \| \
24326 . : '\(.\)' 2>/dev/null ||
24327echo X"$ac_file" |
24328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24330 /^X\(\/\/\)$/{ s//\1/; q; }
24331 /^X\(\/\).*/{ s//\1/; q; }
24332 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024333 { if $as_mkdir_p; then
24334 mkdir -p "$ac_dir"
24335 else
24336 as_dir="$ac_dir"
24337 as_dirs=
24338 while test ! -d "$as_dir"; do
24339 as_dirs="$as_dir $as_dirs"
24340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24342 X"$as_dir" : 'X\(//\)[^/]' \| \
24343 X"$as_dir" : 'X\(//\)$' \| \
24344 X"$as_dir" : 'X\(/\)' \| \
24345 . : '\(.\)' 2>/dev/null ||
24346echo X"$as_dir" |
24347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24349 /^X\(\/\/\)$/{ s//\1/; q; }
24350 /^X\(\/\).*/{ s//\1/; q; }
24351 s/.*/./; q'`
24352 done
24353 test ! -n "$as_dirs" || mkdir $as_dirs
24354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24355echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24356 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024357
24358 rm -f $ac_file
24359 mv $tmp/config.h $ac_file
24360 fi
24361 else
24362 cat $tmp/config.h
24363 rm -f $tmp/config.h
24364 fi
24365done
24366_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024367cat >>$CONFIG_STATUS <<\_ACEOF
24368
24369#
24370# CONFIG_COMMANDS section.
24371#
24372for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24373 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24374 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24375 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24376$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24377 X"$ac_dest" : 'X\(//\)[^/]' \| \
24378 X"$ac_dest" : 'X\(//\)$' \| \
24379 X"$ac_dest" : 'X\(/\)' \| \
24380 . : '\(.\)' 2>/dev/null ||
24381echo X"$ac_dest" |
24382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24384 /^X\(\/\/\)$/{ s//\1/; q; }
24385 /^X\(\/\).*/{ s//\1/; q; }
24386 s/.*/./; q'`
24387 ac_builddir=.
24388
24389if test "$ac_dir" != .; then
24390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24391 # A "../" for each directory in $ac_dir_suffix.
24392 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24393else
24394 ac_dir_suffix= ac_top_builddir=
24395fi
24396
24397case $srcdir in
24398 .) # No --srcdir option. We are building in place.
24399 ac_srcdir=.
24400 if test -z "$ac_top_builddir"; then
24401 ac_top_srcdir=.
24402 else
24403 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24404 fi ;;
24405 [\\/]* | ?:[\\/]* ) # Absolute path.
24406 ac_srcdir=$srcdir$ac_dir_suffix;
24407 ac_top_srcdir=$srcdir ;;
24408 *) # Relative path.
24409 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24410 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24411esac
24412# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24413# absolute.
24414ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswell0c38eaf2003-09-10 15:17:25 +000024415ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024416ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24417ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24418
24419
24420 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24421echo "$as_me: executing $ac_dest commands" >&6;}
24422 case $ac_dest in
24423 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24424 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
24425 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
24426 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
24427 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
24428 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
24429 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
24430 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
24431 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
24432 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
24433 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
24434 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
24435 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
24436 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
24437 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
24438 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
24439 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 +000024440 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
24441 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
24442 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
24443 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
24444 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 +000024445 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024446 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
24447 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
24448 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
24449 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
24450 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
24451 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
24452 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
24453 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
24454 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
24455 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
24456 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
24457 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24458 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
24459 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
24460 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 +000024461 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 +000024462 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
24463 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
24464 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
24465 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 +000024466 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 +000024467 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 +000024468 runtime/GCCLibraries/libutempter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libutempter/Makefile runtime/GCCLibraries/libutempter/Makefile ;;
24469 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 +000024470 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
24471 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
24472 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24473 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024474 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24475 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 +000024476 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
24477 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
24478 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24479 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24480 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
24481 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24482 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24483 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24484 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24485 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24486 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24487 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24488 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24489 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24490 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24491 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
24492 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24493 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 +000024494 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 +000024495 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 +000024496 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 +000024497 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 ;;
24498 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 ;;
24499 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 ;;
24500 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 ;;
24501 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 ;;
24502 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 ;;
24503 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 ;;
24504 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 ;;
24505 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 ;;
24506 test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
John Criswell987e49c2003-10-10 01:11:54 +000024507 test/Programs/External/SPEC/CINT2000/252.eon/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/252.eon/Makefile test/Programs/External/SPEC/CINT2000/252.eon/Makefile ;;
24508 test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile test/Programs/External/SPEC/CINT2000/253.perlbmk/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024509 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 ;;
24510 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 ;;
24511 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 ;;
24512 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 ;;
24513 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
24514 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24515 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 +000024516 test/Programs/MultiSource/Applications/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Applications/Makefile test/Programs/MultiSource/Applications/Makefile ;;
24517 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 +000024518 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 ;;
24519 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 +000024520 test/Programs/MultiSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/Makefile test/Programs/MultiSource/Benchmarks/Makefile ;;
24521 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 ;;
24522 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 ;;
24523 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 ;;
24524 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 ;;
24525 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 ;;
24526 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 ;;
24527 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 ;;
24528 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 ;;
24529 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 ;;
24530 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 ;;
24531 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 ;;
24532 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 ;;
24533 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 ;;
24534 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 ;;
24535 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 ;;
24536 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 ;;
24537 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 ;;
24538 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 ;;
24539 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 ;;
24540 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 ;;
24541 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 ;;
24542 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 ;;
24543 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 +000024544 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 +000024545 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 ;;
24546 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 ;;
24547 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 ;;
24548 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 ;;
24549 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 ;;
24550 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 +000024551 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 +000024552 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 +000024553 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24554 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 +000024555 test/Programs/SingleSource/Gizmos/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Gizmos/Makefile test/Programs/SingleSource/Gizmos/Makefile ;;
24556 test/Programs/SingleSource/Benchmarks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Benchmarks/Makefile test/Programs/SingleSource/Benchmarks/Makefile ;;
24557 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 ;;
24558 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 ;;
24559 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 ;;
24560 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 +000024561 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 +000024562 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 +000024563 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 +000024564 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 +000024565 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 ;;
24566 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 +000024567 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 +000024568 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24569 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024570 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024571 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
24572 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
24573 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024574 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024575 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024576 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
Chris Lattnerebd70302003-09-13 03:29:53 +000024577 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 +000024578 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 +000024579 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 +000024580 tools/llvm-link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-link/Makefile tools/llvm-link/Makefile ;;
Alkis Evlogimenose7d40222003-10-17 00:50:38 +000024581 tools/llvm-nm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-nm/Makefile tools/llvm-nm/Makefile ;;
John Criswellddb7b4e2003-09-16 15:54:19 +000024582 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024583 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24584 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
24585 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
24586 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024587 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024588 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
24589 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
24590 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
24591 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
24592 esac
24593done
24594_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024595
24596cat >>$CONFIG_STATUS <<\_ACEOF
24597
24598{ (exit 0); exit 0; }
24599_ACEOF
24600chmod +x $CONFIG_STATUS
24601ac_clean_files=$ac_clean_files_save
24602
24603
24604# configure is writing to config.log, and then calls config.status.
24605# config.status does its own redirection, appending to config.log.
24606# Unfortunately, on DOS this fails, as config.log is still kept open
24607# by configure, so config.status won't be able to write to it; its
24608# output is simply discarded. So we exec the FD to /dev/null,
24609# effectively closing config.log, so it can be properly (re)opened and
24610# appended to by config.status. When coming back to configure, we
24611# need to make the FD available again.
24612if test "$no_create" != yes; then
24613 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024614 ac_config_status_args=
24615 test "$silent" = yes &&
24616 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024617 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024619 exec 5>>config.log
24620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24621 # would make configure fail if this is the last instruction.
24622 $ac_cs_success || { (exit 1); exit 1; }
24623fi
24624
John Criswell12399a12003-09-30 15:55:44 +000024625#
24626# CONFIG_SUBDIRS section.
24627#
24628if test "$no_recursion" != yes; then
24629
24630 # Remove --cache-file and --srcdir arguments so they do not pile up.
24631 ac_sub_configure_args=
24632 ac_prev=
24633 for ac_arg in $ac_configure_args; do
24634 if test -n "$ac_prev"; then
24635 ac_prev=
24636 continue
24637 fi
24638 case $ac_arg in
24639 -cache-file | --cache-file | --cache-fil | --cache-fi \
24640 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24641 ac_prev=cache_file ;;
24642 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24643 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24644 | --c=*)
24645 ;;
24646 --config-cache | -C)
24647 ;;
24648 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24649 ac_prev=srcdir ;;
24650 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24651 ;;
24652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24653 ac_prev=prefix ;;
24654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24655 ;;
24656 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24657 esac
24658 done
24659
24660 # Always prepend --prefix to ensure using the same prefix
24661 # in subdir configurations.
24662 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24663
24664 ac_popdir=`pwd`
24665 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24666
24667 # Do not complain, so a configure script can configure whichever
24668 # parts of a large source tree are present.
24669 test -d $srcdir/$ac_dir || continue
24670
24671 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24672echo "$as_me: configuring in $ac_dir" >&6;}
24673 { if $as_mkdir_p; then
24674 mkdir -p "$ac_dir"
24675 else
24676 as_dir="$ac_dir"
24677 as_dirs=
24678 while test ! -d "$as_dir"; do
24679 as_dirs="$as_dir $as_dirs"
24680 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24682 X"$as_dir" : 'X\(//\)[^/]' \| \
24683 X"$as_dir" : 'X\(//\)$' \| \
24684 X"$as_dir" : 'X\(/\)' \| \
24685 . : '\(.\)' 2>/dev/null ||
24686echo X"$as_dir" |
24687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24689 /^X\(\/\/\)$/{ s//\1/; q; }
24690 /^X\(\/\).*/{ s//\1/; q; }
24691 s/.*/./; q'`
24692 done
24693 test ! -n "$as_dirs" || mkdir $as_dirs
24694 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24695echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24696 { (exit 1); exit 1; }; }; }
24697
24698 ac_builddir=.
24699
24700if test "$ac_dir" != .; then
24701 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24702 # A "../" for each directory in $ac_dir_suffix.
24703 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24704else
24705 ac_dir_suffix= ac_top_builddir=
24706fi
24707
24708case $srcdir in
24709 .) # No --srcdir option. We are building in place.
24710 ac_srcdir=.
24711 if test -z "$ac_top_builddir"; then
24712 ac_top_srcdir=.
24713 else
24714 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24715 fi ;;
24716 [\\/]* | ?:[\\/]* ) # Absolute path.
24717 ac_srcdir=$srcdir$ac_dir_suffix;
24718 ac_top_srcdir=$srcdir ;;
24719 *) # Relative path.
24720 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24721 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24722esac
24723# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24724# absolute.
24725ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24726ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24727ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24728ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24729
24730
24731 cd $ac_dir
24732
24733 # Check for guested configure; otherwise get Cygnus style configure.
24734 if test -f $ac_srcdir/configure.gnu; then
24735 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24736 elif test -f $ac_srcdir/configure; then
24737 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24738 elif test -f $ac_srcdir/configure.in; then
24739 ac_sub_configure=$ac_configure
24740 else
24741 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24742echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24743 ac_sub_configure=
24744 fi
24745
24746 # The recursion is here.
24747 if test -n "$ac_sub_configure"; then
24748 # Make the cache file name correct relative to the subdirectory.
24749 case $cache_file in
24750 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24751 *) # Relative path.
24752 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24753 esac
24754
24755 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24756echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24757 # The eval makes quoting arguments work.
24758 eval $ac_sub_configure $ac_sub_configure_args \
24759 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24760 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24761echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24762 { (exit 1); exit 1; }; }
24763 fi
24764
24765 cd $ac_popdir
24766 done
24767fi
24768