blob: 140d24668ec346addc537599a817a6ece8efb85d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelld9cd1442003-09-09 20:52:17 +00003# Generated by GNU Autoconf 2.53 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.
11
John Criswell7a73b802003-06-30 21:59:07 +000012
13# Check that we are running under the correct shell.
14SHELL=${CONFIG_SHELL-/bin/sh}
15
16case X$ECHO in
17X*--fallback-echo)
18 # Remove one level of quotation (which was required for Make).
19 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
20 ;;
21esac
22
23echo=${ECHO-echo}
24if test "X$1" = X--no-reexec; then
25 # Discard the --no-reexec flag, and continue.
26 shift
27elif test "X$1" = X--fallback-echo; then
28 # Avoid inline document here, it may be left over
29 :
John Criswell47fdd832003-07-14 16:52:07 +000030elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +000031 # Yippee, $echo works!
32 :
33else
34 # Restart under the correct shell.
35 exec $SHELL "$0" --no-reexec ${1+"$@"}
36fi
37
38if test "X$1" = X--fallback-echo; then
39 # used as fallback echo
40 shift
41 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +000042$*
John Criswell7a73b802003-06-30 21:59:07 +000043EOF
44 exit 0
45fi
46
47# The HP-UX ksh and POSIX shell print the target directory to stdout
48# if CDPATH is set.
49if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
50
51if test -z "$ECHO"; then
52if test "X${echo_test_string+set}" != Xset; then
53# find a string as large as possible, as long as the shell can cope with it
54 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
55 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
56 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
57 echo_test_string="`eval $cmd`" &&
58 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
59 then
60 break
61 fi
62 done
63fi
64
65if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
66 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
67 test "X$echo_testing_string" = "X$echo_test_string"; then
68 :
69else
70 # The Solaris, AIX, and Digital Unix default echo programs unquote
71 # backslashes. This makes it impossible to quote backslashes using
72 # echo "$something" | sed 's/\\/\\\\/g'
73 #
74 # So, first we look for a working echo in the user's PATH.
75
John Criswell47fdd832003-07-14 16:52:07 +000076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000077 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +000078 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +000079 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
80 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
81 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
82 test "X$echo_testing_string" = "X$echo_test_string"; then
83 echo="$dir/echo"
84 break
85 fi
86 done
John Criswell47fdd832003-07-14 16:52:07 +000087 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +000088
89 if test "X$echo" = Xecho; then
90 # We didn't find a better echo, so look for alternatives.
91 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
92 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
93 test "X$echo_testing_string" = "X$echo_test_string"; then
94 # This shell has a builtin print -r that does the trick.
95 echo='print -r'
96 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
97 test "X$CONFIG_SHELL" != X/bin/ksh; then
98 # If we have ksh, try running configure again with it.
99 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
100 export ORIGINAL_CONFIG_SHELL
101 CONFIG_SHELL=/bin/ksh
102 export CONFIG_SHELL
103 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
104 else
105 # Try using printf.
106 echo='printf %s\n'
107 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
108 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
109 test "X$echo_testing_string" = "X$echo_test_string"; then
110 # Cool, printf works
111 :
112 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
113 test "X$echo_testing_string" = 'X\t' &&
114 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
117 export CONFIG_SHELL
118 SHELL="$CONFIG_SHELL"
119 export SHELL
120 echo="$CONFIG_SHELL $0 --fallback-echo"
121 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
122 test "X$echo_testing_string" = 'X\t' &&
123 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
124 test "X$echo_testing_string" = "X$echo_test_string"; then
125 echo="$CONFIG_SHELL $0 --fallback-echo"
126 else
127 # maybe with a smaller string...
128 prev=:
129
130 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
131 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
132 then
133 break
134 fi
135 prev="$cmd"
136 done
137
138 if test "$prev" != 'sed 50q "$0"'; then
139 echo_test_string=`eval $prev`
140 export echo_test_string
141 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
142 else
143 # Oops. We lost completely, so just stick with echo.
144 echo=echo
145 fi
146 fi
147 fi
148 fi
149fi
150fi
151
152# Copy echo and quote the copy suitably for passing to libtool from
153# the Makefile, instead of quoting the original, which is used later.
154ECHO=$echo
155if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
156 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
157fi
158
159
160
John Criswell47fdd832003-07-14 16:52:07 +0000161
162tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
163
164tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
165
John Criswelld9cd1442003-09-09 20:52:17 +0000166if expr a : '\(a\)' >/dev/null 2>&1; then
167 as_expr=expr
168else
169 as_expr=false
170fi
171
172
173## --------------------- ##
174## M4sh Initialization. ##
175## --------------------- ##
176
177# Be Bourne compatible
178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
179 emulate sh
180 NULLCMD=:
181elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
182 set -o posix
183fi
184
185# NLS nuisances.
186# Support unset when possible.
187if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
188 as_unset=unset
189else
190 as_unset=false
191fi
192
193(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
194 { $as_unset LANG || test "${LANG+set}" != set; } ||
195 { LANG=C; export LANG; }
196(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
197 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
198 { LC_ALL=C; export LC_ALL; }
199(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
200 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
201 { LC_TIME=C; export LC_TIME; }
202(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
203 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
204 { LC_CTYPE=C; export LC_CTYPE; }
205(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
206 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
207 { LANGUAGE=C; export LANGUAGE; }
208(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
209 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
210 { LC_COLLATE=C; export LC_COLLATE; }
211(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
212 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
213 { LC_NUMERIC=C; export LC_NUMERIC; }
214(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
215 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
216 { LC_MESSAGES=C; export LC_MESSAGES; }
217
218
219# Name of the executable.
220as_me=`(basename "$0") 2>/dev/null ||
221$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
222 X"$0" : 'X\(//\)$' \| \
223 X"$0" : 'X\(/\)$' \| \
224 . : '\(.\)' 2>/dev/null ||
225echo X/"$0" |
226 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
227 /^X\/\(\/\/\)$/{ s//\1/; q; }
228 /^X\/\(\/\).*/{ s//\1/; q; }
229 s/.*/./; q'`
230
231# PATH needs CR, and LINENO needs CR and PATH.
232# Avoid depending upon Character Ranges.
233as_cr_letters='abcdefghijklmnopqrstuvwxyz'
234as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
235as_cr_Letters=$as_cr_letters$as_cr_LETTERS
236as_cr_digits='0123456789'
237as_cr_alnum=$as_cr_Letters$as_cr_digits
238
239# The user is always right.
240if test "${PATH_SEPARATOR+set}" != set; then
241 echo "#! /bin/sh" >conftest.sh
242 echo "exit 0" >>conftest.sh
243 chmod +x conftest.sh
244 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
245 PATH_SEPARATOR=';'
246 else
247 PATH_SEPARATOR=:
248 fi
249 rm -f conftest.sh
250fi
251
252
253 as_lineno_1=$LINENO
254 as_lineno_2=$LINENO
255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
256 test "x$as_lineno_1" != "x$as_lineno_2" &&
257 test "x$as_lineno_3" = "x$as_lineno_2" || {
258 # Find who we are. Look in the path if we contain no path at all
259 # relative or not.
260 case $0 in
261 *[\\/]* ) as_myself=$0 ;;
262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263for as_dir in $PATH
264do
265 IFS=$as_save_IFS
266 test -z "$as_dir" && as_dir=.
267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
268done
269
270 ;;
271 esac
272 # We did not find ourselves, most probably we were run as `sh COMMAND'
273 # in which case we are not to be found in the path.
274 if test "x$as_myself" = x; then
275 as_myself=$0
276 fi
277 if test ! -f "$as_myself"; then
278 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
279 { (exit 1); exit 1; }; }
280 fi
281 case $CONFIG_SHELL in
282 '')
283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
285do
286 IFS=$as_save_IFS
287 test -z "$as_dir" && as_dir=.
288 for as_base in sh bash ksh sh5; do
289 case $as_dir in
290 /*)
291 if ("$as_dir/$as_base" -c '
292 as_lineno_1=$LINENO
293 as_lineno_2=$LINENO
294 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
295 test "x$as_lineno_1" != "x$as_lineno_2" &&
296 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
297 CONFIG_SHELL=$as_dir/$as_base
298 export CONFIG_SHELL
299 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
300 fi;;
301 esac
302 done
303done
304;;
305 esac
306
307 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
308 # uniformly replaced by the line number. The first 'sed' inserts a
309 # line-number line before each line; the second 'sed' does the real
310 # work. The second script uses 'N' to pair each line-number line
311 # with the numbered line, and appends trailing '-' during
312 # substitution so that $LINENO is not a special case at line end.
313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
314 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
315 sed '=' <$as_myself |
316 sed '
317 N
318 s,$,-,
319 : loop
320 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
321 t loop
322 s,-$,,
323 s,^['$as_cr_digits']*\n,,
324 ' >$as_me.lineno &&
325 chmod +x $as_me.lineno ||
326 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
327 { (exit 1); exit 1; }; }
328
329 # Don't try to exec as it changes $[0], causing all sort of problems
330 # (the dirname of $[0] is not the place where we might find the
331 # original and so on. Autoconf is especially sensible to this).
332 . ./$as_me.lineno
333 # Exit status is that of the last command.
334 exit
335}
336
337
338case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
339 *c*,-n*) ECHO_N= ECHO_C='
340' ECHO_T=' ' ;;
341 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
342 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
343esac
344
345if expr a : '\(a\)' >/dev/null 2>&1; then
346 as_expr=expr
347else
348 as_expr=false
349fi
350
351rm -f conf$$ conf$$.exe conf$$.file
352echo >conf$$.file
353if ln -s conf$$.file conf$$ 2>/dev/null; then
354 # We could just check for DJGPP; but this test a) works b) is more generic
355 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
356 if test -f conf$$.exe; then
357 # Don't use ln at all; we don't have any links
358 as_ln_s='cp -p'
359 else
360 as_ln_s='ln -s'
361 fi
362elif ln conf$$.file conf$$ 2>/dev/null; then
363 as_ln_s=ln
364else
365 as_ln_s='cp -p'
366fi
367rm -f conf$$ conf$$.exe conf$$.file
368
369as_executable_p="test -f"
370
371# Sed expression to map a string onto a valid CPP name.
372as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
373
374# Sed expression to map a string onto a valid variable name.
375as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
376
377
378# IFS
379# We need space, tab and new line, in precisely that order.
380as_nl='
381'
382IFS=" $as_nl"
383
384# CDPATH.
385$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
386
387
John Criswell7a73b802003-06-30 21:59:07 +0000388# Name of the host.
389# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
390# so uname gets run too.
391ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
392
393exec 6>&1
394
395#
396# Initializations.
397#
398ac_default_prefix=/usr/local
399cross_compiling=no
400subdirs=
401MFLAGS=
402MAKEFLAGS=
403SHELL=${CONFIG_SHELL-/bin/sh}
404
405# Maximum number of lines to put in a shell here document.
406# This variable seems obsolete. It should probably be removed, and
407# only ac_max_sed_lines should be used.
408: ${ac_max_here_lines=38}
409
410# Identity of this package.
411PACKAGE_NAME='[LLVM]'
412PACKAGE_TARNAME='--llvm--'
413PACKAGE_VERSION='[1.0]'
414PACKAGE_STRING='[LLVM] [1.0]'
415PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
416
417# Factoring default headers for most tests.
418ac_includes_default="\
419#include <stdio.h>
420#if HAVE_SYS_TYPES_H
421# include <sys/types.h>
422#endif
423#if HAVE_SYS_STAT_H
424# include <sys/stat.h>
425#endif
426#if STDC_HEADERS
427# include <stdlib.h>
428# include <stddef.h>
429#else
430# if HAVE_STDLIB_H
431# include <stdlib.h>
432# endif
433#endif
434#if HAVE_STRING_H
435# if !STDC_HEADERS && HAVE_MEMORY_H
436# include <memory.h>
437# endif
438# include <string.h>
439#endif
440#if HAVE_STRINGS_H
441# include <strings.h>
442#endif
443#if HAVE_INTTYPES_H
444# include <inttypes.h>
445#else
446# if HAVE_STDINT_H
447# include <stdint.h>
448# endif
449#endif
450#if HAVE_UNISTD_H
451# include <unistd.h>
452#endif"
453
454ac_unique_file=""Makefile.config.in""
455
456# Initialize some variables set by options.
457ac_init_help=
458ac_init_version=false
459# The variables have the same names as the options, with
460# dashes changed to underlines.
461cache_file=/dev/null
462exec_prefix=NONE
463no_create=
464no_recursion=
465prefix=NONE
466program_prefix=NONE
467program_suffix=NONE
468program_transform_name=s,x,x,
469silent=
470site=
471srcdir=
472verbose=
473x_includes=NONE
474x_libraries=NONE
475
476# Installation directory options.
477# These are left unexpanded so users can "make install exec_prefix=/foo"
478# and all the variables that are supposed to be based on exec_prefix
479# by default will actually change.
480# Use braces instead of parens because sh, perl, etc. also accept them.
481bindir='${exec_prefix}/bin'
482sbindir='${exec_prefix}/sbin'
483libexecdir='${exec_prefix}/libexec'
484datadir='${prefix}/share'
485sysconfdir='${prefix}/etc'
486sharedstatedir='${prefix}/com'
487localstatedir='${prefix}/var'
488libdir='${exec_prefix}/lib'
489includedir='${prefix}/include'
490oldincludedir='/usr/include'
491infodir='${prefix}/info'
492mandir='${prefix}/man'
493
494ac_prev=
495for ac_option
496do
497 # If the previous option needs an argument, assign it.
498 if test -n "$ac_prev"; then
499 eval "$ac_prev=\$ac_option"
500 ac_prev=
501 continue
502 fi
503
504 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
508 case $ac_option in
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513 bindir=$ac_optarg ;;
514
515 -build | --build | --buil | --bui | --bu)
516 ac_prev=build_alias ;;
517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518 build_alias=$ac_optarg ;;
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525 cache_file=$ac_optarg ;;
526
527 --config-cache | -C)
528 cache_file=config.cache ;;
529
530 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
531 ac_prev=datadir ;;
532 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
533 | --da=*)
534 datadir=$ac_optarg ;;
535
536 -disable-* | --disable-*)
537 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
538 # Reject names that are not valid shell variable names.
539 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
540 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
541 { (exit 1); exit 1; }; }
542 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
543 eval "enable_$ac_feature=no" ;;
544
545 -enable-* | --enable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 case $ac_option in
553 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554 *) ac_optarg=yes ;;
555 esac
556 eval "enable_$ac_feature='$ac_optarg'" ;;
557
558 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
559 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
560 | --exec | --exe | --ex)
561 ac_prev=exec_prefix ;;
562 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
563 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
564 | --exec=* | --exe=* | --ex=*)
565 exec_prefix=$ac_optarg ;;
566
567 -gas | --gas | --ga | --g)
568 # Obsolete; use --with-gas.
569 with_gas=yes ;;
570
571 -help | --help | --hel | --he | -h)
572 ac_init_help=long ;;
573 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
574 ac_init_help=recursive ;;
575 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
576 ac_init_help=short ;;
577
578 -host | --host | --hos | --ho)
579 ac_prev=host_alias ;;
580 -host=* | --host=* | --hos=* | --ho=*)
581 host_alias=$ac_optarg ;;
582
583 -includedir | --includedir | --includedi | --included | --include \
584 | --includ | --inclu | --incl | --inc)
585 ac_prev=includedir ;;
586 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
587 | --includ=* | --inclu=* | --incl=* | --inc=*)
588 includedir=$ac_optarg ;;
589
590 -infodir | --infodir | --infodi | --infod | --info | --inf)
591 ac_prev=infodir ;;
592 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
593 infodir=$ac_optarg ;;
594
595 -libdir | --libdir | --libdi | --libd)
596 ac_prev=libdir ;;
597 -libdir=* | --libdir=* | --libdi=* | --libd=*)
598 libdir=$ac_optarg ;;
599
600 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
601 | --libexe | --libex | --libe)
602 ac_prev=libexecdir ;;
603 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
604 | --libexe=* | --libex=* | --libe=*)
605 libexecdir=$ac_optarg ;;
606
607 -localstatedir | --localstatedir | --localstatedi | --localstated \
608 | --localstate | --localstat | --localsta | --localst \
609 | --locals | --local | --loca | --loc | --lo)
610 ac_prev=localstatedir ;;
611 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
612 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
613 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
614 localstatedir=$ac_optarg ;;
615
616 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
617 ac_prev=mandir ;;
618 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
619 mandir=$ac_optarg ;;
620
621 -nfp | --nfp | --nf)
622 # Obsolete; use --without-fp.
623 with_fp=no ;;
624
625 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
626 | --no-cr | --no-c | -n)
627 no_create=yes ;;
628
629 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
630 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
631 no_recursion=yes ;;
632
633 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
634 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
635 | --oldin | --oldi | --old | --ol | --o)
636 ac_prev=oldincludedir ;;
637 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
638 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
639 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
640 oldincludedir=$ac_optarg ;;
641
642 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
643 ac_prev=prefix ;;
644 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
645 prefix=$ac_optarg ;;
646
647 -program-prefix | --program-prefix | --program-prefi | --program-pref \
648 | --program-pre | --program-pr | --program-p)
649 ac_prev=program_prefix ;;
650 -program-prefix=* | --program-prefix=* | --program-prefi=* \
651 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
652 program_prefix=$ac_optarg ;;
653
654 -program-suffix | --program-suffix | --program-suffi | --program-suff \
655 | --program-suf | --program-su | --program-s)
656 ac_prev=program_suffix ;;
657 -program-suffix=* | --program-suffix=* | --program-suffi=* \
658 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
659 program_suffix=$ac_optarg ;;
660
661 -program-transform-name | --program-transform-name \
662 | --program-transform-nam | --program-transform-na \
663 | --program-transform-n | --program-transform- \
664 | --program-transform | --program-transfor \
665 | --program-transfo | --program-transf \
666 | --program-trans | --program-tran \
667 | --progr-tra | --program-tr | --program-t)
668 ac_prev=program_transform_name ;;
669 -program-transform-name=* | --program-transform-name=* \
670 | --program-transform-nam=* | --program-transform-na=* \
671 | --program-transform-n=* | --program-transform-=* \
672 | --program-transform=* | --program-transfor=* \
673 | --program-transfo=* | --program-transf=* \
674 | --program-trans=* | --program-tran=* \
675 | --progr-tra=* | --program-tr=* | --program-t=*)
676 program_transform_name=$ac_optarg ;;
677
678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
679 | -silent | --silent | --silen | --sile | --sil)
680 silent=yes ;;
681
682 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
683 ac_prev=sbindir ;;
684 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
685 | --sbi=* | --sb=*)
686 sbindir=$ac_optarg ;;
687
688 -sharedstatedir | --sharedstatedir | --sharedstatedi \
689 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
690 | --sharedst | --shareds | --shared | --share | --shar \
691 | --sha | --sh)
692 ac_prev=sharedstatedir ;;
693 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
694 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
695 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
696 | --sha=* | --sh=*)
697 sharedstatedir=$ac_optarg ;;
698
699 -site | --site | --sit)
700 ac_prev=site ;;
701 -site=* | --site=* | --sit=*)
702 site=$ac_optarg ;;
703
704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
705 ac_prev=srcdir ;;
706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
707 srcdir=$ac_optarg ;;
708
709 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
710 | --syscon | --sysco | --sysc | --sys | --sy)
711 ac_prev=sysconfdir ;;
712 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
713 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
714 sysconfdir=$ac_optarg ;;
715
716 -target | --target | --targe | --targ | --tar | --ta | --t)
717 ac_prev=target_alias ;;
718 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
719 target_alias=$ac_optarg ;;
720
721 -v | -verbose | --verbose | --verbos | --verbo | --verb)
722 verbose=yes ;;
723
724 -version | --version | --versio | --versi | --vers | -V)
725 ac_init_version=: ;;
726
727 -with-* | --with-*)
728 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
729 # Reject names that are not valid shell variable names.
730 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
731 { echo "$as_me: error: invalid package name: $ac_package" >&2
732 { (exit 1); exit 1; }; }
733 ac_package=`echo $ac_package| sed 's/-/_/g'`
734 case $ac_option in
735 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
736 *) ac_optarg=yes ;;
737 esac
738 eval "with_$ac_package='$ac_optarg'" ;;
739
740 -without-* | --without-*)
741 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package | sed 's/-/_/g'`
747 eval "with_$ac_package=no" ;;
748
749 --x)
750 # Obsolete; use --with-x.
751 with_x=yes ;;
752
753 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
754 | --x-incl | --x-inc | --x-in | --x-i)
755 ac_prev=x_includes ;;
756 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
757 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
758 x_includes=$ac_optarg ;;
759
760 -x-libraries | --x-libraries | --x-librarie | --x-librari \
761 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
762 ac_prev=x_libraries ;;
763 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
764 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
765 x_libraries=$ac_optarg ;;
766
767 -*) { echo "$as_me: error: unrecognized option: $ac_option
768Try \`$0 --help' for more information." >&2
769 { (exit 1); exit 1; }; }
770 ;;
771
772 *=*)
773 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
776 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
777 { (exit 1); exit 1; }; }
778 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
779 eval "$ac_envvar='$ac_optarg'"
780 export $ac_envvar ;;
781
782 *)
783 # FIXME: should be removed in autoconf 3.0.
784 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
785 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
786 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
787 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
788 ;;
789
790 esac
791done
792
793if test -n "$ac_prev"; then
794 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
795 { echo "$as_me: error: missing argument to $ac_option" >&2
796 { (exit 1); exit 1; }; }
797fi
798
799# Be sure to have absolute paths.
800for ac_var in exec_prefix prefix
801do
802 eval ac_val=$`echo $ac_var`
803 case $ac_val in
804 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
805 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
806 { (exit 1); exit 1; }; };;
807 esac
808done
809
810# Be sure to have absolute paths.
811for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
812 localstatedir libdir includedir oldincludedir infodir mandir
813do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* ) ;;
817 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818 { (exit 1); exit 1; }; };;
819 esac
820done
821
822# There might be people who depend on the old broken behavior: `$host'
823# used to hold the argument of --host etc.
824# FIXME: To remove some day.
825build=$build_alias
826host=$host_alias
827target=$target_alias
828
829# FIXME: To remove some day.
830if test "x$host_alias" != x; then
831 if test "x$build_alias" = x; then
832 cross_compiling=maybe
833 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
834 If a cross compiler is detected then cross compile mode will be used." >&2
835 elif test "x$build_alias" != "x$host_alias"; then
836 cross_compiling=yes
837 fi
838fi
839
840ac_tool_prefix=
841test -n "$host_alias" && ac_tool_prefix=$host_alias-
842
843test "$silent" = yes && exec 6>/dev/null
844
845
846# Find the source files, if location was not specified.
847if test -z "$srcdir"; then
848 ac_srcdir_defaulted=yes
849 # Try the directory containing this script, then its parent.
850 ac_confdir=`(dirname "$0") 2>/dev/null ||
851$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
852 X"$0" : 'X\(//\)[^/]' \| \
853 X"$0" : 'X\(//\)$' \| \
854 X"$0" : 'X\(/\)' \| \
855 . : '\(.\)' 2>/dev/null ||
856echo X"$0" |
857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
859 /^X\(\/\/\)$/{ s//\1/; q; }
860 /^X\(\/\).*/{ s//\1/; q; }
861 s/.*/./; q'`
862 srcdir=$ac_confdir
863 if test ! -r $srcdir/$ac_unique_file; then
864 srcdir=..
865 fi
866else
867 ac_srcdir_defaulted=no
868fi
869if test ! -r $srcdir/$ac_unique_file; then
870 if test "$ac_srcdir_defaulted" = yes; then
871 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
872 { (exit 1); exit 1; }; }
873 else
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
875 { (exit 1); exit 1; }; }
876 fi
877fi
878srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
879ac_env_build_alias_set=${build_alias+set}
880ac_env_build_alias_value=$build_alias
881ac_cv_env_build_alias_set=${build_alias+set}
882ac_cv_env_build_alias_value=$build_alias
883ac_env_host_alias_set=${host_alias+set}
884ac_env_host_alias_value=$host_alias
885ac_cv_env_host_alias_set=${host_alias+set}
886ac_cv_env_host_alias_value=$host_alias
887ac_env_target_alias_set=${target_alias+set}
888ac_env_target_alias_value=$target_alias
889ac_cv_env_target_alias_set=${target_alias+set}
890ac_cv_env_target_alias_value=$target_alias
891ac_env_CXX_set=${CXX+set}
892ac_env_CXX_value=$CXX
893ac_cv_env_CXX_set=${CXX+set}
894ac_cv_env_CXX_value=$CXX
895ac_env_CXXFLAGS_set=${CXXFLAGS+set}
896ac_env_CXXFLAGS_value=$CXXFLAGS
897ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
898ac_cv_env_CXXFLAGS_value=$CXXFLAGS
899ac_env_LDFLAGS_set=${LDFLAGS+set}
900ac_env_LDFLAGS_value=$LDFLAGS
901ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
902ac_cv_env_LDFLAGS_value=$LDFLAGS
903ac_env_CPPFLAGS_set=${CPPFLAGS+set}
904ac_env_CPPFLAGS_value=$CPPFLAGS
905ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
906ac_cv_env_CPPFLAGS_value=$CPPFLAGS
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_CPP_set=${CPP+set}
916ac_env_CPP_value=$CPP
917ac_cv_env_CPP_set=${CPP+set}
918ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000919ac_env_CXXCPP_set=${CXXCPP+set}
920ac_env_CXXCPP_value=$CXXCPP
921ac_cv_env_CXXCPP_set=${CXXCPP+set}
922ac_cv_env_CXXCPP_value=$CXXCPP
923ac_env_F77_set=${F77+set}
924ac_env_F77_value=$F77
925ac_cv_env_F77_set=${F77+set}
926ac_cv_env_F77_value=$F77
927ac_env_FFLAGS_set=${FFLAGS+set}
928ac_env_FFLAGS_value=$FFLAGS
929ac_cv_env_FFLAGS_set=${FFLAGS+set}
930ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000931
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
938 cat <<_ACEOF
939\`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE. See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958
959_ACEOF
960
961 cat <<_ACEOF
962Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
988_ACEOF
989
990 cat <<\_ACEOF
991
992System types:
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
996_ACEOF
997fi
998
999if test -n "$ac_init_help"; then
1000 case $ac_init_help in
1001 short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1002 esac
1003 cat <<\_ACEOF
1004
1005Optional Features:
1006 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1007 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001008 --enable-shared[=PKGS]
1009 build shared libraries [default=yes]
1010 --enable-static[=PKGS]
1011 build static libraries [default=yes]
1012 --enable-fast-install[=PKGS]
1013 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001014 --disable-libtool-lock avoid locking (might break parallel builds)
1015 --enable-purify Compile with purify (default is NO)
John Criswell7a73b802003-06-30 21:59:07 +00001016 --enable-optimized Compile with optimizations enabled (default is NO)
1017 --enable-spec Compile SPEC benchmarks (default is NO)
1018 --enable-precompiled_bytecode
1019 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001020 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001021 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023Optional Packages:
1024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-tags[=TAGS]
1030 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001031 --with-spec Location of SPEC benchmarks
1032 --with-llvmgccdir Location of LLVM GCC front-end
1033 --with-bcrepos Location of Bytecode Repository
1034 --with-papi Location of PAPI
John Criswellc78022e2003-07-29 19:11:58 +00001035 --with-purify Location of purify program
John Criswell7a73b802003-06-30 21:59:07 +00001036
1037Some influential environment variables:
1038 CXX C++ compiler command
1039 CXXFLAGS C++ compiler flags
1040 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1041 nonstandard directory <lib dir>
1042 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043 headers in a nonstandard directory <include dir>
1044 CC C compiler command
1045 CFLAGS C compiler flags
1046 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001047 CXXCPP C++ preprocessor
1048 F77 Fortran 77 compiler command
1049 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001050
1051Use these variables to override the choices made by `configure' or to help
1052it to find libraries and programs with nonstandard names/locations.
1053
1054Report bugs to <llvmbugs@cs.uiuc.edu>.
1055_ACEOF
1056fi
1057
1058if test "$ac_init_help" = "recursive"; then
1059 # If there are subdirs, report their specific --help.
1060 ac_popdir=`pwd`
1061 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1062 test -d $ac_dir || continue
1063 ac_builddir=.
1064
1065if test "$ac_dir" != .; then
1066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1067 # A "../" for each directory in $ac_dir_suffix.
1068 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1069else
1070 ac_dir_suffix= ac_top_builddir=
1071fi
1072
1073case $srcdir in
1074 .) # No --srcdir option. We are building in place.
1075 ac_srcdir=.
1076 if test -z "$ac_top_builddir"; then
1077 ac_top_srcdir=.
1078 else
1079 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1080 fi ;;
1081 [\\/]* | ?:[\\/]* ) # Absolute path.
1082 ac_srcdir=$srcdir$ac_dir_suffix;
1083 ac_top_srcdir=$srcdir ;;
1084 *) # Relative path.
1085 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1086 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1087esac
1088# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1089# absolute.
1090ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswelld9cd1442003-09-09 20:52:17 +00001091ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001092ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1093ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1094
1095 cd $ac_dir
1096 # Check for guested configure; otherwise get Cygnus style configure.
1097 if test -f $ac_srcdir/configure.gnu; then
1098 echo
1099 $SHELL $ac_srcdir/configure.gnu --help=recursive
1100 elif test -f $ac_srcdir/configure; then
1101 echo
1102 $SHELL $ac_srcdir/configure --help=recursive
1103 elif test -f $ac_srcdir/configure.ac ||
1104 test -f $ac_srcdir/configure.in; then
1105 echo
1106 $ac_configure --help
1107 else
1108 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1109 fi
1110 cd $ac_popdir
1111 done
1112fi
1113
1114test -n "$ac_init_help" && exit 0
1115if $ac_init_version; then
1116 cat <<\_ACEOF
1117[LLVM] configure [1.0]
John Criswelld9cd1442003-09-09 20:52:17 +00001118generated by GNU Autoconf 2.53
John Criswell7a73b802003-06-30 21:59:07 +00001119
1120Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1121Free Software Foundation, Inc.
1122This configure script is free software; the Free Software Foundation
1123gives unlimited permission to copy, distribute and modify it.
1124_ACEOF
1125 exit 0
1126fi
1127exec 5>config.log
1128cat >&5 <<_ACEOF
1129This file contains any messages produced by compilers while
1130running configure, to aid debugging if configure makes a mistake.
1131
1132It was created by [LLVM] $as_me [1.0], which was
John Criswelld9cd1442003-09-09 20:52:17 +00001133generated by GNU Autoconf 2.53. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001134
1135 $ $0 $@
1136
1137_ACEOF
1138{
1139cat <<_ASUNAME
1140## --------- ##
1141## Platform. ##
1142## --------- ##
1143
1144hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1145uname -m = `(uname -m) 2>/dev/null || echo unknown`
1146uname -r = `(uname -r) 2>/dev/null || echo unknown`
1147uname -s = `(uname -s) 2>/dev/null || echo unknown`
1148uname -v = `(uname -v) 2>/dev/null || echo unknown`
1149
1150/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1151/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1152
1153/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1154/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1155/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1156hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1157/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1158/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1159/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1160
1161_ASUNAME
1162
1163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1164for as_dir in $PATH
1165do
1166 IFS=$as_save_IFS
1167 test -z "$as_dir" && as_dir=.
1168 echo "PATH: $as_dir"
1169done
1170
1171} >&5
1172
1173cat >&5 <<_ACEOF
1174
1175
1176## ----------- ##
1177## Core tests. ##
1178## ----------- ##
1179
1180_ACEOF
1181
1182
1183# Keep a trace of the command line.
1184# Strip out --no-create and --no-recursion so they do not pile up.
1185# Also quote any args containing shell meta-characters.
1186ac_configure_args=
1187ac_sep=
John Criswelld9cd1442003-09-09 20:52:17 +00001188for ac_arg
John Criswell7a73b802003-06-30 21:59:07 +00001189do
John Criswelld9cd1442003-09-09 20:52:17 +00001190 case $ac_arg in
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n ) continue ;;
1193 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195 continue ;;
1196 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1198 esac
1199 case " $ac_configure_args " in
1200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1201 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1202 ac_sep=" " ;;
1203 esac
1204 # Get rid of the leading space.
John Criswell7a73b802003-06-30 21:59:07 +00001205done
1206
1207# When interrupted or exit'd, cleanup temporary files, and complete
1208# config.log. We remove comments because anyway the quotes in there
1209# would cause problems or look ugly.
1210# WARNING: Be sure not to use single quotes in there, as some shells,
1211# such as our DU 5.0 friend, will then `close' the trap.
1212trap 'exit_status=$?
1213 # Save into config.log some information that might help in debugging.
1214 {
1215 echo
1216 cat <<\_ASBOX
1217## ---------------- ##
1218## Cache variables. ##
1219## ---------------- ##
1220_ASBOX
1221 echo
1222 # The following way of writing the cache mishandles newlines in values,
1223{
1224 (set) 2>&1 |
1225 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1226 *ac_space=\ *)
1227 sed -n \
1228 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1230 ;;
1231 *)
1232 sed -n \
1233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234 ;;
1235 esac;
1236}
1237 echo
1238 if test -s confdefs.h; then
1239 cat <<\_ASBOX
1240## ----------- ##
1241## confdefs.h. ##
1242## ----------- ##
1243_ASBOX
1244 echo
John Criswelld9cd1442003-09-09 20:52:17 +00001245 sed "/^$/d" confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001246 echo
1247 fi
1248 test "$ac_signal" != 0 &&
1249 echo "$as_me: caught signal $ac_signal"
1250 echo "$as_me: exit $exit_status"
1251 } >&5
1252 rm -f core core.* *.core &&
1253 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1254 exit $exit_status
1255 ' 0
1256for ac_signal in 1 2 13 15; do
1257 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1258done
1259ac_signal=0
1260
1261# confdefs.h avoids OS command line length limits that DEFS can exceed.
1262rm -rf conftest* confdefs.h
1263# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1264echo >confdefs.h
1265
1266# Predefined preprocessor variables.
1267
1268cat >>confdefs.h <<_ACEOF
1269#define PACKAGE_NAME "$PACKAGE_NAME"
1270_ACEOF
1271
1272
1273cat >>confdefs.h <<_ACEOF
1274#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1275_ACEOF
1276
1277
1278cat >>confdefs.h <<_ACEOF
1279#define PACKAGE_VERSION "$PACKAGE_VERSION"
1280_ACEOF
1281
1282
1283cat >>confdefs.h <<_ACEOF
1284#define PACKAGE_STRING "$PACKAGE_STRING"
1285_ACEOF
1286
1287
1288cat >>confdefs.h <<_ACEOF
1289#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1290_ACEOF
1291
1292
1293# Let the site file select an alternate cache file if it wants to.
1294# Prefer explicitly selected file to automatically selected ones.
1295if test -z "$CONFIG_SITE"; then
1296 if test "x$prefix" != xNONE; then
1297 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1298 else
1299 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1300 fi
1301fi
1302for ac_site_file in $CONFIG_SITE; do
1303 if test -r "$ac_site_file"; then
1304 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1305echo "$as_me: loading site script $ac_site_file" >&6;}
1306 sed 's/^/| /' "$ac_site_file" >&5
1307 . "$ac_site_file"
1308 fi
1309done
1310
1311if test -r "$cache_file"; then
1312 # Some versions of bash will fail to source /dev/null (special
1313 # files actually), so we avoid doing that.
1314 if test -f "$cache_file"; then
1315 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1316echo "$as_me: loading cache $cache_file" >&6;}
1317 case $cache_file in
1318 [\\/]* | ?:[\\/]* ) . $cache_file;;
1319 *) . ./$cache_file;;
1320 esac
1321 fi
1322else
1323 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1324echo "$as_me: creating cache $cache_file" >&6;}
1325 >$cache_file
1326fi
1327
1328# Check that the precious variables saved in the cache have kept the same
1329# value.
1330ac_cache_corrupted=false
1331for ac_var in `(set) 2>&1 |
1332 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1333 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1334 eval ac_new_set=\$ac_env_${ac_var}_set
1335 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1336 eval ac_new_val="\$ac_env_${ac_var}_value"
1337 case $ac_old_set,$ac_new_set in
1338 set,)
1339 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1340echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1341 ac_cache_corrupted=: ;;
1342 ,set)
1343 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1344echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1345 ac_cache_corrupted=: ;;
1346 ,);;
1347 *)
1348 if test "x$ac_old_val" != "x$ac_new_val"; then
1349 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1350echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1351 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1352echo "$as_me: former value: $ac_old_val" >&2;}
1353 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1354echo "$as_me: current value: $ac_new_val" >&2;}
1355 ac_cache_corrupted=:
1356 fi;;
1357 esac
1358 # Pass precious variables to config.status.
1359 if test "$ac_new_set" = set; then
1360 case $ac_new_val in
1361 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1362 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1363 *) ac_arg=$ac_var=$ac_new_val ;;
1364 esac
1365 case " $ac_configure_args " in
1366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1367 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1368 esac
1369 fi
1370done
1371if $ac_cache_corrupted; then
1372 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1373echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1374 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1375echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1376 { (exit 1); exit 1; }; }
1377fi
1378
1379ac_ext=c
1380ac_cpp='$CPP $CPPFLAGS'
1381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1383ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
John Criswell7a73b802003-06-30 21:59:07 +00001411ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001412for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001413 if test -f $ac_dir/install-sh; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/install-sh -c"
1416 break
1417 elif test -f $ac_dir/install.sh; then
1418 ac_aux_dir=$ac_dir
1419 ac_install_sh="$ac_aux_dir/install.sh -c"
1420 break
1421 elif test -f $ac_dir/shtool; then
1422 ac_aux_dir=$ac_dir
1423 ac_install_sh="$ac_aux_dir/shtool install -c"
1424 break
1425 fi
1426done
1427if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001428 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1429echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
1431fi
1432ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1433ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1434ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435
John Criswell392aaa32003-07-22 19:18:09 +00001436
John Criswelld9cd1442003-09-09 20:52:17 +00001437ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001438
John Criswelld9cd1442003-09-09 20:52:17 +00001439ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001440
1441
John Criswelld9cd1442003-09-09 20:52:17 +00001442ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001443
1444
John Criswelld9cd1442003-09-09 20:52:17 +00001445ac_config_commands="$ac_config_commands Makefile.rules"
John Criswellc764fbc2003-09-06 15:17:13 +00001446
1447
John Criswelld9cd1442003-09-09 20:52:17 +00001448ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001449
1450
John Criswelld9cd1442003-09-09 20:52:17 +00001451ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001452
1453
John Criswelld9cd1442003-09-09 20:52:17 +00001454ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001455
1456
John Criswelld9cd1442003-09-09 20:52:17 +00001457ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001458
1459
John Criswelld9cd1442003-09-09 20:52:17 +00001460ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001461
1462
John Criswelld9cd1442003-09-09 20:52:17 +00001463ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001464
1465
John Criswelld9cd1442003-09-09 20:52:17 +00001466ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001467
1468
John Criswelld9cd1442003-09-09 20:52:17 +00001469ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001470
1471
John Criswelld9cd1442003-09-09 20:52:17 +00001472ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001473
1474
John Criswelld9cd1442003-09-09 20:52:17 +00001475ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001476
1477
John Criswelld9cd1442003-09-09 20:52:17 +00001478ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001479
1480
John Criswelld9cd1442003-09-09 20:52:17 +00001481ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001482
1483
John Criswelld9cd1442003-09-09 20:52:17 +00001484ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001485
1486
John Criswelld9cd1442003-09-09 20:52:17 +00001487ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001488
1489
John Criswelld9cd1442003-09-09 20:52:17 +00001490ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001491
1492
John Criswelld9cd1442003-09-09 20:52:17 +00001493ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001494
1495
John Criswelld9cd1442003-09-09 20:52:17 +00001496ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001497
1498
John Criswelld9cd1442003-09-09 20:52:17 +00001499ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001500
1501
John Criswelld9cd1442003-09-09 20:52:17 +00001502ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001503
1504
John Criswelld9cd1442003-09-09 20:52:17 +00001505ac_config_commands="$ac_config_commands lib/Support/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001506
1507
John Criswelld9cd1442003-09-09 20:52:17 +00001508ac_config_commands="$ac_config_commands lib/Target/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001509
1510
John Criswelld9cd1442003-09-09 20:52:17 +00001511ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001512
1513
John Criswelld9cd1442003-09-09 20:52:17 +00001514ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001515
1516
John Criswelld9cd1442003-09-09 20:52:17 +00001517ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001518
1519
John Criswelld9cd1442003-09-09 20:52:17 +00001520ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001521
1522
John Criswelld9cd1442003-09-09 20:52:17 +00001523ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001524
1525
John Criswelld9cd1442003-09-09 20:52:17 +00001526ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001527
1528
John Criswelld9cd1442003-09-09 20:52:17 +00001529ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001530
1531
John Criswelld9cd1442003-09-09 20:52:17 +00001532ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001533
1534
John Criswelld9cd1442003-09-09 20:52:17 +00001535ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001536
1537
John Criswelld9cd1442003-09-09 20:52:17 +00001538ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001539
1540
John Criswelld9cd1442003-09-09 20:52:17 +00001541ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001542
1543
John Criswelld9cd1442003-09-09 20:52:17 +00001544ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001545
1546
John Criswelld9cd1442003-09-09 20:52:17 +00001547ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001548
1549
John Criswelld9cd1442003-09-09 20:52:17 +00001550ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001551
1552
John Criswelld9cd1442003-09-09 20:52:17 +00001553ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001554
1555
John Criswelld9cd1442003-09-09 20:52:17 +00001556ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001557
1558
John Criswelld9cd1442003-09-09 20:52:17 +00001559ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001560
1561
John Criswelld9cd1442003-09-09 20:52:17 +00001562ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001563
1564
John Criswelld9cd1442003-09-09 20:52:17 +00001565ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001566
1567
John Criswelld9cd1442003-09-09 20:52:17 +00001568ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001569
1570
John Criswelld9cd1442003-09-09 20:52:17 +00001571ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001572
1573
John Criswelld9cd1442003-09-09 20:52:17 +00001574ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001575
1576
John Criswelld9cd1442003-09-09 20:52:17 +00001577ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001578
1579
John Criswelld9cd1442003-09-09 20:52:17 +00001580ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001581
1582
John Criswelld9cd1442003-09-09 20:52:17 +00001583ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001584
1585
John Criswelld9cd1442003-09-09 20:52:17 +00001586ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001587
1588
John Criswelld9cd1442003-09-09 20:52:17 +00001589ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001590
1591
John Criswelld9cd1442003-09-09 20:52:17 +00001592ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001593
1594
John Criswelld9cd1442003-09-09 20:52:17 +00001595ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001596
1597
John Criswelld9cd1442003-09-09 20:52:17 +00001598ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001599
1600
John Criswelld9cd1442003-09-09 20:52:17 +00001601ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001602
1603
John Criswelld9cd1442003-09-09 20:52:17 +00001604ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001605
1606
John Criswelld9cd1442003-09-09 20:52:17 +00001607ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswelld9cd1442003-09-09 20:52:17 +00001610ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswelld9cd1442003-09-09 20:52:17 +00001613ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
John Criswelld9cd1442003-09-09 20:52:17 +00001616ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswelld9cd1442003-09-09 20:52:17 +00001619ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswelld9cd1442003-09-09 20:52:17 +00001622ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswelld9cd1442003-09-09 20:52:17 +00001625ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswelld9cd1442003-09-09 20:52:17 +00001628ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswelld9cd1442003-09-09 20:52:17 +00001631ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001632
1633
John Criswelld9cd1442003-09-09 20:52:17 +00001634ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
John Criswelld9cd1442003-09-09 20:52:17 +00001637ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
John Criswelld9cd1442003-09-09 20:52:17 +00001640ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswelld9cd1442003-09-09 20:52:17 +00001643ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswelld9cd1442003-09-09 20:52:17 +00001646ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001647
1648
John Criswelld9cd1442003-09-09 20:52:17 +00001649ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001650
1651
John Criswelld9cd1442003-09-09 20:52:17 +00001652ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001653
1654
John Criswelld9cd1442003-09-09 20:52:17 +00001655ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001656
1657
John Criswelld9cd1442003-09-09 20:52:17 +00001658ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001659
1660
John Criswelld9cd1442003-09-09 20:52:17 +00001661ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001662
1663
John Criswelld9cd1442003-09-09 20:52:17 +00001664ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001665
1666
John Criswelld9cd1442003-09-09 20:52:17 +00001667ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001668
1669
John Criswelld9cd1442003-09-09 20:52:17 +00001670ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001671
1672
John Criswelld9cd1442003-09-09 20:52:17 +00001673ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001674
1675
John Criswelld9cd1442003-09-09 20:52:17 +00001676ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001677
1678
John Criswelld9cd1442003-09-09 20:52:17 +00001679ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001680
1681
John Criswelld9cd1442003-09-09 20:52:17 +00001682ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001683
1684
John Criswelld9cd1442003-09-09 20:52:17 +00001685ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001686
1687
John Criswelld9cd1442003-09-09 20:52:17 +00001688ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001689
1690
John Criswelld9cd1442003-09-09 20:52:17 +00001691ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001692
1693
John Criswelld9cd1442003-09-09 20:52:17 +00001694ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001695
1696
John Criswelld9cd1442003-09-09 20:52:17 +00001697ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001698
1699
John Criswelld9cd1442003-09-09 20:52:17 +00001700ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001701
1702
John Criswelld9cd1442003-09-09 20:52:17 +00001703ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001704
1705
John Criswelld9cd1442003-09-09 20:52:17 +00001706ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001707
1708
John Criswelld9cd1442003-09-09 20:52:17 +00001709ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001710
1711
John Criswelld9cd1442003-09-09 20:52:17 +00001712ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001713
1714
John Criswelld9cd1442003-09-09 20:52:17 +00001715ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001716
1717
John Criswelld9cd1442003-09-09 20:52:17 +00001718ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001719
1720
John Criswelld9cd1442003-09-09 20:52:17 +00001721ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001722
1723
John Criswelld9cd1442003-09-09 20:52:17 +00001724ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001725
1726
John Criswelld9cd1442003-09-09 20:52:17 +00001727ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001728
1729
John Criswelld9cd1442003-09-09 20:52:17 +00001730ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001731
1732
John Criswelld9cd1442003-09-09 20:52:17 +00001733ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001734
1735
John Criswelld9cd1442003-09-09 20:52:17 +00001736ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001737
1738
John Criswelld9cd1442003-09-09 20:52:17 +00001739ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001740
1741
John Criswelld9cd1442003-09-09 20:52:17 +00001742ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001743
1744
John Criswelld9cd1442003-09-09 20:52:17 +00001745ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001746
1747
John Criswelld9cd1442003-09-09 20:52:17 +00001748ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001749
1750
John Criswelld9cd1442003-09-09 20:52:17 +00001751ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001752
1753
John Criswelld9cd1442003-09-09 20:52:17 +00001754ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001755
1756
John Criswelld9cd1442003-09-09 20:52:17 +00001757ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001758
1759
John Criswelld9cd1442003-09-09 20:52:17 +00001760ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001761
1762
John Criswelld9cd1442003-09-09 20:52:17 +00001763ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001764
1765
John Criswelld9cd1442003-09-09 20:52:17 +00001766ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001767
1768
John Criswelld9cd1442003-09-09 20:52:17 +00001769ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001770
1771
John Criswelld9cd1442003-09-09 20:52:17 +00001772ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001773
1774
John Criswelld9cd1442003-09-09 20:52:17 +00001775ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001776
1777
John Criswelld9cd1442003-09-09 20:52:17 +00001778ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001779
1780
John Criswelld9cd1442003-09-09 20:52:17 +00001781ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001782
1783
John Criswelld9cd1442003-09-09 20:52:17 +00001784ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001785
1786
John Criswelld9cd1442003-09-09 20:52:17 +00001787ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001788
1789
John Criswelld9cd1442003-09-09 20:52:17 +00001790ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001791
1792
John Criswelld9cd1442003-09-09 20:52:17 +00001793ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001794
1795
John Criswelld9cd1442003-09-09 20:52:17 +00001796ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001797
1798
John Criswelld9cd1442003-09-09 20:52:17 +00001799ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001800
1801
John Criswelld9cd1442003-09-09 20:52:17 +00001802ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001803
1804
John Criswelld9cd1442003-09-09 20:52:17 +00001805ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001806
1807
John Criswelld9cd1442003-09-09 20:52:17 +00001808ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001809
1810
John Criswelld9cd1442003-09-09 20:52:17 +00001811ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001812
1813
John Criswelld9cd1442003-09-09 20:52:17 +00001814ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001815
1816
John Criswelld9cd1442003-09-09 20:52:17 +00001817ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001818
1819
John Criswelld9cd1442003-09-09 20:52:17 +00001820ac_config_commands="$ac_config_commands test/Programs/SingleSource/Shootout/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001821
1822
John Criswelld9cd1442003-09-09 20:52:17 +00001823ac_config_commands="$ac_config_commands test/Programs/SingleSource/Stanford/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001824
1825
John Criswelld9cd1442003-09-09 20:52:17 +00001826ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001827
1828
John Criswelld9cd1442003-09-09 20:52:17 +00001829ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001830
1831
John Criswelld9cd1442003-09-09 20:52:17 +00001832ac_config_commands="$ac_config_commands tools/analyze/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001833
1834
John Criswelld9cd1442003-09-09 20:52:17 +00001835ac_config_commands="$ac_config_commands tools/as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001836
1837
John Criswelld9cd1442003-09-09 20:52:17 +00001838ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001839
1840
John Criswelld9cd1442003-09-09 20:52:17 +00001841ac_config_commands="$ac_config_commands tools/dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001842
1843
John Criswelld9cd1442003-09-09 20:52:17 +00001844ac_config_commands="$ac_config_commands tools/extract/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001845
1846
John Criswelld9cd1442003-09-09 20:52:17 +00001847ac_config_commands="$ac_config_commands tools/gccas/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001848
1849
John Criswelld9cd1442003-09-09 20:52:17 +00001850ac_config_commands="$ac_config_commands tools/gccld/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001851
1852
John Criswelld9cd1442003-09-09 20:52:17 +00001853ac_config_commands="$ac_config_commands tools/link/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001854
1855
John Criswelld9cd1442003-09-09 20:52:17 +00001856ac_config_commands="$ac_config_commands tools/llc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001857
1858
John Criswelld9cd1442003-09-09 20:52:17 +00001859ac_config_commands="$ac_config_commands tools/lli/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001860
1861
John Criswelld9cd1442003-09-09 20:52:17 +00001862ac_config_commands="$ac_config_commands tools/opt/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001863
1864
John Criswelld9cd1442003-09-09 20:52:17 +00001865ac_config_commands="$ac_config_commands tools/llee/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001866
1867
John Criswelld9cd1442003-09-09 20:52:17 +00001868ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001869
1870
John Criswelld9cd1442003-09-09 20:52:17 +00001871ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001872
1873
John Criswelld9cd1442003-09-09 20:52:17 +00001874ac_config_commands="$ac_config_commands utils/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001875
1876
John Criswelld9cd1442003-09-09 20:52:17 +00001877ac_config_commands="$ac_config_commands utils/Burg/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001878
1879
John Criswelld9cd1442003-09-09 20:52:17 +00001880ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001881
1882
John Criswelld9cd1442003-09-09 20:52:17 +00001883ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001884
1885
John Criswelld9cd1442003-09-09 20:52:17 +00001886ac_config_commands="$ac_config_commands www/docs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001887
1888
John Criswelld9cd1442003-09-09 20:52:17 +00001889ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001890
1891
John Criswelld9cd1442003-09-09 20:52:17 +00001892ac_config_commands="$ac_config_commands projects/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001893
1894
John Criswelld9cd1442003-09-09 20:52:17 +00001895ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001896
1897
John Criswelld9cd1442003-09-09 20:52:17 +00001898ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
John Criswellc764fbc2003-09-06 15:17:13 +00001899
1900
John Criswelld9cd1442003-09-09 20:52:17 +00001901ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001902
1903
John Criswelld9cd1442003-09-09 20:52:17 +00001904ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001905
1906
John Criswelld9cd1442003-09-09 20:52:17 +00001907ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001908
1909
John Criswelld9cd1442003-09-09 20:52:17 +00001910ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001911
1912
John Criswelld9cd1442003-09-09 20:52:17 +00001913ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001914
1915
John Criswelld9cd1442003-09-09 20:52:17 +00001916ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001917
1918
John Criswelld9cd1442003-09-09 20:52:17 +00001919ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001920
1921
John Criswelld9cd1442003-09-09 20:52:17 +00001922ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001923
1924
John Criswell392aaa32003-07-22 19:18:09 +00001925
1926
John Criswell7a73b802003-06-30 21:59:07 +00001927# Find a good install program. We prefer a C program (faster),
1928# so one script is as good as another. But avoid the broken or
1929# incompatible versions:
1930# SysV /etc/install, /usr/sbin/install
1931# SunOS /usr/etc/install
1932# IRIX /sbin/install
1933# AIX /bin/install
1934# AmigaOS /C/install, which installs bootblocks on floppy discs
1935# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1936# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1937# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1938# ./install, which can be erroneously created by make from ./install.sh.
1939echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1940echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1941if test -z "$INSTALL"; then
1942if test "${ac_cv_path_install+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 # Account for people who put trailing slashes in PATH elements.
1951case $as_dir/ in
1952 ./ | .// | /cC/* | \
1953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1954 /usr/ucb/* ) ;;
1955 *)
1956 # OSF1 and SCO ODT 3.0 have their own names for install.
1957 # Don't use installbsd from OSF since it installs stuff as root
1958 # by default.
1959 for ac_prog in ginstall scoinst install; do
1960 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1962 if test $ac_prog = install &&
1963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1964 # AIX install. It has an incompatible calling convention.
1965 :
1966 elif test $ac_prog = install &&
1967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1968 # program-specific install script used by HP pwplus--don't use.
1969 :
1970 else
1971 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1972 break 3
1973 fi
1974 fi
1975 done
1976 done
1977 ;;
1978esac
1979done
1980
1981
1982fi
1983 if test "${ac_cv_path_install+set}" = set; then
1984 INSTALL=$ac_cv_path_install
1985 else
1986 # As a last resort, use the slow shell script. We don't cache a
1987 # path for INSTALL within a source directory, because that will
1988 # break other packages using the cache if that directory is
1989 # removed, or if the path is relative.
1990 INSTALL=$ac_install_sh
1991 fi
1992fi
1993echo "$as_me:$LINENO: result: $INSTALL" >&5
1994echo "${ECHO_T}$INSTALL" >&6
1995
1996# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1997# It thinks the first close brace ends the variable substitution.
1998test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1999
2000test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2001
2002test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2003
2004
2005# Make sure we can run config.sub.
2006$ac_config_sub sun4 >/dev/null 2>&1 ||
2007 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2008echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2009 { (exit 1); exit 1; }; }
2010
2011echo "$as_me:$LINENO: checking build system type" >&5
2012echo $ECHO_N "checking build system type... $ECHO_C" >&6
2013if test "${ac_cv_build+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016 ac_cv_build_alias=$build_alias
2017test -z "$ac_cv_build_alias" &&
2018 ac_cv_build_alias=`$ac_config_guess`
2019test -z "$ac_cv_build_alias" &&
2020 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2024 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2025echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2027
2028fi
2029echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030echo "${ECHO_T}$ac_cv_build" >&6
2031build=$ac_cv_build
2032build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035
2036
2037echo "$as_me:$LINENO: checking host system type" >&5
2038echo $ECHO_N "checking host system type... $ECHO_C" >&6
2039if test "${ac_cv_host+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042 ac_cv_host_alias=$host_alias
2043test -z "$ac_cv_host_alias" &&
2044 ac_cv_host_alias=$ac_cv_build_alias
2045ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2046 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2047echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2048 { (exit 1); exit 1; }; }
2049
2050fi
2051echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2052echo "${ECHO_T}$ac_cv_host" >&6
2053host=$ac_cv_host
2054host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057
2058
2059echo "$as_me:$LINENO: checking target system type" >&5
2060echo $ECHO_N "checking target system type... $ECHO_C" >&6
2061if test "${ac_cv_target+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064 ac_cv_target_alias=$target_alias
2065test "x$ac_cv_target_alias" = "x" &&
2066 ac_cv_target_alias=$ac_cv_host_alias
2067ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2068 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2069echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2070 { (exit 1); exit 1; }; }
2071
2072fi
2073echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074echo "${ECHO_T}$ac_cv_target" >&6
2075target=$ac_cv_target
2076target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079
2080
2081# The aliases save the names the user supplied, while $host etc.
2082# will get canonicalized.
2083test -n "$target_alias" &&
2084 test "$program_prefix$program_suffix$program_transform_name" = \
2085 NONENONEs,x,x, &&
2086 program_prefix=${target_alias}-
2087
2088case $build in
2089 *i*86*) OS=Linux
2090
John Criswellf02dbf02003-07-22 20:07:49 +00002091 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00002092
2093 ;;
2094
2095 *sparc*) OS=SunOS
2096
2097 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2098
2099 ;;
2100
2101 *) OS=Unknown
2102
2103 ;;
2104esac
2105
2106case $target in
2107 *sparc*solaris*) target=sparcv9-sun-solaris2.8
2108
2109 ;;
2110esac
2111
John Criswell76595452003-07-01 22:07:39 +00002112case $target in
2113 *i*86*) ARCH=x86
2114
2115 ;;
2116 *sparc*solaris*) ARCH=Sparc
2117
2118 ;;
2119esac
2120
John Criswell7a73b802003-06-30 21:59:07 +00002121
2122ac_ext=cc
2123ac_cpp='$CXXCPP $CPPFLAGS'
2124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2127if test -n "$ac_tool_prefix"; then
2128 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2129 do
2130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134if test "${ac_cv_prog_CXX+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137 if test -n "$CXX"; then
2138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151done
2152done
2153
2154fi
2155fi
2156CXX=$ac_cv_prog_CXX
2157if test -n "$CXX"; then
2158 echo "$as_me:$LINENO: result: $CXX" >&5
2159echo "${ECHO_T}$CXX" >&6
2160else
2161 echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165 test -n "$CXX" && break
2166 done
2167fi
2168if test -z "$CXX"; then
2169 ac_ct_CXX=$CXX
2170 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2171do
2172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2173set dummy $ac_prog; ac_word=$2
2174echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$ac_ct_CXX"; then
2180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_ac_ct_CXX="$ac_prog"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
2194done
2195
2196fi
2197fi
2198ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2199if test -n "$ac_ct_CXX"; then
2200 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2201echo "${ECHO_T}$ac_ct_CXX" >&6
2202else
2203 echo "$as_me:$LINENO: result: no" >&5
2204echo "${ECHO_T}no" >&6
2205fi
2206
2207 test -n "$ac_ct_CXX" && break
2208done
2209test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2210
2211 CXX=$ac_ct_CXX
2212fi
2213
2214
2215# Provide some information about the compiler.
2216echo "$as_me:$LINENO:" \
2217 "checking for C++ compiler version" >&5
2218ac_compiler=`set X $ac_compile; echo $2`
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220 (eval $ac_compiler --version </dev/null >&5) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }
2224{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225 (eval $ac_compiler -v </dev/null >&5) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230 (eval $ac_compiler -V </dev/null >&5) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }
2234
2235cat >conftest.$ac_ext <<_ACEOF
2236#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002237#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002238
John Criswelld9cd1442003-09-09 20:52:17 +00002239#ifdef F77_DUMMY_MAIN
2240# ifdef __cplusplus
2241 extern "C"
2242# endif
2243 int F77_DUMMY_MAIN() { return 1; }
2244#endif
John Criswell7a73b802003-06-30 21:59:07 +00002245int
2246main ()
2247{
2248
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253ac_clean_files_save=$ac_clean_files
John Criswelld9cd1442003-09-09 20:52:17 +00002254ac_clean_files="$ac_clean_files a.out a.exe"
John Criswell7a73b802003-06-30 21:59:07 +00002255# Try to create an executable without -o first, disregard a.out.
2256# It will help us diagnose broken compilers, and finding out an intuition
2257# of exeext.
2258echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2259echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2260ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2262 (eval $ac_link_default) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # Find the output, starting from the most likely. This scheme is
2267# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2268# resort.
2269
2270# Be careful to initialize this variable, since it used to be cached.
2271# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2272ac_cv_exeext=
John Criswelld9cd1442003-09-09 20:52:17 +00002273for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2274 ls a.out conftest 2>/dev/null;
2275 ls a.* conftest.* 2>/dev/null`; do
John Criswell7a73b802003-06-30 21:59:07 +00002276 case $ac_file in
John Criswelld9cd1442003-09-09 20:52:17 +00002277 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2278 a.out ) # We found the default executable, but exeext='' is most
2279 # certainly right.
2280 break;;
2281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2283 export ac_cv_exeext
2284 break;;
2285 * ) break;;
John Criswell7a73b802003-06-30 21:59:07 +00002286 esac
2287done
2288else
2289 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002290cat conftest.$ac_ext >&5
2291{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2292echo "$as_me: error: C++ compiler cannot create executables" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002293 { (exit 77); exit 77; }; }
2294fi
2295
2296ac_exeext=$ac_cv_exeext
2297echo "$as_me:$LINENO: result: $ac_file" >&5
2298echo "${ECHO_T}$ac_file" >&6
2299
2300# Check the compiler produces executables we can run. If not, either
2301# the compiler is broken, or we cross compile.
2302echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2303echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2304# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2305# If not cross compiling, check that we can run a simple program.
2306if test "$cross_compiling" != yes; then
2307 if { ac_try='./$ac_file'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2313 cross_compiling=no
2314 else
2315 if test "$cross_compiling" = maybe; then
2316 cross_compiling=yes
2317 else
2318 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswelld9cd1442003-09-09 20:52:17 +00002319If you meant to cross compile, use \`--host'." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002320echo "$as_me: error: cannot run C++ compiled programs.
John Criswelld9cd1442003-09-09 20:52:17 +00002321If you meant to cross compile, use \`--host'." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002322 { (exit 1); exit 1; }; }
2323 fi
2324 fi
2325fi
2326echo "$as_me:$LINENO: result: yes" >&5
2327echo "${ECHO_T}yes" >&6
2328
John Criswelld9cd1442003-09-09 20:52:17 +00002329rm -f a.out a.exe conftest$ac_cv_exeext
John Criswell7a73b802003-06-30 21:59:07 +00002330ac_clean_files=$ac_clean_files_save
2331# Check the compiler produces executables we can run. If not, either
2332# the compiler is broken, or we cross compile.
2333echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2335echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336echo "${ECHO_T}$cross_compiling" >&6
2337
2338echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2341 (eval $ac_link) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2346# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2347# work properly (i.e., refer to `conftest.exe'), while it won't with
2348# `rm'.
John Criswelld9cd1442003-09-09 20:52:17 +00002349for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
John Criswell7a73b802003-06-30 21:59:07 +00002350 case $ac_file in
John Criswelld9cd1442003-09-09 20:52:17 +00002351 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 export ac_cv_exeext
2354 break;;
2355 * ) break;;
2356 esac
2357done
2358else
John Criswelld9cd1442003-09-09 20:52:17 +00002359 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2360echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002361 { (exit 1); exit 1; }; }
2362fi
2363
2364rm -f conftest$ac_cv_exeext
2365echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2366echo "${ECHO_T}$ac_cv_exeext" >&6
2367
2368rm -f conftest.$ac_ext
2369EXEEXT=$ac_cv_exeext
2370ac_exeext=$EXEEXT
2371echo "$as_me:$LINENO: checking for suffix of object files" >&5
2372echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2373if test "${ac_cv_objext+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 cat >conftest.$ac_ext <<_ACEOF
2377#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002378#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002379
John Criswelld9cd1442003-09-09 20:52:17 +00002380#ifdef F77_DUMMY_MAIN
2381# ifdef __cplusplus
2382 extern "C"
2383# endif
2384 int F77_DUMMY_MAIN() { return 1; }
2385#endif
John Criswell7a73b802003-06-30 21:59:07 +00002386int
2387main ()
2388{
2389
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.o conftest.obj
2395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2401 case $ac_file in
John Criswelld9cd1442003-09-09 20:52:17 +00002402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2404 break;;
2405 esac
2406done
2407else
2408 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002409cat conftest.$ac_ext >&5
2410{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2411echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002412 { (exit 1); exit 1; }; }
2413fi
2414
2415rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416fi
2417echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418echo "${ECHO_T}$ac_cv_objext" >&6
2419OBJEXT=$ac_cv_objext
2420ac_objext=$OBJEXT
2421echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2422echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2423if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425else
2426 cat >conftest.$ac_ext <<_ACEOF
2427#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002428#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002429
John Criswelld9cd1442003-09-09 20:52:17 +00002430#ifdef F77_DUMMY_MAIN
2431# ifdef __cplusplus
2432 extern "C"
2433# endif
2434 int F77_DUMMY_MAIN() { return 1; }
2435#endif
John Criswell7a73b802003-06-30 21:59:07 +00002436int
2437main ()
2438{
2439#ifndef __GNUC__
2440 choke me
2441#endif
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 ac_compiler_gnu=yes
2460else
2461 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002462cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002463ac_compiler_gnu=no
2464fi
2465rm -f conftest.$ac_objext conftest.$ac_ext
2466ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2467
2468fi
2469echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2470echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2471GXX=`test $ac_compiler_gnu = yes && echo yes`
2472ac_test_CXXFLAGS=${CXXFLAGS+set}
2473ac_save_CXXFLAGS=$CXXFLAGS
2474CXXFLAGS="-g"
2475echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2476echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2477if test "${ac_cv_prog_cxx_g+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480 cat >conftest.$ac_ext <<_ACEOF
2481#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002482#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002483
John Criswelld9cd1442003-09-09 20:52:17 +00002484#ifdef F77_DUMMY_MAIN
2485# ifdef __cplusplus
2486 extern "C"
2487# endif
2488 int F77_DUMMY_MAIN() { return 1; }
2489#endif
John Criswell7a73b802003-06-30 21:59:07 +00002490int
2491main ()
2492{
2493
2494 ;
2495 return 0;
2496}
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 (eval $ac_try) 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 ac_cv_prog_cxx_g=yes
2511else
2512 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002513cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002514ac_cv_prog_cxx_g=no
2515fi
2516rm -f conftest.$ac_objext conftest.$ac_ext
2517fi
2518echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2519echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2520if test "$ac_test_CXXFLAGS" = set; then
2521 CXXFLAGS=$ac_save_CXXFLAGS
2522elif test $ac_cv_prog_cxx_g = yes; then
2523 if test "$GXX" = yes; then
2524 CXXFLAGS="-g -O2"
2525 else
2526 CXXFLAGS="-g"
2527 fi
2528else
2529 if test "$GXX" = yes; then
2530 CXXFLAGS="-O2"
2531 else
2532 CXXFLAGS=
2533 fi
2534fi
2535for ac_declaration in \
2536 ''\
2537 '#include <stdlib.h>' \
2538 'extern "C" void std::exit (int) throw (); using std::exit;' \
2539 'extern "C" void std::exit (int); using std::exit;' \
2540 'extern "C" void exit (int) throw ();' \
2541 'extern "C" void exit (int);' \
2542 'void exit (int);'
2543do
2544 cat >conftest.$ac_ext <<_ACEOF
2545#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002546#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002547#include <stdlib.h>
2548$ac_declaration
John Criswelld9cd1442003-09-09 20:52:17 +00002549#ifdef F77_DUMMY_MAIN
2550# ifdef __cplusplus
2551 extern "C"
2552# endif
2553 int F77_DUMMY_MAIN() { return 1; }
2554#endif
John Criswell7a73b802003-06-30 21:59:07 +00002555int
2556main ()
2557{
2558exit (42);
2559 ;
2560 return 0;
2561}
2562_ACEOF
2563rm -f conftest.$ac_objext
2564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 :
2576else
2577 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002578cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002579continue
2580fi
2581rm -f conftest.$ac_objext conftest.$ac_ext
2582 cat >conftest.$ac_ext <<_ACEOF
2583#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002584#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002585$ac_declaration
John Criswelld9cd1442003-09-09 20:52:17 +00002586#ifdef F77_DUMMY_MAIN
2587# ifdef __cplusplus
2588 extern "C"
2589# endif
2590 int F77_DUMMY_MAIN() { return 1; }
2591#endif
John Criswell7a73b802003-06-30 21:59:07 +00002592int
2593main ()
2594{
2595exit (42);
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 (eval $ac_try) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 break
2613else
2614 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002615cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002616fi
2617rm -f conftest.$ac_objext conftest.$ac_ext
2618done
2619rm -f conftest*
2620if test -n "$ac_declaration"; then
2621 echo '#ifdef __cplusplus' >>confdefs.h
2622 echo $ac_declaration >>confdefs.h
2623 echo '#endif' >>confdefs.h
2624fi
2625
2626ac_ext=c
2627ac_cpp='$CPP $CPPFLAGS'
2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637if test -n "$ac_tool_prefix"; then
2638 for ac_prog in gcc
2639 do
2640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642echo "$as_me:$LINENO: checking for $ac_word" >&5
2643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644if test "${ac_cv_prog_CC+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661done
2662done
2663
2664fi
2665fi
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668 echo "$as_me:$LINENO: result: $CC" >&5
2669echo "${ECHO_T}$CC" >&6
2670else
2671 echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6
2673fi
2674
2675 test -n "$CC" && break
2676 done
2677fi
2678if test -z "$CC"; then
2679 ac_ct_CC=$CC
2680 for ac_prog in gcc
2681do
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684echo "$as_me:$LINENO: checking for $ac_word" >&5
2685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_ac_ct_CC="$ac_prog"
2700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2702 fi
2703done
2704done
2705
2706fi
2707fi
2708ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709if test -n "$ac_ct_CC"; then
2710 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711echo "${ECHO_T}$ac_ct_CC" >&6
2712else
2713 echo "$as_me:$LINENO: result: no" >&5
2714echo "${ECHO_T}no" >&6
2715fi
2716
2717 test -n "$ac_ct_CC" && break
2718done
2719
2720 CC=$ac_ct_CC
2721fi
2722
2723
John Criswelld9cd1442003-09-09 20:52:17 +00002724test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2725echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002726 { (exit 1); exit 1; }; }
2727
2728# Provide some information about the compiler.
2729echo "$as_me:$LINENO:" \
2730 "checking for C compiler version" >&5
2731ac_compiler=`set X $ac_compile; echo $2`
2732{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2733 (eval $ac_compiler --version </dev/null >&5) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2737{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2738 (eval $ac_compiler -v </dev/null >&5) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2743 (eval $ac_compiler -V </dev/null >&5) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
2747
2748echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2749echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2750if test "${ac_cv_c_compiler_gnu+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752else
2753 cat >conftest.$ac_ext <<_ACEOF
2754#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002755#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002756
John Criswelld9cd1442003-09-09 20:52:17 +00002757#ifdef F77_DUMMY_MAIN
2758# ifdef __cplusplus
2759 extern "C"
2760# endif
2761 int F77_DUMMY_MAIN() { return 1; }
2762#endif
John Criswell7a73b802003-06-30 21:59:07 +00002763int
2764main ()
2765{
2766#ifndef __GNUC__
2767 choke me
2768#endif
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_compiler_gnu=yes
2787else
2788 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002789cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002790ac_compiler_gnu=no
2791fi
2792rm -f conftest.$ac_objext conftest.$ac_ext
2793ac_cv_c_compiler_gnu=$ac_compiler_gnu
2794
2795fi
2796echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2797echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2798GCC=`test $ac_compiler_gnu = yes && echo yes`
2799ac_test_CFLAGS=${CFLAGS+set}
2800ac_save_CFLAGS=$CFLAGS
2801CFLAGS="-g"
2802echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2803echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2804if test "${ac_cv_prog_cc_g+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
2807 cat >conftest.$ac_ext <<_ACEOF
2808#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002809#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002810
John Criswelld9cd1442003-09-09 20:52:17 +00002811#ifdef F77_DUMMY_MAIN
2812# ifdef __cplusplus
2813 extern "C"
2814# endif
2815 int F77_DUMMY_MAIN() { return 1; }
2816#endif
John Criswell7a73b802003-06-30 21:59:07 +00002817int
2818main ()
2819{
2820
2821 ;
2822 return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext
2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_g=yes
2838else
2839 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002840cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002841ac_cv_prog_cc_g=no
2842fi
2843rm -f conftest.$ac_objext conftest.$ac_ext
2844fi
2845echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2846echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2847if test "$ac_test_CFLAGS" = set; then
2848 CFLAGS=$ac_save_CFLAGS
2849elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2851 CFLAGS="-g -O2"
2852 else
2853 CFLAGS="-g"
2854 fi
2855else
2856 if test "$GCC" = yes; then
2857 CFLAGS="-O2"
2858 else
2859 CFLAGS=
2860 fi
2861fi
2862# Some people use a C++ compiler to compile C. Since we use `exit',
2863# in C++ we need to declare it. In case someone uses the same compiler
2864# for both compiling C and C++ we need to have the C++ compiler decide
2865# the declaration of exit, since it's the most demanding environment.
2866cat >conftest.$ac_ext <<_ACEOF
2867#ifndef __cplusplus
2868 choke me
2869#endif
2870_ACEOF
2871rm -f conftest.$ac_objext
2872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 for ac_declaration in \
2884 ''\
2885 '#include <stdlib.h>' \
2886 'extern "C" void std::exit (int) throw (); using std::exit;' \
2887 'extern "C" void std::exit (int); using std::exit;' \
2888 'extern "C" void exit (int) throw ();' \
2889 'extern "C" void exit (int);' \
2890 'void exit (int);'
2891do
2892 cat >conftest.$ac_ext <<_ACEOF
2893#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002894#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002895#include <stdlib.h>
2896$ac_declaration
John Criswelld9cd1442003-09-09 20:52:17 +00002897#ifdef F77_DUMMY_MAIN
2898# ifdef __cplusplus
2899 extern "C"
2900# endif
2901 int F77_DUMMY_MAIN() { return 1; }
2902#endif
John Criswell7a73b802003-06-30 21:59:07 +00002903int
2904main ()
2905{
2906exit (42);
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911rm -f conftest.$ac_objext
2912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 :
2924else
2925 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002926cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002927continue
2928fi
2929rm -f conftest.$ac_objext conftest.$ac_ext
2930 cat >conftest.$ac_ext <<_ACEOF
2931#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00002932#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00002933$ac_declaration
John Criswelld9cd1442003-09-09 20:52:17 +00002934#ifdef F77_DUMMY_MAIN
2935# ifdef __cplusplus
2936 extern "C"
2937# endif
2938 int F77_DUMMY_MAIN() { return 1; }
2939#endif
John Criswell7a73b802003-06-30 21:59:07 +00002940int
2941main ()
2942{
2943exit (42);
2944 ;
2945 return 0;
2946}
2947_ACEOF
2948rm -f conftest.$ac_objext
2949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 (eval $ac_try) 2>&5
2957 ac_status=$?
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 break
2961else
2962 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002963cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002964fi
2965rm -f conftest.$ac_objext conftest.$ac_ext
2966done
2967rm -f conftest*
2968if test -n "$ac_declaration"; then
2969 echo '#ifdef __cplusplus' >>confdefs.h
2970 echo $ac_declaration >>confdefs.h
2971 echo '#endif' >>confdefs.h
2972fi
2973
2974else
2975 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00002976cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00002977fi
2978rm -f conftest.$ac_objext conftest.$ac_ext
2979ac_ext=c
2980ac_cpp='$CPP $CPPFLAGS'
2981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985ac_ext=c
2986ac_cpp='$CPP $CPPFLAGS'
2987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992# On Suns, sometimes $CPP names a directory.
2993if test -n "$CPP" && test -d "$CPP"; then
2994 CPP=
2995fi
2996if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 do
3003 ac_preproc_ok=false
3004for ac_c_preproc_warn_flag in '' yes
3005do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003012#include "confdefs.h"
3013#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +00003014 Syntax error
3015_ACEOF
3016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00003019 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3026 else
3027 ac_cpp_err=
3028 fi
3029else
3030 ac_cpp_err=yes
3031fi
3032if test -z "$ac_cpp_err"; then
3033 :
3034else
3035 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003036 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003037 # Broken: fails on valid input.
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_ext
3041
3042 # OK, works on sane cases. Now check whether non-existent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3045#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003046#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00003047#include <ac_nonexistent.h>
3048_ACEOF
3049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00003052 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003053 rm -f conftest.er1
3054 cat conftest.err >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } >/dev/null; then
3057 if test -s conftest.err; then
3058 ac_cpp_err=$ac_c_preproc_warn_flag
3059 else
3060 ac_cpp_err=
3061 fi
3062else
3063 ac_cpp_err=yes
3064fi
3065if test -z "$ac_cpp_err"; then
3066 # Broken: success on invalid input.
3067continue
3068else
3069 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003070 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003071 # Passes both tests.
3072ac_preproc_ok=:
3073break
3074fi
3075rm -f conftest.err conftest.$ac_ext
3076
3077done
3078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079rm -f conftest.err conftest.$ac_ext
3080if $ac_preproc_ok; then
3081 break
3082fi
3083
3084 done
3085 ac_cv_prog_CPP=$CPP
3086
3087fi
3088 CPP=$ac_cv_prog_CPP
3089else
3090 ac_cv_prog_CPP=$CPP
3091fi
3092echo "$as_me:$LINENO: result: $CPP" >&5
3093echo "${ECHO_T}$CPP" >&6
3094ac_preproc_ok=false
3095for ac_c_preproc_warn_flag in '' yes
3096do
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp. "Syntax error" is here to catch this case.
3101 cat >conftest.$ac_ext <<_ACEOF
3102#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003103#include "confdefs.h"
3104#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +00003105 Syntax error
3106_ACEOF
3107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00003110 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null; then
3115 if test -s conftest.err; then
3116 ac_cpp_err=$ac_c_preproc_warn_flag
3117 else
3118 ac_cpp_err=
3119 fi
3120else
3121 ac_cpp_err=yes
3122fi
3123if test -z "$ac_cpp_err"; then
3124 :
3125else
3126 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003127 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003128 # Broken: fails on valid input.
3129continue
3130fi
3131rm -f conftest.err conftest.$ac_ext
3132
3133 # OK, works on sane cases. Now check whether non-existent headers
3134 # can be detected and how.
3135 cat >conftest.$ac_ext <<_ACEOF
3136#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003137#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00003138#include <ac_nonexistent.h>
3139_ACEOF
3140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00003143 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } >/dev/null; then
3148 if test -s conftest.err; then
3149 ac_cpp_err=$ac_c_preproc_warn_flag
3150 else
3151 ac_cpp_err=
3152 fi
3153else
3154 ac_cpp_err=yes
3155fi
3156if test -z "$ac_cpp_err"; then
3157 # Broken: success on invalid input.
3158continue
3159else
3160 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003161 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003162 # Passes both tests.
3163ac_preproc_ok=:
3164break
3165fi
3166rm -f conftest.err conftest.$ac_ext
3167
3168done
3169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170rm -f conftest.err conftest.$ac_ext
3171if $ac_preproc_ok; then
3172 :
3173else
John Criswelld9cd1442003-09-09 20:52:17 +00003174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3175echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003176 { (exit 1); exit 1; }; }
3177fi
3178
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184
3185
3186if test "$GCC" != "yes"
3187then
3188 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3189echo "$as_me: error: gcc required but not found" >&2;}
3190 { (exit 1); exit 1; }; }
3191fi
3192
3193if test "$GXX" != "yes"
3194then
3195 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3196echo "$as_me: error: g++ required but not found" >&2;}
3197 { (exit 1); exit 1; }; }
3198fi
3199
John Criswellde00db22003-08-25 16:49:54 +00003200gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3201if test "$gccmajor" -lt "3"
3202then
3203 { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3204echo "$as_me: error: gcc 3.x required" >&2;}
3205 { (exit 1); exit 1; }; }
3206fi
3207
John Criswell7a73b802003-06-30 21:59:07 +00003208 echo "$as_me:$LINENO: checking for GNU make" >&5
3209echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3210if test "${_cv_gnu_make_command+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 _cv_gnu_make_command='' ;
3214 for a in "$MAKE" make gmake gnumake ; do
3215 if test -z "$a" ; then continue ; fi ;
3216 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3217 _cv_gnu_make_command=$a ;
3218 break;
3219 fi
3220 done ;
3221
3222fi
3223echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3224echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3225 if test "x$_cv_gnu_make_command" != "x" ; then
3226 ifGNUmake='' ;
3227 else
3228 ifGNUmake='#' ;
3229 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3230echo "${ECHO_T}\"Not found\"" >&6;
3231 fi
3232
3233
3234if test -z "$_cv_gnu_make_command"
3235then
3236 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3237echo "$as_me: error: GNU Make required but not found" >&2;}
3238 { (exit 1); exit 1; }; }
3239fi
3240
3241
3242echo "$as_me:$LINENO: checking " >&5
3243echo $ECHO_N "checking ... $ECHO_C" >&6
3244if test "${ac_cv_has_flex+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 for ac_prog in flex lex
3248do
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_prog_LEX+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 if test -n "$LEX"; then
3257 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_LEX="$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271done
3272
3273fi
3274fi
3275LEX=$ac_cv_prog_LEX
3276if test -n "$LEX"; then
3277 echo "$as_me:$LINENO: result: $LEX" >&5
3278echo "${ECHO_T}$LEX" >&6
3279else
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
3282fi
3283
3284 test -n "$LEX" && break
3285done
3286test -n "$LEX" || LEX=":"
3287
3288if test -z "$LEXLIB"
3289then
3290 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3291echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3292if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295 ac_check_lib_save_LIBS=$LIBS
3296LIBS="-lfl $LIBS"
3297cat >conftest.$ac_ext <<_ACEOF
3298#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003299#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00003300
3301/* Override any gcc2 internal prototype to avoid an error. */
3302#ifdef __cplusplus
3303extern "C"
3304#endif
3305/* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3307char yywrap ();
John Criswelld9cd1442003-09-09 20:52:17 +00003308#ifdef F77_DUMMY_MAIN
3309# ifdef __cplusplus
3310 extern "C"
3311# endif
3312 int F77_DUMMY_MAIN() { return 1; }
3313#endif
John Criswell7a73b802003-06-30 21:59:07 +00003314int
3315main ()
3316{
3317yywrap ();
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext conftest$ac_exeext
3323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324 (eval $ac_link) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest$ac_exeext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_lib_fl_yywrap=yes
3335else
3336 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003337cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003338ac_cv_lib_fl_yywrap=no
3339fi
3340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3341LIBS=$ac_check_lib_save_LIBS
3342fi
3343echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3344echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3345if test $ac_cv_lib_fl_yywrap = yes; then
3346 LEXLIB="-lfl"
3347else
3348 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3349echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3350if test "${ac_cv_lib_l_yywrap+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353 ac_check_lib_save_LIBS=$LIBS
3354LIBS="-ll $LIBS"
3355cat >conftest.$ac_ext <<_ACEOF
3356#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00003357#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00003358
3359/* Override any gcc2 internal prototype to avoid an error. */
3360#ifdef __cplusplus
3361extern "C"
3362#endif
3363/* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3365char yywrap ();
John Criswelld9cd1442003-09-09 20:52:17 +00003366#ifdef F77_DUMMY_MAIN
3367# ifdef __cplusplus
3368 extern "C"
3369# endif
3370 int F77_DUMMY_MAIN() { return 1; }
3371#endif
John Criswell7a73b802003-06-30 21:59:07 +00003372int
3373main ()
3374{
3375yywrap ();
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext conftest$ac_exeext
3381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } &&
3386 { ac_try='test -s conftest$ac_exeext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_lib_l_yywrap=yes
3393else
3394 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003395cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003396ac_cv_lib_l_yywrap=no
3397fi
3398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399LIBS=$ac_check_lib_save_LIBS
3400fi
3401echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3402echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3403if test $ac_cv_lib_l_yywrap = yes; then
3404 LEXLIB="-ll"
3405fi
3406
3407fi
3408
3409fi
3410
3411if test "x$LEX" != "x:"; then
3412 echo "$as_me:$LINENO: checking lex output file root" >&5
3413echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3414if test "${ac_cv_prog_lex_root+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417 # The minimal lex program is just a single line: %%. But some broken lexes
3418# (Solaris, I think it was) want two %% lines, so accommodate them.
3419cat >conftest.l <<_ACEOF
3420%%
3421%%
3422_ACEOF
3423{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3424 (eval $LEX conftest.l) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }
3428if test -f lex.yy.c; then
3429 ac_cv_prog_lex_root=lex.yy
3430elif test -f lexyy.c; then
3431 ac_cv_prog_lex_root=lexyy
3432else
3433 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3434echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3435 { (exit 1); exit 1; }; }
3436fi
3437fi
3438echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3439echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3440rm -f conftest.l
3441LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3442
3443echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3444echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3445if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448 # POSIX says lex can declare yytext either as a pointer or an array; the
3449# default is implementation-dependent. Figure out which it is, since
3450# not all implementations provide the %pointer and %array declarations.
3451ac_cv_prog_lex_yytext_pointer=no
3452echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3453ac_save_LIBS=$LIBS
3454LIBS="$LIBS $LEXLIB"
3455cat >conftest.$ac_ext <<_ACEOF
3456`cat $LEX_OUTPUT_ROOT.c`
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
3459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460 (eval $ac_link) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try='test -s conftest$ac_exeext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 ac_cv_prog_lex_yytext_pointer=yes
3471else
3472 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00003473cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00003474fi
3475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3476LIBS=$ac_save_LIBS
3477rm -f "${LEX_OUTPUT_ROOT}.c"
3478
3479fi
3480echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3481echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3482if test $ac_cv_prog_lex_yytext_pointer = yes; then
3483
3484cat >>confdefs.h <<\_ACEOF
3485#define YYTEXT_POINTER 1
3486_ACEOF
3487
3488fi
3489
3490fi
3491
3492fi
3493echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3494echo "${ECHO_T}$ac_cv_has_flex" >&6
3495if test "$LEX" != "flex"; then
3496 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3497echo "$as_me: error: flex not found but required" >&2;}
3498 { (exit 1); exit 1; }; }
3499fi
3500
3501echo "$as_me:$LINENO: checking " >&5
3502echo $ECHO_N "checking ... $ECHO_C" >&6
3503if test "${ac_cv_has_bison+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506 for ac_prog in 'bison -y' byacc
3507do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
3510echo "$as_me:$LINENO: checking for $ac_word" >&5
3511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512if test "${ac_cv_prog_YACC+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515 if test -n "$YACC"; then
3516 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_YACC="$ac_prog"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529done
3530done
3531
3532fi
3533fi
3534YACC=$ac_cv_prog_YACC
3535if test -n "$YACC"; then
3536 echo "$as_me:$LINENO: result: $YACC" >&5
3537echo "${ECHO_T}$YACC" >&6
3538else
3539 echo "$as_me:$LINENO: result: no" >&5
3540echo "${ECHO_T}no" >&6
3541fi
3542
3543 test -n "$YACC" && break
3544done
3545test -n "$YACC" || YACC="yacc"
3546
3547
3548fi
3549echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3550echo "${ECHO_T}$ac_cv_has_bison" >&6
3551if test "$YACC" != "bison -y"; then
3552 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3553echo "$as_me: error: bison not found but required" >&2;}
3554 { (exit 1); exit 1; }; }
3555else
3556 YACC=bison
3557
3558fi
3559
3560
3561# Check whether --enable-shared or --disable-shared was given.
3562if test "${enable_shared+set}" = set; then
3563 enableval="$enable_shared"
3564 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003565 case $enableval in
3566 yes) enable_shared=yes ;;
3567 no) enable_shared=no ;;
3568 *)
3569 enable_shared=no
3570 # Look at the argument we got. We use all the common list separators.
3571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572 for pkg in $enableval; do
3573 IFS="$lt_save_ifs"
3574 if test "X$pkg" = "X$p"; then
3575 enable_shared=yes
3576 fi
3577 done
3578 IFS="$lt_save_ifs"
3579 ;;
3580 esac
John Criswell7a73b802003-06-30 21:59:07 +00003581else
3582 enable_shared=yes
3583fi;
John Criswell47fdd832003-07-14 16:52:07 +00003584
John Criswell7a73b802003-06-30 21:59:07 +00003585# Check whether --enable-static or --disable-static was given.
3586if test "${enable_static+set}" = set; then
3587 enableval="$enable_static"
3588 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003589 case $enableval in
3590 yes) enable_static=yes ;;
3591 no) enable_static=no ;;
3592 *)
3593 enable_static=no
3594 # Look at the argument we got. We use all the common list separators.
3595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3596 for pkg in $enableval; do
3597 IFS="$lt_save_ifs"
3598 if test "X$pkg" = "X$p"; then
3599 enable_static=yes
3600 fi
3601 done
3602 IFS="$lt_save_ifs"
3603 ;;
3604 esac
John Criswell7a73b802003-06-30 21:59:07 +00003605else
3606 enable_static=yes
3607fi;
John Criswell47fdd832003-07-14 16:52:07 +00003608
John Criswell7a73b802003-06-30 21:59:07 +00003609# Check whether --enable-fast-install or --disable-fast-install was given.
3610if test "${enable_fast_install+set}" = set; then
3611 enableval="$enable_fast_install"
3612 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003613 case $enableval in
3614 yes) enable_fast_install=yes ;;
3615 no) enable_fast_install=no ;;
3616 *)
3617 enable_fast_install=no
3618 # Look at the argument we got. We use all the common list separators.
3619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3620 for pkg in $enableval; do
3621 IFS="$lt_save_ifs"
3622 if test "X$pkg" = "X$p"; then
3623 enable_fast_install=yes
3624 fi
3625 done
3626 IFS="$lt_save_ifs"
3627 ;;
3628 esac
John Criswell7a73b802003-06-30 21:59:07 +00003629else
3630 enable_fast_install=yes
3631fi;
John Criswell47fdd832003-07-14 16:52:07 +00003632
3633echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3634echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3635if test "${lt_cv_path_SED+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 # Loop through the user's path and test for sed and gsed.
3639# Then use that list of sed's as ones to test for truncation.
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for lt_ac_prog in sed gsed; do
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3648 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3649 fi
3650 done
3651 done
3652done
3653lt_ac_max=0
3654lt_ac_count=0
3655# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3656# along with /bin/sed that truncates output.
3657for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3658 test ! -f $lt_ac_sed && break
3659 cat /dev/null > conftest.in
3660 lt_ac_count=0
3661 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3662 # Check for GNU sed and select it if it is found.
3663 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3664 lt_cv_path_SED=$lt_ac_sed
3665 break
3666 fi
3667 while true; do
3668 cat conftest.in conftest.in >conftest.tmp
3669 mv conftest.tmp conftest.in
3670 cp conftest.in conftest.nl
3671 echo >>conftest.nl
3672 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3673 cmp -s conftest.out conftest.nl || break
3674 # 10000 chars as input seems more than enough
3675 test $lt_ac_count -gt 10 && break
3676 lt_ac_count=`expr $lt_ac_count + 1`
3677 if test $lt_ac_count -gt $lt_ac_max; then
3678 lt_ac_max=$lt_ac_count
3679 lt_cv_path_SED=$lt_ac_sed
3680 fi
3681 done
3682done
3683SED=$lt_cv_path_SED
3684
John Criswell7a73b802003-06-30 21:59:07 +00003685fi
3686
John Criswell47fdd832003-07-14 16:52:07 +00003687echo "$as_me:$LINENO: result: $SED" >&5
3688echo "${ECHO_T}$SED" >&6
3689
3690echo "$as_me:$LINENO: checking for egrep" >&5
3691echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3692if test "${ac_cv_prog_egrep+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3696 then ac_cv_prog_egrep='grep -E'
3697 else ac_cv_prog_egrep='egrep'
3698 fi
3699fi
3700echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3701echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3702 EGREP=$ac_cv_prog_egrep
3703
3704
John Criswell7a73b802003-06-30 21:59:07 +00003705
3706# Check whether --with-gnu-ld or --without-gnu-ld was given.
3707if test "${with_gnu_ld+set}" = set; then
3708 withval="$with_gnu_ld"
3709 test "$withval" = no || with_gnu_ld=yes
3710else
3711 with_gnu_ld=no
3712fi;
3713ac_prog=ld
3714if test "$GCC" = yes; then
3715 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003716 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3717echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003718 case $host in
3719 *-*-mingw*)
3720 # gcc leaves a trailing carriage return which upsets mingw
3721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3722 *)
3723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724 esac
3725 case $ac_prog in
3726 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003727 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003728 re_direlt='/[^/][^/]*/\.\./'
3729 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003730 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003731 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003732 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003733 done
3734 test -z "$LD" && LD="$ac_prog"
3735 ;;
3736 "")
3737 # If it fails, then pretend we aren't using GCC.
3738 ac_prog=ld
3739 ;;
3740 *)
3741 # If it is relative, then search for the first ld in PATH.
3742 with_gnu_ld=unknown
3743 ;;
3744 esac
3745elif test "$with_gnu_ld" = yes; then
3746 echo "$as_me:$LINENO: checking for GNU ld" >&5
3747echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3748else
3749 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3750echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3751fi
3752if test "${lt_cv_path_LD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003757 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003758 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003759 test -z "$ac_dir" && ac_dir=.
3760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3761 lt_cv_path_LD="$ac_dir/$ac_prog"
3762 # Check to see if the program is GNU ld. I'd rather use --version,
3763 # but apparently some GNU ld's only accept -v.
3764 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3766 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003767 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003768 ;;
3769 *)
John Criswell7a73b802003-06-30 21:59:07 +00003770 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003771 ;;
3772 esac
John Criswell7a73b802003-06-30 21:59:07 +00003773 fi
3774 done
John Criswell47fdd832003-07-14 16:52:07 +00003775 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003776else
3777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3778fi
3779fi
3780
3781LD="$lt_cv_path_LD"
3782if test -n "$LD"; then
3783 echo "$as_me:$LINENO: result: $LD" >&5
3784echo "${ECHO_T}$LD" >&6
3785else
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
3788fi
3789test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3790echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3791 { (exit 1); exit 1; }; }
3792echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3793echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3794if test "${lt_cv_prog_gnu_ld+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796else
3797 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003798case `"$LD" -v 2>&1 </dev/null` in
3799*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003800 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003801 ;;
3802*)
John Criswell7a73b802003-06-30 21:59:07 +00003803 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003804 ;;
3805esac
John Criswell7a73b802003-06-30 21:59:07 +00003806fi
3807echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3808echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3809with_gnu_ld=$lt_cv_prog_gnu_ld
3810
3811
3812echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3813echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3814if test "${lt_cv_ld_reload_flag+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816else
3817 lt_cv_ld_reload_flag='-r'
3818fi
3819echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3820echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3821reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003822case $reload_flag in
3823"" | " "*) ;;
3824*) reload_flag=" $reload_flag" ;;
3825esac
3826reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003827
3828echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3829echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3830if test "${lt_cv_path_NM+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$NM"; then
3834 # Let the user override the test.
3835 lt_cv_path_NM="$NM"
3836else
John Criswell47fdd832003-07-14 16:52:07 +00003837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003838 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003839 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003840 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003841 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003843 # Check to see if the nm accepts a BSD-compat flag.
3844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3845 # nm: unknown option "B" ignored
3846 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3848 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003849 lt_cv_path_NM="$tmp_nm -B"
3850 break
John Criswell47fdd832003-07-14 16:52:07 +00003851 ;;
3852 *)
3853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3854 */dev/null*)
3855 lt_cv_path_NM="$tmp_nm -p"
3856 break
3857 ;;
3858 *)
3859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3860 continue # so that we can try to find one that supports BSD flags
3861 ;;
3862 esac
3863 esac
John Criswell7a73b802003-06-30 21:59:07 +00003864 fi
3865 done
John Criswell47fdd832003-07-14 16:52:07 +00003866 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003867 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3868fi
3869fi
John Criswell47fdd832003-07-14 16:52:07 +00003870echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3871echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003872NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003873
3874echo "$as_me:$LINENO: checking whether ln -s works" >&5
3875echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3876LN_S=$as_ln_s
3877if test "$LN_S" = "ln -s"; then
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
3880else
3881 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3882echo "${ECHO_T}no, using $LN_S" >&6
3883fi
3884
John Criswell47fdd832003-07-14 16:52:07 +00003885echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3886echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003887if test "${lt_cv_deplibs_check_method+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 lt_cv_file_magic_cmd='$MAGIC_CMD'
3891lt_cv_file_magic_test_file=
3892lt_cv_deplibs_check_method='unknown'
3893# Need to set the preceding variable on all platforms that support
3894# interlibrary dependencies.
3895# 'none' -- dependencies not supported.
3896# `unknown' -- same as none, but documents that we really don't know.
3897# 'pass_all' -- all dependencies passed with no checks.
3898# 'test_compile' -- check by making test program.
3899# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003900# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003901# If you have `file' or equivalent on your system and you're not sure
3902# whether `pass_all' will *always* work, you probably want this one.
3903
3904case $host_os in
3905aix4* | aix5*)
3906 lt_cv_deplibs_check_method=pass_all
3907 ;;
3908
3909beos*)
3910 lt_cv_deplibs_check_method=pass_all
3911 ;;
3912
3913bsdi4*)
3914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3915 lt_cv_file_magic_cmd='/usr/bin/file -L'
3916 lt_cv_file_magic_test_file=/shlib/libc.so
3917 ;;
3918
3919cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003920 # win32_libid is a shell function defined in ltmain.sh
3921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3922 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003923 ;;
3924
3925darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003926 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003927 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3928 lt_cv_file_magic_cmd='/usr/bin/file -L'
3929 case "$host_os" in
3930 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003931 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003932 ;;
3933 *) # Darwin 1.3 on
3934 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3935 ;;
3936 esac
John Criswell47fdd832003-07-14 16:52:07 +00003937 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003938 ;;
3939
3940freebsd*)
3941 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3942 case $host_cpu in
3943 i*86 )
3944 # Not sure whether the presence of OpenBSD here was a mistake.
3945 # Let's accept both of them until this is cleared up.
3946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3947 lt_cv_file_magic_cmd=/usr/bin/file
3948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3949 ;;
3950 esac
3951 else
3952 lt_cv_deplibs_check_method=pass_all
3953 fi
3954 ;;
3955
3956gnu*)
3957 lt_cv_deplibs_check_method=pass_all
3958 ;;
3959
John Criswell47fdd832003-07-14 16:52:07 +00003960hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003961 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003962 case "$host_cpu" in
3963 ia64*)
3964 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3965 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3966 ;;
3967 hppa*64*)
3968 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]'
3969 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3970 ;;
3971 *)
3972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3973 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3974 ;;
3975 esac
John Criswell7a73b802003-06-30 21:59:07 +00003976 ;;
3977
John Criswell47fdd832003-07-14 16:52:07 +00003978irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003979 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003980 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003981 # this will be overridden with pass_all, but let us keep it just in case
3982 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3983 ;;
3984 *)
3985 case $LD in
3986 *-32|*"-32 ") libmagic=32-bit;;
3987 *-n32|*"-n32 ") libmagic=N32;;
3988 *-64|*"-64 ") libmagic=64-bit;;
3989 *) libmagic=never-match;;
3990 esac
3991 # this will be overridden with pass_all, but let us keep it just in case
3992 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3993 ;;
3994 esac
3995 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3996 lt_cv_deplibs_check_method=pass_all
3997 ;;
3998
3999# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004000linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004001 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004002 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004003 lt_cv_deplibs_check_method=pass_all ;;
4004 *)
4005 # glibc up to 2.1.1 does not perform some relocations on ARM
4006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4007 esac
4008 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4009 ;;
4010
4011netbsd*)
4012 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004014 else
John Criswell47fdd832003-07-14 16:52:07 +00004015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004016 fi
4017 ;;
4018
4019newos6*)
4020 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4021 lt_cv_file_magic_cmd=/usr/bin/file
4022 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4023 ;;
4024
John Criswell47fdd832003-07-14 16:52:07 +00004025nto-qnx)
4026 lt_cv_deplibs_check_method=unknown
4027 ;;
4028
John Criswell7a73b802003-06-30 21:59:07 +00004029openbsd*)
4030 lt_cv_file_magic_cmd=/usr/bin/file
4031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4034 else
4035 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4036 fi
4037 ;;
4038
4039osf3* | osf4* | osf5*)
4040 # this will be overridden with pass_all, but let us keep it just in case
4041 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4042 lt_cv_file_magic_test_file=/shlib/libc.so
4043 lt_cv_deplibs_check_method=pass_all
4044 ;;
4045
4046sco3.2v5*)
4047 lt_cv_deplibs_check_method=pass_all
4048 ;;
4049
4050solaris*)
4051 lt_cv_deplibs_check_method=pass_all
4052 lt_cv_file_magic_test_file=/lib/libc.so
4053 ;;
4054
John Criswell7a73b802003-06-30 21:59:07 +00004055sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4056 case $host_vendor in
4057 motorola)
4058 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]'
4059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4060 ;;
4061 ncr)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064 sequent)
4065 lt_cv_file_magic_cmd='/bin/file'
4066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4067 ;;
4068 sni)
4069 lt_cv_file_magic_cmd='/bin/file'
4070 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4071 lt_cv_file_magic_test_file=/lib/libc.so
4072 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004073 siemens)
4074 lt_cv_deplibs_check_method=pass_all
4075 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004076 esac
4077 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004078
4079sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4080 lt_cv_deplibs_check_method=pass_all
4081 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004082esac
4083
4084fi
4085echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4086echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4087file_magic_cmd=$lt_cv_file_magic_cmd
4088deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004089test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004090
4091
4092
4093
John Criswell47fdd832003-07-14 16:52:07 +00004094# If no C compiler was specified, use CC.
4095LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004096
John Criswell47fdd832003-07-14 16:52:07 +00004097# Allow CC to be a program name with arguments.
4098compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004099
John Criswell47fdd832003-07-14 16:52:07 +00004100# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4101if test "${enable_libtool_lock+set}" = set; then
4102 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004103
John Criswell47fdd832003-07-14 16:52:07 +00004104fi;
4105test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004106
John Criswell47fdd832003-07-14 16:52:07 +00004107# Some flags need to be propagated to the compiler or linker for good
4108# libtool support.
4109case $host in
4110ia64-*-hpux*)
4111 # Find out which ABI we are using.
4112 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004118 case `/usr/bin/file conftest.$ac_objext` in
4119 *ELF-32*)
4120 HPUX_IA64_MODE="32"
4121 ;;
4122 *ELF-64*)
4123 HPUX_IA64_MODE="64"
4124 ;;
4125 esac
4126 fi
4127 rm -rf conftest*
4128 ;;
4129*-*-irix6*)
4130 # Find out which ABI we are using.
John Criswelld9cd1442003-09-09 20:52:17 +00004131 echo '#line 4131 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004136 (exit $ac_status); }; then
4137 if test "$lt_cv_prog_gnu_ld" = yes; then
4138 case `/usr/bin/file conftest.$ac_objext` in
4139 *32-bit*)
4140 LD="${LD-ld} -melf32bsmip"
4141 ;;
4142 *N32*)
4143 LD="${LD-ld} -melf32bmipn32"
4144 ;;
4145 *64-bit*)
4146 LD="${LD-ld} -melf64bmip"
4147 ;;
4148 esac
4149 else
4150 case `/usr/bin/file conftest.$ac_objext` in
4151 *32-bit*)
4152 LD="${LD-ld} -32"
4153 ;;
4154 *N32*)
4155 LD="${LD-ld} -n32"
4156 ;;
4157 *64-bit*)
4158 LD="${LD-ld} -64"
4159 ;;
4160 esac
4161 fi
4162 fi
4163 rm -rf conftest*
4164 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004165
John Criswell47fdd832003-07-14 16:52:07 +00004166x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4167 # Find out which ABI we are using.
4168 echo 'int i;' > conftest.$ac_ext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; then
4174 case "`/usr/bin/file conftest.o`" in
4175 *32-bit*)
4176 case $host in
4177 x86_64-*linux*)
4178 LD="${LD-ld} -m elf_i386"
4179 ;;
4180 ppc64-*linux*)
4181 LD="${LD-ld} -m elf32ppclinux"
4182 ;;
4183 s390x-*linux*)
4184 LD="${LD-ld} -m elf_s390"
4185 ;;
4186 sparc64-*linux*)
4187 LD="${LD-ld} -m elf32_sparc"
4188 ;;
4189 esac
4190 ;;
4191 *64-bit*)
4192 case $host in
4193 x86_64-*linux*)
4194 LD="${LD-ld} -m elf_x86_64"
4195 ;;
4196 ppc*-*linux*|powerpc*-*linux*)
4197 LD="${LD-ld} -m elf64ppc"
4198 ;;
4199 s390*-*linux*)
4200 LD="${LD-ld} -m elf64_s390"
4201 ;;
4202 sparc*-*linux*)
4203 LD="${LD-ld} -m elf64_sparc"
4204 ;;
4205 esac
4206 ;;
4207 esac
4208 fi
4209 rm -rf conftest*
4210 ;;
4211
4212*-*-sco3.2v5*)
4213 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4214 SAVE_CFLAGS="$CFLAGS"
4215 CFLAGS="$CFLAGS -belf"
4216 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4217echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4218if test "${lt_cv_cc_needs_belf+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227 cat >conftest.$ac_ext <<_ACEOF
4228#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004229#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00004230
John Criswelld9cd1442003-09-09 20:52:17 +00004231#ifdef F77_DUMMY_MAIN
4232# ifdef __cplusplus
4233 extern "C"
4234# endif
4235 int F77_DUMMY_MAIN() { return 1; }
4236#endif
John Criswell47fdd832003-07-14 16:52:07 +00004237int
4238main ()
John Criswell7a73b802003-06-30 21:59:07 +00004239{
John Criswell7a73b802003-06-30 21:59:07 +00004240
John Criswell47fdd832003-07-14 16:52:07 +00004241 ;
4242 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004243}
John Criswell47fdd832003-07-14 16:52:07 +00004244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00004247 (eval $ac_link) 2>&5
4248 ac_status=$?
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004250 (exit $ac_status); } &&
4251 { ac_try='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004258else
John Criswell47fdd832003-07-14 16:52:07 +00004259 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004260cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004261lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004262fi
John Criswell47fdd832003-07-14 16:52:07 +00004263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264 ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
John Criswell7a73b802003-06-30 21:59:07 +00004270fi
John Criswell47fdd832003-07-14 16:52:07 +00004271echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4272echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4273 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4274 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4275 CFLAGS="$SAVE_CFLAGS"
4276 fi
4277 ;;
4278
4279esac
4280
4281need_locks="$enable_libtool_lock"
4282
John Criswell7a73b802003-06-30 21:59:07 +00004283
4284
4285echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4286echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4287if test "${ac_cv_header_stdc+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290 cat >conftest.$ac_ext <<_ACEOF
4291#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004292#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004293#include <stdlib.h>
4294#include <stdarg.h>
4295#include <string.h>
4296#include <float.h>
4297
4298_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +00004299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004301 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004302 egrep -v '^ *\+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004306 (exit $ac_status); } >/dev/null; then
4307 if test -s conftest.err; then
4308 ac_cpp_err=$ac_c_preproc_warn_flag
4309 else
4310 ac_cpp_err=
4311 fi
4312else
4313 ac_cpp_err=yes
4314fi
4315if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +00004316 ac_cv_header_stdc=yes
4317else
4318 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004319 cat conftest.$ac_ext >&5
4320 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004321fi
John Criswelld9cd1442003-09-09 20:52:17 +00004322rm -f conftest.err conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004323
4324if test $ac_cv_header_stdc = yes; then
4325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4326 cat >conftest.$ac_ext <<_ACEOF
4327#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004328#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004329#include <string.h>
4330
4331_ACEOF
4332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +00004333 egrep "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004334 :
4335else
4336 ac_cv_header_stdc=no
4337fi
4338rm -f conftest*
4339
4340fi
4341
4342if test $ac_cv_header_stdc = yes; then
4343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4344 cat >conftest.$ac_ext <<_ACEOF
4345#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004346#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004347#include <stdlib.h>
4348
4349_ACEOF
4350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +00004351 egrep "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004352 :
4353else
4354 ac_cv_header_stdc=no
4355fi
4356rm -f conftest*
4357
4358fi
4359
4360if test $ac_cv_header_stdc = yes; then
4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362 if test "$cross_compiling" = yes; then
4363 :
4364else
4365 cat >conftest.$ac_ext <<_ACEOF
4366#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004367#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004368#include <ctype.h>
4369#if ((' ' & 0x0FF) == 0x020)
4370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372#else
John Criswelld9cd1442003-09-09 20:52:17 +00004373# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +00004374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377#endif
4378
4379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380int
4381main ()
4382{
4383 int i;
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4387 exit(2);
4388 exit (0);
4389}
4390_ACEOF
4391rm -f conftest$ac_exeext
4392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 :
4403else
4404 echo "$as_me: program exited with status $ac_status" >&5
4405echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004406cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00004407( exit $ac_status )
4408ac_cv_header_stdc=no
4409fi
John Criswelld9cd1442003-09-09 20:52:17 +00004410rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004411fi
4412fi
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416if test $ac_cv_header_stdc = yes; then
4417
4418cat >>confdefs.h <<\_ACEOF
4419#define STDC_HEADERS 1
4420_ACEOF
4421
4422fi
4423
4424# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435 inttypes.h stdint.h unistd.h
4436do
4437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438echo "$as_me:$LINENO: checking for $ac_header" >&5
4439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443 cat >conftest.$ac_ext <<_ACEOF
4444#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004445#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004446$ac_includes_default
4447
4448#include <$ac_header>
4449_ACEOF
4450rm -f conftest.$ac_objext
4451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 eval "$as_ac_Header=yes"
4463else
4464 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004465cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00004466eval "$as_ac_Header=no"
4467fi
4468rm -f conftest.$ac_objext conftest.$ac_ext
4469fi
4470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475_ACEOF
4476
4477fi
4478
4479done
4480
4481
4482
4483for ac_header in dlfcn.h
4484do
4485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491fi
4492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4494else
4495 # Is the header compilable?
4496echo "$as_me:$LINENO: checking $ac_header usability" >&5
4497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4498cat >conftest.$ac_ext <<_ACEOF
4499#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004500#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004501$ac_includes_default
4502#include <$ac_header>
4503_ACEOF
4504rm -f conftest.$ac_objext
4505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -s conftest.$ac_objext'
4511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 (eval $ac_try) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; }; then
4516 ac_header_compiler=yes
4517else
4518 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004519cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00004520ac_header_compiler=no
4521fi
4522rm -f conftest.$ac_objext conftest.$ac_ext
4523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524echo "${ECHO_T}$ac_header_compiler" >&6
4525
4526# Is the header present?
4527echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4529cat >conftest.$ac_ext <<_ACEOF
4530#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004531#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00004532#include <$ac_header>
4533_ACEOF
4534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4536 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004537 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null; then
4542 if test -s conftest.err; then
4543 ac_cpp_err=$ac_c_preproc_warn_flag
4544 else
4545 ac_cpp_err=
4546 fi
4547else
4548 ac_cpp_err=yes
4549fi
4550if test -z "$ac_cpp_err"; then
4551 ac_header_preproc=yes
4552else
4553 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004554 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00004555 ac_header_preproc=no
4556fi
4557rm -f conftest.err conftest.$ac_ext
4558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4559echo "${ECHO_T}$ac_header_preproc" >&6
4560
4561# So? What about this header?
4562case $ac_header_compiler:$ac_header_preproc in
4563 yes:no )
4564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004567echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +00004568 no:yes )
4569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +00004575esac
4576echo "$as_me:$LINENO: checking for $ac_header" >&5
4577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 eval "$as_ac_Header=$ac_header_preproc"
4582fi
4583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4585
4586fi
4587if test `eval echo '${'$as_ac_Header'}'` = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590_ACEOF
4591
4592fi
4593
4594done
4595
John Criswell47fdd832003-07-14 16:52:07 +00004596ac_ext=cc
4597ac_cpp='$CXXCPP $CPPFLAGS'
4598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4601echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4602echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4603if test -z "$CXXCPP"; then
4604 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
John Criswell47fdd832003-07-14 16:52:07 +00004607 # Double quotes because CXXCPP needs to be expanded
4608 for CXXCPP in "$CXX -E" "/lib/cpp"
4609 do
4610 ac_preproc_ok=false
4611for ac_cxx_preproc_warn_flag in '' yes
4612do
4613 # Use a header file that comes with gcc, so configuring glibc
4614 # with a fresh cross-compiler works.
4615 # On the NeXT, cc -E runs the code through the compiler's parser,
4616 # not just through cpp. "Syntax error" is here to catch this case.
4617 cat >conftest.$ac_ext <<_ACEOF
4618#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004619#include "confdefs.h"
4620#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +00004621 Syntax error
4622_ACEOF
4623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004626 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null; then
4631 if test -s conftest.err; then
4632 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004633 else
John Criswell47fdd832003-07-14 16:52:07 +00004634 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004635 fi
John Criswell47fdd832003-07-14 16:52:07 +00004636else
4637 ac_cpp_err=yes
4638fi
4639if test -z "$ac_cpp_err"; then
4640 :
4641else
4642 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004643 cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004644 # Broken: fails on valid input.
4645continue
4646fi
4647rm -f conftest.err conftest.$ac_ext
4648
4649 # OK, works on sane cases. Now check whether non-existent headers
4650 # can be detected and how.
4651 cat >conftest.$ac_ext <<_ACEOF
4652#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004653#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00004654#include <ac_nonexistent.h>
4655_ACEOF
4656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4658 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004659 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } >/dev/null; then
4664 if test -s conftest.err; then
4665 ac_cpp_err=$ac_cxx_preproc_warn_flag
4666 else
4667 ac_cpp_err=
4668 fi
4669else
4670 ac_cpp_err=yes
4671fi
4672if test -z "$ac_cpp_err"; then
4673 # Broken: success on invalid input.
4674continue
4675else
4676 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004677 cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004678 # Passes both tests.
4679ac_preproc_ok=:
4680break
4681fi
4682rm -f conftest.err conftest.$ac_ext
4683
4684done
4685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686rm -f conftest.err conftest.$ac_ext
4687if $ac_preproc_ok; then
4688 break
John Criswell7a73b802003-06-30 21:59:07 +00004689fi
4690
John Criswell47fdd832003-07-14 16:52:07 +00004691 done
4692 ac_cv_prog_CXXCPP=$CXXCPP
4693
4694fi
4695 CXXCPP=$ac_cv_prog_CXXCPP
4696else
4697 ac_cv_prog_CXXCPP=$CXXCPP
4698fi
4699echo "$as_me:$LINENO: result: $CXXCPP" >&5
4700echo "${ECHO_T}$CXXCPP" >&6
4701ac_preproc_ok=false
4702for ac_cxx_preproc_warn_flag in '' yes
4703do
4704 # Use a header file that comes with gcc, so configuring glibc
4705 # with a fresh cross-compiler works.
4706 # On the NeXT, cc -E runs the code through the compiler's parser,
4707 # not just through cpp. "Syntax error" is here to catch this case.
4708 cat >conftest.$ac_ext <<_ACEOF
4709#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004710#include "confdefs.h"
4711#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +00004712 Syntax error
4713_ACEOF
4714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004717 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004718 rm -f conftest.er1
4719 cat conftest.err >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev/null; then
4722 if test -s conftest.err; then
4723 ac_cpp_err=$ac_cxx_preproc_warn_flag
4724 else
4725 ac_cpp_err=
4726 fi
4727else
4728 ac_cpp_err=yes
4729fi
4730if test -z "$ac_cpp_err"; then
4731 :
4732else
4733 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004734 cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004735 # Broken: fails on valid input.
4736continue
4737fi
4738rm -f conftest.err conftest.$ac_ext
4739
4740 # OK, works on sane cases. Now check whether non-existent headers
4741 # can be detected and how.
4742 cat >conftest.$ac_ext <<_ACEOF
4743#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00004744#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00004745#include <ac_nonexistent.h>
4746_ACEOF
4747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +00004750 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } >/dev/null; then
4755 if test -s conftest.err; then
4756 ac_cpp_err=$ac_cxx_preproc_warn_flag
4757 else
4758 ac_cpp_err=
4759 fi
4760else
4761 ac_cpp_err=yes
4762fi
4763if test -z "$ac_cpp_err"; then
4764 # Broken: success on invalid input.
4765continue
4766else
4767 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004768 cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004769 # Passes both tests.
4770ac_preproc_ok=:
4771break
4772fi
4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779 :
4780else
John Criswelld9cd1442003-09-09 20:52:17 +00004781 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4782echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004783 { (exit 1); exit 1; }; }
4784fi
4785
4786ac_ext=cc
4787ac_cpp='$CXXCPP $CPPFLAGS'
4788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791
4792
4793ac_ext=f
4794ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797if test -n "$ac_tool_prefix"; then
John Criswelld9cd1442003-09-09 20:52:17 +00004798 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
John Criswell47fdd832003-07-14 16:52:07 +00004799 do
4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802echo "$as_me:$LINENO: checking for $ac_word" >&5
4803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804if test "${ac_cv_prog_F77+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807 if test -n "$F77"; then
4808 ac_cv_prog_F77="$F77" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821done
4822done
4823
4824fi
4825fi
4826F77=$ac_cv_prog_F77
4827if test -n "$F77"; then
4828 echo "$as_me:$LINENO: result: $F77" >&5
4829echo "${ECHO_T}$F77" >&6
4830else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833fi
4834
4835 test -n "$F77" && break
4836 done
4837fi
4838if test -z "$F77"; then
4839 ac_ct_F77=$F77
John Criswelld9cd1442003-09-09 20:52:17 +00004840 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
John Criswell47fdd832003-07-14 16:52:07 +00004841do
4842 # Extract the first word of "$ac_prog", so it can be a program name with args.
4843set dummy $ac_prog; ac_word=$2
4844echo "$as_me:$LINENO: checking for $ac_word" >&5
4845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849 if test -n "$ac_ct_F77"; then
4850 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_prog_ac_ct_F77="$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4862 fi
4863done
4864done
4865
4866fi
4867fi
4868ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869if test -n "$ac_ct_F77"; then
4870 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871echo "${ECHO_T}$ac_ct_F77" >&6
4872else
4873 echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875fi
4876
4877 test -n "$ac_ct_F77" && break
4878done
4879
4880 F77=$ac_ct_F77
4881fi
4882
4883
4884# Provide some information about the compiler.
John Criswelld9cd1442003-09-09 20:52:17 +00004885echo "$as_me:4885:" \
John Criswell47fdd832003-07-14 16:52:07 +00004886 "checking for Fortran 77 compiler version" >&5
4887ac_compiler=`set X $ac_compile; echo $2`
4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889 (eval $ac_compiler --version </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894 (eval $ac_compiler -v </dev/null >&5) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }
4898{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899 (eval $ac_compiler -V </dev/null >&5) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }
4903
4904# If we don't use `.F' as extension, the preprocessor is not run on the
4905# input file.
4906ac_save_ext=$ac_ext
4907ac_ext=F
4908echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 program main
4915#ifndef __GNUC__
4916 choke me
4917#endif
4918
4919 end
4920_ACEOF
4921rm -f conftest.$ac_objext
4922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923 (eval $ac_compile) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_compiler_gnu=yes
4934else
4935 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004936cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004937ac_compiler_gnu=no
4938fi
4939rm -f conftest.$ac_objext conftest.$ac_ext
4940ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4941
4942fi
4943echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4944echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4945ac_ext=$ac_save_ext
4946G77=`test $ac_compiler_gnu = yes && echo yes`
4947ac_test_FFLAGS=${FFLAGS+set}
4948ac_save_FFLAGS=$FFLAGS
4949FFLAGS=
4950echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4951echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4952if test "${ac_cv_prog_f77_g+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 FFLAGS=-g
4956cat >conftest.$ac_ext <<_ACEOF
4957 program main
4958
4959 end
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest.$ac_objext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_prog_f77_g=yes
4974else
4975 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00004976cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00004977ac_cv_prog_f77_g=no
4978fi
4979rm -f conftest.$ac_objext conftest.$ac_ext
4980
4981fi
4982echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4983echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4984if test "$ac_test_FFLAGS" = set; then
4985 FFLAGS=$ac_save_FFLAGS
4986elif test $ac_cv_prog_f77_g = yes; then
4987 if test "$G77" = yes; then
4988 FFLAGS="-g -O2"
4989 else
4990 FFLAGS="-g"
4991 fi
4992else
4993 if test "$G77" = yes; then
4994 FFLAGS="-O2"
4995 else
4996 FFLAGS=
4997 fi
4998fi
4999ac_ext=c
5000ac_cpp='$CPP $CPPFLAGS'
5001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
5005
5006
5007# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5008
5009# find the maximum length of command line arguments
5010echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5011echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5012if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 i=0
5016 testring="ABCD"
5017
5018 case $build_os in
5019 msdosdjgpp*)
5020 # On DJGPP, this test can blow up pretty badly due to problems in libc
5021 # (any single argument exceeding 2000 bytes causes a buffer overrun
5022 # during glob expansion). Even if it were fixed, the result of this
5023 # check would be larger than it should be.
5024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5025 ;;
5026
5027 gnu*)
5028 # Under GNU Hurd, this test is not required because there is
5029 # no limit to the length of command line arguments.
5030 # Libtool will interpret -1 as no limit whatsoever
5031 lt_cv_sys_max_cmd_len=-1;
5032 ;;
5033
5034 cygwin* | mingw*)
5035 # On Win9x/ME, this test blows up -- it succeeds, but takes
5036 # about 5 minutes as the teststring grows exponentially.
5037 # Worse, since 9x/ME are not pre-emptively multitasking,
5038 # you end up with a "frozen" computer, even though with patience
5039 # the test eventually succeeds (with a max line length of 256k).
5040 # Instead, let's just punt: use the minimum linelength reported by
5041 # all of the supported platforms: 8192 (on NT/2K/XP).
5042 lt_cv_sys_max_cmd_len=8192;
5043 ;;
5044
5045 *)
5046 # If test is not a shell built-in, we'll probably end up computing a
5047 # maximum length that is only half of the actual maximum length, but
5048 # we can't tell.
5049 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5050 = "XX$testring") >/dev/null 2>&1 &&
5051 new_result=`expr "X$testring" : ".*" 2>&1` &&
5052 lt_cv_sys_max_cmd_len=$new_result &&
5053 test $i != 17 # 1/2 MB should be enough
5054 do
5055 i=`expr $i + 1`
5056 testring=$testring$testring
5057 done
5058 testring=
5059 # Add a significant safety factor because C++ compilers can tack on massive
5060 # amounts of additional arguments before passing them to the linker.
5061 # It appears as though 1/2 is a usable value.
5062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5063 ;;
5064 esac
5065
5066fi
5067
5068if test -n $lt_cv_sys_max_cmd_len ; then
5069 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5070echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5071else
5072 echo "$as_me:$LINENO: result: none" >&5
5073echo "${ECHO_T}none" >&6
5074fi
5075
5076
5077
5078
5079# Check for command to grab the raw symbol name followed by C symbol from nm.
5080echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5081echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5082if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085
5086# These are sane defaults that work on at least a few old systems.
5087# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5088
5089# Character class describing NM global symbol codes.
5090symcode='[BCDEGRST]'
5091
5092# Regexp to match symbols that can be accessed directly from C.
5093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5094
5095# Transform the above into a raw symbol and a C symbol.
5096symxfrm='\1 \2\3 \3'
5097
5098# Transform an extracted symbol line into a proper C declaration
5099lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5100
5101# Transform an extracted symbol line into symbol name and symbol address
5102lt_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'"
5103
5104# Define system-specific variables.
5105case $host_os in
5106aix*)
5107 symcode='[BCDT]'
5108 ;;
5109cygwin* | mingw* | pw32*)
5110 symcode='[ABCDGISTW]'
5111 ;;
5112hpux*) # Its linker distinguishes data from code symbols
5113 if test "$host_cpu" = ia64; then
5114 symcode='[ABCDEGRST]'
5115 fi
5116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5117 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'"
5118 ;;
5119irix* | nonstopux*)
5120 symcode='[BCDEGRST]'
5121 ;;
5122osf*)
5123 symcode='[BCDEGQRST]'
5124 ;;
5125solaris* | sysv5*)
5126 symcode='[BDT]'
5127 ;;
5128sysv4)
5129 symcode='[DFNSTU]'
5130 ;;
5131esac
5132
5133# Handle CRLF in mingw tool chain
5134opt_cr=
5135case $build_os in
5136mingw*)
5137 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5138 ;;
5139esac
5140
5141# If we're using GNU nm, then use its standard symbol codes.
5142case `$NM -V 2>&1` in
5143*GNU* | *'with BFD'*)
5144 symcode='[ABCDGISTW]' ;;
5145esac
5146
5147# Try without a prefix undercore, then with it.
5148for ac_symprfx in "" "_"; do
5149
5150 # Write the raw and C identifiers.
5151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5152
5153 # Check to see that the pipe works correctly.
5154 pipe_works=no
5155
5156 rm -f conftest*
5157 cat > conftest.$ac_ext <<EOF
5158#ifdef __cplusplus
5159extern "C" {
5160#endif
5161char nm_test_var;
5162void nm_test_func(){}
5163#ifdef __cplusplus
5164}
5165#endif
5166int main(){nm_test_var='a';nm_test_func();return(0);}
5167EOF
5168
5169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170 (eval $ac_compile) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; then
5174 # Now try to grab the symbols.
5175 nlist=conftest.nm
5176 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5177 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && test -s "$nlist"; then
5181 # Try sorting and uniquifying the output.
5182 if sort "$nlist" | uniq > "$nlist"T; then
5183 mv -f "$nlist"T "$nlist"
5184 else
5185 rm -f "$nlist"T
5186 fi
5187
5188 # Make sure that we snagged all the symbols we need.
5189 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5190 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5191 cat <<EOF > conftest.$ac_ext
5192#ifdef __cplusplus
5193extern "C" {
5194#endif
5195
5196EOF
5197 # Now generate the symbol file.
5198 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5199
5200 cat <<EOF >> conftest.$ac_ext
5201#if defined (__STDC__) && __STDC__
5202# define lt_ptr_t void *
5203#else
5204# define lt_ptr_t char *
5205# define const
5206#endif
5207
5208/* The mapping between symbol names and symbols. */
5209const struct {
5210 const char *name;
5211 lt_ptr_t address;
5212}
5213lt_preloaded_symbols[] =
5214{
5215EOF
5216 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5217 cat <<\EOF >> conftest.$ac_ext
5218 {0, (lt_ptr_t) 0}
5219};
5220
5221#ifdef __cplusplus
5222}
5223#endif
5224EOF
5225 # Now try linking the two files.
5226 mv conftest.$ac_objext conftstm.$ac_objext
5227 lt_save_LIBS="$LIBS"
5228 lt_save_CFLAGS="$CFLAGS"
5229 LIBS="conftstm.$ac_objext"
5230 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5236 pipe_works=yes
5237 fi
5238 LIBS="$lt_save_LIBS"
5239 CFLAGS="$lt_save_CFLAGS"
5240 else
5241 echo "cannot find nm_test_func in $nlist" >&5
5242 fi
5243 else
5244 echo "cannot find nm_test_var in $nlist" >&5
5245 fi
5246 else
5247 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5248 fi
5249 else
5250 echo "$progname: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5252 fi
5253 rm -f conftest* conftst*
5254
5255 # Do not use the global_symbol_pipe unless it works.
5256 if test "$pipe_works" = yes; then
5257 break
5258 else
5259 lt_cv_sys_global_symbol_pipe=
5260 fi
5261done
5262
5263fi
5264
5265if test -z "$lt_cv_sys_global_symbol_pipe"; then
5266 lt_cv_sys_global_symbol_to_cdecl=
5267fi
5268if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5269 echo "$as_me:$LINENO: result: failed" >&5
5270echo "${ECHO_T}failed" >&6
5271else
5272 echo "$as_me:$LINENO: result: ok" >&5
5273echo "${ECHO_T}ok" >&6
5274fi
5275
5276echo "$as_me:$LINENO: checking for objdir" >&5
5277echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5278if test "${lt_cv_objdir+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 rm -f .libs 2>/dev/null
5282mkdir .libs 2>/dev/null
5283if test -d .libs; then
5284 lt_cv_objdir=.libs
5285else
5286 # MS-DOS does not allow filenames that begin with a dot.
5287 lt_cv_objdir=_libs
5288fi
5289rmdir .libs 2>/dev/null
5290fi
5291echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5292echo "${ECHO_T}$lt_cv_objdir" >&6
5293objdir=$lt_cv_objdir
5294
5295
5296
5297
5298
5299case $host_os in
5300aix3*)
5301 # AIX sometimes has problems with the GCC collect2 program. For some
5302 # reason, if we set the COLLECT_NAMES environment variable, the problems
5303 # vanish in a puff of smoke.
5304 if test "X${COLLECT_NAMES+set}" != Xset; then
5305 COLLECT_NAMES=
5306 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005307 fi
5308 ;;
5309esac
5310
John Criswell47fdd832003-07-14 16:52:07 +00005311# Sed substitution that helps us do robust quoting. It backslashifies
5312# metacharacters that are still active within double-quoted strings.
5313Xsed='sed -e s/^X//'
5314sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5315
5316# Same as above, but do not quote variable references.
5317double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5318
5319# Sed substitution to delay expansion of an escaped shell variable in a
5320# double_quote_subst'ed string.
5321delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5322
5323# Sed substitution to avoid accidental globbing in evaled expressions
5324no_glob_subst='s/\*/\\\*/g'
5325
5326# Constants:
5327rm="rm -f"
5328
5329# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005330default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005331can_build_shared=yes
5332
5333# All known linkers require a `.a' archive for static linking (except M$VC,
5334# which needs '.lib').
5335libext=a
5336ltmain="$ac_aux_dir/ltmain.sh"
5337ofile="$default_ofile"
5338with_gnu_ld="$lt_cv_prog_gnu_ld"
5339
5340if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5342set dummy ${ac_tool_prefix}ar; ac_word=$2
5343echo "$as_me:$LINENO: checking for $ac_word" >&5
5344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345if test "${ac_cv_prog_AR+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 if test -n "$AR"; then
5349 ac_cv_prog_AR="$AR" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_prog_AR="${ac_tool_prefix}ar"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364
5365fi
5366fi
5367AR=$ac_cv_prog_AR
5368if test -n "$AR"; then
5369 echo "$as_me:$LINENO: result: $AR" >&5
5370echo "${ECHO_T}$AR" >&6
5371else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374fi
5375
5376fi
5377if test -z "$ac_cv_prog_AR"; then
5378 ac_ct_AR=$AR
5379 # Extract the first word of "ar", so it can be a program name with args.
5380set dummy ar; ac_word=$2
5381echo "$as_me:$LINENO: checking for $ac_word" >&5
5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386 if test -n "$ac_ct_AR"; then
5387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5388else
5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_AR="ar"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400done
5401done
5402
5403 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5404fi
5405fi
5406ac_ct_AR=$ac_cv_prog_ac_ct_AR
5407if test -n "$ac_ct_AR"; then
5408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5409echo "${ECHO_T}$ac_ct_AR" >&6
5410else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413fi
5414
5415 AR=$ac_ct_AR
5416else
5417 AR="$ac_cv_prog_AR"
5418fi
5419
John Criswell7a73b802003-06-30 21:59:07 +00005420if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5422set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5423echo "$as_me:$LINENO: checking for $ac_word" >&5
5424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425if test "${ac_cv_prog_RANLIB+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 if test -n "$RANLIB"; then
5429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442done
5443done
5444
5445fi
5446fi
5447RANLIB=$ac_cv_prog_RANLIB
5448if test -n "$RANLIB"; then
5449 echo "$as_me:$LINENO: result: $RANLIB" >&5
5450echo "${ECHO_T}$RANLIB" >&6
5451else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454fi
5455
5456fi
5457if test -z "$ac_cv_prog_RANLIB"; then
5458 ac_ct_RANLIB=$RANLIB
5459 # Extract the first word of "ranlib", so it can be a program name with args.
5460set dummy ranlib; ac_word=$2
5461echo "$as_me:$LINENO: checking for $ac_word" >&5
5462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 if test -n "$ac_ct_RANLIB"; then
5467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_RANLIB="ranlib"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480done
5481done
5482
5483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5484fi
5485fi
5486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5487if test -n "$ac_ct_RANLIB"; then
5488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5489echo "${ECHO_T}$ac_ct_RANLIB" >&6
5490else
5491 echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6
5493fi
5494
5495 RANLIB=$ac_ct_RANLIB
5496else
5497 RANLIB="$ac_cv_prog_RANLIB"
5498fi
5499
5500if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5502set dummy ${ac_tool_prefix}strip; ac_word=$2
5503echo "$as_me:$LINENO: checking for $ac_word" >&5
5504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505if test "${ac_cv_prog_STRIP+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508 if test -n "$STRIP"; then
5509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523done
5524
5525fi
5526fi
5527STRIP=$ac_cv_prog_STRIP
5528if test -n "$STRIP"; then
5529 echo "$as_me:$LINENO: result: $STRIP" >&5
5530echo "${ECHO_T}$STRIP" >&6
5531else
5532 echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534fi
5535
5536fi
5537if test -z "$ac_cv_prog_STRIP"; then
5538 ac_ct_STRIP=$STRIP
5539 # Extract the first word of "strip", so it can be a program name with args.
5540set dummy strip; ac_word=$2
5541echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546 if test -n "$ac_ct_STRIP"; then
5547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_ac_ct_STRIP="strip"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561done
5562
5563 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5564fi
5565fi
5566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567if test -n "$ac_ct_STRIP"; then
5568 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5569echo "${ECHO_T}$ac_ct_STRIP" >&6
5570else
5571 echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
5573fi
5574
5575 STRIP=$ac_ct_STRIP
5576else
5577 STRIP="$ac_cv_prog_STRIP"
5578fi
5579
5580
John Criswell7a73b802003-06-30 21:59:07 +00005581old_CC="$CC"
5582old_CFLAGS="$CFLAGS"
5583
5584# Set sane defaults for various variables
5585test -z "$AR" && AR=ar
5586test -z "$AR_FLAGS" && AR_FLAGS=cru
5587test -z "$AS" && AS=as
5588test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005589test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005590test -z "$DLLTOOL" && DLLTOOL=dlltool
5591test -z "$LD" && LD=ld
5592test -z "$LN_S" && LN_S="ln -s"
5593test -z "$MAGIC_CMD" && MAGIC_CMD=file
5594test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005595test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005596test -z "$OBJDUMP" && OBJDUMP=objdump
5597test -z "$RANLIB" && RANLIB=:
5598test -z "$STRIP" && STRIP=:
5599test -z "$ac_objext" && ac_objext=o
5600
John Criswell7a73b802003-06-30 21:59:07 +00005601# Determine commands to create old-style static archives.
5602old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5603old_postinstall_cmds='chmod 644 $oldlib'
5604old_postuninstall_cmds=
5605
5606if test -n "$RANLIB"; then
5607 case $host_os in
5608 openbsd*)
5609 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5610 ;;
5611 *)
5612 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5613 ;;
5614 esac
5615 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5616fi
5617
John Criswell47fdd832003-07-14 16:52:07 +00005618# Only perform the check for file, if the check method requires it
5619case $deplibs_check_method in
5620file_magic*)
5621 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5622 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5623echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5624if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005626else
John Criswell47fdd832003-07-14 16:52:07 +00005627 case $MAGIC_CMD in
5628[\\/*] | ?:[\\/]*)
5629 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5630 ;;
5631*)
5632 lt_save_MAGIC_CMD="$MAGIC_CMD"
5633 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5634 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5635 for ac_dir in $ac_dummy; do
5636 IFS="$lt_save_ifs"
5637 test -z "$ac_dir" && ac_dir=.
5638 if test -f $ac_dir/${ac_tool_prefix}file; then
5639 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5640 if test -n "$file_magic_test_file"; then
5641 case $deplibs_check_method in
5642 "file_magic "*)
5643 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5645 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5646 $EGREP "$file_magic_regex" > /dev/null; then
5647 :
5648 else
5649 cat <<EOF 1>&2
5650
5651*** Warning: the command libtool uses to detect shared libraries,
5652*** $file_magic_cmd, produces output that libtool cannot recognize.
5653*** The result is that libtool may fail to recognize shared libraries
5654*** as such. This will affect the creation of libtool libraries that
5655*** depend on shared libraries, but programs linked with such libtool
5656*** libraries will work regardless of this problem. Nevertheless, you
5657*** may want to report the problem to your system manager and/or to
5658*** bug-libtool@gnu.org
5659
5660EOF
5661 fi ;;
5662 esac
5663 fi
5664 break
5665 fi
5666 done
5667 IFS="$lt_save_ifs"
5668 MAGIC_CMD="$lt_save_MAGIC_CMD"
5669 ;;
5670esac
John Criswell7a73b802003-06-30 21:59:07 +00005671fi
John Criswell7a73b802003-06-30 21:59:07 +00005672
John Criswell47fdd832003-07-14 16:52:07 +00005673MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5674if test -n "$MAGIC_CMD"; then
5675 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5676echo "${ECHO_T}$MAGIC_CMD" >&6
5677else
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
John Criswell7a73b802003-06-30 21:59:07 +00005681
John Criswell47fdd832003-07-14 16:52:07 +00005682if test -z "$lt_cv_path_MAGIC_CMD"; then
5683 if test -n "$ac_tool_prefix"; then
5684 echo "$as_me:$LINENO: checking for file" >&5
5685echo $ECHO_N "checking for file... $ECHO_C" >&6
5686if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 case $MAGIC_CMD in
5690[\\/*] | ?:[\\/]*)
5691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5692 ;;
5693*)
5694 lt_save_MAGIC_CMD="$MAGIC_CMD"
5695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5697 for ac_dir in $ac_dummy; do
5698 IFS="$lt_save_ifs"
5699 test -z "$ac_dir" && ac_dir=.
5700 if test -f $ac_dir/file; then
5701 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5702 if test -n "$file_magic_test_file"; then
5703 case $deplibs_check_method in
5704 "file_magic "*)
5705 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5708 $EGREP "$file_magic_regex" > /dev/null; then
5709 :
5710 else
5711 cat <<EOF 1>&2
5712
5713*** Warning: the command libtool uses to detect shared libraries,
5714*** $file_magic_cmd, produces output that libtool cannot recognize.
5715*** The result is that libtool may fail to recognize shared libraries
5716*** as such. This will affect the creation of libtool libraries that
5717*** depend on shared libraries, but programs linked with such libtool
5718*** libraries will work regardless of this problem. Nevertheless, you
5719*** may want to report the problem to your system manager and/or to
5720*** bug-libtool@gnu.org
5721
5722EOF
5723 fi ;;
5724 esac
5725 fi
5726 break
5727 fi
5728 done
5729 IFS="$lt_save_ifs"
5730 MAGIC_CMD="$lt_save_MAGIC_CMD"
5731 ;;
5732esac
5733fi
5734
5735MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5736if test -n "$MAGIC_CMD"; then
5737 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5738echo "${ECHO_T}$MAGIC_CMD" >&6
5739else
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
5742fi
5743
5744 else
5745 MAGIC_CMD=:
5746 fi
5747fi
5748
5749 fi
5750 ;;
5751esac
5752
5753enable_dlopen=no
5754enable_win32_dll=no
5755
5756# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5757if test "${enable_libtool_lock+set}" = set; then
5758 enableval="$enable_libtool_lock"
5759
5760fi;
5761test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5762
John Criswell7a73b802003-06-30 21:59:07 +00005763
5764# Check whether --with-pic or --without-pic was given.
5765if test "${with_pic+set}" = set; then
5766 withval="$with_pic"
5767 pic_mode="$withval"
5768else
5769 pic_mode=default
5770fi;
5771test -z "$pic_mode" && pic_mode=default
5772
John Criswell47fdd832003-07-14 16:52:07 +00005773# Use C for the default configuration in the libtool script
5774tagname=
5775lt_save_CC="$CC"
5776ac_ext=c
5777ac_cpp='$CPP $CPPFLAGS'
5778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782
5783# Source file extension for C test sources.
5784ac_ext=c
5785
5786# Object file extension for compiled C test sources.
5787objext=o
5788objext=$objext
5789
5790# Code to be used in simple compile tests
5791lt_simple_compile_test_code="int some_variable = 0;\n"
5792
5793# Code to be used in simple link tests
5794lt_simple_link_test_code='int main(){return(0);}\n'
5795
5796
5797# If no C compiler was specified, use CC.
5798LTCC=${LTCC-"$CC"}
5799
5800# Allow CC to be a program name with arguments.
5801compiler=$CC
5802
5803
5804#
5805# Check for any special shared library compilation flags.
5806#
5807lt_prog_cc_shlib=
5808if test "$GCC" = no; then
5809 case $host_os in
5810 sco3.2v5*)
5811 lt_prog_cc_shlib='-belf'
5812 ;;
5813 esac
5814fi
5815if test -n "$lt_prog_cc_shlib"; then
5816 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5817echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5818 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5819 else
5820 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5821echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5822 lt_cv_prog_cc_can_build_shared=no
5823 fi
5824fi
5825
5826
5827#
5828# Check to make sure the static flag actually works.
5829#
5830echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5831echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5832if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
John Criswell47fdd832003-07-14 16:52:07 +00005835 lt_prog_compiler_static_works=no
5836 save_LDFLAGS="$LDFLAGS"
5837 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5838 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5840 # The compiler can only warn and ignore the option if not recognized
5841 # So say no if there are warnings
5842 if test -s conftest.err; then
5843 # Append any errors to the config.log.
5844 cat conftest.err 1>&5
5845 else
5846 lt_prog_compiler_static_works=yes
5847 fi
5848 fi
5849 $rm conftest*
5850 LDFLAGS="$save_LDFLAGS"
5851
5852fi
5853echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5854echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5855
5856if test x"$lt_prog_compiler_static_works" = xyes; then
5857 :
5858else
5859 lt_prog_compiler_static=
5860fi
5861
5862
5863
5864## CAVEAT EMPTOR:
5865## There is no encapsulation within the following macros, do not change
5866## the running order or otherwise move them around unless you know exactly
5867## what you are doing...
5868
5869lt_prog_compiler_no_builtin_flag=
5870
5871if test "$GCC" = yes; then
5872 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5873
5874 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5875echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5876if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 lt_cv_prog_compiler_rtti_exceptions=no
5880 ac_outfile=conftest.$ac_objext
5881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5882 lt_compiler_flag="-fno-rtti -fno-exceptions"
5883 # Insert the option either (1) after the last *FLAGS variable, or
5884 # (2) before a word containing "conftest.", or (3) at the end.
5885 # Note that $ac_compile itself does not contain backslashes and begins
5886 # with a dollar sign (not a hyphen), so the echo should work correctly.
5887 # The option is referenced via a variable to avoid confusing sed.
5888 lt_compile=`echo "$ac_compile" | $SED \
5889 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5891 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +00005892 (eval echo "\"\$as_me:5892: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005893 (eval "$lt_compile" 2>conftest.err)
5894 ac_status=$?
5895 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +00005896 echo "$as_me:5896: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005897 if (exit $ac_status) && test -s "$ac_outfile"; then
5898 # The compiler can only warn and ignore the option if not recognized
5899 # So say no if there are warnings
5900 if test ! -s conftest.err; then
5901 lt_cv_prog_compiler_rtti_exceptions=yes
5902 fi
5903 fi
5904 $rm conftest*
5905
5906fi
5907echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5908echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5909
5910if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5911 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5912else
5913 :
5914fi
5915
5916fi
5917
5918lt_prog_compiler_wl=
5919lt_prog_compiler_pic=
5920lt_prog_compiler_static=
5921
5922echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5923echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005924
5925 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005926 lt_prog_compiler_wl='-Wl,'
5927 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005928
5929 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005930 aix*)
5931 # All AIX code is PIC.
5932 if test "$host_cpu" = ia64; then
5933 # AIX 5 now supports IA64 processor
5934 lt_prog_compiler_static='-Bstatic'
5935 fi
John Criswell7a73b802003-06-30 21:59:07 +00005936 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005937
John Criswell7a73b802003-06-30 21:59:07 +00005938 amigaos*)
5939 # FIXME: we need at least 68020 code to build shared libraries, but
5940 # adding the `-m68020' flag to GCC prevents building anything better,
5941 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005942 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005943 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005944
5945 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005946 # PIC is the default for these OSes.
5947 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005948
5949 mingw* | pw32* | os2*)
5950 # This hack is so that the source file can tell whether it is being
5951 # built for inclusion in a dll (and should export symbols for example).
5952 lt_prog_compiler_pic='-DDLL_EXPORT'
5953 ;;
5954
John Criswell7a73b802003-06-30 21:59:07 +00005955 darwin* | rhapsody*)
5956 # PIC is the default on this platform
5957 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005958 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005959 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005960
5961 msdosdjgpp*)
5962 # Just because we use GCC doesn't mean we suddenly get shared libraries
5963 # on systems that don't support them.
5964 lt_prog_compiler_can_build_shared=no
5965 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005966 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005967
John Criswell7a73b802003-06-30 21:59:07 +00005968 sysv4*MP*)
5969 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005970 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005971 fi
5972 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005973
5974 hpux*)
5975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5976 # not for PA HP-UX.
5977 case "$host_cpu" in
5978 hppa*64*|ia64*)
5979 # +Z the default
5980 ;;
5981 *)
5982 lt_prog_compiler_pic='-fPIC'
5983 ;;
5984 esac
5985 ;;
5986
John Criswell7a73b802003-06-30 21:59:07 +00005987 *)
John Criswell47fdd832003-07-14 16:52:07 +00005988 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005989 ;;
5990 esac
5991 else
John Criswell47fdd832003-07-14 16:52:07 +00005992 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005993 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005994 aix*)
5995 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005996 if test "$host_cpu" = ia64; then
5997 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005998 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005999 else
John Criswell47fdd832003-07-14 16:52:07 +00006000 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006001 fi
6002 ;;
6003
John Criswell47fdd832003-07-14 16:52:07 +00006004 mingw* | pw32* | os2*)
6005 # This hack is so that the source file can tell whether it is being
6006 # built for inclusion in a dll (and should export symbols for example).
6007 lt_prog_compiler_pic='-DDLL_EXPORT'
6008 ;;
6009
John Criswell7a73b802003-06-30 21:59:07 +00006010 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006011 lt_prog_compiler_wl='-Wl,'
6012 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6013 # not for PA HP-UX.
6014 case "$host_cpu" in
6015 hppa*64*|ia64*)
6016 # +Z the default
6017 ;;
6018 *)
6019 lt_prog_compiler_pic='+Z'
6020 ;;
6021 esac
6022 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6023 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006024 ;;
6025
John Criswell47fdd832003-07-14 16:52:07 +00006026 irix5* | irix6* | nonstopux*)
6027 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006028 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006029 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006030 ;;
6031
6032 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006033 lt_prog_compiler_pic='-KPIC'
6034 lt_prog_compiler_static='-Bstatic'
6035 ;;
6036
6037 linux*)
6038 case $CC in
6039 icc|ecc)
6040 lt_prog_compiler_wl='-Wl,'
6041 lt_prog_compiler_pic='-KPIC'
6042 lt_prog_compiler_static='-static'
6043 ;;
6044 ccc)
6045 lt_prog_compiler_wl='-Wl,'
6046 # All Alpha code is PIC.
6047 lt_prog_compiler_static='-non_shared'
6048 ;;
6049 esac
John Criswell7a73b802003-06-30 21:59:07 +00006050 ;;
6051
6052 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006053 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006054 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006055 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006056 ;;
6057
6058 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006059 lt_prog_compiler_pic='-Kpic'
6060 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006061 ;;
6062
6063 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006064 lt_prog_compiler_wl='-Wl,'
6065 lt_prog_compiler_pic='-KPIC'
6066 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006067 ;;
6068
6069 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006070 lt_prog_compiler_wl='-Qoption ld '
6071 lt_prog_compiler_pic='-PIC'
6072 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006073 ;;
6074
6075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006076 lt_prog_compiler_wl='-Wl,'
6077 lt_prog_compiler_pic='-KPIC'
6078 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006079 ;;
6080
6081 sysv4*MP*)
6082 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006083 lt_prog_compiler_pic='-Kconform_pic'
6084 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006085 fi
6086 ;;
6087
John Criswell47fdd832003-07-14 16:52:07 +00006088 uts4*)
6089 lt_prog_compiler_pic='-pic'
6090 lt_prog_compiler_static='-Bstatic'
6091 ;;
6092
John Criswell7a73b802003-06-30 21:59:07 +00006093 *)
John Criswell47fdd832003-07-14 16:52:07 +00006094 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006095 ;;
6096 esac
6097 fi
6098
John Criswell47fdd832003-07-14 16:52:07 +00006099echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6100echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006101
John Criswell47fdd832003-07-14 16:52:07 +00006102#
6103# Check to make sure the PIC flag actually works.
6104#
6105if test -n "$lt_prog_compiler_pic"; then
6106 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6107echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6108if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110else
John Criswell47fdd832003-07-14 16:52:07 +00006111 lt_prog_compiler_pic_works=no
6112 ac_outfile=conftest.$ac_objext
6113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6115 # Insert the option either (1) after the last *FLAGS variable, or
6116 # (2) before a word containing "conftest.", or (3) at the end.
6117 # Note that $ac_compile itself does not contain backslashes and begins
6118 # with a dollar sign (not a hyphen), so the echo should work correctly.
6119 # The option is referenced via a variable to avoid confusing sed.
6120 lt_compile=`echo "$ac_compile" | $SED \
6121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6123 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +00006124 (eval echo "\"\$as_me:6124: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006125 (eval "$lt_compile" 2>conftest.err)
6126 ac_status=$?
6127 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +00006128 echo "$as_me:6128: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006129 if (exit $ac_status) && test -s "$ac_outfile"; then
6130 # The compiler can only warn and ignore the option if not recognized
6131 # So say no if there are warnings
6132 if test ! -s conftest.err; then
6133 lt_prog_compiler_pic_works=yes
6134 fi
6135 fi
6136 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006137
John Criswell47fdd832003-07-14 16:52:07 +00006138fi
6139echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6140echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006141
John Criswell47fdd832003-07-14 16:52:07 +00006142if test x"$lt_prog_compiler_pic_works" = xyes; then
6143 case $lt_prog_compiler_pic in
6144 "" | " "*) ;;
6145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6146 esac
John Criswell7a73b802003-06-30 21:59:07 +00006147else
John Criswell47fdd832003-07-14 16:52:07 +00006148 lt_prog_compiler_pic=
6149 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006150fi
6151
John Criswell7a73b802003-06-30 21:59:07 +00006152fi
John Criswell47fdd832003-07-14 16:52:07 +00006153case "$host_os" in
6154 # For platforms which do not support PIC, -DPIC is meaningless:
6155 *djgpp*)
6156 lt_prog_compiler_pic=
6157 ;;
6158 *)
6159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6160 ;;
6161esac
John Criswell7a73b802003-06-30 21:59:07 +00006162
John Criswell7a73b802003-06-30 21:59:07 +00006163echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6164echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006165if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
John Criswell47fdd832003-07-14 16:52:07 +00006168 lt_cv_prog_compiler_c_o=no
6169 $rm -r conftest 2>/dev/null
6170 mkdir conftest
6171 cd conftest
6172 mkdir out
6173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006174
John Criswell47fdd832003-07-14 16:52:07 +00006175 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6176 # that will create temporary files in the current directory regardless of
6177 # the output directory. Thus, making CWD read-only will cause this test
6178 # to fail, enabling locking or at least warning the user not to do parallel
6179 # builds.
6180 chmod -w .
6181
6182 lt_compiler_flag="-o out/conftest2.$ac_objext"
6183 # Insert the option either (1) after the last *FLAGS variable, or
6184 # (2) before a word containing "conftest.", or (3) at the end.
6185 # Note that $ac_compile itself does not contain backslashes and begins
6186 # with a dollar sign (not a hyphen), so the echo should work correctly.
6187 lt_compile=`echo "$ac_compile" | $SED \
6188 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6190 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +00006191 (eval echo "\"\$as_me:6191: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006192 (eval "$lt_compile" 2>out/conftest.err)
6193 ac_status=$?
6194 cat out/conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +00006195 echo "$as_me:6195: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006196 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6197 then
6198 # The compiler can only warn and ignore the option if not recognized
6199 # So say no if there are warnings
6200 if test ! -s out/conftest.err; then
6201 lt_cv_prog_compiler_c_o=yes
6202 fi
6203 fi
6204 chmod u+w .
6205 $rm conftest* out/*
6206 rmdir out
6207 cd ..
6208 rmdir conftest
6209 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006210
6211fi
John Criswell47fdd832003-07-14 16:52:07 +00006212echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6213echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006214
John Criswell7a73b802003-06-30 21:59:07 +00006215
John Criswell7a73b802003-06-30 21:59:07 +00006216hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006217if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006218 # do not overwrite the value of need_locks provided by the user
6219 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6220echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6221 hard_links=yes
6222 $rm conftest*
6223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224 touch conftest.a
6225 ln conftest.a conftest.b 2>&5 || hard_links=no
6226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6227 echo "$as_me:$LINENO: result: $hard_links" >&5
6228echo "${ECHO_T}$hard_links" >&6
6229 if test "$hard_links" = no; then
6230 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6231echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6232 need_locks=warn
6233 fi
6234else
6235 need_locks=no
6236fi
John Criswell7a73b802003-06-30 21:59:07 +00006237
John Criswell47fdd832003-07-14 16:52:07 +00006238echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6239echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6240
6241 runpath_var=
6242 allow_undefined_flag=
6243 enable_shared_with_static_runtimes=no
6244 archive_cmds=
6245 archive_expsym_cmds=
6246 old_archive_From_new_cmds=
6247 old_archive_from_expsyms_cmds=
6248 export_dynamic_flag_spec=
6249 whole_archive_flag_spec=
6250 thread_safe_flag_spec=
6251 hardcode_libdir_flag_spec=
6252 hardcode_libdir_flag_spec_ld=
6253 hardcode_libdir_separator=
6254 hardcode_direct=no
6255 hardcode_minus_L=no
6256 hardcode_shlibpath_var=unsupported
6257 link_all_deplibs=unknown
6258 hardcode_automatic=no
6259 module_cmds=
6260 module_expsym_cmds=
6261 always_export_symbols=no
6262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6263 # include_expsyms should be a list of space-separated symbols to be *always*
6264 # included in the symbol list
6265 include_expsyms=
6266 # exclude_expsyms can be an extended regexp of symbols to exclude
6267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6269 # as well as any symbol that contains `d'.
6270 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6272 # platforms (ab)use it in PIC code, but their linkers get confused if
6273 # the symbol is explicitly referenced. Since portable code cannot
6274 # rely on this symbol name, it's probably fine to never include it in
6275 # preloaded symbol tables.
6276 extract_expsyms_cmds=
6277
6278 case $host_os in
6279 cygwin* | mingw* | pw32*)
6280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6281 # When not using gcc, we currently assume that we are using
6282 # Microsoft Visual C++.
6283 if test "$GCC" != yes; then
6284 with_gnu_ld=no
6285 fi
6286 ;;
6287 openbsd*)
6288 with_gnu_ld=no
6289 ;;
6290 esac
6291
6292 ld_shlibs=yes
6293 if test "$with_gnu_ld" = yes; then
6294 # If archive_cmds runs LD, not CC, wlarc should be empty
6295 wlarc='${wl}'
6296
6297 # See if GNU ld supports shared libraries.
6298 case $host_os in
6299 aix3* | aix4* | aix5*)
6300 # On AIX/PPC, the GNU linker is very broken
6301 if test "$host_cpu" != ia64; then
6302 ld_shlibs=no
6303 cat <<EOF 1>&2
6304
6305*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6306*** to be unable to reliably create shared libraries on AIX.
6307*** Therefore, libtool is disabling shared libraries support. If you
6308*** really care for shared libraries, you may want to modify your PATH
6309*** so that a non-GNU linker is found, and then restart.
6310
6311EOF
6312 fi
6313 ;;
6314
6315 amigaos*)
6316 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)'
6317 hardcode_libdir_flag_spec='-L$libdir'
6318 hardcode_minus_L=yes
6319
6320 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6321 # that the semantics of dynamic libraries on AmigaOS, at least up
6322 # to version 4, is to share data among multiple programs linked
6323 # with the same dynamic library. Since this doesn't match the
6324 # behavior of shared libraries on other platforms, we can't use
6325 # them.
6326 ld_shlibs=no
6327 ;;
6328
6329 beos*)
6330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6331 allow_undefined_flag=unsupported
6332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6333 # support --undefined. This deserves some investigation. FIXME
6334 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6335 else
6336 ld_shlibs=no
6337 fi
6338 ;;
6339
6340 cygwin* | mingw* | pw32*)
6341 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6342 # as there is no search path for DLLs.
6343 hardcode_libdir_flag_spec='-L$libdir'
6344 allow_undefined_flag=unsupported
6345 always_export_symbols=no
6346 enable_shared_with_static_runtimes=yes
6347 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6348
6349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6351 # If the export-symbols file already is a .def file (1st line
6352 # is EXPORTS), use it as is; otherwise, prepend...
6353 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6354 cp $export_symbols $output_objdir/$soname.def;
6355 else
6356 echo EXPORTS > $output_objdir/$soname.def;
6357 cat $export_symbols >> $output_objdir/$soname.def;
6358 fi~
6359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6360 else
6361 ld_shlibs=no
6362 fi
6363 ;;
6364
6365 netbsd*)
6366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6368 wlarc=
6369 else
6370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6372 fi
6373 ;;
6374
6375 solaris* | sysv5*)
6376 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6377 ld_shlibs=no
6378 cat <<EOF 1>&2
6379
6380*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6381*** create shared libraries on Solaris systems. Therefore, libtool
6382*** is disabling shared libraries support. We urge you to upgrade GNU
6383*** binutils to release 2.9.1 or newer. Another option is to modify
6384*** your PATH or compiler configuration so that the native linker is
6385*** used, and then restart.
6386
6387EOF
6388 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6391 else
6392 ld_shlibs=no
6393 fi
6394 ;;
6395
6396 sunos4*)
6397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6398 wlarc=
6399 hardcode_direct=yes
6400 hardcode_shlibpath_var=no
6401 ;;
6402
6403 *)
6404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6407 else
6408 ld_shlibs=no
6409 fi
6410 ;;
6411 esac
6412
6413 if test "$ld_shlibs" = yes; then
6414 runpath_var=LD_RUN_PATH
6415 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6416 export_dynamic_flag_spec='${wl}--export-dynamic'
6417 # ancient GNU ld didn't support --whole-archive et. al.
6418 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6419 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6420 else
6421 whole_archive_flag_spec=
6422 fi
6423 fi
6424 else
6425 # PORTME fill in a description of your system's linker (not GNU ld)
6426 case $host_os in
6427 aix3*)
6428 allow_undefined_flag=unsupported
6429 always_export_symbols=yes
6430 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'
6431 # Note: this linker hardcodes the directories in LIBPATH if there
6432 # are no directories specified by -L.
6433 hardcode_minus_L=yes
6434 if test "$GCC" = yes && test -z "$link_static_flag"; then
6435 # Neither direct hardcoding nor static linking is supported with a
6436 # broken collect2.
6437 hardcode_direct=unsupported
6438 fi
6439 ;;
6440
6441 aix4* | aix5*)
6442 if test "$host_cpu" = ia64; then
6443 # On IA64, the linker does run time linking by default, so we don't
6444 # have to do anything special.
6445 aix_use_runtimelinking=no
6446 exp_sym_flag='-Bexport'
6447 no_entry_flag=""
6448 else
6449 # If we're using GNU nm, then we don't want the "-C" option.
6450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6451 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6452 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'
6453 else
6454 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'
6455 fi
6456 aix_use_runtimelinking=no
6457
6458 # Test if we are trying to use run time linking or normal
6459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6460 # need to do runtime linking.
6461 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6462 for ld_flag in $LDFLAGS; do
6463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6464 aix_use_runtimelinking=yes
6465 break
6466 fi
6467 done
6468 esac
6469
6470 exp_sym_flag='-bexport'
6471 no_entry_flag='-bnoentry'
6472 fi
6473
6474 # When large executables or shared objects are built, AIX ld can
6475 # have problems creating the table of contents. If linking a library
6476 # or program results in "error TOC overflow" add -mminimal-toc to
6477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6479
6480 archive_cmds=''
6481 hardcode_direct=yes
6482 hardcode_libdir_separator=':'
6483 link_all_deplibs=yes
6484
6485 if test "$GCC" = yes; then
6486 case $host_os in aix4.012|aix4.012.*)
6487 # We only want to do this on AIX 4.2 and lower, the check
6488 # below for broken collect2 doesn't work under 4.3+
6489 collect2name=`${CC} -print-prog-name=collect2`
6490 if test -f "$collect2name" && \
6491 strings "$collect2name" | grep resolve_lib_name >/dev/null
6492 then
6493 # We have reworked collect2
6494 hardcode_direct=yes
6495 else
6496 # We have old collect2
6497 hardcode_direct=unsupported
6498 # It fails to find uninstalled libraries when the uninstalled
6499 # path is not listed in the libpath. Setting hardcode_minus_L
6500 # to unsupported forces relinking
6501 hardcode_minus_L=yes
6502 hardcode_libdir_flag_spec='-L$libdir'
6503 hardcode_libdir_separator=
6504 fi
6505 esac
6506 shared_flag='-shared'
6507 else
6508 # not using gcc
6509 if test "$host_cpu" = ia64; then
6510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6511 # chokes on -Wl,-G. The following line is correct:
6512 shared_flag='-G'
6513 else
6514 if test "$aix_use_runtimelinking" = yes; then
6515 shared_flag='${wl}-G'
6516 else
6517 shared_flag='${wl}-bM:SRE'
6518 fi
6519 fi
6520 fi
6521
6522 # It seems that -bexpall does not export symbols beginning with
6523 # underscore (_), so it is better to generate a list of symbols to export.
6524 always_export_symbols=yes
6525 if test "$aix_use_runtimelinking" = yes; then
6526 # Warning - without using the other runtime loading flags (-brtl),
6527 # -berok will link without error, but may produce a broken library.
6528 allow_undefined_flag='-berok'
6529 # Determine the default libpath from the value encoded in an empty executable.
6530 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006531#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00006532#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00006533
John Criswelld9cd1442003-09-09 20:52:17 +00006534#ifdef F77_DUMMY_MAIN
6535# ifdef __cplusplus
6536 extern "C"
6537# endif
6538 int F77_DUMMY_MAIN() { return 1; }
6539#endif
John Criswell7a73b802003-06-30 21:59:07 +00006540int
6541main ()
6542{
John Criswell47fdd832003-07-14 16:52:07 +00006543
John Criswell7a73b802003-06-30 21:59:07 +00006544 ;
6545 return 0;
6546}
6547_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006548rm -f conftest.$ac_objext conftest$ac_exeext
6549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006554 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006560
John Criswell47fdd832003-07-14 16:52:07 +00006561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6562}'`
6563# Check for a 64-bit object if we didn't find anything.
6564if 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; }
6565}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006566else
6567 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00006568cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00006569fi
John Criswell47fdd832003-07-14 16:52:07 +00006570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006572
John Criswell47fdd832003-07-14 16:52:07 +00006573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6574 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"
6575 else
6576 if test "$host_cpu" = ia64; then
6577 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6578 allow_undefined_flag="-z nodefs"
6579 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"
6580 else
6581 # Determine the default libpath from the value encoded in an empty executable.
6582 cat >conftest.$ac_ext <<_ACEOF
6583#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00006584#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00006585
John Criswelld9cd1442003-09-09 20:52:17 +00006586#ifdef F77_DUMMY_MAIN
6587# ifdef __cplusplus
6588 extern "C"
6589# endif
6590 int F77_DUMMY_MAIN() { return 1; }
6591#endif
John Criswell47fdd832003-07-14 16:52:07 +00006592int
6593main ()
6594{
John Criswell7a73b802003-06-30 21:59:07 +00006595
John Criswell47fdd832003-07-14 16:52:07 +00006596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602 (eval $ac_link) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006612
John Criswell47fdd832003-07-14 16:52:07 +00006613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6614}'`
6615# Check for a 64-bit object if we didn't find anything.
6616if 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; }
6617}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006618else
John Criswell47fdd832003-07-14 16:52:07 +00006619 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00006620cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00006621fi
6622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006624
John Criswell47fdd832003-07-14 16:52:07 +00006625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6626 # Warning - without using the other run time loading flags,
6627 # -berok will link without error, but may produce a broken library.
6628 no_undefined_flag=' ${wl}-bernotok'
6629 allow_undefined_flag=' ${wl}-berok'
6630 # -bexpall does not export symbols beginning with underscore (_)
6631 always_export_symbols=yes
6632 # Exported symbols can be pulled into shared objects from archives
6633 whole_archive_flag_spec=' '
6634 archive_cmds_need_lc=yes
6635 # This is similar to how AIX traditionally builds it's shared libraries.
6636 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 +00006637 fi
6638 fi
John Criswell7a73b802003-06-30 21:59:07 +00006639 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006640
6641 amigaos*)
6642 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)'
6643 hardcode_libdir_flag_spec='-L$libdir'
6644 hardcode_minus_L=yes
6645 # see comment about different semantics on the GNU ld section
6646 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006647 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006648
John Criswell47fdd832003-07-14 16:52:07 +00006649 bsdi4*)
6650 export_dynamic_flag_spec=-rdynamic
6651 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006652
John Criswell47fdd832003-07-14 16:52:07 +00006653 cygwin* | mingw* | pw32*)
6654 # When not using gcc, we currently assume that we are using
6655 # Microsoft Visual C++.
6656 # hardcode_libdir_flag_spec is actually meaningless, as there is
6657 # no search path for DLLs.
6658 hardcode_libdir_flag_spec=' '
6659 allow_undefined_flag=unsupported
6660 # Tell ltmain to make .lib files, not .a files.
6661 libext=lib
6662 # Tell ltmain to make .dll files, not .so files.
6663 shrext=".dll"
6664 # FIXME: Setting linknames here is a bad hack.
6665 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6666 # The linker will automatically build a .lib file if we build a DLL.
6667 old_archive_From_new_cmds='true'
6668 # FIXME: Should let the user specify the lib program.
6669 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6670 fix_srcfile_path='`cygpath -w "$srcfile"`'
6671 enable_shared_with_static_runtimes=yes
6672 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006673
John Criswell47fdd832003-07-14 16:52:07 +00006674 darwin* | rhapsody*)
6675 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6676 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006677 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006678 rhapsody* | darwin1.[012])
6679 allow_undefined_flag='-undefined suppress'
6680 ;;
6681 *) # Darwin 1.3 on
6682 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006683 ;;
6684 esac
John Criswell47fdd832003-07-14 16:52:07 +00006685 # FIXME: Relying on posixy $() will cause problems for
6686 # cross-compilation, but unfortunately the echo tests do not
6687 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6688 # `"' quotes if we put them in here... so don't!
6689 lt_int_apple_cc_single_mod=no
6690 output_verbose_link_cmd='echo'
6691 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6692 lt_int_apple_cc_single_mod=yes
6693 fi
6694 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6695 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6696 else
6697 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'
6698 fi
6699 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6700 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702 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}'
6703 else
6704 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}'
6705 fi
6706 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}'
6707 hardcode_direct=no
6708 hardcode_automatic=yes
6709 hardcode_shlibpath_var=unsupported
6710 whole_archive_flag_spec='-all_load $convenience'
6711 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006712 fi
John Criswell47fdd832003-07-14 16:52:07 +00006713 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006714
John Criswell47fdd832003-07-14 16:52:07 +00006715 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006717 hardcode_libdir_flag_spec='-L$libdir'
6718 hardcode_shlibpath_var=no
6719 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006720
John Criswell47fdd832003-07-14 16:52:07 +00006721 freebsd1*)
6722 ld_shlibs=no
6723 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006724
John Criswell47fdd832003-07-14 16:52:07 +00006725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6726 # support. Future versions do this automatically, but an explicit c++rt0.o
6727 # does not break anything, and helps significantly (at the cost of a little
6728 # extra space).
6729 freebsd2.2*)
6730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6731 hardcode_libdir_flag_spec='-R$libdir'
6732 hardcode_direct=yes
6733 hardcode_shlibpath_var=no
6734 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006735
John Criswell47fdd832003-07-14 16:52:07 +00006736 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6737 freebsd2*)
6738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6739 hardcode_direct=yes
6740 hardcode_minus_L=yes
6741 hardcode_shlibpath_var=no
6742 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006743
John Criswell47fdd832003-07-14 16:52:07 +00006744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6745 freebsd*)
6746 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6747 hardcode_libdir_flag_spec='-R$libdir'
6748 hardcode_direct=yes
6749 hardcode_shlibpath_var=no
6750 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006751
John Criswell47fdd832003-07-14 16:52:07 +00006752 hpux9*)
6753 if test "$GCC" = yes; then
6754 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'
6755 else
6756 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'
6757 fi
6758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6759 hardcode_libdir_separator=:
6760 hardcode_direct=yes
6761
6762 # hardcode_minus_L: Not really in the search PATH,
6763 # but as the default location of the library.
6764 hardcode_minus_L=yes
6765 export_dynamic_flag_spec='${wl}-E'
6766 ;;
6767
6768 hpux10* | hpux11*)
6769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6770 case "$host_cpu" in
6771 hppa*64*|ia64*)
6772 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6773 ;;
6774 *)
6775 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6776 ;;
6777 esac
6778 else
6779 case "$host_cpu" in
6780 hppa*64*|ia64*)
6781 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6782 ;;
6783 *)
6784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6785 ;;
6786 esac
6787 fi
6788 if test "$with_gnu_ld" = no; then
6789 case "$host_cpu" in
6790 hppa*64*)
6791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6792 hardcode_libdir_flag_spec_ld='+b $libdir'
6793 hardcode_libdir_separator=:
6794 hardcode_direct=no
6795 hardcode_shlibpath_var=no
6796 ;;
6797 ia64*)
6798 hardcode_libdir_flag_spec='-L$libdir'
6799 hardcode_direct=no
6800 hardcode_shlibpath_var=no
6801
6802 # hardcode_minus_L: Not really in the search PATH,
6803 # but as the default location of the library.
6804 hardcode_minus_L=yes
6805 ;;
6806 *)
6807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6808 hardcode_libdir_separator=:
6809 hardcode_direct=yes
6810 export_dynamic_flag_spec='${wl}-E'
6811
6812 # hardcode_minus_L: Not really in the search PATH,
6813 # but as the default location of the library.
6814 hardcode_minus_L=yes
6815 ;;
6816 esac
6817 fi
6818 ;;
6819
6820 irix5* | irix6* | nonstopux*)
6821 if test "$GCC" = yes; then
6822 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'
6823 else
6824 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'
6825 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6826 fi
6827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6828 hardcode_libdir_separator=:
6829 link_all_deplibs=yes
6830 ;;
6831
6832 netbsd*)
6833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6835 else
6836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6837 fi
6838 hardcode_libdir_flag_spec='-R$libdir'
6839 hardcode_direct=yes
6840 hardcode_shlibpath_var=no
6841 ;;
6842
6843 newsos6)
6844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6845 hardcode_direct=yes
6846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6847 hardcode_libdir_separator=:
6848 hardcode_shlibpath_var=no
6849 ;;
6850
6851 openbsd*)
6852 hardcode_direct=yes
6853 hardcode_shlibpath_var=no
6854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6856 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6857 export_dynamic_flag_spec='${wl}-E'
6858 else
6859 case $host_os in
6860 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6862 hardcode_libdir_flag_spec='-R$libdir'
6863 ;;
6864 *)
6865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867 ;;
6868 esac
6869 fi
6870 ;;
6871
6872 os2*)
6873 hardcode_libdir_flag_spec='-L$libdir'
6874 hardcode_minus_L=yes
6875 allow_undefined_flag=unsupported
6876 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'
6877 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6878 ;;
6879
6880 osf3*)
6881 if test "$GCC" = yes; then
6882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6883 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'
6884 else
6885 allow_undefined_flag=' -expect_unresolved \*'
6886 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'
6887 fi
6888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6889 hardcode_libdir_separator=:
6890 ;;
6891
6892 osf4* | osf5*) # as osf3* with the addition of -msym flag
6893 if test "$GCC" = yes; then
6894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6895 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'
6896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6897 else
6898 allow_undefined_flag=' -expect_unresolved \*'
6899 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'
6900 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6901 $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'
6902
6903 # Both c and cxx compiler support -rpath directly
6904 hardcode_libdir_flag_spec='-rpath $libdir'
6905 fi
6906 hardcode_libdir_separator=:
6907 ;;
6908
6909 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6911 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006912 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006913 runpath_var=LD_RUN_PATH
6914 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006915 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006916
John Criswell47fdd832003-07-14 16:52:07 +00006917 solaris*)
6918 no_undefined_flag=' -z text'
6919 if test "$GCC" = yes; then
6920 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6921 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6923 else
6924 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6925 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6927 fi
6928 hardcode_libdir_flag_spec='-R$libdir'
6929 hardcode_shlibpath_var=no
6930 case $host_os in
6931 solaris2.[0-5] | solaris2.[0-5].*) ;;
6932 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6934 esac
6935 link_all_deplibs=yes
6936 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006937
John Criswell47fdd832003-07-14 16:52:07 +00006938 sunos4*)
6939 if test "x$host_vendor" = xsequent; then
6940 # Use $CC to link under sequent, because it throws in some extra .o
6941 # files that make .init and .fini sections work.
6942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6943 else
6944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6945 fi
6946 hardcode_libdir_flag_spec='-L$libdir'
6947 hardcode_direct=yes
6948 hardcode_minus_L=yes
6949 hardcode_shlibpath_var=no
6950 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006951
John Criswell47fdd832003-07-14 16:52:07 +00006952 sysv4)
6953 case $host_vendor in
6954 sni)
6955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6956 hardcode_direct=yes # is this really true???
6957 ;;
6958 siemens)
6959 ## LD is ld it makes a PLAMLIB
6960 ## CC just makes a GrossModule.
6961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6962 reload_cmds='$CC -r -o $output$reload_objs'
6963 hardcode_direct=no
6964 ;;
6965 motorola)
6966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6968 ;;
6969 esac
6970 runpath_var='LD_RUN_PATH'
6971 hardcode_shlibpath_var=no
6972 ;;
6973
6974 sysv4.3*)
6975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6976 hardcode_shlibpath_var=no
6977 export_dynamic_flag_spec='-Bexport'
6978 ;;
6979
6980 sysv4*MP*)
6981 if test -d /usr/nec; then
6982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983 hardcode_shlibpath_var=no
6984 runpath_var=LD_RUN_PATH
6985 hardcode_runpath_var=yes
6986 ld_shlibs=yes
6987 fi
6988 ;;
6989
6990 sysv4.2uw2*)
6991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6992 hardcode_direct=yes
6993 hardcode_minus_L=no
6994 hardcode_shlibpath_var=no
6995 hardcode_runpath_var=yes
6996 runpath_var=LD_RUN_PATH
6997 ;;
6998
6999 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7000 no_undefined_flag='${wl}-z ${wl}text'
7001 if test "$GCC" = yes; then
7002 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7003 else
7004 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7005 fi
7006 runpath_var='LD_RUN_PATH'
7007 hardcode_shlibpath_var=no
7008 ;;
7009
7010 sysv5*)
7011 no_undefined_flag=' -z text'
7012 # $CC -shared without GNU ld will not create a library from C++
7013 # object files and a static libstdc++, better avoid it by now
7014 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7017 hardcode_libdir_flag_spec=
7018 hardcode_shlibpath_var=no
7019 runpath_var='LD_RUN_PATH'
7020 ;;
7021
7022 uts4*)
7023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7024 hardcode_libdir_flag_spec='-L$libdir'
7025 hardcode_shlibpath_var=no
7026 ;;
7027
7028 *)
7029 ld_shlibs=no
7030 ;;
7031 esac
7032 fi
7033
John Criswell7a73b802003-06-30 21:59:07 +00007034echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7035echo "${ECHO_T}$ld_shlibs" >&6
7036test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007037
John Criswell47fdd832003-07-14 16:52:07 +00007038variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7039if test "$GCC" = yes; then
7040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7041fi
7042
7043#
7044# Do we need to explicitly link libc?
7045#
7046case "x$archive_cmds_need_lc" in
7047x|xyes)
7048 # Assume -lc should be added
7049 archive_cmds_need_lc=yes
7050
7051 if test "$enable_shared" = yes && test "$GCC" = yes; then
7052 case $archive_cmds in
7053 *'~'*)
7054 # FIXME: we may have to deal with multi-command sequences.
7055 ;;
7056 '$CC '*)
7057 # Test whether the compiler implicitly links with -lc since on some
7058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7059 # to ld, don't add -lc before -lgcc.
7060 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7061echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7062 $rm conftest*
7063 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7064
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } 2>conftest.err; then
7070 soname=conftest
7071 lib=conftest
7072 libobjs=conftest.$ac_objext
7073 deplibs=
7074 wl=$lt_prog_compiler_wl
7075 compiler_flags=-v
7076 linker_flags=-v
7077 verstring=
7078 output_objdir=.
7079 libname=conftest
7080 lt_save_allow_undefined_flag=$allow_undefined_flag
7081 allow_undefined_flag=
7082 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7083 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }
7087 then
7088 archive_cmds_need_lc=no
7089 else
7090 archive_cmds_need_lc=yes
7091 fi
7092 allow_undefined_flag=$lt_save_allow_undefined_flag
7093 else
7094 cat conftest.err 1>&5
7095 fi
7096 $rm conftest*
7097 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7098echo "${ECHO_T}$archive_cmds_need_lc" >&6
7099 ;;
7100 esac
7101 fi
7102 ;;
7103esac
7104
John Criswell7a73b802003-06-30 21:59:07 +00007105echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7106echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7107hardcode_action=
7108if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007109 test -n "$runpath_var " || \
7110 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007111
7112 # We can hardcode non-existant directories.
7113 if test "$hardcode_direct" != no &&
7114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7115 # have to relink, otherwise we might link with an installed library
7116 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007117 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007118 test "$hardcode_minus_L" != no; then
7119 # Linking always hardcodes the temporary library directory.
7120 hardcode_action=relink
7121 else
7122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7123 hardcode_action=immediate
7124 fi
7125else
7126 # We cannot hardcode anything, or else we can only hardcode existing
7127 # directories.
7128 hardcode_action=unsupported
7129fi
7130echo "$as_me:$LINENO: result: $hardcode_action" >&5
7131echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007132
John Criswell47fdd832003-07-14 16:52:07 +00007133if test "$hardcode_action" = relink; then
7134 # Fast installation is not supported
7135 enable_fast_install=no
7136elif test "$shlibpath_overrides_runpath" = yes ||
7137 test "$enable_shared" = no; then
7138 # Fast installation is not necessary
7139 enable_fast_install=needless
7140fi
7141
John Criswell7a73b802003-06-30 21:59:07 +00007142striplib=
7143old_striplib=
7144echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7145echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7146if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7147 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7148 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7149 echo "$as_me:$LINENO: result: yes" >&5
7150echo "${ECHO_T}yes" >&6
7151else
John Criswell47fdd832003-07-14 16:52:07 +00007152# FIXME - insert some real tests, host_os isn't really good enough
7153 case $host_os in
7154 darwin*)
7155 if test -n "$STRIP" ; then
7156 striplib="$STRIP -x"
7157 echo "$as_me:$LINENO: result: yes" >&5
7158echo "${ECHO_T}yes" >&6
7159 else
John Criswell7a73b802003-06-30 21:59:07 +00007160 echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6
7162fi
John Criswell47fdd832003-07-14 16:52:07 +00007163 ;;
7164 *)
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 ;;
7168 esac
7169fi
John Criswell7a73b802003-06-30 21:59:07 +00007170
John Criswell7a73b802003-06-30 21:59:07 +00007171echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7172echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7173library_names_spec=
7174libname_spec='lib$name'
7175soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007176shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007177postinstall_cmds=
7178postuninstall_cmds=
7179finish_cmds=
7180finish_eval=
7181shlibpath_var=
7182shlibpath_overrides_runpath=unknown
7183version_type=none
7184dynamic_linker="$host_os ld.so"
7185sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007186if test "$GCC" = yes; then
7187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7188 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7189 # if the path contains ";" then we assume it to be the separator
7190 # otherwise default to the standard path separator (i.e. ":") - it is
7191 # assumed that no part of a normal pathname contains ";" but that should
7192 # okay in the real world where ";" in dirpaths is itself problematic.
7193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7194 else
7195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7196 fi
7197else
7198 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7199fi
7200need_lib_prefix=unknown
7201hardcode_into_libs=no
7202
7203# when you set need_version to no, make sure it does not cause -set_version
7204# flags to be left without arguments
7205need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007206
7207case $host_os in
7208aix3*)
7209 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007211 shlibpath_var=LIBPATH
7212
John Criswell47fdd832003-07-14 16:52:07 +00007213 # AIX 3 has no versioning support, so we append a major version to the name.
7214 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007215 ;;
7216
7217aix4* | aix5*)
7218 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007219 need_lib_prefix=no
7220 need_version=no
7221 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007222 if test "$host_cpu" = ia64; then
7223 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007225 shlibpath_var=LD_LIBRARY_PATH
7226 else
7227 # With GCC up to 2.95.x, collect2 would create an import file
7228 # for dependence libraries. The import file would start with
7229 # the line `#! .'. This would cause the generated library to
7230 # depend on `.', always an invalid library. This was fixed in
7231 # development snapshots of GCC prior to 3.0.
7232 case $host_os in
7233 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7235 echo ' yes '
7236 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7237 :
7238 else
7239 can_build_shared=no
7240 fi
7241 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007242 esac
John Criswell47fdd832003-07-14 16:52:07 +00007243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7244 # soname into executable. Probably we can add versioning support to
7245 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007246 if test "$aix_use_runtimelinking" = yes; then
7247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7248 # instead of lib<name>.a to let people know that these are not
7249 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007251 else
7252 # We preserve .a as extension for shared libraries through AIX4.2
7253 # and later when we are not doing run time linking.
7254 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007255 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007256 fi
7257 shlibpath_var=LIBPATH
7258 fi
7259 ;;
7260
7261amigaos*)
7262 library_names_spec='$libname.ixlibrary $libname.a'
7263 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7264 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'
7265 ;;
7266
7267beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007268 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007269 dynamic_linker="$host_os ld.so"
7270 shlibpath_var=LIBRARY_PATH
7271 ;;
7272
7273bsdi4*)
7274 version_type=linux
7275 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7277 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7279 shlibpath_var=LD_LIBRARY_PATH
7280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007282 # the default ld.so.conf also contains /usr/contrib/lib and
7283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7284 # libtool to hard-code these into programs
7285 ;;
7286
7287cygwin* | mingw* | pw32*)
7288 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007289 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007290 need_version=no
7291 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007292
John Criswell7a73b802003-06-30 21:59:07 +00007293 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007294 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007295 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7297 postinstall_cmds='base_file=`basename \${file}`~
7298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007299 dldir=$destdir/`dirname \$dlpath`~
7300 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007301 $install_prog $dir/$dlname \$dldir/$dlname'
7302 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007303 dlpath=$dir/\$dldll~
7304 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007305 shlibpath_overrides_runpath=yes
7306
7307 case $host_os in
7308 cygwin*)
7309 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7310 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7311 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7312 ;;
7313 mingw*)
7314 # MinGW DLLs use traditional 'lib' prefix
7315 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7316 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7317 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7318 # It is most probably a Windows format PATH printed by
7319 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7320 # path with ; separators, and with drive letters. We can handle the
7321 # drive letters (cygwin fileutils understands them), so leave them,
7322 # especially as we might pass files found there to a mingw objdump,
7323 # which wouldn't understand a cygwinified path. Ahh.
7324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7325 else
7326 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7327 fi
7328 ;;
7329 pw32*)
7330 # pw32 DLLs use 'pw' prefix rather than 'lib'
7331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7332 ;;
7333 esac
John Criswell7a73b802003-06-30 21:59:07 +00007334 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007335
John Criswell7a73b802003-06-30 21:59:07 +00007336 *)
John Criswell47fdd832003-07-14 16:52:07 +00007337 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007338 ;;
7339 esac
7340 dynamic_linker='Win32 ld.exe'
7341 # FIXME: first we should search . and the directory the executable is in
7342 shlibpath_var=PATH
7343 ;;
7344
7345darwin* | rhapsody*)
7346 dynamic_linker="$host_os dyld"
7347 version_type=darwin
7348 need_lib_prefix=no
7349 need_version=no
7350 # FIXME: Relying on posixy $() will cause problems for
7351 # cross-compilation, but unfortunately the echo tests do not
7352 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007353 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7354 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007355 shlibpath_overrides_runpath=yes
7356 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007357 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7358 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7359 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7360 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"`
7361 fi
7362 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7363 ;;
7364
7365dgux*)
7366 version_type=linux
7367 need_lib_prefix=no
7368 need_version=no
7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7370 soname_spec='${libname}${release}${shared_ext}$major'
7371 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007372 ;;
7373
7374freebsd1*)
7375 dynamic_linker=no
7376 ;;
7377
7378freebsd*)
7379 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7380 version_type=freebsd-$objformat
7381 case $version_type in
7382 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007384 need_version=no
7385 need_lib_prefix=no
7386 ;;
7387 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007389 need_version=yes
7390 ;;
7391 esac
7392 shlibpath_var=LD_LIBRARY_PATH
7393 case $host_os in
7394 freebsd2*)
7395 shlibpath_overrides_runpath=yes
7396 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007397 freebsd3.01* | freebsdelf3.01*)
7398 shlibpath_overrides_runpath=yes
7399 hardcode_into_libs=yes
7400 ;;
7401 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007402 shlibpath_overrides_runpath=no
7403 hardcode_into_libs=yes
7404 ;;
7405 esac
7406 ;;
7407
7408gnu*)
7409 version_type=linux
7410 need_lib_prefix=no
7411 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7413 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007414 shlibpath_var=LD_LIBRARY_PATH
7415 hardcode_into_libs=yes
7416 ;;
7417
7418hpux9* | hpux10* | hpux11*)
7419 # Give a soname corresponding to the major version so that dld.sl refuses to
7420 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007421 version_type=sunos
7422 need_lib_prefix=no
7423 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007424 case "$host_cpu" in
7425 ia64*)
7426 shrext='.so'
7427 hardcode_into_libs=yes
7428 dynamic_linker="$host_os dld.so"
7429 shlibpath_var=LD_LIBRARY_PATH
7430 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432 soname_spec='${libname}${release}${shared_ext}$major'
7433 if test "X$HPUX_IA64_MODE" = X32; then
7434 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7435 else
7436 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7437 fi
7438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7439 ;;
7440 hppa*64*)
7441 shrext='.sl'
7442 hardcode_into_libs=yes
7443 dynamic_linker="$host_os dld.sl"
7444 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7445 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7447 soname_spec='${libname}${release}${shared_ext}$major'
7448 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7450 ;;
7451 *)
7452 shrext='.sl'
7453 dynamic_linker="$host_os dld.sl"
7454 shlibpath_var=SHLIB_PATH
7455 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457 soname_spec='${libname}${release}${shared_ext}$major'
7458 ;;
7459 esac
John Criswell7a73b802003-06-30 21:59:07 +00007460 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7461 postinstall_cmds='chmod 555 $lib'
7462 ;;
7463
John Criswell47fdd832003-07-14 16:52:07 +00007464irix5* | irix6* | nonstopux*)
7465 case $host_os in
7466 nonstopux*) version_type=nonstopux ;;
7467 *)
7468 if test "$lt_cv_prog_gnu_ld" = yes; then
7469 version_type=linux
7470 else
7471 version_type=irix
7472 fi ;;
7473 esac
John Criswell7a73b802003-06-30 21:59:07 +00007474 need_lib_prefix=no
7475 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007476 soname_spec='${libname}${release}${shared_ext}$major'
7477 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 +00007478 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007479 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007480 libsuff= shlibsuff=
7481 ;;
7482 *)
7483 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7485 libsuff= shlibsuff= libmagic=32-bit;;
7486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7487 libsuff=32 shlibsuff=N32 libmagic=N32;;
7488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007490 *) libsuff= shlibsuff= libmagic=never-match;;
7491 esac
7492 ;;
7493 esac
7494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7495 shlibpath_overrides_runpath=no
7496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007498 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007499 ;;
7500
7501# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007502linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007503 dynamic_linker=no
7504 ;;
7505
7506# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007507linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007508 version_type=linux
7509 need_lib_prefix=no
7510 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7512 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7514 shlibpath_var=LD_LIBRARY_PATH
7515 shlibpath_overrides_runpath=no
7516 # This implies no fast_install, which is unacceptable.
7517 # Some rework will be needed to allow for fast_install
7518 # before this can be enabled.
7519 hardcode_into_libs=yes
7520
7521 # We used to test for /lib/ld.so.1 and disable shared libraries on
7522 # powerpc, because MkLinux only supported shared libraries with the
7523 # GNU dynamic linker. Since this was broken with cross compilers,
7524 # most powerpc-linux boxes support dynamic linking these days and
7525 # people can always --disable-shared, the test was removed, and we
7526 # assume the GNU/Linux dynamic linker is in use.
7527 dynamic_linker='GNU/Linux ld.so'
7528 ;;
7529
7530netbsd*)
7531 version_type=sunos
7532 need_lib_prefix=no
7533 need_version=no
7534 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7537 dynamic_linker='NetBSD (a.out) ld.so'
7538 else
John Criswell47fdd832003-07-14 16:52:07 +00007539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7540 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007541 dynamic_linker='NetBSD ld.elf_so'
7542 fi
7543 shlibpath_var=LD_LIBRARY_PATH
7544 shlibpath_overrides_runpath=yes
7545 hardcode_into_libs=yes
7546 ;;
7547
7548newsos6)
7549 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7551 shlibpath_var=LD_LIBRARY_PATH
7552 shlibpath_overrides_runpath=yes
7553 ;;
7554
7555nto-qnx)
7556 version_type=linux
7557 need_lib_prefix=no
7558 need_version=no
7559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7560 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007561 shlibpath_var=LD_LIBRARY_PATH
7562 shlibpath_overrides_runpath=yes
7563 ;;
7564
7565openbsd*)
7566 version_type=sunos
7567 need_lib_prefix=no
7568 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7571 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007572 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 +00007573 case $host_os in
7574 openbsd2.[89] | openbsd2.[89].*)
7575 shlibpath_overrides_runpath=no
7576 ;;
7577 *)
7578 shlibpath_overrides_runpath=yes
7579 ;;
7580 esac
John Criswell7a73b802003-06-30 21:59:07 +00007581 else
7582 shlibpath_overrides_runpath=yes
7583 fi
John Criswell7a73b802003-06-30 21:59:07 +00007584 ;;
7585
7586os2*)
7587 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007588 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007589 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007590 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007591 dynamic_linker='OS/2 ld.exe'
7592 shlibpath_var=LIBPATH
7593 ;;
7594
7595osf3* | osf4* | osf5*)
7596 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007597 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007598 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007599 soname_spec='${libname}${release}${shared_ext}$major'
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007601 shlibpath_var=LD_LIBRARY_PATH
7602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7604 ;;
7605
7606sco3.2v5*)
7607 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007608 soname_spec='${libname}${release}${shared_ext}$major'
7609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007610 shlibpath_var=LD_LIBRARY_PATH
7611 ;;
7612
7613solaris*)
7614 version_type=linux
7615 need_lib_prefix=no
7616 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7618 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007619 shlibpath_var=LD_LIBRARY_PATH
7620 shlibpath_overrides_runpath=yes
7621 hardcode_into_libs=yes
7622 # ldd complains unless libraries are executable
7623 postinstall_cmds='chmod +x $lib'
7624 ;;
7625
7626sunos4*)
7627 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7630 shlibpath_var=LD_LIBRARY_PATH
7631 shlibpath_overrides_runpath=yes
7632 if test "$with_gnu_ld" = yes; then
7633 need_lib_prefix=no
7634 fi
7635 need_version=yes
7636 ;;
7637
7638sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7639 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007642 shlibpath_var=LD_LIBRARY_PATH
7643 case $host_vendor in
7644 sni)
7645 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007646 need_lib_prefix=no
7647 export_dynamic_flag_spec='${wl}-Blargedynsym'
7648 runpath_var=LD_RUN_PATH
7649 ;;
7650 siemens)
7651 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007652 ;;
7653 motorola)
7654 need_lib_prefix=no
7655 need_version=no
7656 shlibpath_overrides_runpath=no
7657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7658 ;;
7659 esac
7660 ;;
7661
John Criswell7a73b802003-06-30 21:59:07 +00007662sysv4*MP*)
7663 if test -d /usr/nec ;then
7664 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7666 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007667 shlibpath_var=LD_LIBRARY_PATH
7668 fi
7669 ;;
7670
John Criswell47fdd832003-07-14 16:52:07 +00007671uts4*)
7672 version_type=linux
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 soname_spec='${libname}${release}${shared_ext}$major'
7675 shlibpath_var=LD_LIBRARY_PATH
7676 ;;
7677
John Criswell7a73b802003-06-30 21:59:07 +00007678*)
7679 dynamic_linker=no
7680 ;;
7681esac
7682echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7683echo "${ECHO_T}$dynamic_linker" >&6
7684test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007685
7686if test "x$enable_dlopen" != xyes; then
7687 enable_dlopen=unknown
7688 enable_dlopen_self=unknown
7689 enable_dlopen_self_static=unknown
7690else
7691 lt_cv_dlopen=no
7692 lt_cv_dlopen_libs=
7693
7694 case $host_os in
7695 beos*)
7696 lt_cv_dlopen="load_add_on"
7697 lt_cv_dlopen_libs=
7698 lt_cv_dlopen_self=yes
7699 ;;
7700
John Criswell47fdd832003-07-14 16:52:07 +00007701 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007702 lt_cv_dlopen="LoadLibrary"
7703 lt_cv_dlopen_libs=
7704 ;;
7705
John Criswell47fdd832003-07-14 16:52:07 +00007706 cygwin*)
7707 lt_cv_dlopen="dlopen"
7708 lt_cv_dlopen_libs=
7709 ;;
7710
7711 darwin*)
7712 # if libdl is installed we need to link against it
7713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7715if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718 ac_check_lib_save_LIBS=$LIBS
7719LIBS="-ldl $LIBS"
7720cat >conftest.$ac_ext <<_ACEOF
7721#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00007722#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00007723
7724/* Override any gcc2 internal prototype to avoid an error. */
7725#ifdef __cplusplus
7726extern "C"
7727#endif
7728/* We use char because int might match the return type of a gcc2
7729 builtin and then its argument prototype would still apply. */
7730char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +00007731#ifdef F77_DUMMY_MAIN
7732# ifdef __cplusplus
7733 extern "C"
7734# endif
7735 int F77_DUMMY_MAIN() { return 1; }
7736#endif
John Criswell47fdd832003-07-14 16:52:07 +00007737int
7738main ()
7739{
7740dlopen ();
7741 ;
7742 return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext conftest$ac_exeext
7746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_lib_dl_dlopen=yes
7758else
7759 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00007760cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00007761ac_cv_lib_dl_dlopen=no
7762fi
7763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764LIBS=$ac_check_lib_save_LIBS
7765fi
7766echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7767echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7768if test $ac_cv_lib_dl_dlopen = yes; then
7769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7770else
7771
7772 lt_cv_dlopen="dyld"
7773 lt_cv_dlopen_libs=
7774 lt_cv_dlopen_self=yes
7775
7776fi
7777
7778 ;;
7779
John Criswell7a73b802003-06-30 21:59:07 +00007780 *)
7781 echo "$as_me:$LINENO: checking for shl_load" >&5
7782echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7783if test "${ac_cv_func_shl_load+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7785else
7786 cat >conftest.$ac_ext <<_ACEOF
7787#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00007788#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00007789/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +00007790 which can conflict with char shl_load (); below. */
7791#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +00007792/* Override any gcc2 internal prototype to avoid an error. */
7793#ifdef __cplusplus
7794extern "C"
7795#endif
7796/* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7798char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +00007799char (*f) ();
7800
7801#ifdef F77_DUMMY_MAIN
7802# ifdef __cplusplus
7803 extern "C"
7804# endif
7805 int F77_DUMMY_MAIN() { return 1; }
7806#endif
7807int
7808main ()
7809{
John Criswell7a73b802003-06-30 21:59:07 +00007810/* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813#if defined (__stub_shl_load) || defined (__stub___shl_load)
7814choke me
7815#else
John Criswelld9cd1442003-09-09 20:52:17 +00007816f = shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007817#endif
7818
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext conftest$ac_exeext
7824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_func_shl_load=yes
7836else
7837 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00007838cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00007839ac_cv_func_shl_load=no
7840fi
7841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7842fi
7843echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7844echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7845if test $ac_cv_func_shl_load = yes; then
7846 lt_cv_dlopen="shl_load"
7847else
7848 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7849echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7850if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 ac_check_lib_save_LIBS=$LIBS
7854LIBS="-ldld $LIBS"
7855cat >conftest.$ac_ext <<_ACEOF
7856#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00007857#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00007858
7859/* Override any gcc2 internal prototype to avoid an error. */
7860#ifdef __cplusplus
7861extern "C"
7862#endif
7863/* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7865char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +00007866#ifdef F77_DUMMY_MAIN
7867# ifdef __cplusplus
7868 extern "C"
7869# endif
7870 int F77_DUMMY_MAIN() { return 1; }
7871#endif
John Criswell7a73b802003-06-30 21:59:07 +00007872int
7873main ()
7874{
7875shl_load ();
7876 ;
7877 return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_dld_shl_load=yes
7893else
7894 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00007895cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00007896ac_cv_lib_dld_shl_load=no
7897fi
7898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7899LIBS=$ac_check_lib_save_LIBS
7900fi
7901echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7902echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7903if test $ac_cv_lib_dld_shl_load = yes; then
7904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7905else
7906 echo "$as_me:$LINENO: checking for dlopen" >&5
7907echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7908if test "${ac_cv_func_dlopen+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 cat >conftest.$ac_ext <<_ACEOF
7912#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00007913#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00007914/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +00007915 which can conflict with char dlopen (); below. */
7916#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +00007917/* Override any gcc2 internal prototype to avoid an error. */
7918#ifdef __cplusplus
7919extern "C"
7920#endif
7921/* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7923char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +00007924char (*f) ();
7925
7926#ifdef F77_DUMMY_MAIN
7927# ifdef __cplusplus
7928 extern "C"
7929# endif
7930 int F77_DUMMY_MAIN() { return 1; }
7931#endif
7932int
7933main ()
7934{
John Criswell7a73b802003-06-30 21:59:07 +00007935/* The GNU C library defines this for functions which it implements
7936 to always fail with ENOSYS. Some functions are actually named
7937 something starting with __ and the normal name is an alias. */
7938#if defined (__stub_dlopen) || defined (__stub___dlopen)
7939choke me
7940#else
John Criswelld9cd1442003-09-09 20:52:17 +00007941f = dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007942#endif
7943
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -s conftest$ac_exeext'
7955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 (eval $ac_try) 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; }; then
7960 ac_cv_func_dlopen=yes
7961else
7962 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00007963cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00007964ac_cv_func_dlopen=no
7965fi
7966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7967fi
7968echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7969echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7970if test $ac_cv_func_dlopen = yes; then
7971 lt_cv_dlopen="dlopen"
7972else
7973 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7974echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7975if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978 ac_check_lib_save_LIBS=$LIBS
7979LIBS="-ldl $LIBS"
7980cat >conftest.$ac_ext <<_ACEOF
7981#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00007982#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00007983
7984/* Override any gcc2 internal prototype to avoid an error. */
7985#ifdef __cplusplus
7986extern "C"
7987#endif
7988/* We use char because int might match the return type of a gcc2
7989 builtin and then its argument prototype would still apply. */
7990char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +00007991#ifdef F77_DUMMY_MAIN
7992# ifdef __cplusplus
7993 extern "C"
7994# endif
7995 int F77_DUMMY_MAIN() { return 1; }
7996#endif
John Criswell7a73b802003-06-30 21:59:07 +00007997int
7998main ()
7999{
8000dlopen ();
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext conftest$ac_exeext
8006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_dl_dlopen=yes
8018else
8019 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00008020cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00008021ac_cv_lib_dl_dlopen=no
8022fi
8023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024LIBS=$ac_check_lib_save_LIBS
8025fi
8026echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8027echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8028if test $ac_cv_lib_dl_dlopen = yes; then
8029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8030else
8031 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8032echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8033if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036 ac_check_lib_save_LIBS=$LIBS
8037LIBS="-lsvld $LIBS"
8038cat >conftest.$ac_ext <<_ACEOF
8039#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00008040#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00008041
8042/* Override any gcc2 internal prototype to avoid an error. */
8043#ifdef __cplusplus
8044extern "C"
8045#endif
8046/* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8048char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +00008049#ifdef F77_DUMMY_MAIN
8050# ifdef __cplusplus
8051 extern "C"
8052# endif
8053 int F77_DUMMY_MAIN() { return 1; }
8054#endif
John Criswell7a73b802003-06-30 21:59:07 +00008055int
8056main ()
8057{
8058dlopen ();
8059 ;
8060 return 0;
8061}
8062_ACEOF
8063rm -f conftest.$ac_objext conftest$ac_exeext
8064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_cv_lib_svld_dlopen=yes
8076else
8077 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00008078cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00008079ac_cv_lib_svld_dlopen=no
8080fi
8081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082LIBS=$ac_check_lib_save_LIBS
8083fi
8084echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8085echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8086if test $ac_cv_lib_svld_dlopen = yes; then
8087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8088else
8089 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8090echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8091if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094 ac_check_lib_save_LIBS=$LIBS
8095LIBS="-ldld $LIBS"
8096cat >conftest.$ac_ext <<_ACEOF
8097#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00008098#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00008099
8100/* Override any gcc2 internal prototype to avoid an error. */
8101#ifdef __cplusplus
8102extern "C"
8103#endif
8104/* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8106char dld_link ();
John Criswelld9cd1442003-09-09 20:52:17 +00008107#ifdef F77_DUMMY_MAIN
8108# ifdef __cplusplus
8109 extern "C"
8110# endif
8111 int F77_DUMMY_MAIN() { return 1; }
8112#endif
John Criswell7a73b802003-06-30 21:59:07 +00008113int
8114main ()
8115{
8116dld_link ();
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext conftest$ac_exeext
8122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_dld_dld_link=yes
8134else
8135 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00008136cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +00008137ac_cv_lib_dld_dld_link=no
8138fi
8139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140LIBS=$ac_check_lib_save_LIBS
8141fi
8142echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8143echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8144if test $ac_cv_lib_dld_dld_link = yes; then
8145 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8146fi
8147
8148
8149fi
8150
8151
8152fi
8153
8154
8155fi
8156
8157
8158fi
8159
8160
8161fi
8162
8163 ;;
8164 esac
8165
8166 if test "x$lt_cv_dlopen" != xno; then
8167 enable_dlopen=yes
8168 else
8169 enable_dlopen=no
8170 fi
8171
8172 case $lt_cv_dlopen in
8173 dlopen)
8174 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008175 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008176
8177 save_LDFLAGS="$LDFLAGS"
8178 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8179
8180 save_LIBS="$LIBS"
8181 LIBS="$lt_cv_dlopen_libs $LIBS"
8182
8183 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8184echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8185if test "${lt_cv_dlopen_self+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187else
8188 if test "$cross_compiling" = yes; then :
8189 lt_cv_dlopen_self=cross
8190else
John Criswell47fdd832003-07-14 16:52:07 +00008191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008192 lt_status=$lt_dlunknown
8193 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +00008194#line 8194 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008195#include "confdefs.h"
8196
8197#if HAVE_DLFCN_H
8198#include <dlfcn.h>
8199#endif
8200
8201#include <stdio.h>
8202
8203#ifdef RTLD_GLOBAL
8204# define LT_DLGLOBAL RTLD_GLOBAL
8205#else
8206# ifdef DL_GLOBAL
8207# define LT_DLGLOBAL DL_GLOBAL
8208# else
8209# define LT_DLGLOBAL 0
8210# endif
8211#endif
8212
8213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8214 find out it does not work in some platform. */
8215#ifndef LT_DLLAZY_OR_NOW
8216# ifdef RTLD_LAZY
8217# define LT_DLLAZY_OR_NOW RTLD_LAZY
8218# else
8219# ifdef DL_LAZY
8220# define LT_DLLAZY_OR_NOW DL_LAZY
8221# else
8222# ifdef RTLD_NOW
8223# define LT_DLLAZY_OR_NOW RTLD_NOW
8224# else
8225# ifdef DL_NOW
8226# define LT_DLLAZY_OR_NOW DL_NOW
8227# else
8228# define LT_DLLAZY_OR_NOW 0
8229# endif
8230# endif
8231# endif
8232# endif
8233#endif
8234
8235#ifdef __cplusplus
8236extern "C" void exit (int);
8237#endif
8238
8239void fnord() { int i=42;}
8240int main ()
8241{
8242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8243 int status = $lt_dlunknown;
8244
8245 if (self)
8246 {
8247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8248 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8249 /* dlclose (self); */
8250 }
8251
8252 exit (status);
8253}
8254EOF
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>&5
8257 ac_status=$?
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8260 (./conftest; exit; ) 2>/dev/null
8261 lt_status=$?
8262 case x$lt_status in
8263 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8264 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8265 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8266 esac
8267 else :
8268 # compilation failed
8269 lt_cv_dlopen_self=no
8270 fi
8271fi
8272rm -fr conftest*
8273
8274
8275fi
8276echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8277echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8278
8279 if test "x$lt_cv_dlopen_self" = xyes; then
8280 LDFLAGS="$LDFLAGS $link_static_flag"
8281 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8282echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8283if test "${lt_cv_dlopen_self_static+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 if test "$cross_compiling" = yes; then :
8287 lt_cv_dlopen_self_static=cross
8288else
John Criswell47fdd832003-07-14 16:52:07 +00008289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008290 lt_status=$lt_dlunknown
8291 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +00008292#line 8292 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008293#include "confdefs.h"
8294
8295#if HAVE_DLFCN_H
8296#include <dlfcn.h>
8297#endif
8298
8299#include <stdio.h>
8300
8301#ifdef RTLD_GLOBAL
8302# define LT_DLGLOBAL RTLD_GLOBAL
8303#else
8304# ifdef DL_GLOBAL
8305# define LT_DLGLOBAL DL_GLOBAL
8306# else
8307# define LT_DLGLOBAL 0
8308# endif
8309#endif
8310
8311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8312 find out it does not work in some platform. */
8313#ifndef LT_DLLAZY_OR_NOW
8314# ifdef RTLD_LAZY
8315# define LT_DLLAZY_OR_NOW RTLD_LAZY
8316# else
8317# ifdef DL_LAZY
8318# define LT_DLLAZY_OR_NOW DL_LAZY
8319# else
8320# ifdef RTLD_NOW
8321# define LT_DLLAZY_OR_NOW RTLD_NOW
8322# else
8323# ifdef DL_NOW
8324# define LT_DLLAZY_OR_NOW DL_NOW
8325# else
8326# define LT_DLLAZY_OR_NOW 0
8327# endif
8328# endif
8329# endif
8330# endif
8331#endif
8332
8333#ifdef __cplusplus
8334extern "C" void exit (int);
8335#endif
8336
8337void fnord() { int i=42;}
8338int main ()
8339{
8340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8341 int status = $lt_dlunknown;
8342
8343 if (self)
8344 {
8345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8347 /* dlclose (self); */
8348 }
8349
8350 exit (status);
8351}
8352EOF
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8358 (./conftest; exit; ) 2>/dev/null
8359 lt_status=$?
8360 case x$lt_status in
8361 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8362 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8363 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8364 esac
8365 else :
8366 # compilation failed
8367 lt_cv_dlopen_self_static=no
8368 fi
8369fi
8370rm -fr conftest*
8371
8372
8373fi
8374echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8375echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8376 fi
8377
8378 CPPFLAGS="$save_CPPFLAGS"
8379 LDFLAGS="$save_LDFLAGS"
8380 LIBS="$save_LIBS"
8381 ;;
8382 esac
8383
8384 case $lt_cv_dlopen_self in
8385 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8386 *) enable_dlopen_self=unknown ;;
8387 esac
8388
8389 case $lt_cv_dlopen_self_static in
8390 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8391 *) enable_dlopen_self_static=unknown ;;
8392 esac
8393fi
8394
8395
John Criswell47fdd832003-07-14 16:52:07 +00008396# Report which librarie types wil actually be built
8397echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8398echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8399echo "$as_me:$LINENO: result: $can_build_shared" >&5
8400echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008401
John Criswell47fdd832003-07-14 16:52:07 +00008402echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8403echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8404test "$can_build_shared" = "no" && enable_shared=no
8405
8406# On AIX, shared libraries and static libraries use the same namespace, and
8407# are all built from PIC.
8408case "$host_os" in
8409aix3*)
8410 test "$enable_shared" = yes && enable_static=no
8411 if test -n "$RANLIB"; then
8412 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8413 postinstall_cmds='$RANLIB $lib'
8414 fi
8415 ;;
8416
8417aix4*)
8418 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8419 test "$enable_shared" = yes && enable_static=no
8420 fi
8421 ;;
8422 darwin* | rhapsody*)
8423 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8424 archive_cmds_need_lc=no
8425 case "$host_os" in
8426 rhapsody* | darwin1.[012])
8427 allow_undefined_flag='-undefined suppress'
8428 ;;
8429 *) # Darwin 1.3 on
8430 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8431 ;;
8432 esac
8433 # FIXME: Relying on posixy $() will cause problems for
8434 # cross-compilation, but unfortunately the echo tests do not
8435 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8436 # `"' quotes if we put them in here... so don't!
8437 output_verbose_link_cmd='echo'
8438 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8439 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8441 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}'
8442 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}'
8443 hardcode_direct=no
8444 hardcode_automatic=yes
8445 hardcode_shlibpath_var=unsupported
8446 whole_archive_flag_spec='-all_load $convenience'
8447 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008448 fi
John Criswell7a73b802003-06-30 21:59:07 +00008449 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008450esac
8451echo "$as_me:$LINENO: result: $enable_shared" >&5
8452echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008453
John Criswell47fdd832003-07-14 16:52:07 +00008454echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8456# Make sure either enable_shared or enable_static is yes.
8457test "$enable_shared" = yes || enable_static=yes
8458echo "$as_me:$LINENO: result: $enable_static" >&5
8459echo "${ECHO_T}$enable_static" >&6
8460
8461# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008462# libtool distribution, otherwise you forgot to ship ltmain.sh
8463# with your package, and you will get complaints that there are
8464# no rules to generate ltmain.sh.
8465if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008466 # See if we are running on zsh, and set the options which allow our commands through
8467 # without removal of \ escapes.
8468 if test -n "${ZSH_VERSION+set}" ; then
8469 setopt NO_GLOB_SUBST
8470 fi
John Criswell7a73b802003-06-30 21:59:07 +00008471 # Now quote all the things that may contain metacharacters while being
8472 # careful not to overquote the AC_SUBSTed values. We take copies of the
8473 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008474 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8475 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8476 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8477 deplibs_check_method reload_flag reload_cmds need_locks \
8478 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8479 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008480 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008481 old_postinstall_cmds old_postuninstall_cmds \
8482 compiler \
8483 CC \
8484 LD \
8485 lt_prog_compiler_wl \
8486 lt_prog_compiler_pic \
8487 lt_prog_compiler_static \
8488 lt_prog_compiler_no_builtin_flag \
8489 export_dynamic_flag_spec \
8490 thread_safe_flag_spec \
8491 whole_archive_flag_spec \
8492 enable_shared_with_static_runtimes \
8493 old_archive_cmds \
8494 old_archive_from_new_cmds \
8495 predep_objects \
8496 postdep_objects \
8497 predeps \
8498 postdeps \
8499 compiler_lib_search_path \
8500 archive_cmds \
8501 archive_expsym_cmds \
8502 postinstall_cmds \
8503 postuninstall_cmds \
8504 old_archive_from_expsyms_cmds \
8505 allow_undefined_flag \
8506 no_undefined_flag \
8507 export_symbols_cmds \
8508 hardcode_libdir_flag_spec \
8509 hardcode_libdir_flag_spec_ld \
8510 hardcode_libdir_separator \
8511 hardcode_automatic \
8512 module_cmds \
8513 module_expsym_cmds \
8514 lt_cv_prog_compiler_c_o \
8515 exclude_expsyms \
8516 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008517
8518 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008519 old_archive_cmds | \
8520 old_archive_from_new_cmds | \
8521 archive_cmds | \
8522 archive_expsym_cmds | \
8523 module_cmds | \
8524 module_expsym_cmds | \
8525 old_archive_from_expsyms_cmds | \
8526 export_symbols_cmds | \
8527 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008528 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008529 old_postinstall_cmds | old_postuninstall_cmds | \
8530 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008531 # Double-quote double-evaled strings.
8532 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8533 ;;
8534 *)
8535 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8536 ;;
8537 esac
8538 done
8539
John Criswell47fdd832003-07-14 16:52:07 +00008540 case $lt_echo in
8541 *'\$0 --fallback-echo"')
8542 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8543 ;;
8544 esac
8545
8546cfgfile="${ofile}T"
8547 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8548 $rm -f "$cfgfile"
8549 { echo "$as_me:$LINENO: creating $ofile" >&5
8550echo "$as_me: creating $ofile" >&6;}
8551
8552 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008553#! $SHELL
8554
John Criswell47fdd832003-07-14 16:52:07 +00008555# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008556# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8557# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8558#
John Criswell47fdd832003-07-14 16:52:07 +00008559# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8560# Free Software Foundation, Inc.
8561#
8562# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008563# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8564#
8565# This program is free software; you can redistribute it and/or modify
8566# it under the terms of the GNU General Public License as published by
8567# the Free Software Foundation; either version 2 of the License, or
8568# (at your option) any later version.
8569#
8570# This program is distributed in the hope that it will be useful, but
8571# WITHOUT ANY WARRANTY; without even the implied warranty of
8572# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8573# General Public License for more details.
8574#
8575# You should have received a copy of the GNU General Public License
8576# along with this program; if not, write to the Free Software
8577# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8578#
8579# As a special exception to the GNU General Public License, if you
8580# distribute this file as part of a program that contains a
8581# configuration script generated by Autoconf, you may include it under
8582# the same distribution terms that you use for the rest of that program.
8583
John Criswell47fdd832003-07-14 16:52:07 +00008584# A sed program that does not truncate output.
8585SED=$lt_SED
8586
John Criswell7a73b802003-06-30 21:59:07 +00008587# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008588Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008589
8590# The HP-UX ksh and POSIX shell print the target directory to stdout
8591# if CDPATH is set.
8592if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8593
John Criswell47fdd832003-07-14 16:52:07 +00008594# The names of the tagged configurations supported by this script.
8595available_tags=
8596
John Criswell7a73b802003-06-30 21:59:07 +00008597# ### BEGIN LIBTOOL CONFIG
8598
8599# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8600
8601# Shell to use when invoking shell scripts.
8602SHELL=$lt_SHELL
8603
8604# Whether or not to build shared libraries.
8605build_libtool_libs=$enable_shared
8606
8607# Whether or not to build static libraries.
8608build_old_libs=$enable_static
8609
8610# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008611build_libtool_need_lc=$archive_cmds_need_lc
8612
8613# Whether or not to disallow shared libs when runtime libs are static
8614allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008615
8616# Whether or not to optimize for fast installation.
8617fast_install=$enable_fast_install
8618
8619# The host system.
8620host_alias=$host_alias
8621host=$host
8622
8623# An echo program that does not interpret backslashes.
8624echo=$lt_echo
8625
8626# The archiver.
8627AR=$lt_AR
8628AR_FLAGS=$lt_AR_FLAGS
8629
John Criswell47fdd832003-07-14 16:52:07 +00008630# A C compiler.
8631LTCC=$lt_LTCC
8632
8633# A language-specific compiler.
8634CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008635
8636# Is the compiler the GNU C compiler?
8637with_gcc=$GCC
8638
John Criswell47fdd832003-07-14 16:52:07 +00008639# An ERE matcher.
8640EGREP=$lt_EGREP
8641
John Criswell7a73b802003-06-30 21:59:07 +00008642# The linker used to build libraries.
8643LD=$lt_LD
8644
8645# Whether we need hard or soft links.
8646LN_S=$lt_LN_S
8647
8648# A BSD-compatible nm program.
8649NM=$lt_NM
8650
8651# A symbol stripping program
8652STRIP=$STRIP
8653
8654# Used to examine libraries when file_magic_cmd begins "file"
8655MAGIC_CMD=$MAGIC_CMD
8656
8657# Used on cygwin: DLL creation program.
8658DLLTOOL="$DLLTOOL"
8659
8660# Used on cygwin: object dumper.
8661OBJDUMP="$OBJDUMP"
8662
8663# Used on cygwin: assembler.
8664AS="$AS"
8665
8666# The name of the directory that contains temporary libtool files.
8667objdir=$objdir
8668
8669# How to create reloadable object files.
8670reload_flag=$lt_reload_flag
8671reload_cmds=$lt_reload_cmds
8672
8673# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008674wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008675
8676# Object file suffix (normally "o").
8677objext="$ac_objext"
8678
8679# Old archive suffix (normally "a").
8680libext="$libext"
8681
John Criswell47fdd832003-07-14 16:52:07 +00008682# Shared library suffix (normally ".so").
8683shrext='$shrext'
8684
John Criswell7a73b802003-06-30 21:59:07 +00008685# Executable file suffix (normally "").
8686exeext="$exeext"
8687
8688# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008689pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008690pic_mode=$pic_mode
8691
John Criswell47fdd832003-07-14 16:52:07 +00008692# What is the maximum length of a command?
8693max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008694
John Criswell47fdd832003-07-14 16:52:07 +00008695# Does compiler simultaneously support -c and -o options?
8696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008697
8698# Must we lock files when doing compilation ?
8699need_locks=$lt_need_locks
8700
8701# Do we need the lib prefix for modules?
8702need_lib_prefix=$need_lib_prefix
8703
8704# Do we need a version for libraries?
8705need_version=$need_version
8706
8707# Whether dlopen is supported.
8708dlopen_support=$enable_dlopen
8709
8710# Whether dlopen of programs is supported.
8711dlopen_self=$enable_dlopen_self
8712
8713# Whether dlopen of statically linked programs is supported.
8714dlopen_self_static=$enable_dlopen_self_static
8715
8716# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008717link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008718
8719# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008721
8722# Compiler flag to allow reflexive dlopens.
8723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8724
8725# Compiler flag to generate shared objects directly from archives.
8726whole_archive_flag_spec=$lt_whole_archive_flag_spec
8727
8728# Compiler flag to generate thread-safe objects.
8729thread_safe_flag_spec=$lt_thread_safe_flag_spec
8730
8731# Library versioning type.
8732version_type=$version_type
8733
8734# Format of library name prefix.
8735libname_spec=$lt_libname_spec
8736
8737# List of archive names. First name is the real one, the rest are links.
8738# The last name is the one that the linker finds with -lNAME.
8739library_names_spec=$lt_library_names_spec
8740
8741# The coded name of the library, if different from the real name.
8742soname_spec=$lt_soname_spec
8743
8744# Commands used to build and install an old-style archive.
8745RANLIB=$lt_RANLIB
8746old_archive_cmds=$lt_old_archive_cmds
8747old_postinstall_cmds=$lt_old_postinstall_cmds
8748old_postuninstall_cmds=$lt_old_postuninstall_cmds
8749
8750# Create an old-style archive from a shared archive.
8751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8752
8753# Create a temporary old-style archive to link instead of a shared archive.
8754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8755
8756# Commands used to build and install a shared archive.
8757archive_cmds=$lt_archive_cmds
8758archive_expsym_cmds=$lt_archive_expsym_cmds
8759postinstall_cmds=$lt_postinstall_cmds
8760postuninstall_cmds=$lt_postuninstall_cmds
8761
John Criswell47fdd832003-07-14 16:52:07 +00008762# Commands used to build a loadable module (assumed same as above if empty)
8763module_cmds=$lt_module_cmds
8764module_expsym_cmds=$lt_module_expsym_cmds
8765
John Criswell7a73b802003-06-30 21:59:07 +00008766# Commands to strip libraries.
8767old_striplib=$lt_old_striplib
8768striplib=$lt_striplib
8769
John Criswell47fdd832003-07-14 16:52:07 +00008770# Dependencies to place before the objects being linked to create a
8771# shared library.
8772predep_objects=$lt_predep_objects
8773
8774# Dependencies to place after the objects being linked to create a
8775# shared library.
8776postdep_objects=$lt_postdep_objects
8777
8778# Dependencies to place before the objects being linked to create a
8779# shared library.
8780predeps=$lt_predeps
8781
8782# Dependencies to place after the objects being linked to create a
8783# shared library.
8784postdeps=$lt_postdeps
8785
8786# The library search path used internally by the compiler when linking
8787# a shared library.
8788compiler_lib_search_path=$lt_compiler_lib_search_path
8789
John Criswell7a73b802003-06-30 21:59:07 +00008790# Method to check whether dependent libraries are shared objects.
8791deplibs_check_method=$lt_deplibs_check_method
8792
8793# Command to use when deplibs_check_method == file_magic.
8794file_magic_cmd=$lt_file_magic_cmd
8795
8796# Flag that allows shared libraries with undefined symbols to be built.
8797allow_undefined_flag=$lt_allow_undefined_flag
8798
8799# Flag that forces no undefined symbols.
8800no_undefined_flag=$lt_no_undefined_flag
8801
8802# Commands used to finish a libtool library installation in a directory.
8803finish_cmds=$lt_finish_cmds
8804
8805# Same as above, but a single script fragment to be evaled but not shown.
8806finish_eval=$lt_finish_eval
8807
8808# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008810
8811# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008813
8814# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008816
8817# This is the shared library runtime path variable.
8818runpath_var=$runpath_var
8819
8820# This is the shared library path variable.
8821shlibpath_var=$shlibpath_var
8822
8823# Is shlibpath searched before the hard-coded library search path?
8824shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8825
8826# How to hardcode a shared library path into an executable.
8827hardcode_action=$hardcode_action
8828
8829# Whether we should hardcode library paths into libraries.
8830hardcode_into_libs=$hardcode_into_libs
8831
8832# Flag to hardcode \$libdir into a binary during linking.
8833# This must work even if \$libdir does not exist.
8834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8835
John Criswell47fdd832003-07-14 16:52:07 +00008836# If ld is used when linking, flag to hardcode \$libdir into
8837# a binary during linking. This must work even if \$libdir does
8838# not exist.
8839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8840
John Criswell7a73b802003-06-30 21:59:07 +00008841# Whether we need a single -rpath flag with a separated argument.
8842hardcode_libdir_separator=$lt_hardcode_libdir_separator
8843
John Criswell47fdd832003-07-14 16:52:07 +00008844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008845# resulting binary.
8846hardcode_direct=$hardcode_direct
8847
8848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8849# resulting binary.
8850hardcode_minus_L=$hardcode_minus_L
8851
8852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8853# the resulting binary.
8854hardcode_shlibpath_var=$hardcode_shlibpath_var
8855
John Criswell47fdd832003-07-14 16:52:07 +00008856# Set to yes if building a shared library automatically hardcodes DIR into the library
8857# and all subsequent libraries and executables linked against it.
8858hardcode_automatic=$hardcode_automatic
8859
John Criswell7a73b802003-06-30 21:59:07 +00008860# Variables whose values should be saved in libtool wrapper scripts and
8861# restored at relink time.
8862variables_saved_for_relink="$variables_saved_for_relink"
8863
8864# Whether libtool must link a program against all its dependency libraries.
8865link_all_deplibs=$link_all_deplibs
8866
8867# Compile-time system search path for libraries
8868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8869
8870# Run-time system search path for libraries
8871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8872
8873# Fix the shell variable \$srcfile for the compiler.
8874fix_srcfile_path="$fix_srcfile_path"
8875
8876# Set to yes if exported symbols are required.
8877always_export_symbols=$always_export_symbols
8878
8879# The commands to list exported symbols.
8880export_symbols_cmds=$lt_export_symbols_cmds
8881
8882# The commands to extract the exported symbol list from a shared archive.
8883extract_expsyms_cmds=$lt_extract_expsyms_cmds
8884
8885# Symbols that should not be listed in the preloaded symbols.
8886exclude_expsyms=$lt_exclude_expsyms
8887
8888# Symbols that must always be exported.
8889include_expsyms=$lt_include_expsyms
8890
8891# ### END LIBTOOL CONFIG
8892
8893__EOF__
8894
John Criswell47fdd832003-07-14 16:52:07 +00008895
John Criswell7a73b802003-06-30 21:59:07 +00008896 case $host_os in
8897 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008898 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008899
8900# AIX sometimes has problems with the GCC collect2 program. For some
8901# reason, if we set the COLLECT_NAMES environment variable, the problems
8902# vanish in a puff of smoke.
8903if test "X${COLLECT_NAMES+set}" != Xset; then
8904 COLLECT_NAMES=
8905 export COLLECT_NAMES
8906fi
8907EOF
8908 ;;
8909 esac
8910
John Criswell7a73b802003-06-30 21:59:07 +00008911 # We use sed instead of cat because bash on DJGPP gets confused if
8912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8913 # text mode, it properly converts lines to CR/LF. This bash problem
8914 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008915 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008916
John Criswell47fdd832003-07-14 16:52:07 +00008917 mv -f "$cfgfile" "$ofile" || \
8918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008919 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008920
8921else
8922 # If there is no Makefile yet, we rely on a make rule to execute
8923 # `config.status --recheck' to rerun these tests and create the
8924 # libtool script then.
8925 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008926fi
John Criswell7a73b802003-06-30 21:59:07 +00008927
8928
John Criswell47fdd832003-07-14 16:52:07 +00008929ac_ext=c
8930ac_cpp='$CPP $CPPFLAGS'
8931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934
8935CC="$lt_save_CC"
8936
8937
8938# Check whether --with-tags or --without-tags was given.
8939if test "${with_tags+set}" = set; then
8940 withval="$with_tags"
8941 tagnames="$withval"
8942fi;
8943
8944if test -f "$ltmain" && test -n "$tagnames"; then
8945 if test ! -f "${ofile}"; then
8946 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8947echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8948 fi
8949
8950 if test -z "$LTCC"; then
8951 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8952 if test -z "$LTCC"; then
8953 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8954echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8955 else
8956 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8957echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8958 fi
8959 fi
8960
8961 # Extract list of available tagged configurations in $ofile.
8962 # Note that this assumes the entire list is on one line.
8963 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8964
8965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8966 for tagname in $tagnames; do
8967 IFS="$lt_save_ifs"
8968 # Check whether tagname contains only valid characters
8969 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8970 "") ;;
8971 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8972echo "$as_me: error: invalid tag name: $tagname" >&2;}
8973 { (exit 1); exit 1; }; }
8974 ;;
8975 esac
8976
8977 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8978 then
8979 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8980echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8981 { (exit 1); exit 1; }; }
8982 fi
8983
8984 # Update the list of available tags.
8985 if test -n "$tagname"; then
8986 echo appending configuration tag \"$tagname\" to $ofile
8987
8988 case $tagname in
8989 CXX)
8990 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8991 ac_ext=cc
8992ac_cpp='$CXXCPP $CPPFLAGS'
8993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8996
8997
8998
8999
9000archive_cmds_need_lc_CXX=no
9001allow_undefined_flag_CXX=
9002always_export_symbols_CXX=no
9003archive_expsym_cmds_CXX=
9004export_dynamic_flag_spec_CXX=
9005hardcode_direct_CXX=no
9006hardcode_libdir_flag_spec_CXX=
9007hardcode_libdir_flag_spec_ld_CXX=
9008hardcode_libdir_separator_CXX=
9009hardcode_minus_L_CXX=no
9010hardcode_automatic_CXX=no
9011module_cmds_CXX=
9012module_expsym_cmds_CXX=
9013link_all_deplibs_CXX=unknown
9014old_archive_cmds_CXX=$old_archive_cmds
9015no_undefined_flag_CXX=
9016whole_archive_flag_spec_CXX=
9017enable_shared_with_static_runtimes_CXX=no
9018
9019# Dependencies to place before and after the object being linked:
9020predep_objects_CXX=
9021postdep_objects_CXX=
9022predeps_CXX=
9023postdeps_CXX=
9024compiler_lib_search_path_CXX=
9025
9026# Source file extension for C++ test sources.
9027ac_ext=cc
9028
9029# Object file extension for compiled C++ test sources.
9030objext=o
9031objext_CXX=$objext
9032
9033# Code to be used in simple compile tests
9034lt_simple_compile_test_code="int some_variable = 0;\n"
9035
9036# Code to be used in simple link tests
9037lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9038
9039# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9040
9041# If no C compiler was specified, use CC.
9042LTCC=${LTCC-"$CC"}
9043
9044# Allow CC to be a program name with arguments.
9045compiler=$CC
9046
9047
9048# Allow CC to be a program name with arguments.
9049lt_save_CC=$CC
9050lt_save_LD=$LD
9051lt_save_GCC=$GCC
9052GCC=$GXX
9053lt_save_with_gnu_ld=$with_gnu_ld
9054lt_save_path_LD=$lt_cv_path_LD
9055if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9056 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9057else
9058 unset lt_cv_prog_gnu_ld
9059fi
9060if test -n "${lt_cv_path_LDCXX+set}"; then
9061 lt_cv_path_LD=$lt_cv_path_LDCXX
9062else
9063 unset lt_cv_path_LD
9064fi
9065test -z "${LDCXX+set}" || LD=$LDCXX
9066CC=${CXX-"c++"}
9067compiler=$CC
9068compiler_CXX=$CC
9069cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9070
9071# We don't want -fno-exception wen compiling C++ code, so set the
9072# no_builtin_flag separately
9073if test "$GXX" = yes; then
9074 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9075else
9076 lt_prog_compiler_no_builtin_flag_CXX=
9077fi
9078
9079if test "$GXX" = yes; then
9080 # Set up default GNU C++ configuration
9081
9082
9083# Check whether --with-gnu-ld or --without-gnu-ld was given.
9084if test "${with_gnu_ld+set}" = set; then
9085 withval="$with_gnu_ld"
9086 test "$withval" = no || with_gnu_ld=yes
9087else
9088 with_gnu_ld=no
9089fi;
9090ac_prog=ld
9091if test "$GCC" = yes; then
9092 # Check if gcc -print-prog-name=ld gives a path.
9093 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9094echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9095 case $host in
9096 *-*-mingw*)
9097 # gcc leaves a trailing carriage return which upsets mingw
9098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9099 *)
9100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9101 esac
9102 case $ac_prog in
9103 # Accept absolute paths.
9104 [\\/]* | ?:[\\/]*)
9105 re_direlt='/[^/][^/]*/\.\./'
9106 # Canonicalize the path of ld
9107 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9108 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9109 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9110 done
9111 test -z "$LD" && LD="$ac_prog"
9112 ;;
9113 "")
9114 # If it fails, then pretend we aren't using GCC.
9115 ac_prog=ld
9116 ;;
9117 *)
9118 # If it is relative, then search for the first ld in PATH.
9119 with_gnu_ld=unknown
9120 ;;
9121 esac
9122elif test "$with_gnu_ld" = yes; then
9123 echo "$as_me:$LINENO: checking for GNU ld" >&5
9124echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9125else
9126 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9127echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9128fi
9129if test "${lt_cv_path_LD+set}" = set; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132 if test -z "$LD"; then
9133 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9134 for ac_dir in $PATH; do
9135 IFS="$lt_save_ifs"
9136 test -z "$ac_dir" && ac_dir=.
9137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9138 lt_cv_path_LD="$ac_dir/$ac_prog"
9139 # Check to see if the program is GNU ld. I'd rather use --version,
9140 # but apparently some GNU ld's only accept -v.
9141 # Break only if it was the GNU/non-GNU ld that we prefer.
9142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9143 *GNU* | *'with BFD'*)
9144 test "$with_gnu_ld" != no && break
9145 ;;
9146 *)
9147 test "$with_gnu_ld" != yes && break
9148 ;;
9149 esac
9150 fi
9151 done
9152 IFS="$lt_save_ifs"
9153else
9154 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9155fi
9156fi
9157
9158LD="$lt_cv_path_LD"
9159if test -n "$LD"; then
9160 echo "$as_me:$LINENO: result: $LD" >&5
9161echo "${ECHO_T}$LD" >&6
9162else
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
9165fi
9166test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9167echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9168 { (exit 1); exit 1; }; }
9169echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9170echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9171if test "${lt_cv_prog_gnu_ld+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9175case `"$LD" -v 2>&1 </dev/null` in
9176*GNU* | *'with BFD'*)
9177 lt_cv_prog_gnu_ld=yes
9178 ;;
9179*)
9180 lt_cv_prog_gnu_ld=no
9181 ;;
9182esac
9183fi
9184echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9185echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9186with_gnu_ld=$lt_cv_prog_gnu_ld
9187
9188
9189
9190 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9191 # archiving commands below assume that GNU ld is being used.
9192 if test "$with_gnu_ld" = yes; then
9193 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194 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'
9195
9196 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9197 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9198
9199 # If archive_cmds runs LD, not CC, wlarc should be empty
9200 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9201 # investigate it a little bit more. (MM)
9202 wlarc='${wl}'
9203
9204 # ancient GNU ld didn't support --whole-archive et. al.
9205 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9206 grep 'no-whole-archive' > /dev/null; then
9207 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9208 else
9209 whole_archive_flag_spec_CXX=
9210 fi
9211 else
9212 with_gnu_ld=no
9213 wlarc=
9214
9215 # A generic and very simple default shared library creation
9216 # command for GNU C++ for the case where it uses the native
9217 # linker, instead of GNU ld. If possible, this setting should
9218 # overridden to take advantage of the native linker features on
9219 # the platform it is being used on.
9220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9221 fi
9222
9223 # Commands to make compiler produce verbose output that lists
9224 # what "hidden" libraries, object files and flags are used when
9225 # linking a shared library.
9226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9227
9228else
9229 GXX=no
9230 with_gnu_ld=no
9231 wlarc=
9232fi
9233
9234# PORTME: fill in a description of your system's C++ link characteristics
9235echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9236echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9237ld_shlibs_CXX=yes
9238case $host_os in
9239 aix3*)
9240 # FIXME: insert proper C++ library support
9241 ld_shlibs_CXX=no
9242 ;;
9243 aix4* | aix5*)
9244 if test "$host_cpu" = ia64; then
9245 # On IA64, the linker does run time linking by default, so we don't
9246 # have to do anything special.
9247 aix_use_runtimelinking=no
9248 exp_sym_flag='-Bexport'
9249 no_entry_flag=""
9250 else
9251 aix_use_runtimelinking=no
9252
9253 # Test if we are trying to use run time linking or normal
9254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9255 # need to do runtime linking.
9256 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9257 for ld_flag in $LDFLAGS; do
9258 case $ld_flag in
9259 *-brtl*)
9260 aix_use_runtimelinking=yes
9261 break
9262 ;;
9263 esac
9264 done
9265 esac
9266
9267 exp_sym_flag='-bexport'
9268 no_entry_flag='-bnoentry'
9269 fi
9270
9271 # When large executables or shared objects are built, AIX ld can
9272 # have problems creating the table of contents. If linking a library
9273 # or program results in "error TOC overflow" add -mminimal-toc to
9274 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9275 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9276
9277 archive_cmds_CXX=''
9278 hardcode_direct_CXX=yes
9279 hardcode_libdir_separator_CXX=':'
9280 link_all_deplibs_CXX=yes
9281
9282 if test "$GXX" = yes; then
9283 case $host_os in aix4.012|aix4.012.*)
9284 # We only want to do this on AIX 4.2 and lower, the check
9285 # below for broken collect2 doesn't work under 4.3+
9286 collect2name=`${CC} -print-prog-name=collect2`
9287 if test -f "$collect2name" && \
9288 strings "$collect2name" | grep resolve_lib_name >/dev/null
9289 then
9290 # We have reworked collect2
9291 hardcode_direct_CXX=yes
9292 else
9293 # We have old collect2
9294 hardcode_direct_CXX=unsupported
9295 # It fails to find uninstalled libraries when the uninstalled
9296 # path is not listed in the libpath. Setting hardcode_minus_L
9297 # to unsupported forces relinking
9298 hardcode_minus_L_CXX=yes
9299 hardcode_libdir_flag_spec_CXX='-L$libdir'
9300 hardcode_libdir_separator_CXX=
9301 fi
9302 esac
9303 shared_flag='-shared'
9304 else
9305 # not using gcc
9306 if test "$host_cpu" = ia64; then
9307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9308 # chokes on -Wl,-G. The following line is correct:
9309 shared_flag='-G'
9310 else
9311 if test "$aix_use_runtimelinking" = yes; then
9312 shared_flag='${wl}-G'
9313 else
9314 shared_flag='${wl}-bM:SRE'
9315 fi
9316 fi
9317 fi
9318
9319 # It seems that -bexpall does not export symbols beginning with
9320 # underscore (_), so it is better to generate a list of symbols to export.
9321 always_export_symbols_CXX=yes
9322 if test "$aix_use_runtimelinking" = yes; then
9323 # Warning - without using the other runtime loading flags (-brtl),
9324 # -berok will link without error, but may produce a broken library.
9325 allow_undefined_flag_CXX='-berok'
9326 # Determine the default libpath from the value encoded in an empty executable.
9327 cat >conftest.$ac_ext <<_ACEOF
9328#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00009329#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00009330
John Criswelld9cd1442003-09-09 20:52:17 +00009331#ifdef F77_DUMMY_MAIN
9332# ifdef __cplusplus
9333 extern "C"
9334# endif
9335 int F77_DUMMY_MAIN() { return 1; }
9336#endif
John Criswell47fdd832003-07-14 16:52:07 +00009337int
9338main ()
9339{
9340
9341 ;
9342 return 0;
9343}
9344_ACEOF
9345rm -f conftest.$ac_objext conftest$ac_exeext
9346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347 (eval $ac_link) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest$ac_exeext'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357
9358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9359}'`
9360# Check for a 64-bit object if we didn't find anything.
9361if 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; }
9362}'`; fi
9363else
9364 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00009365cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00009366fi
9367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9369
9370 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9371
9372 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"
9373 else
9374 if test "$host_cpu" = ia64; then
9375 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9376 allow_undefined_flag_CXX="-z nodefs"
9377 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"
9378 else
9379 # Determine the default libpath from the value encoded in an empty executable.
9380 cat >conftest.$ac_ext <<_ACEOF
9381#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +00009382#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +00009383
John Criswelld9cd1442003-09-09 20:52:17 +00009384#ifdef F77_DUMMY_MAIN
9385# ifdef __cplusplus
9386 extern "C"
9387# endif
9388 int F77_DUMMY_MAIN() { return 1; }
9389#endif
John Criswell47fdd832003-07-14 16:52:07 +00009390int
9391main ()
9392{
9393
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext conftest$ac_exeext
9399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400 (eval $ac_link) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410
9411aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9412}'`
9413# Check for a 64-bit object if we didn't find anything.
9414if 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; }
9415}'`; fi
9416else
9417 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +00009418cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +00009419fi
9420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9422
9423 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9424 # Warning - without using the other run time loading flags,
9425 # -berok will link without error, but may produce a broken library.
9426 no_undefined_flag_CXX=' ${wl}-bernotok'
9427 allow_undefined_flag_CXX=' ${wl}-berok'
9428 # -bexpall does not export symbols beginning with underscore (_)
9429 always_export_symbols_CXX=yes
9430 # Exported symbols can be pulled into shared objects from archives
9431 whole_archive_flag_spec_CXX=' '
9432 archive_cmds_need_lc_CXX=yes
9433 # This is similar to how AIX traditionally builds it's shared libraries.
9434 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'
9435 fi
9436 fi
9437 ;;
9438 chorus*)
9439 case $cc_basename in
9440 *)
9441 # FIXME: insert proper C++ library support
9442 ld_shlibs_CXX=no
9443 ;;
9444 esac
9445 ;;
9446
9447 cygwin* | mingw* | pw32*)
9448 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9449 # as there is no search path for DLLs.
9450 hardcode_libdir_flag_spec_CXX='-L$libdir'
9451 allow_undefined_flag_CXX=unsupported
9452 always_export_symbols_CXX=no
9453 enable_shared_with_static_runtimes_CXX=yes
9454
9455 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9456 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'
9457 # If the export-symbols file already is a .def file (1st line
9458 # is EXPORTS), use it as is; otherwise, prepend...
9459 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9460 cp $export_symbols $output_objdir/$soname.def;
9461 else
9462 echo EXPORTS > $output_objdir/$soname.def;
9463 cat $export_symbols >> $output_objdir/$soname.def;
9464 fi~
9465 $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'
9466 else
9467 ld_shlibs_CXX=no
9468 fi
9469 ;;
9470
9471 darwin* | rhapsody*)
9472 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9473 archive_cmds_need_lc_CXX=no
9474 case "$host_os" in
9475 rhapsody* | darwin1.[012])
9476 allow_undefined_flag_CXX='-undefined suppress'
9477 ;;
9478 *) # Darwin 1.3 on
9479 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9480 ;;
9481 esac
9482 lt_int_apple_cc_single_mod=no
9483 output_verbose_link_cmd='echo'
9484 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9485 lt_int_apple_cc_single_mod=yes
9486 fi
9487 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9488 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9489 else
9490 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'
9491 fi
9492 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9493
9494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496 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}'
9497 else
9498 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}'
9499 fi
9500 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}'
9501 hardcode_direct_CXX=no
9502 hardcode_automatic_CXX=yes
9503 hardcode_shlibpath_var_CXX=unsupported
9504 whole_archive_flag_spec_CXX='-all_load $convenience'
9505 link_all_deplibs_CXX=yes
9506 fi
9507 ;;
9508
9509 dgux*)
9510 case $cc_basename in
9511 ec++)
9512 # FIXME: insert proper C++ library support
9513 ld_shlibs_CXX=no
9514 ;;
9515 ghcx)
9516 # Green Hills C++ Compiler
9517 # FIXME: insert proper C++ library support
9518 ld_shlibs_CXX=no
9519 ;;
9520 *)
9521 # FIXME: insert proper C++ library support
9522 ld_shlibs_CXX=no
9523 ;;
9524 esac
9525 ;;
9526 freebsd12*)
9527 # C++ shared libraries reported to be fairly broken before switch to ELF
9528 ld_shlibs_CXX=no
9529 ;;
9530 freebsd-elf*)
9531 archive_cmds_need_lc_CXX=no
9532 ;;
9533 freebsd*)
9534 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9535 # conventions
9536 ld_shlibs_CXX=yes
9537 ;;
9538 gnu*)
9539 ;;
9540 hpux9*)
9541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_separator_CXX=:
9543 export_dynamic_flag_spec_CXX='${wl}-E'
9544 hardcode_direct_CXX=yes
9545 hardcode_minus_L_CXX=yes # Not in the search PATH,
9546 # but as the default
9547 # location of the library.
9548
9549 case $cc_basename in
9550 CC)
9551 # FIXME: insert proper C++ library support
9552 ld_shlibs_CXX=no
9553 ;;
9554 aCC)
9555 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'
9556 # Commands to make compiler produce verbose output that lists
9557 # what "hidden" libraries, object files and flags are used when
9558 # linking a shared library.
9559 #
9560 # There doesn't appear to be a way to prevent this compiler from
9561 # explicitly linking system object files so we need to strip them
9562 # from the output so that they don't get included in the library
9563 # dependencies.
9564 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'
9565 ;;
9566 *)
9567 if test "$GXX" = yes; then
9568 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'
9569 else
9570 # FIXME: insert proper C++ library support
9571 ld_shlibs_CXX=no
9572 fi
9573 ;;
9574 esac
9575 ;;
9576 hpux10*|hpux11*)
9577 if test $with_gnu_ld = no; then
9578 case "$host_cpu" in
9579 hppa*64*)
9580 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9582 hardcode_libdir_separator_CXX=:
9583 ;;
9584 ia64*)
9585 hardcode_libdir_flag_spec_CXX='-L$libdir'
9586 ;;
9587 *)
9588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589 hardcode_libdir_separator_CXX=:
9590 export_dynamic_flag_spec_CXX='${wl}-E'
9591 ;;
9592 esac
9593 fi
9594 case "$host_cpu" in
9595 hppa*64*)
9596 hardcode_direct_CXX=no
9597 hardcode_shlibpath_var_CXX=no
9598 ;;
9599 ia64*)
9600 hardcode_direct_CXX=no
9601 hardcode_shlibpath_var_CXX=no
9602 hardcode_minus_L_CXX=yes # Not in the search PATH,
9603 # but as the default
9604 # location of the library.
9605 ;;
9606 *)
9607 hardcode_direct_CXX=yes
9608 hardcode_minus_L_CXX=yes # Not in the search PATH,
9609 # but as the default
9610 # location of the library.
9611 ;;
9612 esac
9613
9614 case $cc_basename in
9615 CC)
9616 # FIXME: insert proper C++ library support
9617 ld_shlibs_CXX=no
9618 ;;
9619 aCC)
9620 case "$host_cpu" in
9621 hppa*64*|ia64*)
9622 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9623 ;;
9624 *)
9625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9626 ;;
9627 esac
9628 # Commands to make compiler produce verbose output that lists
9629 # what "hidden" libraries, object files and flags are used when
9630 # linking a shared library.
9631 #
9632 # There doesn't appear to be a way to prevent this compiler from
9633 # explicitly linking system object files so we need to strip them
9634 # from the output so that they don't get included in the library
9635 # dependencies.
9636 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'
9637 ;;
9638 *)
9639 if test "$GXX" = yes; then
9640 if test $with_gnu_ld = no; then
9641 case "$host_cpu" in
9642 ia64*|hppa*64*)
9643 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9644 ;;
9645 *)
9646 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'
9647 ;;
9648 esac
9649 fi
9650 else
9651 # FIXME: insert proper C++ library support
9652 ld_shlibs_CXX=no
9653 fi
9654 ;;
9655 esac
9656 ;;
9657 irix5* | irix6*)
9658 case $cc_basename in
9659 CC)
9660 # SGI C++
9661 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'
9662
9663 # Archives containing C++ object files must be created using
9664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9665 # necessary to make sure instantiated templates are included
9666 # in the archive.
9667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9668 ;;
9669 *)
9670 if test "$GXX" = yes; then
9671 if test "$with_gnu_ld" = no; then
9672 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'
9673 else
9674 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'
9675 fi
9676 fi
9677 link_all_deplibs_CXX=yes
9678 ;;
9679 esac
9680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681 hardcode_libdir_separator_CXX=:
9682 ;;
9683 linux*)
9684 case $cc_basename in
9685 KCC)
9686 # Kuck and Associates, Inc. (KAI) C++ Compiler
9687
9688 # KCC will only create a shared library if the output file
9689 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9690 # to its proper name (with version) after linking.
9691 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'
9692 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'
9693 # Commands to make compiler produce verbose output that lists
9694 # what "hidden" libraries, object files and flags are used when
9695 # linking a shared library.
9696 #
9697 # There doesn't appear to be a way to prevent this compiler from
9698 # explicitly linking system object files so we need to strip them
9699 # from the output so that they don't get included in the library
9700 # dependencies.
9701 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'
9702
9703 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9705
9706 # Archives containing C++ object files must be created using
9707 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9708 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9709 ;;
9710 icpc)
9711 # Intel C++
9712 with_gnu_ld=yes
9713 archive_cmds_need_lc_CXX=no
9714 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715 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'
9716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719 ;;
9720 cxx)
9721 # Compaq C++
9722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 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'
9724
9725 runpath_var=LD_RUN_PATH
9726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9727 hardcode_libdir_separator_CXX=:
9728
9729 # Commands to make compiler produce verbose output that lists
9730 # what "hidden" libraries, object files and flags are used when
9731 # linking a shared library.
9732 #
9733 # There doesn't appear to be a way to prevent this compiler from
9734 # explicitly linking system object files so we need to strip them
9735 # from the output so that they don't get included in the library
9736 # dependencies.
9737 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'
9738 ;;
9739 esac
9740 ;;
9741 lynxos*)
9742 # FIXME: insert proper C++ library support
9743 ld_shlibs_CXX=no
9744 ;;
9745 m88k*)
9746 # FIXME: insert proper C++ library support
9747 ld_shlibs_CXX=no
9748 ;;
9749 mvs*)
9750 case $cc_basename in
9751 cxx)
9752 # FIXME: insert proper C++ library support
9753 ld_shlibs_CXX=no
9754 ;;
9755 *)
9756 # FIXME: insert proper C++ library support
9757 ld_shlibs_CXX=no
9758 ;;
9759 esac
9760 ;;
9761 netbsd*)
9762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9764 wlarc=
9765 hardcode_libdir_flag_spec_CXX='-R$libdir'
9766 hardcode_direct_CXX=yes
9767 hardcode_shlibpath_var_CXX=no
9768 fi
9769 # Workaround some broken pre-1.5 toolchains
9770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9771 ;;
9772 osf3*)
9773 case $cc_basename in
9774 KCC)
9775 # Kuck and Associates, Inc. (KAI) C++ Compiler
9776
9777 # KCC will only create a shared library if the output file
9778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9779 # to its proper name (with version) after linking.
9780 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'
9781
9782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9783 hardcode_libdir_separator_CXX=:
9784
9785 # Archives containing C++ object files must be created using
9786 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9787 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9788
9789 ;;
9790 RCC)
9791 # Rational C++ 2.4.1
9792 # FIXME: insert proper C++ library support
9793 ld_shlibs_CXX=no
9794 ;;
9795 cxx)
9796 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9797 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'
9798
9799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9800 hardcode_libdir_separator_CXX=:
9801
9802 # Commands to make compiler produce verbose output that lists
9803 # what "hidden" libraries, object files and flags are used when
9804 # linking a shared library.
9805 #
9806 # There doesn't appear to be a way to prevent this compiler from
9807 # explicitly linking system object files so we need to strip them
9808 # from the output so that they don't get included in the library
9809 # dependencies.
9810 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'
9811 ;;
9812 *)
9813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9815 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'
9816
9817 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator_CXX=:
9819
9820 # Commands to make compiler produce verbose output that lists
9821 # what "hidden" libraries, object files and flags are used when
9822 # linking a shared library.
9823 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9824
9825 else
9826 # FIXME: insert proper C++ library support
9827 ld_shlibs_CXX=no
9828 fi
9829 ;;
9830 esac
9831 ;;
9832 osf4* | osf5*)
9833 case $cc_basename in
9834 KCC)
9835 # Kuck and Associates, Inc. (KAI) C++ Compiler
9836
9837 # KCC will only create a shared library if the output file
9838 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9839 # to its proper name (with version) after linking.
9840 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'
9841
9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9843 hardcode_libdir_separator_CXX=:
9844
9845 # Archives containing C++ object files must be created using
9846 # the KAI C++ compiler.
9847 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9848 ;;
9849 RCC)
9850 # Rational C++ 2.4.1
9851 # FIXME: insert proper C++ library support
9852 ld_shlibs_CXX=no
9853 ;;
9854 cxx)
9855 allow_undefined_flag_CXX=' -expect_unresolved \*'
9856 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'
9857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9858 echo "-hidden">> $lib.exp~
9859 $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~
9860 $rm $lib.exp'
9861
9862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9863 hardcode_libdir_separator_CXX=:
9864
9865 # Commands to make compiler produce verbose output that lists
9866 # what "hidden" libraries, object files and flags are used when
9867 # linking a shared library.
9868 #
9869 # There doesn't appear to be a way to prevent this compiler from
9870 # explicitly linking system object files so we need to strip them
9871 # from the output so that they don't get included in the library
9872 # dependencies.
9873 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'
9874 ;;
9875 *)
9876 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9878 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'
9879
9880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9881 hardcode_libdir_separator_CXX=:
9882
9883 # Commands to make compiler produce verbose output that lists
9884 # what "hidden" libraries, object files and flags are used when
9885 # linking a shared library.
9886 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9887
9888 else
9889 # FIXME: insert proper C++ library support
9890 ld_shlibs_CXX=no
9891 fi
9892 ;;
9893 esac
9894 ;;
9895 psos*)
9896 # FIXME: insert proper C++ library support
9897 ld_shlibs_CXX=no
9898 ;;
9899 sco*)
9900 archive_cmds_need_lc_CXX=no
9901 case $cc_basename in
9902 CC)
9903 # FIXME: insert proper C++ library support
9904 ld_shlibs_CXX=no
9905 ;;
9906 *)
9907 # FIXME: insert proper C++ library support
9908 ld_shlibs_CXX=no
9909 ;;
9910 esac
9911 ;;
9912 sunos4*)
9913 case $cc_basename in
9914 CC)
9915 # Sun C++ 4.x
9916 # FIXME: insert proper C++ library support
9917 ld_shlibs_CXX=no
9918 ;;
9919 lcc)
9920 # Lucid
9921 # FIXME: insert proper C++ library support
9922 ld_shlibs_CXX=no
9923 ;;
9924 *)
9925 # FIXME: insert proper C++ library support
9926 ld_shlibs_CXX=no
9927 ;;
9928 esac
9929 ;;
9930 solaris*)
9931 case $cc_basename in
9932 CC)
9933 # Sun C++ 4.2, 5.x and Centerline C++
9934 no_undefined_flag_CXX=' -zdefs'
9935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9937 $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'
9938
9939 hardcode_libdir_flag_spec_CXX='-R$libdir'
9940 hardcode_shlibpath_var_CXX=no
9941 case $host_os in
9942 solaris2.0-5 | solaris2.0-5.*) ;;
9943 *)
9944 # The C++ compiler is used as linker so we must use $wl
9945 # flag to pass the commands to the underlying system
9946 # linker.
9947 # Supported since Solaris 2.6 (maybe 2.5.1?)
9948 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9949 ;;
9950 esac
9951 link_all_deplibs_CXX=yes
9952
9953 # Commands to make compiler produce verbose output that lists
9954 # what "hidden" libraries, object files and flags are used when
9955 # linking a shared library.
9956 #
9957 # There doesn't appear to be a way to prevent this compiler from
9958 # explicitly linking system object files so we need to strip them
9959 # from the output so that they don't get included in the library
9960 # dependencies.
9961 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'
9962
9963 # Archives containing C++ object files must be created using
9964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9965 # necessary to make sure instantiated templates are included
9966 # in the archive.
9967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9968 ;;
9969 gcx)
9970 # Green Hills C++ Compiler
9971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9972
9973 # The C++ compiler must be used to create the archive.
9974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9975 ;;
9976 *)
9977 # GNU C++ compiler with Solaris linker
9978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9980 if $CC --version | grep -v '^2\.7' > /dev/null; then
9981 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9983 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9984
9985 # Commands to make compiler produce verbose output that lists
9986 # what "hidden" libraries, object files and flags are used when
9987 # linking a shared library.
9988 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9989 else
9990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9991 # platform.
9992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9995
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
9999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10000 fi
10001
10002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10003 fi
10004 ;;
10005 esac
10006 ;;
10007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10008 archive_cmds_need_lc_CXX=no
10009 ;;
10010 tandem*)
10011 case $cc_basename in
10012 NCC)
10013 # NonStop-UX NCC 3.20
10014 # FIXME: insert proper C++ library support
10015 ld_shlibs_CXX=no
10016 ;;
10017 *)
10018 # FIXME: insert proper C++ library support
10019 ld_shlibs_CXX=no
10020 ;;
10021 esac
10022 ;;
10023 vxworks*)
10024 # FIXME: insert proper C++ library support
10025 ld_shlibs_CXX=no
10026 ;;
10027 *)
10028 # FIXME: insert proper C++ library support
10029 ld_shlibs_CXX=no
10030 ;;
10031esac
10032echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10033echo "${ECHO_T}$ld_shlibs_CXX" >&6
10034test "$ld_shlibs_CXX" = no && can_build_shared=no
10035
10036GCC_CXX="$GXX"
10037LD_CXX="$LD"
10038
10039## CAVEAT EMPTOR:
10040## There is no encapsulation within the following macros, do not change
10041## the running order or otherwise move them around unless you know exactly
10042## what you are doing...
10043
10044cat > conftest.$ac_ext <<EOF
10045class Foo
10046{
10047public:
10048 Foo (void) { a = 0; }
10049private:
10050 int a;
10051};
10052EOF
10053
10054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; then
10059 # Parse the compiler output and extract the necessary
10060 # objects, libraries and library flags.
10061
10062 # Sentinel used to keep track of whether or not we are before
10063 # the conftest object file.
10064 pre_test_object_deps_done=no
10065
10066 # The `*' in the case matches for architectures that use `case' in
10067 # $output_verbose_cmd can trigger glob expansion during the loop
10068 # eval without this substitution.
10069 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10070
10071 for p in `eval $output_verbose_link_cmd`; do
10072 case $p in
10073
10074 -L* | -R* | -l*)
10075 # Some compilers place space between "-{L,R}" and the path.
10076 # Remove the space.
10077 if test $p = "-L" \
10078 || test $p = "-R"; then
10079 prev=$p
10080 continue
10081 else
10082 prev=
10083 fi
10084
10085 if test "$pre_test_object_deps_done" = no; then
10086 case $p in
10087 -L* | -R*)
10088 # Internal compiler library paths should come after those
10089 # provided the user. The postdeps already come after the
10090 # user supplied libs so there is no need to process them.
10091 if test -z "$compiler_lib_search_path_CXX"; then
10092 compiler_lib_search_path_CXX="${prev}${p}"
10093 else
10094 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10095 fi
10096 ;;
10097 # The "-l" case would never come before the object being
10098 # linked, so don't bother handling this case.
10099 esac
10100 else
10101 if test -z "$postdeps_CXX"; then
10102 postdeps_CXX="${prev}${p}"
10103 else
10104 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10105 fi
10106 fi
10107 ;;
10108
10109 *.$objext)
10110 # This assumes that the test object file only shows up
10111 # once in the compiler output.
10112 if test "$p" = "conftest.$objext"; then
10113 pre_test_object_deps_done=yes
10114 continue
10115 fi
10116
10117 if test "$pre_test_object_deps_done" = no; then
10118 if test -z "$predep_objects_CXX"; then
10119 predep_objects_CXX="$p"
10120 else
10121 predep_objects_CXX="$predep_objects_CXX $p"
10122 fi
10123 else
10124 if test -z "$postdep_objects_CXX"; then
10125 postdep_objects_CXX="$p"
10126 else
10127 postdep_objects_CXX="$postdep_objects_CXX $p"
10128 fi
10129 fi
10130 ;;
10131
10132 *) ;; # Ignore the rest.
10133
10134 esac
10135 done
10136
10137 # Clean up.
10138 rm -f a.out a.exe
10139else
10140 echo "libtool.m4: error: problem compiling CXX test program"
10141fi
10142
10143$rm -f confest.$objext
10144
10145case " $postdeps_CXX " in
10146*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10147esac
10148
10149lt_prog_compiler_wl_CXX=
10150lt_prog_compiler_pic_CXX=
10151lt_prog_compiler_static_CXX=
10152
10153echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10154echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10155
10156 # C++ specific cases for pic, static, wl, etc.
10157 if test "$GXX" = yes; then
10158 lt_prog_compiler_wl_CXX='-Wl,'
10159 lt_prog_compiler_static_CXX='-static'
10160
10161 case $host_os in
10162 aix*)
10163 # All AIX code is PIC.
10164 if test "$host_cpu" = ia64; then
10165 # AIX 5 now supports IA64 processor
10166 lt_prog_compiler_static_CXX='-Bstatic'
10167 fi
10168 ;;
10169 amigaos*)
10170 # FIXME: we need at least 68020 code to build shared libraries, but
10171 # adding the `-m68020' flag to GCC prevents building anything better,
10172 # like `-m68040'.
10173 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10174 ;;
10175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176 # PIC is the default for these OSes.
10177 ;;
10178 mingw* | os2* | pw32*)
10179 # This hack is so that the source file can tell whether it is being
10180 # built for inclusion in a dll (and should export symbols for example).
10181 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10182 ;;
10183 darwin* | rhapsody*)
10184 # PIC is the default on this platform
10185 # Common symbols not allowed in MH_DYLIB files
10186 lt_prog_compiler_pic_CXX='-fno-common'
10187 ;;
10188 *djgpp*)
10189 # DJGPP does not support shared libraries at all
10190 lt_prog_compiler_pic_CXX=
10191 ;;
10192 sysv4*MP*)
10193 if test -d /usr/nec; then
10194 lt_prog_compiler_pic_CXX=-Kconform_pic
10195 fi
10196 ;;
10197 hpux*)
10198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10199 # not for PA HP-UX.
10200 case "$host_cpu" in
10201 hppa*64*|ia64*)
10202 ;;
10203 *)
10204 lt_prog_compiler_pic_CXX='-fPIC'
10205 ;;
10206 esac
10207 ;;
10208 *)
10209 lt_prog_compiler_pic_CXX='-fPIC'
10210 ;;
10211 esac
10212 else
10213 case $host_os in
10214 aix4* | aix5*)
10215 # All AIX code is PIC.
10216 if test "$host_cpu" = ia64; then
10217 # AIX 5 now supports IA64 processor
10218 lt_prog_compiler_static_CXX='-Bstatic'
10219 else
10220 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10221 fi
10222 ;;
10223 chorus*)
10224 case $cc_basename in
10225 cxch68)
10226 # Green Hills C++ Compiler
10227 # _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"
10228 ;;
10229 esac
10230 ;;
10231 dgux*)
10232 case $cc_basename in
10233 ec++)
10234 lt_prog_compiler_pic_CXX='-KPIC'
10235 ;;
10236 ghcx)
10237 # Green Hills C++ Compiler
10238 lt_prog_compiler_pic_CXX='-pic'
10239 ;;
10240 *)
10241 ;;
10242 esac
10243 ;;
10244 freebsd*)
10245 # FreeBSD uses GNU C++
10246 ;;
10247 hpux9* | hpux10* | hpux11*)
10248 case $cc_basename in
10249 CC)
10250 lt_prog_compiler_wl_CXX='-Wl,'
10251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252 if test "$host_cpu" != ia64; then
10253 lt_prog_compiler_pic_CXX='+Z'
10254 fi
10255 ;;
10256 aCC)
10257 lt_prog_compiler_wl_CXX='-Wl,'
10258 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10259 case "$host_cpu" in
10260 hppa*64*|ia64*)
10261 # +Z the default
10262 ;;
10263 *)
10264 lt_prog_compiler_pic_CXX='+Z'
10265 ;;
10266 esac
10267 ;;
10268 *)
10269 ;;
10270 esac
10271 ;;
10272 irix5* | irix6* | nonstopux*)
10273 case $cc_basename in
10274 CC)
10275 lt_prog_compiler_wl_CXX='-Wl,'
10276 lt_prog_compiler_static_CXX='-non_shared'
10277 # CC pic flag -KPIC is the default.
10278 ;;
10279 *)
10280 ;;
10281 esac
10282 ;;
10283 linux*)
10284 case $cc_basename in
10285 KCC)
10286 # KAI C++ Compiler
10287 lt_prog_compiler_wl_CXX='--backend -Wl,'
10288 lt_prog_compiler_pic_CXX='-fPIC'
10289 ;;
10290 icpc)
10291 # Intel C++
10292 lt_prog_compiler_wl_CXX='-Wl,'
10293 lt_prog_compiler_pic_CXX='-KPIC'
10294 lt_prog_compiler_static_CXX='-static'
10295 ;;
10296 cxx)
10297 # Compaq C++
10298 # Make sure the PIC flag is empty. It appears that all Alpha
10299 # Linux and Compaq Tru64 Unix objects are PIC.
10300 lt_prog_compiler_pic_CXX=
10301 lt_prog_compiler_static_CXX='-non_shared'
10302 ;;
10303 *)
10304 ;;
10305 esac
10306 ;;
10307 lynxos*)
10308 ;;
10309 m88k*)
10310 ;;
10311 mvs*)
10312 case $cc_basename in
10313 cxx)
10314 lt_prog_compiler_pic_CXX='-W c,exportall'
10315 ;;
10316 *)
10317 ;;
10318 esac
10319 ;;
10320 netbsd*)
10321 ;;
10322 osf3* | osf4* | osf5*)
10323 case $cc_basename in
10324 KCC)
10325 lt_prog_compiler_wl_CXX='--backend -Wl,'
10326 ;;
10327 RCC)
10328 # Rational C++ 2.4.1
10329 lt_prog_compiler_pic_CXX='-pic'
10330 ;;
10331 cxx)
10332 # Digital/Compaq C++
10333 lt_prog_compiler_wl_CXX='-Wl,'
10334 # Make sure the PIC flag is empty. It appears that all Alpha
10335 # Linux and Compaq Tru64 Unix objects are PIC.
10336 lt_prog_compiler_pic_CXX=
10337 lt_prog_compiler_static_CXX='-non_shared'
10338 ;;
10339 *)
10340 ;;
10341 esac
10342 ;;
10343 psos*)
10344 ;;
10345 sco*)
10346 case $cc_basename in
10347 CC)
10348 lt_prog_compiler_pic_CXX='-fPIC'
10349 ;;
10350 *)
10351 ;;
10352 esac
10353 ;;
10354 solaris*)
10355 case $cc_basename in
10356 CC)
10357 # Sun C++ 4.2, 5.x and Centerline C++
10358 lt_prog_compiler_pic_CXX='-KPIC'
10359 lt_prog_compiler_static_CXX='-Bstatic'
10360 lt_prog_compiler_wl_CXX='-Qoption ld '
10361 ;;
10362 gcx)
10363 # Green Hills C++ Compiler
10364 lt_prog_compiler_pic_CXX='-PIC'
10365 ;;
10366 *)
10367 ;;
10368 esac
10369 ;;
10370 sunos4*)
10371 case $cc_basename in
10372 CC)
10373 # Sun C++ 4.x
10374 lt_prog_compiler_pic_CXX='-pic'
10375 lt_prog_compiler_static_CXX='-Bstatic'
10376 ;;
10377 lcc)
10378 # Lucid
10379 lt_prog_compiler_pic_CXX='-pic'
10380 ;;
10381 *)
10382 ;;
10383 esac
10384 ;;
10385 tandem*)
10386 case $cc_basename in
10387 NCC)
10388 # NonStop-UX NCC 3.20
10389 lt_prog_compiler_pic_CXX='-KPIC'
10390 ;;
10391 *)
10392 ;;
10393 esac
10394 ;;
10395 unixware*)
10396 ;;
10397 vxworks*)
10398 ;;
10399 *)
10400 lt_prog_compiler_can_build_shared_CXX=no
10401 ;;
10402 esac
10403 fi
10404
10405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10406echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10407
10408#
10409# Check to make sure the PIC flag actually works.
10410#
10411if test -n "$lt_prog_compiler_pic_CXX"; then
10412 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10413echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10414if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417 lt_prog_compiler_pic_works_CXX=no
10418 ac_outfile=conftest.$ac_objext
10419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10421 # Insert the option either (1) after the last *FLAGS variable, or
10422 # (2) before a word containing "conftest.", or (3) at the end.
10423 # Note that $ac_compile itself does not contain backslashes and begins
10424 # with a dollar sign (not a hyphen), so the echo should work correctly.
10425 # The option is referenced via a variable to avoid confusing sed.
10426 lt_compile=`echo "$ac_compile" | $SED \
10427 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000010430 (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010431 (eval "$lt_compile" 2>conftest.err)
10432 ac_status=$?
10433 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000010434 echo "$as_me:10434: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010435 if (exit $ac_status) && test -s "$ac_outfile"; then
10436 # The compiler can only warn and ignore the option if not recognized
10437 # So say no if there are warnings
10438 if test ! -s conftest.err; then
10439 lt_prog_compiler_pic_works_CXX=yes
10440 fi
10441 fi
10442 $rm conftest*
10443
10444fi
10445echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10446echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10447
10448if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10449 case $lt_prog_compiler_pic_CXX in
10450 "" | " "*) ;;
10451 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10452 esac
10453else
10454 lt_prog_compiler_pic_CXX=
10455 lt_prog_compiler_can_build_shared_CXX=no
10456fi
10457
10458fi
10459case "$host_os" in
10460 # For platforms which do not support PIC, -DPIC is meaningless:
10461 *djgpp*)
10462 lt_prog_compiler_pic_CXX=
10463 ;;
10464 *)
10465 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10466 ;;
10467esac
10468
10469echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 lt_cv_prog_compiler_c_o_CXX=no
10475 $rm -r conftest 2>/dev/null
10476 mkdir conftest
10477 cd conftest
10478 mkdir out
10479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10482 # that will create temporary files in the current directory regardless of
10483 # the output directory. Thus, making CWD read-only will cause this test
10484 # to fail, enabling locking or at least warning the user not to do parallel
10485 # builds.
10486 chmod -w .
10487
10488 lt_compiler_flag="-o out/conftest2.$ac_objext"
10489 # Insert the option either (1) after the last *FLAGS variable, or
10490 # (2) before a word containing "conftest.", or (3) at the end.
10491 # Note that $ac_compile itself does not contain backslashes and begins
10492 # with a dollar sign (not a hyphen), so the echo should work correctly.
10493 lt_compile=`echo "$ac_compile" | $SED \
10494 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000010497 (eval echo "\"\$as_me:10497: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010498 (eval "$lt_compile" 2>out/conftest.err)
10499 ac_status=$?
10500 cat out/conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000010501 echo "$as_me:10501: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10503 then
10504 # The compiler can only warn and ignore the option if not recognized
10505 # So say no if there are warnings
10506 if test ! -s out/conftest.err; then
10507 lt_cv_prog_compiler_c_o_CXX=yes
10508 fi
10509 fi
10510 chmod u+w .
10511 $rm conftest* out/*
10512 rmdir out
10513 cd ..
10514 rmdir conftest
10515 $rm conftest*
10516
10517fi
10518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10519echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10520
10521
10522hard_links="nottested"
10523if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10524 # do not overwrite the value of need_locks provided by the user
10525 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10526echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10527 hard_links=yes
10528 $rm conftest*
10529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530 touch conftest.a
10531 ln conftest.a conftest.b 2>&5 || hard_links=no
10532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533 echo "$as_me:$LINENO: result: $hard_links" >&5
10534echo "${ECHO_T}$hard_links" >&6
10535 if test "$hard_links" = no; then
10536 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10538 need_locks=warn
10539 fi
10540else
10541 need_locks=no
10542fi
10543
10544echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10546
10547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548 case $host_os in
10549 aix4* | aix5*)
10550 # If we're using GNU nm, then we don't want the "-C" option.
10551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10552 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10553 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'
10554 else
10555 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'
10556 fi
10557 ;;
10558 pw32*)
10559 export_symbols_cmds_CXX="$ltdll_cmds"
10560 ;;
10561 cygwin* | mingw*)
10562 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10563 ;;
10564 *)
10565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10566 ;;
10567 esac
10568
10569echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10570echo "${ECHO_T}$ld_shlibs_CXX" >&6
10571test "$ld_shlibs_CXX" = no && can_build_shared=no
10572
10573variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10574if test "$GCC" = yes; then
10575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10576fi
10577
10578#
10579# Do we need to explicitly link libc?
10580#
10581case "x$archive_cmds_need_lc_CXX" in
10582x|xyes)
10583 # Assume -lc should be added
10584 archive_cmds_need_lc_CXX=yes
10585
10586 if test "$enable_shared" = yes && test "$GCC" = yes; then
10587 case $archive_cmds_CXX in
10588 *'~'*)
10589 # FIXME: we may have to deal with multi-command sequences.
10590 ;;
10591 '$CC '*)
10592 # Test whether the compiler implicitly links with -lc since on some
10593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10594 # to ld, don't add -lc before -lgcc.
10595 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10597 $rm conftest*
10598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10599
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } 2>conftest.err; then
10605 soname=conftest
10606 lib=conftest
10607 libobjs=conftest.$ac_objext
10608 deplibs=
10609 wl=$lt_prog_compiler_wl_CXX
10610 compiler_flags=-v
10611 linker_flags=-v
10612 verstring=
10613 output_objdir=.
10614 libname=conftest
10615 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10616 allow_undefined_flag_CXX=
10617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10618 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }
10622 then
10623 archive_cmds_need_lc_CXX=no
10624 else
10625 archive_cmds_need_lc_CXX=yes
10626 fi
10627 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10628 else
10629 cat conftest.err 1>&5
10630 fi
10631 $rm conftest*
10632 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10633echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10634 ;;
10635 esac
10636 fi
10637 ;;
10638esac
10639
10640echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642hardcode_action_CXX=
10643if test -n "$hardcode_libdir_flag_spec_CXX" || \
10644 test -n "$runpath_var CXX" || \
10645 test "X$hardcode_automatic_CXX"="Xyes" ; then
10646
10647 # We can hardcode non-existant directories.
10648 if test "$hardcode_direct_CXX" != no &&
10649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650 # have to relink, otherwise we might link with an installed library
10651 # when we should be linking with a yet-to-be-installed one
10652 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10653 test "$hardcode_minus_L_CXX" != no; then
10654 # Linking always hardcodes the temporary library directory.
10655 hardcode_action_CXX=relink
10656 else
10657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658 hardcode_action_CXX=immediate
10659 fi
10660else
10661 # We cannot hardcode anything, or else we can only hardcode existing
10662 # directories.
10663 hardcode_action_CXX=unsupported
10664fi
10665echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10666echo "${ECHO_T}$hardcode_action_CXX" >&6
10667
10668if test "$hardcode_action_CXX" = relink; then
10669 # Fast installation is not supported
10670 enable_fast_install=no
10671elif test "$shlibpath_overrides_runpath" = yes ||
10672 test "$enable_shared" = no; then
10673 # Fast installation is not necessary
10674 enable_fast_install=needless
10675fi
10676
10677striplib=
10678old_striplib=
10679echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10680echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10681if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10682 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10683 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10684 echo "$as_me:$LINENO: result: yes" >&5
10685echo "${ECHO_T}yes" >&6
10686else
10687# FIXME - insert some real tests, host_os isn't really good enough
10688 case $host_os in
10689 darwin*)
10690 if test -n "$STRIP" ; then
10691 striplib="$STRIP -x"
10692 echo "$as_me:$LINENO: result: yes" >&5
10693echo "${ECHO_T}yes" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697fi
10698 ;;
10699 *)
10700 echo "$as_me:$LINENO: result: no" >&5
10701echo "${ECHO_T}no" >&6
10702 ;;
10703 esac
10704fi
10705
10706echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10707echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10708library_names_spec=
10709libname_spec='lib$name'
10710soname_spec=
10711shrext=".so"
10712postinstall_cmds=
10713postuninstall_cmds=
10714finish_cmds=
10715finish_eval=
10716shlibpath_var=
10717shlibpath_overrides_runpath=unknown
10718version_type=none
10719dynamic_linker="$host_os ld.so"
10720sys_lib_dlsearch_path_spec="/lib /usr/lib"
10721if test "$GCC" = yes; then
10722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10724 # if the path contains ";" then we assume it to be the separator
10725 # otherwise default to the standard path separator (i.e. ":") - it is
10726 # assumed that no part of a normal pathname contains ";" but that should
10727 # okay in the real world where ";" in dirpaths is itself problematic.
10728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729 else
10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731 fi
10732else
10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734fi
10735need_lib_prefix=unknown
10736hardcode_into_libs=no
10737
10738# when you set need_version to no, make sure it does not cause -set_version
10739# flags to be left without arguments
10740need_version=unknown
10741
10742case $host_os in
10743aix3*)
10744 version_type=linux
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746 shlibpath_var=LIBPATH
10747
10748 # AIX 3 has no versioning support, so we append a major version to the name.
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 ;;
10751
10752aix4* | aix5*)
10753 version_type=linux
10754 need_lib_prefix=no
10755 need_version=no
10756 hardcode_into_libs=yes
10757 if test "$host_cpu" = ia64; then
10758 # AIX 5 supports IA64
10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 else
10762 # With GCC up to 2.95.x, collect2 would create an import file
10763 # for dependence libraries. The import file would start with
10764 # the line `#! .'. This would cause the generated library to
10765 # depend on `.', always an invalid library. This was fixed in
10766 # development snapshots of GCC prior to 3.0.
10767 case $host_os in
10768 aix4 | aix4.[01] | aix4.[01].*)
10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770 echo ' yes '
10771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10772 :
10773 else
10774 can_build_shared=no
10775 fi
10776 ;;
10777 esac
10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779 # soname into executable. Probably we can add versioning support to
10780 # collect2, so additional links can be useful in future.
10781 if test "$aix_use_runtimelinking" = yes; then
10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783 # instead of lib<name>.a to let people know that these are not
10784 # typical AIX shared libraries.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 else
10787 # We preserve .a as extension for shared libraries through AIX4.2
10788 # and later when we are not doing run time linking.
10789 library_names_spec='${libname}${release}.a $libname.a'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10791 fi
10792 shlibpath_var=LIBPATH
10793 fi
10794 ;;
10795
10796amigaos*)
10797 library_names_spec='$libname.ixlibrary $libname.a'
10798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799 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'
10800 ;;
10801
10802beos*)
10803 library_names_spec='${libname}${shared_ext}'
10804 dynamic_linker="$host_os ld.so"
10805 shlibpath_var=LIBRARY_PATH
10806 ;;
10807
10808bsdi4*)
10809 version_type=linux
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817 # the default ld.so.conf also contains /usr/contrib/lib and
10818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819 # libtool to hard-code these into programs
10820 ;;
10821
10822cygwin* | mingw* | pw32*)
10823 version_type=windows
10824 shrext=".dll"
10825 need_version=no
10826 need_lib_prefix=no
10827
10828 case $GCC,$host_os in
10829 yes,cygwin* | yes,mingw* | yes,pw32*)
10830 library_names_spec='$libname.dll.a'
10831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832 postinstall_cmds='base_file=`basename \${file}`~
10833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834 dldir=$destdir/`dirname \$dlpath`~
10835 test -d \$dldir || mkdir -p \$dldir~
10836 $install_prog $dir/$dlname \$dldir/$dlname'
10837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10838 dlpath=$dir/\$dldll~
10839 $rm \$dlpath'
10840 shlibpath_overrides_runpath=yes
10841
10842 case $host_os in
10843 cygwin*)
10844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10847 ;;
10848 mingw*)
10849 # MinGW DLLs use traditional 'lib' prefix
10850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10853 # It is most probably a Windows format PATH printed by
10854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10855 # path with ; separators, and with drive letters. We can handle the
10856 # drive letters (cygwin fileutils understands them), so leave them,
10857 # especially as we might pass files found there to a mingw objdump,
10858 # which wouldn't understand a cygwinified path. Ahh.
10859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10860 else
10861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10862 fi
10863 ;;
10864 pw32*)
10865 # pw32 DLLs use 'pw' prefix rather than 'lib'
10866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10867 ;;
10868 esac
10869 ;;
10870
10871 *)
10872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10873 ;;
10874 esac
10875 dynamic_linker='Win32 ld.exe'
10876 # FIXME: first we should search . and the directory the executable is in
10877 shlibpath_var=PATH
10878 ;;
10879
10880darwin* | rhapsody*)
10881 dynamic_linker="$host_os dyld"
10882 version_type=darwin
10883 need_lib_prefix=no
10884 need_version=no
10885 # FIXME: Relying on posixy $() will cause problems for
10886 # cross-compilation, but unfortunately the echo tests do not
10887 # yet detect zsh echo's removal of \ escapes.
10888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10889 soname_spec='${libname}${release}${major}$shared_ext'
10890 shlibpath_overrides_runpath=yes
10891 shlibpath_var=DYLD_LIBRARY_PATH
10892 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10894 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10895 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"`
10896 fi
10897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10898 ;;
10899
10900dgux*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 ;;
10908
10909freebsd1*)
10910 dynamic_linker=no
10911 ;;
10912
10913freebsd*)
10914 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10915 version_type=freebsd-$objformat
10916 case $version_type in
10917 freebsd-elf*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 need_version=no
10920 need_lib_prefix=no
10921 ;;
10922 freebsd-*)
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924 need_version=yes
10925 ;;
10926 esac
10927 shlibpath_var=LD_LIBRARY_PATH
10928 case $host_os in
10929 freebsd2*)
10930 shlibpath_overrides_runpath=yes
10931 ;;
10932 freebsd3.01* | freebsdelf3.01*)
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10935 ;;
10936 *) # from 3.2 on
10937 shlibpath_overrides_runpath=no
10938 hardcode_into_libs=yes
10939 ;;
10940 esac
10941 ;;
10942
10943gnu*)
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 hardcode_into_libs=yes
10951 ;;
10952
10953hpux9* | hpux10* | hpux11*)
10954 # Give a soname corresponding to the major version so that dld.sl refuses to
10955 # link against other versions.
10956 version_type=sunos
10957 need_lib_prefix=no
10958 need_version=no
10959 case "$host_cpu" in
10960 ia64*)
10961 shrext='.so'
10962 hardcode_into_libs=yes
10963 dynamic_linker="$host_os dld.so"
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 if test "X$HPUX_IA64_MODE" = X32; then
10969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10970 else
10971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972 fi
10973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10974 ;;
10975 hppa*64*)
10976 shrext='.sl'
10977 hardcode_into_libs=yes
10978 dynamic_linker="$host_os dld.sl"
10979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985 ;;
10986 *)
10987 shrext='.sl'
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=SHLIB_PATH
10990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 ;;
10994 esac
10995 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10996 postinstall_cmds='chmod 555 $lib'
10997 ;;
10998
10999irix5* | irix6* | nonstopux*)
11000 case $host_os in
11001 nonstopux*) version_type=nonstopux ;;
11002 *)
11003 if test "$lt_cv_prog_gnu_ld" = yes; then
11004 version_type=linux
11005 else
11006 version_type=irix
11007 fi ;;
11008 esac
11009 need_lib_prefix=no
11010 need_version=no
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11013 case $host_os in
11014 irix5* | nonstopux*)
11015 libsuff= shlibsuff=
11016 ;;
11017 *)
11018 case $LD in # libtool.m4 will add one of these switches to LD
11019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020 libsuff= shlibsuff= libmagic=32-bit;;
11021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022 libsuff=32 shlibsuff=N32 libmagic=N32;;
11023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025 *) libsuff= shlibsuff= libmagic=never-match;;
11026 esac
11027 ;;
11028 esac
11029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030 shlibpath_overrides_runpath=no
11031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11033 hardcode_into_libs=yes
11034 ;;
11035
11036# No shared lib support for Linux oldld, aout, or coff.
11037linux*oldld* | linux*aout* | linux*coff*)
11038 dynamic_linker=no
11039 ;;
11040
11041# This must be Linux ELF.
11042linux*)
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 # This implies no fast_install, which is unacceptable.
11052 # Some rework will be needed to allow for fast_install
11053 # before this can be enabled.
11054 hardcode_into_libs=yes
11055
11056 # We used to test for /lib/ld.so.1 and disable shared libraries on
11057 # powerpc, because MkLinux only supported shared libraries with the
11058 # GNU dynamic linker. Since this was broken with cross compilers,
11059 # most powerpc-linux boxes support dynamic linking these days and
11060 # people can always --disable-shared, the test was removed, and we
11061 # assume the GNU/Linux dynamic linker is in use.
11062 dynamic_linker='GNU/Linux ld.so'
11063 ;;
11064
11065netbsd*)
11066 version_type=sunos
11067 need_lib_prefix=no
11068 need_version=no
11069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 dynamic_linker='NetBSD (a.out) ld.so'
11073 else
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 dynamic_linker='NetBSD ld.elf_so'
11077 fi
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 hardcode_into_libs=yes
11081 ;;
11082
11083newsos6)
11084 version_type=linux
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 ;;
11089
11090nto-qnx)
11091 version_type=linux
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 ;;
11099
11100openbsd*)
11101 version_type=sunos
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11108 case $host_os in
11109 openbsd2.[89] | openbsd2.[89].*)
11110 shlibpath_overrides_runpath=no
11111 ;;
11112 *)
11113 shlibpath_overrides_runpath=yes
11114 ;;
11115 esac
11116 else
11117 shlibpath_overrides_runpath=yes
11118 fi
11119 ;;
11120
11121os2*)
11122 libname_spec='$name'
11123 shrext=".dll"
11124 need_lib_prefix=no
11125 library_names_spec='$libname${shared_ext} $libname.a'
11126 dynamic_linker='OS/2 ld.exe'
11127 shlibpath_var=LIBPATH
11128 ;;
11129
11130osf3* | osf4* | osf5*)
11131 version_type=osf
11132 need_lib_prefix=no
11133 need_version=no
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11139 ;;
11140
11141sco3.2v5*)
11142 version_type=osf
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 ;;
11147
11148solaris*)
11149 version_type=linux
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 hardcode_into_libs=yes
11157 # ldd complains unless libraries are executable
11158 postinstall_cmds='chmod +x $lib'
11159 ;;
11160
11161sunos4*)
11162 version_type=sunos
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 if test "$with_gnu_ld" = yes; then
11168 need_lib_prefix=no
11169 fi
11170 need_version=yes
11171 ;;
11172
11173sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174 version_type=linux
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 case $host_vendor in
11179 sni)
11180 shlibpath_overrides_runpath=no
11181 need_lib_prefix=no
11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
11183 runpath_var=LD_RUN_PATH
11184 ;;
11185 siemens)
11186 need_lib_prefix=no
11187 ;;
11188 motorola)
11189 need_lib_prefix=no
11190 need_version=no
11191 shlibpath_overrides_runpath=no
11192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11193 ;;
11194 esac
11195 ;;
11196
11197sysv4*MP*)
11198 if test -d /usr/nec ;then
11199 version_type=linux
11200 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11201 soname_spec='$libname${shared_ext}.$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 fi
11204 ;;
11205
11206uts4*)
11207 version_type=linux
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 ;;
11212
11213*)
11214 dynamic_linker=no
11215 ;;
11216esac
11217echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11218echo "${ECHO_T}$dynamic_linker" >&6
11219test "$dynamic_linker" = no && can_build_shared=no
11220
11221if test "x$enable_dlopen" != xyes; then
11222 enable_dlopen=unknown
11223 enable_dlopen_self=unknown
11224 enable_dlopen_self_static=unknown
11225else
11226 lt_cv_dlopen=no
11227 lt_cv_dlopen_libs=
11228
11229 case $host_os in
11230 beos*)
11231 lt_cv_dlopen="load_add_on"
11232 lt_cv_dlopen_libs=
11233 lt_cv_dlopen_self=yes
11234 ;;
11235
11236 mingw* | pw32*)
11237 lt_cv_dlopen="LoadLibrary"
11238 lt_cv_dlopen_libs=
11239 ;;
11240
11241 cygwin*)
11242 lt_cv_dlopen="dlopen"
11243 lt_cv_dlopen_libs=
11244 ;;
11245
11246 darwin*)
11247 # if libdl is installed we need to link against it
11248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11249echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11250if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252else
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldl $LIBS"
11255cat >conftest.$ac_ext <<_ACEOF
11256#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011257#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011258
11259/* Override any gcc2 internal prototype to avoid an error. */
11260#ifdef __cplusplus
11261extern "C"
11262#endif
11263/* We use char because int might match the return type of a gcc2
11264 builtin and then its argument prototype would still apply. */
11265char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000011266#ifdef F77_DUMMY_MAIN
11267# ifdef __cplusplus
11268 extern "C"
11269# endif
11270 int F77_DUMMY_MAIN() { return 1; }
11271#endif
John Criswell47fdd832003-07-14 16:52:07 +000011272int
11273main ()
11274{
11275dlopen ();
11276 ;
11277 return 0;
11278}
11279_ACEOF
11280rm -f conftest.$ac_objext conftest$ac_exeext
11281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
11286 { ac_try='test -s conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_cv_lib_dl_dlopen=yes
11293else
11294 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011295cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011296ac_cv_lib_dl_dlopen=no
11297fi
11298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299LIBS=$ac_check_lib_save_LIBS
11300fi
11301echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303if test $ac_cv_lib_dl_dlopen = yes; then
11304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305else
11306
11307 lt_cv_dlopen="dyld"
11308 lt_cv_dlopen_libs=
11309 lt_cv_dlopen_self=yes
11310
11311fi
11312
11313 ;;
11314
11315 *)
11316 echo "$as_me:$LINENO: checking for shl_load" >&5
11317echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318if test "${ac_cv_func_shl_load+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 cat >conftest.$ac_ext <<_ACEOF
11322#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011323#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011324/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000011325 which can conflict with char shl_load (); below. */
11326#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +000011327/* Override any gcc2 internal prototype to avoid an error. */
11328#ifdef __cplusplus
11329extern "C"
11330#endif
11331/* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +000011334char (*f) ();
11335
11336#ifdef F77_DUMMY_MAIN
11337# ifdef __cplusplus
11338 extern "C"
11339# endif
11340 int F77_DUMMY_MAIN() { return 1; }
11341#endif
11342int
11343main ()
11344{
John Criswell47fdd832003-07-14 16:52:07 +000011345/* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348#if defined (__stub_shl_load) || defined (__stub___shl_load)
11349choke me
11350#else
John Criswelld9cd1442003-09-09 20:52:17 +000011351f = shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011352#endif
11353
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext conftest$ac_exeext
11359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -s conftest$ac_exeext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_func_shl_load=yes
11371else
11372 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011373cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011374ac_cv_func_shl_load=no
11375fi
11376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11377fi
11378echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11379echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11380if test $ac_cv_func_shl_load = yes; then
11381 lt_cv_dlopen="shl_load"
11382else
11383 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11384echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11385if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388 ac_check_lib_save_LIBS=$LIBS
11389LIBS="-ldld $LIBS"
11390cat >conftest.$ac_ext <<_ACEOF
11391#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011392#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011393
11394/* Override any gcc2 internal prototype to avoid an error. */
11395#ifdef __cplusplus
11396extern "C"
11397#endif
11398/* We use char because int might match the return type of a gcc2
11399 builtin and then its argument prototype would still apply. */
11400char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +000011401#ifdef F77_DUMMY_MAIN
11402# ifdef __cplusplus
11403 extern "C"
11404# endif
11405 int F77_DUMMY_MAIN() { return 1; }
11406#endif
John Criswell47fdd832003-07-14 16:52:07 +000011407int
11408main ()
11409{
11410shl_load ();
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
11416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -s conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 ac_cv_lib_dld_shl_load=yes
11428else
11429 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011430cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011431ac_cv_lib_dld_shl_load=no
11432fi
11433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434LIBS=$ac_check_lib_save_LIBS
11435fi
11436echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11437echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11438if test $ac_cv_lib_dld_shl_load = yes; then
11439 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11440else
11441 echo "$as_me:$LINENO: checking for dlopen" >&5
11442echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11443if test "${ac_cv_func_dlopen+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445else
11446 cat >conftest.$ac_ext <<_ACEOF
11447#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011448#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011449/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000011450 which can conflict with char dlopen (); below. */
11451#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +000011452/* Override any gcc2 internal prototype to avoid an error. */
11453#ifdef __cplusplus
11454extern "C"
11455#endif
11456/* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11458char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000011459char (*f) ();
11460
11461#ifdef F77_DUMMY_MAIN
11462# ifdef __cplusplus
11463 extern "C"
11464# endif
11465 int F77_DUMMY_MAIN() { return 1; }
11466#endif
11467int
11468main ()
11469{
John Criswell47fdd832003-07-14 16:52:07 +000011470/* The GNU C library defines this for functions which it implements
11471 to always fail with ENOSYS. Some functions are actually named
11472 something starting with __ and the normal name is an alias. */
11473#if defined (__stub_dlopen) || defined (__stub___dlopen)
11474choke me
11475#else
John Criswelld9cd1442003-09-09 20:52:17 +000011476f = dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011477#endif
11478
11479 ;
11480 return 0;
11481}
11482_ACEOF
11483rm -f conftest.$ac_objext conftest$ac_exeext
11484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485 (eval $ac_link) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -s conftest$ac_exeext'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_func_dlopen=yes
11496else
11497 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011498cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011499ac_cv_func_dlopen=no
11500fi
11501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11502fi
11503echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11504echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11505if test $ac_cv_func_dlopen = yes; then
11506 lt_cv_dlopen="dlopen"
11507else
11508 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11509echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11510if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 ac_check_lib_save_LIBS=$LIBS
11514LIBS="-ldl $LIBS"
11515cat >conftest.$ac_ext <<_ACEOF
11516#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011517#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011518
11519/* Override any gcc2 internal prototype to avoid an error. */
11520#ifdef __cplusplus
11521extern "C"
11522#endif
11523/* We use char because int might match the return type of a gcc2
11524 builtin and then its argument prototype would still apply. */
11525char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000011526#ifdef F77_DUMMY_MAIN
11527# ifdef __cplusplus
11528 extern "C"
11529# endif
11530 int F77_DUMMY_MAIN() { return 1; }
11531#endif
John Criswell47fdd832003-07-14 16:52:07 +000011532int
11533main ()
11534{
11535dlopen ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
11541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -s conftest$ac_exeext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_cv_lib_dl_dlopen=yes
11553else
11554 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011555cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011556ac_cv_lib_dl_dlopen=no
11557fi
11558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559LIBS=$ac_check_lib_save_LIBS
11560fi
11561echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11562echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11563if test $ac_cv_lib_dl_dlopen = yes; then
11564 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565else
11566 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11567echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11568if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 ac_check_lib_save_LIBS=$LIBS
11572LIBS="-lsvld $LIBS"
11573cat >conftest.$ac_ext <<_ACEOF
11574#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011575#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011576
11577/* Override any gcc2 internal prototype to avoid an error. */
11578#ifdef __cplusplus
11579extern "C"
11580#endif
11581/* We use char because int might match the return type of a gcc2
11582 builtin and then its argument prototype would still apply. */
11583char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000011584#ifdef F77_DUMMY_MAIN
11585# ifdef __cplusplus
11586 extern "C"
11587# endif
11588 int F77_DUMMY_MAIN() { return 1; }
11589#endif
John Criswell47fdd832003-07-14 16:52:07 +000011590int
11591main ()
11592{
11593dlopen ();
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext conftest$ac_exeext
11599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_lib_svld_dlopen=yes
11611else
11612 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011613cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011614ac_cv_lib_svld_dlopen=no
11615fi
11616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11617LIBS=$ac_check_lib_save_LIBS
11618fi
11619echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11620echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11621if test $ac_cv_lib_svld_dlopen = yes; then
11622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11623else
11624 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11625echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11626if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 ac_check_lib_save_LIBS=$LIBS
11630LIBS="-ldld $LIBS"
11631cat >conftest.$ac_ext <<_ACEOF
11632#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000011633#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000011634
11635/* Override any gcc2 internal prototype to avoid an error. */
11636#ifdef __cplusplus
11637extern "C"
11638#endif
11639/* We use char because int might match the return type of a gcc2
11640 builtin and then its argument prototype would still apply. */
11641char dld_link ();
John Criswelld9cd1442003-09-09 20:52:17 +000011642#ifdef F77_DUMMY_MAIN
11643# ifdef __cplusplus
11644 extern "C"
11645# endif
11646 int F77_DUMMY_MAIN() { return 1; }
11647#endif
John Criswell47fdd832003-07-14 16:52:07 +000011648int
11649main ()
11650{
11651dld_link ();
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656rm -f conftest.$ac_objext conftest$ac_exeext
11657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } &&
11662 { ac_try='test -s conftest$ac_exeext'
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 ac_cv_lib_dld_dld_link=yes
11669else
11670 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000011671cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000011672ac_cv_lib_dld_dld_link=no
11673fi
11674rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11675LIBS=$ac_check_lib_save_LIBS
11676fi
11677echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11678echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11679if test $ac_cv_lib_dld_dld_link = yes; then
11680 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692
11693fi
11694
11695
11696fi
11697
11698 ;;
11699 esac
11700
11701 if test "x$lt_cv_dlopen" != xno; then
11702 enable_dlopen=yes
11703 else
11704 enable_dlopen=no
11705 fi
11706
11707 case $lt_cv_dlopen in
11708 dlopen)
11709 save_CPPFLAGS="$CPPFLAGS"
11710 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711
11712 save_LDFLAGS="$LDFLAGS"
11713 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11714
11715 save_LIBS="$LIBS"
11716 LIBS="$lt_cv_dlopen_libs $LIBS"
11717
11718 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11719echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11720if test "${lt_cv_dlopen_self+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 if test "$cross_compiling" = yes; then :
11724 lt_cv_dlopen_self=cross
11725else
11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727 lt_status=$lt_dlunknown
11728 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +000011729#line 11729 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011730#include "confdefs.h"
11731
11732#if HAVE_DLFCN_H
11733#include <dlfcn.h>
11734#endif
11735
11736#include <stdio.h>
11737
11738#ifdef RTLD_GLOBAL
11739# define LT_DLGLOBAL RTLD_GLOBAL
11740#else
11741# ifdef DL_GLOBAL
11742# define LT_DLGLOBAL DL_GLOBAL
11743# else
11744# define LT_DLGLOBAL 0
11745# endif
11746#endif
11747
11748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749 find out it does not work in some platform. */
11750#ifndef LT_DLLAZY_OR_NOW
11751# ifdef RTLD_LAZY
11752# define LT_DLLAZY_OR_NOW RTLD_LAZY
11753# else
11754# ifdef DL_LAZY
11755# define LT_DLLAZY_OR_NOW DL_LAZY
11756# else
11757# ifdef RTLD_NOW
11758# define LT_DLLAZY_OR_NOW RTLD_NOW
11759# else
11760# ifdef DL_NOW
11761# define LT_DLLAZY_OR_NOW DL_NOW
11762# else
11763# define LT_DLLAZY_OR_NOW 0
11764# endif
11765# endif
11766# endif
11767# endif
11768#endif
11769
11770#ifdef __cplusplus
11771extern "C" void exit (int);
11772#endif
11773
11774void fnord() { int i=42;}
11775int main ()
11776{
11777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778 int status = $lt_dlunknown;
11779
11780 if (self)
11781 {
11782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11784 /* dlclose (self); */
11785 }
11786
11787 exit (status);
11788}
11789EOF
11790 if { (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); } && test -s conftest${ac_exeext} 2>/dev/null; then
11795 (./conftest; exit; ) 2>/dev/null
11796 lt_status=$?
11797 case x$lt_status in
11798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11800 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11801 esac
11802 else :
11803 # compilation failed
11804 lt_cv_dlopen_self=no
11805 fi
11806fi
11807rm -fr conftest*
11808
11809
11810fi
11811echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11812echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11813
11814 if test "x$lt_cv_dlopen_self" = xyes; then
11815 LDFLAGS="$LDFLAGS $link_static_flag"
11816 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11817echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11818if test "${lt_cv_dlopen_self_static+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 if test "$cross_compiling" = yes; then :
11822 lt_cv_dlopen_self_static=cross
11823else
11824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11825 lt_status=$lt_dlunknown
11826 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +000011827#line 11827 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011828#include "confdefs.h"
11829
11830#if HAVE_DLFCN_H
11831#include <dlfcn.h>
11832#endif
11833
11834#include <stdio.h>
11835
11836#ifdef RTLD_GLOBAL
11837# define LT_DLGLOBAL RTLD_GLOBAL
11838#else
11839# ifdef DL_GLOBAL
11840# define LT_DLGLOBAL DL_GLOBAL
11841# else
11842# define LT_DLGLOBAL 0
11843# endif
11844#endif
11845
11846/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11847 find out it does not work in some platform. */
11848#ifndef LT_DLLAZY_OR_NOW
11849# ifdef RTLD_LAZY
11850# define LT_DLLAZY_OR_NOW RTLD_LAZY
11851# else
11852# ifdef DL_LAZY
11853# define LT_DLLAZY_OR_NOW DL_LAZY
11854# else
11855# ifdef RTLD_NOW
11856# define LT_DLLAZY_OR_NOW RTLD_NOW
11857# else
11858# ifdef DL_NOW
11859# define LT_DLLAZY_OR_NOW DL_NOW
11860# else
11861# define LT_DLLAZY_OR_NOW 0
11862# endif
11863# endif
11864# endif
11865# endif
11866#endif
11867
11868#ifdef __cplusplus
11869extern "C" void exit (int);
11870#endif
11871
11872void fnord() { int i=42;}
11873int main ()
11874{
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11877
11878 if (self)
11879 {
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11881 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11882 /* dlclose (self); */
11883 }
11884
11885 exit (status);
11886}
11887EOF
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11893 (./conftest; exit; ) 2>/dev/null
11894 lt_status=$?
11895 case x$lt_status in
11896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11898 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11899 esac
11900 else :
11901 # compilation failed
11902 lt_cv_dlopen_self_static=no
11903 fi
11904fi
11905rm -fr conftest*
11906
11907
11908fi
11909echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11910echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11911 fi
11912
11913 CPPFLAGS="$save_CPPFLAGS"
11914 LDFLAGS="$save_LDFLAGS"
11915 LIBS="$save_LIBS"
11916 ;;
11917 esac
11918
11919 case $lt_cv_dlopen_self in
11920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11921 *) enable_dlopen_self=unknown ;;
11922 esac
11923
11924 case $lt_cv_dlopen_self_static in
11925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11926 *) enable_dlopen_self_static=unknown ;;
11927 esac
11928fi
11929
11930
11931# The else clause should only fire when bootstrapping the
11932# libtool distribution, otherwise you forgot to ship ltmain.sh
11933# with your package, and you will get complaints that there are
11934# no rules to generate ltmain.sh.
11935if test -f "$ltmain"; then
11936 # See if we are running on zsh, and set the options which allow our commands through
11937 # without removal of \ escapes.
11938 if test -n "${ZSH_VERSION+set}" ; then
11939 setopt NO_GLOB_SUBST
11940 fi
11941 # Now quote all the things that may contain metacharacters while being
11942 # careful not to overquote the AC_SUBSTed values. We take copies of the
11943 # variables and quote the copies for generation of the libtool script.
11944 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947 deplibs_check_method reload_flag reload_cmds need_locks \
11948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949 lt_cv_sys_global_symbol_to_c_name_address \
11950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951 old_postinstall_cmds old_postuninstall_cmds \
11952 compiler_CXX \
11953 CC_CXX \
11954 LD_CXX \
11955 lt_prog_compiler_wl_CXX \
11956 lt_prog_compiler_pic_CXX \
11957 lt_prog_compiler_static_CXX \
11958 lt_prog_compiler_no_builtin_flag_CXX \
11959 export_dynamic_flag_spec_CXX \
11960 thread_safe_flag_spec_CXX \
11961 whole_archive_flag_spec_CXX \
11962 enable_shared_with_static_runtimes_CXX \
11963 old_archive_cmds_CXX \
11964 old_archive_from_new_cmds_CXX \
11965 predep_objects_CXX \
11966 postdep_objects_CXX \
11967 predeps_CXX \
11968 postdeps_CXX \
11969 compiler_lib_search_path_CXX \
11970 archive_cmds_CXX \
11971 archive_expsym_cmds_CXX \
11972 postinstall_cmds_CXX \
11973 postuninstall_cmds_CXX \
11974 old_archive_from_expsyms_cmds_CXX \
11975 allow_undefined_flag_CXX \
11976 no_undefined_flag_CXX \
11977 export_symbols_cmds_CXX \
11978 hardcode_libdir_flag_spec_CXX \
11979 hardcode_libdir_flag_spec_ld_CXX \
11980 hardcode_libdir_separator_CXX \
11981 hardcode_automatic_CXX \
11982 module_cmds_CXX \
11983 module_expsym_cmds_CXX \
11984 lt_cv_prog_compiler_c_o_CXX \
11985 exclude_expsyms_CXX \
11986 include_expsyms_CXX; do
11987
11988 case $var in
11989 old_archive_cmds_CXX | \
11990 old_archive_from_new_cmds_CXX | \
11991 archive_cmds_CXX | \
11992 archive_expsym_cmds_CXX | \
11993 module_cmds_CXX | \
11994 module_expsym_cmds_CXX | \
11995 old_archive_from_expsyms_cmds_CXX | \
11996 export_symbols_cmds_CXX | \
11997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998 postinstall_cmds | postuninstall_cmds | \
11999 old_postinstall_cmds | old_postuninstall_cmds | \
12000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001 # Double-quote double-evaled strings.
12002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003 ;;
12004 *)
12005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12006 ;;
12007 esac
12008 done
12009
12010 case $lt_echo in
12011 *'\$0 --fallback-echo"')
12012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12013 ;;
12014 esac
12015
12016cfgfile="$ofile"
12017
12018 cat <<__EOF__ >> "$cfgfile"
12019# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12020
12021# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12022
12023# Shell to use when invoking shell scripts.
12024SHELL=$lt_SHELL
12025
12026# Whether or not to build shared libraries.
12027build_libtool_libs=$enable_shared
12028
12029# Whether or not to build static libraries.
12030build_old_libs=$enable_static
12031
12032# Whether or not to add -lc for building shared libraries.
12033build_libtool_need_lc=$archive_cmds_need_lc_CXX
12034
12035# Whether or not to disallow shared libs when runtime libs are static
12036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12037
12038# Whether or not to optimize for fast installation.
12039fast_install=$enable_fast_install
12040
12041# The host system.
12042host_alias=$host_alias
12043host=$host
12044
12045# An echo program that does not interpret backslashes.
12046echo=$lt_echo
12047
12048# The archiver.
12049AR=$lt_AR
12050AR_FLAGS=$lt_AR_FLAGS
12051
12052# A C compiler.
12053LTCC=$lt_LTCC
12054
12055# A language-specific compiler.
12056CC=$lt_compiler_CXX
12057
12058# Is the compiler the GNU C compiler?
12059with_gcc=$GCC_CXX
12060
12061# An ERE matcher.
12062EGREP=$lt_EGREP
12063
12064# The linker used to build libraries.
12065LD=$lt_LD_CXX
12066
12067# Whether we need hard or soft links.
12068LN_S=$lt_LN_S
12069
12070# A BSD-compatible nm program.
12071NM=$lt_NM
12072
12073# A symbol stripping program
12074STRIP=$STRIP
12075
12076# Used to examine libraries when file_magic_cmd begins "file"
12077MAGIC_CMD=$MAGIC_CMD
12078
12079# Used on cygwin: DLL creation program.
12080DLLTOOL="$DLLTOOL"
12081
12082# Used on cygwin: object dumper.
12083OBJDUMP="$OBJDUMP"
12084
12085# Used on cygwin: assembler.
12086AS="$AS"
12087
12088# The name of the directory that contains temporary libtool files.
12089objdir=$objdir
12090
12091# How to create reloadable object files.
12092reload_flag=$lt_reload_flag
12093reload_cmds=$lt_reload_cmds
12094
12095# How to pass a linker flag through the compiler.
12096wl=$lt_lt_prog_compiler_wl_CXX
12097
12098# Object file suffix (normally "o").
12099objext="$ac_objext"
12100
12101# Old archive suffix (normally "a").
12102libext="$libext"
12103
12104# Shared library suffix (normally ".so").
12105shrext='$shrext'
12106
12107# Executable file suffix (normally "").
12108exeext="$exeext"
12109
12110# Additional compiler flags for building library objects.
12111pic_flag=$lt_lt_prog_compiler_pic_CXX
12112pic_mode=$pic_mode
12113
12114# What is the maximum length of a command?
12115max_cmd_len=$lt_cv_sys_max_cmd_len
12116
12117# Does compiler simultaneously support -c and -o options?
12118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12119
12120# Must we lock files when doing compilation ?
12121need_locks=$lt_need_locks
12122
12123# Do we need the lib prefix for modules?
12124need_lib_prefix=$need_lib_prefix
12125
12126# Do we need a version for libraries?
12127need_version=$need_version
12128
12129# Whether dlopen is supported.
12130dlopen_support=$enable_dlopen
12131
12132# Whether dlopen of programs is supported.
12133dlopen_self=$enable_dlopen_self
12134
12135# Whether dlopen of statically linked programs is supported.
12136dlopen_self_static=$enable_dlopen_self_static
12137
12138# Compiler flag to prevent dynamic linking.
12139link_static_flag=$lt_lt_prog_compiler_static_CXX
12140
12141# Compiler flag to turn off builtin functions.
12142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12143
12144# Compiler flag to allow reflexive dlopens.
12145export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12146
12147# Compiler flag to generate shared objects directly from archives.
12148whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12149
12150# Compiler flag to generate thread-safe objects.
12151thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12152
12153# Library versioning type.
12154version_type=$version_type
12155
12156# Format of library name prefix.
12157libname_spec=$lt_libname_spec
12158
12159# List of archive names. First name is the real one, the rest are links.
12160# The last name is the one that the linker finds with -lNAME.
12161library_names_spec=$lt_library_names_spec
12162
12163# The coded name of the library, if different from the real name.
12164soname_spec=$lt_soname_spec
12165
12166# Commands used to build and install an old-style archive.
12167RANLIB=$lt_RANLIB
12168old_archive_cmds=$lt_old_archive_cmds_CXX
12169old_postinstall_cmds=$lt_old_postinstall_cmds
12170old_postuninstall_cmds=$lt_old_postuninstall_cmds
12171
12172# Create an old-style archive from a shared archive.
12173old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12174
12175# Create a temporary old-style archive to link instead of a shared archive.
12176old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12177
12178# Commands used to build and install a shared archive.
12179archive_cmds=$lt_archive_cmds_CXX
12180archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12181postinstall_cmds=$lt_postinstall_cmds
12182postuninstall_cmds=$lt_postuninstall_cmds
12183
12184# Commands used to build a loadable module (assumed same as above if empty)
12185module_cmds=$lt_module_cmds_CXX
12186module_expsym_cmds=$lt_module_expsym_cmds_CXX
12187
12188# Commands to strip libraries.
12189old_striplib=$lt_old_striplib
12190striplib=$lt_striplib
12191
12192# Dependencies to place before the objects being linked to create a
12193# shared library.
12194predep_objects=$lt_predep_objects_CXX
12195
12196# Dependencies to place after the objects being linked to create a
12197# shared library.
12198postdep_objects=$lt_postdep_objects_CXX
12199
12200# Dependencies to place before the objects being linked to create a
12201# shared library.
12202predeps=$lt_predeps_CXX
12203
12204# Dependencies to place after the objects being linked to create a
12205# shared library.
12206postdeps=$lt_postdeps_CXX
12207
12208# The library search path used internally by the compiler when linking
12209# a shared library.
12210compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12211
12212# Method to check whether dependent libraries are shared objects.
12213deplibs_check_method=$lt_deplibs_check_method
12214
12215# Command to use when deplibs_check_method == file_magic.
12216file_magic_cmd=$lt_file_magic_cmd
12217
12218# Flag that allows shared libraries with undefined symbols to be built.
12219allow_undefined_flag=$lt_allow_undefined_flag_CXX
12220
12221# Flag that forces no undefined symbols.
12222no_undefined_flag=$lt_no_undefined_flag_CXX
12223
12224# Commands used to finish a libtool library installation in a directory.
12225finish_cmds=$lt_finish_cmds
12226
12227# Same as above, but a single script fragment to be evaled but not shown.
12228finish_eval=$lt_finish_eval
12229
12230# Take the output of nm and produce a listing of raw symbols and C names.
12231global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12232
12233# Transform the output of nm in a proper C declaration
12234global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12235
12236# Transform the output of nm in a C name address pair
12237global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12238
12239# This is the shared library runtime path variable.
12240runpath_var=$runpath_var
12241
12242# This is the shared library path variable.
12243shlibpath_var=$shlibpath_var
12244
12245# Is shlibpath searched before the hard-coded library search path?
12246shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12247
12248# How to hardcode a shared library path into an executable.
12249hardcode_action=$hardcode_action_CXX
12250
12251# Whether we should hardcode library paths into libraries.
12252hardcode_into_libs=$hardcode_into_libs
12253
12254# Flag to hardcode \$libdir into a binary during linking.
12255# This must work even if \$libdir does not exist.
12256hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12257
12258# If ld is used when linking, flag to hardcode \$libdir into
12259# a binary during linking. This must work even if \$libdir does
12260# not exist.
12261hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12262
12263# Whether we need a single -rpath flag with a separated argument.
12264hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12265
12266# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12267# resulting binary.
12268hardcode_direct=$hardcode_direct_CXX
12269
12270# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12271# resulting binary.
12272hardcode_minus_L=$hardcode_minus_L_CXX
12273
12274# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12275# the resulting binary.
12276hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12277
12278# Set to yes if building a shared library automatically hardcodes DIR into the library
12279# and all subsequent libraries and executables linked against it.
12280hardcode_automatic=$hardcode_automatic_CXX
12281
12282# Variables whose values should be saved in libtool wrapper scripts and
12283# restored at relink time.
12284variables_saved_for_relink="$variables_saved_for_relink"
12285
12286# Whether libtool must link a program against all its dependency libraries.
12287link_all_deplibs=$link_all_deplibs_CXX
12288
12289# Compile-time system search path for libraries
12290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12291
12292# Run-time system search path for libraries
12293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12294
12295# Fix the shell variable \$srcfile for the compiler.
12296fix_srcfile_path="$fix_srcfile_path_CXX"
12297
12298# Set to yes if exported symbols are required.
12299always_export_symbols=$always_export_symbols_CXX
12300
12301# The commands to list exported symbols.
12302export_symbols_cmds=$lt_export_symbols_cmds_CXX
12303
12304# The commands to extract the exported symbol list from a shared archive.
12305extract_expsyms_cmds=$lt_extract_expsyms_cmds
12306
12307# Symbols that should not be listed in the preloaded symbols.
12308exclude_expsyms=$lt_exclude_expsyms_CXX
12309
12310# Symbols that must always be exported.
12311include_expsyms=$lt_include_expsyms_CXX
12312
12313# ### END LIBTOOL TAG CONFIG: $tagname
12314
12315__EOF__
12316
12317
12318else
12319 # If there is no Makefile yet, we rely on a make rule to execute
12320 # `config.status --recheck' to rerun these tests and create the
12321 # libtool script then.
12322 test -f Makefile && make "$ltmain"
12323fi
12324
12325
12326ac_ext=c
12327ac_cpp='$CPP $CPPFLAGS'
12328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330ac_compiler_gnu=$ac_cv_c_compiler_gnu
12331
12332CC=$lt_save_CC
12333LDCXX=$LD
12334LD=$lt_save_LD
12335GCC=$lt_save_GCC
12336with_gnu_ldcxx=$with_gnu_ld
12337with_gnu_ld=$lt_save_with_gnu_ld
12338lt_cv_path_LDCXX=$lt_cv_path_LD
12339lt_cv_path_LD=$lt_save_path_LD
12340lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12341lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12342
12343 else
12344 tagname=""
12345 fi
12346 ;;
12347
12348 F77)
12349 if test -n "$F77" && test "X$F77" != "Xno"; then
12350
12351ac_ext=f
12352ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12353ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12355
12356
12357archive_cmds_need_lc_F77=no
12358allow_undefined_flag_F77=
12359always_export_symbols_F77=no
12360archive_expsym_cmds_F77=
12361export_dynamic_flag_spec_F77=
12362hardcode_direct_F77=no
12363hardcode_libdir_flag_spec_F77=
12364hardcode_libdir_flag_spec_ld_F77=
12365hardcode_libdir_separator_F77=
12366hardcode_minus_L_F77=no
12367hardcode_automatic_F77=no
12368module_cmds_F77=
12369module_expsym_cmds_F77=
12370link_all_deplibs_F77=unknown
12371old_archive_cmds_F77=$old_archive_cmds
12372no_undefined_flag_F77=
12373whole_archive_flag_spec_F77=
12374enable_shared_with_static_runtimes_F77=no
12375
12376# Source file extension for f77 test sources.
12377ac_ext=f
12378
12379# Object file extension for compiled f77 test sources.
12380objext=o
12381objext_F77=$objext
12382
12383# Code to be used in simple compile tests
12384lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12385
12386# Code to be used in simple link tests
12387lt_simple_link_test_code=" program t\n end\n"
12388
12389# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12390
12391# If no C compiler was specified, use CC.
12392LTCC=${LTCC-"$CC"}
12393
12394# Allow CC to be a program name with arguments.
12395compiler=$CC
12396
12397
12398# Allow CC to be a program name with arguments.
12399lt_save_CC="$CC"
12400CC=${F77-"f77"}
12401compiler=$CC
12402compiler_F77=$CC
12403cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12404
12405echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12406echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12407echo "$as_me:$LINENO: result: $can_build_shared" >&5
12408echo "${ECHO_T}$can_build_shared" >&6
12409
12410echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12411echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12412test "$can_build_shared" = "no" && enable_shared=no
12413
12414# On AIX, shared libraries and static libraries use the same namespace, and
12415# are all built from PIC.
12416case "$host_os" in
12417aix3*)
12418 test "$enable_shared" = yes && enable_static=no
12419 if test -n "$RANLIB"; then
12420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12421 postinstall_cmds='$RANLIB $lib'
12422 fi
12423 ;;
12424aix4*)
12425 test "$enable_shared" = yes && enable_static=no
12426 ;;
12427esac
12428echo "$as_me:$LINENO: result: $enable_shared" >&5
12429echo "${ECHO_T}$enable_shared" >&6
12430
12431echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12432echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12433# Make sure either enable_shared or enable_static is yes.
12434test "$enable_shared" = yes || enable_static=yes
12435echo "$as_me:$LINENO: result: $enable_static" >&5
12436echo "${ECHO_T}$enable_static" >&6
12437
12438test "$ld_shlibs_F77" = no && can_build_shared=no
12439
12440GCC_F77="$G77"
12441LD_F77="$LD"
12442
12443lt_prog_compiler_wl_F77=
12444lt_prog_compiler_pic_F77=
12445lt_prog_compiler_static_F77=
12446
12447echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12448echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12449
12450 if test "$GCC" = yes; then
12451 lt_prog_compiler_wl_F77='-Wl,'
12452 lt_prog_compiler_static_F77='-static'
12453
12454 case $host_os in
12455 aix*)
12456 # All AIX code is PIC.
12457 if test "$host_cpu" = ia64; then
12458 # AIX 5 now supports IA64 processor
12459 lt_prog_compiler_static_F77='-Bstatic'
12460 fi
12461 ;;
12462
12463 amigaos*)
12464 # FIXME: we need at least 68020 code to build shared libraries, but
12465 # adding the `-m68020' flag to GCC prevents building anything better,
12466 # like `-m68040'.
12467 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12468 ;;
12469
12470 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12471 # PIC is the default for these OSes.
12472 ;;
12473
12474 mingw* | pw32* | os2*)
12475 # This hack is so that the source file can tell whether it is being
12476 # built for inclusion in a dll (and should export symbols for example).
12477 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12478 ;;
12479
12480 darwin* | rhapsody*)
12481 # PIC is the default on this platform
12482 # Common symbols not allowed in MH_DYLIB files
12483 lt_prog_compiler_pic_F77='-fno-common'
12484 ;;
12485
12486 msdosdjgpp*)
12487 # Just because we use GCC doesn't mean we suddenly get shared libraries
12488 # on systems that don't support them.
12489 lt_prog_compiler_can_build_shared_F77=no
12490 enable_shared=no
12491 ;;
12492
12493 sysv4*MP*)
12494 if test -d /usr/nec; then
12495 lt_prog_compiler_pic_F77=-Kconform_pic
12496 fi
12497 ;;
12498
12499 hpux*)
12500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12501 # not for PA HP-UX.
12502 case "$host_cpu" in
12503 hppa*64*|ia64*)
12504 # +Z the default
12505 ;;
12506 *)
12507 lt_prog_compiler_pic_F77='-fPIC'
12508 ;;
12509 esac
12510 ;;
12511
12512 *)
12513 lt_prog_compiler_pic_F77='-fPIC'
12514 ;;
12515 esac
12516 else
12517 # PORTME Check for flag to pass linker flags through the system compiler.
12518 case $host_os in
12519 aix*)
12520 lt_prog_compiler_wl_F77='-Wl,'
12521 if test "$host_cpu" = ia64; then
12522 # AIX 5 now supports IA64 processor
12523 lt_prog_compiler_static_F77='-Bstatic'
12524 else
12525 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12526 fi
12527 ;;
12528
12529 mingw* | pw32* | os2*)
12530 # This hack is so that the source file can tell whether it is being
12531 # built for inclusion in a dll (and should export symbols for example).
12532 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12533 ;;
12534
12535 hpux9* | hpux10* | hpux11*)
12536 lt_prog_compiler_wl_F77='-Wl,'
12537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12538 # not for PA HP-UX.
12539 case "$host_cpu" in
12540 hppa*64*|ia64*)
12541 # +Z the default
12542 ;;
12543 *)
12544 lt_prog_compiler_pic_F77='+Z'
12545 ;;
12546 esac
12547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12548 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12549 ;;
12550
12551 irix5* | irix6* | nonstopux*)
12552 lt_prog_compiler_wl_F77='-Wl,'
12553 # PIC (with -KPIC) is the default.
12554 lt_prog_compiler_static_F77='-non_shared'
12555 ;;
12556
12557 newsos6)
12558 lt_prog_compiler_pic_F77='-KPIC'
12559 lt_prog_compiler_static_F77='-Bstatic'
12560 ;;
12561
12562 linux*)
12563 case $CC in
12564 icc|ecc)
12565 lt_prog_compiler_wl_F77='-Wl,'
12566 lt_prog_compiler_pic_F77='-KPIC'
12567 lt_prog_compiler_static_F77='-static'
12568 ;;
12569 ccc)
12570 lt_prog_compiler_wl_F77='-Wl,'
12571 # All Alpha code is PIC.
12572 lt_prog_compiler_static_F77='-non_shared'
12573 ;;
12574 esac
12575 ;;
12576
12577 osf3* | osf4* | osf5*)
12578 lt_prog_compiler_wl_F77='-Wl,'
12579 # All OSF/1 code is PIC.
12580 lt_prog_compiler_static_F77='-non_shared'
12581 ;;
12582
12583 sco3.2v5*)
12584 lt_prog_compiler_pic_F77='-Kpic'
12585 lt_prog_compiler_static_F77='-dn'
12586 ;;
12587
12588 solaris*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 lt_prog_compiler_pic_F77='-KPIC'
12591 lt_prog_compiler_static_F77='-Bstatic'
12592 ;;
12593
12594 sunos4*)
12595 lt_prog_compiler_wl_F77='-Qoption ld '
12596 lt_prog_compiler_pic_F77='-PIC'
12597 lt_prog_compiler_static_F77='-Bstatic'
12598 ;;
12599
12600 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12601 lt_prog_compiler_wl_F77='-Wl,'
12602 lt_prog_compiler_pic_F77='-KPIC'
12603 lt_prog_compiler_static_F77='-Bstatic'
12604 ;;
12605
12606 sysv4*MP*)
12607 if test -d /usr/nec ;then
12608 lt_prog_compiler_pic_F77='-Kconform_pic'
12609 lt_prog_compiler_static_F77='-Bstatic'
12610 fi
12611 ;;
12612
12613 uts4*)
12614 lt_prog_compiler_pic_F77='-pic'
12615 lt_prog_compiler_static_F77='-Bstatic'
12616 ;;
12617
12618 *)
12619 lt_prog_compiler_can_build_shared_F77=no
12620 ;;
12621 esac
12622 fi
12623
12624echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12625echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12626
12627#
12628# Check to make sure the PIC flag actually works.
12629#
12630if test -n "$lt_prog_compiler_pic_F77"; then
12631 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12632echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12633if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635else
12636 lt_prog_compiler_pic_works_F77=no
12637 ac_outfile=conftest.$ac_objext
12638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12639 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12640 # Insert the option either (1) after the last *FLAGS variable, or
12641 # (2) before a word containing "conftest.", or (3) at the end.
12642 # Note that $ac_compile itself does not contain backslashes and begins
12643 # with a dollar sign (not a hyphen), so the echo should work correctly.
12644 # The option is referenced via a variable to avoid confusing sed.
12645 lt_compile=`echo "$ac_compile" | $SED \
12646 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000012649 (eval echo "\"\$as_me:12649: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012650 (eval "$lt_compile" 2>conftest.err)
12651 ac_status=$?
12652 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000012653 echo "$as_me:12653: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012654 if (exit $ac_status) && test -s "$ac_outfile"; then
12655 # The compiler can only warn and ignore the option if not recognized
12656 # So say no if there are warnings
12657 if test ! -s conftest.err; then
12658 lt_prog_compiler_pic_works_F77=yes
12659 fi
12660 fi
12661 $rm conftest*
12662
12663fi
12664echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12665echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12666
12667if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12668 case $lt_prog_compiler_pic_F77 in
12669 "" | " "*) ;;
12670 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12671 esac
12672else
12673 lt_prog_compiler_pic_F77=
12674 lt_prog_compiler_can_build_shared_F77=no
12675fi
12676
12677fi
12678case "$host_os" in
12679 # For platforms which do not support PIC, -DPIC is meaningless:
12680 *djgpp*)
12681 lt_prog_compiler_pic_F77=
12682 ;;
12683 *)
12684 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12685 ;;
12686esac
12687
12688echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12689echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12690if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 lt_cv_prog_compiler_c_o_F77=no
12694 $rm -r conftest 2>/dev/null
12695 mkdir conftest
12696 cd conftest
12697 mkdir out
12698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12699
12700 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12701 # that will create temporary files in the current directory regardless of
12702 # the output directory. Thus, making CWD read-only will cause this test
12703 # to fail, enabling locking or at least warning the user not to do parallel
12704 # builds.
12705 chmod -w .
12706
12707 lt_compiler_flag="-o out/conftest2.$ac_objext"
12708 # Insert the option either (1) after the last *FLAGS variable, or
12709 # (2) before a word containing "conftest.", or (3) at the end.
12710 # Note that $ac_compile itself does not contain backslashes and begins
12711 # with a dollar sign (not a hyphen), so the echo should work correctly.
12712 lt_compile=`echo "$ac_compile" | $SED \
12713 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12715 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000012716 (eval echo "\"\$as_me:12716: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012717 (eval "$lt_compile" 2>out/conftest.err)
12718 ac_status=$?
12719 cat out/conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000012720 echo "$as_me:12720: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12722 then
12723 # The compiler can only warn and ignore the option if not recognized
12724 # So say no if there are warnings
12725 if test ! -s out/conftest.err; then
12726 lt_cv_prog_compiler_c_o_F77=yes
12727 fi
12728 fi
12729 chmod u+w .
12730 $rm conftest* out/*
12731 rmdir out
12732 cd ..
12733 rmdir conftest
12734 $rm conftest*
12735
12736fi
12737echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12738echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12739
12740
12741hard_links="nottested"
12742if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12743 # do not overwrite the value of need_locks provided by the user
12744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12745echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12746 hard_links=yes
12747 $rm conftest*
12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749 touch conftest.a
12750 ln conftest.a conftest.b 2>&5 || hard_links=no
12751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752 echo "$as_me:$LINENO: result: $hard_links" >&5
12753echo "${ECHO_T}$hard_links" >&6
12754 if test "$hard_links" = no; then
12755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757 need_locks=warn
12758 fi
12759else
12760 need_locks=no
12761fi
12762
12763echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12765
12766 runpath_var=
12767 allow_undefined_flag_F77=
12768 enable_shared_with_static_runtimes_F77=no
12769 archive_cmds_F77=
12770 archive_expsym_cmds_F77=
12771 old_archive_From_new_cmds_F77=
12772 old_archive_from_expsyms_cmds_F77=
12773 export_dynamic_flag_spec_F77=
12774 whole_archive_flag_spec_F77=
12775 thread_safe_flag_spec_F77=
12776 hardcode_libdir_flag_spec_F77=
12777 hardcode_libdir_flag_spec_ld_F77=
12778 hardcode_libdir_separator_F77=
12779 hardcode_direct_F77=no
12780 hardcode_minus_L_F77=no
12781 hardcode_shlibpath_var_F77=unsupported
12782 link_all_deplibs_F77=unknown
12783 hardcode_automatic_F77=no
12784 module_cmds_F77=
12785 module_expsym_cmds_F77=
12786 always_export_symbols_F77=no
12787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12788 # include_expsyms should be a list of space-separated symbols to be *always*
12789 # included in the symbol list
12790 include_expsyms_F77=
12791 # exclude_expsyms can be an extended regexp of symbols to exclude
12792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12794 # as well as any symbol that contains `d'.
12795 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12797 # platforms (ab)use it in PIC code, but their linkers get confused if
12798 # the symbol is explicitly referenced. Since portable code cannot
12799 # rely on this symbol name, it's probably fine to never include it in
12800 # preloaded symbol tables.
12801 extract_expsyms_cmds=
12802
12803 case $host_os in
12804 cygwin* | mingw* | pw32*)
12805 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12806 # When not using gcc, we currently assume that we are using
12807 # Microsoft Visual C++.
12808 if test "$GCC" != yes; then
12809 with_gnu_ld=no
12810 fi
12811 ;;
12812 openbsd*)
12813 with_gnu_ld=no
12814 ;;
12815 esac
12816
12817 ld_shlibs_F77=yes
12818 if test "$with_gnu_ld" = yes; then
12819 # If archive_cmds runs LD, not CC, wlarc should be empty
12820 wlarc='${wl}'
12821
12822 # See if GNU ld supports shared libraries.
12823 case $host_os in
12824 aix3* | aix4* | aix5*)
12825 # On AIX/PPC, the GNU linker is very broken
12826 if test "$host_cpu" != ia64; then
12827 ld_shlibs_F77=no
12828 cat <<EOF 1>&2
12829
12830*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12831*** to be unable to reliably create shared libraries on AIX.
12832*** Therefore, libtool is disabling shared libraries support. If you
12833*** really care for shared libraries, you may want to modify your PATH
12834*** so that a non-GNU linker is found, and then restart.
12835
12836EOF
12837 fi
12838 ;;
12839
12840 amigaos*)
12841 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)'
12842 hardcode_libdir_flag_spec_F77='-L$libdir'
12843 hardcode_minus_L_F77=yes
12844
12845 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12846 # that the semantics of dynamic libraries on AmigaOS, at least up
12847 # to version 4, is to share data among multiple programs linked
12848 # with the same dynamic library. Since this doesn't match the
12849 # behavior of shared libraries on other platforms, we can't use
12850 # them.
12851 ld_shlibs_F77=no
12852 ;;
12853
12854 beos*)
12855 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12856 allow_undefined_flag_F77=unsupported
12857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12858 # support --undefined. This deserves some investigation. FIXME
12859 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860 else
12861 ld_shlibs_F77=no
12862 fi
12863 ;;
12864
12865 cygwin* | mingw* | pw32*)
12866 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12867 # as there is no search path for DLLs.
12868 hardcode_libdir_flag_spec_F77='-L$libdir'
12869 allow_undefined_flag_F77=unsupported
12870 always_export_symbols_F77=no
12871 enable_shared_with_static_runtimes_F77=yes
12872 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12873
12874 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12876 # If the export-symbols file already is a .def file (1st line
12877 # is EXPORTS), use it as is; otherwise, prepend...
12878 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12879 cp $export_symbols $output_objdir/$soname.def;
12880 else
12881 echo EXPORTS > $output_objdir/$soname.def;
12882 cat $export_symbols >> $output_objdir/$soname.def;
12883 fi~
12884 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12885 else
12886 ld_shlibs=no
12887 fi
12888 ;;
12889
12890 netbsd*)
12891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12892 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12893 wlarc=
12894 else
12895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12897 fi
12898 ;;
12899
12900 solaris* | sysv5*)
12901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12902 ld_shlibs_F77=no
12903 cat <<EOF 1>&2
12904
12905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12906*** create shared libraries on Solaris systems. Therefore, libtool
12907*** is disabling shared libraries support. We urge you to upgrade GNU
12908*** binutils to release 2.9.1 or newer. Another option is to modify
12909*** your PATH or compiler configuration so that the native linker is
12910*** used, and then restart.
12911
12912EOF
12913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916 else
12917 ld_shlibs_F77=no
12918 fi
12919 ;;
12920
12921 sunos4*)
12922 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923 wlarc=
12924 hardcode_direct_F77=yes
12925 hardcode_shlibpath_var_F77=no
12926 ;;
12927
12928 *)
12929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12930 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12931 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12932 else
12933 ld_shlibs_F77=no
12934 fi
12935 ;;
12936 esac
12937
12938 if test "$ld_shlibs_F77" = yes; then
12939 runpath_var=LD_RUN_PATH
12940 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12941 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12942 # ancient GNU ld didn't support --whole-archive et. al.
12943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12944 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12945 else
12946 whole_archive_flag_spec_F77=
12947 fi
12948 fi
12949 else
12950 # PORTME fill in a description of your system's linker (not GNU ld)
12951 case $host_os in
12952 aix3*)
12953 allow_undefined_flag_F77=unsupported
12954 always_export_symbols_F77=yes
12955 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'
12956 # Note: this linker hardcodes the directories in LIBPATH if there
12957 # are no directories specified by -L.
12958 hardcode_minus_L_F77=yes
12959 if test "$GCC" = yes && test -z "$link_static_flag"; then
12960 # Neither direct hardcoding nor static linking is supported with a
12961 # broken collect2.
12962 hardcode_direct_F77=unsupported
12963 fi
12964 ;;
12965
12966 aix4* | aix5*)
12967 if test "$host_cpu" = ia64; then
12968 # On IA64, the linker does run time linking by default, so we don't
12969 # have to do anything special.
12970 aix_use_runtimelinking=no
12971 exp_sym_flag='-Bexport'
12972 no_entry_flag=""
12973 else
12974 # If we're using GNU nm, then we don't want the "-C" option.
12975 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12976 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12977 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'
12978 else
12979 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'
12980 fi
12981 aix_use_runtimelinking=no
12982
12983 # Test if we are trying to use run time linking or normal
12984 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12985 # need to do runtime linking.
12986 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12987 for ld_flag in $LDFLAGS; do
12988 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12989 aix_use_runtimelinking=yes
12990 break
12991 fi
12992 done
12993 esac
12994
12995 exp_sym_flag='-bexport'
12996 no_entry_flag='-bnoentry'
12997 fi
12998
12999 # When large executables or shared objects are built, AIX ld can
13000 # have problems creating the table of contents. If linking a library
13001 # or program results in "error TOC overflow" add -mminimal-toc to
13002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13004
13005 archive_cmds_F77=''
13006 hardcode_direct_F77=yes
13007 hardcode_libdir_separator_F77=':'
13008 link_all_deplibs_F77=yes
13009
13010 if test "$GCC" = yes; then
13011 case $host_os in aix4.012|aix4.012.*)
13012 # We only want to do this on AIX 4.2 and lower, the check
13013 # below for broken collect2 doesn't work under 4.3+
13014 collect2name=`${CC} -print-prog-name=collect2`
13015 if test -f "$collect2name" && \
13016 strings "$collect2name" | grep resolve_lib_name >/dev/null
13017 then
13018 # We have reworked collect2
13019 hardcode_direct_F77=yes
13020 else
13021 # We have old collect2
13022 hardcode_direct_F77=unsupported
13023 # It fails to find uninstalled libraries when the uninstalled
13024 # path is not listed in the libpath. Setting hardcode_minus_L
13025 # to unsupported forces relinking
13026 hardcode_minus_L_F77=yes
13027 hardcode_libdir_flag_spec_F77='-L$libdir'
13028 hardcode_libdir_separator_F77=
13029 fi
13030 esac
13031 shared_flag='-shared'
13032 else
13033 # not using gcc
13034 if test "$host_cpu" = ia64; then
13035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13036 # chokes on -Wl,-G. The following line is correct:
13037 shared_flag='-G'
13038 else
13039 if test "$aix_use_runtimelinking" = yes; then
13040 shared_flag='${wl}-G'
13041 else
13042 shared_flag='${wl}-bM:SRE'
13043 fi
13044 fi
13045 fi
13046
13047 # It seems that -bexpall does not export symbols beginning with
13048 # underscore (_), so it is better to generate a list of symbols to export.
13049 always_export_symbols_F77=yes
13050 if test "$aix_use_runtimelinking" = yes; then
13051 # Warning - without using the other runtime loading flags (-brtl),
13052 # -berok will link without error, but may produce a broken library.
13053 allow_undefined_flag_F77='-berok'
13054 # Determine the default libpath from the value encoded in an empty executable.
13055 cat >conftest.$ac_ext <<_ACEOF
13056 program main
13057
13058 end
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
13061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062 (eval $ac_link) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072
13073aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13074}'`
13075# Check for a 64-bit object if we didn't find anything.
13076if 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; }
13077}'`; fi
13078else
13079 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000013080cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000013081fi
13082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13083if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13084
13085 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13086 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"
13087 else
13088 if test "$host_cpu" = ia64; then
13089 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13090 allow_undefined_flag_F77="-z nodefs"
13091 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"
13092 else
13093 # Determine the default libpath from the value encoded in an empty executable.
13094 cat >conftest.$ac_ext <<_ACEOF
13095 program main
13096
13097 end
13098_ACEOF
13099rm -f conftest.$ac_objext conftest$ac_exeext
13100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101 (eval $ac_link) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -s conftest$ac_exeext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111
13112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13113}'`
13114# Check for a 64-bit object if we didn't find anything.
13115if 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; }
13116}'`; fi
13117else
13118 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000013119cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000013120fi
13121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13123
13124 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13125 # Warning - without using the other run time loading flags,
13126 # -berok will link without error, but may produce a broken library.
13127 no_undefined_flag_F77=' ${wl}-bernotok'
13128 allow_undefined_flag_F77=' ${wl}-berok'
13129 # -bexpall does not export symbols beginning with underscore (_)
13130 always_export_symbols_F77=yes
13131 # Exported symbols can be pulled into shared objects from archives
13132 whole_archive_flag_spec_F77=' '
13133 archive_cmds_need_lc_F77=yes
13134 # This is similar to how AIX traditionally builds it's shared libraries.
13135 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'
13136 fi
13137 fi
13138 ;;
13139
13140 amigaos*)
13141 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)'
13142 hardcode_libdir_flag_spec_F77='-L$libdir'
13143 hardcode_minus_L_F77=yes
13144 # see comment about different semantics on the GNU ld section
13145 ld_shlibs_F77=no
13146 ;;
13147
13148 bsdi4*)
13149 export_dynamic_flag_spec_F77=-rdynamic
13150 ;;
13151
13152 cygwin* | mingw* | pw32*)
13153 # When not using gcc, we currently assume that we are using
13154 # Microsoft Visual C++.
13155 # hardcode_libdir_flag_spec is actually meaningless, as there is
13156 # no search path for DLLs.
13157 hardcode_libdir_flag_spec_F77=' '
13158 allow_undefined_flag_F77=unsupported
13159 # Tell ltmain to make .lib files, not .a files.
13160 libext=lib
13161 # Tell ltmain to make .dll files, not .so files.
13162 shrext=".dll"
13163 # FIXME: Setting linknames here is a bad hack.
13164 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13165 # The linker will automatically build a .lib file if we build a DLL.
13166 old_archive_From_new_cmds_F77='true'
13167 # FIXME: Should let the user specify the lib program.
13168 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13169 fix_srcfile_path='`cygpath -w "$srcfile"`'
13170 enable_shared_with_static_runtimes_F77=yes
13171 ;;
13172
13173 darwin* | rhapsody*)
13174 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13175 archive_cmds_need_lc_F77=no
13176 case "$host_os" in
13177 rhapsody* | darwin1.[012])
13178 allow_undefined_flag_F77='-undefined suppress'
13179 ;;
13180 *) # Darwin 1.3 on
13181 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13182 ;;
13183 esac
13184 # FIXME: Relying on posixy $() will cause problems for
13185 # cross-compilation, but unfortunately the echo tests do not
13186 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13187 # `"' quotes if we put them in here... so don't!
13188 lt_int_apple_cc_single_mod=no
13189 output_verbose_link_cmd='echo'
13190 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13191 lt_int_apple_cc_single_mod=yes
13192 fi
13193 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13194 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13195 else
13196 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'
13197 fi
13198 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13201 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}'
13202 else
13203 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}'
13204 fi
13205 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}'
13206 hardcode_direct_F77=no
13207 hardcode_automatic_F77=yes
13208 hardcode_shlibpath_var_F77=unsupported
13209 whole_archive_flag_spec_F77='-all_load $convenience'
13210 link_all_deplibs_F77=yes
13211 fi
13212 ;;
13213
13214 dgux*)
13215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13216 hardcode_libdir_flag_spec_F77='-L$libdir'
13217 hardcode_shlibpath_var_F77=no
13218 ;;
13219
13220 freebsd1*)
13221 ld_shlibs_F77=no
13222 ;;
13223
13224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13225 # support. Future versions do this automatically, but an explicit c++rt0.o
13226 # does not break anything, and helps significantly (at the cost of a little
13227 # extra space).
13228 freebsd2.2*)
13229 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13230 hardcode_libdir_flag_spec_F77='-R$libdir'
13231 hardcode_direct_F77=yes
13232 hardcode_shlibpath_var_F77=no
13233 ;;
13234
13235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13236 freebsd2*)
13237 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13238 hardcode_direct_F77=yes
13239 hardcode_minus_L_F77=yes
13240 hardcode_shlibpath_var_F77=no
13241 ;;
13242
13243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13244 freebsd*)
13245 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13246 hardcode_libdir_flag_spec_F77='-R$libdir'
13247 hardcode_direct_F77=yes
13248 hardcode_shlibpath_var_F77=no
13249 ;;
13250
13251 hpux9*)
13252 if test "$GCC" = yes; then
13253 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'
13254 else
13255 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'
13256 fi
13257 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13258 hardcode_libdir_separator_F77=:
13259 hardcode_direct_F77=yes
13260
13261 # hardcode_minus_L: Not really in the search PATH,
13262 # but as the default location of the library.
13263 hardcode_minus_L_F77=yes
13264 export_dynamic_flag_spec_F77='${wl}-E'
13265 ;;
13266
13267 hpux10* | hpux11*)
13268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13269 case "$host_cpu" in
13270 hppa*64*|ia64*)
13271 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13272 ;;
13273 *)
13274 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13275 ;;
13276 esac
13277 else
13278 case "$host_cpu" in
13279 hppa*64*|ia64*)
13280 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13281 ;;
13282 *)
13283 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13284 ;;
13285 esac
13286 fi
13287 if test "$with_gnu_ld" = no; then
13288 case "$host_cpu" in
13289 hppa*64*)
13290 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13291 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13292 hardcode_libdir_separator_F77=:
13293 hardcode_direct_F77=no
13294 hardcode_shlibpath_var_F77=no
13295 ;;
13296 ia64*)
13297 hardcode_libdir_flag_spec_F77='-L$libdir'
13298 hardcode_direct_F77=no
13299 hardcode_shlibpath_var_F77=no
13300
13301 # hardcode_minus_L: Not really in the search PATH,
13302 # but as the default location of the library.
13303 hardcode_minus_L_F77=yes
13304 ;;
13305 *)
13306 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13307 hardcode_libdir_separator_F77=:
13308 hardcode_direct_F77=yes
13309 export_dynamic_flag_spec_F77='${wl}-E'
13310
13311 # hardcode_minus_L: Not really in the search PATH,
13312 # but as the default location of the library.
13313 hardcode_minus_L_F77=yes
13314 ;;
13315 esac
13316 fi
13317 ;;
13318
13319 irix5* | irix6* | nonstopux*)
13320 if test "$GCC" = yes; then
13321 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'
13322 else
13323 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'
13324 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13325 fi
13326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13327 hardcode_libdir_separator_F77=:
13328 link_all_deplibs_F77=yes
13329 ;;
13330
13331 netbsd*)
13332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13333 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13334 else
13335 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13336 fi
13337 hardcode_libdir_flag_spec_F77='-R$libdir'
13338 hardcode_direct_F77=yes
13339 hardcode_shlibpath_var_F77=no
13340 ;;
13341
13342 newsos6)
13343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13344 hardcode_direct_F77=yes
13345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13346 hardcode_libdir_separator_F77=:
13347 hardcode_shlibpath_var_F77=no
13348 ;;
13349
13350 openbsd*)
13351 hardcode_direct_F77=yes
13352 hardcode_shlibpath_var_F77=no
13353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13354 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13355 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13356 export_dynamic_flag_spec_F77='${wl}-E'
13357 else
13358 case $host_os in
13359 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13360 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13361 hardcode_libdir_flag_spec_F77='-R$libdir'
13362 ;;
13363 *)
13364 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13365 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13366 ;;
13367 esac
13368 fi
13369 ;;
13370
13371 os2*)
13372 hardcode_libdir_flag_spec_F77='-L$libdir'
13373 hardcode_minus_L_F77=yes
13374 allow_undefined_flag_F77=unsupported
13375 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'
13376 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13377 ;;
13378
13379 osf3*)
13380 if test "$GCC" = yes; then
13381 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13382 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'
13383 else
13384 allow_undefined_flag_F77=' -expect_unresolved \*'
13385 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'
13386 fi
13387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13388 hardcode_libdir_separator_F77=:
13389 ;;
13390
13391 osf4* | osf5*) # as osf3* with the addition of -msym flag
13392 if test "$GCC" = yes; then
13393 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13394 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'
13395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13396 else
13397 allow_undefined_flag_F77=' -expect_unresolved \*'
13398 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'
13399 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~
13400 $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'
13401
13402 # Both c and cxx compiler support -rpath directly
13403 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13404 fi
13405 hardcode_libdir_separator_F77=:
13406 ;;
13407
13408 sco3.2v5*)
13409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410 hardcode_shlibpath_var_F77=no
13411 export_dynamic_flag_spec_F77='${wl}-Bexport'
13412 runpath_var=LD_RUN_PATH
13413 hardcode_runpath_var=yes
13414 ;;
13415
13416 solaris*)
13417 no_undefined_flag_F77=' -z text'
13418 if test "$GCC" = yes; then
13419 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13422 else
13423 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13425 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13426 fi
13427 hardcode_libdir_flag_spec_F77='-R$libdir'
13428 hardcode_shlibpath_var_F77=no
13429 case $host_os in
13430 solaris2.[0-5] | solaris2.[0-5].*) ;;
13431 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13432 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13433 esac
13434 link_all_deplibs_F77=yes
13435 ;;
13436
13437 sunos4*)
13438 if test "x$host_vendor" = xsequent; then
13439 # Use $CC to link under sequent, because it throws in some extra .o
13440 # files that make .init and .fini sections work.
13441 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13442 else
13443 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13444 fi
13445 hardcode_libdir_flag_spec_F77='-L$libdir'
13446 hardcode_direct_F77=yes
13447 hardcode_minus_L_F77=yes
13448 hardcode_shlibpath_var_F77=no
13449 ;;
13450
13451 sysv4)
13452 case $host_vendor in
13453 sni)
13454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455 hardcode_direct_F77=yes # is this really true???
13456 ;;
13457 siemens)
13458 ## LD is ld it makes a PLAMLIB
13459 ## CC just makes a GrossModule.
13460 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13461 reload_cmds_F77='$CC -r -o $output$reload_objs'
13462 hardcode_direct_F77=no
13463 ;;
13464 motorola)
13465 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13467 ;;
13468 esac
13469 runpath_var='LD_RUN_PATH'
13470 hardcode_shlibpath_var_F77=no
13471 ;;
13472
13473 sysv4.3*)
13474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_shlibpath_var_F77=no
13476 export_dynamic_flag_spec_F77='-Bexport'
13477 ;;
13478
13479 sysv4*MP*)
13480 if test -d /usr/nec; then
13481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13482 hardcode_shlibpath_var_F77=no
13483 runpath_var=LD_RUN_PATH
13484 hardcode_runpath_var=yes
13485 ld_shlibs_F77=yes
13486 fi
13487 ;;
13488
13489 sysv4.2uw2*)
13490 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13491 hardcode_direct_F77=yes
13492 hardcode_minus_L_F77=no
13493 hardcode_shlibpath_var_F77=no
13494 hardcode_runpath_var=yes
13495 runpath_var=LD_RUN_PATH
13496 ;;
13497
13498 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13499 no_undefined_flag_F77='${wl}-z ${wl}text'
13500 if test "$GCC" = yes; then
13501 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502 else
13503 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504 fi
13505 runpath_var='LD_RUN_PATH'
13506 hardcode_shlibpath_var_F77=no
13507 ;;
13508
13509 sysv5*)
13510 no_undefined_flag_F77=' -z text'
13511 # $CC -shared without GNU ld will not create a library from C++
13512 # object files and a static libstdc++, better avoid it by now
13513 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13515 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13516 hardcode_libdir_flag_spec_F77=
13517 hardcode_shlibpath_var_F77=no
13518 runpath_var='LD_RUN_PATH'
13519 ;;
13520
13521 uts4*)
13522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523 hardcode_libdir_flag_spec_F77='-L$libdir'
13524 hardcode_shlibpath_var_F77=no
13525 ;;
13526
13527 *)
13528 ld_shlibs_F77=no
13529 ;;
13530 esac
13531 fi
13532
13533echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13534echo "${ECHO_T}$ld_shlibs_F77" >&6
13535test "$ld_shlibs_F77" = no && can_build_shared=no
13536
13537variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538if test "$GCC" = yes; then
13539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13540fi
13541
13542#
13543# Do we need to explicitly link libc?
13544#
13545case "x$archive_cmds_need_lc_F77" in
13546x|xyes)
13547 # Assume -lc should be added
13548 archive_cmds_need_lc_F77=yes
13549
13550 if test "$enable_shared" = yes && test "$GCC" = yes; then
13551 case $archive_cmds_F77 in
13552 *'~'*)
13553 # FIXME: we may have to deal with multi-command sequences.
13554 ;;
13555 '$CC '*)
13556 # Test whether the compiler implicitly links with -lc since on some
13557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13558 # to ld, don't add -lc before -lgcc.
13559 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13560echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13561 $rm conftest*
13562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13563
13564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } 2>conftest.err; then
13569 soname=conftest
13570 lib=conftest
13571 libobjs=conftest.$ac_objext
13572 deplibs=
13573 wl=$lt_prog_compiler_wl_F77
13574 compiler_flags=-v
13575 linker_flags=-v
13576 verstring=
13577 output_objdir=.
13578 libname=conftest
13579 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13580 allow_undefined_flag_F77=
13581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13582 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }
13586 then
13587 archive_cmds_need_lc_F77=no
13588 else
13589 archive_cmds_need_lc_F77=yes
13590 fi
13591 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13592 else
13593 cat conftest.err 1>&5
13594 fi
13595 $rm conftest*
13596 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13597echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13598 ;;
13599 esac
13600 fi
13601 ;;
13602esac
13603
13604echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13605echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13606hardcode_action_F77=
13607if test -n "$hardcode_libdir_flag_spec_F77" || \
13608 test -n "$runpath_var F77" || \
13609 test "X$hardcode_automatic_F77"="Xyes" ; then
13610
13611 # We can hardcode non-existant directories.
13612 if test "$hardcode_direct_F77" != no &&
13613 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13614 # have to relink, otherwise we might link with an installed library
13615 # when we should be linking with a yet-to-be-installed one
13616 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13617 test "$hardcode_minus_L_F77" != no; then
13618 # Linking always hardcodes the temporary library directory.
13619 hardcode_action_F77=relink
13620 else
13621 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13622 hardcode_action_F77=immediate
13623 fi
13624else
13625 # We cannot hardcode anything, or else we can only hardcode existing
13626 # directories.
13627 hardcode_action_F77=unsupported
13628fi
13629echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13630echo "${ECHO_T}$hardcode_action_F77" >&6
13631
13632if test "$hardcode_action_F77" = relink; then
13633 # Fast installation is not supported
13634 enable_fast_install=no
13635elif test "$shlibpath_overrides_runpath" = yes ||
13636 test "$enable_shared" = no; then
13637 # Fast installation is not necessary
13638 enable_fast_install=needless
13639fi
13640
13641striplib=
13642old_striplib=
13643echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13644echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13645if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13646 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13647 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13648 echo "$as_me:$LINENO: result: yes" >&5
13649echo "${ECHO_T}yes" >&6
13650else
13651# FIXME - insert some real tests, host_os isn't really good enough
13652 case $host_os in
13653 darwin*)
13654 if test -n "$STRIP" ; then
13655 striplib="$STRIP -x"
13656 echo "$as_me:$LINENO: result: yes" >&5
13657echo "${ECHO_T}yes" >&6
13658 else
13659 echo "$as_me:$LINENO: result: no" >&5
13660echo "${ECHO_T}no" >&6
13661fi
13662 ;;
13663 *)
13664 echo "$as_me:$LINENO: result: no" >&5
13665echo "${ECHO_T}no" >&6
13666 ;;
13667 esac
13668fi
13669
13670echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13671echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13672library_names_spec=
13673libname_spec='lib$name'
13674soname_spec=
13675shrext=".so"
13676postinstall_cmds=
13677postuninstall_cmds=
13678finish_cmds=
13679finish_eval=
13680shlibpath_var=
13681shlibpath_overrides_runpath=unknown
13682version_type=none
13683dynamic_linker="$host_os ld.so"
13684sys_lib_dlsearch_path_spec="/lib /usr/lib"
13685if test "$GCC" = yes; then
13686 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13687 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13688 # if the path contains ";" then we assume it to be the separator
13689 # otherwise default to the standard path separator (i.e. ":") - it is
13690 # assumed that no part of a normal pathname contains ";" but that should
13691 # okay in the real world where ";" in dirpaths is itself problematic.
13692 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13693 else
13694 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13695 fi
13696else
13697 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13698fi
13699need_lib_prefix=unknown
13700hardcode_into_libs=no
13701
13702# when you set need_version to no, make sure it does not cause -set_version
13703# flags to be left without arguments
13704need_version=unknown
13705
13706case $host_os in
13707aix3*)
13708 version_type=linux
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13710 shlibpath_var=LIBPATH
13711
13712 # AIX 3 has no versioning support, so we append a major version to the name.
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 ;;
13715
13716aix4* | aix5*)
13717 version_type=linux
13718 need_lib_prefix=no
13719 need_version=no
13720 hardcode_into_libs=yes
13721 if test "$host_cpu" = ia64; then
13722 # AIX 5 supports IA64
13723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 else
13726 # With GCC up to 2.95.x, collect2 would create an import file
13727 # for dependence libraries. The import file would start with
13728 # the line `#! .'. This would cause the generated library to
13729 # depend on `.', always an invalid library. This was fixed in
13730 # development snapshots of GCC prior to 3.0.
13731 case $host_os in
13732 aix4 | aix4.[01] | aix4.[01].*)
13733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13734 echo ' yes '
13735 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13736 :
13737 else
13738 can_build_shared=no
13739 fi
13740 ;;
13741 esac
13742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13743 # soname into executable. Probably we can add versioning support to
13744 # collect2, so additional links can be useful in future.
13745 if test "$aix_use_runtimelinking" = yes; then
13746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13747 # instead of lib<name>.a to let people know that these are not
13748 # typical AIX shared libraries.
13749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750 else
13751 # We preserve .a as extension for shared libraries through AIX4.2
13752 # and later when we are not doing run time linking.
13753 library_names_spec='${libname}${release}.a $libname.a'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 fi
13756 shlibpath_var=LIBPATH
13757 fi
13758 ;;
13759
13760amigaos*)
13761 library_names_spec='$libname.ixlibrary $libname.a'
13762 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13763 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'
13764 ;;
13765
13766beos*)
13767 library_names_spec='${libname}${shared_ext}'
13768 dynamic_linker="$host_os ld.so"
13769 shlibpath_var=LIBRARY_PATH
13770 ;;
13771
13772bsdi4*)
13773 version_type=linux
13774 need_version=no
13775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776 soname_spec='${libname}${release}${shared_ext}$major'
13777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13778 shlibpath_var=LD_LIBRARY_PATH
13779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13781 # the default ld.so.conf also contains /usr/contrib/lib and
13782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13783 # libtool to hard-code these into programs
13784 ;;
13785
13786cygwin* | mingw* | pw32*)
13787 version_type=windows
13788 shrext=".dll"
13789 need_version=no
13790 need_lib_prefix=no
13791
13792 case $GCC,$host_os in
13793 yes,cygwin* | yes,mingw* | yes,pw32*)
13794 library_names_spec='$libname.dll.a'
13795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13796 postinstall_cmds='base_file=`basename \${file}`~
13797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13798 dldir=$destdir/`dirname \$dlpath`~
13799 test -d \$dldir || mkdir -p \$dldir~
13800 $install_prog $dir/$dlname \$dldir/$dlname'
13801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13802 dlpath=$dir/\$dldll~
13803 $rm \$dlpath'
13804 shlibpath_overrides_runpath=yes
13805
13806 case $host_os in
13807 cygwin*)
13808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13809 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13810 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13811 ;;
13812 mingw*)
13813 # MinGW DLLs use traditional 'lib' prefix
13814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13817 # It is most probably a Windows format PATH printed by
13818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13819 # path with ; separators, and with drive letters. We can handle the
13820 # drive letters (cygwin fileutils understands them), so leave them,
13821 # especially as we might pass files found there to a mingw objdump,
13822 # which wouldn't understand a cygwinified path. Ahh.
13823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13824 else
13825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13826 fi
13827 ;;
13828 pw32*)
13829 # pw32 DLLs use 'pw' prefix rather than 'lib'
13830 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13831 ;;
13832 esac
13833 ;;
13834
13835 *)
13836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13837 ;;
13838 esac
13839 dynamic_linker='Win32 ld.exe'
13840 # FIXME: first we should search . and the directory the executable is in
13841 shlibpath_var=PATH
13842 ;;
13843
13844darwin* | rhapsody*)
13845 dynamic_linker="$host_os dyld"
13846 version_type=darwin
13847 need_lib_prefix=no
13848 need_version=no
13849 # FIXME: Relying on posixy $() will cause problems for
13850 # cross-compilation, but unfortunately the echo tests do not
13851 # yet detect zsh echo's removal of \ escapes.
13852 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13853 soname_spec='${libname}${release}${major}$shared_ext'
13854 shlibpath_overrides_runpath=yes
13855 shlibpath_var=DYLD_LIBRARY_PATH
13856 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13857 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13858 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13859 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"`
13860 fi
13861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13862 ;;
13863
13864dgux*)
13865 version_type=linux
13866 need_lib_prefix=no
13867 need_version=no
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13869 soname_spec='${libname}${release}${shared_ext}$major'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 ;;
13872
13873freebsd1*)
13874 dynamic_linker=no
13875 ;;
13876
13877freebsd*)
13878 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13879 version_type=freebsd-$objformat
13880 case $version_type in
13881 freebsd-elf*)
13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13883 need_version=no
13884 need_lib_prefix=no
13885 ;;
13886 freebsd-*)
13887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13888 need_version=yes
13889 ;;
13890 esac
13891 shlibpath_var=LD_LIBRARY_PATH
13892 case $host_os in
13893 freebsd2*)
13894 shlibpath_overrides_runpath=yes
13895 ;;
13896 freebsd3.01* | freebsdelf3.01*)
13897 shlibpath_overrides_runpath=yes
13898 hardcode_into_libs=yes
13899 ;;
13900 *) # from 3.2 on
13901 shlibpath_overrides_runpath=no
13902 hardcode_into_libs=yes
13903 ;;
13904 esac
13905 ;;
13906
13907gnu*)
13908 version_type=linux
13909 need_lib_prefix=no
13910 need_version=no
13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13912 soname_spec='${libname}${release}${shared_ext}$major'
13913 shlibpath_var=LD_LIBRARY_PATH
13914 hardcode_into_libs=yes
13915 ;;
13916
13917hpux9* | hpux10* | hpux11*)
13918 # Give a soname corresponding to the major version so that dld.sl refuses to
13919 # link against other versions.
13920 version_type=sunos
13921 need_lib_prefix=no
13922 need_version=no
13923 case "$host_cpu" in
13924 ia64*)
13925 shrext='.so'
13926 hardcode_into_libs=yes
13927 dynamic_linker="$host_os dld.so"
13928 shlibpath_var=LD_LIBRARY_PATH
13929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13932 if test "X$HPUX_IA64_MODE" = X32; then
13933 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13934 else
13935 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13936 fi
13937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938 ;;
13939 hppa*64*)
13940 shrext='.sl'
13941 hardcode_into_libs=yes
13942 dynamic_linker="$host_os dld.sl"
13943 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13949 ;;
13950 *)
13951 shrext='.sl'
13952 dynamic_linker="$host_os dld.sl"
13953 shlibpath_var=SHLIB_PATH
13954 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 ;;
13958 esac
13959 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13960 postinstall_cmds='chmod 555 $lib'
13961 ;;
13962
13963irix5* | irix6* | nonstopux*)
13964 case $host_os in
13965 nonstopux*) version_type=nonstopux ;;
13966 *)
13967 if test "$lt_cv_prog_gnu_ld" = yes; then
13968 version_type=linux
13969 else
13970 version_type=irix
13971 fi ;;
13972 esac
13973 need_lib_prefix=no
13974 need_version=no
13975 soname_spec='${libname}${release}${shared_ext}$major'
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13977 case $host_os in
13978 irix5* | nonstopux*)
13979 libsuff= shlibsuff=
13980 ;;
13981 *)
13982 case $LD in # libtool.m4 will add one of these switches to LD
13983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13984 libsuff= shlibsuff= libmagic=32-bit;;
13985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13986 libsuff=32 shlibsuff=N32 libmagic=N32;;
13987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13989 *) libsuff= shlibsuff= libmagic=never-match;;
13990 esac
13991 ;;
13992 esac
13993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13994 shlibpath_overrides_runpath=no
13995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13997 hardcode_into_libs=yes
13998 ;;
13999
14000# No shared lib support for Linux oldld, aout, or coff.
14001linux*oldld* | linux*aout* | linux*coff*)
14002 dynamic_linker=no
14003 ;;
14004
14005# This must be Linux ELF.
14006linux*)
14007 version_type=linux
14008 need_lib_prefix=no
14009 need_version=no
14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011 soname_spec='${libname}${release}${shared_ext}$major'
14012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14013 shlibpath_var=LD_LIBRARY_PATH
14014 shlibpath_overrides_runpath=no
14015 # This implies no fast_install, which is unacceptable.
14016 # Some rework will be needed to allow for fast_install
14017 # before this can be enabled.
14018 hardcode_into_libs=yes
14019
14020 # We used to test for /lib/ld.so.1 and disable shared libraries on
14021 # powerpc, because MkLinux only supported shared libraries with the
14022 # GNU dynamic linker. Since this was broken with cross compilers,
14023 # most powerpc-linux boxes support dynamic linking these days and
14024 # people can always --disable-shared, the test was removed, and we
14025 # assume the GNU/Linux dynamic linker is in use.
14026 dynamic_linker='GNU/Linux ld.so'
14027 ;;
14028
14029netbsd*)
14030 version_type=sunos
14031 need_lib_prefix=no
14032 need_version=no
14033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14036 dynamic_linker='NetBSD (a.out) ld.so'
14037 else
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 dynamic_linker='NetBSD ld.elf_so'
14041 fi
14042 shlibpath_var=LD_LIBRARY_PATH
14043 shlibpath_overrides_runpath=yes
14044 hardcode_into_libs=yes
14045 ;;
14046
14047newsos6)
14048 version_type=linux
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 shlibpath_overrides_runpath=yes
14052 ;;
14053
14054nto-qnx)
14055 version_type=linux
14056 need_lib_prefix=no
14057 need_version=no
14058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059 soname_spec='${libname}${release}${shared_ext}$major'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=yes
14062 ;;
14063
14064openbsd*)
14065 version_type=sunos
14066 need_lib_prefix=no
14067 need_version=no
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14072 case $host_os in
14073 openbsd2.[89] | openbsd2.[89].*)
14074 shlibpath_overrides_runpath=no
14075 ;;
14076 *)
14077 shlibpath_overrides_runpath=yes
14078 ;;
14079 esac
14080 else
14081 shlibpath_overrides_runpath=yes
14082 fi
14083 ;;
14084
14085os2*)
14086 libname_spec='$name'
14087 shrext=".dll"
14088 need_lib_prefix=no
14089 library_names_spec='$libname${shared_ext} $libname.a'
14090 dynamic_linker='OS/2 ld.exe'
14091 shlibpath_var=LIBPATH
14092 ;;
14093
14094osf3* | osf4* | osf5*)
14095 version_type=osf
14096 need_lib_prefix=no
14097 need_version=no
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14102 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14103 ;;
14104
14105sco3.2v5*)
14106 version_type=osf
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 ;;
14111
14112solaris*)
14113 version_type=linux
14114 need_lib_prefix=no
14115 need_version=no
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 soname_spec='${libname}${release}${shared_ext}$major'
14118 shlibpath_var=LD_LIBRARY_PATH
14119 shlibpath_overrides_runpath=yes
14120 hardcode_into_libs=yes
14121 # ldd complains unless libraries are executable
14122 postinstall_cmds='chmod +x $lib'
14123 ;;
14124
14125sunos4*)
14126 version_type=sunos
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14128 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 if test "$with_gnu_ld" = yes; then
14132 need_lib_prefix=no
14133 fi
14134 need_version=yes
14135 ;;
14136
14137sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14138 version_type=linux
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LD_LIBRARY_PATH
14142 case $host_vendor in
14143 sni)
14144 shlibpath_overrides_runpath=no
14145 need_lib_prefix=no
14146 export_dynamic_flag_spec='${wl}-Blargedynsym'
14147 runpath_var=LD_RUN_PATH
14148 ;;
14149 siemens)
14150 need_lib_prefix=no
14151 ;;
14152 motorola)
14153 need_lib_prefix=no
14154 need_version=no
14155 shlibpath_overrides_runpath=no
14156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14157 ;;
14158 esac
14159 ;;
14160
14161sysv4*MP*)
14162 if test -d /usr/nec ;then
14163 version_type=linux
14164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14165 soname_spec='$libname${shared_ext}.$major'
14166 shlibpath_var=LD_LIBRARY_PATH
14167 fi
14168 ;;
14169
14170uts4*)
14171 version_type=linux
14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173 soname_spec='${libname}${release}${shared_ext}$major'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 ;;
14176
14177*)
14178 dynamic_linker=no
14179 ;;
14180esac
14181echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14182echo "${ECHO_T}$dynamic_linker" >&6
14183test "$dynamic_linker" = no && can_build_shared=no
14184
14185
14186# The else clause should only fire when bootstrapping the
14187# libtool distribution, otherwise you forgot to ship ltmain.sh
14188# with your package, and you will get complaints that there are
14189# no rules to generate ltmain.sh.
14190if test -f "$ltmain"; then
14191 # See if we are running on zsh, and set the options which allow our commands through
14192 # without removal of \ escapes.
14193 if test -n "${ZSH_VERSION+set}" ; then
14194 setopt NO_GLOB_SUBST
14195 fi
14196 # Now quote all the things that may contain metacharacters while being
14197 # careful not to overquote the AC_SUBSTed values. We take copies of the
14198 # variables and quote the copies for generation of the libtool script.
14199 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14202 deplibs_check_method reload_flag reload_cmds need_locks \
14203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14204 lt_cv_sys_global_symbol_to_c_name_address \
14205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14206 old_postinstall_cmds old_postuninstall_cmds \
14207 compiler_F77 \
14208 CC_F77 \
14209 LD_F77 \
14210 lt_prog_compiler_wl_F77 \
14211 lt_prog_compiler_pic_F77 \
14212 lt_prog_compiler_static_F77 \
14213 lt_prog_compiler_no_builtin_flag_F77 \
14214 export_dynamic_flag_spec_F77 \
14215 thread_safe_flag_spec_F77 \
14216 whole_archive_flag_spec_F77 \
14217 enable_shared_with_static_runtimes_F77 \
14218 old_archive_cmds_F77 \
14219 old_archive_from_new_cmds_F77 \
14220 predep_objects_F77 \
14221 postdep_objects_F77 \
14222 predeps_F77 \
14223 postdeps_F77 \
14224 compiler_lib_search_path_F77 \
14225 archive_cmds_F77 \
14226 archive_expsym_cmds_F77 \
14227 postinstall_cmds_F77 \
14228 postuninstall_cmds_F77 \
14229 old_archive_from_expsyms_cmds_F77 \
14230 allow_undefined_flag_F77 \
14231 no_undefined_flag_F77 \
14232 export_symbols_cmds_F77 \
14233 hardcode_libdir_flag_spec_F77 \
14234 hardcode_libdir_flag_spec_ld_F77 \
14235 hardcode_libdir_separator_F77 \
14236 hardcode_automatic_F77 \
14237 module_cmds_F77 \
14238 module_expsym_cmds_F77 \
14239 lt_cv_prog_compiler_c_o_F77 \
14240 exclude_expsyms_F77 \
14241 include_expsyms_F77; do
14242
14243 case $var in
14244 old_archive_cmds_F77 | \
14245 old_archive_from_new_cmds_F77 | \
14246 archive_cmds_F77 | \
14247 archive_expsym_cmds_F77 | \
14248 module_cmds_F77 | \
14249 module_expsym_cmds_F77 | \
14250 old_archive_from_expsyms_cmds_F77 | \
14251 export_symbols_cmds_F77 | \
14252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14253 postinstall_cmds | postuninstall_cmds | \
14254 old_postinstall_cmds | old_postuninstall_cmds | \
14255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14256 # Double-quote double-evaled strings.
14257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14258 ;;
14259 *)
14260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14261 ;;
14262 esac
14263 done
14264
14265 case $lt_echo in
14266 *'\$0 --fallback-echo"')
14267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14268 ;;
14269 esac
14270
14271cfgfile="$ofile"
14272
14273 cat <<__EOF__ >> "$cfgfile"
14274# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14275
14276# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14277
14278# Shell to use when invoking shell scripts.
14279SHELL=$lt_SHELL
14280
14281# Whether or not to build shared libraries.
14282build_libtool_libs=$enable_shared
14283
14284# Whether or not to build static libraries.
14285build_old_libs=$enable_static
14286
14287# Whether or not to add -lc for building shared libraries.
14288build_libtool_need_lc=$archive_cmds_need_lc_F77
14289
14290# Whether or not to disallow shared libs when runtime libs are static
14291allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14292
14293# Whether or not to optimize for fast installation.
14294fast_install=$enable_fast_install
14295
14296# The host system.
14297host_alias=$host_alias
14298host=$host
14299
14300# An echo program that does not interpret backslashes.
14301echo=$lt_echo
14302
14303# The archiver.
14304AR=$lt_AR
14305AR_FLAGS=$lt_AR_FLAGS
14306
14307# A C compiler.
14308LTCC=$lt_LTCC
14309
14310# A language-specific compiler.
14311CC=$lt_compiler_F77
14312
14313# Is the compiler the GNU C compiler?
14314with_gcc=$GCC_F77
14315
14316# An ERE matcher.
14317EGREP=$lt_EGREP
14318
14319# The linker used to build libraries.
14320LD=$lt_LD_F77
14321
14322# Whether we need hard or soft links.
14323LN_S=$lt_LN_S
14324
14325# A BSD-compatible nm program.
14326NM=$lt_NM
14327
14328# A symbol stripping program
14329STRIP=$STRIP
14330
14331# Used to examine libraries when file_magic_cmd begins "file"
14332MAGIC_CMD=$MAGIC_CMD
14333
14334# Used on cygwin: DLL creation program.
14335DLLTOOL="$DLLTOOL"
14336
14337# Used on cygwin: object dumper.
14338OBJDUMP="$OBJDUMP"
14339
14340# Used on cygwin: assembler.
14341AS="$AS"
14342
14343# The name of the directory that contains temporary libtool files.
14344objdir=$objdir
14345
14346# How to create reloadable object files.
14347reload_flag=$lt_reload_flag
14348reload_cmds=$lt_reload_cmds
14349
14350# How to pass a linker flag through the compiler.
14351wl=$lt_lt_prog_compiler_wl_F77
14352
14353# Object file suffix (normally "o").
14354objext="$ac_objext"
14355
14356# Old archive suffix (normally "a").
14357libext="$libext"
14358
14359# Shared library suffix (normally ".so").
14360shrext='$shrext'
14361
14362# Executable file suffix (normally "").
14363exeext="$exeext"
14364
14365# Additional compiler flags for building library objects.
14366pic_flag=$lt_lt_prog_compiler_pic_F77
14367pic_mode=$pic_mode
14368
14369# What is the maximum length of a command?
14370max_cmd_len=$lt_cv_sys_max_cmd_len
14371
14372# Does compiler simultaneously support -c and -o options?
14373compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14374
14375# Must we lock files when doing compilation ?
14376need_locks=$lt_need_locks
14377
14378# Do we need the lib prefix for modules?
14379need_lib_prefix=$need_lib_prefix
14380
14381# Do we need a version for libraries?
14382need_version=$need_version
14383
14384# Whether dlopen is supported.
14385dlopen_support=$enable_dlopen
14386
14387# Whether dlopen of programs is supported.
14388dlopen_self=$enable_dlopen_self
14389
14390# Whether dlopen of statically linked programs is supported.
14391dlopen_self_static=$enable_dlopen_self_static
14392
14393# Compiler flag to prevent dynamic linking.
14394link_static_flag=$lt_lt_prog_compiler_static_F77
14395
14396# Compiler flag to turn off builtin functions.
14397no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14398
14399# Compiler flag to allow reflexive dlopens.
14400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14401
14402# Compiler flag to generate shared objects directly from archives.
14403whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14404
14405# Compiler flag to generate thread-safe objects.
14406thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14407
14408# Library versioning type.
14409version_type=$version_type
14410
14411# Format of library name prefix.
14412libname_spec=$lt_libname_spec
14413
14414# List of archive names. First name is the real one, the rest are links.
14415# The last name is the one that the linker finds with -lNAME.
14416library_names_spec=$lt_library_names_spec
14417
14418# The coded name of the library, if different from the real name.
14419soname_spec=$lt_soname_spec
14420
14421# Commands used to build and install an old-style archive.
14422RANLIB=$lt_RANLIB
14423old_archive_cmds=$lt_old_archive_cmds_F77
14424old_postinstall_cmds=$lt_old_postinstall_cmds
14425old_postuninstall_cmds=$lt_old_postuninstall_cmds
14426
14427# Create an old-style archive from a shared archive.
14428old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14429
14430# Create a temporary old-style archive to link instead of a shared archive.
14431old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14432
14433# Commands used to build and install a shared archive.
14434archive_cmds=$lt_archive_cmds_F77
14435archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14436postinstall_cmds=$lt_postinstall_cmds
14437postuninstall_cmds=$lt_postuninstall_cmds
14438
14439# Commands used to build a loadable module (assumed same as above if empty)
14440module_cmds=$lt_module_cmds_F77
14441module_expsym_cmds=$lt_module_expsym_cmds_F77
14442
14443# Commands to strip libraries.
14444old_striplib=$lt_old_striplib
14445striplib=$lt_striplib
14446
14447# Dependencies to place before the objects being linked to create a
14448# shared library.
14449predep_objects=$lt_predep_objects_F77
14450
14451# Dependencies to place after the objects being linked to create a
14452# shared library.
14453postdep_objects=$lt_postdep_objects_F77
14454
14455# Dependencies to place before the objects being linked to create a
14456# shared library.
14457predeps=$lt_predeps_F77
14458
14459# Dependencies to place after the objects being linked to create a
14460# shared library.
14461postdeps=$lt_postdeps_F77
14462
14463# The library search path used internally by the compiler when linking
14464# a shared library.
14465compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14466
14467# Method to check whether dependent libraries are shared objects.
14468deplibs_check_method=$lt_deplibs_check_method
14469
14470# Command to use when deplibs_check_method == file_magic.
14471file_magic_cmd=$lt_file_magic_cmd
14472
14473# Flag that allows shared libraries with undefined symbols to be built.
14474allow_undefined_flag=$lt_allow_undefined_flag_F77
14475
14476# Flag that forces no undefined symbols.
14477no_undefined_flag=$lt_no_undefined_flag_F77
14478
14479# Commands used to finish a libtool library installation in a directory.
14480finish_cmds=$lt_finish_cmds
14481
14482# Same as above, but a single script fragment to be evaled but not shown.
14483finish_eval=$lt_finish_eval
14484
14485# Take the output of nm and produce a listing of raw symbols and C names.
14486global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14487
14488# Transform the output of nm in a proper C declaration
14489global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14490
14491# Transform the output of nm in a C name address pair
14492global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14493
14494# This is the shared library runtime path variable.
14495runpath_var=$runpath_var
14496
14497# This is the shared library path variable.
14498shlibpath_var=$shlibpath_var
14499
14500# Is shlibpath searched before the hard-coded library search path?
14501shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14502
14503# How to hardcode a shared library path into an executable.
14504hardcode_action=$hardcode_action_F77
14505
14506# Whether we should hardcode library paths into libraries.
14507hardcode_into_libs=$hardcode_into_libs
14508
14509# Flag to hardcode \$libdir into a binary during linking.
14510# This must work even if \$libdir does not exist.
14511hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14512
14513# If ld is used when linking, flag to hardcode \$libdir into
14514# a binary during linking. This must work even if \$libdir does
14515# not exist.
14516hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14517
14518# Whether we need a single -rpath flag with a separated argument.
14519hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14520
14521# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14522# resulting binary.
14523hardcode_direct=$hardcode_direct_F77
14524
14525# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14526# resulting binary.
14527hardcode_minus_L=$hardcode_minus_L_F77
14528
14529# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14530# the resulting binary.
14531hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14532
14533# Set to yes if building a shared library automatically hardcodes DIR into the library
14534# and all subsequent libraries and executables linked against it.
14535hardcode_automatic=$hardcode_automatic_F77
14536
14537# Variables whose values should be saved in libtool wrapper scripts and
14538# restored at relink time.
14539variables_saved_for_relink="$variables_saved_for_relink"
14540
14541# Whether libtool must link a program against all its dependency libraries.
14542link_all_deplibs=$link_all_deplibs_F77
14543
14544# Compile-time system search path for libraries
14545sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14546
14547# Run-time system search path for libraries
14548sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14549
14550# Fix the shell variable \$srcfile for the compiler.
14551fix_srcfile_path="$fix_srcfile_path_F77"
14552
14553# Set to yes if exported symbols are required.
14554always_export_symbols=$always_export_symbols_F77
14555
14556# The commands to list exported symbols.
14557export_symbols_cmds=$lt_export_symbols_cmds_F77
14558
14559# The commands to extract the exported symbol list from a shared archive.
14560extract_expsyms_cmds=$lt_extract_expsyms_cmds
14561
14562# Symbols that should not be listed in the preloaded symbols.
14563exclude_expsyms=$lt_exclude_expsyms_F77
14564
14565# Symbols that must always be exported.
14566include_expsyms=$lt_include_expsyms_F77
14567
14568# ### END LIBTOOL TAG CONFIG: $tagname
14569
14570__EOF__
14571
14572
14573else
14574 # If there is no Makefile yet, we rely on a make rule to execute
14575 # `config.status --recheck' to rerun these tests and create the
14576 # libtool script then.
14577 test -f Makefile && make "$ltmain"
14578fi
14579
14580
14581ac_ext=c
14582ac_cpp='$CPP $CPPFLAGS'
14583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14585ac_compiler_gnu=$ac_cv_c_compiler_gnu
14586
14587CC="$lt_save_CC"
14588
14589 else
14590 tagname=""
14591 fi
14592 ;;
14593
14594 GCJ)
14595 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14596
14597
14598
14599# Source file extension for Java test sources.
14600ac_ext=java
14601
14602# Object file extension for compiled Java test sources.
14603objext=o
14604objext_GCJ=$objext
14605
14606# Code to be used in simple compile tests
14607lt_simple_compile_test_code="class foo {}\n"
14608
14609# Code to be used in simple link tests
14610lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14611
14612# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14613
14614# If no C compiler was specified, use CC.
14615LTCC=${LTCC-"$CC"}
14616
14617# Allow CC to be a program name with arguments.
14618compiler=$CC
14619
14620
14621# Allow CC to be a program name with arguments.
14622lt_save_CC="$CC"
14623CC=${GCJ-"gcj"}
14624compiler=$CC
14625compiler_GCJ=$CC
14626
14627# GCJ did not exist at the time GCC didn't implicitly link libc in.
14628archive_cmds_need_lc_GCJ=no
14629
14630## CAVEAT EMPTOR:
14631## There is no encapsulation within the following macros, do not change
14632## the running order or otherwise move them around unless you know exactly
14633## what you are doing...
14634
14635lt_prog_compiler_no_builtin_flag_GCJ=
14636
14637if test "$GCC" = yes; then
14638 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14639
14640 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14641echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14642if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645 lt_cv_prog_compiler_rtti_exceptions=no
14646 ac_outfile=conftest.$ac_objext
14647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14648 lt_compiler_flag="-fno-rtti -fno-exceptions"
14649 # Insert the option either (1) after the last *FLAGS variable, or
14650 # (2) before a word containing "conftest.", or (3) at the end.
14651 # Note that $ac_compile itself does not contain backslashes and begins
14652 # with a dollar sign (not a hyphen), so the echo should work correctly.
14653 # The option is referenced via a variable to avoid confusing sed.
14654 lt_compile=`echo "$ac_compile" | $SED \
14655 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000014658 (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014659 (eval "$lt_compile" 2>conftest.err)
14660 ac_status=$?
14661 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000014662 echo "$as_me:14662: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014663 if (exit $ac_status) && test -s "$ac_outfile"; then
14664 # The compiler can only warn and ignore the option if not recognized
14665 # So say no if there are warnings
14666 if test ! -s conftest.err; then
14667 lt_cv_prog_compiler_rtti_exceptions=yes
14668 fi
14669 fi
14670 $rm conftest*
14671
14672fi
14673echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14674echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14675
14676if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14677 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14678else
14679 :
14680fi
14681
14682fi
14683
14684lt_prog_compiler_wl_GCJ=
14685lt_prog_compiler_pic_GCJ=
14686lt_prog_compiler_static_GCJ=
14687
14688echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14689echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14690
14691 if test "$GCC" = yes; then
14692 lt_prog_compiler_wl_GCJ='-Wl,'
14693 lt_prog_compiler_static_GCJ='-static'
14694
14695 case $host_os in
14696 aix*)
14697 # All AIX code is PIC.
14698 if test "$host_cpu" = ia64; then
14699 # AIX 5 now supports IA64 processor
14700 lt_prog_compiler_static_GCJ='-Bstatic'
14701 fi
14702 ;;
14703
14704 amigaos*)
14705 # FIXME: we need at least 68020 code to build shared libraries, but
14706 # adding the `-m68020' flag to GCC prevents building anything better,
14707 # like `-m68040'.
14708 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14709 ;;
14710
14711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14712 # PIC is the default for these OSes.
14713 ;;
14714
14715 mingw* | pw32* | os2*)
14716 # This hack is so that the source file can tell whether it is being
14717 # built for inclusion in a dll (and should export symbols for example).
14718 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14719 ;;
14720
14721 darwin* | rhapsody*)
14722 # PIC is the default on this platform
14723 # Common symbols not allowed in MH_DYLIB files
14724 lt_prog_compiler_pic_GCJ='-fno-common'
14725 ;;
14726
14727 msdosdjgpp*)
14728 # Just because we use GCC doesn't mean we suddenly get shared libraries
14729 # on systems that don't support them.
14730 lt_prog_compiler_can_build_shared_GCJ=no
14731 enable_shared=no
14732 ;;
14733
14734 sysv4*MP*)
14735 if test -d /usr/nec; then
14736 lt_prog_compiler_pic_GCJ=-Kconform_pic
14737 fi
14738 ;;
14739
14740 hpux*)
14741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14742 # not for PA HP-UX.
14743 case "$host_cpu" in
14744 hppa*64*|ia64*)
14745 # +Z the default
14746 ;;
14747 *)
14748 lt_prog_compiler_pic_GCJ='-fPIC'
14749 ;;
14750 esac
14751 ;;
14752
14753 *)
14754 lt_prog_compiler_pic_GCJ='-fPIC'
14755 ;;
14756 esac
14757 else
14758 # PORTME Check for flag to pass linker flags through the system compiler.
14759 case $host_os in
14760 aix*)
14761 lt_prog_compiler_wl_GCJ='-Wl,'
14762 if test "$host_cpu" = ia64; then
14763 # AIX 5 now supports IA64 processor
14764 lt_prog_compiler_static_GCJ='-Bstatic'
14765 else
14766 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14767 fi
14768 ;;
14769
14770 mingw* | pw32* | os2*)
14771 # This hack is so that the source file can tell whether it is being
14772 # built for inclusion in a dll (and should export symbols for example).
14773 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14774 ;;
14775
14776 hpux9* | hpux10* | hpux11*)
14777 lt_prog_compiler_wl_GCJ='-Wl,'
14778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14779 # not for PA HP-UX.
14780 case "$host_cpu" in
14781 hppa*64*|ia64*)
14782 # +Z the default
14783 ;;
14784 *)
14785 lt_prog_compiler_pic_GCJ='+Z'
14786 ;;
14787 esac
14788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14789 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14790 ;;
14791
14792 irix5* | irix6* | nonstopux*)
14793 lt_prog_compiler_wl_GCJ='-Wl,'
14794 # PIC (with -KPIC) is the default.
14795 lt_prog_compiler_static_GCJ='-non_shared'
14796 ;;
14797
14798 newsos6)
14799 lt_prog_compiler_pic_GCJ='-KPIC'
14800 lt_prog_compiler_static_GCJ='-Bstatic'
14801 ;;
14802
14803 linux*)
14804 case $CC in
14805 icc|ecc)
14806 lt_prog_compiler_wl_GCJ='-Wl,'
14807 lt_prog_compiler_pic_GCJ='-KPIC'
14808 lt_prog_compiler_static_GCJ='-static'
14809 ;;
14810 ccc)
14811 lt_prog_compiler_wl_GCJ='-Wl,'
14812 # All Alpha code is PIC.
14813 lt_prog_compiler_static_GCJ='-non_shared'
14814 ;;
14815 esac
14816 ;;
14817
14818 osf3* | osf4* | osf5*)
14819 lt_prog_compiler_wl_GCJ='-Wl,'
14820 # All OSF/1 code is PIC.
14821 lt_prog_compiler_static_GCJ='-non_shared'
14822 ;;
14823
14824 sco3.2v5*)
14825 lt_prog_compiler_pic_GCJ='-Kpic'
14826 lt_prog_compiler_static_GCJ='-dn'
14827 ;;
14828
14829 solaris*)
14830 lt_prog_compiler_wl_GCJ='-Wl,'
14831 lt_prog_compiler_pic_GCJ='-KPIC'
14832 lt_prog_compiler_static_GCJ='-Bstatic'
14833 ;;
14834
14835 sunos4*)
14836 lt_prog_compiler_wl_GCJ='-Qoption ld '
14837 lt_prog_compiler_pic_GCJ='-PIC'
14838 lt_prog_compiler_static_GCJ='-Bstatic'
14839 ;;
14840
14841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14842 lt_prog_compiler_wl_GCJ='-Wl,'
14843 lt_prog_compiler_pic_GCJ='-KPIC'
14844 lt_prog_compiler_static_GCJ='-Bstatic'
14845 ;;
14846
14847 sysv4*MP*)
14848 if test -d /usr/nec ;then
14849 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14850 lt_prog_compiler_static_GCJ='-Bstatic'
14851 fi
14852 ;;
14853
14854 uts4*)
14855 lt_prog_compiler_pic_GCJ='-pic'
14856 lt_prog_compiler_static_GCJ='-Bstatic'
14857 ;;
14858
14859 *)
14860 lt_prog_compiler_can_build_shared_GCJ=no
14861 ;;
14862 esac
14863 fi
14864
14865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14866echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14867
14868#
14869# Check to make sure the PIC flag actually works.
14870#
14871if test -n "$lt_prog_compiler_pic_GCJ"; then
14872 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14873echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14874if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 lt_prog_compiler_pic_works_GCJ=no
14878 ac_outfile=conftest.$ac_objext
14879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14880 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14881 # Insert the option either (1) after the last *FLAGS variable, or
14882 # (2) before a word containing "conftest.", or (3) at the end.
14883 # Note that $ac_compile itself does not contain backslashes and begins
14884 # with a dollar sign (not a hyphen), so the echo should work correctly.
14885 # The option is referenced via a variable to avoid confusing sed.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000014890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014891 (eval "$lt_compile" 2>conftest.err)
14892 ac_status=$?
14893 cat conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000014894 echo "$as_me:14894: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014895 if (exit $ac_status) && test -s "$ac_outfile"; then
14896 # The compiler can only warn and ignore the option if not recognized
14897 # So say no if there are warnings
14898 if test ! -s conftest.err; then
14899 lt_prog_compiler_pic_works_GCJ=yes
14900 fi
14901 fi
14902 $rm conftest*
14903
14904fi
14905echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14906echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14907
14908if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14909 case $lt_prog_compiler_pic_GCJ in
14910 "" | " "*) ;;
14911 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14912 esac
14913else
14914 lt_prog_compiler_pic_GCJ=
14915 lt_prog_compiler_can_build_shared_GCJ=no
14916fi
14917
14918fi
14919case "$host_os" in
14920 # For platforms which do not support PIC, -DPIC is meaningless:
14921 *djgpp*)
14922 lt_prog_compiler_pic_GCJ=
14923 ;;
14924 *)
14925 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14926 ;;
14927esac
14928
14929echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14931if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933else
14934 lt_cv_prog_compiler_c_o_GCJ=no
14935 $rm -r conftest 2>/dev/null
14936 mkdir conftest
14937 cd conftest
14938 mkdir out
14939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14940
14941 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14942 # that will create temporary files in the current directory regardless of
14943 # the output directory. Thus, making CWD read-only will cause this test
14944 # to fail, enabling locking or at least warning the user not to do parallel
14945 # builds.
14946 chmod -w .
14947
14948 lt_compiler_flag="-o out/conftest2.$ac_objext"
14949 # Insert the option either (1) after the last *FLAGS variable, or
14950 # (2) before a word containing "conftest.", or (3) at the end.
14951 # Note that $ac_compile itself does not contain backslashes and begins
14952 # with a dollar sign (not a hyphen), so the echo should work correctly.
14953 lt_compile=`echo "$ac_compile" | $SED \
14954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956 -e 's:$: $lt_compiler_flag:'`
John Criswelld9cd1442003-09-09 20:52:17 +000014957 (eval echo "\"\$as_me:14957: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014958 (eval "$lt_compile" 2>out/conftest.err)
14959 ac_status=$?
14960 cat out/conftest.err >&5
John Criswelld9cd1442003-09-09 20:52:17 +000014961 echo "$as_me:14961: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14963 then
14964 # The compiler can only warn and ignore the option if not recognized
14965 # So say no if there are warnings
14966 if test ! -s out/conftest.err; then
14967 lt_cv_prog_compiler_c_o_GCJ=yes
14968 fi
14969 fi
14970 chmod u+w .
14971 $rm conftest* out/*
14972 rmdir out
14973 cd ..
14974 rmdir conftest
14975 $rm conftest*
14976
14977fi
14978echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14979echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14980
14981
14982hard_links="nottested"
14983if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14984 # do not overwrite the value of need_locks provided by the user
14985 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14987 hard_links=yes
14988 $rm conftest*
14989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990 touch conftest.a
14991 ln conftest.a conftest.b 2>&5 || hard_links=no
14992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993 echo "$as_me:$LINENO: result: $hard_links" >&5
14994echo "${ECHO_T}$hard_links" >&6
14995 if test "$hard_links" = no; then
14996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14998 need_locks=warn
14999 fi
15000else
15001 need_locks=no
15002fi
15003
15004echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15006
15007 runpath_var=
15008 allow_undefined_flag_GCJ=
15009 enable_shared_with_static_runtimes_GCJ=no
15010 archive_cmds_GCJ=
15011 archive_expsym_cmds_GCJ=
15012 old_archive_From_new_cmds_GCJ=
15013 old_archive_from_expsyms_cmds_GCJ=
15014 export_dynamic_flag_spec_GCJ=
15015 whole_archive_flag_spec_GCJ=
15016 thread_safe_flag_spec_GCJ=
15017 hardcode_libdir_flag_spec_GCJ=
15018 hardcode_libdir_flag_spec_ld_GCJ=
15019 hardcode_libdir_separator_GCJ=
15020 hardcode_direct_GCJ=no
15021 hardcode_minus_L_GCJ=no
15022 hardcode_shlibpath_var_GCJ=unsupported
15023 link_all_deplibs_GCJ=unknown
15024 hardcode_automatic_GCJ=no
15025 module_cmds_GCJ=
15026 module_expsym_cmds_GCJ=
15027 always_export_symbols_GCJ=no
15028 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15029 # include_expsyms should be a list of space-separated symbols to be *always*
15030 # included in the symbol list
15031 include_expsyms_GCJ=
15032 # exclude_expsyms can be an extended regexp of symbols to exclude
15033 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15034 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15035 # as well as any symbol that contains `d'.
15036 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15037 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15038 # platforms (ab)use it in PIC code, but their linkers get confused if
15039 # the symbol is explicitly referenced. Since portable code cannot
15040 # rely on this symbol name, it's probably fine to never include it in
15041 # preloaded symbol tables.
15042 extract_expsyms_cmds=
15043
15044 case $host_os in
15045 cygwin* | mingw* | pw32*)
15046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15047 # When not using gcc, we currently assume that we are using
15048 # Microsoft Visual C++.
15049 if test "$GCC" != yes; then
15050 with_gnu_ld=no
15051 fi
15052 ;;
15053 openbsd*)
15054 with_gnu_ld=no
15055 ;;
15056 esac
15057
15058 ld_shlibs_GCJ=yes
15059 if test "$with_gnu_ld" = yes; then
15060 # If archive_cmds runs LD, not CC, wlarc should be empty
15061 wlarc='${wl}'
15062
15063 # See if GNU ld supports shared libraries.
15064 case $host_os in
15065 aix3* | aix4* | aix5*)
15066 # On AIX/PPC, the GNU linker is very broken
15067 if test "$host_cpu" != ia64; then
15068 ld_shlibs_GCJ=no
15069 cat <<EOF 1>&2
15070
15071*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15072*** to be unable to reliably create shared libraries on AIX.
15073*** Therefore, libtool is disabling shared libraries support. If you
15074*** really care for shared libraries, you may want to modify your PATH
15075*** so that a non-GNU linker is found, and then restart.
15076
15077EOF
15078 fi
15079 ;;
15080
15081 amigaos*)
15082 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)'
15083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15084 hardcode_minus_L_GCJ=yes
15085
15086 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15087 # that the semantics of dynamic libraries on AmigaOS, at least up
15088 # to version 4, is to share data among multiple programs linked
15089 # with the same dynamic library. Since this doesn't match the
15090 # behavior of shared libraries on other platforms, we can't use
15091 # them.
15092 ld_shlibs_GCJ=no
15093 ;;
15094
15095 beos*)
15096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097 allow_undefined_flag_GCJ=unsupported
15098 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15099 # support --undefined. This deserves some investigation. FIXME
15100 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15101 else
15102 ld_shlibs_GCJ=no
15103 fi
15104 ;;
15105
15106 cygwin* | mingw* | pw32*)
15107 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15108 # as there is no search path for DLLs.
15109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15110 allow_undefined_flag_GCJ=unsupported
15111 always_export_symbols_GCJ=no
15112 enable_shared_with_static_runtimes_GCJ=yes
15113 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15114
15115 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15117 # If the export-symbols file already is a .def file (1st line
15118 # is EXPORTS), use it as is; otherwise, prepend...
15119 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15120 cp $export_symbols $output_objdir/$soname.def;
15121 else
15122 echo EXPORTS > $output_objdir/$soname.def;
15123 cat $export_symbols >> $output_objdir/$soname.def;
15124 fi~
15125 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15126 else
15127 ld_shlibs=no
15128 fi
15129 ;;
15130
15131 netbsd*)
15132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15133 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15134 wlarc=
15135 else
15136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138 fi
15139 ;;
15140
15141 solaris* | sysv5*)
15142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15143 ld_shlibs_GCJ=no
15144 cat <<EOF 1>&2
15145
15146*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15147*** create shared libraries on Solaris systems. Therefore, libtool
15148*** is disabling shared libraries support. We urge you to upgrade GNU
15149*** binutils to release 2.9.1 or newer. Another option is to modify
15150*** your PATH or compiler configuration so that the native linker is
15151*** used, and then restart.
15152
15153EOF
15154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15157 else
15158 ld_shlibs_GCJ=no
15159 fi
15160 ;;
15161
15162 sunos4*)
15163 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15164 wlarc=
15165 hardcode_direct_GCJ=yes
15166 hardcode_shlibpath_var_GCJ=no
15167 ;;
15168
15169 *)
15170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173 else
15174 ld_shlibs_GCJ=no
15175 fi
15176 ;;
15177 esac
15178
15179 if test "$ld_shlibs_GCJ" = yes; then
15180 runpath_var=LD_RUN_PATH
15181 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15182 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15183 # ancient GNU ld didn't support --whole-archive et. al.
15184 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15185 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15186 else
15187 whole_archive_flag_spec_GCJ=
15188 fi
15189 fi
15190 else
15191 # PORTME fill in a description of your system's linker (not GNU ld)
15192 case $host_os in
15193 aix3*)
15194 allow_undefined_flag_GCJ=unsupported
15195 always_export_symbols_GCJ=yes
15196 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'
15197 # Note: this linker hardcodes the directories in LIBPATH if there
15198 # are no directories specified by -L.
15199 hardcode_minus_L_GCJ=yes
15200 if test "$GCC" = yes && test -z "$link_static_flag"; then
15201 # Neither direct hardcoding nor static linking is supported with a
15202 # broken collect2.
15203 hardcode_direct_GCJ=unsupported
15204 fi
15205 ;;
15206
15207 aix4* | aix5*)
15208 if test "$host_cpu" = ia64; then
15209 # On IA64, the linker does run time linking by default, so we don't
15210 # have to do anything special.
15211 aix_use_runtimelinking=no
15212 exp_sym_flag='-Bexport'
15213 no_entry_flag=""
15214 else
15215 # If we're using GNU nm, then we don't want the "-C" option.
15216 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15217 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15218 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'
15219 else
15220 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'
15221 fi
15222 aix_use_runtimelinking=no
15223
15224 # Test if we are trying to use run time linking or normal
15225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15226 # need to do runtime linking.
15227 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15228 for ld_flag in $LDFLAGS; do
15229 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15230 aix_use_runtimelinking=yes
15231 break
15232 fi
15233 done
15234 esac
15235
15236 exp_sym_flag='-bexport'
15237 no_entry_flag='-bnoentry'
15238 fi
15239
15240 # When large executables or shared objects are built, AIX ld can
15241 # have problems creating the table of contents. If linking a library
15242 # or program results in "error TOC overflow" add -mminimal-toc to
15243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15245
15246 archive_cmds_GCJ=''
15247 hardcode_direct_GCJ=yes
15248 hardcode_libdir_separator_GCJ=':'
15249 link_all_deplibs_GCJ=yes
15250
15251 if test "$GCC" = yes; then
15252 case $host_os in aix4.012|aix4.012.*)
15253 # We only want to do this on AIX 4.2 and lower, the check
15254 # below for broken collect2 doesn't work under 4.3+
15255 collect2name=`${CC} -print-prog-name=collect2`
15256 if test -f "$collect2name" && \
15257 strings "$collect2name" | grep resolve_lib_name >/dev/null
15258 then
15259 # We have reworked collect2
15260 hardcode_direct_GCJ=yes
15261 else
15262 # We have old collect2
15263 hardcode_direct_GCJ=unsupported
15264 # It fails to find uninstalled libraries when the uninstalled
15265 # path is not listed in the libpath. Setting hardcode_minus_L
15266 # to unsupported forces relinking
15267 hardcode_minus_L_GCJ=yes
15268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15269 hardcode_libdir_separator_GCJ=
15270 fi
15271 esac
15272 shared_flag='-shared'
15273 else
15274 # not using gcc
15275 if test "$host_cpu" = ia64; then
15276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15277 # chokes on -Wl,-G. The following line is correct:
15278 shared_flag='-G'
15279 else
15280 if test "$aix_use_runtimelinking" = yes; then
15281 shared_flag='${wl}-G'
15282 else
15283 shared_flag='${wl}-bM:SRE'
15284 fi
15285 fi
15286 fi
15287
15288 # It seems that -bexpall does not export symbols beginning with
15289 # underscore (_), so it is better to generate a list of symbols to export.
15290 always_export_symbols_GCJ=yes
15291 if test "$aix_use_runtimelinking" = yes; then
15292 # Warning - without using the other runtime loading flags (-brtl),
15293 # -berok will link without error, but may produce a broken library.
15294 allow_undefined_flag_GCJ='-berok'
15295 # Determine the default libpath from the value encoded in an empty executable.
15296 cat >conftest.$ac_ext <<_ACEOF
15297#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000015298#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000015299
John Criswelld9cd1442003-09-09 20:52:17 +000015300#ifdef F77_DUMMY_MAIN
15301# ifdef __cplusplus
15302 extern "C"
15303# endif
15304 int F77_DUMMY_MAIN() { return 1; }
15305#endif
John Criswell47fdd832003-07-14 16:52:07 +000015306int
15307main ()
15308{
15309
15310 ;
15311 return 0;
15312}
15313_ACEOF
15314rm -f conftest.$ac_objext conftest$ac_exeext
15315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316 (eval $ac_link) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -s conftest$ac_exeext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326
15327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15328}'`
15329# Check for a 64-bit object if we didn't find anything.
15330if 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; }
15331}'`; fi
15332else
15333 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000015334cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000015335fi
15336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15338
15339 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15340 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"
15341 else
15342 if test "$host_cpu" = ia64; then
15343 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15344 allow_undefined_flag_GCJ="-z nodefs"
15345 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"
15346 else
15347 # Determine the default libpath from the value encoded in an empty executable.
15348 cat >conftest.$ac_ext <<_ACEOF
15349#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000015350#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000015351
John Criswelld9cd1442003-09-09 20:52:17 +000015352#ifdef F77_DUMMY_MAIN
15353# ifdef __cplusplus
15354 extern "C"
15355# endif
15356 int F77_DUMMY_MAIN() { return 1; }
15357#endif
John Criswell47fdd832003-07-14 16:52:07 +000015358int
15359main ()
15360{
15361
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366rm -f conftest.$ac_objext conftest$ac_exeext
15367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378
15379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15380}'`
15381# Check for a 64-bit object if we didn't find anything.
15382if 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; }
15383}'`; fi
15384else
15385 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000015386cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000015387fi
15388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15389if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15390
15391 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15392 # Warning - without using the other run time loading flags,
15393 # -berok will link without error, but may produce a broken library.
15394 no_undefined_flag_GCJ=' ${wl}-bernotok'
15395 allow_undefined_flag_GCJ=' ${wl}-berok'
15396 # -bexpall does not export symbols beginning with underscore (_)
15397 always_export_symbols_GCJ=yes
15398 # Exported symbols can be pulled into shared objects from archives
15399 whole_archive_flag_spec_GCJ=' '
15400 archive_cmds_need_lc_GCJ=yes
15401 # This is similar to how AIX traditionally builds it's shared libraries.
15402 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'
15403 fi
15404 fi
15405 ;;
15406
15407 amigaos*)
15408 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)'
15409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15410 hardcode_minus_L_GCJ=yes
15411 # see comment about different semantics on the GNU ld section
15412 ld_shlibs_GCJ=no
15413 ;;
15414
15415 bsdi4*)
15416 export_dynamic_flag_spec_GCJ=-rdynamic
15417 ;;
15418
15419 cygwin* | mingw* | pw32*)
15420 # When not using gcc, we currently assume that we are using
15421 # Microsoft Visual C++.
15422 # hardcode_libdir_flag_spec is actually meaningless, as there is
15423 # no search path for DLLs.
15424 hardcode_libdir_flag_spec_GCJ=' '
15425 allow_undefined_flag_GCJ=unsupported
15426 # Tell ltmain to make .lib files, not .a files.
15427 libext=lib
15428 # Tell ltmain to make .dll files, not .so files.
15429 shrext=".dll"
15430 # FIXME: Setting linknames here is a bad hack.
15431 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15432 # The linker will automatically build a .lib file if we build a DLL.
15433 old_archive_From_new_cmds_GCJ='true'
15434 # FIXME: Should let the user specify the lib program.
15435 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15436 fix_srcfile_path='`cygpath -w "$srcfile"`'
15437 enable_shared_with_static_runtimes_GCJ=yes
15438 ;;
15439
15440 darwin* | rhapsody*)
15441 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15442 archive_cmds_need_lc_GCJ=no
15443 case "$host_os" in
15444 rhapsody* | darwin1.[012])
15445 allow_undefined_flag_GCJ='-undefined suppress'
15446 ;;
15447 *) # Darwin 1.3 on
15448 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15449 ;;
15450 esac
15451 # FIXME: Relying on posixy $() will cause problems for
15452 # cross-compilation, but unfortunately the echo tests do not
15453 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15454 # `"' quotes if we put them in here... so don't!
15455 lt_int_apple_cc_single_mod=no
15456 output_verbose_link_cmd='echo'
15457 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15458 lt_int_apple_cc_single_mod=yes
15459 fi
15460 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15461 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15462 else
15463 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'
15464 fi
15465 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15467 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15468 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}'
15469 else
15470 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}'
15471 fi
15472 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}'
15473 hardcode_direct_GCJ=no
15474 hardcode_automatic_GCJ=yes
15475 hardcode_shlibpath_var_GCJ=unsupported
15476 whole_archive_flag_spec_GCJ='-all_load $convenience'
15477 link_all_deplibs_GCJ=yes
15478 fi
15479 ;;
15480
15481 dgux*)
15482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484 hardcode_shlibpath_var_GCJ=no
15485 ;;
15486
15487 freebsd1*)
15488 ld_shlibs_GCJ=no
15489 ;;
15490
15491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15492 # support. Future versions do this automatically, but an explicit c++rt0.o
15493 # does not break anything, and helps significantly (at the cost of a little
15494 # extra space).
15495 freebsd2.2*)
15496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15497 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15498 hardcode_direct_GCJ=yes
15499 hardcode_shlibpath_var_GCJ=no
15500 ;;
15501
15502 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15503 freebsd2*)
15504 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_direct_GCJ=yes
15506 hardcode_minus_L_GCJ=yes
15507 hardcode_shlibpath_var_GCJ=no
15508 ;;
15509
15510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15511 freebsd*)
15512 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15514 hardcode_direct_GCJ=yes
15515 hardcode_shlibpath_var_GCJ=no
15516 ;;
15517
15518 hpux9*)
15519 if test "$GCC" = yes; then
15520 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'
15521 else
15522 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'
15523 fi
15524 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15525 hardcode_libdir_separator_GCJ=:
15526 hardcode_direct_GCJ=yes
15527
15528 # hardcode_minus_L: Not really in the search PATH,
15529 # but as the default location of the library.
15530 hardcode_minus_L_GCJ=yes
15531 export_dynamic_flag_spec_GCJ='${wl}-E'
15532 ;;
15533
15534 hpux10* | hpux11*)
15535 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15536 case "$host_cpu" in
15537 hppa*64*|ia64*)
15538 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539 ;;
15540 *)
15541 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15542 ;;
15543 esac
15544 else
15545 case "$host_cpu" in
15546 hppa*64*|ia64*)
15547 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 ;;
15549 *)
15550 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15551 ;;
15552 esac
15553 fi
15554 if test "$with_gnu_ld" = no; then
15555 case "$host_cpu" in
15556 hppa*64*)
15557 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15558 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15559 hardcode_libdir_separator_GCJ=:
15560 hardcode_direct_GCJ=no
15561 hardcode_shlibpath_var_GCJ=no
15562 ;;
15563 ia64*)
15564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15565 hardcode_direct_GCJ=no
15566 hardcode_shlibpath_var_GCJ=no
15567
15568 # hardcode_minus_L: Not really in the search PATH,
15569 # but as the default location of the library.
15570 hardcode_minus_L_GCJ=yes
15571 ;;
15572 *)
15573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15574 hardcode_libdir_separator_GCJ=:
15575 hardcode_direct_GCJ=yes
15576 export_dynamic_flag_spec_GCJ='${wl}-E'
15577
15578 # hardcode_minus_L: Not really in the search PATH,
15579 # but as the default location of the library.
15580 hardcode_minus_L_GCJ=yes
15581 ;;
15582 esac
15583 fi
15584 ;;
15585
15586 irix5* | irix6* | nonstopux*)
15587 if test "$GCC" = yes; then
15588 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'
15589 else
15590 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'
15591 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15592 fi
15593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15594 hardcode_libdir_separator_GCJ=:
15595 link_all_deplibs_GCJ=yes
15596 ;;
15597
15598 netbsd*)
15599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15600 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15601 else
15602 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15603 fi
15604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15605 hardcode_direct_GCJ=yes
15606 hardcode_shlibpath_var_GCJ=no
15607 ;;
15608
15609 newsos6)
15610 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611 hardcode_direct_GCJ=yes
15612 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613 hardcode_libdir_separator_GCJ=:
15614 hardcode_shlibpath_var_GCJ=no
15615 ;;
15616
15617 openbsd*)
15618 hardcode_direct_GCJ=yes
15619 hardcode_shlibpath_var_GCJ=no
15620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15621 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15622 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15623 export_dynamic_flag_spec_GCJ='${wl}-E'
15624 else
15625 case $host_os in
15626 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15627 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15628 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15629 ;;
15630 *)
15631 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15632 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15633 ;;
15634 esac
15635 fi
15636 ;;
15637
15638 os2*)
15639 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640 hardcode_minus_L_GCJ=yes
15641 allow_undefined_flag_GCJ=unsupported
15642 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'
15643 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15644 ;;
15645
15646 osf3*)
15647 if test "$GCC" = yes; then
15648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15649 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'
15650 else
15651 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15652 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'
15653 fi
15654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15655 hardcode_libdir_separator_GCJ=:
15656 ;;
15657
15658 osf4* | osf5*) # as osf3* with the addition of -msym flag
15659 if test "$GCC" = yes; then
15660 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15661 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'
15662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663 else
15664 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15665 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'
15666 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~
15667 $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'
15668
15669 # Both c and cxx compiler support -rpath directly
15670 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15671 fi
15672 hardcode_libdir_separator_GCJ=:
15673 ;;
15674
15675 sco3.2v5*)
15676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677 hardcode_shlibpath_var_GCJ=no
15678 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15679 runpath_var=LD_RUN_PATH
15680 hardcode_runpath_var=yes
15681 ;;
15682
15683 solaris*)
15684 no_undefined_flag_GCJ=' -z text'
15685 if test "$GCC" = yes; then
15686 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15688 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15689 else
15690 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15692 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15693 fi
15694 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15695 hardcode_shlibpath_var_GCJ=no
15696 case $host_os in
15697 solaris2.[0-5] | solaris2.[0-5].*) ;;
15698 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15699 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15700 esac
15701 link_all_deplibs_GCJ=yes
15702 ;;
15703
15704 sunos4*)
15705 if test "x$host_vendor" = xsequent; then
15706 # Use $CC to link under sequent, because it throws in some extra .o
15707 # files that make .init and .fini sections work.
15708 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15709 else
15710 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15711 fi
15712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15713 hardcode_direct_GCJ=yes
15714 hardcode_minus_L_GCJ=yes
15715 hardcode_shlibpath_var_GCJ=no
15716 ;;
15717
15718 sysv4)
15719 case $host_vendor in
15720 sni)
15721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722 hardcode_direct_GCJ=yes # is this really true???
15723 ;;
15724 siemens)
15725 ## LD is ld it makes a PLAMLIB
15726 ## CC just makes a GrossModule.
15727 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15728 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15729 hardcode_direct_GCJ=no
15730 ;;
15731 motorola)
15732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15734 ;;
15735 esac
15736 runpath_var='LD_RUN_PATH'
15737 hardcode_shlibpath_var_GCJ=no
15738 ;;
15739
15740 sysv4.3*)
15741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742 hardcode_shlibpath_var_GCJ=no
15743 export_dynamic_flag_spec_GCJ='-Bexport'
15744 ;;
15745
15746 sysv4*MP*)
15747 if test -d /usr/nec; then
15748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749 hardcode_shlibpath_var_GCJ=no
15750 runpath_var=LD_RUN_PATH
15751 hardcode_runpath_var=yes
15752 ld_shlibs_GCJ=yes
15753 fi
15754 ;;
15755
15756 sysv4.2uw2*)
15757 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_direct_GCJ=yes
15759 hardcode_minus_L_GCJ=no
15760 hardcode_shlibpath_var_GCJ=no
15761 hardcode_runpath_var=yes
15762 runpath_var=LD_RUN_PATH
15763 ;;
15764
15765 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15766 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15767 if test "$GCC" = yes; then
15768 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15769 else
15770 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771 fi
15772 runpath_var='LD_RUN_PATH'
15773 hardcode_shlibpath_var_GCJ=no
15774 ;;
15775
15776 sysv5*)
15777 no_undefined_flag_GCJ=' -z text'
15778 # $CC -shared without GNU ld will not create a library from C++
15779 # object files and a static libstdc++, better avoid it by now
15780 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15783 hardcode_libdir_flag_spec_GCJ=
15784 hardcode_shlibpath_var_GCJ=no
15785 runpath_var='LD_RUN_PATH'
15786 ;;
15787
15788 uts4*)
15789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791 hardcode_shlibpath_var_GCJ=no
15792 ;;
15793
15794 *)
15795 ld_shlibs_GCJ=no
15796 ;;
15797 esac
15798 fi
15799
15800echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15801echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15802test "$ld_shlibs_GCJ" = no && can_build_shared=no
15803
15804variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805if test "$GCC" = yes; then
15806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807fi
15808
15809#
15810# Do we need to explicitly link libc?
15811#
15812case "x$archive_cmds_need_lc_GCJ" in
15813x|xyes)
15814 # Assume -lc should be added
15815 archive_cmds_need_lc_GCJ=yes
15816
15817 if test "$enable_shared" = yes && test "$GCC" = yes; then
15818 case $archive_cmds_GCJ in
15819 *'~'*)
15820 # FIXME: we may have to deal with multi-command sequences.
15821 ;;
15822 '$CC '*)
15823 # Test whether the compiler implicitly links with -lc since on some
15824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15825 # to ld, don't add -lc before -lgcc.
15826 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15827echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15828 $rm conftest*
15829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15830
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } 2>conftest.err; then
15836 soname=conftest
15837 lib=conftest
15838 libobjs=conftest.$ac_objext
15839 deplibs=
15840 wl=$lt_prog_compiler_wl_GCJ
15841 compiler_flags=-v
15842 linker_flags=-v
15843 verstring=
15844 output_objdir=.
15845 libname=conftest
15846 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15847 allow_undefined_flag_GCJ=
15848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15849 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }
15853 then
15854 archive_cmds_need_lc_GCJ=no
15855 else
15856 archive_cmds_need_lc_GCJ=yes
15857 fi
15858 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15859 else
15860 cat conftest.err 1>&5
15861 fi
15862 $rm conftest*
15863 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15864echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15865 ;;
15866 esac
15867 fi
15868 ;;
15869esac
15870
15871echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15873hardcode_action_GCJ=
15874if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15875 test -n "$runpath_var GCJ" || \
15876 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15877
15878 # We can hardcode non-existant directories.
15879 if test "$hardcode_direct_GCJ" != no &&
15880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881 # have to relink, otherwise we might link with an installed library
15882 # when we should be linking with a yet-to-be-installed one
15883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15884 test "$hardcode_minus_L_GCJ" != no; then
15885 # Linking always hardcodes the temporary library directory.
15886 hardcode_action_GCJ=relink
15887 else
15888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889 hardcode_action_GCJ=immediate
15890 fi
15891else
15892 # We cannot hardcode anything, or else we can only hardcode existing
15893 # directories.
15894 hardcode_action_GCJ=unsupported
15895fi
15896echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15897echo "${ECHO_T}$hardcode_action_GCJ" >&6
15898
15899if test "$hardcode_action_GCJ" = relink; then
15900 # Fast installation is not supported
15901 enable_fast_install=no
15902elif test "$shlibpath_overrides_runpath" = yes ||
15903 test "$enable_shared" = no; then
15904 # Fast installation is not necessary
15905 enable_fast_install=needless
15906fi
15907
15908striplib=
15909old_striplib=
15910echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15911echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15912if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15915 echo "$as_me:$LINENO: result: yes" >&5
15916echo "${ECHO_T}yes" >&6
15917else
15918# FIXME - insert some real tests, host_os isn't really good enough
15919 case $host_os in
15920 darwin*)
15921 if test -n "$STRIP" ; then
15922 striplib="$STRIP -x"
15923 echo "$as_me:$LINENO: result: yes" >&5
15924echo "${ECHO_T}yes" >&6
15925 else
15926 echo "$as_me:$LINENO: result: no" >&5
15927echo "${ECHO_T}no" >&6
15928fi
15929 ;;
15930 *)
15931 echo "$as_me:$LINENO: result: no" >&5
15932echo "${ECHO_T}no" >&6
15933 ;;
15934 esac
15935fi
15936
15937echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15938echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15939library_names_spec=
15940libname_spec='lib$name'
15941soname_spec=
15942shrext=".so"
15943postinstall_cmds=
15944postuninstall_cmds=
15945finish_cmds=
15946finish_eval=
15947shlibpath_var=
15948shlibpath_overrides_runpath=unknown
15949version_type=none
15950dynamic_linker="$host_os ld.so"
15951sys_lib_dlsearch_path_spec="/lib /usr/lib"
15952if test "$GCC" = yes; then
15953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15955 # if the path contains ";" then we assume it to be the separator
15956 # otherwise default to the standard path separator (i.e. ":") - it is
15957 # assumed that no part of a normal pathname contains ";" but that should
15958 # okay in the real world where ";" in dirpaths is itself problematic.
15959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15960 else
15961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15962 fi
15963else
15964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15965fi
15966need_lib_prefix=unknown
15967hardcode_into_libs=no
15968
15969# when you set need_version to no, make sure it does not cause -set_version
15970# flags to be left without arguments
15971need_version=unknown
15972
15973case $host_os in
15974aix3*)
15975 version_type=linux
15976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15977 shlibpath_var=LIBPATH
15978
15979 # AIX 3 has no versioning support, so we append a major version to the name.
15980 soname_spec='${libname}${release}${shared_ext}$major'
15981 ;;
15982
15983aix4* | aix5*)
15984 version_type=linux
15985 need_lib_prefix=no
15986 need_version=no
15987 hardcode_into_libs=yes
15988 if test "$host_cpu" = ia64; then
15989 # AIX 5 supports IA64
15990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15991 shlibpath_var=LD_LIBRARY_PATH
15992 else
15993 # With GCC up to 2.95.x, collect2 would create an import file
15994 # for dependence libraries. The import file would start with
15995 # the line `#! .'. This would cause the generated library to
15996 # depend on `.', always an invalid library. This was fixed in
15997 # development snapshots of GCC prior to 3.0.
15998 case $host_os in
15999 aix4 | aix4.[01] | aix4.[01].*)
16000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16001 echo ' yes '
16002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16003 :
16004 else
16005 can_build_shared=no
16006 fi
16007 ;;
16008 esac
16009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16010 # soname into executable. Probably we can add versioning support to
16011 # collect2, so additional links can be useful in future.
16012 if test "$aix_use_runtimelinking" = yes; then
16013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16014 # instead of lib<name>.a to let people know that these are not
16015 # typical AIX shared libraries.
16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 else
16018 # We preserve .a as extension for shared libraries through AIX4.2
16019 # and later when we are not doing run time linking.
16020 library_names_spec='${libname}${release}.a $libname.a'
16021 soname_spec='${libname}${release}${shared_ext}$major'
16022 fi
16023 shlibpath_var=LIBPATH
16024 fi
16025 ;;
16026
16027amigaos*)
16028 library_names_spec='$libname.ixlibrary $libname.a'
16029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16030 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'
16031 ;;
16032
16033beos*)
16034 library_names_spec='${libname}${shared_ext}'
16035 dynamic_linker="$host_os ld.so"
16036 shlibpath_var=LIBRARY_PATH
16037 ;;
16038
16039bsdi4*)
16040 version_type=linux
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16045 shlibpath_var=LD_LIBRARY_PATH
16046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16048 # the default ld.so.conf also contains /usr/contrib/lib and
16049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16050 # libtool to hard-code these into programs
16051 ;;
16052
16053cygwin* | mingw* | pw32*)
16054 version_type=windows
16055 shrext=".dll"
16056 need_version=no
16057 need_lib_prefix=no
16058
16059 case $GCC,$host_os in
16060 yes,cygwin* | yes,mingw* | yes,pw32*)
16061 library_names_spec='$libname.dll.a'
16062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16063 postinstall_cmds='base_file=`basename \${file}`~
16064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16065 dldir=$destdir/`dirname \$dlpath`~
16066 test -d \$dldir || mkdir -p \$dldir~
16067 $install_prog $dir/$dlname \$dldir/$dlname'
16068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069 dlpath=$dir/\$dldll~
16070 $rm \$dlpath'
16071 shlibpath_overrides_runpath=yes
16072
16073 case $host_os in
16074 cygwin*)
16075 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16076 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16078 ;;
16079 mingw*)
16080 # MinGW DLLs use traditional 'lib' prefix
16081 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16082 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16083 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16084 # It is most probably a Windows format PATH printed by
16085 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16086 # path with ; separators, and with drive letters. We can handle the
16087 # drive letters (cygwin fileutils understands them), so leave them,
16088 # especially as we might pass files found there to a mingw objdump,
16089 # which wouldn't understand a cygwinified path. Ahh.
16090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16091 else
16092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16093 fi
16094 ;;
16095 pw32*)
16096 # pw32 DLLs use 'pw' prefix rather than 'lib'
16097 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16098 ;;
16099 esac
16100 ;;
16101
16102 *)
16103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16104 ;;
16105 esac
16106 dynamic_linker='Win32 ld.exe'
16107 # FIXME: first we should search . and the directory the executable is in
16108 shlibpath_var=PATH
16109 ;;
16110
16111darwin* | rhapsody*)
16112 dynamic_linker="$host_os dyld"
16113 version_type=darwin
16114 need_lib_prefix=no
16115 need_version=no
16116 # FIXME: Relying on posixy $() will cause problems for
16117 # cross-compilation, but unfortunately the echo tests do not
16118 # yet detect zsh echo's removal of \ escapes.
16119 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16120 soname_spec='${libname}${release}${major}$shared_ext'
16121 shlibpath_overrides_runpath=yes
16122 shlibpath_var=DYLD_LIBRARY_PATH
16123 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16124 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16125 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16126 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"`
16127 fi
16128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16129 ;;
16130
16131dgux*)
16132 version_type=linux
16133 need_lib_prefix=no
16134 need_version=no
16135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 ;;
16139
16140freebsd1*)
16141 dynamic_linker=no
16142 ;;
16143
16144freebsd*)
16145 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16146 version_type=freebsd-$objformat
16147 case $version_type in
16148 freebsd-elf*)
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16150 need_version=no
16151 need_lib_prefix=no
16152 ;;
16153 freebsd-*)
16154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16155 need_version=yes
16156 ;;
16157 esac
16158 shlibpath_var=LD_LIBRARY_PATH
16159 case $host_os in
16160 freebsd2*)
16161 shlibpath_overrides_runpath=yes
16162 ;;
16163 freebsd3.01* | freebsdelf3.01*)
16164 shlibpath_overrides_runpath=yes
16165 hardcode_into_libs=yes
16166 ;;
16167 *) # from 3.2 on
16168 shlibpath_overrides_runpath=no
16169 hardcode_into_libs=yes
16170 ;;
16171 esac
16172 ;;
16173
16174gnu*)
16175 version_type=linux
16176 need_lib_prefix=no
16177 need_version=no
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16181 hardcode_into_libs=yes
16182 ;;
16183
16184hpux9* | hpux10* | hpux11*)
16185 # Give a soname corresponding to the major version so that dld.sl refuses to
16186 # link against other versions.
16187 version_type=sunos
16188 need_lib_prefix=no
16189 need_version=no
16190 case "$host_cpu" in
16191 ia64*)
16192 shrext='.so'
16193 hardcode_into_libs=yes
16194 dynamic_linker="$host_os dld.so"
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 if test "X$HPUX_IA64_MODE" = X32; then
16200 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16201 else
16202 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16203 fi
16204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16205 ;;
16206 hppa*64*)
16207 shrext='.sl'
16208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.sl"
16210 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16215 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216 ;;
16217 *)
16218 shrext='.sl'
16219 dynamic_linker="$host_os dld.sl"
16220 shlibpath_var=SHLIB_PATH
16221 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 ;;
16225 esac
16226 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16227 postinstall_cmds='chmod 555 $lib'
16228 ;;
16229
16230irix5* | irix6* | nonstopux*)
16231 case $host_os in
16232 nonstopux*) version_type=nonstopux ;;
16233 *)
16234 if test "$lt_cv_prog_gnu_ld" = yes; then
16235 version_type=linux
16236 else
16237 version_type=irix
16238 fi ;;
16239 esac
16240 need_lib_prefix=no
16241 need_version=no
16242 soname_spec='${libname}${release}${shared_ext}$major'
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16244 case $host_os in
16245 irix5* | nonstopux*)
16246 libsuff= shlibsuff=
16247 ;;
16248 *)
16249 case $LD in # libtool.m4 will add one of these switches to LD
16250 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16251 libsuff= shlibsuff= libmagic=32-bit;;
16252 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16253 libsuff=32 shlibsuff=N32 libmagic=N32;;
16254 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16255 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16256 *) libsuff= shlibsuff= libmagic=never-match;;
16257 esac
16258 ;;
16259 esac
16260 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16261 shlibpath_overrides_runpath=no
16262 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16263 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16264 hardcode_into_libs=yes
16265 ;;
16266
16267# No shared lib support for Linux oldld, aout, or coff.
16268linux*oldld* | linux*aout* | linux*coff*)
16269 dynamic_linker=no
16270 ;;
16271
16272# This must be Linux ELF.
16273linux*)
16274 version_type=linux
16275 need_lib_prefix=no
16276 need_version=no
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 shlibpath_overrides_runpath=no
16282 # This implies no fast_install, which is unacceptable.
16283 # Some rework will be needed to allow for fast_install
16284 # before this can be enabled.
16285 hardcode_into_libs=yes
16286
16287 # We used to test for /lib/ld.so.1 and disable shared libraries on
16288 # powerpc, because MkLinux only supported shared libraries with the
16289 # GNU dynamic linker. Since this was broken with cross compilers,
16290 # most powerpc-linux boxes support dynamic linking these days and
16291 # people can always --disable-shared, the test was removed, and we
16292 # assume the GNU/Linux dynamic linker is in use.
16293 dynamic_linker='GNU/Linux ld.so'
16294 ;;
16295
16296netbsd*)
16297 version_type=sunos
16298 need_lib_prefix=no
16299 need_version=no
16300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16303 dynamic_linker='NetBSD (a.out) ld.so'
16304 else
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 dynamic_linker='NetBSD ld.elf_so'
16308 fi
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=yes
16311 hardcode_into_libs=yes
16312 ;;
16313
16314newsos6)
16315 version_type=linux
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 ;;
16320
16321nto-qnx)
16322 version_type=linux
16323 need_lib_prefix=no
16324 need_version=no
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 shlibpath_overrides_runpath=yes
16329 ;;
16330
16331openbsd*)
16332 version_type=sunos
16333 need_lib_prefix=no
16334 need_version=no
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16339 case $host_os in
16340 openbsd2.[89] | openbsd2.[89].*)
16341 shlibpath_overrides_runpath=no
16342 ;;
16343 *)
16344 shlibpath_overrides_runpath=yes
16345 ;;
16346 esac
16347 else
16348 shlibpath_overrides_runpath=yes
16349 fi
16350 ;;
16351
16352os2*)
16353 libname_spec='$name'
16354 shrext=".dll"
16355 need_lib_prefix=no
16356 library_names_spec='$libname${shared_ext} $libname.a'
16357 dynamic_linker='OS/2 ld.exe'
16358 shlibpath_var=LIBPATH
16359 ;;
16360
16361osf3* | osf4* | osf5*)
16362 version_type=osf
16363 need_lib_prefix=no
16364 need_version=no
16365 soname_spec='${libname}${release}${shared_ext}$major'
16366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16370 ;;
16371
16372sco3.2v5*)
16373 version_type=osf
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 ;;
16378
16379solaris*)
16380 version_type=linux
16381 need_lib_prefix=no
16382 need_version=no
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=yes
16387 hardcode_into_libs=yes
16388 # ldd complains unless libraries are executable
16389 postinstall_cmds='chmod +x $lib'
16390 ;;
16391
16392sunos4*)
16393 version_type=sunos
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16398 if test "$with_gnu_ld" = yes; then
16399 need_lib_prefix=no
16400 fi
16401 need_version=yes
16402 ;;
16403
16404sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16405 version_type=linux
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 case $host_vendor in
16410 sni)
16411 shlibpath_overrides_runpath=no
16412 need_lib_prefix=no
16413 export_dynamic_flag_spec='${wl}-Blargedynsym'
16414 runpath_var=LD_RUN_PATH
16415 ;;
16416 siemens)
16417 need_lib_prefix=no
16418 ;;
16419 motorola)
16420 need_lib_prefix=no
16421 need_version=no
16422 shlibpath_overrides_runpath=no
16423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16424 ;;
16425 esac
16426 ;;
16427
16428sysv4*MP*)
16429 if test -d /usr/nec ;then
16430 version_type=linux
16431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16432 soname_spec='$libname${shared_ext}.$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 fi
16435 ;;
16436
16437uts4*)
16438 version_type=linux
16439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440 soname_spec='${libname}${release}${shared_ext}$major'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 ;;
16443
16444*)
16445 dynamic_linker=no
16446 ;;
16447esac
16448echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16449echo "${ECHO_T}$dynamic_linker" >&6
16450test "$dynamic_linker" = no && can_build_shared=no
16451
16452if test "x$enable_dlopen" != xyes; then
16453 enable_dlopen=unknown
16454 enable_dlopen_self=unknown
16455 enable_dlopen_self_static=unknown
16456else
16457 lt_cv_dlopen=no
16458 lt_cv_dlopen_libs=
16459
16460 case $host_os in
16461 beos*)
16462 lt_cv_dlopen="load_add_on"
16463 lt_cv_dlopen_libs=
16464 lt_cv_dlopen_self=yes
16465 ;;
16466
16467 mingw* | pw32*)
16468 lt_cv_dlopen="LoadLibrary"
16469 lt_cv_dlopen_libs=
16470 ;;
16471
16472 cygwin*)
16473 lt_cv_dlopen="dlopen"
16474 lt_cv_dlopen_libs=
16475 ;;
16476
16477 darwin*)
16478 # if libdl is installed we need to link against it
16479 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16481if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483else
16484 ac_check_lib_save_LIBS=$LIBS
16485LIBS="-ldl $LIBS"
16486cat >conftest.$ac_ext <<_ACEOF
16487#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016488#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016489
16490/* Override any gcc2 internal prototype to avoid an error. */
16491#ifdef __cplusplus
16492extern "C"
16493#endif
16494/* We use char because int might match the return type of a gcc2
16495 builtin and then its argument prototype would still apply. */
16496char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000016497#ifdef F77_DUMMY_MAIN
16498# ifdef __cplusplus
16499 extern "C"
16500# endif
16501 int F77_DUMMY_MAIN() { return 1; }
16502#endif
John Criswell47fdd832003-07-14 16:52:07 +000016503int
16504main ()
16505{
16506dlopen ();
16507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
16512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513 (eval $ac_link) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_cv_lib_dl_dlopen=yes
16524else
16525 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016526cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016527ac_cv_lib_dl_dlopen=no
16528fi
16529rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16530LIBS=$ac_check_lib_save_LIBS
16531fi
16532echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16533echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16534if test $ac_cv_lib_dl_dlopen = yes; then
16535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16536else
16537
16538 lt_cv_dlopen="dyld"
16539 lt_cv_dlopen_libs=
16540 lt_cv_dlopen_self=yes
16541
16542fi
16543
16544 ;;
16545
16546 *)
16547 echo "$as_me:$LINENO: checking for shl_load" >&5
16548echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16549if test "${ac_cv_func_shl_load+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551else
16552 cat >conftest.$ac_ext <<_ACEOF
16553#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016554#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016555/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000016556 which can conflict with char shl_load (); below. */
16557#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +000016558/* Override any gcc2 internal prototype to avoid an error. */
16559#ifdef __cplusplus
16560extern "C"
16561#endif
16562/* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16564char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +000016565char (*f) ();
16566
16567#ifdef F77_DUMMY_MAIN
16568# ifdef __cplusplus
16569 extern "C"
16570# endif
16571 int F77_DUMMY_MAIN() { return 1; }
16572#endif
16573int
16574main ()
16575{
John Criswell47fdd832003-07-14 16:52:07 +000016576/* The GNU C library defines this for functions which it implements
16577 to always fail with ENOSYS. Some functions are actually named
16578 something starting with __ and the normal name is an alias. */
16579#if defined (__stub_shl_load) || defined (__stub___shl_load)
16580choke me
16581#else
John Criswelld9cd1442003-09-09 20:52:17 +000016582f = shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016583#endif
16584
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589rm -f conftest.$ac_objext conftest$ac_exeext
16590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591 (eval $ac_link) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -s conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_func_shl_load=yes
16602else
16603 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016604cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016605ac_cv_func_shl_load=no
16606fi
16607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16608fi
16609echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16610echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16611if test $ac_cv_func_shl_load = yes; then
16612 lt_cv_dlopen="shl_load"
16613else
16614 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16615echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16616if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16617 echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619 ac_check_lib_save_LIBS=$LIBS
16620LIBS="-ldld $LIBS"
16621cat >conftest.$ac_ext <<_ACEOF
16622#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016623#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016624
16625/* Override any gcc2 internal prototype to avoid an error. */
16626#ifdef __cplusplus
16627extern "C"
16628#endif
16629/* We use char because int might match the return type of a gcc2
16630 builtin and then its argument prototype would still apply. */
16631char shl_load ();
John Criswelld9cd1442003-09-09 20:52:17 +000016632#ifdef F77_DUMMY_MAIN
16633# ifdef __cplusplus
16634 extern "C"
16635# endif
16636 int F77_DUMMY_MAIN() { return 1; }
16637#endif
John Criswell47fdd832003-07-14 16:52:07 +000016638int
16639main ()
16640{
16641shl_load ();
16642 ;
16643 return 0;
16644}
16645_ACEOF
16646rm -f conftest.$ac_objext conftest$ac_exeext
16647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648 (eval $ac_link) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -s conftest$ac_exeext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_lib_dld_shl_load=yes
16659else
16660 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016661cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016662ac_cv_lib_dld_shl_load=no
16663fi
16664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16665LIBS=$ac_check_lib_save_LIBS
16666fi
16667echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16668echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16669if test $ac_cv_lib_dld_shl_load = yes; then
16670 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16671else
16672 echo "$as_me:$LINENO: checking for dlopen" >&5
16673echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16674if test "${ac_cv_func_dlopen+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676else
16677 cat >conftest.$ac_ext <<_ACEOF
16678#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016679#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016680/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000016681 which can conflict with char dlopen (); below. */
16682#include <assert.h>
John Criswell47fdd832003-07-14 16:52:07 +000016683/* Override any gcc2 internal prototype to avoid an error. */
16684#ifdef __cplusplus
16685extern "C"
16686#endif
16687/* We use char because int might match the return type of a gcc2
16688 builtin and then its argument prototype would still apply. */
16689char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000016690char (*f) ();
16691
16692#ifdef F77_DUMMY_MAIN
16693# ifdef __cplusplus
16694 extern "C"
16695# endif
16696 int F77_DUMMY_MAIN() { return 1; }
16697#endif
16698int
16699main ()
16700{
John Criswell47fdd832003-07-14 16:52:07 +000016701/* The GNU C library defines this for functions which it implements
16702 to always fail with ENOSYS. Some functions are actually named
16703 something starting with __ and the normal name is an alias. */
16704#if defined (__stub_dlopen) || defined (__stub___dlopen)
16705choke me
16706#else
John Criswelld9cd1442003-09-09 20:52:17 +000016707f = dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016708#endif
16709
16710 ;
16711 return 0;
16712}
16713_ACEOF
16714rm -f conftest.$ac_objext conftest$ac_exeext
16715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716 (eval $ac_link) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -s conftest$ac_exeext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_func_dlopen=yes
16727else
16728 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016729cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016730ac_cv_func_dlopen=no
16731fi
16732rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16733fi
16734echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16735echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16736if test $ac_cv_func_dlopen = yes; then
16737 lt_cv_dlopen="dlopen"
16738else
16739 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16740echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16741if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743else
16744 ac_check_lib_save_LIBS=$LIBS
16745LIBS="-ldl $LIBS"
16746cat >conftest.$ac_ext <<_ACEOF
16747#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016748#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016749
16750/* Override any gcc2 internal prototype to avoid an error. */
16751#ifdef __cplusplus
16752extern "C"
16753#endif
16754/* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16756char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000016757#ifdef F77_DUMMY_MAIN
16758# ifdef __cplusplus
16759 extern "C"
16760# endif
16761 int F77_DUMMY_MAIN() { return 1; }
16762#endif
John Criswell47fdd832003-07-14 16:52:07 +000016763int
16764main ()
16765{
16766dlopen ();
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext conftest$ac_exeext
16772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773 (eval $ac_link) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_lib_dl_dlopen=yes
16784else
16785 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016786cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016787ac_cv_lib_dl_dlopen=no
16788fi
16789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16790LIBS=$ac_check_lib_save_LIBS
16791fi
16792echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16794if test $ac_cv_lib_dl_dlopen = yes; then
16795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16796else
16797 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801else
16802 ac_check_lib_save_LIBS=$LIBS
16803LIBS="-lsvld $LIBS"
16804cat >conftest.$ac_ext <<_ACEOF
16805#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016806#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016807
16808/* Override any gcc2 internal prototype to avoid an error. */
16809#ifdef __cplusplus
16810extern "C"
16811#endif
16812/* We use char because int might match the return type of a gcc2
16813 builtin and then its argument prototype would still apply. */
16814char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000016815#ifdef F77_DUMMY_MAIN
16816# ifdef __cplusplus
16817 extern "C"
16818# endif
16819 int F77_DUMMY_MAIN() { return 1; }
16820#endif
John Criswell47fdd832003-07-14 16:52:07 +000016821int
16822main ()
16823{
16824dlopen ();
16825 ;
16826 return 0;
16827}
16828_ACEOF
16829rm -f conftest.$ac_objext conftest$ac_exeext
16830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_lib_svld_dlopen=yes
16842else
16843 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016844cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016845ac_cv_lib_svld_dlopen=no
16846fi
16847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16848LIBS=$ac_check_lib_save_LIBS
16849fi
16850echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16851echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16852if test $ac_cv_lib_svld_dlopen = yes; then
16853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16854else
16855 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16856echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16857if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860 ac_check_lib_save_LIBS=$LIBS
16861LIBS="-ldld $LIBS"
16862cat >conftest.$ac_ext <<_ACEOF
16863#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000016864#include "confdefs.h"
John Criswell47fdd832003-07-14 16:52:07 +000016865
16866/* Override any gcc2 internal prototype to avoid an error. */
16867#ifdef __cplusplus
16868extern "C"
16869#endif
16870/* We use char because int might match the return type of a gcc2
16871 builtin and then its argument prototype would still apply. */
16872char dld_link ();
John Criswelld9cd1442003-09-09 20:52:17 +000016873#ifdef F77_DUMMY_MAIN
16874# ifdef __cplusplus
16875 extern "C"
16876# endif
16877 int F77_DUMMY_MAIN() { return 1; }
16878#endif
John Criswell47fdd832003-07-14 16:52:07 +000016879int
16880main ()
16881{
16882dld_link ();
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
16888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889 (eval $ac_link) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -s conftest$ac_exeext'
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_lib_dld_dld_link=yes
16900else
16901 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000016902cat conftest.$ac_ext >&5
John Criswell47fdd832003-07-14 16:52:07 +000016903ac_cv_lib_dld_dld_link=no
16904fi
16905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16906LIBS=$ac_check_lib_save_LIBS
16907fi
16908echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16909echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16910if test $ac_cv_lib_dld_dld_link = yes; then
16911 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16912fi
16913
16914
16915fi
16916
16917
16918fi
16919
16920
16921fi
16922
16923
16924fi
16925
16926
16927fi
16928
16929 ;;
16930 esac
16931
16932 if test "x$lt_cv_dlopen" != xno; then
16933 enable_dlopen=yes
16934 else
16935 enable_dlopen=no
16936 fi
16937
16938 case $lt_cv_dlopen in
16939 dlopen)
16940 save_CPPFLAGS="$CPPFLAGS"
16941 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16942
16943 save_LDFLAGS="$LDFLAGS"
16944 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16945
16946 save_LIBS="$LIBS"
16947 LIBS="$lt_cv_dlopen_libs $LIBS"
16948
16949 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16950echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16951if test "${lt_cv_dlopen_self+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953else
16954 if test "$cross_compiling" = yes; then :
16955 lt_cv_dlopen_self=cross
16956else
16957 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16958 lt_status=$lt_dlunknown
16959 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +000016960#line 16960 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000016961#include "confdefs.h"
16962
16963#if HAVE_DLFCN_H
16964#include <dlfcn.h>
16965#endif
16966
16967#include <stdio.h>
16968
16969#ifdef RTLD_GLOBAL
16970# define LT_DLGLOBAL RTLD_GLOBAL
16971#else
16972# ifdef DL_GLOBAL
16973# define LT_DLGLOBAL DL_GLOBAL
16974# else
16975# define LT_DLGLOBAL 0
16976# endif
16977#endif
16978
16979/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16980 find out it does not work in some platform. */
16981#ifndef LT_DLLAZY_OR_NOW
16982# ifdef RTLD_LAZY
16983# define LT_DLLAZY_OR_NOW RTLD_LAZY
16984# else
16985# ifdef DL_LAZY
16986# define LT_DLLAZY_OR_NOW DL_LAZY
16987# else
16988# ifdef RTLD_NOW
16989# define LT_DLLAZY_OR_NOW RTLD_NOW
16990# else
16991# ifdef DL_NOW
16992# define LT_DLLAZY_OR_NOW DL_NOW
16993# else
16994# define LT_DLLAZY_OR_NOW 0
16995# endif
16996# endif
16997# endif
16998# endif
16999#endif
17000
17001#ifdef __cplusplus
17002extern "C" void exit (int);
17003#endif
17004
17005void fnord() { int i=42;}
17006int main ()
17007{
17008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17009 int status = $lt_dlunknown;
17010
17011 if (self)
17012 {
17013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17014 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17015 /* dlclose (self); */
17016 }
17017
17018 exit (status);
17019}
17020EOF
17021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022 (eval $ac_link) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17026 (./conftest; exit; ) 2>/dev/null
17027 lt_status=$?
17028 case x$lt_status in
17029 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17030 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17031 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17032 esac
17033 else :
17034 # compilation failed
17035 lt_cv_dlopen_self=no
17036 fi
17037fi
17038rm -fr conftest*
17039
17040
17041fi
17042echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17043echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17044
17045 if test "x$lt_cv_dlopen_self" = xyes; then
17046 LDFLAGS="$LDFLAGS $link_static_flag"
17047 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17048echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17049if test "${lt_cv_dlopen_self_static+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 if test "$cross_compiling" = yes; then :
17053 lt_cv_dlopen_self_static=cross
17054else
17055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17056 lt_status=$lt_dlunknown
17057 cat > conftest.$ac_ext <<EOF
John Criswelld9cd1442003-09-09 20:52:17 +000017058#line 17058 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017059#include "confdefs.h"
17060
17061#if HAVE_DLFCN_H
17062#include <dlfcn.h>
17063#endif
17064
17065#include <stdio.h>
17066
17067#ifdef RTLD_GLOBAL
17068# define LT_DLGLOBAL RTLD_GLOBAL
17069#else
17070# ifdef DL_GLOBAL
17071# define LT_DLGLOBAL DL_GLOBAL
17072# else
17073# define LT_DLGLOBAL 0
17074# endif
17075#endif
17076
17077/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17078 find out it does not work in some platform. */
17079#ifndef LT_DLLAZY_OR_NOW
17080# ifdef RTLD_LAZY
17081# define LT_DLLAZY_OR_NOW RTLD_LAZY
17082# else
17083# ifdef DL_LAZY
17084# define LT_DLLAZY_OR_NOW DL_LAZY
17085# else
17086# ifdef RTLD_NOW
17087# define LT_DLLAZY_OR_NOW RTLD_NOW
17088# else
17089# ifdef DL_NOW
17090# define LT_DLLAZY_OR_NOW DL_NOW
17091# else
17092# define LT_DLLAZY_OR_NOW 0
17093# endif
17094# endif
17095# endif
17096# endif
17097#endif
17098
17099#ifdef __cplusplus
17100extern "C" void exit (int);
17101#endif
17102
17103void fnord() { int i=42;}
17104int main ()
17105{
17106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17107 int status = $lt_dlunknown;
17108
17109 if (self)
17110 {
17111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17113 /* dlclose (self); */
17114 }
17115
17116 exit (status);
17117}
17118EOF
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17124 (./conftest; exit; ) 2>/dev/null
17125 lt_status=$?
17126 case x$lt_status in
17127 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17128 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17129 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17130 esac
17131 else :
17132 # compilation failed
17133 lt_cv_dlopen_self_static=no
17134 fi
17135fi
17136rm -fr conftest*
17137
17138
17139fi
17140echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17141echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17142 fi
17143
17144 CPPFLAGS="$save_CPPFLAGS"
17145 LDFLAGS="$save_LDFLAGS"
17146 LIBS="$save_LIBS"
17147 ;;
17148 esac
17149
17150 case $lt_cv_dlopen_self in
17151 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17152 *) enable_dlopen_self=unknown ;;
17153 esac
17154
17155 case $lt_cv_dlopen_self_static in
17156 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17157 *) enable_dlopen_self_static=unknown ;;
17158 esac
17159fi
17160
17161
17162# The else clause should only fire when bootstrapping the
17163# libtool distribution, otherwise you forgot to ship ltmain.sh
17164# with your package, and you will get complaints that there are
17165# no rules to generate ltmain.sh.
17166if test -f "$ltmain"; then
17167 # See if we are running on zsh, and set the options which allow our commands through
17168 # without removal of \ escapes.
17169 if test -n "${ZSH_VERSION+set}" ; then
17170 setopt NO_GLOB_SUBST
17171 fi
17172 # Now quote all the things that may contain metacharacters while being
17173 # careful not to overquote the AC_SUBSTed values. We take copies of the
17174 # variables and quote the copies for generation of the libtool script.
17175 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17176 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17177 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17178 deplibs_check_method reload_flag reload_cmds need_locks \
17179 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17180 lt_cv_sys_global_symbol_to_c_name_address \
17181 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17182 old_postinstall_cmds old_postuninstall_cmds \
17183 compiler_GCJ \
17184 CC_GCJ \
17185 LD_GCJ \
17186 lt_prog_compiler_wl_GCJ \
17187 lt_prog_compiler_pic_GCJ \
17188 lt_prog_compiler_static_GCJ \
17189 lt_prog_compiler_no_builtin_flag_GCJ \
17190 export_dynamic_flag_spec_GCJ \
17191 thread_safe_flag_spec_GCJ \
17192 whole_archive_flag_spec_GCJ \
17193 enable_shared_with_static_runtimes_GCJ \
17194 old_archive_cmds_GCJ \
17195 old_archive_from_new_cmds_GCJ \
17196 predep_objects_GCJ \
17197 postdep_objects_GCJ \
17198 predeps_GCJ \
17199 postdeps_GCJ \
17200 compiler_lib_search_path_GCJ \
17201 archive_cmds_GCJ \
17202 archive_expsym_cmds_GCJ \
17203 postinstall_cmds_GCJ \
17204 postuninstall_cmds_GCJ \
17205 old_archive_from_expsyms_cmds_GCJ \
17206 allow_undefined_flag_GCJ \
17207 no_undefined_flag_GCJ \
17208 export_symbols_cmds_GCJ \
17209 hardcode_libdir_flag_spec_GCJ \
17210 hardcode_libdir_flag_spec_ld_GCJ \
17211 hardcode_libdir_separator_GCJ \
17212 hardcode_automatic_GCJ \
17213 module_cmds_GCJ \
17214 module_expsym_cmds_GCJ \
17215 lt_cv_prog_compiler_c_o_GCJ \
17216 exclude_expsyms_GCJ \
17217 include_expsyms_GCJ; do
17218
17219 case $var in
17220 old_archive_cmds_GCJ | \
17221 old_archive_from_new_cmds_GCJ | \
17222 archive_cmds_GCJ | \
17223 archive_expsym_cmds_GCJ | \
17224 module_cmds_GCJ | \
17225 module_expsym_cmds_GCJ | \
17226 old_archive_from_expsyms_cmds_GCJ | \
17227 export_symbols_cmds_GCJ | \
17228 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17229 postinstall_cmds | postuninstall_cmds | \
17230 old_postinstall_cmds | old_postuninstall_cmds | \
17231 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17232 # Double-quote double-evaled strings.
17233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17234 ;;
17235 *)
17236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17237 ;;
17238 esac
17239 done
17240
17241 case $lt_echo in
17242 *'\$0 --fallback-echo"')
17243 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17244 ;;
17245 esac
17246
17247cfgfile="$ofile"
17248
17249 cat <<__EOF__ >> "$cfgfile"
17250# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17251
17252# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17253
17254# Shell to use when invoking shell scripts.
17255SHELL=$lt_SHELL
17256
17257# Whether or not to build shared libraries.
17258build_libtool_libs=$enable_shared
17259
17260# Whether or not to build static libraries.
17261build_old_libs=$enable_static
17262
17263# Whether or not to add -lc for building shared libraries.
17264build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17265
17266# Whether or not to disallow shared libs when runtime libs are static
17267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17268
17269# Whether or not to optimize for fast installation.
17270fast_install=$enable_fast_install
17271
17272# The host system.
17273host_alias=$host_alias
17274host=$host
17275
17276# An echo program that does not interpret backslashes.
17277echo=$lt_echo
17278
17279# The archiver.
17280AR=$lt_AR
17281AR_FLAGS=$lt_AR_FLAGS
17282
17283# A C compiler.
17284LTCC=$lt_LTCC
17285
17286# A language-specific compiler.
17287CC=$lt_compiler_GCJ
17288
17289# Is the compiler the GNU C compiler?
17290with_gcc=$GCC_GCJ
17291
17292# An ERE matcher.
17293EGREP=$lt_EGREP
17294
17295# The linker used to build libraries.
17296LD=$lt_LD_GCJ
17297
17298# Whether we need hard or soft links.
17299LN_S=$lt_LN_S
17300
17301# A BSD-compatible nm program.
17302NM=$lt_NM
17303
17304# A symbol stripping program
17305STRIP=$STRIP
17306
17307# Used to examine libraries when file_magic_cmd begins "file"
17308MAGIC_CMD=$MAGIC_CMD
17309
17310# Used on cygwin: DLL creation program.
17311DLLTOOL="$DLLTOOL"
17312
17313# Used on cygwin: object dumper.
17314OBJDUMP="$OBJDUMP"
17315
17316# Used on cygwin: assembler.
17317AS="$AS"
17318
17319# The name of the directory that contains temporary libtool files.
17320objdir=$objdir
17321
17322# How to create reloadable object files.
17323reload_flag=$lt_reload_flag
17324reload_cmds=$lt_reload_cmds
17325
17326# How to pass a linker flag through the compiler.
17327wl=$lt_lt_prog_compiler_wl_GCJ
17328
17329# Object file suffix (normally "o").
17330objext="$ac_objext"
17331
17332# Old archive suffix (normally "a").
17333libext="$libext"
17334
17335# Shared library suffix (normally ".so").
17336shrext='$shrext'
17337
17338# Executable file suffix (normally "").
17339exeext="$exeext"
17340
17341# Additional compiler flags for building library objects.
17342pic_flag=$lt_lt_prog_compiler_pic_GCJ
17343pic_mode=$pic_mode
17344
17345# What is the maximum length of a command?
17346max_cmd_len=$lt_cv_sys_max_cmd_len
17347
17348# Does compiler simultaneously support -c and -o options?
17349compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17350
17351# Must we lock files when doing compilation ?
17352need_locks=$lt_need_locks
17353
17354# Do we need the lib prefix for modules?
17355need_lib_prefix=$need_lib_prefix
17356
17357# Do we need a version for libraries?
17358need_version=$need_version
17359
17360# Whether dlopen is supported.
17361dlopen_support=$enable_dlopen
17362
17363# Whether dlopen of programs is supported.
17364dlopen_self=$enable_dlopen_self
17365
17366# Whether dlopen of statically linked programs is supported.
17367dlopen_self_static=$enable_dlopen_self_static
17368
17369# Compiler flag to prevent dynamic linking.
17370link_static_flag=$lt_lt_prog_compiler_static_GCJ
17371
17372# Compiler flag to turn off builtin functions.
17373no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17374
17375# Compiler flag to allow reflexive dlopens.
17376export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17377
17378# Compiler flag to generate shared objects directly from archives.
17379whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17380
17381# Compiler flag to generate thread-safe objects.
17382thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17383
17384# Library versioning type.
17385version_type=$version_type
17386
17387# Format of library name prefix.
17388libname_spec=$lt_libname_spec
17389
17390# List of archive names. First name is the real one, the rest are links.
17391# The last name is the one that the linker finds with -lNAME.
17392library_names_spec=$lt_library_names_spec
17393
17394# The coded name of the library, if different from the real name.
17395soname_spec=$lt_soname_spec
17396
17397# Commands used to build and install an old-style archive.
17398RANLIB=$lt_RANLIB
17399old_archive_cmds=$lt_old_archive_cmds_GCJ
17400old_postinstall_cmds=$lt_old_postinstall_cmds
17401old_postuninstall_cmds=$lt_old_postuninstall_cmds
17402
17403# Create an old-style archive from a shared archive.
17404old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17405
17406# Create a temporary old-style archive to link instead of a shared archive.
17407old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17408
17409# Commands used to build and install a shared archive.
17410archive_cmds=$lt_archive_cmds_GCJ
17411archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17412postinstall_cmds=$lt_postinstall_cmds
17413postuninstall_cmds=$lt_postuninstall_cmds
17414
17415# Commands used to build a loadable module (assumed same as above if empty)
17416module_cmds=$lt_module_cmds_GCJ
17417module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17418
17419# Commands to strip libraries.
17420old_striplib=$lt_old_striplib
17421striplib=$lt_striplib
17422
17423# Dependencies to place before the objects being linked to create a
17424# shared library.
17425predep_objects=$lt_predep_objects_GCJ
17426
17427# Dependencies to place after the objects being linked to create a
17428# shared library.
17429postdep_objects=$lt_postdep_objects_GCJ
17430
17431# Dependencies to place before the objects being linked to create a
17432# shared library.
17433predeps=$lt_predeps_GCJ
17434
17435# Dependencies to place after the objects being linked to create a
17436# shared library.
17437postdeps=$lt_postdeps_GCJ
17438
17439# The library search path used internally by the compiler when linking
17440# a shared library.
17441compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17442
17443# Method to check whether dependent libraries are shared objects.
17444deplibs_check_method=$lt_deplibs_check_method
17445
17446# Command to use when deplibs_check_method == file_magic.
17447file_magic_cmd=$lt_file_magic_cmd
17448
17449# Flag that allows shared libraries with undefined symbols to be built.
17450allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17451
17452# Flag that forces no undefined symbols.
17453no_undefined_flag=$lt_no_undefined_flag_GCJ
17454
17455# Commands used to finish a libtool library installation in a directory.
17456finish_cmds=$lt_finish_cmds
17457
17458# Same as above, but a single script fragment to be evaled but not shown.
17459finish_eval=$lt_finish_eval
17460
17461# Take the output of nm and produce a listing of raw symbols and C names.
17462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17463
17464# Transform the output of nm in a proper C declaration
17465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17466
17467# Transform the output of nm in a C name address pair
17468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17469
17470# This is the shared library runtime path variable.
17471runpath_var=$runpath_var
17472
17473# This is the shared library path variable.
17474shlibpath_var=$shlibpath_var
17475
17476# Is shlibpath searched before the hard-coded library search path?
17477shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17478
17479# How to hardcode a shared library path into an executable.
17480hardcode_action=$hardcode_action_GCJ
17481
17482# Whether we should hardcode library paths into libraries.
17483hardcode_into_libs=$hardcode_into_libs
17484
17485# Flag to hardcode \$libdir into a binary during linking.
17486# This must work even if \$libdir does not exist.
17487hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17488
17489# If ld is used when linking, flag to hardcode \$libdir into
17490# a binary during linking. This must work even if \$libdir does
17491# not exist.
17492hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17493
17494# Whether we need a single -rpath flag with a separated argument.
17495hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17496
17497# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17498# resulting binary.
17499hardcode_direct=$hardcode_direct_GCJ
17500
17501# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17502# resulting binary.
17503hardcode_minus_L=$hardcode_minus_L_GCJ
17504
17505# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17506# the resulting binary.
17507hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17508
17509# Set to yes if building a shared library automatically hardcodes DIR into the library
17510# and all subsequent libraries and executables linked against it.
17511hardcode_automatic=$hardcode_automatic_GCJ
17512
17513# Variables whose values should be saved in libtool wrapper scripts and
17514# restored at relink time.
17515variables_saved_for_relink="$variables_saved_for_relink"
17516
17517# Whether libtool must link a program against all its dependency libraries.
17518link_all_deplibs=$link_all_deplibs_GCJ
17519
17520# Compile-time system search path for libraries
17521sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17522
17523# Run-time system search path for libraries
17524sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17525
17526# Fix the shell variable \$srcfile for the compiler.
17527fix_srcfile_path="$fix_srcfile_path_GCJ"
17528
17529# Set to yes if exported symbols are required.
17530always_export_symbols=$always_export_symbols_GCJ
17531
17532# The commands to list exported symbols.
17533export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17534
17535# The commands to extract the exported symbol list from a shared archive.
17536extract_expsyms_cmds=$lt_extract_expsyms_cmds
17537
17538# Symbols that should not be listed in the preloaded symbols.
17539exclude_expsyms=$lt_exclude_expsyms_GCJ
17540
17541# Symbols that must always be exported.
17542include_expsyms=$lt_include_expsyms_GCJ
17543
17544# ### END LIBTOOL TAG CONFIG: $tagname
17545
17546__EOF__
17547
17548
17549else
17550 # If there is no Makefile yet, we rely on a make rule to execute
17551 # `config.status --recheck' to rerun these tests and create the
17552 # libtool script then.
17553 test -f Makefile && make "$ltmain"
17554fi
17555
17556
17557ac_ext=c
17558ac_cpp='$CPP $CPPFLAGS'
17559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562
17563CC="$lt_save_CC"
17564
17565 else
17566 tagname=""
17567 fi
17568 ;;
17569
17570 RC)
17571
17572
17573
17574# Source file extension for RC test sources.
17575ac_ext=rc
17576
17577# Object file extension for compiled RC test sources.
17578objext=o
17579objext_RC=$objext
17580
17581# Code to be used in simple compile tests
17582lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17583
17584# Code to be used in simple link tests
17585lt_simple_link_test_code="$lt_simple_compile_test_code"
17586
17587# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17588
17589# If no C compiler was specified, use CC.
17590LTCC=${LTCC-"$CC"}
17591
17592# Allow CC to be a program name with arguments.
17593compiler=$CC
17594
17595
17596# Allow CC to be a program name with arguments.
17597lt_save_CC="$CC"
17598CC=${RC-"windres"}
17599compiler=$CC
17600compiler_RC=$CC
17601lt_cv_prog_compiler_c_o_RC=yes
17602
17603# The else clause should only fire when bootstrapping the
17604# libtool distribution, otherwise you forgot to ship ltmain.sh
17605# with your package, and you will get complaints that there are
17606# no rules to generate ltmain.sh.
17607if test -f "$ltmain"; then
17608 # See if we are running on zsh, and set the options which allow our commands through
17609 # without removal of \ escapes.
17610 if test -n "${ZSH_VERSION+set}" ; then
17611 setopt NO_GLOB_SUBST
17612 fi
17613 # Now quote all the things that may contain metacharacters while being
17614 # careful not to overquote the AC_SUBSTed values. We take copies of the
17615 # variables and quote the copies for generation of the libtool script.
17616 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17617 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17618 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17619 deplibs_check_method reload_flag reload_cmds need_locks \
17620 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17621 lt_cv_sys_global_symbol_to_c_name_address \
17622 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17623 old_postinstall_cmds old_postuninstall_cmds \
17624 compiler_RC \
17625 CC_RC \
17626 LD_RC \
17627 lt_prog_compiler_wl_RC \
17628 lt_prog_compiler_pic_RC \
17629 lt_prog_compiler_static_RC \
17630 lt_prog_compiler_no_builtin_flag_RC \
17631 export_dynamic_flag_spec_RC \
17632 thread_safe_flag_spec_RC \
17633 whole_archive_flag_spec_RC \
17634 enable_shared_with_static_runtimes_RC \
17635 old_archive_cmds_RC \
17636 old_archive_from_new_cmds_RC \
17637 predep_objects_RC \
17638 postdep_objects_RC \
17639 predeps_RC \
17640 postdeps_RC \
17641 compiler_lib_search_path_RC \
17642 archive_cmds_RC \
17643 archive_expsym_cmds_RC \
17644 postinstall_cmds_RC \
17645 postuninstall_cmds_RC \
17646 old_archive_from_expsyms_cmds_RC \
17647 allow_undefined_flag_RC \
17648 no_undefined_flag_RC \
17649 export_symbols_cmds_RC \
17650 hardcode_libdir_flag_spec_RC \
17651 hardcode_libdir_flag_spec_ld_RC \
17652 hardcode_libdir_separator_RC \
17653 hardcode_automatic_RC \
17654 module_cmds_RC \
17655 module_expsym_cmds_RC \
17656 lt_cv_prog_compiler_c_o_RC \
17657 exclude_expsyms_RC \
17658 include_expsyms_RC; do
17659
17660 case $var in
17661 old_archive_cmds_RC | \
17662 old_archive_from_new_cmds_RC | \
17663 archive_cmds_RC | \
17664 archive_expsym_cmds_RC | \
17665 module_cmds_RC | \
17666 module_expsym_cmds_RC | \
17667 old_archive_from_expsyms_cmds_RC | \
17668 export_symbols_cmds_RC | \
17669 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17670 postinstall_cmds | postuninstall_cmds | \
17671 old_postinstall_cmds | old_postuninstall_cmds | \
17672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17673 # Double-quote double-evaled strings.
17674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17675 ;;
17676 *)
17677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17678 ;;
17679 esac
17680 done
17681
17682 case $lt_echo in
17683 *'\$0 --fallback-echo"')
17684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17685 ;;
17686 esac
17687
17688cfgfile="$ofile"
17689
17690 cat <<__EOF__ >> "$cfgfile"
17691# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17692
17693# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17694
17695# Shell to use when invoking shell scripts.
17696SHELL=$lt_SHELL
17697
17698# Whether or not to build shared libraries.
17699build_libtool_libs=$enable_shared
17700
17701# Whether or not to build static libraries.
17702build_old_libs=$enable_static
17703
17704# Whether or not to add -lc for building shared libraries.
17705build_libtool_need_lc=$archive_cmds_need_lc_RC
17706
17707# Whether or not to disallow shared libs when runtime libs are static
17708allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17709
17710# Whether or not to optimize for fast installation.
17711fast_install=$enable_fast_install
17712
17713# The host system.
17714host_alias=$host_alias
17715host=$host
17716
17717# An echo program that does not interpret backslashes.
17718echo=$lt_echo
17719
17720# The archiver.
17721AR=$lt_AR
17722AR_FLAGS=$lt_AR_FLAGS
17723
17724# A C compiler.
17725LTCC=$lt_LTCC
17726
17727# A language-specific compiler.
17728CC=$lt_compiler_RC
17729
17730# Is the compiler the GNU C compiler?
17731with_gcc=$GCC_RC
17732
17733# An ERE matcher.
17734EGREP=$lt_EGREP
17735
17736# The linker used to build libraries.
17737LD=$lt_LD_RC
17738
17739# Whether we need hard or soft links.
17740LN_S=$lt_LN_S
17741
17742# A BSD-compatible nm program.
17743NM=$lt_NM
17744
17745# A symbol stripping program
17746STRIP=$STRIP
17747
17748# Used to examine libraries when file_magic_cmd begins "file"
17749MAGIC_CMD=$MAGIC_CMD
17750
17751# Used on cygwin: DLL creation program.
17752DLLTOOL="$DLLTOOL"
17753
17754# Used on cygwin: object dumper.
17755OBJDUMP="$OBJDUMP"
17756
17757# Used on cygwin: assembler.
17758AS="$AS"
17759
17760# The name of the directory that contains temporary libtool files.
17761objdir=$objdir
17762
17763# How to create reloadable object files.
17764reload_flag=$lt_reload_flag
17765reload_cmds=$lt_reload_cmds
17766
17767# How to pass a linker flag through the compiler.
17768wl=$lt_lt_prog_compiler_wl_RC
17769
17770# Object file suffix (normally "o").
17771objext="$ac_objext"
17772
17773# Old archive suffix (normally "a").
17774libext="$libext"
17775
17776# Shared library suffix (normally ".so").
17777shrext='$shrext'
17778
17779# Executable file suffix (normally "").
17780exeext="$exeext"
17781
17782# Additional compiler flags for building library objects.
17783pic_flag=$lt_lt_prog_compiler_pic_RC
17784pic_mode=$pic_mode
17785
17786# What is the maximum length of a command?
17787max_cmd_len=$lt_cv_sys_max_cmd_len
17788
17789# Does compiler simultaneously support -c and -o options?
17790compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17791
17792# Must we lock files when doing compilation ?
17793need_locks=$lt_need_locks
17794
17795# Do we need the lib prefix for modules?
17796need_lib_prefix=$need_lib_prefix
17797
17798# Do we need a version for libraries?
17799need_version=$need_version
17800
17801# Whether dlopen is supported.
17802dlopen_support=$enable_dlopen
17803
17804# Whether dlopen of programs is supported.
17805dlopen_self=$enable_dlopen_self
17806
17807# Whether dlopen of statically linked programs is supported.
17808dlopen_self_static=$enable_dlopen_self_static
17809
17810# Compiler flag to prevent dynamic linking.
17811link_static_flag=$lt_lt_prog_compiler_static_RC
17812
17813# Compiler flag to turn off builtin functions.
17814no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17815
17816# Compiler flag to allow reflexive dlopens.
17817export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17818
17819# Compiler flag to generate shared objects directly from archives.
17820whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17821
17822# Compiler flag to generate thread-safe objects.
17823thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17824
17825# Library versioning type.
17826version_type=$version_type
17827
17828# Format of library name prefix.
17829libname_spec=$lt_libname_spec
17830
17831# List of archive names. First name is the real one, the rest are links.
17832# The last name is the one that the linker finds with -lNAME.
17833library_names_spec=$lt_library_names_spec
17834
17835# The coded name of the library, if different from the real name.
17836soname_spec=$lt_soname_spec
17837
17838# Commands used to build and install an old-style archive.
17839RANLIB=$lt_RANLIB
17840old_archive_cmds=$lt_old_archive_cmds_RC
17841old_postinstall_cmds=$lt_old_postinstall_cmds
17842old_postuninstall_cmds=$lt_old_postuninstall_cmds
17843
17844# Create an old-style archive from a shared archive.
17845old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17846
17847# Create a temporary old-style archive to link instead of a shared archive.
17848old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17849
17850# Commands used to build and install a shared archive.
17851archive_cmds=$lt_archive_cmds_RC
17852archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17853postinstall_cmds=$lt_postinstall_cmds
17854postuninstall_cmds=$lt_postuninstall_cmds
17855
17856# Commands used to build a loadable module (assumed same as above if empty)
17857module_cmds=$lt_module_cmds_RC
17858module_expsym_cmds=$lt_module_expsym_cmds_RC
17859
17860# Commands to strip libraries.
17861old_striplib=$lt_old_striplib
17862striplib=$lt_striplib
17863
17864# Dependencies to place before the objects being linked to create a
17865# shared library.
17866predep_objects=$lt_predep_objects_RC
17867
17868# Dependencies to place after the objects being linked to create a
17869# shared library.
17870postdep_objects=$lt_postdep_objects_RC
17871
17872# Dependencies to place before the objects being linked to create a
17873# shared library.
17874predeps=$lt_predeps_RC
17875
17876# Dependencies to place after the objects being linked to create a
17877# shared library.
17878postdeps=$lt_postdeps_RC
17879
17880# The library search path used internally by the compiler when linking
17881# a shared library.
17882compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17883
17884# Method to check whether dependent libraries are shared objects.
17885deplibs_check_method=$lt_deplibs_check_method
17886
17887# Command to use when deplibs_check_method == file_magic.
17888file_magic_cmd=$lt_file_magic_cmd
17889
17890# Flag that allows shared libraries with undefined symbols to be built.
17891allow_undefined_flag=$lt_allow_undefined_flag_RC
17892
17893# Flag that forces no undefined symbols.
17894no_undefined_flag=$lt_no_undefined_flag_RC
17895
17896# Commands used to finish a libtool library installation in a directory.
17897finish_cmds=$lt_finish_cmds
17898
17899# Same as above, but a single script fragment to be evaled but not shown.
17900finish_eval=$lt_finish_eval
17901
17902# Take the output of nm and produce a listing of raw symbols and C names.
17903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17904
17905# Transform the output of nm in a proper C declaration
17906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17907
17908# Transform the output of nm in a C name address pair
17909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17910
17911# This is the shared library runtime path variable.
17912runpath_var=$runpath_var
17913
17914# This is the shared library path variable.
17915shlibpath_var=$shlibpath_var
17916
17917# Is shlibpath searched before the hard-coded library search path?
17918shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17919
17920# How to hardcode a shared library path into an executable.
17921hardcode_action=$hardcode_action_RC
17922
17923# Whether we should hardcode library paths into libraries.
17924hardcode_into_libs=$hardcode_into_libs
17925
17926# Flag to hardcode \$libdir into a binary during linking.
17927# This must work even if \$libdir does not exist.
17928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17929
17930# If ld is used when linking, flag to hardcode \$libdir into
17931# a binary during linking. This must work even if \$libdir does
17932# not exist.
17933hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17934
17935# Whether we need a single -rpath flag with a separated argument.
17936hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17937
17938# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17939# resulting binary.
17940hardcode_direct=$hardcode_direct_RC
17941
17942# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17943# resulting binary.
17944hardcode_minus_L=$hardcode_minus_L_RC
17945
17946# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17947# the resulting binary.
17948hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17949
17950# Set to yes if building a shared library automatically hardcodes DIR into the library
17951# and all subsequent libraries and executables linked against it.
17952hardcode_automatic=$hardcode_automatic_RC
17953
17954# Variables whose values should be saved in libtool wrapper scripts and
17955# restored at relink time.
17956variables_saved_for_relink="$variables_saved_for_relink"
17957
17958# Whether libtool must link a program against all its dependency libraries.
17959link_all_deplibs=$link_all_deplibs_RC
17960
17961# Compile-time system search path for libraries
17962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17963
17964# Run-time system search path for libraries
17965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17966
17967# Fix the shell variable \$srcfile for the compiler.
17968fix_srcfile_path="$fix_srcfile_path_RC"
17969
17970# Set to yes if exported symbols are required.
17971always_export_symbols=$always_export_symbols_RC
17972
17973# The commands to list exported symbols.
17974export_symbols_cmds=$lt_export_symbols_cmds_RC
17975
17976# The commands to extract the exported symbol list from a shared archive.
17977extract_expsyms_cmds=$lt_extract_expsyms_cmds
17978
17979# Symbols that should not be listed in the preloaded symbols.
17980exclude_expsyms=$lt_exclude_expsyms_RC
17981
17982# Symbols that must always be exported.
17983include_expsyms=$lt_include_expsyms_RC
17984
17985# ### END LIBTOOL TAG CONFIG: $tagname
17986
17987__EOF__
17988
17989
17990else
17991 # If there is no Makefile yet, we rely on a make rule to execute
17992 # `config.status --recheck' to rerun these tests and create the
17993 # libtool script then.
17994 test -f Makefile && make "$ltmain"
17995fi
17996
17997
17998ac_ext=c
17999ac_cpp='$CPP $CPPFLAGS'
18000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18002ac_compiler_gnu=$ac_cv_c_compiler_gnu
18003
18004CC="$lt_save_CC"
18005
18006 ;;
18007
18008 *)
18009 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18010echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18011 { (exit 1); exit 1; }; }
18012 ;;
18013 esac
18014
18015 # Append the new tag name to the list of available tags.
18016 if test -n "$tagname" ; then
18017 available_tags="$available_tags $tagname"
18018 fi
18019 fi
18020 done
18021 IFS="$lt_save_ifs"
18022
18023 # Now substitute the updated list of available tags.
18024 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18025 mv "${ofile}T" "$ofile"
18026 chmod +x "$ofile"
18027 else
18028 rm -f "${ofile}T"
18029 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18030echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18031 { (exit 1); exit 1; }; }
18032 fi
18033fi
John Criswell7a73b802003-06-30 21:59:07 +000018034
18035
18036
18037# This can be used to rebuild libtool when needed
18038LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18039
18040# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018041LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018042
18043# Prevent multiple expansion
18044
18045
18046
John Criswell47fdd832003-07-14 16:52:07 +000018047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
John Criswellde00db22003-08-25 16:49:54 +000018065# Extract the first word of "pwd", so it can be a program name with args.
18066set dummy pwd; ac_word=$2
18067echo "$as_me:$LINENO: checking for $ac_word" >&5
18068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18069if test "${ac_cv_path_RPWD+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 case $RPWD in
18073 [\\/]* | ?:[\\/]*)
18074 ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18075 ;;
18076 *)
18077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18078for as_dir in $PATH
18079do
18080 IFS=$as_save_IFS
18081 test -z "$as_dir" && as_dir=.
18082 for ac_exec_ext in '' $ac_executable_extensions; do
18083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18084 ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18086 break 2
18087 fi
18088done
18089done
18090
18091 ;;
18092esac
18093fi
18094RPWD=$ac_cv_path_RPWD
18095
18096if test -n "$RPWD"; then
18097 echo "$as_me:$LINENO: result: $RPWD" >&5
18098echo "${ECHO_T}$RPWD" >&6
18099else
18100 echo "$as_me:$LINENO: result: no" >&5
18101echo "${ECHO_T}no" >&6
18102fi
18103
John Criswell7a73b802003-06-30 21:59:07 +000018104# Extract the first word of "ar", so it can be a program name with args.
18105set dummy ar; ac_word=$2
18106echo "$as_me:$LINENO: checking for $ac_word" >&5
18107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18108if test "${ac_cv_path_AR+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 case $AR in
18112 [\\/]* | ?:[\\/]*)
18113 ac_cv_path_AR="$AR" # Let the user override the test with a path.
18114 ;;
18115 *)
18116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18117for as_dir in $PATH
18118do
18119 IFS=$as_save_IFS
18120 test -z "$as_dir" && as_dir=.
18121 for ac_exec_ext in '' $ac_executable_extensions; do
18122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18123 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18125 break 2
18126 fi
18127done
18128done
18129
18130 ;;
18131esac
18132fi
18133AR=$ac_cv_path_AR
18134
18135if test -n "$AR"; then
18136 echo "$as_me:$LINENO: result: $AR" >&5
18137echo "${ECHO_T}$AR" >&6
18138else
18139 echo "$as_me:$LINENO: result: no" >&5
18140echo "${ECHO_T}no" >&6
18141fi
18142
18143# Extract the first word of "sed", so it can be a program name with args.
18144set dummy sed; ac_word=$2
18145echo "$as_me:$LINENO: checking for $ac_word" >&5
18146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18147if test "${ac_cv_path_SED+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18149else
18150 case $SED in
18151 [\\/]* | ?:[\\/]*)
18152 ac_cv_path_SED="$SED" # Let the user override the test with a path.
18153 ;;
18154 *)
18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18156for as_dir in $PATH
18157do
18158 IFS=$as_save_IFS
18159 test -z "$as_dir" && as_dir=.
18160 for ac_exec_ext in '' $ac_executable_extensions; do
18161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18162 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18164 break 2
18165 fi
18166done
18167done
18168
18169 ;;
18170esac
18171fi
18172SED=$ac_cv_path_SED
18173
18174if test -n "$SED"; then
18175 echo "$as_me:$LINENO: result: $SED" >&5
18176echo "${ECHO_T}$SED" >&6
18177else
18178 echo "$as_me:$LINENO: result: no" >&5
18179echo "${ECHO_T}no" >&6
18180fi
18181
18182# Extract the first word of "rm", so it can be a program name with args.
18183set dummy rm; ac_word=$2
18184echo "$as_me:$LINENO: checking for $ac_word" >&5
18185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18186if test "${ac_cv_path_RM+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188else
18189 case $RM in
18190 [\\/]* | ?:[\\/]*)
18191 ac_cv_path_RM="$RM" # Let the user override the test with a path.
18192 ;;
18193 *)
18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195for as_dir in $PATH
18196do
18197 IFS=$as_save_IFS
18198 test -z "$as_dir" && as_dir=.
18199 for ac_exec_ext in '' $ac_executable_extensions; do
18200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18201 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18203 break 2
18204 fi
18205done
18206done
18207
18208 ;;
18209esac
18210fi
18211RM=$ac_cv_path_RM
18212
18213if test -n "$RM"; then
18214 echo "$as_me:$LINENO: result: $RM" >&5
18215echo "${ECHO_T}$RM" >&6
18216else
18217 echo "$as_me:$LINENO: result: no" >&5
18218echo "${ECHO_T}no" >&6
18219fi
18220
18221# Extract the first word of "echo", so it can be a program name with args.
18222set dummy echo; ac_word=$2
18223echo "$as_me:$LINENO: checking for $ac_word" >&5
18224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18225if test "${ac_cv_path_ECHO+set}" = set; then
18226 echo $ECHO_N "(cached) $ECHO_C" >&6
18227else
18228 case $ECHO in
18229 [\\/]* | ?:[\\/]*)
18230 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18231 ;;
18232 *)
18233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18234for as_dir in $PATH
18235do
18236 IFS=$as_save_IFS
18237 test -z "$as_dir" && as_dir=.
18238 for ac_exec_ext in '' $ac_executable_extensions; do
18239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18240 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18242 break 2
18243 fi
18244done
18245done
18246
18247 ;;
18248esac
18249fi
18250ECHO=$ac_cv_path_ECHO
18251
18252if test -n "$ECHO"; then
18253 echo "$as_me:$LINENO: result: $ECHO" >&5
18254echo "${ECHO_T}$ECHO" >&6
18255else
18256 echo "$as_me:$LINENO: result: no" >&5
18257echo "${ECHO_T}no" >&6
18258fi
18259
18260# Extract the first word of "mkdir", so it can be a program name with args.
18261set dummy mkdir; ac_word=$2
18262echo "$as_me:$LINENO: checking for $ac_word" >&5
18263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18264if test "${ac_cv_path_MKDIR+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267 case $MKDIR in
18268 [\\/]* | ?:[\\/]*)
18269 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18270 ;;
18271 *)
18272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273for as_dir in $PATH
18274do
18275 IFS=$as_save_IFS
18276 test -z "$as_dir" && as_dir=.
18277 for ac_exec_ext in '' $ac_executable_extensions; do
18278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18279 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18281 break 2
18282 fi
18283done
18284done
18285
18286 ;;
18287esac
18288fi
18289MKDIR=$ac_cv_path_MKDIR
18290
18291if test -n "$MKDIR"; then
18292 echo "$as_me:$LINENO: result: $MKDIR" >&5
18293echo "${ECHO_T}$MKDIR" >&6
18294else
18295 echo "$as_me:$LINENO: result: no" >&5
18296echo "${ECHO_T}no" >&6
18297fi
18298
18299# Extract the first word of "date", so it can be a program name with args.
18300set dummy date; ac_word=$2
18301echo "$as_me:$LINENO: checking for $ac_word" >&5
18302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18303if test "${ac_cv_path_DATE+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305else
18306 case $DATE in
18307 [\\/]* | ?:[\\/]*)
18308 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18309 ;;
18310 *)
18311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18312for as_dir in $PATH
18313do
18314 IFS=$as_save_IFS
18315 test -z "$as_dir" && as_dir=.
18316 for ac_exec_ext in '' $ac_executable_extensions; do
18317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18318 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18320 break 2
18321 fi
18322done
18323done
18324
18325 ;;
18326esac
18327fi
18328DATE=$ac_cv_path_DATE
18329
18330if test -n "$DATE"; then
18331 echo "$as_me:$LINENO: result: $DATE" >&5
18332echo "${ECHO_T}$DATE" >&6
18333else
18334 echo "$as_me:$LINENO: result: no" >&5
18335echo "${ECHO_T}no" >&6
18336fi
18337
18338# Extract the first word of "mv", so it can be a program name with args.
18339set dummy mv; ac_word=$2
18340echo "$as_me:$LINENO: checking for $ac_word" >&5
18341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18342if test "${ac_cv_path_MV+set}" = set; then
18343 echo $ECHO_N "(cached) $ECHO_C" >&6
18344else
18345 case $MV in
18346 [\\/]* | ?:[\\/]*)
18347 ac_cv_path_MV="$MV" # Let the user override the test with a path.
18348 ;;
18349 *)
18350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351for as_dir in $PATH
18352do
18353 IFS=$as_save_IFS
18354 test -z "$as_dir" && as_dir=.
18355 for ac_exec_ext in '' $ac_executable_extensions; do
18356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18357 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18359 break 2
18360 fi
18361done
18362done
18363
18364 ;;
18365esac
18366fi
18367MV=$ac_cv_path_MV
18368
18369if test -n "$MV"; then
18370 echo "$as_me:$LINENO: result: $MV" >&5
18371echo "${ECHO_T}$MV" >&6
18372else
18373 echo "$as_me:$LINENO: result: no" >&5
18374echo "${ECHO_T}no" >&6
18375fi
18376
18377# Extract the first word of "dot", so it can be a program name with args.
18378set dummy dot; ac_word=$2
18379echo "$as_me:$LINENO: checking for $ac_word" >&5
18380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18381if test "${ac_cv_path_DOT+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383else
18384 case $DOT in
18385 [\\/]* | ?:[\\/]*)
18386 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18387 ;;
18388 *)
18389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18390for as_dir in $PATH
18391do
18392 IFS=$as_save_IFS
18393 test -z "$as_dir" && as_dir=.
18394 for ac_exec_ext in '' $ac_executable_extensions; do
18395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18396 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18398 break 2
18399 fi
18400done
18401done
18402
18403 ;;
18404esac
18405fi
18406DOT=$ac_cv_path_DOT
18407
18408if test -n "$DOT"; then
18409 echo "$as_me:$LINENO: result: $DOT" >&5
18410echo "${ECHO_T}$DOT" >&6
18411else
18412 echo "$as_me:$LINENO: result: no" >&5
18413echo "${ECHO_T}no" >&6
18414fi
18415
18416# Extract the first word of "etags", so it can be a program name with args.
18417set dummy etags; ac_word=$2
18418echo "$as_me:$LINENO: checking for $ac_word" >&5
18419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18420if test "${ac_cv_path_ETAGS+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18422else
18423 case $ETAGS in
18424 [\\/]* | ?:[\\/]*)
18425 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18426 ;;
18427 *)
18428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18429for as_dir in $PATH
18430do
18431 IFS=$as_save_IFS
18432 test -z "$as_dir" && as_dir=.
18433 for ac_exec_ext in '' $ac_executable_extensions; do
18434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18435 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18437 break 2
18438 fi
18439done
18440done
18441
18442 ;;
18443esac
18444fi
18445ETAGS=$ac_cv_path_ETAGS
18446
18447if test -n "$ETAGS"; then
18448 echo "$as_me:$LINENO: result: $ETAGS" >&5
18449echo "${ECHO_T}$ETAGS" >&6
18450else
18451 echo "$as_me:$LINENO: result: no" >&5
18452echo "${ECHO_T}no" >&6
18453fi
18454
18455# Extract the first word of "purify", so it can be a program name with args.
18456set dummy purify; ac_word=$2
18457echo "$as_me:$LINENO: checking for $ac_word" >&5
18458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18459if test "${ac_cv_path_PURIFY+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18461else
18462 case $PURIFY in
18463 [\\/]* | ?:[\\/]*)
18464 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18465 ;;
18466 *)
18467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18468for as_dir in $PATH
18469do
18470 IFS=$as_save_IFS
18471 test -z "$as_dir" && as_dir=.
18472 for ac_exec_ext in '' $ac_executable_extensions; do
18473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18474 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18476 break 2
18477 fi
18478done
18479done
18480
18481 ;;
18482esac
18483fi
18484PURIFY=$ac_cv_path_PURIFY
18485
18486if test -n "$PURIFY"; then
18487 echo "$as_me:$LINENO: result: $PURIFY" >&5
18488echo "${ECHO_T}$PURIFY" >&6
18489else
18490 echo "$as_me:$LINENO: result: no" >&5
18491echo "${ECHO_T}no" >&6
18492fi
18493
John Criswellde00db22003-08-25 16:49:54 +000018494# Extract the first word of "python", so it can be a program name with args.
18495set dummy python; ac_word=$2
18496echo "$as_me:$LINENO: checking for $ac_word" >&5
18497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18498if test "${ac_cv_path_PYTHON+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500else
18501 case $PYTHON in
18502 [\\/]* | ?:[\\/]*)
18503 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18504 ;;
18505 *)
18506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18507for as_dir in $PATH
18508do
18509 IFS=$as_save_IFS
18510 test -z "$as_dir" && as_dir=.
18511 for ac_exec_ext in '' $ac_executable_extensions; do
18512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18513 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18515 break 2
18516 fi
18517done
18518done
18519
18520 ;;
18521esac
18522fi
18523PYTHON=$ac_cv_path_PYTHON
18524
18525if test -n "$PYTHON"; then
18526 echo "$as_me:$LINENO: result: $PYTHON" >&5
18527echo "${ECHO_T}$PYTHON" >&6
18528else
18529 echo "$as_me:$LINENO: result: no" >&5
18530echo "${ECHO_T}no" >&6
18531fi
18532
18533# Extract the first word of "qmtest", so it can be a program name with args.
18534set dummy qmtest; ac_word=$2
18535echo "$as_me:$LINENO: checking for $ac_word" >&5
18536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18537if test "${ac_cv_path_QMTEST+set}" = set; then
18538 echo $ECHO_N "(cached) $ECHO_C" >&6
18539else
18540 case $QMTEST in
18541 [\\/]* | ?:[\\/]*)
18542 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18543 ;;
18544 *)
18545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546for as_dir in $PATH
18547do
18548 IFS=$as_save_IFS
18549 test -z "$as_dir" && as_dir=.
18550 for ac_exec_ext in '' $ac_executable_extensions; do
18551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18552 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18554 break 2
18555 fi
18556done
18557done
18558
18559 ;;
18560esac
18561fi
18562QMTEST=$ac_cv_path_QMTEST
18563
18564if test -n "$QMTEST"; then
18565 echo "$as_me:$LINENO: result: $QMTEST" >&5
18566echo "${ECHO_T}$QMTEST" >&6
18567else
18568 echo "$as_me:$LINENO: result: no" >&5
18569echo "${ECHO_T}no" >&6
18570fi
18571
18572
18573pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18574pymajor=`echo $pyversion | cut -d. -f1`
18575pyminor=`echo $pyversion | cut -d. -f2`
18576
18577if test "$pymajor" -ge "2"
18578then
18579 if test "$pymajor" -eq "2"
18580 then
18581 if test "$pyminor" -lt "2"
18582 then
18583 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18584echo "$as_me: error: Python 2.2 or greater required" >&2;}
18585 { (exit 1); exit 1; }; }
18586 fi
18587 fi
18588else
18589 { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18590echo "$as_me: error: Python 2.2 or greater required" >&2;}
18591 { (exit 1); exit 1; }; }
18592fi
John Criswell7a73b802003-06-30 21:59:07 +000018593
18594
18595
18596
18597
18598echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18599echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18600if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602else
18603 ac_check_lib_save_LIBS=$LIBS
18604LIBS="-lelf $LIBS"
18605cat >conftest.$ac_ext <<_ACEOF
18606#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018607#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018608
18609/* Override any gcc2 internal prototype to avoid an error. */
18610#ifdef __cplusplus
18611extern "C"
18612#endif
18613/* We use char because int might match the return type of a gcc2
18614 builtin and then its argument prototype would still apply. */
18615char elf_begin ();
John Criswelld9cd1442003-09-09 20:52:17 +000018616#ifdef F77_DUMMY_MAIN
18617# ifdef __cplusplus
18618 extern "C"
18619# endif
18620 int F77_DUMMY_MAIN() { return 1; }
18621#endif
John Criswell7a73b802003-06-30 21:59:07 +000018622int
18623main ()
18624{
18625elf_begin ();
18626 ;
18627 return 0;
18628}
18629_ACEOF
18630rm -f conftest.$ac_objext conftest$ac_exeext
18631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18632 (eval $ac_link) 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_lib_elf_elf_begin=yes
18643else
18644 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018645cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000018646ac_cv_lib_elf_elf_begin=no
18647fi
18648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18649LIBS=$ac_check_lib_save_LIBS
18650fi
18651echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18652echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18653if test $ac_cv_lib_elf_elf_begin = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655#define HAVE_LIBELF 1
18656_ACEOF
18657
18658 LIBS="-lelf $LIBS"
18659
18660fi
18661
18662
18663echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18664echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18665if test "${ac_cv_search_dlopen+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668 ac_func_search_save_LIBS=$LIBS
18669ac_cv_search_dlopen=no
18670cat >conftest.$ac_ext <<_ACEOF
18671#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018672#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018673
18674/* Override any gcc2 internal prototype to avoid an error. */
18675#ifdef __cplusplus
18676extern "C"
18677#endif
18678/* We use char because int might match the return type of a gcc2
18679 builtin and then its argument prototype would still apply. */
18680char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000018681#ifdef F77_DUMMY_MAIN
18682# ifdef __cplusplus
18683 extern "C"
18684# endif
18685 int F77_DUMMY_MAIN() { return 1; }
18686#endif
John Criswell7a73b802003-06-30 21:59:07 +000018687int
18688main ()
18689{
18690dlopen ();
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext conftest$ac_exeext
18696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -s conftest$ac_exeext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_search_dlopen="none required"
18708else
18709 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018710cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000018711fi
18712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18713if test "$ac_cv_search_dlopen" = no; then
18714 for ac_lib in dl; do
18715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18716 cat >conftest.$ac_ext <<_ACEOF
18717#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018718#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018719
18720/* Override any gcc2 internal prototype to avoid an error. */
18721#ifdef __cplusplus
18722extern "C"
18723#endif
18724/* We use char because int might match the return type of a gcc2
18725 builtin and then its argument prototype would still apply. */
18726char dlopen ();
John Criswelld9cd1442003-09-09 20:52:17 +000018727#ifdef F77_DUMMY_MAIN
18728# ifdef __cplusplus
18729 extern "C"
18730# endif
18731 int F77_DUMMY_MAIN() { return 1; }
18732#endif
John Criswell7a73b802003-06-30 21:59:07 +000018733int
18734main ()
18735{
18736dlopen ();
18737 ;
18738 return 0;
18739}
18740_ACEOF
18741rm -f conftest.$ac_objext conftest$ac_exeext
18742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_search_dlopen="-l$ac_lib"
18754break
18755else
18756 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018757cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000018758fi
18759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18760 done
18761fi
18762LIBS=$ac_func_search_save_LIBS
18763fi
18764echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18765echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18766if test "$ac_cv_search_dlopen" != no; then
18767 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18768
18769else
18770 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18771echo "$as_me: error: dlopen() required but not found" >&2;}
18772 { (exit 1); exit 1; }; }
18773fi
18774
18775
18776echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18777echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18778if test "${ac_cv_search_mallinfo+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780else
18781 ac_func_search_save_LIBS=$LIBS
18782ac_cv_search_mallinfo=no
18783cat >conftest.$ac_ext <<_ACEOF
18784#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018785#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018786
18787/* Override any gcc2 internal prototype to avoid an error. */
18788#ifdef __cplusplus
18789extern "C"
18790#endif
18791/* We use char because int might match the return type of a gcc2
18792 builtin and then its argument prototype would still apply. */
18793char mallinfo ();
John Criswelld9cd1442003-09-09 20:52:17 +000018794#ifdef F77_DUMMY_MAIN
18795# ifdef __cplusplus
18796 extern "C"
18797# endif
18798 int F77_DUMMY_MAIN() { return 1; }
18799#endif
John Criswell7a73b802003-06-30 21:59:07 +000018800int
18801main ()
18802{
18803mallinfo ();
18804 ;
18805 return 0;
18806}
18807_ACEOF
18808rm -f conftest.$ac_objext conftest$ac_exeext
18809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810 (eval $ac_link) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -s conftest$ac_exeext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_cv_search_mallinfo="none required"
18821else
18822 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018823cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000018824fi
18825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18826if test "$ac_cv_search_mallinfo" = no; then
18827 for ac_lib in malloc; do
18828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18829 cat >conftest.$ac_ext <<_ACEOF
18830#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018831#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018832
18833/* Override any gcc2 internal prototype to avoid an error. */
18834#ifdef __cplusplus
18835extern "C"
18836#endif
18837/* We use char because int might match the return type of a gcc2
18838 builtin and then its argument prototype would still apply. */
18839char mallinfo ();
John Criswelld9cd1442003-09-09 20:52:17 +000018840#ifdef F77_DUMMY_MAIN
18841# ifdef __cplusplus
18842 extern "C"
18843# endif
18844 int F77_DUMMY_MAIN() { return 1; }
18845#endif
John Criswell7a73b802003-06-30 21:59:07 +000018846int
18847main ()
18848{
18849mallinfo ();
18850 ;
18851 return 0;
18852}
18853_ACEOF
18854rm -f conftest.$ac_objext conftest$ac_exeext
18855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18856 (eval $ac_link) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -s conftest$ac_exeext'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_cv_search_mallinfo="-l$ac_lib"
18867break
18868else
18869 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018870cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000018871fi
18872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18873 done
18874fi
18875LIBS=$ac_func_search_save_LIBS
18876fi
18877echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18878echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18879if test "$ac_cv_search_mallinfo" != no; then
18880 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18881 cat >>confdefs.h <<\_ACEOF
18882#define HAVE_MALLINFO 1
18883_ACEOF
18884
18885fi
18886
18887
18888
18889echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18890echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18891if test "${ac_cv_header_stdc+set}" = set; then
18892 echo $ECHO_N "(cached) $ECHO_C" >&6
18893else
18894 cat >conftest.$ac_ext <<_ACEOF
18895#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018896#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018897#include <stdlib.h>
18898#include <stdarg.h>
18899#include <string.h>
18900#include <float.h>
18901
18902_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000018903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018905 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +000018906 egrep -v '^ *\+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018910 (exit $ac_status); } >/dev/null; then
18911 if test -s conftest.err; then
18912 ac_cpp_err=$ac_c_preproc_warn_flag
18913 else
18914 ac_cpp_err=
18915 fi
18916else
18917 ac_cpp_err=yes
18918fi
18919if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000018920 ac_cv_header_stdc=yes
18921else
18922 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000018923 cat conftest.$ac_ext >&5
18924 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018925fi
John Criswelld9cd1442003-09-09 20:52:17 +000018926rm -f conftest.err conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018927
18928if test $ac_cv_header_stdc = yes; then
18929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18930 cat >conftest.$ac_ext <<_ACEOF
18931#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018932#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018933#include <string.h>
18934
18935_ACEOF
18936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +000018937 egrep "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018938 :
18939else
18940 ac_cv_header_stdc=no
18941fi
18942rm -f conftest*
18943
18944fi
18945
18946if test $ac_cv_header_stdc = yes; then
18947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18948 cat >conftest.$ac_ext <<_ACEOF
18949#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018950#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018951#include <stdlib.h>
18952
18953_ACEOF
18954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +000018955 egrep "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018956 :
18957else
18958 ac_cv_header_stdc=no
18959fi
18960rm -f conftest*
18961
18962fi
18963
18964if test $ac_cv_header_stdc = yes; then
18965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18966 if test "$cross_compiling" = yes; then
18967 :
18968else
18969 cat >conftest.$ac_ext <<_ACEOF
18970#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000018971#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000018972#include <ctype.h>
18973#if ((' ' & 0x0FF) == 0x020)
18974# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18975# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18976#else
John Criswelld9cd1442003-09-09 20:52:17 +000018977# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
John Criswell7a73b802003-06-30 21:59:07 +000018978 || ('j' <= (c) && (c) <= 'r') \
18979 || ('s' <= (c) && (c) <= 'z'))
18980# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18981#endif
18982
18983#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18984int
18985main ()
18986{
18987 int i;
18988 for (i = 0; i < 256; i++)
18989 if (XOR (islower (i), ISLOWER (i))
18990 || toupper (i) != TOUPPER (i))
18991 exit(2);
18992 exit (0);
18993}
18994_ACEOF
18995rm -f conftest$ac_exeext
18996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997 (eval $ac_link) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 :
19007else
19008 echo "$as_me: program exited with status $ac_status" >&5
19009echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019010cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019011( exit $ac_status )
19012ac_cv_header_stdc=no
19013fi
John Criswelld9cd1442003-09-09 20:52:17 +000019014rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019015fi
19016fi
19017fi
19018echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19019echo "${ECHO_T}$ac_cv_header_stdc" >&6
19020if test $ac_cv_header_stdc = yes; then
19021
19022cat >>confdefs.h <<\_ACEOF
19023#define STDC_HEADERS 1
19024_ACEOF
19025
19026fi
19027
19028echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19029echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19030if test "${ac_cv_header_sys_wait_h+set}" = set; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19032else
19033 cat >conftest.$ac_ext <<_ACEOF
19034#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019035#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019036#include <sys/types.h>
19037#include <sys/wait.h>
19038#ifndef WEXITSTATUS
19039# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19040#endif
19041#ifndef WIFEXITED
19042# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19043#endif
19044
John Criswelld9cd1442003-09-09 20:52:17 +000019045#ifdef F77_DUMMY_MAIN
19046# ifdef __cplusplus
19047 extern "C"
19048# endif
19049 int F77_DUMMY_MAIN() { return 1; }
19050#endif
John Criswell7a73b802003-06-30 21:59:07 +000019051int
19052main ()
19053{
19054 int s;
19055 wait (&s);
19056 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19057 ;
19058 return 0;
19059}
19060_ACEOF
19061rm -f conftest.$ac_objext
19062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
19067 { ac_try='test -s conftest.$ac_objext'
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_header_sys_wait_h=yes
19074else
19075 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019076cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019077ac_cv_header_sys_wait_h=no
19078fi
19079rm -f conftest.$ac_objext conftest.$ac_ext
19080fi
19081echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19082echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19083if test $ac_cv_header_sys_wait_h = yes; then
19084
19085cat >>confdefs.h <<\_ACEOF
19086#define HAVE_SYS_WAIT_H 1
19087_ACEOF
19088
19089fi
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19101do
19102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19103if eval "test \"\${$as_ac_Header+set}\" = set"; then
19104 echo "$as_me:$LINENO: checking for $ac_header" >&5
19105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19106if eval "test \"\${$as_ac_Header+set}\" = set"; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108fi
19109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111else
19112 # Is the header compilable?
19113echo "$as_me:$LINENO: checking $ac_header usability" >&5
19114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19115cat >conftest.$ac_ext <<_ACEOF
19116#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019117#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019118$ac_includes_default
19119#include <$ac_header>
19120_ACEOF
19121rm -f conftest.$ac_objext
19122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -s conftest.$ac_objext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_header_compiler=yes
19134else
19135 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019136cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019137ac_header_compiler=no
19138fi
19139rm -f conftest.$ac_objext conftest.$ac_ext
19140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19141echo "${ECHO_T}$ac_header_compiler" >&6
19142
19143# Is the header present?
19144echo "$as_me:$LINENO: checking $ac_header presence" >&5
19145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19146cat >conftest.$ac_ext <<_ACEOF
19147#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019148#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019149#include <$ac_header>
19150_ACEOF
19151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19153 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +000019154 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } >/dev/null; then
19159 if test -s conftest.err; then
19160 ac_cpp_err=$ac_c_preproc_warn_flag
19161 else
19162 ac_cpp_err=
19163 fi
19164else
19165 ac_cpp_err=yes
19166fi
19167if test -z "$ac_cpp_err"; then
19168 ac_header_preproc=yes
19169else
19170 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019171 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019172 ac_header_preproc=no
19173fi
19174rm -f conftest.err conftest.$ac_ext
19175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19176echo "${ECHO_T}$ac_header_preproc" >&6
19177
19178# So? What about this header?
19179case $ac_header_compiler:$ac_header_preproc in
19180 yes:no )
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019185 no:yes )
19186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019192esac
19193echo "$as_me:$LINENO: checking for $ac_header" >&5
19194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197else
19198 eval "$as_ac_Header=$ac_header_preproc"
19199fi
19200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202
19203fi
19204if test `eval echo '${'$as_ac_Header'}'` = yes; then
19205 cat >>confdefs.h <<_ACEOF
19206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19207_ACEOF
19208
19209fi
19210
19211done
19212
19213
19214
19215
19216
19217
19218for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19219do
19220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19221if eval "test \"\${$as_ac_Header+set}\" = set"; then
19222 echo "$as_me:$LINENO: checking for $ac_header" >&5
19223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19224if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225 echo $ECHO_N "(cached) $ECHO_C" >&6
19226fi
19227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19229else
19230 # Is the header compilable?
19231echo "$as_me:$LINENO: checking $ac_header usability" >&5
19232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19233cat >conftest.$ac_ext <<_ACEOF
19234#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019235#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019236$ac_includes_default
19237#include <$ac_header>
19238_ACEOF
19239rm -f conftest.$ac_objext
19240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
19245 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
19252else
19253 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019254cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019255ac_header_compiler=no
19256fi
19257rm -f conftest.$ac_objext conftest.$ac_ext
19258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19259echo "${ECHO_T}$ac_header_compiler" >&6
19260
19261# Is the header present?
19262echo "$as_me:$LINENO: checking $ac_header presence" >&5
19263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19264cat >conftest.$ac_ext <<_ACEOF
19265#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019266#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019267#include <$ac_header>
19268_ACEOF
19269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19271 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +000019272 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } >/dev/null; then
19277 if test -s conftest.err; then
19278 ac_cpp_err=$ac_c_preproc_warn_flag
19279 else
19280 ac_cpp_err=
19281 fi
19282else
19283 ac_cpp_err=yes
19284fi
19285if test -z "$ac_cpp_err"; then
19286 ac_header_preproc=yes
19287else
19288 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019289 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019290 ac_header_preproc=no
19291fi
19292rm -f conftest.err conftest.$ac_ext
19293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19294echo "${ECHO_T}$ac_header_preproc" >&6
19295
19296# So? What about this header?
19297case $ac_header_compiler:$ac_header_preproc in
19298 yes:no )
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019303 no:yes )
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019309echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019310esac
19311echo "$as_me:$LINENO: checking for $ac_header" >&5
19312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314 echo $ECHO_N "(cached) $ECHO_C" >&6
19315else
19316 eval "$as_ac_Header=$ac_header_preproc"
19317fi
19318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19319echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19320
19321fi
19322if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19325_ACEOF
19326
19327fi
19328
19329done
19330
19331
19332
19333
19334for ac_header in dlfcn.h link.h
19335do
19336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19337if eval "test \"\${$as_ac_Header+set}\" = set"; then
19338 echo "$as_me:$LINENO: checking for $ac_header" >&5
19339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19340if eval "test \"\${$as_ac_Header+set}\" = set"; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342fi
19343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19345else
19346 # Is the header compilable?
19347echo "$as_me:$LINENO: checking $ac_header usability" >&5
19348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19349cat >conftest.$ac_ext <<_ACEOF
19350#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019351#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019352$ac_includes_default
19353#include <$ac_header>
19354_ACEOF
19355rm -f conftest.$ac_objext
19356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357 (eval $ac_compile) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_header_compiler=yes
19368else
19369 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019370cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019371ac_header_compiler=no
19372fi
19373rm -f conftest.$ac_objext conftest.$ac_ext
19374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19375echo "${ECHO_T}$ac_header_compiler" >&6
19376
19377# Is the header present?
19378echo "$as_me:$LINENO: checking $ac_header presence" >&5
19379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19380cat >conftest.$ac_ext <<_ACEOF
19381#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019382#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019383#include <$ac_header>
19384_ACEOF
19385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19387 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +000019388 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } >/dev/null; then
19393 if test -s conftest.err; then
19394 ac_cpp_err=$ac_c_preproc_warn_flag
19395 else
19396 ac_cpp_err=
19397 fi
19398else
19399 ac_cpp_err=yes
19400fi
19401if test -z "$ac_cpp_err"; then
19402 ac_header_preproc=yes
19403else
19404 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019405 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019406 ac_header_preproc=no
19407fi
19408rm -f conftest.err conftest.$ac_ext
19409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19410echo "${ECHO_T}$ac_header_preproc" >&6
19411
19412# So? What about this header?
19413case $ac_header_compiler:$ac_header_preproc in
19414 yes:no )
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019419 no:yes )
19420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000019426esac
19427echo "$as_me:$LINENO: checking for $ac_header" >&5
19428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430 echo $ECHO_N "(cached) $ECHO_C" >&6
19431else
19432 eval "$as_ac_Header=$ac_header_preproc"
19433fi
19434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19436
19437fi
19438if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439 cat >>confdefs.h <<_ACEOF
19440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441_ACEOF
19442
19443fi
19444
19445done
19446
19447
19448
John Criswelld9cd1442003-09-09 20:52:17 +000019449echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19450echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19451if test "${ac_cv_prog_cc_stdc+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453else
19454 ac_cv_prog_cc_stdc=no
19455ac_save_CC=$CC
19456cat >conftest.$ac_ext <<_ACEOF
19457#line $LINENO "configure"
19458#include "confdefs.h"
19459#include <stdarg.h>
19460#include <stdio.h>
19461#include <sys/types.h>
19462#include <sys/stat.h>
19463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19464struct buf { int x; };
19465FILE * (*rcsopen) (struct buf *, struct stat *, int);
19466static char *e (p, i)
19467 char **p;
19468 int i;
19469{
19470 return p[i];
19471}
19472static char *f (char * (*g) (char **, int), char **p, ...)
19473{
19474 char *s;
19475 va_list v;
19476 va_start (v,p);
19477 s = g (p, va_arg (v,int));
19478 va_end (v);
19479 return s;
19480}
19481int test (int i, double x);
19482struct s1 {int (*f) (int a);};
19483struct s2 {int (*f) (double a);};
19484int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19485int argc;
19486char **argv;
19487#ifdef F77_DUMMY_MAIN
19488# ifdef __cplusplus
19489 extern "C"
19490# endif
19491 int F77_DUMMY_MAIN() { return 1; }
19492#endif
19493int
19494main ()
19495{
19496return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19497 ;
19498 return 0;
19499}
19500_ACEOF
19501# Don't try gcc -ansi; that turns off useful extensions and
19502# breaks some systems' header files.
19503# AIX -qlanglvl=ansi
19504# Ultrix and OSF/1 -std1
19505# HP-UX 10.20 and later -Ae
19506# HP-UX older versions -Aa -D_HPUX_SOURCE
19507# SVR4 -Xc -D__EXTENSIONS__
19508for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19509do
19510 CC="$ac_save_CC $ac_arg"
19511 rm -f conftest.$ac_objext
19512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513 (eval $ac_compile) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_cv_prog_cc_stdc=$ac_arg
19524break
19525else
19526 echo "$as_me: failed program was:" >&5
19527cat conftest.$ac_ext >&5
19528fi
19529rm -f conftest.$ac_objext
19530done
19531rm -f conftest.$ac_ext conftest.$ac_objext
19532CC=$ac_save_CC
19533
19534fi
19535
19536case "x$ac_cv_prog_cc_stdc" in
19537 x|xno)
19538 echo "$as_me:$LINENO: result: none needed" >&5
19539echo "${ECHO_T}none needed" >&6 ;;
19540 *)
19541 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19542echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19543 CC="$CC $ac_cv_prog_cc_stdc" ;;
19544esac
19545
John Criswell7a73b802003-06-30 21:59:07 +000019546echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19547echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19548if test "${ac_cv_c_const+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551 cat >conftest.$ac_ext <<_ACEOF
19552#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019553#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019554
John Criswelld9cd1442003-09-09 20:52:17 +000019555#ifdef F77_DUMMY_MAIN
19556# ifdef __cplusplus
19557 extern "C"
19558# endif
19559 int F77_DUMMY_MAIN() { return 1; }
19560#endif
John Criswell7a73b802003-06-30 21:59:07 +000019561int
19562main ()
19563{
19564/* FIXME: Include the comments suggested by Paul. */
19565#ifndef __cplusplus
19566 /* Ultrix mips cc rejects this. */
19567 typedef int charset[2];
19568 const charset x;
19569 /* SunOS 4.1.1 cc rejects this. */
19570 char const *const *ccp;
19571 char **p;
19572 /* NEC SVR4.0.2 mips cc rejects this. */
19573 struct point {int x, y;};
19574 static struct point const zero = {0,0};
19575 /* AIX XL C 1.02.0.0 rejects this.
19576 It does not let you subtract one const X* pointer from another in
19577 an arm of an if-expression whose if-part is not a constant
19578 expression */
19579 const char *g = "string";
19580 ccp = &g + (g ? g-g : 0);
19581 /* HPUX 7.0 cc rejects these. */
19582 ++ccp;
19583 p = (char**) ccp;
19584 ccp = (char const *const *) p;
19585 { /* SCO 3.2v4 cc rejects this. */
19586 char *t;
19587 char const *s = 0 ? (char *) 0 : (char const *) 0;
19588
19589 *t++ = 0;
19590 }
19591 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19592 int x[] = {25, 17};
19593 const int *foo = &x[0];
19594 ++foo;
19595 }
19596 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19597 typedef const int *iptr;
19598 iptr p = 0;
19599 ++p;
19600 }
19601 { /* AIX XL C 1.02.0.0 rejects this saying
19602 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19603 struct s { int j; const int *ap[3]; };
19604 struct s *b; b->j = 5;
19605 }
19606 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19607 const int foo = 10;
19608 }
19609#endif
19610
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext
19616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617 (eval $ac_compile) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 ac_cv_c_const=yes
19628else
19629 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019630cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019631ac_cv_c_const=no
19632fi
19633rm -f conftest.$ac_objext conftest.$ac_ext
19634fi
19635echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19636echo "${ECHO_T}$ac_cv_c_const" >&6
19637if test $ac_cv_c_const = no; then
19638
19639cat >>confdefs.h <<\_ACEOF
19640#define const
19641_ACEOF
19642
19643fi
19644
19645echo "$as_me:$LINENO: checking for inline" >&5
19646echo $ECHO_N "checking for inline... $ECHO_C" >&6
19647if test "${ac_cv_c_inline+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649else
19650 ac_cv_c_inline=no
19651for ac_kw in inline __inline__ __inline; do
19652 cat >conftest.$ac_ext <<_ACEOF
19653#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019654#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019655#ifndef __cplusplus
John Criswelld9cd1442003-09-09 20:52:17 +000019656static $ac_kw int static_foo () {return 0; }
19657$ac_kw int foo () {return 0; }
John Criswell7a73b802003-06-30 21:59:07 +000019658#endif
19659
19660_ACEOF
19661rm -f conftest.$ac_objext
19662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } &&
19667 { ac_try='test -s conftest.$ac_objext'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; }; then
19673 ac_cv_c_inline=$ac_kw; break
19674else
19675 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019676cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019677fi
19678rm -f conftest.$ac_objext conftest.$ac_ext
19679done
19680
19681fi
19682echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19683echo "${ECHO_T}$ac_cv_c_inline" >&6
19684case $ac_cv_c_inline in
19685 inline | yes) ;;
19686 no)
19687cat >>confdefs.h <<\_ACEOF
19688#define inline
19689_ACEOF
19690 ;;
19691 *) cat >>confdefs.h <<_ACEOF
19692#define inline $ac_cv_c_inline
19693_ACEOF
19694 ;;
19695esac
19696
19697
19698echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19699echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19700if test "${ac_cv_c_bigendian+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702else
19703 # See if sys/param.h defines the BYTE_ORDER macro.
19704cat >conftest.$ac_ext <<_ACEOF
19705#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019706#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019707#include <sys/types.h>
19708#include <sys/param.h>
19709
John Criswelld9cd1442003-09-09 20:52:17 +000019710#ifdef F77_DUMMY_MAIN
19711# ifdef __cplusplus
19712 extern "C"
19713# endif
19714 int F77_DUMMY_MAIN() { return 1; }
19715#endif
John Criswell7a73b802003-06-30 21:59:07 +000019716int
19717main ()
19718{
19719#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19720 bogus endian macros
19721#endif
19722
19723 ;
19724 return 0;
19725}
19726_ACEOF
19727rm -f conftest.$ac_objext
19728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729 (eval $ac_compile) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } &&
19733 { ac_try='test -s conftest.$ac_objext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 # It does; now see whether it defined to BIG_ENDIAN or not.
19740cat >conftest.$ac_ext <<_ACEOF
19741#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019742#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019743#include <sys/types.h>
19744#include <sys/param.h>
19745
John Criswelld9cd1442003-09-09 20:52:17 +000019746#ifdef F77_DUMMY_MAIN
19747# ifdef __cplusplus
19748 extern "C"
19749# endif
19750 int F77_DUMMY_MAIN() { return 1; }
19751#endif
John Criswell7a73b802003-06-30 21:59:07 +000019752int
19753main ()
19754{
19755#if BYTE_ORDER != BIG_ENDIAN
19756 not big endian
19757#endif
19758
19759 ;
19760 return 0;
19761}
19762_ACEOF
19763rm -f conftest.$ac_objext
19764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19765 (eval $ac_compile) 2>&5
19766 ac_status=$?
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
19769 { ac_try='test -s conftest.$ac_objext'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_c_bigendian=yes
19776else
19777 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019778cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019779ac_cv_c_bigendian=no
19780fi
19781rm -f conftest.$ac_objext conftest.$ac_ext
19782else
19783 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019784cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019785# It does not; compile a test program.
19786if test "$cross_compiling" = yes; then
John Criswelld9cd1442003-09-09 20:52:17 +000019787 # try to guess the endianess by grep'ing values into an object file
John Criswell7a73b802003-06-30 21:59:07 +000019788 ac_cv_c_bigendian=unknown
19789 cat >conftest.$ac_ext <<_ACEOF
19790#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019791#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019792short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19793short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19794void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19795short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19796short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19797void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
John Criswelld9cd1442003-09-09 20:52:17 +000019798#ifdef F77_DUMMY_MAIN
19799# ifdef __cplusplus
19800 extern "C"
19801# endif
19802 int F77_DUMMY_MAIN() { return 1; }
19803#endif
John Criswell7a73b802003-06-30 21:59:07 +000019804int
19805main ()
19806{
19807 _ascii (); _ebcdic ();
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext
19813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814 (eval $ac_compile) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
John Criswelld9cd1442003-09-09 20:52:17 +000019824 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019825 ac_cv_c_bigendian=yes
19826fi
John Criswelld9cd1442003-09-09 20:52:17 +000019827if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
John Criswell7a73b802003-06-30 21:59:07 +000019828 if test "$ac_cv_c_bigendian" = unknown; then
19829 ac_cv_c_bigendian=no
19830 else
19831 # finding both strings is unlikely to happen, but who knows?
19832 ac_cv_c_bigendian=unknown
19833 fi
19834fi
19835else
19836 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019837cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019838fi
19839rm -f conftest.$ac_objext conftest.$ac_ext
19840else
19841 cat >conftest.$ac_ext <<_ACEOF
19842#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019843#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019844int
19845main ()
19846{
19847 /* Are we little or big endian? From Harbison&Steele. */
19848 union
19849 {
19850 long l;
19851 char c[sizeof (long)];
19852 } u;
19853 u.l = 1;
19854 exit (u.c[sizeof (long) - 1] == 1);
19855}
19856_ACEOF
19857rm -f conftest$ac_exeext
19858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859 (eval $ac_link) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_c_bigendian=no
19869else
19870 echo "$as_me: program exited with status $ac_status" >&5
19871echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019872cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019873( exit $ac_status )
19874ac_cv_c_bigendian=yes
19875fi
John Criswelld9cd1442003-09-09 20:52:17 +000019876rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019877fi
19878fi
19879rm -f conftest.$ac_objext conftest.$ac_ext
19880fi
19881echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19882echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19883case $ac_cv_c_bigendian in
19884 yes)
19885 cat >>confdefs.h <<\_ACEOF
19886#define ENDIAN_BIG 1
19887_ACEOF
19888 ;;
19889 no)
19890 cat >>confdefs.h <<\_ACEOF
19891#define ENDIAN_LITTLE 1
19892_ACEOF
19893 ;;
19894 *)
John Criswelld9cd1442003-09-09 20:52:17 +000019895 { { echo "$as_me:$LINENO: error: unknown endianess
John Criswell7a73b802003-06-30 21:59:07 +000019896presetting ac_cv_c_bigendian=no (or yes) will help" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019897echo "$as_me: error: unknown endianess
John Criswell7a73b802003-06-30 21:59:07 +000019898presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19899 { (exit 1); exit 1; }; } ;;
19900esac
19901
19902
19903echo "$as_me:$LINENO: checking for pid_t" >&5
19904echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19905if test "${ac_cv_type_pid_t+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907else
19908 cat >conftest.$ac_ext <<_ACEOF
19909#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019910#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019911$ac_includes_default
John Criswelld9cd1442003-09-09 20:52:17 +000019912#ifdef F77_DUMMY_MAIN
19913# ifdef __cplusplus
19914 extern "C"
19915# endif
19916 int F77_DUMMY_MAIN() { return 1; }
19917#endif
John Criswell7a73b802003-06-30 21:59:07 +000019918int
19919main ()
19920{
19921if ((pid_t *) 0)
19922 return 0;
19923if (sizeof (pid_t))
19924 return 0;
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931 (eval $ac_compile) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 ac_cv_type_pid_t=yes
19942else
19943 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000019944cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000019945ac_cv_type_pid_t=no
19946fi
19947rm -f conftest.$ac_objext conftest.$ac_ext
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19950echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19951if test $ac_cv_type_pid_t = yes; then
19952 :
19953else
19954
19955cat >>confdefs.h <<_ACEOF
19956#define pid_t int
19957_ACEOF
19958
19959fi
19960
19961echo "$as_me:$LINENO: checking for size_t" >&5
19962echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19963if test "${ac_cv_type_size_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 cat >conftest.$ac_ext <<_ACEOF
19967#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000019968#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000019969$ac_includes_default
John Criswelld9cd1442003-09-09 20:52:17 +000019970#ifdef F77_DUMMY_MAIN
19971# ifdef __cplusplus
19972 extern "C"
19973# endif
19974 int F77_DUMMY_MAIN() { return 1; }
19975#endif
John Criswell7a73b802003-06-30 21:59:07 +000019976int
19977main ()
19978{
19979if ((size_t *) 0)
19980 return 0;
19981if (sizeof (size_t))
19982 return 0;
19983 ;
19984 return 0;
19985}
19986_ACEOF
19987rm -f conftest.$ac_objext
19988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>&5
19990 ac_status=$?
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -s conftest.$ac_objext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_type_size_t=yes
20000else
20001 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020002cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020003ac_cv_type_size_t=no
20004fi
20005rm -f conftest.$ac_objext conftest.$ac_ext
20006fi
20007echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20008echo "${ECHO_T}$ac_cv_type_size_t" >&6
20009if test $ac_cv_type_size_t = yes; then
20010 :
20011else
20012
20013cat >>confdefs.h <<_ACEOF
20014#define size_t unsigned
20015_ACEOF
20016
20017fi
20018
20019echo "$as_me:$LINENO: checking for int64_t" >&5
20020echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20021if test "${ac_cv_type_int64_t+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 cat >conftest.$ac_ext <<_ACEOF
20025#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020026#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020027$ac_includes_default
John Criswelld9cd1442003-09-09 20:52:17 +000020028#ifdef F77_DUMMY_MAIN
20029# ifdef __cplusplus
20030 extern "C"
20031# endif
20032 int F77_DUMMY_MAIN() { return 1; }
20033#endif
John Criswell7a73b802003-06-30 21:59:07 +000020034int
20035main ()
20036{
20037if ((int64_t *) 0)
20038 return 0;
20039if (sizeof (int64_t))
20040 return 0;
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045rm -f conftest.$ac_objext
20046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047 (eval $ac_compile) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } &&
20051 { ac_try='test -s conftest.$ac_objext'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
20057 ac_cv_type_int64_t=yes
20058else
20059 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020060cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020061ac_cv_type_int64_t=no
20062fi
20063rm -f conftest.$ac_objext conftest.$ac_ext
20064fi
20065echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20066echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20067if test $ac_cv_type_int64_t = yes; then
20068
20069cat >>confdefs.h <<_ACEOF
20070#define HAVE_INT64_T 1
20071_ACEOF
20072
20073
20074else
20075 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20076echo "$as_me: error: Type int64_t required but not found" >&2;}
20077 { (exit 1); exit 1; }; }
20078fi
20079
20080echo "$as_me:$LINENO: checking for uint64_t" >&5
20081echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20082if test "${ac_cv_type_uint64_t+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 cat >conftest.$ac_ext <<_ACEOF
20086#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020087#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020088$ac_includes_default
John Criswelld9cd1442003-09-09 20:52:17 +000020089#ifdef F77_DUMMY_MAIN
20090# ifdef __cplusplus
20091 extern "C"
20092# endif
20093 int F77_DUMMY_MAIN() { return 1; }
20094#endif
John Criswell7a73b802003-06-30 21:59:07 +000020095int
20096main ()
20097{
20098if ((uint64_t *) 0)
20099 return 0;
20100if (sizeof (uint64_t))
20101 return 0;
20102 ;
20103 return 0;
20104}
20105_ACEOF
20106rm -f conftest.$ac_objext
20107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108 (eval $ac_compile) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -s conftest.$ac_objext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 ac_cv_type_uint64_t=yes
20119else
20120 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020121cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020122ac_cv_type_uint64_t=no
20123fi
20124rm -f conftest.$ac_objext conftest.$ac_ext
20125fi
20126echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20127echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20128if test $ac_cv_type_uint64_t = yes; then
20129
20130cat >>confdefs.h <<_ACEOF
20131#define HAVE_UINT64_T 1
20132_ACEOF
20133
20134
20135else
20136 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20137echo "$as_me: error: Type uint64_t required but not found" >&2;}
20138 { (exit 1); exit 1; }; }
20139fi
20140
20141echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20142echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20143if test "${ac_cv_header_time+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145else
20146 cat >conftest.$ac_ext <<_ACEOF
20147#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020148#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020149#include <sys/types.h>
20150#include <sys/time.h>
20151#include <time.h>
20152
John Criswelld9cd1442003-09-09 20:52:17 +000020153#ifdef F77_DUMMY_MAIN
20154# ifdef __cplusplus
20155 extern "C"
20156# endif
20157 int F77_DUMMY_MAIN() { return 1; }
20158#endif
John Criswell7a73b802003-06-30 21:59:07 +000020159int
20160main ()
20161{
20162if ((struct tm *) 0)
20163return 0;
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 ac_cv_header_time=yes
20181else
20182 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020183cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020184ac_cv_header_time=no
20185fi
20186rm -f conftest.$ac_objext conftest.$ac_ext
20187fi
20188echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20189echo "${ECHO_T}$ac_cv_header_time" >&6
20190if test $ac_cv_header_time = yes; then
20191
20192cat >>confdefs.h <<\_ACEOF
20193#define TIME_WITH_SYS_TIME 1
20194_ACEOF
20195
20196fi
20197
20198echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20199echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20200if test "${ac_cv_struct_tm+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20202else
20203 cat >conftest.$ac_ext <<_ACEOF
20204#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020205#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020206#include <sys/types.h>
20207#include <time.h>
20208
John Criswelld9cd1442003-09-09 20:52:17 +000020209#ifdef F77_DUMMY_MAIN
20210# ifdef __cplusplus
20211 extern "C"
20212# endif
20213 int F77_DUMMY_MAIN() { return 1; }
20214#endif
John Criswell7a73b802003-06-30 21:59:07 +000020215int
20216main ()
20217{
20218struct tm *tp; tp->tm_sec;
20219 ;
20220 return 0;
20221}
20222_ACEOF
20223rm -f conftest.$ac_objext
20224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225 (eval $ac_compile) 2>&5
20226 ac_status=$?
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235 ac_cv_struct_tm=time.h
20236else
20237 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020238cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020239ac_cv_struct_tm=sys/time.h
20240fi
20241rm -f conftest.$ac_objext conftest.$ac_ext
20242fi
20243echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20244echo "${ECHO_T}$ac_cv_struct_tm" >&6
20245if test $ac_cv_struct_tm = sys/time.h; then
20246
20247cat >>confdefs.h <<\_ACEOF
20248#define TM_IN_SYS_TIME 1
20249_ACEOF
20250
20251fi
20252
20253
John Criswell7a73b802003-06-30 21:59:07 +000020254echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20255echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20256if test "${ac_cv_cxx_namespaces+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258else
20259
20260
20261 ac_ext=cc
20262ac_cpp='$CXXCPP $CPPFLAGS'
20263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20266
20267 cat >conftest.$ac_ext <<_ACEOF
20268#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020269#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020270namespace Outer { namespace Inner { int i = 0; }}
John Criswelld9cd1442003-09-09 20:52:17 +000020271#ifdef F77_DUMMY_MAIN
20272# ifdef __cplusplus
20273 extern "C"
20274# endif
20275 int F77_DUMMY_MAIN() { return 1; }
20276#endif
John Criswell7a73b802003-06-30 21:59:07 +000020277int
20278main ()
20279{
20280using namespace Outer::Inner; return i;
20281 ;
20282 return 0;
20283}
20284_ACEOF
20285rm -f conftest.$ac_objext
20286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } &&
20291 { ac_try='test -s conftest.$ac_objext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_cxx_namespaces=yes
20298else
20299 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020300cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020301ac_cv_cxx_namespaces=no
20302fi
20303rm -f conftest.$ac_objext conftest.$ac_ext
20304 ac_ext=c
20305ac_cpp='$CPP $CPPFLAGS'
20306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308ac_compiler_gnu=$ac_cv_c_compiler_gnu
20309
20310
20311fi
20312echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20313echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20314if test "$ac_cv_cxx_namespaces" = yes; then
20315
20316cat >>confdefs.h <<\_ACEOF
20317#define HAVE_NAMESPACES
20318_ACEOF
20319
20320fi
20321
20322echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20323echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20324if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326else
20327
20328
20329
20330 ac_ext=cc
20331ac_cpp='$CXXCPP $CPPFLAGS'
20332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20335
20336 cat >conftest.$ac_ext <<_ACEOF
20337#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020338#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020339#include <ext/hash_map>
20340#ifdef HAVE_NAMESPACES
20341using namespace std;
20342#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020343#ifdef F77_DUMMY_MAIN
20344# ifdef __cplusplus
20345 extern "C"
20346# endif
20347 int F77_DUMMY_MAIN() { return 1; }
20348#endif
John Criswell7a73b802003-06-30 21:59:07 +000020349int
20350main ()
20351{
20352hash_map<int, int> t; return 0;
20353 ;
20354 return 0;
20355}
20356_ACEOF
20357rm -f conftest.$ac_objext
20358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -s conftest.$ac_objext'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369 ac_cv_cxx_have_ext_hash_map=std
20370else
20371 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020372cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020373ac_cv_cxx_have_ext_hash_map=no
20374fi
20375rm -f conftest.$ac_objext conftest.$ac_ext
20376 cat >conftest.$ac_ext <<_ACEOF
20377#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020378#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020379#include <ext/hash_map>
20380#ifdef HAVE_NAMESPACES
20381using namespace __gnu_cxx;
20382#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020383#ifdef F77_DUMMY_MAIN
20384# ifdef __cplusplus
20385 extern "C"
20386# endif
20387 int F77_DUMMY_MAIN() { return 1; }
20388#endif
John Criswell7a73b802003-06-30 21:59:07 +000020389int
20390main ()
20391{
20392hash_map<int, int> t; return 0;
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20399 (eval $ac_compile) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
20403 { ac_try='test -s conftest.$ac_objext'
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; }; then
20409 ac_cv_cxx_have_ext_hash_map=gnu
20410else
20411 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020412cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020413ac_cv_cxx_have_ext_hash_map=no
20414fi
20415rm -f conftest.$ac_objext conftest.$ac_ext
20416 ac_ext=c
20417ac_cpp='$CPP $CPPFLAGS'
20418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420ac_compiler_gnu=$ac_cv_c_compiler_gnu
20421
20422
20423fi
20424echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20425echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20426if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20427
20428cat >>confdefs.h <<\_ACEOF
20429#define HAVE_STD_EXT_HASH_MAP
20430_ACEOF
20431
20432fi
20433if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20434
20435cat >>confdefs.h <<\_ACEOF
20436#define HAVE_GNU_EXT_HASH_MAP
20437_ACEOF
20438
20439fi
20440
20441echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20442echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20443if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445else
20446
20447
20448
20449 ac_ext=cc
20450ac_cpp='$CXXCPP $CPPFLAGS'
20451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454
20455 cat >conftest.$ac_ext <<_ACEOF
20456#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020457#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020458#include <ext/hash_set>
20459#ifdef HAVE_NAMESPACES
20460using namespace std;
20461#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020462#ifdef F77_DUMMY_MAIN
20463# ifdef __cplusplus
20464 extern "C"
20465# endif
20466 int F77_DUMMY_MAIN() { return 1; }
20467#endif
John Criswell7a73b802003-06-30 21:59:07 +000020468int
20469main ()
20470{
20471hash_set<int> t; return 0;
20472 ;
20473 return 0;
20474}
20475_ACEOF
20476rm -f conftest.$ac_objext
20477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20478 (eval $ac_compile) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -s conftest.$ac_objext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 ac_cv_cxx_have_ext_hash_set=std
20489else
20490 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020491cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020492ac_cv_cxx_have_ext_hash_set=no
20493fi
20494rm -f conftest.$ac_objext conftest.$ac_ext
20495 cat >conftest.$ac_ext <<_ACEOF
20496#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020497#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020498#include <ext/hash_set>
20499#ifdef HAVE_NAMESPACES
20500using namespace __gnu_cxx;
20501#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020502#ifdef F77_DUMMY_MAIN
20503# ifdef __cplusplus
20504 extern "C"
20505# endif
20506 int F77_DUMMY_MAIN() { return 1; }
20507#endif
John Criswell7a73b802003-06-30 21:59:07 +000020508int
20509main ()
20510{
20511hash_set<int> t; return 0;
20512 ;
20513 return 0;
20514}
20515_ACEOF
20516rm -f conftest.$ac_objext
20517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518 (eval $ac_compile) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
20522 { ac_try='test -s conftest.$ac_objext'
20523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524 (eval $ac_try) 2>&5
20525 ac_status=$?
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); }; }; then
20528 ac_cv_cxx_have_ext_hash_set=gnu
20529else
20530 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020531cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020532ac_cv_cxx_have_ext_hash_set=no
20533fi
20534rm -f conftest.$ac_objext conftest.$ac_ext
20535 ac_ext=c
20536ac_cpp='$CPP $CPPFLAGS'
20537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539ac_compiler_gnu=$ac_cv_c_compiler_gnu
20540
20541
20542fi
20543echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20544echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20545if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20546
20547cat >>confdefs.h <<\_ACEOF
20548#define HAVE_STD_EXT_HASH_SET
20549_ACEOF
20550
20551fi
20552if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20553
20554cat >>confdefs.h <<\_ACEOF
20555#define HAVE_GNU_EXT_HASH_SET
20556_ACEOF
20557
20558fi
20559
20560echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20561echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20562if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565
20566
20567
20568 ac_ext=cc
20569ac_cpp='$CXXCPP $CPPFLAGS'
20570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20573
20574 cat >conftest.$ac_ext <<_ACEOF
20575#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020576#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020577#include <ext/slist>
20578#ifdef HAVE_NAMESPACES
20579using namespace std;
20580#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020581#ifdef F77_DUMMY_MAIN
20582# ifdef __cplusplus
20583 extern "C"
20584# endif
20585 int F77_DUMMY_MAIN() { return 1; }
20586#endif
John Criswell7a73b802003-06-30 21:59:07 +000020587int
20588main ()
20589{
20590slist<int> s; return 0;
20591 ;
20592 return 0;
20593}
20594_ACEOF
20595rm -f conftest.$ac_objext
20596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20597 (eval $ac_compile) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } &&
20601 { ac_try='test -s conftest.$ac_objext'
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_cv_cxx_have_ext_slist=std
20608else
20609 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020610cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020611ac_cv_cxx_have_ext_slist=no
20612fi
20613rm -f conftest.$ac_objext conftest.$ac_ext
20614 cat >conftest.$ac_ext <<_ACEOF
20615#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020616#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020617#include <ext/slist>
20618#ifdef HAVE_NAMESPACES
20619using namespace __gnu_cxx;
20620#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020621#ifdef F77_DUMMY_MAIN
20622# ifdef __cplusplus
20623 extern "C"
20624# endif
20625 int F77_DUMMY_MAIN() { return 1; }
20626#endif
John Criswell7a73b802003-06-30 21:59:07 +000020627int
20628main ()
20629{
20630slist<int> s; return 0;
20631 ;
20632 return 0;
20633}
20634_ACEOF
20635rm -f conftest.$ac_objext
20636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20637 (eval $ac_compile) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); } &&
20641 { ac_try='test -s conftest.$ac_objext'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_cxx_have_ext_slist=gnu
20648else
20649 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020650cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020651ac_cv_cxx_have_ext_slist=no
20652fi
20653rm -f conftest.$ac_objext conftest.$ac_ext
20654
20655 ac_ext=c
20656ac_cpp='$CPP $CPPFLAGS'
20657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20659ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660
20661
20662fi
20663echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20664echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20665if test "$ac_cv_cxx_have_ext_slist" = std; then
20666
20667cat >>confdefs.h <<\_ACEOF
20668#define HAVE_EXT_SLIST std
20669_ACEOF
20670
20671fi
20672if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20673
20674cat >>confdefs.h <<\_ACEOF
20675#define HAVE_EXT_SLIST gnu
20676_ACEOF
20677
20678fi
20679
20680echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20681echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20682if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20684else
20685
20686
20687
20688 ac_ext=cc
20689ac_cpp='$CXXCPP $CPPFLAGS'
20690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20693
20694 cat >conftest.$ac_ext <<_ACEOF
20695#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020696#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020697#include <iterator>
20698#ifdef HAVE_NAMESPACES
20699using namespace std;
20700#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020701#ifdef F77_DUMMY_MAIN
20702# ifdef __cplusplus
20703 extern "C"
20704# endif
20705 int F77_DUMMY_MAIN() { return 1; }
20706#endif
John Criswell7a73b802003-06-30 21:59:07 +000020707int
20708main ()
20709{
20710iterator<int,int,int> t; return 0;
20711 ;
20712 return 0;
20713}
20714_ACEOF
20715rm -f conftest.$ac_objext
20716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20717 (eval $ac_compile) 2>&5
20718 ac_status=$?
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -s conftest.$ac_objext'
20722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723 (eval $ac_try) 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_cxx_have_std_iterator=yes
20728else
20729 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020730cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020731ac_cv_cxx_have_std_iterator=no
20732fi
20733rm -f conftest.$ac_objext conftest.$ac_ext
20734 ac_ext=c
20735ac_cpp='$CPP $CPPFLAGS'
20736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739
20740
20741fi
20742echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20743echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20744if test "$ac_cv_cxx_have_std_iterator" = yes; then
20745
20746cat >>confdefs.h <<\_ACEOF
20747#define HAVE_STD_ITERATOR
20748_ACEOF
20749
20750fi
20751
20752echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20753echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20754if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20756else
20757
20758
20759
20760 ac_ext=cc
20761ac_cpp='$CXXCPP $CPPFLAGS'
20762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20765
20766 cat >conftest.$ac_ext <<_ACEOF
20767#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020768#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020769#include <iterator>
20770#ifdef HAVE_NAMESPACES
20771using namespace std;
20772#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020773#ifdef F77_DUMMY_MAIN
20774# ifdef __cplusplus
20775 extern "C"
20776# endif
20777 int F77_DUMMY_MAIN() { return 1; }
20778#endif
John Criswell7a73b802003-06-30 21:59:07 +000020779int
20780main ()
20781{
John Criswellc78022e2003-07-29 19:11:58 +000020782bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020783 ;
20784 return 0;
20785}
20786_ACEOF
20787rm -f conftest.$ac_objext
20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20789 (eval $ac_compile) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -s conftest.$ac_objext'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20799 ac_cv_cxx_have_bi_iterator=yes
20800else
20801 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020802cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020803ac_cv_cxx_have_bi_iterator=no
20804fi
20805rm -f conftest.$ac_objext conftest.$ac_ext
20806 ac_ext=c
20807ac_cpp='$CPP $CPPFLAGS'
20808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20810ac_compiler_gnu=$ac_cv_c_compiler_gnu
20811
20812
20813fi
20814echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20815echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20816if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20817
20818cat >>confdefs.h <<\_ACEOF
20819#define HAVE_BI_ITERATOR
20820_ACEOF
20821
20822fi
20823
20824echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20825echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20826if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828else
20829
20830
20831
20832 ac_ext=cc
20833ac_cpp='$CXXCPP $CPPFLAGS'
20834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837
20838 cat >conftest.$ac_ext <<_ACEOF
20839#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020840#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020841#include <iterator>
20842#ifdef HAVE_NAMESPACES
20843using namespace std;
20844#endif
John Criswelld9cd1442003-09-09 20:52:17 +000020845#ifdef F77_DUMMY_MAIN
20846# ifdef __cplusplus
20847 extern "C"
20848# endif
20849 int F77_DUMMY_MAIN() { return 1; }
20850#endif
John Criswell7a73b802003-06-30 21:59:07 +000020851int
20852main ()
20853{
John Criswellc78022e2003-07-29 19:11:58 +000020854forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020855 ;
20856 return 0;
20857}
20858_ACEOF
20859rm -f conftest.$ac_objext
20860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861 (eval $ac_compile) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -s conftest.$ac_objext'
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 ac_cv_cxx_have_fwd_iterator=yes
20872else
20873 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020874cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020875ac_cv_cxx_have_fwd_iterator=no
20876fi
20877rm -f conftest.$ac_objext conftest.$ac_ext
20878 ac_ext=c
20879ac_cpp='$CPP $CPPFLAGS'
20880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
20884
20885fi
20886echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20887echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20888if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20889
20890cat >>confdefs.h <<\_ACEOF
20891#define HAVE_FWD_ITERATOR
20892_ACEOF
20893
20894fi
20895
20896
20897# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20898# for constant arguments. Useless!
20899echo "$as_me:$LINENO: checking for working alloca.h" >&5
20900echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20901if test "${ac_cv_working_alloca_h+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903else
20904 cat >conftest.$ac_ext <<_ACEOF
20905#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020906#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020907#include <alloca.h>
John Criswelld9cd1442003-09-09 20:52:17 +000020908#ifdef F77_DUMMY_MAIN
20909# ifdef __cplusplus
20910 extern "C"
20911# endif
20912 int F77_DUMMY_MAIN() { return 1; }
20913#endif
John Criswell7a73b802003-06-30 21:59:07 +000020914int
20915main ()
20916{
20917char *p = (char *) alloca (2 * sizeof (int));
20918 ;
20919 return 0;
20920}
20921_ACEOF
20922rm -f conftest.$ac_objext conftest$ac_exeext
20923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20924 (eval $ac_link) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
20928 { ac_try='test -s conftest$ac_exeext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 ac_cv_working_alloca_h=yes
20935else
20936 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000020937cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000020938ac_cv_working_alloca_h=no
20939fi
20940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20941fi
20942echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20943echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20944if test $ac_cv_working_alloca_h = yes; then
20945
20946cat >>confdefs.h <<\_ACEOF
20947#define HAVE_ALLOCA_H 1
20948_ACEOF
20949
20950fi
20951
20952echo "$as_me:$LINENO: checking for alloca" >&5
20953echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20954if test "${ac_cv_func_alloca_works+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957 cat >conftest.$ac_ext <<_ACEOF
20958#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000020959#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000020960#ifdef __GNUC__
20961# define alloca __builtin_alloca
20962#else
20963# ifdef _MSC_VER
20964# include <malloc.h>
20965# define alloca _alloca
20966# else
20967# if HAVE_ALLOCA_H
20968# include <alloca.h>
20969# else
20970# ifdef _AIX
20971 #pragma alloca
20972# else
20973# ifndef alloca /* predefined by HP cc +Olibcalls */
20974char *alloca ();
20975# endif
20976# endif
20977# endif
20978# endif
20979#endif
20980
John Criswelld9cd1442003-09-09 20:52:17 +000020981#ifdef F77_DUMMY_MAIN
20982# ifdef __cplusplus
20983 extern "C"
20984# endif
20985 int F77_DUMMY_MAIN() { return 1; }
20986#endif
John Criswell7a73b802003-06-30 21:59:07 +000020987int
20988main ()
20989{
20990char *p = (char *) alloca (1);
20991 ;
20992 return 0;
20993}
20994_ACEOF
20995rm -f conftest.$ac_objext conftest$ac_exeext
20996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20997 (eval $ac_link) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } &&
21001 { ac_try='test -s conftest$ac_exeext'
21002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003 (eval $ac_try) 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_cv_func_alloca_works=yes
21008else
21009 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021010cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021011ac_cv_func_alloca_works=no
21012fi
21013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21014fi
21015echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21016echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21017
21018if test $ac_cv_func_alloca_works = yes; then
21019
21020cat >>confdefs.h <<\_ACEOF
21021#define HAVE_ALLOCA 1
21022_ACEOF
21023
21024else
21025 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21026# that cause trouble. Some versions do not even contain alloca or
21027# contain a buggy version. If you still want to use their alloca,
21028# use ar to extract alloca.o from them instead of compiling alloca.c.
21029
21030ALLOCA=alloca.$ac_objext
21031
21032cat >>confdefs.h <<\_ACEOF
21033#define C_ALLOCA 1
21034_ACEOF
21035
21036
21037echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21038echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21039if test "${ac_cv_os_cray+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21041else
21042 cat >conftest.$ac_ext <<_ACEOF
21043#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021044#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021045#if defined(CRAY) && ! defined(CRAY2)
21046webecray
21047#else
21048wenotbecray
21049#endif
21050
21051_ACEOF
21052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +000021053 egrep "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021054 ac_cv_os_cray=yes
21055else
21056 ac_cv_os_cray=no
21057fi
21058rm -f conftest*
21059
21060fi
21061echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21062echo "${ECHO_T}$ac_cv_os_cray" >&6
21063if test $ac_cv_os_cray = yes; then
21064 for ac_func in _getb67 GETB67 getb67; do
21065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21066echo "$as_me:$LINENO: checking for $ac_func" >&5
21067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21068if eval "test \"\${$as_ac_var+set}\" = set"; then
21069 echo $ECHO_N "(cached) $ECHO_C" >&6
21070else
21071 cat >conftest.$ac_ext <<_ACEOF
21072#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021073#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021074/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000021075 which can conflict with char $ac_func (); below. */
21076#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +000021077/* Override any gcc2 internal prototype to avoid an error. */
21078#ifdef __cplusplus
21079extern "C"
21080#endif
21081/* We use char because int might match the return type of a gcc2
21082 builtin and then its argument prototype would still apply. */
21083char $ac_func ();
John Criswelld9cd1442003-09-09 20:52:17 +000021084char (*f) ();
21085
21086#ifdef F77_DUMMY_MAIN
21087# ifdef __cplusplus
21088 extern "C"
21089# endif
21090 int F77_DUMMY_MAIN() { return 1; }
21091#endif
21092int
21093main ()
21094{
John Criswell7a73b802003-06-30 21:59:07 +000021095/* The GNU C library defines this for functions which it implements
21096 to always fail with ENOSYS. Some functions are actually named
21097 something starting with __ and the normal name is an alias. */
21098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21099choke me
21100#else
John Criswelld9cd1442003-09-09 20:52:17 +000021101f = $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021102#endif
21103
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext conftest$ac_exeext
21109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21110 (eval $ac_link) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -s conftest$ac_exeext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21117 ac_status=$?
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 eval "$as_ac_var=yes"
21121else
21122 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021123cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021124eval "$as_ac_var=no"
21125fi
21126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21127fi
21128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21130if test `eval echo '${'$as_ac_var'}'` = yes; then
21131
21132cat >>confdefs.h <<_ACEOF
21133#define CRAY_STACKSEG_END $ac_func
21134_ACEOF
21135
21136 break
21137fi
21138
21139 done
21140fi
21141
21142echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21143echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21144if test "${ac_cv_c_stack_direction+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146else
21147 if test "$cross_compiling" = yes; then
21148 ac_cv_c_stack_direction=0
21149else
21150 cat >conftest.$ac_ext <<_ACEOF
21151#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021152#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021153int
21154find_stack_direction ()
21155{
21156 static char *addr = 0;
21157 auto char dummy;
21158 if (addr == 0)
21159 {
21160 addr = &dummy;
21161 return find_stack_direction ();
21162 }
21163 else
21164 return (&dummy > addr) ? 1 : -1;
21165}
21166
21167int
21168main ()
21169{
21170 exit (find_stack_direction () < 0);
21171}
21172_ACEOF
21173rm -f conftest$ac_exeext
21174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21175 (eval $ac_link) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_cv_c_stack_direction=1
21185else
21186 echo "$as_me: program exited with status $ac_status" >&5
21187echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021188cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021189( exit $ac_status )
21190ac_cv_c_stack_direction=-1
21191fi
John Criswelld9cd1442003-09-09 20:52:17 +000021192rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021193fi
21194fi
21195echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21196echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21197
21198cat >>confdefs.h <<_ACEOF
21199#define STACK_DIRECTION $ac_cv_c_stack_direction
21200_ACEOF
21201
21202
21203fi
21204
21205if test $ac_cv_c_compiler_gnu = yes; then
21206 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21207echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21208if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210else
21211 ac_pattern="Autoconf.*'x'"
21212 cat >conftest.$ac_ext <<_ACEOF
21213#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021214#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021215#include <sgtty.h>
21216Autoconf TIOCGETP
21217_ACEOF
21218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +000021219 egrep "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021220 ac_cv_prog_gcc_traditional=yes
21221else
21222 ac_cv_prog_gcc_traditional=no
21223fi
21224rm -f conftest*
21225
21226
21227 if test $ac_cv_prog_gcc_traditional = no; then
21228 cat >conftest.$ac_ext <<_ACEOF
21229#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021230#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021231#include <termio.h>
21232Autoconf TCGETA
21233_ACEOF
21234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswelld9cd1442003-09-09 20:52:17 +000021235 egrep "$ac_pattern" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021236 ac_cv_prog_gcc_traditional=yes
21237fi
21238rm -f conftest*
21239
21240 fi
21241fi
21242echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21243echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21244 if test $ac_cv_prog_gcc_traditional = yes; then
21245 CC="$CC -traditional"
21246 fi
21247fi
21248
21249echo "$as_me:$LINENO: checking for working memcmp" >&5
21250echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21251if test "${ac_cv_func_memcmp_working+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253else
21254 if test "$cross_compiling" = yes; then
21255 ac_cv_func_memcmp_working=no
21256else
21257 cat >conftest.$ac_ext <<_ACEOF
21258#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021259#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021260
John Criswelld9cd1442003-09-09 20:52:17 +000021261#ifdef F77_DUMMY_MAIN
21262# ifdef __cplusplus
21263 extern "C"
21264# endif
21265 int F77_DUMMY_MAIN() { return 1; }
21266#endif
John Criswell7a73b802003-06-30 21:59:07 +000021267int
21268main ()
21269{
21270
21271 /* Some versions of memcmp are not 8-bit clean. */
21272 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21273 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21274 exit (1);
21275
21276 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21277 or more and with at least one buffer not starting on a 4-byte boundary.
21278 William Lewis provided this test program. */
21279 {
21280 char foo[21];
21281 char bar[21];
21282 int i;
21283 for (i = 0; i < 4; i++)
21284 {
21285 char *a = foo + i;
21286 char *b = bar + i;
21287 strcpy (a, "--------01111111");
21288 strcpy (b, "--------10000000");
21289 if (memcmp (a, b, 16) >= 0)
21290 exit (1);
21291 }
21292 exit (0);
21293 }
21294
21295 ;
21296 return 0;
21297}
21298_ACEOF
21299rm -f conftest$ac_exeext
21300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301 (eval $ac_link) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306 (eval $ac_try) 2>&5
21307 ac_status=$?
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); }; }; then
21310 ac_cv_func_memcmp_working=yes
21311else
21312 echo "$as_me: program exited with status $ac_status" >&5
21313echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021314cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021315( exit $ac_status )
21316ac_cv_func_memcmp_working=no
21317fi
John Criswelld9cd1442003-09-09 20:52:17 +000021318rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021319fi
21320fi
21321echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21322echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21323test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21324
21325
21326
21327for ac_header in stdlib.h unistd.h
21328do
21329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21330if eval "test \"\${$as_ac_Header+set}\" = set"; then
21331 echo "$as_me:$LINENO: checking for $ac_header" >&5
21332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21333if eval "test \"\${$as_ac_Header+set}\" = set"; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335fi
21336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21338else
21339 # Is the header compilable?
21340echo "$as_me:$LINENO: checking $ac_header usability" >&5
21341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21342cat >conftest.$ac_ext <<_ACEOF
21343#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021344#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021345$ac_includes_default
21346#include <$ac_header>
21347_ACEOF
21348rm -f conftest.$ac_objext
21349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>&5
21351 ac_status=$?
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } &&
21354 { ac_try='test -s conftest.$ac_objext'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; }; then
21360 ac_header_compiler=yes
21361else
21362 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021363cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021364ac_header_compiler=no
21365fi
21366rm -f conftest.$ac_objext conftest.$ac_ext
21367echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21368echo "${ECHO_T}$ac_header_compiler" >&6
21369
21370# Is the header present?
21371echo "$as_me:$LINENO: checking $ac_header presence" >&5
21372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21373cat >conftest.$ac_ext <<_ACEOF
21374#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021375#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021376#include <$ac_header>
21377_ACEOF
21378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21380 ac_status=$?
John Criswelld9cd1442003-09-09 20:52:17 +000021381 egrep -v '^ *\+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } >/dev/null; then
21386 if test -s conftest.err; then
21387 ac_cpp_err=$ac_c_preproc_warn_flag
21388 else
21389 ac_cpp_err=
21390 fi
21391else
21392 ac_cpp_err=yes
21393fi
21394if test -z "$ac_cpp_err"; then
21395 ac_header_preproc=yes
21396else
21397 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021398 cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021399 ac_header_preproc=no
21400fi
21401rm -f conftest.err conftest.$ac_ext
21402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21403echo "${ECHO_T}$ac_header_preproc" >&6
21404
21405# So? What about this header?
21406case $ac_header_compiler:$ac_header_preproc in
21407 yes:no )
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000021412 no:yes )
21413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
John Criswell7a73b802003-06-30 21:59:07 +000021419esac
21420echo "$as_me:$LINENO: checking for $ac_header" >&5
21421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21422if eval "test \"\${$as_ac_Header+set}\" = set"; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424else
21425 eval "$as_ac_Header=$ac_header_preproc"
21426fi
21427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21429
21430fi
21431if test `eval echo '${'$as_ac_Header'}'` = yes; then
21432 cat >>confdefs.h <<_ACEOF
21433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21434_ACEOF
21435
21436fi
21437
21438done
21439
21440
21441for ac_func in getpagesize
21442do
21443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21444echo "$as_me:$LINENO: checking for $ac_func" >&5
21445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21446if eval "test \"\${$as_ac_var+set}\" = set"; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21448else
21449 cat >conftest.$ac_ext <<_ACEOF
21450#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021451#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021452/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000021453 which can conflict with char $ac_func (); below. */
21454#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +000021455/* Override any gcc2 internal prototype to avoid an error. */
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459/* We use char because int might match the return type of a gcc2
21460 builtin and then its argument prototype would still apply. */
21461char $ac_func ();
John Criswelld9cd1442003-09-09 20:52:17 +000021462char (*f) ();
21463
21464#ifdef F77_DUMMY_MAIN
21465# ifdef __cplusplus
21466 extern "C"
21467# endif
21468 int F77_DUMMY_MAIN() { return 1; }
21469#endif
21470int
21471main ()
21472{
John Criswell7a73b802003-06-30 21:59:07 +000021473/* The GNU C library defines this for functions which it implements
21474 to always fail with ENOSYS. Some functions are actually named
21475 something starting with __ and the normal name is an alias. */
21476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21477choke me
21478#else
John Criswelld9cd1442003-09-09 20:52:17 +000021479f = $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021480#endif
21481
21482 ;
21483 return 0;
21484}
21485_ACEOF
21486rm -f conftest.$ac_objext conftest$ac_exeext
21487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488 (eval $ac_link) 2>&5
21489 ac_status=$?
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
21492 { ac_try='test -s conftest$ac_exeext'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21498 eval "$as_ac_var=yes"
21499else
21500 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021501cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021502eval "$as_ac_var=no"
21503fi
21504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21505fi
21506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21508if test `eval echo '${'$as_ac_var'}'` = yes; then
21509 cat >>confdefs.h <<_ACEOF
21510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21511_ACEOF
21512
21513fi
21514done
21515
21516echo "$as_me:$LINENO: checking for working mmap" >&5
21517echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21518if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21520else
21521 if test "$cross_compiling" = yes; then
21522 ac_cv_func_mmap_fixed_mapped=no
21523else
21524 cat >conftest.$ac_ext <<_ACEOF
21525#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021526#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021527$ac_includes_default
21528/* malloc might have been renamed as rpl_malloc. */
21529#undef malloc
21530
21531/* Thanks to Mike Haertel and Jim Avera for this test.
21532 Here is a matrix of mmap possibilities:
21533 mmap private not fixed
21534 mmap private fixed at somewhere currently unmapped
21535 mmap private fixed at somewhere already mapped
21536 mmap shared not fixed
21537 mmap shared fixed at somewhere currently unmapped
21538 mmap shared fixed at somewhere already mapped
21539 For private mappings, we should verify that changes cannot be read()
21540 back from the file, nor mmap's back from the file at a different
21541 address. (There have been systems where private was not correctly
21542 implemented like the infamous i386 svr4.0, and systems where the
21543 VM page cache was not coherent with the file system buffer cache
21544 like early versions of FreeBSD and possibly contemporary NetBSD.)
21545 For shared mappings, we should conversely verify that changes get
21546 propagated back to all the places they're supposed to be.
21547
21548 Grep wants private fixed already mapped.
21549 The main things grep needs to know about mmap are:
21550 * does it exist and is it safe to write into the mmap'd area
21551 * how to use it (BSD variants) */
21552
21553#include <fcntl.h>
21554#include <sys/mman.h>
21555
21556#if !STDC_HEADERS && !HAVE_STDLIB_H
21557char *malloc ();
21558#endif
21559
21560/* This mess was copied from the GNU getpagesize.h. */
21561#if !HAVE_GETPAGESIZE
21562/* Assume that all systems that can run configure have sys/param.h. */
21563# if !HAVE_SYS_PARAM_H
21564# define HAVE_SYS_PARAM_H 1
21565# endif
21566
21567# ifdef _SC_PAGESIZE
21568# define getpagesize() sysconf(_SC_PAGESIZE)
21569# else /* no _SC_PAGESIZE */
21570# if HAVE_SYS_PARAM_H
21571# include <sys/param.h>
21572# ifdef EXEC_PAGESIZE
21573# define getpagesize() EXEC_PAGESIZE
21574# else /* no EXEC_PAGESIZE */
21575# ifdef NBPG
21576# define getpagesize() NBPG * CLSIZE
21577# ifndef CLSIZE
21578# define CLSIZE 1
21579# endif /* no CLSIZE */
21580# else /* no NBPG */
21581# ifdef NBPC
21582# define getpagesize() NBPC
21583# else /* no NBPC */
21584# ifdef PAGESIZE
21585# define getpagesize() PAGESIZE
21586# endif /* PAGESIZE */
21587# endif /* no NBPC */
21588# endif /* no NBPG */
21589# endif /* no EXEC_PAGESIZE */
21590# else /* no HAVE_SYS_PARAM_H */
21591# define getpagesize() 8192 /* punt totally */
21592# endif /* no HAVE_SYS_PARAM_H */
21593# endif /* no _SC_PAGESIZE */
21594
21595#endif /* no HAVE_GETPAGESIZE */
21596
21597int
21598main ()
21599{
21600 char *data, *data2, *data3;
21601 int i, pagesize;
21602 int fd;
21603
21604 pagesize = getpagesize ();
21605
21606 /* First, make a file with some known garbage in it. */
21607 data = (char *) malloc (pagesize);
21608 if (!data)
21609 exit (1);
21610 for (i = 0; i < pagesize; ++i)
21611 *(data + i) = rand ();
21612 umask (0);
21613 fd = creat ("conftest.mmap", 0600);
21614 if (fd < 0)
21615 exit (1);
21616 if (write (fd, data, pagesize) != pagesize)
21617 exit (1);
21618 close (fd);
21619
21620 /* Next, try to mmap the file at a fixed address which already has
21621 something else allocated at it. If we can, also make sure that
21622 we see the same garbage. */
21623 fd = open ("conftest.mmap", O_RDWR);
21624 if (fd < 0)
21625 exit (1);
21626 data2 = (char *) malloc (2 * pagesize);
21627 if (!data2)
21628 exit (1);
21629 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21630 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21631 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21632 exit (1);
21633 for (i = 0; i < pagesize; ++i)
21634 if (*(data + i) != *(data2 + i))
21635 exit (1);
21636
21637 /* Finally, make sure that changes to the mapped area do not
21638 percolate back to the file as seen by read(). (This is a bug on
21639 some variants of i386 svr4.0.) */
21640 for (i = 0; i < pagesize; ++i)
21641 *(data2 + i) = *(data2 + i) + 1;
21642 data3 = (char *) malloc (pagesize);
21643 if (!data3)
21644 exit (1);
21645 if (read (fd, data3, pagesize) != pagesize)
21646 exit (1);
21647 for (i = 0; i < pagesize; ++i)
21648 if (*(data + i) != *(data3 + i))
21649 exit (1);
21650 close (fd);
21651 exit (0);
21652}
21653_ACEOF
21654rm -f conftest$ac_exeext
21655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656 (eval $ac_link) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_cv_func_mmap_fixed_mapped=yes
21666else
21667 echo "$as_me: program exited with status $ac_status" >&5
21668echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021669cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021670( exit $ac_status )
21671ac_cv_func_mmap_fixed_mapped=no
21672fi
John Criswelld9cd1442003-09-09 20:52:17 +000021673rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021674fi
21675fi
21676echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21677echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21678if test $ac_cv_func_mmap_fixed_mapped = yes; then
21679
21680cat >>confdefs.h <<\_ACEOF
21681#define HAVE_MMAP 1
21682_ACEOF
21683
21684fi
21685rm -f conftest.mmap
21686
21687echo "$as_me:$LINENO: checking for mmap of files" >&5
21688echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21689if test "${ac_cv_func_mmap_file+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691else
21692
21693
21694 ac_ext=c
21695ac_cpp='$CPP $CPPFLAGS'
21696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698ac_compiler_gnu=$ac_cv_c_compiler_gnu
21699
21700 if test "$cross_compiling" = yes; then
John Criswelld9cd1442003-09-09 20:52:17 +000021701 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21702echo "$as_me: error: cannot run test program while cross compiling" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021703 { (exit 1); exit 1; }; }
21704else
21705 cat >conftest.$ac_ext <<_ACEOF
21706#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021707#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021708
21709#ifdef HAVE_SYS_MMAN_H
21710#include <sys/mman.h>
21711#endif
21712
21713#ifdef HAVE_SYS_TYPES_H
21714#include <sys/types.h>
21715#endif
21716
21717#ifdef HAVE_FCNTL_H
21718#include <fcntl.h>
21719#endif
21720
21721 int fd;
21722 int main () {
21723 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21724_ACEOF
21725rm -f conftest$ac_exeext
21726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21727 (eval $ac_link) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_func_mmap_file=yes
21737else
21738 echo "$as_me: program exited with status $ac_status" >&5
21739echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021740cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021741( exit $ac_status )
21742ac_cv_func_mmap_file=no
21743fi
John Criswelld9cd1442003-09-09 20:52:17 +000021744rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021745fi
21746 ac_ext=c
21747ac_cpp='$CPP $CPPFLAGS'
21748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21750ac_compiler_gnu=$ac_cv_c_compiler_gnu
21751
21752
21753fi
21754echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21755echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21756if test "$ac_cv_func_mmap_file" = yes; then
21757 cat >>confdefs.h <<\_ACEOF
21758#define HAVE_MMAP_FILE 1
21759_ACEOF
21760
21761 MMAP_FILE=yes
21762
21763fi
21764
21765if test ${ac_cv_func_mmap_file} = "no"
21766then
21767 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21768echo "$as_me: error: mmap() of files required but not found" >&2;}
21769 { (exit 1); exit 1; }; }
21770fi
21771echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21772echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21773if test "${ac_cv_header_mmap_anon+set}" = set; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21775else
21776
21777
21778 ac_ext=c
21779ac_cpp='$CPP $CPPFLAGS'
21780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782ac_compiler_gnu=$ac_cv_c_compiler_gnu
21783
21784 cat >conftest.$ac_ext <<_ACEOF
21785#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021786#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021787#include <sys/mman.h>
21788 #include <unistd.h>
21789 #include <fcntl.h>
John Criswelld9cd1442003-09-09 20:52:17 +000021790#ifdef F77_DUMMY_MAIN
21791# ifdef __cplusplus
21792 extern "C"
21793# endif
21794 int F77_DUMMY_MAIN() { return 1; }
21795#endif
John Criswell7a73b802003-06-30 21:59:07 +000021796int
21797main ()
21798{
21799mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21800 ;
21801 return 0;
21802}
21803_ACEOF
21804rm -f conftest.$ac_objext
21805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806 (eval $ac_compile) 2>&5
21807 ac_status=$?
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } &&
21810 { ac_try='test -s conftest.$ac_objext'
21811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812 (eval $ac_try) 2>&5
21813 ac_status=$?
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); }; }; then
21816 ac_cv_header_mmap_anon=yes
21817else
21818 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021819cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021820ac_cv_header_mmap_anon=no
21821fi
21822rm -f conftest.$ac_objext conftest.$ac_ext
21823 ac_ext=c
21824ac_cpp='$CPP $CPPFLAGS'
21825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827ac_compiler_gnu=$ac_cv_c_compiler_gnu
21828
21829
21830fi
21831echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21832echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21833if test "$ac_cv_header_mmap_anon" = yes; then
21834 cat >>confdefs.h <<\_ACEOF
21835#define HAVE_MMAP_ANONYMOUS 1
21836_ACEOF
21837
21838fi
21839
21840echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21841echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21842if test "${ac_cv_type_signal+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844else
21845 cat >conftest.$ac_ext <<_ACEOF
21846#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021847#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021848#include <sys/types.h>
21849#include <signal.h>
21850#ifdef signal
21851# undef signal
21852#endif
21853#ifdef __cplusplus
21854extern "C" void (*signal (int, void (*)(int)))(int);
21855#else
21856void (*signal ()) ();
21857#endif
21858
John Criswelld9cd1442003-09-09 20:52:17 +000021859#ifdef F77_DUMMY_MAIN
21860# ifdef __cplusplus
21861 extern "C"
21862# endif
21863 int F77_DUMMY_MAIN() { return 1; }
21864#endif
John Criswell7a73b802003-06-30 21:59:07 +000021865int
21866main ()
21867{
21868int i;
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875 (eval $ac_compile) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_type_signal=void
21886else
21887 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021888cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021889ac_cv_type_signal=int
21890fi
21891rm -f conftest.$ac_objext conftest.$ac_ext
21892fi
21893echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21894echo "${ECHO_T}$ac_cv_type_signal" >&6
21895
21896cat >>confdefs.h <<_ACEOF
21897#define RETSIGTYPE $ac_cv_type_signal
21898_ACEOF
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21911do
21912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913echo "$as_me:$LINENO: checking for $ac_func" >&5
21914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21915if eval "test \"\${$as_ac_var+set}\" = set"; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917else
21918 cat >conftest.$ac_ext <<_ACEOF
21919#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021920#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021921/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000021922 which can conflict with char $ac_func (); below. */
21923#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +000021924/* Override any gcc2 internal prototype to avoid an error. */
21925#ifdef __cplusplus
21926extern "C"
21927#endif
21928/* We use char because int might match the return type of a gcc2
21929 builtin and then its argument prototype would still apply. */
21930char $ac_func ();
John Criswelld9cd1442003-09-09 20:52:17 +000021931char (*f) ();
21932
21933#ifdef F77_DUMMY_MAIN
21934# ifdef __cplusplus
21935 extern "C"
21936# endif
21937 int F77_DUMMY_MAIN() { return 1; }
21938#endif
21939int
21940main ()
21941{
John Criswell7a73b802003-06-30 21:59:07 +000021942/* The GNU C library defines this for functions which it implements
21943 to always fail with ENOSYS. Some functions are actually named
21944 something starting with __ and the normal name is an alias. */
21945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21946choke me
21947#else
John Criswelld9cd1442003-09-09 20:52:17 +000021948f = $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021949#endif
21950
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext conftest$ac_exeext
21956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -s conftest$ac_exeext'
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; }; then
21967 eval "$as_ac_var=yes"
21968else
21969 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000021970cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000021971eval "$as_ac_var=no"
21972fi
21973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21974fi
21975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21977if test `eval echo '${'$as_ac_var'}'` = yes; then
21978 cat >>confdefs.h <<_ACEOF
21979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21980_ACEOF
21981
21982fi
21983done
21984
21985
21986
21987echo "$as_me:$LINENO: checking for mmap" >&5
21988echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21989if test "${ac_cv_func_mmap+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991else
21992 cat >conftest.$ac_ext <<_ACEOF
21993#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000021994#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000021995/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000021996 which can conflict with char mmap (); below. */
21997#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +000021998/* Override any gcc2 internal prototype to avoid an error. */
21999#ifdef __cplusplus
22000extern "C"
22001#endif
22002/* We use char because int might match the return type of a gcc2
22003 builtin and then its argument prototype would still apply. */
22004char mmap ();
John Criswelld9cd1442003-09-09 20:52:17 +000022005char (*f) ();
22006
22007#ifdef F77_DUMMY_MAIN
22008# ifdef __cplusplus
22009 extern "C"
22010# endif
22011 int F77_DUMMY_MAIN() { return 1; }
22012#endif
22013int
22014main ()
22015{
John Criswell7a73b802003-06-30 21:59:07 +000022016/* The GNU C library defines this for functions which it implements
22017 to always fail with ENOSYS. Some functions are actually named
22018 something starting with __ and the normal name is an alias. */
22019#if defined (__stub_mmap) || defined (__stub___mmap)
22020choke me
22021#else
John Criswelld9cd1442003-09-09 20:52:17 +000022022f = mmap;
John Criswell7a73b802003-06-30 21:59:07 +000022023#endif
22024
22025 ;
22026 return 0;
22027}
22028_ACEOF
22029rm -f conftest.$ac_objext conftest$ac_exeext
22030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031 (eval $ac_link) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -s conftest$ac_exeext'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }; then
22041 ac_cv_func_mmap=yes
22042else
22043 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000022044cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000022045ac_cv_func_mmap=no
22046fi
22047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22048fi
22049echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22050echo "${ECHO_T}$ac_cv_func_mmap" >&6
22051if test $ac_cv_func_mmap = yes; then
22052 :
22053else
22054 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22055echo "$as_me: error: Function mmap() required but not found" >&2;}
22056 { (exit 1); exit 1; }; }
22057fi
22058
22059echo "$as_me:$LINENO: checking for mprotect" >&5
22060echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22061if test "${ac_cv_func_mprotect+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063else
22064 cat >conftest.$ac_ext <<_ACEOF
22065#line $LINENO "configure"
John Criswelld9cd1442003-09-09 20:52:17 +000022066#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +000022067/* System header to define __stub macros and hopefully few prototypes,
John Criswelld9cd1442003-09-09 20:52:17 +000022068 which can conflict with char mprotect (); below. */
22069#include <assert.h>
John Criswell7a73b802003-06-30 21:59:07 +000022070/* Override any gcc2 internal prototype to avoid an error. */
22071#ifdef __cplusplus
22072extern "C"
22073#endif
22074/* We use char because int might match the return type of a gcc2
22075 builtin and then its argument prototype would still apply. */
22076char mprotect ();
John Criswelld9cd1442003-09-09 20:52:17 +000022077char (*f) ();
22078
22079#ifdef F77_DUMMY_MAIN
22080# ifdef __cplusplus
22081 extern "C"
22082# endif
22083 int F77_DUMMY_MAIN() { return 1; }
22084#endif
22085int
22086main ()
22087{
John Criswell7a73b802003-06-30 21:59:07 +000022088/* The GNU C library defines this for functions which it implements
22089 to always fail with ENOSYS. Some functions are actually named
22090 something starting with __ and the normal name is an alias. */
22091#if defined (__stub_mprotect) || defined (__stub___mprotect)
22092choke me
22093#else
John Criswelld9cd1442003-09-09 20:52:17 +000022094f = mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022095#endif
22096
22097 ;
22098 return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext conftest$ac_exeext
22102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103 (eval $ac_link) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } &&
22107 { ac_try='test -s conftest$ac_exeext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 ac_cv_func_mprotect=yes
22114else
22115 echo "$as_me: failed program was:" >&5
John Criswelld9cd1442003-09-09 20:52:17 +000022116cat conftest.$ac_ext >&5
John Criswell7a73b802003-06-30 21:59:07 +000022117ac_cv_func_mprotect=no
22118fi
22119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22120fi
22121echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22122echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22123if test $ac_cv_func_mprotect = yes; then
22124 :
22125else
22126 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22127echo "$as_me: error: Function mprotect() required but not found" >&2;}
22128 { (exit 1); exit 1; }; }
22129fi
22130
22131
John Criswellb13092b2003-07-22 21:00:24 +000022132
John Criswell7a73b802003-06-30 21:59:07 +000022133# Check whether --enable-purify or --disable-purify was given.
22134if test "${enable_purify+set}" = set; then
22135 enableval="$enable_purify"
John Criswell7a73b802003-06-30 21:59:07 +000022136
22137else
John Criswellb13092b2003-07-22 21:00:24 +000022138 enableval="no"
John Criswell7a73b802003-06-30 21:59:07 +000022139fi;
John Criswellb13092b2003-07-22 21:00:24 +000022140if test ${enableval} = "no"
22141then
22142 ENABLE_PURIFY=
22143
22144else
22145 ENABLE_PURIFY=ENABLE_PURIFY=1
22146
22147fi
22148
John Criswell7a73b802003-06-30 21:59:07 +000022149# Check whether --enable-optimized or --disable-optimized was given.
22150if test "${enable_optimized+set}" = set; then
22151 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022152
22153else
John Criswellb13092b2003-07-22 21:00:24 +000022154 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022155fi;
John Criswellb13092b2003-07-22 21:00:24 +000022156if test ${enableval} = "no"
22157then
22158 ENABLE_OPTIMIZED=
22159
22160else
22161 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22162
22163fi
22164
John Criswell7a73b802003-06-30 21:59:07 +000022165# Check whether --enable-spec or --disable-spec was given.
22166if test "${enable_spec+set}" = set; then
22167 enableval="$enable_spec"
John Criswell7a73b802003-06-30 21:59:07 +000022168
22169else
John Criswellb13092b2003-07-22 21:00:24 +000022170 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022171fi;
John Criswellb13092b2003-07-22 21:00:24 +000022172if test ${enableval} = "no"
22173then
22174 USE_SPEC=
22175
22176else
22177 USE_SPEC=USE_SPEC=1
22178
22179fi
22180
John Criswell7a73b802003-06-30 21:59:07 +000022181# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22182if test "${enable_precompiled_bytecode+set}" = set; then
22183 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000022184
22185else
John Criswellb13092b2003-07-22 21:00:24 +000022186 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022187fi;
John Criswellb13092b2003-07-22 21:00:24 +000022188if test ${enableval} = "no"
22189then
22190 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000022191
John Criswellb13092b2003-07-22 21:00:24 +000022192else
22193 UPB=USE_PRECOMPILED_BYTECODE=1
22194
22195fi
John Criswellf02dbf02003-07-22 20:07:49 +000022196
22197
22198# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22199if test "${enable_llc_diffs+set}" = set; then
22200 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000022201
22202else
John Criswellb13092b2003-07-22 21:00:24 +000022203 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000022204fi;
John Criswellb13092b2003-07-22 21:00:24 +000022205if test ${enableval} = "no"
22206then
22207 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000022208
John Criswellb13092b2003-07-22 21:00:24 +000022209else
22210 DISABLE_LLC_DIFFS=
22211
22212fi
22213
22214# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022215if test "${enable_jit+set}" = set; then
22216 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022217
22218else
John Criswellc78022e2003-07-29 19:11:58 +000022219 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022220fi;
John Criswellb13092b2003-07-22 21:00:24 +000022221
22222if test ${enableval} = "no"
22223then
22224 JIT=
22225
22226else
John Criswellc78022e2003-07-29 19:11:58 +000022227 case $target in
22228 *i*86*)
22229 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022230
John Criswellc78022e2003-07-29 19:11:58 +000022231 ;;
22232 *sparc*)
22233 JIT=TARGET_HAS_JIT=1
22234
22235 ;;
22236 *)
22237 JIT=
22238
22239 ;;
22240 esac
John Criswellb13092b2003-07-22 21:00:24 +000022241fi
John Criswell7a73b802003-06-30 21:59:07 +000022242
22243
John Criswellc78022e2003-07-29 19:11:58 +000022244
John Criswell7a73b802003-06-30 21:59:07 +000022245# Check whether --with-spec or --without-spec was given.
22246if test "${with_spec+set}" = set; then
22247 withval="$with_spec"
22248 SPEC_ROOT=$withval
22249
22250else
22251 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22252
22253fi;
22254
John Criswellc78022e2003-07-29 19:11:58 +000022255
John Criswell7a73b802003-06-30 21:59:07 +000022256# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22257if test "${with_llvmgccdir+set}" = set; then
22258 withval="$with_llvmgccdir"
22259 LLVMGCCDIR=$withval
22260
22261fi;
22262
John Criswellc78022e2003-07-29 19:11:58 +000022263
John Criswell7a73b802003-06-30 21:59:07 +000022264# Check whether --with-bcrepos or --without-bcrepos was given.
22265if test "${with_bcrepos+set}" = set; then
22266 withval="$with_bcrepos"
22267 BCR=$withval
22268
22269else
22270 BCR=/home/vadve/lattner/LLVMPrograms
22271
22272fi;
22273
John Criswellc78022e2003-07-29 19:11:58 +000022274
John Criswell7a73b802003-06-30 21:59:07 +000022275# Check whether --with-papi or --without-papi was given.
22276if test "${with_papi+set}" = set; then
22277 withval="$with_papi"
22278 PAPIDIR=$withval
22279
22280else
John Criswellde00db22003-08-25 16:49:54 +000022281 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000022282
22283fi;
22284
John Criswell7a73b802003-06-30 21:59:07 +000022285
22286# Check whether --with-purify or --without-purify was given.
22287if test "${with_purify+set}" = set; then
22288 withval="$with_purify"
22289 PURIFY=$withval
22290
22291fi;
22292
John Criswellde00db22003-08-25 16:49:54 +000022293
John Criswelld9cd1442003-09-09 20:52:17 +000022294ac_config_files="$ac_config_files Makefile.config"
John Criswell7a73b802003-06-30 21:59:07 +000022295cat >confcache <<\_ACEOF
22296# This file is a shell script that caches the results of configure
22297# tests run on this system so they can be shared between configure
22298# scripts and configure runs, see configure's option --config-cache.
22299# It is not useful on other systems. If it contains results you don't
22300# want to keep, you may remove or edit it.
22301#
22302# config.status only pays attention to the cache file if you give it
22303# the --recheck option to rerun configure.
22304#
John Criswelld9cd1442003-09-09 20:52:17 +000022305# `ac_cv_env_foo' variables (set or unset) will be overriden when
John Criswell7a73b802003-06-30 21:59:07 +000022306# loading this file, other *unset* `ac_cv_foo' will be assigned the
22307# following values.
22308
22309_ACEOF
22310
22311# The following way of writing the cache mishandles newlines in values,
22312# but we know of no workaround that is simple, portable, and efficient.
22313# So, don't put newlines in cache variables' values.
22314# Ultrix sh set writes to stderr and can't be redirected directly,
22315# and sets the high bit in the cache file unless we assign to the vars.
22316{
22317 (set) 2>&1 |
22318 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22319 *ac_space=\ *)
22320 # `set' does not quote correctly, so add quotes (double-quote
22321 # substitution turns \\\\ into \\, and sed turns \\ into \).
22322 sed -n \
22323 "s/'/'\\\\''/g;
22324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22325 ;;
22326 *)
22327 # `set' quotes correctly as required by POSIX, so do not add quotes.
22328 sed -n \
22329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22330 ;;
22331 esac;
22332} |
22333 sed '
22334 t clear
22335 : clear
22336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22337 t end
22338 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22339 : end' >>confcache
John Criswelld9cd1442003-09-09 20:52:17 +000022340if cmp -s $cache_file confcache; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022341 if test -w $cache_file; then
22342 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22343 cat confcache >$cache_file
22344 else
22345 echo "not updating unwritable cache $cache_file"
22346 fi
22347fi
22348rm -f confcache
22349
22350test "x$prefix" = xNONE && prefix=$ac_default_prefix
22351# Let make expand exec_prefix.
22352test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22353
22354# VPATH may cause trouble with some makes, so we remove $(srcdir),
22355# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22356# trailing colons and then remove the whole line if VPATH becomes empty
22357# (actually we leave an empty line to preserve line numbers).
22358if test "x$srcdir" = x.; then
22359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22360s/:*\$(srcdir):*/:/;
22361s/:*\${srcdir}:*/:/;
22362s/:*@srcdir@:*/:/;
22363s/^\([^=]*=[ ]*\):*/\1/;
22364s/:*$//;
22365s/^[^=]*=[ ]*$//;
22366}'
22367fi
22368
22369DEFS=-DHAVE_CONFIG_H
22370
22371
22372: ${CONFIG_STATUS=./config.status}
22373ac_clean_files_save=$ac_clean_files
22374ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22375{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22376echo "$as_me: creating $CONFIG_STATUS" >&6;}
22377cat >$CONFIG_STATUS <<_ACEOF
22378#! $SHELL
22379# Generated by $as_me.
22380# Run this file to recreate the current configuration.
22381# Compiler output produced by configure, useful for debugging
22382# configure, is in config.log if it exists.
22383
22384debug=false
22385SHELL=\${CONFIG_SHELL-$SHELL}
22386_ACEOF
22387
22388cat >>$CONFIG_STATUS <<\_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022389
John Criswell7a73b802003-06-30 21:59:07 +000022390## --------------------- ##
22391## M4sh Initialization. ##
22392## --------------------- ##
22393
22394# Be Bourne compatible
22395if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22396 emulate sh
22397 NULLCMD=:
22398elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22399 set -o posix
22400fi
22401
John Criswelld9cd1442003-09-09 20:52:17 +000022402# NLS nuisances.
John Criswell7a73b802003-06-30 21:59:07 +000022403# Support unset when possible.
22404if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22405 as_unset=unset
22406else
22407 as_unset=false
22408fi
22409
John Criswelld9cd1442003-09-09 20:52:17 +000022410(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
22411 { $as_unset LANG || test "${LANG+set}" != set; } ||
22412 { LANG=C; export LANG; }
22413(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
22414 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
22415 { LC_ALL=C; export LC_ALL; }
22416(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
22417 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
22418 { LC_TIME=C; export LC_TIME; }
22419(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
22420 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
22421 { LC_CTYPE=C; export LC_CTYPE; }
22422(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
22423 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
22424 { LANGUAGE=C; export LANGUAGE; }
22425(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
22426 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
22427 { LC_COLLATE=C; export LC_COLLATE; }
22428(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
22429 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
22430 { LC_NUMERIC=C; export LC_NUMERIC; }
22431(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
22432 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
22433 { LC_MESSAGES=C; export LC_MESSAGES; }
John Criswell7a73b802003-06-30 21:59:07 +000022434
22435
22436# Name of the executable.
John Criswelld9cd1442003-09-09 20:52:17 +000022437as_me=`(basename "$0") 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000022438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22439 X"$0" : 'X\(//\)$' \| \
22440 X"$0" : 'X\(/\)$' \| \
22441 . : '\(.\)' 2>/dev/null ||
22442echo X/"$0" |
22443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22444 /^X\/\(\/\/\)$/{ s//\1/; q; }
22445 /^X\/\(\/\).*/{ s//\1/; q; }
22446 s/.*/./; q'`
22447
22448# PATH needs CR, and LINENO needs CR and PATH.
22449# Avoid depending upon Character Ranges.
22450as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22452as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22453as_cr_digits='0123456789'
22454as_cr_alnum=$as_cr_Letters$as_cr_digits
22455
22456# The user is always right.
22457if test "${PATH_SEPARATOR+set}" != set; then
John Criswelld9cd1442003-09-09 20:52:17 +000022458 echo "#! /bin/sh" >conftest.sh
22459 echo "exit 0" >>conftest.sh
22460 chmod +x conftest.sh
22461 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022462 PATH_SEPARATOR=';'
22463 else
22464 PATH_SEPARATOR=:
22465 fi
John Criswelld9cd1442003-09-09 20:52:17 +000022466 rm -f conftest.sh
John Criswell7a73b802003-06-30 21:59:07 +000022467fi
22468
22469
22470 as_lineno_1=$LINENO
22471 as_lineno_2=$LINENO
22472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22473 test "x$as_lineno_1" != "x$as_lineno_2" &&
22474 test "x$as_lineno_3" = "x$as_lineno_2" || {
22475 # Find who we are. Look in the path if we contain no path at all
22476 # relative or not.
22477 case $0 in
22478 *[\\/]* ) as_myself=$0 ;;
22479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22480for as_dir in $PATH
22481do
22482 IFS=$as_save_IFS
22483 test -z "$as_dir" && as_dir=.
22484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22485done
22486
22487 ;;
22488 esac
22489 # We did not find ourselves, most probably we were run as `sh COMMAND'
22490 # in which case we are not to be found in the path.
22491 if test "x$as_myself" = x; then
22492 as_myself=$0
22493 fi
22494 if test ! -f "$as_myself"; then
22495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22496echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22497 { (exit 1); exit 1; }; }
22498 fi
22499 case $CONFIG_SHELL in
22500 '')
22501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22502for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22503do
22504 IFS=$as_save_IFS
22505 test -z "$as_dir" && as_dir=.
22506 for as_base in sh bash ksh sh5; do
22507 case $as_dir in
22508 /*)
22509 if ("$as_dir/$as_base" -c '
22510 as_lineno_1=$LINENO
22511 as_lineno_2=$LINENO
22512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22513 test "x$as_lineno_1" != "x$as_lineno_2" &&
22514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22515 CONFIG_SHELL=$as_dir/$as_base
22516 export CONFIG_SHELL
22517 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22518 fi;;
22519 esac
22520 done
22521done
22522;;
22523 esac
22524
22525 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22526 # uniformly replaced by the line number. The first 'sed' inserts a
22527 # line-number line before each line; the second 'sed' does the real
22528 # work. The second script uses 'N' to pair each line-number line
22529 # with the numbered line, and appends trailing '-' during
22530 # substitution so that $LINENO is not a special case at line end.
22531 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22532 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22533 sed '=' <$as_myself |
22534 sed '
22535 N
22536 s,$,-,
22537 : loop
22538 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22539 t loop
22540 s,-$,,
22541 s,^['$as_cr_digits']*\n,,
22542 ' >$as_me.lineno &&
22543 chmod +x $as_me.lineno ||
22544 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22545echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22546 { (exit 1); exit 1; }; }
22547
22548 # Don't try to exec as it changes $[0], causing all sort of problems
22549 # (the dirname of $[0] is not the place where we might find the
22550 # original and so on. Autoconf is especially sensible to this).
22551 . ./$as_me.lineno
22552 # Exit status is that of the last command.
22553 exit
22554}
22555
22556
22557case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22558 *c*,-n*) ECHO_N= ECHO_C='
22559' ECHO_T=' ' ;;
22560 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22561 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22562esac
22563
22564if expr a : '\(a\)' >/dev/null 2>&1; then
22565 as_expr=expr
22566else
22567 as_expr=false
22568fi
22569
22570rm -f conf$$ conf$$.exe conf$$.file
22571echo >conf$$.file
22572if ln -s conf$$.file conf$$ 2>/dev/null; then
22573 # We could just check for DJGPP; but this test a) works b) is more generic
22574 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22575 if test -f conf$$.exe; then
22576 # Don't use ln at all; we don't have any links
22577 as_ln_s='cp -p'
22578 else
22579 as_ln_s='ln -s'
22580 fi
22581elif ln conf$$.file conf$$ 2>/dev/null; then
22582 as_ln_s=ln
22583else
22584 as_ln_s='cp -p'
22585fi
22586rm -f conf$$ conf$$.exe conf$$.file
22587
22588as_executable_p="test -f"
22589
22590# Sed expression to map a string onto a valid CPP name.
22591as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22592
22593# Sed expression to map a string onto a valid variable name.
22594as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22595
22596
22597# IFS
22598# We need space, tab and new line, in precisely that order.
22599as_nl='
22600'
22601IFS=" $as_nl"
22602
22603# CDPATH.
John Criswelld9cd1442003-09-09 20:52:17 +000022604$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
John Criswell7a73b802003-06-30 21:59:07 +000022605
22606exec 6>&1
22607
22608# Open the log real soon, to keep \$[0] and so on meaningful, and to
22609# report actual input values of CONFIG_FILES etc. instead of their
22610# values after options handling. Logging --version etc. is OK.
22611exec 5>>config.log
22612{
22613 echo
22614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22615## Running $as_me. ##
22616_ASBOX
22617} >&5
22618cat >&5 <<_CSEOF
22619
22620This file was extended by [LLVM] $as_me [1.0], which was
John Criswelld9cd1442003-09-09 20:52:17 +000022621generated by GNU Autoconf 2.53. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000022622
22623 CONFIG_FILES = $CONFIG_FILES
22624 CONFIG_HEADERS = $CONFIG_HEADERS
22625 CONFIG_LINKS = $CONFIG_LINKS
22626 CONFIG_COMMANDS = $CONFIG_COMMANDS
22627 $ $0 $@
22628
22629_CSEOF
22630echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22631echo >&5
22632_ACEOF
22633
22634# Files that config.status was made for.
22635if test -n "$ac_config_files"; then
22636 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22637fi
22638
22639if test -n "$ac_config_headers"; then
22640 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22641fi
22642
22643if test -n "$ac_config_links"; then
22644 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22645fi
22646
22647if test -n "$ac_config_commands"; then
22648 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22649fi
22650
22651cat >>$CONFIG_STATUS <<\_ACEOF
22652
22653ac_cs_usage="\
22654\`$as_me' instantiates files from templates according to the
22655current configuration.
22656
22657Usage: $0 [OPTIONS] [FILE]...
22658
22659 -h, --help print this help, then exit
22660 -V, --version print version number, then exit
22661 -d, --debug don't remove temporary files
22662 --recheck update $as_me by reconfiguring in the same conditions
22663 --file=FILE[:TEMPLATE]
22664 instantiate the configuration file FILE
22665 --header=FILE[:TEMPLATE]
22666 instantiate the configuration header FILE
22667
22668Configuration files:
22669$config_files
22670
22671Configuration headers:
22672$config_headers
22673
John Criswellc764fbc2003-09-06 15:17:13 +000022674Configuration commands:
22675$config_commands
22676
John Criswell7a73b802003-06-30 21:59:07 +000022677Report bugs to <bug-autoconf@gnu.org>."
22678_ACEOF
22679
22680cat >>$CONFIG_STATUS <<_ACEOF
22681ac_cs_version="\\
22682[LLVM] config.status [1.0]
John Criswelld9cd1442003-09-09 20:52:17 +000022683configured by $0, generated by GNU Autoconf 2.53,
John Criswell7a73b802003-06-30 21:59:07 +000022684 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22685
22686Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22687Free Software Foundation, Inc.
22688This config.status script is free software; the Free Software Foundation
22689gives unlimited permission to copy, distribute and modify it."
22690srcdir=$srcdir
22691INSTALL="$INSTALL"
22692_ACEOF
22693
22694cat >>$CONFIG_STATUS <<\_ACEOF
22695# If no file are specified by the user, then we need to provide default
22696# value. By we need to know if files were specified by the user.
22697ac_need_defaults=:
22698while test $# != 0
22699do
22700 case $1 in
22701 --*=*)
22702 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22703 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswelld9cd1442003-09-09 20:52:17 +000022704 shift
22705 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22706 shift
John Criswell7a73b802003-06-30 21:59:07 +000022707 ;;
John Criswelld9cd1442003-09-09 20:52:17 +000022708 -*);;
John Criswell7a73b802003-06-30 21:59:07 +000022709 *) # This is not an option, so the user has probably given explicit
22710 # arguments.
22711 ac_need_defaults=false;;
22712 esac
22713
John Criswelld9cd1442003-09-09 20:52:17 +000022714 case $1 in
John Criswell7a73b802003-06-30 21:59:07 +000022715 # Handling of the options.
22716_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000022717cat >>$CONFIG_STATUS <<_ACEOF
John Criswell392aaa32003-07-22 19:18:09 +000022718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
John Criswelld9cd1442003-09-09 20:52:17 +000022719 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22720 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22721_ACEOF
22722cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022723 --version | --vers* | -V )
22724 echo "$ac_cs_version"; exit 0 ;;
22725 --he | --h)
22726 # Conflict between --help and --header
22727 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22728Try \`$0 --help' for more information." >&5
22729echo "$as_me: error: ambiguous option: $1
22730Try \`$0 --help' for more information." >&2;}
22731 { (exit 1); exit 1; }; };;
22732 --help | --hel | -h )
22733 echo "$ac_cs_usage"; exit 0 ;;
22734 --debug | --d* | -d )
22735 debug=: ;;
22736 --file | --fil | --fi | --f )
John Criswelld9cd1442003-09-09 20:52:17 +000022737 shift
22738 CONFIG_FILES="$CONFIG_FILES $1"
John Criswell7a73b802003-06-30 21:59:07 +000022739 ac_need_defaults=false;;
22740 --header | --heade | --head | --hea )
John Criswelld9cd1442003-09-09 20:52:17 +000022741 shift
22742 CONFIG_HEADERS="$CONFIG_HEADERS $1"
John Criswell7a73b802003-06-30 21:59:07 +000022743 ac_need_defaults=false;;
22744
22745 # This is an error.
22746 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22747Try \`$0 --help' for more information." >&5
22748echo "$as_me: error: unrecognized option: $1
22749Try \`$0 --help' for more information." >&2;}
22750 { (exit 1); exit 1; }; } ;;
22751
22752 *) ac_config_targets="$ac_config_targets $1" ;;
22753
22754 esac
22755 shift
22756done
22757
22758_ACEOF
22759
John Criswellc764fbc2003-09-06 15:17:13 +000022760cat >>$CONFIG_STATUS <<_ACEOF
22761#
22762# INIT-COMMANDS section.
22763#
John Criswell7a73b802003-06-30 21:59:07 +000022764
John Criswellc764fbc2003-09-06 15:17:13 +000022765${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22766${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22767${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
22768${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22769${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
22770${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
22771${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
22772${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
22773${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
22774${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
22775${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
22776${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
22777${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
22778${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
22779${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
22780${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
22781${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022782${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
22783${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
22784${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
22785${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
22786${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
22787${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
22788${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
22789${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
22790${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
22791${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
22792${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
22793${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
22794${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
22795${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
22796${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
22797${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
22798${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
22799${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22800${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
22801${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
22802${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
22803${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
22804${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
22805${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
22806${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
22807${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
22808${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
22809${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
22810${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22811${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22812${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22813${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22814${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22815${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22816${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22817${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22818${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22819${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22820${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22821${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22822${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22823${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22824${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22825${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22826${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22827${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22828${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22829${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22830${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
22831${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
22832${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
22833${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
22834${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
22835${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
22836${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
22837${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
22838${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
22839${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
22840${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
22841${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
22842${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
22843${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
22844${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
22845${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
22846${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22847${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22848${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
22849${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
22850${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
22851${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
22852${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
22853${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
22854${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
22855${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
22856${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
22857${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
22858${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
22859${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
22860${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
22861${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
22862${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
22863${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
22864${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
22865${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
22866${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
22867${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
22868${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
22869${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
22870${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
22871${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
22872${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
22873${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
22874${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
22875${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
22876${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
22877${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
22878${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
22879${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
22880${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
22881${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
22882${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
22883${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
22884${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
22885${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
22886${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
22887${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000022888${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
22889${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22890${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22891${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
22892${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
22893${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
22894${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
22895${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22896${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
22897${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
22898${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
22899${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
22900${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
22901${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
22902${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
22903${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
22904${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
22905${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
22906${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
22907${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
22908${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
22909${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
22910${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22911${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
22912${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
22913${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
22914${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
22915${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22916${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
22917${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
22918${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
22919${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
22920${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
22921${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
22922${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
22923${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
22924${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
22925${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
22926${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
22927
22928_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022929
22930
22931
22932cat >>$CONFIG_STATUS <<\_ACEOF
22933for ac_config_target in $ac_config_targets
22934do
22935 case "$ac_config_target" in
22936 # Handling of arguments.
22937 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022938 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22939 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22940 "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
22941 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22942 "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
22943 "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
22944 "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
22945 "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
22946 "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
22947 "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
22948 "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
22949 "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
22950 "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
22951 "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
22952 "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
22953 "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
22954 "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022955 "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
22956 "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
22957 "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
22958 "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
22959 "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
22960 "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
22961 "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
22962 "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
22963 "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
22964 "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
22965 "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
22966 "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
22967 "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
22968 "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
22969 "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
22970 "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
22971 "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
22972 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22973 "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
22974 "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
22975 "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
22976 "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
22977 "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
22978 "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
22979 "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
22980 "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
22981 "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
22982 "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
22983 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22984 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22985 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22986 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22987 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22988 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22989 "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22990 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22991 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22992 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22993 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22994 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22995 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22996 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22997 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22998 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22999 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23000 "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23001 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23002 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23003 "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23004 "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23005 "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23006 "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23007 "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23008 "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23009 "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23010 "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23011 "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23012 "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23013 "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23014 "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23015 "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23016 "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23017 "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23018 "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23019 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23020 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23021 "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23022 "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23023 "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23024 "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23025 "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23026 "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23027 "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23028 "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23029 "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23030 "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23031 "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23032 "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23033 "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23034 "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23035 "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23036 "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23037 "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23038 "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23039 "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23040 "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23041 "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23042 "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23043 "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23044 "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23045 "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23046 "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23047 "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23048 "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23049 "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23050 "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23051 "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23052 "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23053 "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23054 "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23055 "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23056 "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23057 "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23058 "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23059 "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23060 "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023061 "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23062 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23063 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23064 "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23065 "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23066 "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23067 "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23068 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23069 "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23070 "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23071 "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23072 "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23073 "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23074 "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23075 "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23076 "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23077 "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23078 "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23079 "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23080 "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23081 "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23082 "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23083 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23084 "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23085 "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23086 "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23087 "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23088 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23089 "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23090 "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23091 "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23092 "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23093 "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23094 "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23095 "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23096 "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23097 "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23098 "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23099 "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023100 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23101 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23102echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23103 { (exit 1); exit 1; }; };;
23104 esac
23105done
23106
23107# If the user did not use the arguments to specify the items to instantiate,
23108# then the envvar interface is used. Set only those that are not.
23109# We use the long form for the default assignment because of an extremely
23110# bizarre bug on SunOS 4.1.3.
23111if $ac_need_defaults; then
23112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000023114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023115fi
23116
23117# Create a temporary directory, and hook for its removal unless debugging.
23118$debug ||
23119{
23120 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23121 trap '{ (exit 1); exit 1; }' 1 2 13 15
23122}
23123
23124# Create a (secure) tmp directory for tmp files.
John Criswelld9cd1442003-09-09 20:52:17 +000023125: ${TMPDIR=/tmp}
John Criswell7a73b802003-06-30 21:59:07 +000023126{
John Criswelld9cd1442003-09-09 20:52:17 +000023127 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023128 test -n "$tmp" && test -d "$tmp"
23129} ||
23130{
John Criswelld9cd1442003-09-09 20:52:17 +000023131 tmp=$TMPDIR/cs$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023132 (umask 077 && mkdir $tmp)
23133} ||
23134{
John Criswelld9cd1442003-09-09 20:52:17 +000023135 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
John Criswell7a73b802003-06-30 21:59:07 +000023136 { (exit 1); exit 1; }
23137}
23138
23139_ACEOF
23140
23141cat >>$CONFIG_STATUS <<_ACEOF
23142
23143#
23144# CONFIG_FILES section.
23145#
23146
23147# No need to generate the scripts if there are no CONFIG_FILES.
23148# This happens for instance when ./config.status config.h
23149if test -n "\$CONFIG_FILES"; then
23150 # Protect against being on the right side of a sed subst in config.status.
23151 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23152 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23153s,@SHELL@,$SHELL,;t t
23154s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23155s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23156s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23157s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23158s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23159s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23160s,@exec_prefix@,$exec_prefix,;t t
23161s,@prefix@,$prefix,;t t
23162s,@program_transform_name@,$program_transform_name,;t t
23163s,@bindir@,$bindir,;t t
23164s,@sbindir@,$sbindir,;t t
23165s,@libexecdir@,$libexecdir,;t t
23166s,@datadir@,$datadir,;t t
23167s,@sysconfdir@,$sysconfdir,;t t
23168s,@sharedstatedir@,$sharedstatedir,;t t
23169s,@localstatedir@,$localstatedir,;t t
23170s,@libdir@,$libdir,;t t
23171s,@includedir@,$includedir,;t t
23172s,@oldincludedir@,$oldincludedir,;t t
23173s,@infodir@,$infodir,;t t
23174s,@mandir@,$mandir,;t t
23175s,@build_alias@,$build_alias,;t t
23176s,@host_alias@,$host_alias,;t t
23177s,@target_alias@,$target_alias,;t t
23178s,@DEFS@,$DEFS,;t t
23179s,@ECHO_C@,$ECHO_C,;t t
23180s,@ECHO_N@,$ECHO_N,;t t
23181s,@ECHO_T@,$ECHO_T,;t t
23182s,@LIBS@,$LIBS,;t t
23183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23185s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23186s,@build@,$build,;t t
23187s,@build_cpu@,$build_cpu,;t t
23188s,@build_vendor@,$build_vendor,;t t
23189s,@build_os@,$build_os,;t t
23190s,@host@,$host,;t t
23191s,@host_cpu@,$host_cpu,;t t
23192s,@host_vendor@,$host_vendor,;t t
23193s,@host_os@,$host_os,;t t
23194s,@target@,$target,;t t
23195s,@target_cpu@,$target_cpu,;t t
23196s,@target_vendor@,$target_vendor,;t t
23197s,@target_os@,$target_os,;t t
23198s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023199s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023200s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023201s,@CXX@,$CXX,;t t
23202s,@CXXFLAGS@,$CXXFLAGS,;t t
23203s,@LDFLAGS@,$LDFLAGS,;t t
23204s,@CPPFLAGS@,$CPPFLAGS,;t t
23205s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23206s,@EXEEXT@,$EXEEXT,;t t
23207s,@OBJEXT@,$OBJEXT,;t t
23208s,@CC@,$CC,;t t
23209s,@CFLAGS@,$CFLAGS,;t t
23210s,@ac_ct_CC@,$ac_ct_CC,;t t
23211s,@CPP@,$CPP,;t t
23212s,@ifGNUmake@,$ifGNUmake,;t t
23213s,@LEX@,$LEX,;t t
23214s,@LEXLIB@,$LEXLIB,;t t
23215s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23216s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023217s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023218s,@LN_S@,$LN_S,;t t
23219s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023220s,@AR@,$AR,;t t
23221s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023222s,@RANLIB@,$RANLIB,;t t
23223s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23224s,@STRIP@,$STRIP,;t t
23225s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023226s,@CXXCPP@,$CXXCPP,;t t
23227s,@F77@,$F77,;t t
23228s,@FFLAGS@,$FFLAGS,;t t
23229s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023230s,@LIBTOOL@,$LIBTOOL,;t t
John Criswellde00db22003-08-25 16:49:54 +000023231s,@RPWD@,$RPWD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023232s,@SED@,$SED,;t t
23233s,@RM@,$RM,;t t
23234s,@MKDIR@,$MKDIR,;t t
23235s,@DATE@,$DATE,;t t
23236s,@MV@,$MV,;t t
23237s,@DOT@,$DOT,;t t
23238s,@ETAGS@,$ETAGS,;t t
23239s,@PURIFY@,$PURIFY,;t t
John Criswellde00db22003-08-25 16:49:54 +000023240s,@PYTHON@,$PYTHON,;t t
23241s,@QMTEST@,$QMTEST,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023242s,@ALLOCA@,$ALLOCA,;t t
23243s,@LIBOBJS@,$LIBOBJS,;t t
23244s,@MMAP_FILE@,$MMAP_FILE,;t t
23245s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023246s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23247s,@USE_SPEC@,$USE_SPEC,;t t
23248s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000023249s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023250s,@JIT@,$JIT,;t t
23251s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23252s,@BCR@,$BCR,;t t
23253s,@PAPIDIR@,$PAPIDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023254CEOF
23255
23256_ACEOF
23257
23258 cat >>$CONFIG_STATUS <<\_ACEOF
23259 # Split the substitutions into bite-sized pieces for seds with
23260 # small command number limits, like on Digital OSF/1 and HP-UX.
23261 ac_max_sed_lines=48
23262 ac_sed_frag=1 # Number of current file.
23263 ac_beg=1 # First line for current file.
23264 ac_end=$ac_max_sed_lines # Line after last line for current file.
23265 ac_more_lines=:
23266 ac_sed_cmds=
23267 while $ac_more_lines; do
23268 if test $ac_beg -gt 1; then
23269 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23270 else
23271 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23272 fi
23273 if test ! -s $tmp/subs.frag; then
23274 ac_more_lines=false
23275 else
23276 # The purpose of the label and of the branching condition is to
23277 # speed up the sed processing (if there are no `@' at all, there
23278 # is no need to browse any of the substitutions).
23279 # These are the two extra sed commands mentioned above.
23280 (echo ':t
23281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23282 if test -z "$ac_sed_cmds"; then
23283 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23284 else
23285 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23286 fi
23287 ac_sed_frag=`expr $ac_sed_frag + 1`
23288 ac_beg=$ac_end
23289 ac_end=`expr $ac_end + $ac_max_sed_lines`
23290 fi
23291 done
23292 if test -z "$ac_sed_cmds"; then
23293 ac_sed_cmds=cat
23294 fi
23295fi # test -n "$CONFIG_FILES"
23296
23297_ACEOF
23298cat >>$CONFIG_STATUS <<\_ACEOF
23299for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23301 case $ac_file in
23302 - | *:- | *:-:* ) # input from stdin
23303 cat >$tmp/stdin
23304 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23306 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23308 * ) ac_file_in=$ac_file.in ;;
23309 esac
23310
23311 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23312 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23314 X"$ac_file" : 'X\(//\)[^/]' \| \
23315 X"$ac_file" : 'X\(//\)$' \| \
23316 X"$ac_file" : 'X\(/\)' \| \
23317 . : '\(.\)' 2>/dev/null ||
23318echo X"$ac_file" |
23319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23321 /^X\(\/\/\)$/{ s//\1/; q; }
23322 /^X\(\/\).*/{ s//\1/; q; }
23323 s/.*/./; q'`
John Criswelld9cd1442003-09-09 20:52:17 +000023324 { case "$ac_dir" in
23325 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23326 *) as_incr_dir=.;;
23327esac
23328as_dummy="$ac_dir"
23329for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23330 case $as_mkdir_dir in
23331 # Skip DOS drivespec
23332 ?:) as_incr_dir=$as_mkdir_dir ;;
23333 *)
23334 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23335 test -d "$as_incr_dir" ||
23336 mkdir "$as_incr_dir" ||
23337 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
23338echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
23339 { (exit 1); exit 1; }; }
23340 ;;
23341 esac
23342done; }
John Criswell7a73b802003-06-30 21:59:07 +000023343
23344 ac_builddir=.
23345
23346if test "$ac_dir" != .; then
23347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23348 # A "../" for each directory in $ac_dir_suffix.
23349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23350else
23351 ac_dir_suffix= ac_top_builddir=
23352fi
23353
23354case $srcdir in
23355 .) # No --srcdir option. We are building in place.
23356 ac_srcdir=.
23357 if test -z "$ac_top_builddir"; then
23358 ac_top_srcdir=.
23359 else
23360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23361 fi ;;
23362 [\\/]* | ?:[\\/]* ) # Absolute path.
23363 ac_srcdir=$srcdir$ac_dir_suffix;
23364 ac_top_srcdir=$srcdir ;;
23365 *) # Relative path.
23366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23368esac
23369# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23370# absolute.
23371ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswelld9cd1442003-09-09 20:52:17 +000023372ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023373ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23374ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23375
23376
23377 case $INSTALL in
23378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23379 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23380 esac
23381
23382 if test x"$ac_file" != x-; then
23383 { echo "$as_me:$LINENO: creating $ac_file" >&5
23384echo "$as_me: creating $ac_file" >&6;}
23385 rm -f "$ac_file"
23386 fi
23387 # Let's still pretend it is `configure' which instantiates (i.e., don't
23388 # use $as_me), people would be surprised to read:
23389 # /* config.h. Generated by config.status. */
23390 if test x"$ac_file" = x-; then
23391 configure_input=
23392 else
23393 configure_input="$ac_file. "
23394 fi
23395 configure_input=$configure_input"Generated from `echo $ac_file_in |
23396 sed 's,.*/,,'` by configure."
23397
23398 # First look for the input files in the build tree, otherwise in the
23399 # src tree.
23400 ac_file_inputs=`IFS=:
23401 for f in $ac_file_in; do
23402 case $f in
23403 -) echo $tmp/stdin ;;
23404 [\\/$]*)
23405 # Absolute (can't be DOS-style, as IFS=:)
23406 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23407echo "$as_me: error: cannot find input file: $f" >&2;}
23408 { (exit 1); exit 1; }; }
23409 echo $f;;
23410 *) # Relative
23411 if test -f "$f"; then
23412 # Build tree
23413 echo $f
23414 elif test -f "$srcdir/$f"; then
23415 # Source tree
23416 echo $srcdir/$f
23417 else
23418 # /dev/null tree
23419 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23420echo "$as_me: error: cannot find input file: $f" >&2;}
23421 { (exit 1); exit 1; }; }
23422 fi;;
23423 esac
23424 done` || { (exit 1); exit 1; }
23425_ACEOF
23426cat >>$CONFIG_STATUS <<_ACEOF
23427 sed "$ac_vpsub
23428$extrasub
23429_ACEOF
23430cat >>$CONFIG_STATUS <<\_ACEOF
23431:t
23432/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23433s,@configure_input@,$configure_input,;t t
23434s,@srcdir@,$ac_srcdir,;t t
23435s,@abs_srcdir@,$ac_abs_srcdir,;t t
23436s,@top_srcdir@,$ac_top_srcdir,;t t
23437s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23438s,@builddir@,$ac_builddir,;t t
23439s,@abs_builddir@,$ac_abs_builddir,;t t
23440s,@top_builddir@,$ac_top_builddir,;t t
23441s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23442s,@INSTALL@,$ac_INSTALL,;t t
23443" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23444 rm -f $tmp/stdin
23445 if test x"$ac_file" != x-; then
23446 mv $tmp/out $ac_file
23447 else
23448 cat $tmp/out
23449 rm -f $tmp/out
23450 fi
23451
23452done
23453_ACEOF
23454cat >>$CONFIG_STATUS <<\_ACEOF
23455
23456#
23457# CONFIG_HEADER section.
23458#
23459
23460# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23461# NAME is the cpp macro being defined and VALUE is the value it is being given.
23462#
23463# ac_d sets the value in "#define NAME VALUE" lines.
23464ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23465ac_dB='[ ].*$,\1#\2'
23466ac_dC=' '
23467ac_dD=',;t'
23468# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23469ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23470ac_uB='$,\1#\2define\3'
23471ac_uC=' '
23472ac_uD=',;t'
23473
23474for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23476 case $ac_file in
23477 - | *:- | *:-:* ) # input from stdin
23478 cat >$tmp/stdin
23479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23483 * ) ac_file_in=$ac_file.in ;;
23484 esac
23485
23486 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23487echo "$as_me: creating $ac_file" >&6;}
23488
23489 # First look for the input files in the build tree, otherwise in the
23490 # src tree.
23491 ac_file_inputs=`IFS=:
23492 for f in $ac_file_in; do
23493 case $f in
23494 -) echo $tmp/stdin ;;
23495 [\\/$]*)
23496 # Absolute (can't be DOS-style, as IFS=:)
23497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23498echo "$as_me: error: cannot find input file: $f" >&2;}
23499 { (exit 1); exit 1; }; }
23500 echo $f;;
23501 *) # Relative
23502 if test -f "$f"; then
23503 # Build tree
23504 echo $f
23505 elif test -f "$srcdir/$f"; then
23506 # Source tree
23507 echo $srcdir/$f
23508 else
23509 # /dev/null tree
23510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23511echo "$as_me: error: cannot find input file: $f" >&2;}
23512 { (exit 1); exit 1; }; }
23513 fi;;
23514 esac
23515 done` || { (exit 1); exit 1; }
23516 # Remove the trailing spaces.
23517 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23518
23519_ACEOF
23520
23521# Transform confdefs.h into two sed scripts, `conftest.defines' and
23522# `conftest.undefs', that substitutes the proper values into
23523# config.h.in to produce config.h. The first handles `#define'
23524# templates, and the second `#undef' templates.
23525# And first: Protect against being on the right side of a sed subst in
23526# config.status. Protect against being in an unquoted here document
23527# in config.status.
23528rm -f conftest.defines conftest.undefs
23529# Using a here document instead of a string reduces the quoting nightmare.
23530# Putting comments in sed scripts is not portable.
23531#
23532# `end' is used to avoid that the second main sed command (meant for
23533# 0-ary CPP macros) applies to n-ary macro definitions.
23534# See the Autoconf documentation for `clear'.
23535cat >confdef2sed.sed <<\_ACEOF
23536s/[\\&,]/\\&/g
23537s,[\\$`],\\&,g
23538t clear
23539: clear
23540s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23541t end
23542s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23543: end
23544_ACEOF
23545# If some macros were called several times there might be several times
23546# the same #defines, which is useless. Nevertheless, we may not want to
23547# sort them, since we want the *last* AC-DEFINE to be honored.
23548uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23549sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23550rm -f confdef2sed.sed
23551
23552# This sed command replaces #undef with comments. This is necessary, for
23553# example, in the case of _POSIX_SOURCE, which is predefined and required
23554# on some systems where configure will not decide to define it.
23555cat >>conftest.undefs <<\_ACEOF
23556s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23557_ACEOF
23558
23559# Break up conftest.defines because some shells have a limit on the size
23560# of here documents, and old seds have small limits too (100 cmds).
23561echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
John Criswelld9cd1442003-09-09 20:52:17 +000023562echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023563echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23564echo ' :' >>$CONFIG_STATUS
23565rm -f conftest.tail
23566while grep . conftest.defines >/dev/null
23567do
23568 # Write a limited-size here document to $tmp/defines.sed.
23569 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23570 # Speed up: don't consider the non `#define' lines.
23571 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23572 # Work around the forget-to-reset-the-flag bug.
23573 echo 't clr' >>$CONFIG_STATUS
23574 echo ': clr' >>$CONFIG_STATUS
23575 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23576 echo 'CEOF
23577 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23578 rm -f $tmp/in
23579 mv $tmp/out $tmp/in
23580' >>$CONFIG_STATUS
23581 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23582 rm -f conftest.defines
23583 mv conftest.tail conftest.defines
23584done
23585rm -f conftest.defines
John Criswelld9cd1442003-09-09 20:52:17 +000023586echo ' fi # egrep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023587echo >>$CONFIG_STATUS
23588
23589# Break up conftest.undefs because some shells have a limit on the size
23590# of here documents, and old seds have small limits too (100 cmds).
23591echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23592rm -f conftest.tail
23593while grep . conftest.undefs >/dev/null
23594do
23595 # Write a limited-size here document to $tmp/undefs.sed.
23596 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23597 # Speed up: don't consider the non `#undef'
23598 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23599 # Work around the forget-to-reset-the-flag bug.
23600 echo 't clr' >>$CONFIG_STATUS
23601 echo ': clr' >>$CONFIG_STATUS
23602 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23603 echo 'CEOF
23604 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23605 rm -f $tmp/in
23606 mv $tmp/out $tmp/in
23607' >>$CONFIG_STATUS
23608 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23609 rm -f conftest.undefs
23610 mv conftest.tail conftest.undefs
23611done
23612rm -f conftest.undefs
23613
23614cat >>$CONFIG_STATUS <<\_ACEOF
23615 # Let's still pretend it is `configure' which instantiates (i.e., don't
23616 # use $as_me), people would be surprised to read:
23617 # /* config.h. Generated by config.status. */
23618 if test x"$ac_file" = x-; then
23619 echo "/* Generated by configure. */" >$tmp/config.h
23620 else
23621 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23622 fi
23623 cat $tmp/in >>$tmp/config.h
23624 rm -f $tmp/in
23625 if test x"$ac_file" != x-; then
John Criswelld9cd1442003-09-09 20:52:17 +000023626 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
John Criswell7a73b802003-06-30 21:59:07 +000023627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23628echo "$as_me: $ac_file is unchanged" >&6;}
23629 else
23630 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23631$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23632 X"$ac_file" : 'X\(//\)[^/]' \| \
23633 X"$ac_file" : 'X\(//\)$' \| \
23634 X"$ac_file" : 'X\(/\)' \| \
23635 . : '\(.\)' 2>/dev/null ||
23636echo X"$ac_file" |
23637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23639 /^X\(\/\/\)$/{ s//\1/; q; }
23640 /^X\(\/\).*/{ s//\1/; q; }
23641 s/.*/./; q'`
John Criswelld9cd1442003-09-09 20:52:17 +000023642 { case "$ac_dir" in
23643 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23644 *) as_incr_dir=.;;
23645esac
23646as_dummy="$ac_dir"
23647for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23648 case $as_mkdir_dir in
23649 # Skip DOS drivespec
23650 ?:) as_incr_dir=$as_mkdir_dir ;;
23651 *)
23652 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23653 test -d "$as_incr_dir" ||
23654 mkdir "$as_incr_dir" ||
23655 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
23656echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
23657 { (exit 1); exit 1; }; }
23658 ;;
23659 esac
23660done; }
John Criswell7a73b802003-06-30 21:59:07 +000023661
23662 rm -f $ac_file
23663 mv $tmp/config.h $ac_file
23664 fi
23665 else
23666 cat $tmp/config.h
23667 rm -f $tmp/config.h
23668 fi
23669done
23670_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023671cat >>$CONFIG_STATUS <<\_ACEOF
23672
23673#
23674# CONFIG_COMMANDS section.
23675#
23676for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23677 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23678 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23679 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23680$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23681 X"$ac_dest" : 'X\(//\)[^/]' \| \
23682 X"$ac_dest" : 'X\(//\)$' \| \
23683 X"$ac_dest" : 'X\(/\)' \| \
23684 . : '\(.\)' 2>/dev/null ||
23685echo X"$ac_dest" |
23686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23688 /^X\(\/\/\)$/{ s//\1/; q; }
23689 /^X\(\/\).*/{ s//\1/; q; }
23690 s/.*/./; q'`
23691 ac_builddir=.
23692
23693if test "$ac_dir" != .; then
23694 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23695 # A "../" for each directory in $ac_dir_suffix.
23696 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23697else
23698 ac_dir_suffix= ac_top_builddir=
23699fi
23700
23701case $srcdir in
23702 .) # No --srcdir option. We are building in place.
23703 ac_srcdir=.
23704 if test -z "$ac_top_builddir"; then
23705 ac_top_srcdir=.
23706 else
23707 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23708 fi ;;
23709 [\\/]* | ?:[\\/]* ) # Absolute path.
23710 ac_srcdir=$srcdir$ac_dir_suffix;
23711 ac_top_srcdir=$srcdir ;;
23712 *) # Relative path.
23713 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23714 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23715esac
23716# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23717# absolute.
23718ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
John Criswelld9cd1442003-09-09 20:52:17 +000023719ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000023720ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23721ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23722
23723
23724 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23725echo "$as_me: executing $ac_dest commands" >&6;}
23726 case $ac_dest in
23727 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23728 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23729 Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
23730 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23731 lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
23732 lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
23733 lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
23734 lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
23735 lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
23736 lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
23737 lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
23738 lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
23739 lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
23740 lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
23741 lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
23742 lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
23743 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 +000023744 lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
23745 lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
23746 lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
23747 lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
23748 lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
23749 lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
23750 lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
23751 lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
23752 lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
23753 lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
23754 lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
23755 lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
23756 lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
23757 lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
23758 lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
23759 lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
23760 lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
23761 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23762 runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
23763 runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
23764 runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
23765 runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
23766 runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
23767 runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
23768 runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
23769 runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
23770 runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
23771 runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
23772 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23773 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23774 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23775 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23776 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23777 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23778 test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23779 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23780 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23781 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23782 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23783 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23784 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23785 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23786 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23787 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23788 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23789 test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23790 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23791 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23792 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 ;;
23793 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 ;;
23794 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 ;;
23795 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 ;;
23796 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 ;;
23797 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 ;;
23798 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 ;;
23799 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 ;;
23800 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 ;;
23801 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 ;;
23802 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 ;;
23803 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 ;;
23804 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 ;;
23805 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 ;;
23806 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 ;;
23807 test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
23808 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23809 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23810 test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
23811 test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
23812 test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
23813 test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
23814 test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
23815 test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
23816 test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
23817 test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
23818 test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
23819 test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
23820 test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
23821 test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
23822 test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
23823 test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
23824 test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
23825 test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
23826 test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
23827 test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
23828 test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
23829 test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
23830 test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
23831 test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
23832 test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
23833 test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
23834 test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
23835 test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
23836 test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
23837 test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
23838 test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
23839 test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
23840 test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
23841 test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
23842 test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
23843 test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
23844 test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
23845 test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
23846 test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
23847 test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
23848 test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
23849 test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023850 test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
23851 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23852 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23853 test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
23854 test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
23855 test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
23856 test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
23857 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23858 tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
23859 tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
23860 tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
23861 tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
23862 tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
23863 tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
23864 tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
23865 tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
23866 tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
23867 tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
23868 tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
23869 tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
23870 tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
23871 tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
23872 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23873 utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
23874 utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
23875 utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
23876 www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
23877 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23878 projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
23879 projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
23880 projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
23881 projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
23882 projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
23883 projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
23884 projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
23885 projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
23886 projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
23887 projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
23888 projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
23889 esac
23890done
23891_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023892
23893cat >>$CONFIG_STATUS <<\_ACEOF
23894
23895{ (exit 0); exit 0; }
23896_ACEOF
23897chmod +x $CONFIG_STATUS
23898ac_clean_files=$ac_clean_files_save
23899
23900
23901# configure is writing to config.log, and then calls config.status.
23902# config.status does its own redirection, appending to config.log.
23903# Unfortunately, on DOS this fails, as config.log is still kept open
23904# by configure, so config.status won't be able to write to it; its
23905# output is simply discarded. So we exec the FD to /dev/null,
23906# effectively closing config.log, so it can be properly (re)opened and
23907# appended to by config.status. When coming back to configure, we
23908# need to make the FD available again.
23909if test "$no_create" != yes; then
23910 ac_cs_success=:
23911 exec 5>/dev/null
John Criswelld9cd1442003-09-09 20:52:17 +000023912 $SHELL $CONFIG_STATUS || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000023913 exec 5>>config.log
23914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23915 # would make configure fail if this is the last instruction.
23916 $ac_cs_success || { (exit 1); exit 1; }
23917fi
23918