blob: dc5fbf22a6b033f02845575ceb04a70225abe9b6 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53 for [LLVM] [1.0].
4#
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 Criswell7a73b802003-06-30 21:59:07 +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
388# 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)
1020 --enable-jit Enable Just In Time Compiling (default is NO)
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001025 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1026 --with-pic try to use only PIC/non-PIC objects [default=use
1027 both]
1028 --with-tags[=TAGS]
1029 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001030 --with-spec Location of SPEC benchmarks
1031 --with-llvmgccdir Location of LLVM GCC front-end
1032 --with-bcrepos Location of Bytecode Repository
1033 --with-papi Location of PAPI
1034 --with-objroot Location where object files should be placed
1035 (default is .)
1036 --with-purify Location of purify program
1037
1038Some influential environment variables:
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CC C compiler command
1046 CFLAGS C compiler flags
1047 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001048 CXXCPP C++ preprocessor
1049 F77 Fortran 77 compiler command
1050 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001051
1052Use these variables to override the choices made by `configure' or to help
1053it to find libraries and programs with nonstandard names/locations.
1054
1055Report bugs to <llvmbugs@cs.uiuc.edu>.
1056_ACEOF
1057fi
1058
1059if test "$ac_init_help" = "recursive"; then
1060 # If there are subdirs, report their specific --help.
1061 ac_popdir=`pwd`
1062 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063 test -d $ac_dir || continue
1064 ac_builddir=.
1065
1066if test "$ac_dir" != .; then
1067 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068 # A "../" for each directory in $ac_dir_suffix.
1069 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070else
1071 ac_dir_suffix= ac_top_builddir=
1072fi
1073
1074case $srcdir in
1075 .) # No --srcdir option. We are building in place.
1076 ac_srcdir=.
1077 if test -z "$ac_top_builddir"; then
1078 ac_top_srcdir=.
1079 else
1080 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081 fi ;;
1082 [\\/]* | ?:[\\/]* ) # Absolute path.
1083 ac_srcdir=$srcdir$ac_dir_suffix;
1084 ac_top_srcdir=$srcdir ;;
1085 *) # Relative path.
1086 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088esac
1089# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1090# absolute.
1091ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1093ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1095
1096 cd $ac_dir
1097 # Check for guested configure; otherwise get Cygnus style configure.
1098 if test -f $ac_srcdir/configure.gnu; then
1099 echo
1100 $SHELL $ac_srcdir/configure.gnu --help=recursive
1101 elif test -f $ac_srcdir/configure; then
1102 echo
1103 $SHELL $ac_srcdir/configure --help=recursive
1104 elif test -f $ac_srcdir/configure.ac ||
1105 test -f $ac_srcdir/configure.in; then
1106 echo
1107 $ac_configure --help
1108 else
1109 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1110 fi
1111 cd $ac_popdir
1112 done
1113fi
1114
1115test -n "$ac_init_help" && exit 0
1116if $ac_init_version; then
1117 cat <<\_ACEOF
1118[LLVM] configure [1.0]
1119generated by GNU Autoconf 2.53
1120
1121Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122Free Software Foundation, Inc.
1123This configure script is free software; the Free Software Foundation
1124gives unlimited permission to copy, distribute and modify it.
1125_ACEOF
1126 exit 0
1127fi
1128exec 5>config.log
1129cat >&5 <<_ACEOF
1130This file contains any messages produced by compilers while
1131running configure, to aid debugging if configure makes a mistake.
1132
1133It was created by [LLVM] $as_me [1.0], which was
1134generated by GNU Autoconf 2.53. Invocation command line was
1135
1136 $ $0 $@
1137
1138_ACEOF
1139{
1140cat <<_ASUNAME
1141## --------- ##
1142## Platform. ##
1143## --------- ##
1144
1145hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1153
1154/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1155/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1156/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1158/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1159/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1160/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1161
1162_ASUNAME
1163
1164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165for as_dir in $PATH
1166do
1167 IFS=$as_save_IFS
1168 test -z "$as_dir" && as_dir=.
1169 echo "PATH: $as_dir"
1170done
1171
1172} >&5
1173
1174cat >&5 <<_ACEOF
1175
1176
1177## ----------- ##
1178## Core tests. ##
1179## ----------- ##
1180
1181_ACEOF
1182
1183
1184# Keep a trace of the command line.
1185# Strip out --no-create and --no-recursion so they do not pile up.
1186# Also quote any args containing shell meta-characters.
1187ac_configure_args=
1188ac_sep=
1189for ac_arg
1190do
1191 case $ac_arg in
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n ) continue ;;
1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196 continue ;;
1197 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1199 esac
1200 case " $ac_configure_args " in
1201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1202 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1203 ac_sep=" " ;;
1204 esac
1205 # Get rid of the leading space.
1206done
1207
1208# When interrupted or exit'd, cleanup temporary files, and complete
1209# config.log. We remove comments because anyway the quotes in there
1210# would cause problems or look ugly.
1211# WARNING: Be sure not to use single quotes in there, as some shells,
1212# such as our DU 5.0 friend, will then `close' the trap.
1213trap 'exit_status=$?
1214 # Save into config.log some information that might help in debugging.
1215 {
1216 echo
1217 cat <<\_ASBOX
1218## ---------------- ##
1219## Cache variables. ##
1220## ---------------- ##
1221_ASBOX
1222 echo
1223 # The following way of writing the cache mishandles newlines in values,
1224{
1225 (set) 2>&1 |
1226 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1227 *ac_space=\ *)
1228 sed -n \
1229 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1231 ;;
1232 *)
1233 sed -n \
1234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1235 ;;
1236 esac;
1237}
1238 echo
1239 if test -s confdefs.h; then
1240 cat <<\_ASBOX
1241## ----------- ##
1242## confdefs.h. ##
1243## ----------- ##
1244_ASBOX
1245 echo
1246 sed "/^$/d" confdefs.h
1247 echo
1248 fi
1249 test "$ac_signal" != 0 &&
1250 echo "$as_me: caught signal $ac_signal"
1251 echo "$as_me: exit $exit_status"
1252 } >&5
1253 rm -f core core.* *.core &&
1254 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255 exit $exit_status
1256 ' 0
1257for ac_signal in 1 2 13 15; do
1258 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259done
1260ac_signal=0
1261
1262# confdefs.h avoids OS command line length limits that DEFS can exceed.
1263rm -rf conftest* confdefs.h
1264# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265echo >confdefs.h
1266
1267# Predefined preprocessor variables.
1268
1269cat >>confdefs.h <<_ACEOF
1270#define PACKAGE_NAME "$PACKAGE_NAME"
1271_ACEOF
1272
1273
1274cat >>confdefs.h <<_ACEOF
1275#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276_ACEOF
1277
1278
1279cat >>confdefs.h <<_ACEOF
1280#define PACKAGE_VERSION "$PACKAGE_VERSION"
1281_ACEOF
1282
1283
1284cat >>confdefs.h <<_ACEOF
1285#define PACKAGE_STRING "$PACKAGE_STRING"
1286_ACEOF
1287
1288
1289cat >>confdefs.h <<_ACEOF
1290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291_ACEOF
1292
1293
1294# Let the site file select an alternate cache file if it wants to.
1295# Prefer explicitly selected file to automatically selected ones.
1296if test -z "$CONFIG_SITE"; then
1297 if test "x$prefix" != xNONE; then
1298 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299 else
1300 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301 fi
1302fi
1303for ac_site_file in $CONFIG_SITE; do
1304 if test -r "$ac_site_file"; then
1305 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306echo "$as_me: loading site script $ac_site_file" >&6;}
1307 sed 's/^/| /' "$ac_site_file" >&5
1308 . "$ac_site_file"
1309 fi
1310done
1311
1312if test -r "$cache_file"; then
1313 # Some versions of bash will fail to source /dev/null (special
1314 # files actually), so we avoid doing that.
1315 if test -f "$cache_file"; then
1316 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317echo "$as_me: loading cache $cache_file" >&6;}
1318 case $cache_file in
1319 [\\/]* | ?:[\\/]* ) . $cache_file;;
1320 *) . ./$cache_file;;
1321 esac
1322 fi
1323else
1324 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325echo "$as_me: creating cache $cache_file" >&6;}
1326 >$cache_file
1327fi
1328
1329# Check that the precious variables saved in the cache have kept the same
1330# value.
1331ac_cache_corrupted=false
1332for ac_var in `(set) 2>&1 |
1333 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335 eval ac_new_set=\$ac_env_${ac_var}_set
1336 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337 eval ac_new_val="\$ac_env_${ac_var}_value"
1338 case $ac_old_set,$ac_new_set in
1339 set,)
1340 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342 ac_cache_corrupted=: ;;
1343 ,set)
1344 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346 ac_cache_corrupted=: ;;
1347 ,);;
1348 *)
1349 if test "x$ac_old_val" != "x$ac_new_val"; then
1350 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1353echo "$as_me: former value: $ac_old_val" >&2;}
1354 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1355echo "$as_me: current value: $ac_new_val" >&2;}
1356 ac_cache_corrupted=:
1357 fi;;
1358 esac
1359 # Pass precious variables to config.status.
1360 if test "$ac_new_set" = set; then
1361 case $ac_new_val in
1362 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364 *) ac_arg=$ac_var=$ac_new_val ;;
1365 esac
1366 case " $ac_configure_args " in
1367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1368 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369 esac
1370 fi
1371done
1372if $ac_cache_corrupted; then
1373 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377 { (exit 1); exit 1; }; }
1378fi
1379
1380ac_ext=c
1381ac_cpp='$CPP $CPPFLAGS'
1382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1411
1412ac_config_headers="$ac_config_headers include/Config/config.h"
1413
1414
1415
1416ac_aux_dir=
1417for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1418 if test -f $ac_dir/install-sh; then
1419 ac_aux_dir=$ac_dir
1420 ac_install_sh="$ac_aux_dir/install-sh -c"
1421 break
1422 elif test -f $ac_dir/install.sh; then
1423 ac_aux_dir=$ac_dir
1424 ac_install_sh="$ac_aux_dir/install.sh -c"
1425 break
1426 elif test -f $ac_dir/shtool; then
1427 ac_aux_dir=$ac_dir
1428 ac_install_sh="$ac_aux_dir/shtool install -c"
1429 break
1430 fi
1431done
1432if test -z "$ac_aux_dir"; then
1433 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1434echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1435 { (exit 1); exit 1; }; }
1436fi
1437ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1438ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1439ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440
1441# Find a good install program. We prefer a C program (faster),
1442# so one script is as good as another. But avoid the broken or
1443# incompatible versions:
1444# SysV /etc/install, /usr/sbin/install
1445# SunOS /usr/etc/install
1446# IRIX /sbin/install
1447# AIX /bin/install
1448# AmigaOS /C/install, which installs bootblocks on floppy discs
1449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452# ./install, which can be erroneously created by make from ./install.sh.
1453echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1454echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1455if test -z "$INSTALL"; then
1456if test "${ac_cv_path_install+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458else
1459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460for as_dir in $PATH
1461do
1462 IFS=$as_save_IFS
1463 test -z "$as_dir" && as_dir=.
1464 # Account for people who put trailing slashes in PATH elements.
1465case $as_dir/ in
1466 ./ | .// | /cC/* | \
1467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1468 /usr/ucb/* ) ;;
1469 *)
1470 # OSF1 and SCO ODT 3.0 have their own names for install.
1471 # Don't use installbsd from OSF since it installs stuff as root
1472 # by default.
1473 for ac_prog in ginstall scoinst install; do
1474 for ac_exec_ext in '' $ac_executable_extensions; do
1475 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1476 if test $ac_prog = install &&
1477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1478 # AIX install. It has an incompatible calling convention.
1479 :
1480 elif test $ac_prog = install &&
1481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1482 # program-specific install script used by HP pwplus--don't use.
1483 :
1484 else
1485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1486 break 3
1487 fi
1488 fi
1489 done
1490 done
1491 ;;
1492esac
1493done
1494
1495
1496fi
1497 if test "${ac_cv_path_install+set}" = set; then
1498 INSTALL=$ac_cv_path_install
1499 else
1500 # As a last resort, use the slow shell script. We don't cache a
1501 # path for INSTALL within a source directory, because that will
1502 # break other packages using the cache if that directory is
1503 # removed, or if the path is relative.
1504 INSTALL=$ac_install_sh
1505 fi
1506fi
1507echo "$as_me:$LINENO: result: $INSTALL" >&5
1508echo "${ECHO_T}$INSTALL" >&6
1509
1510# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1511# It thinks the first close brace ends the variable substitution.
1512test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1513
1514test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1515
1516test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1517
1518
1519# Make sure we can run config.sub.
1520$ac_config_sub sun4 >/dev/null 2>&1 ||
1521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525echo "$as_me:$LINENO: checking build system type" >&5
1526echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527if test "${ac_cv_build+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 ac_cv_build_alias=$build_alias
1531test -z "$ac_cv_build_alias" &&
1532 ac_cv_build_alias=`$ac_config_guess`
1533test -z "$ac_cv_build_alias" &&
1534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536 { (exit 1); exit 1; }; }
1537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542fi
1543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544echo "${ECHO_T}$ac_cv_build" >&6
1545build=$ac_cv_build
1546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551echo "$as_me:$LINENO: checking host system type" >&5
1552echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553if test "${ac_cv_host+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 ac_cv_host_alias=$host_alias
1557test -z "$ac_cv_host_alias" &&
1558 ac_cv_host_alias=$ac_cv_build_alias
1559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562 { (exit 1); exit 1; }; }
1563
1564fi
1565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566echo "${ECHO_T}$ac_cv_host" >&6
1567host=$ac_cv_host
1568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573echo "$as_me:$LINENO: checking target system type" >&5
1574echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575if test "${ac_cv_target+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 ac_cv_target_alias=$target_alias
1579test "x$ac_cv_target_alias" = "x" &&
1580 ac_cv_target_alias=$ac_cv_host_alias
1581ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588echo "${ECHO_T}$ac_cv_target" >&6
1589target=$ac_cv_target
1590target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595# The aliases save the names the user supplied, while $host etc.
1596# will get canonicalized.
1597test -n "$target_alias" &&
1598 test "$program_prefix$program_suffix$program_transform_name" = \
1599 NONENONEs,x,x, &&
1600 program_prefix=${target_alias}-
1601
1602case $build in
1603 *i*86*) OS=Linux
1604
1605 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1606
1607 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1608
1609 ;;
1610
1611 *sparc*) OS=SunOS
1612
1613 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1614
1615 ;;
1616
1617 *) OS=Unknown
1618
1619 ;;
1620esac
1621
1622case $target in
1623 *sparc*solaris*) target=sparcv9-sun-solaris2.8
1624
1625 ;;
1626esac
1627
John Criswell76595452003-07-01 22:07:39 +00001628case $target in
1629 *i*86*) ARCH=x86
1630
1631 ;;
1632 *sparc*solaris*) ARCH=Sparc
1633
1634 ;;
1635esac
1636
John Criswell7a73b802003-06-30 21:59:07 +00001637
1638ac_ext=cc
1639ac_cpp='$CXXCPP $CPPFLAGS'
1640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1643if test -n "$ac_tool_prefix"; then
1644 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1645 do
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648echo "$as_me:$LINENO: checking for $ac_word" >&5
1649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650if test "${ac_cv_prog_CXX+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652else
1653 if test -n "$CXX"; then
1654 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1655else
1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657for as_dir in $PATH
1658do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667done
1668done
1669
1670fi
1671fi
1672CXX=$ac_cv_prog_CXX
1673if test -n "$CXX"; then
1674 echo "$as_me:$LINENO: result: $CXX" >&5
1675echo "${ECHO_T}$CXX" >&6
1676else
1677 echo "$as_me:$LINENO: result: no" >&5
1678echo "${ECHO_T}no" >&6
1679fi
1680
1681 test -n "$CXX" && break
1682 done
1683fi
1684if test -z "$CXX"; then
1685 ac_ct_CXX=$CXX
1686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1687do
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689set dummy $ac_prog; ac_word=$2
1690echo "$as_me:$LINENO: checking for $ac_word" >&5
1691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 if test -n "$ac_ct_CXX"; then
1696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1697else
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CXX="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709done
1710done
1711
1712fi
1713fi
1714ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1715if test -n "$ac_ct_CXX"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1717echo "${ECHO_T}$ac_ct_CXX" >&6
1718else
1719 echo "$as_me:$LINENO: result: no" >&5
1720echo "${ECHO_T}no" >&6
1721fi
1722
1723 test -n "$ac_ct_CXX" && break
1724done
1725test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1726
1727 CXX=$ac_ct_CXX
1728fi
1729
1730
1731# Provide some information about the compiler.
1732echo "$as_me:$LINENO:" \
1733 "checking for C++ compiler version" >&5
1734ac_compiler=`set X $ac_compile; echo $2`
1735{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736 (eval $ac_compiler --version </dev/null >&5) 2>&5
1737 ac_status=$?
1738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739 (exit $ac_status); }
1740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741 (eval $ac_compiler -v </dev/null >&5) 2>&5
1742 ac_status=$?
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }
1745{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746 (eval $ac_compiler -V </dev/null >&5) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1750
1751cat >conftest.$ac_ext <<_ACEOF
1752#line $LINENO "configure"
1753#include "confdefs.h"
1754
1755#ifdef F77_DUMMY_MAIN
1756# ifdef __cplusplus
1757 extern "C"
1758# endif
1759 int F77_DUMMY_MAIN() { return 1; }
1760#endif
1761int
1762main ()
1763{
1764
1765 ;
1766 return 0;
1767}
1768_ACEOF
1769ac_clean_files_save=$ac_clean_files
1770ac_clean_files="$ac_clean_files a.out a.exe"
1771# Try to create an executable without -o first, disregard a.out.
1772# It will help us diagnose broken compilers, and finding out an intuition
1773# of exeext.
1774echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1775echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1776ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778 (eval $ac_link_default) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }; then
1782 # Find the output, starting from the most likely. This scheme is
1783# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1784# resort.
1785
1786# Be careful to initialize this variable, since it used to be cached.
1787# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1788ac_cv_exeext=
1789for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1790 ls a.out conftest 2>/dev/null;
1791 ls a.* conftest.* 2>/dev/null`; do
1792 case $ac_file in
1793 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1794 a.out ) # We found the default executable, but exeext='' is most
1795 # certainly right.
1796 break;;
1797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1799 export ac_cv_exeext
1800 break;;
1801 * ) break;;
1802 esac
1803done
1804else
1805 echo "$as_me: failed program was:" >&5
1806cat conftest.$ac_ext >&5
1807{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1808echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1809 { (exit 77); exit 77; }; }
1810fi
1811
1812ac_exeext=$ac_cv_exeext
1813echo "$as_me:$LINENO: result: $ac_file" >&5
1814echo "${ECHO_T}$ac_file" >&6
1815
1816# Check the compiler produces executables we can run. If not, either
1817# the compiler is broken, or we cross compile.
1818echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1819echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1820# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1821# If not cross compiling, check that we can run a simple program.
1822if test "$cross_compiling" != yes; then
1823 if { ac_try='./$ac_file'
1824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1825 (eval $ac_try) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 cross_compiling=no
1830 else
1831 if test "$cross_compiling" = maybe; then
1832 cross_compiling=yes
1833 else
1834 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1835If you meant to cross compile, use \`--host'." >&5
1836echo "$as_me: error: cannot run C++ compiled programs.
1837If you meant to cross compile, use \`--host'." >&2;}
1838 { (exit 1); exit 1; }; }
1839 fi
1840 fi
1841fi
1842echo "$as_me:$LINENO: result: yes" >&5
1843echo "${ECHO_T}yes" >&6
1844
1845rm -f a.out a.exe conftest$ac_cv_exeext
1846ac_clean_files=$ac_clean_files_save
1847# Check the compiler produces executables we can run. If not, either
1848# the compiler is broken, or we cross compile.
1849echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1850echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1851echo "$as_me:$LINENO: result: $cross_compiling" >&5
1852echo "${ECHO_T}$cross_compiling" >&6
1853
1854echo "$as_me:$LINENO: checking for suffix of executables" >&5
1855echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1857 (eval $ac_link) 2>&5
1858 ac_status=$?
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); }; then
1861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1862# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1863# work properly (i.e., refer to `conftest.exe'), while it won't with
1864# `rm'.
1865for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1866 case $ac_file in
1867 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873done
1874else
1875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1877 { (exit 1); exit 1; }; }
1878fi
1879
1880rm -f conftest$ac_cv_exeext
1881echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1882echo "${ECHO_T}$ac_cv_exeext" >&6
1883
1884rm -f conftest.$ac_ext
1885EXEEXT=$ac_cv_exeext
1886ac_exeext=$EXEEXT
1887echo "$as_me:$LINENO: checking for suffix of object files" >&5
1888echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1889if test "${ac_cv_objext+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892 cat >conftest.$ac_ext <<_ACEOF
1893#line $LINENO "configure"
1894#include "confdefs.h"
1895
1896#ifdef F77_DUMMY_MAIN
1897# ifdef __cplusplus
1898 extern "C"
1899# endif
1900 int F77_DUMMY_MAIN() { return 1; }
1901#endif
1902int
1903main ()
1904{
1905
1906 ;
1907 return 0;
1908}
1909_ACEOF
1910rm -f conftest.o conftest.obj
1911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1913 ac_status=$?
1914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915 (exit $ac_status); }; then
1916 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1917 case $ac_file in
1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1920 break;;
1921 esac
1922done
1923else
1924 echo "$as_me: failed program was:" >&5
1925cat conftest.$ac_ext >&5
1926{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1927echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1928 { (exit 1); exit 1; }; }
1929fi
1930
1931rm -f conftest.$ac_cv_objext conftest.$ac_ext
1932fi
1933echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1934echo "${ECHO_T}$ac_cv_objext" >&6
1935OBJEXT=$ac_cv_objext
1936ac_objext=$OBJEXT
1937echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1938echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1939if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 cat >conftest.$ac_ext <<_ACEOF
1943#line $LINENO "configure"
1944#include "confdefs.h"
1945
1946#ifdef F77_DUMMY_MAIN
1947# ifdef __cplusplus
1948 extern "C"
1949# endif
1950 int F77_DUMMY_MAIN() { return 1; }
1951#endif
1952int
1953main ()
1954{
1955#ifndef __GNUC__
1956 choke me
1957#endif
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
1964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>&5
1966 ac_status=$?
1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968 (exit $ac_status); } &&
1969 { ac_try='test -s conftest.$ac_objext'
1970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 (eval $ac_try) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; }; then
1975 ac_compiler_gnu=yes
1976else
1977 echo "$as_me: failed program was:" >&5
1978cat conftest.$ac_ext >&5
1979ac_compiler_gnu=no
1980fi
1981rm -f conftest.$ac_objext conftest.$ac_ext
1982ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1983
1984fi
1985echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1986echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1987GXX=`test $ac_compiler_gnu = yes && echo yes`
1988ac_test_CXXFLAGS=${CXXFLAGS+set}
1989ac_save_CXXFLAGS=$CXXFLAGS
1990CXXFLAGS="-g"
1991echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1992echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1993if test "${ac_cv_prog_cxx_g+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995else
1996 cat >conftest.$ac_ext <<_ACEOF
1997#line $LINENO "configure"
1998#include "confdefs.h"
1999
2000#ifdef F77_DUMMY_MAIN
2001# ifdef __cplusplus
2002 extern "C"
2003# endif
2004 int F77_DUMMY_MAIN() { return 1; }
2005#endif
2006int
2007main ()
2008{
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014rm -f conftest.$ac_objext
2015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>&5
2017 ac_status=$?
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); } &&
2020 { ac_try='test -s conftest.$ac_objext'
2021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022 (eval $ac_try) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; }; then
2026 ac_cv_prog_cxx_g=yes
2027else
2028 echo "$as_me: failed program was:" >&5
2029cat conftest.$ac_ext >&5
2030ac_cv_prog_cxx_g=no
2031fi
2032rm -f conftest.$ac_objext conftest.$ac_ext
2033fi
2034echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2035echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2036if test "$ac_test_CXXFLAGS" = set; then
2037 CXXFLAGS=$ac_save_CXXFLAGS
2038elif test $ac_cv_prog_cxx_g = yes; then
2039 if test "$GXX" = yes; then
2040 CXXFLAGS="-g -O2"
2041 else
2042 CXXFLAGS="-g"
2043 fi
2044else
2045 if test "$GXX" = yes; then
2046 CXXFLAGS="-O2"
2047 else
2048 CXXFLAGS=
2049 fi
2050fi
2051for ac_declaration in \
2052 ''\
2053 '#include <stdlib.h>' \
2054 'extern "C" void std::exit (int) throw (); using std::exit;' \
2055 'extern "C" void std::exit (int); using std::exit;' \
2056 'extern "C" void exit (int) throw ();' \
2057 'extern "C" void exit (int);' \
2058 'void exit (int);'
2059do
2060 cat >conftest.$ac_ext <<_ACEOF
2061#line $LINENO "configure"
2062#include "confdefs.h"
2063#include <stdlib.h>
2064$ac_declaration
2065#ifdef F77_DUMMY_MAIN
2066# ifdef __cplusplus
2067 extern "C"
2068# endif
2069 int F77_DUMMY_MAIN() { return 1; }
2070#endif
2071int
2072main ()
2073{
2074exit (42);
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079rm -f conftest.$ac_objext
2080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081 (eval $ac_compile) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); } &&
2085 { ac_try='test -s conftest.$ac_objext'
2086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 (eval $ac_try) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; }; then
2091 :
2092else
2093 echo "$as_me: failed program was:" >&5
2094cat conftest.$ac_ext >&5
2095continue
2096fi
2097rm -f conftest.$ac_objext conftest.$ac_ext
2098 cat >conftest.$ac_ext <<_ACEOF
2099#line $LINENO "configure"
2100#include "confdefs.h"
2101$ac_declaration
2102#ifdef F77_DUMMY_MAIN
2103# ifdef __cplusplus
2104 extern "C"
2105# endif
2106 int F77_DUMMY_MAIN() { return 1; }
2107#endif
2108int
2109main ()
2110{
2111exit (42);
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116rm -f conftest.$ac_objext
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118 (eval $ac_compile) 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -s conftest.$ac_objext'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 (eval $ac_try) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2128 break
2129else
2130 echo "$as_me: failed program was:" >&5
2131cat conftest.$ac_ext >&5
2132fi
2133rm -f conftest.$ac_objext conftest.$ac_ext
2134done
2135rm -f conftest*
2136if test -n "$ac_declaration"; then
2137 echo '#ifdef __cplusplus' >>confdefs.h
2138 echo $ac_declaration >>confdefs.h
2139 echo '#endif' >>confdefs.h
2140fi
2141
2142ac_ext=c
2143ac_cpp='$CPP $CPPFLAGS'
2144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
2148ac_ext=c
2149ac_cpp='$CPP $CPPFLAGS'
2150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153if test -n "$ac_tool_prefix"; then
2154 for ac_prog in gcc
2155 do
2156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2176 fi
2177done
2178done
2179
2180fi
2181fi
2182CC=$ac_cv_prog_CC
2183if test -n "$CC"; then
2184 echo "$as_me:$LINENO: result: $CC" >&5
2185echo "${ECHO_T}$CC" >&6
2186else
2187 echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
2189fi
2190
2191 test -n "$CC" && break
2192 done
2193fi
2194if test -z "$CC"; then
2195 ac_ct_CC=$CC
2196 for ac_prog in gcc
2197do
2198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2199set dummy $ac_prog; ac_word=$2
2200echo "$as_me:$LINENO: checking for $ac_word" >&5
2201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205 if test -n "$ac_ct_CC"; then
2206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207else
2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209for as_dir in $PATH
2210do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_ac_ct_CC="$ac_prog"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219done
2220done
2221
2222fi
2223fi
2224ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225if test -n "$ac_ct_CC"; then
2226 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227echo "${ECHO_T}$ac_ct_CC" >&6
2228else
2229 echo "$as_me:$LINENO: result: no" >&5
2230echo "${ECHO_T}no" >&6
2231fi
2232
2233 test -n "$ac_ct_CC" && break
2234done
2235
2236 CC=$ac_ct_CC
2237fi
2238
2239
2240test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2241echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2242 { (exit 1); exit 1; }; }
2243
2244# Provide some information about the compiler.
2245echo "$as_me:$LINENO:" \
2246 "checking for C compiler version" >&5
2247ac_compiler=`set X $ac_compile; echo $2`
2248{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2249 (eval $ac_compiler --version </dev/null >&5) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }
2253{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2254 (eval $ac_compiler -v </dev/null >&5) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }
2258{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2259 (eval $ac_compiler -V </dev/null >&5) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }
2263
2264echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 cat >conftest.$ac_ext <<_ACEOF
2270#line $LINENO "configure"
2271#include "confdefs.h"
2272
2273#ifdef F77_DUMMY_MAIN
2274# ifdef __cplusplus
2275 extern "C"
2276# endif
2277 int F77_DUMMY_MAIN() { return 1; }
2278#endif
2279int
2280main ()
2281{
2282#ifndef __GNUC__
2283 choke me
2284#endif
2285
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_compiler_gnu=yes
2303else
2304 echo "$as_me: failed program was:" >&5
2305cat conftest.$ac_ext >&5
2306ac_compiler_gnu=no
2307fi
2308rm -f conftest.$ac_objext conftest.$ac_ext
2309ac_cv_c_compiler_gnu=$ac_compiler_gnu
2310
2311fi
2312echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314GCC=`test $ac_compiler_gnu = yes && echo yes`
2315ac_test_CFLAGS=${CFLAGS+set}
2316ac_save_CFLAGS=$CFLAGS
2317CFLAGS="-g"
2318echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320if test "${ac_cv_prog_cc_g+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323 cat >conftest.$ac_ext <<_ACEOF
2324#line $LINENO "configure"
2325#include "confdefs.h"
2326
2327#ifdef F77_DUMMY_MAIN
2328# ifdef __cplusplus
2329 extern "C"
2330# endif
2331 int F77_DUMMY_MAIN() { return 1; }
2332#endif
2333int
2334main ()
2335{
2336
2337 ;
2338 return 0;
2339}
2340_ACEOF
2341rm -f conftest.$ac_objext
2342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 ac_cv_prog_cc_g=yes
2354else
2355 echo "$as_me: failed program was:" >&5
2356cat conftest.$ac_ext >&5
2357ac_cv_prog_cc_g=no
2358fi
2359rm -f conftest.$ac_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS=$ac_save_CFLAGS
2365elif test $ac_cv_prog_cc_g = yes; then
2366 if test "$GCC" = yes; then
2367 CFLAGS="-g -O2"
2368 else
2369 CFLAGS="-g"
2370 fi
2371else
2372 if test "$GCC" = yes; then
2373 CFLAGS="-O2"
2374 else
2375 CFLAGS=
2376 fi
2377fi
2378# Some people use a C++ compiler to compile C. Since we use `exit',
2379# in C++ we need to declare it. In case someone uses the same compiler
2380# for both compiling C and C++ we need to have the C++ compiler decide
2381# the declaration of exit, since it's the most demanding environment.
2382cat >conftest.$ac_ext <<_ACEOF
2383#ifndef __cplusplus
2384 choke me
2385#endif
2386_ACEOF
2387rm -f conftest.$ac_objext
2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389 (eval $ac_compile) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 (eval $ac_try) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2399 for ac_declaration in \
2400 ''\
2401 '#include <stdlib.h>' \
2402 'extern "C" void std::exit (int) throw (); using std::exit;' \
2403 'extern "C" void std::exit (int); using std::exit;' \
2404 'extern "C" void exit (int) throw ();' \
2405 'extern "C" void exit (int);' \
2406 'void exit (int);'
2407do
2408 cat >conftest.$ac_ext <<_ACEOF
2409#line $LINENO "configure"
2410#include "confdefs.h"
2411#include <stdlib.h>
2412$ac_declaration
2413#ifdef F77_DUMMY_MAIN
2414# ifdef __cplusplus
2415 extern "C"
2416# endif
2417 int F77_DUMMY_MAIN() { return 1; }
2418#endif
2419int
2420main ()
2421{
2422exit (42);
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429 (eval $ac_compile) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 :
2440else
2441 echo "$as_me: failed program was:" >&5
2442cat conftest.$ac_ext >&5
2443continue
2444fi
2445rm -f conftest.$ac_objext conftest.$ac_ext
2446 cat >conftest.$ac_ext <<_ACEOF
2447#line $LINENO "configure"
2448#include "confdefs.h"
2449$ac_declaration
2450#ifdef F77_DUMMY_MAIN
2451# ifdef __cplusplus
2452 extern "C"
2453# endif
2454 int F77_DUMMY_MAIN() { return 1; }
2455#endif
2456int
2457main ()
2458{
2459exit (42);
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466 (eval $ac_compile) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 break
2477else
2478 echo "$as_me: failed program was:" >&5
2479cat conftest.$ac_ext >&5
2480fi
2481rm -f conftest.$ac_objext conftest.$ac_ext
2482done
2483rm -f conftest*
2484if test -n "$ac_declaration"; then
2485 echo '#ifdef __cplusplus' >>confdefs.h
2486 echo $ac_declaration >>confdefs.h
2487 echo '#endif' >>confdefs.h
2488fi
2489
2490else
2491 echo "$as_me: failed program was:" >&5
2492cat conftest.$ac_ext >&5
2493fi
2494rm -f conftest.$ac_objext conftest.$ac_ext
2495ac_ext=c
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501ac_ext=c
2502ac_cpp='$CPP $CPPFLAGS'
2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2507echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2508# On Suns, sometimes $CPP names a directory.
2509if test -n "$CPP" && test -d "$CPP"; then
2510 CPP=
2511fi
2512if test -z "$CPP"; then
2513 if test "${ac_cv_prog_CPP+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515else
2516 # Double quotes because CPP needs to be expanded
2517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518 do
2519 ac_preproc_ok=false
2520for ac_c_preproc_warn_flag in '' yes
2521do
2522 # Use a header file that comes with gcc, so configuring glibc
2523 # with a fresh cross-compiler works.
2524 # On the NeXT, cc -E runs the code through the compiler's parser,
2525 # not just through cpp. "Syntax error" is here to catch this case.
2526 cat >conftest.$ac_ext <<_ACEOF
2527#line $LINENO "configure"
2528#include "confdefs.h"
2529#include <assert.h>
2530 Syntax error
2531_ACEOF
2532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534 ac_status=$?
2535 egrep -v '^ *\+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } >/dev/null; then
2540 if test -s conftest.err; then
2541 ac_cpp_err=$ac_c_preproc_warn_flag
2542 else
2543 ac_cpp_err=
2544 fi
2545else
2546 ac_cpp_err=yes
2547fi
2548if test -z "$ac_cpp_err"; then
2549 :
2550else
2551 echo "$as_me: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 # Broken: fails on valid input.
2554continue
2555fi
2556rm -f conftest.err conftest.$ac_ext
2557
2558 # OK, works on sane cases. Now check whether non-existent headers
2559 # can be detected and how.
2560 cat >conftest.$ac_ext <<_ACEOF
2561#line $LINENO "configure"
2562#include "confdefs.h"
2563#include <ac_nonexistent.h>
2564_ACEOF
2565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 ac_status=$?
2568 egrep -v '^ *\+' conftest.er1 >conftest.err
2569 rm -f conftest.er1
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2575 else
2576 ac_cpp_err=
2577 fi
2578else
2579 ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582 # Broken: success on invalid input.
2583continue
2584else
2585 echo "$as_me: failed program was:" >&5
2586 cat conftest.$ac_ext >&5
2587 # Passes both tests.
2588ac_preproc_ok=:
2589break
2590fi
2591rm -f conftest.err conftest.$ac_ext
2592
2593done
2594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2595rm -f conftest.err conftest.$ac_ext
2596if $ac_preproc_ok; then
2597 break
2598fi
2599
2600 done
2601 ac_cv_prog_CPP=$CPP
2602
2603fi
2604 CPP=$ac_cv_prog_CPP
2605else
2606 ac_cv_prog_CPP=$CPP
2607fi
2608echo "$as_me:$LINENO: result: $CPP" >&5
2609echo "${ECHO_T}$CPP" >&6
2610ac_preproc_ok=false
2611for ac_c_preproc_warn_flag in '' yes
2612do
2613 # Use a header file that comes with gcc, so configuring glibc
2614 # with a fresh cross-compiler works.
2615 # On the NeXT, cc -E runs the code through the compiler's parser,
2616 # not just through cpp. "Syntax error" is here to catch this case.
2617 cat >conftest.$ac_ext <<_ACEOF
2618#line $LINENO "configure"
2619#include "confdefs.h"
2620#include <assert.h>
2621 Syntax error
2622_ACEOF
2623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2625 ac_status=$?
2626 egrep -v '^ *\+' conftest.er1 >conftest.err
2627 rm -f conftest.er1
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } >/dev/null; then
2631 if test -s conftest.err; then
2632 ac_cpp_err=$ac_c_preproc_warn_flag
2633 else
2634 ac_cpp_err=
2635 fi
2636else
2637 ac_cpp_err=yes
2638fi
2639if test -z "$ac_cpp_err"; then
2640 :
2641else
2642 echo "$as_me: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2644 # Broken: fails on valid input.
2645continue
2646fi
2647rm -f conftest.err conftest.$ac_ext
2648
2649 # OK, works on sane cases. Now check whether non-existent headers
2650 # can be detected and how.
2651 cat >conftest.$ac_ext <<_ACEOF
2652#line $LINENO "configure"
2653#include "confdefs.h"
2654#include <ac_nonexistent.h>
2655_ACEOF
2656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2658 ac_status=$?
2659 egrep -v '^ *\+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } >/dev/null; then
2664 if test -s conftest.err; then
2665 ac_cpp_err=$ac_c_preproc_warn_flag
2666 else
2667 ac_cpp_err=
2668 fi
2669else
2670 ac_cpp_err=yes
2671fi
2672if test -z "$ac_cpp_err"; then
2673 # Broken: success on invalid input.
2674continue
2675else
2676 echo "$as_me: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 # Passes both tests.
2679ac_preproc_ok=:
2680break
2681fi
2682rm -f conftest.err conftest.$ac_ext
2683
2684done
2685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2686rm -f conftest.err conftest.$ac_ext
2687if $ac_preproc_ok; then
2688 :
2689else
2690 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2691echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2692 { (exit 1); exit 1; }; }
2693fi
2694
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701
2702if test "$GCC" != "yes"
2703then
2704 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2705echo "$as_me: error: gcc required but not found" >&2;}
2706 { (exit 1); exit 1; }; }
2707fi
2708
2709if test "$GXX" != "yes"
2710then
2711 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2712echo "$as_me: error: g++ required but not found" >&2;}
2713 { (exit 1); exit 1; }; }
2714fi
2715
2716 echo "$as_me:$LINENO: checking for GNU make" >&5
2717echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2718if test "${_cv_gnu_make_command+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 _cv_gnu_make_command='' ;
2722 for a in "$MAKE" make gmake gnumake ; do
2723 if test -z "$a" ; then continue ; fi ;
2724 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
2725 _cv_gnu_make_command=$a ;
2726 break;
2727 fi
2728 done ;
2729
2730fi
2731echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2732echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2733 if test "x$_cv_gnu_make_command" != "x" ; then
2734 ifGNUmake='' ;
2735 else
2736 ifGNUmake='#' ;
2737 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2738echo "${ECHO_T}\"Not found\"" >&6;
2739 fi
2740
2741
2742if test -z "$_cv_gnu_make_command"
2743then
2744 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2745echo "$as_me: error: GNU Make required but not found" >&2;}
2746 { (exit 1); exit 1; }; }
2747fi
2748
2749
2750echo "$as_me:$LINENO: checking " >&5
2751echo $ECHO_N "checking ... $ECHO_C" >&6
2752if test "${ac_cv_has_flex+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754else
2755 for ac_prog in flex lex
2756do
2757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2758set dummy $ac_prog; ac_word=$2
2759echo "$as_me:$LINENO: checking for $ac_word" >&5
2760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761if test "${ac_cv_prog_LEX+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763else
2764 if test -n "$LEX"; then
2765 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774 ac_cv_prog_LEX="$ac_prog"
2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778done
2779done
2780
2781fi
2782fi
2783LEX=$ac_cv_prog_LEX
2784if test -n "$LEX"; then
2785 echo "$as_me:$LINENO: result: $LEX" >&5
2786echo "${ECHO_T}$LEX" >&6
2787else
2788 echo "$as_me:$LINENO: result: no" >&5
2789echo "${ECHO_T}no" >&6
2790fi
2791
2792 test -n "$LEX" && break
2793done
2794test -n "$LEX" || LEX=":"
2795
2796if test -z "$LEXLIB"
2797then
2798 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2799echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2800if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802else
2803 ac_check_lib_save_LIBS=$LIBS
2804LIBS="-lfl $LIBS"
2805cat >conftest.$ac_ext <<_ACEOF
2806#line $LINENO "configure"
2807#include "confdefs.h"
2808
2809/* Override any gcc2 internal prototype to avoid an error. */
2810#ifdef __cplusplus
2811extern "C"
2812#endif
2813/* We use char because int might match the return type of a gcc2
2814 builtin and then its argument prototype would still apply. */
2815char yywrap ();
2816#ifdef F77_DUMMY_MAIN
2817# ifdef __cplusplus
2818 extern "C"
2819# endif
2820 int F77_DUMMY_MAIN() { return 1; }
2821#endif
2822int
2823main ()
2824{
2825yywrap ();
2826 ;
2827 return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext conftest$ac_exeext
2831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832 (eval $ac_link) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -s conftest$ac_exeext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_lib_fl_yywrap=yes
2843else
2844 echo "$as_me: failed program was:" >&5
2845cat conftest.$ac_ext >&5
2846ac_cv_lib_fl_yywrap=no
2847fi
2848rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2849LIBS=$ac_check_lib_save_LIBS
2850fi
2851echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2852echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2853if test $ac_cv_lib_fl_yywrap = yes; then
2854 LEXLIB="-lfl"
2855else
2856 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2857echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2858if test "${ac_cv_lib_l_yywrap+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861 ac_check_lib_save_LIBS=$LIBS
2862LIBS="-ll $LIBS"
2863cat >conftest.$ac_ext <<_ACEOF
2864#line $LINENO "configure"
2865#include "confdefs.h"
2866
2867/* Override any gcc2 internal prototype to avoid an error. */
2868#ifdef __cplusplus
2869extern "C"
2870#endif
2871/* We use char because int might match the return type of a gcc2
2872 builtin and then its argument prototype would still apply. */
2873char yywrap ();
2874#ifdef F77_DUMMY_MAIN
2875# ifdef __cplusplus
2876 extern "C"
2877# endif
2878 int F77_DUMMY_MAIN() { return 1; }
2879#endif
2880int
2881main ()
2882{
2883yywrap ();
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext conftest$ac_exeext
2889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2890 (eval $ac_link) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } &&
2894 { ac_try='test -s conftest$ac_exeext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 ac_cv_lib_l_yywrap=yes
2901else
2902 echo "$as_me: failed program was:" >&5
2903cat conftest.$ac_ext >&5
2904ac_cv_lib_l_yywrap=no
2905fi
2906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2907LIBS=$ac_check_lib_save_LIBS
2908fi
2909echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2910echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2911if test $ac_cv_lib_l_yywrap = yes; then
2912 LEXLIB="-ll"
2913fi
2914
2915fi
2916
2917fi
2918
2919if test "x$LEX" != "x:"; then
2920 echo "$as_me:$LINENO: checking lex output file root" >&5
2921echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2922if test "${ac_cv_prog_lex_root+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 # The minimal lex program is just a single line: %%. But some broken lexes
2926# (Solaris, I think it was) want two %% lines, so accommodate them.
2927cat >conftest.l <<_ACEOF
2928%%
2929%%
2930_ACEOF
2931{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2932 (eval $LEX conftest.l) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936if test -f lex.yy.c; then
2937 ac_cv_prog_lex_root=lex.yy
2938elif test -f lexyy.c; then
2939 ac_cv_prog_lex_root=lexyy
2940else
2941 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2942echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2943 { (exit 1); exit 1; }; }
2944fi
2945fi
2946echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2947echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2948rm -f conftest.l
2949LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2950
2951echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2952echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2953if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955else
2956 # POSIX says lex can declare yytext either as a pointer or an array; the
2957# default is implementation-dependent. Figure out which it is, since
2958# not all implementations provide the %pointer and %array declarations.
2959ac_cv_prog_lex_yytext_pointer=no
2960echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2961ac_save_LIBS=$LIBS
2962LIBS="$LIBS $LEXLIB"
2963cat >conftest.$ac_ext <<_ACEOF
2964`cat $LEX_OUTPUT_ROOT.c`
2965_ACEOF
2966rm -f conftest.$ac_objext conftest$ac_exeext
2967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 ac_cv_prog_lex_yytext_pointer=yes
2979else
2980 echo "$as_me: failed program was:" >&5
2981cat conftest.$ac_ext >&5
2982fi
2983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2984LIBS=$ac_save_LIBS
2985rm -f "${LEX_OUTPUT_ROOT}.c"
2986
2987fi
2988echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2989echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2990if test $ac_cv_prog_lex_yytext_pointer = yes; then
2991
2992cat >>confdefs.h <<\_ACEOF
2993#define YYTEXT_POINTER 1
2994_ACEOF
2995
2996fi
2997
2998fi
2999
3000fi
3001echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3002echo "${ECHO_T}$ac_cv_has_flex" >&6
3003if test "$LEX" != "flex"; then
3004 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3005echo "$as_me: error: flex not found but required" >&2;}
3006 { (exit 1); exit 1; }; }
3007fi
3008
3009echo "$as_me:$LINENO: checking " >&5
3010echo $ECHO_N "checking ... $ECHO_C" >&6
3011if test "${ac_cv_has_bison+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013else
3014 for ac_prog in 'bison -y' byacc
3015do
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017set dummy $ac_prog; ac_word=$2
3018echo "$as_me:$LINENO: checking for $ac_word" >&5
3019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020if test "${ac_cv_prog_YACC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 if test -n "$YACC"; then
3024 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3025else
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_YACC="$ac_prog"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037done
3038done
3039
3040fi
3041fi
3042YACC=$ac_cv_prog_YACC
3043if test -n "$YACC"; then
3044 echo "$as_me:$LINENO: result: $YACC" >&5
3045echo "${ECHO_T}$YACC" >&6
3046else
3047 echo "$as_me:$LINENO: result: no" >&5
3048echo "${ECHO_T}no" >&6
3049fi
3050
3051 test -n "$YACC" && break
3052done
3053test -n "$YACC" || YACC="yacc"
3054
3055
3056fi
3057echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3058echo "${ECHO_T}$ac_cv_has_bison" >&6
3059if test "$YACC" != "bison -y"; then
3060 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3061echo "$as_me: error: bison not found but required" >&2;}
3062 { (exit 1); exit 1; }; }
3063else
3064 YACC=bison
3065
3066fi
3067
3068
3069# Check whether --enable-shared or --disable-shared was given.
3070if test "${enable_shared+set}" = set; then
3071 enableval="$enable_shared"
3072 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003073 case $enableval in
3074 yes) enable_shared=yes ;;
3075 no) enable_shared=no ;;
3076 *)
3077 enable_shared=no
3078 # Look at the argument we got. We use all the common list separators.
3079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3080 for pkg in $enableval; do
3081 IFS="$lt_save_ifs"
3082 if test "X$pkg" = "X$p"; then
3083 enable_shared=yes
3084 fi
3085 done
3086 IFS="$lt_save_ifs"
3087 ;;
3088 esac
John Criswell7a73b802003-06-30 21:59:07 +00003089else
3090 enable_shared=yes
3091fi;
John Criswell47fdd832003-07-14 16:52:07 +00003092
John Criswell7a73b802003-06-30 21:59:07 +00003093# Check whether --enable-static or --disable-static was given.
3094if test "${enable_static+set}" = set; then
3095 enableval="$enable_static"
3096 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003097 case $enableval in
3098 yes) enable_static=yes ;;
3099 no) enable_static=no ;;
3100 *)
3101 enable_static=no
3102 # Look at the argument we got. We use all the common list separators.
3103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3104 for pkg in $enableval; do
3105 IFS="$lt_save_ifs"
3106 if test "X$pkg" = "X$p"; then
3107 enable_static=yes
3108 fi
3109 done
3110 IFS="$lt_save_ifs"
3111 ;;
3112 esac
John Criswell7a73b802003-06-30 21:59:07 +00003113else
3114 enable_static=yes
3115fi;
John Criswell47fdd832003-07-14 16:52:07 +00003116
John Criswell7a73b802003-06-30 21:59:07 +00003117# Check whether --enable-fast-install or --disable-fast-install was given.
3118if test "${enable_fast_install+set}" = set; then
3119 enableval="$enable_fast_install"
3120 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003121 case $enableval in
3122 yes) enable_fast_install=yes ;;
3123 no) enable_fast_install=no ;;
3124 *)
3125 enable_fast_install=no
3126 # Look at the argument we got. We use all the common list separators.
3127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128 for pkg in $enableval; do
3129 IFS="$lt_save_ifs"
3130 if test "X$pkg" = "X$p"; then
3131 enable_fast_install=yes
3132 fi
3133 done
3134 IFS="$lt_save_ifs"
3135 ;;
3136 esac
John Criswell7a73b802003-06-30 21:59:07 +00003137else
3138 enable_fast_install=yes
3139fi;
John Criswell47fdd832003-07-14 16:52:07 +00003140
3141echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3142echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3143if test "${lt_cv_path_SED+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146 # Loop through the user's path and test for sed and gsed.
3147# Then use that list of sed's as ones to test for truncation.
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for lt_ac_prog in sed gsed; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3157 fi
3158 done
3159 done
3160done
3161lt_ac_max=0
3162lt_ac_count=0
3163# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3164# along with /bin/sed that truncates output.
3165for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3166 test ! -f $lt_ac_sed && break
3167 cat /dev/null > conftest.in
3168 lt_ac_count=0
3169 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3170 # Check for GNU sed and select it if it is found.
3171 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3172 lt_cv_path_SED=$lt_ac_sed
3173 break
3174 fi
3175 while true; do
3176 cat conftest.in conftest.in >conftest.tmp
3177 mv conftest.tmp conftest.in
3178 cp conftest.in conftest.nl
3179 echo >>conftest.nl
3180 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3181 cmp -s conftest.out conftest.nl || break
3182 # 10000 chars as input seems more than enough
3183 test $lt_ac_count -gt 10 && break
3184 lt_ac_count=`expr $lt_ac_count + 1`
3185 if test $lt_ac_count -gt $lt_ac_max; then
3186 lt_ac_max=$lt_ac_count
3187 lt_cv_path_SED=$lt_ac_sed
3188 fi
3189 done
3190done
3191SED=$lt_cv_path_SED
3192
John Criswell7a73b802003-06-30 21:59:07 +00003193fi
3194
John Criswell47fdd832003-07-14 16:52:07 +00003195echo "$as_me:$LINENO: result: $SED" >&5
3196echo "${ECHO_T}$SED" >&6
3197
3198echo "$as_me:$LINENO: checking for egrep" >&5
3199echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3200if test "${ac_cv_prog_egrep+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3204 then ac_cv_prog_egrep='grep -E'
3205 else ac_cv_prog_egrep='egrep'
3206 fi
3207fi
3208echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3209echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3210 EGREP=$ac_cv_prog_egrep
3211
3212
John Criswell7a73b802003-06-30 21:59:07 +00003213
3214# Check whether --with-gnu-ld or --without-gnu-ld was given.
3215if test "${with_gnu_ld+set}" = set; then
3216 withval="$with_gnu_ld"
3217 test "$withval" = no || with_gnu_ld=yes
3218else
3219 with_gnu_ld=no
3220fi;
3221ac_prog=ld
3222if test "$GCC" = yes; then
3223 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003224 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3225echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003226 case $host in
3227 *-*-mingw*)
3228 # gcc leaves a trailing carriage return which upsets mingw
3229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3230 *)
3231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3232 esac
3233 case $ac_prog in
3234 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003235 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003236 re_direlt='/[^/][^/]*/\.\./'
3237 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003238 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003239 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003240 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003241 done
3242 test -z "$LD" && LD="$ac_prog"
3243 ;;
3244 "")
3245 # If it fails, then pretend we aren't using GCC.
3246 ac_prog=ld
3247 ;;
3248 *)
3249 # If it is relative, then search for the first ld in PATH.
3250 with_gnu_ld=unknown
3251 ;;
3252 esac
3253elif test "$with_gnu_ld" = yes; then
3254 echo "$as_me:$LINENO: checking for GNU ld" >&5
3255echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3256else
3257 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3258echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3259fi
3260if test "${lt_cv_path_LD+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003265 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003266 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003267 test -z "$ac_dir" && ac_dir=.
3268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3269 lt_cv_path_LD="$ac_dir/$ac_prog"
3270 # Check to see if the program is GNU ld. I'd rather use --version,
3271 # but apparently some GNU ld's only accept -v.
3272 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3274 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003275 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003276 ;;
3277 *)
John Criswell7a73b802003-06-30 21:59:07 +00003278 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003279 ;;
3280 esac
John Criswell7a73b802003-06-30 21:59:07 +00003281 fi
3282 done
John Criswell47fdd832003-07-14 16:52:07 +00003283 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003284else
3285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3286fi
3287fi
3288
3289LD="$lt_cv_path_LD"
3290if test -n "$LD"; then
3291 echo "$as_me:$LINENO: result: $LD" >&5
3292echo "${ECHO_T}$LD" >&6
3293else
3294 echo "$as_me:$LINENO: result: no" >&5
3295echo "${ECHO_T}no" >&6
3296fi
3297test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3298echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3299 { (exit 1); exit 1; }; }
3300echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3301echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3302if test "${lt_cv_prog_gnu_ld+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003306case `"$LD" -v 2>&1 </dev/null` in
3307*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003308 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003309 ;;
3310*)
John Criswell7a73b802003-06-30 21:59:07 +00003311 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003312 ;;
3313esac
John Criswell7a73b802003-06-30 21:59:07 +00003314fi
3315echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3316echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3317with_gnu_ld=$lt_cv_prog_gnu_ld
3318
3319
3320echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3321echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3322if test "${lt_cv_ld_reload_flag+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325 lt_cv_ld_reload_flag='-r'
3326fi
3327echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3328echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3329reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003330case $reload_flag in
3331"" | " "*) ;;
3332*) reload_flag=" $reload_flag" ;;
3333esac
3334reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003335
3336echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3337echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3338if test "${lt_cv_path_NM+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341 if test -n "$NM"; then
3342 # Let the user override the test.
3343 lt_cv_path_NM="$NM"
3344else
John Criswell47fdd832003-07-14 16:52:07 +00003345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003346 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003347 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003348 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003349 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3350 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003351 # Check to see if the nm accepts a BSD-compat flag.
3352 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3353 # nm: unknown option "B" ignored
3354 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003355 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3356 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003357 lt_cv_path_NM="$tmp_nm -B"
3358 break
John Criswell47fdd832003-07-14 16:52:07 +00003359 ;;
3360 *)
3361 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3362 */dev/null*)
3363 lt_cv_path_NM="$tmp_nm -p"
3364 break
3365 ;;
3366 *)
3367 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3368 continue # so that we can try to find one that supports BSD flags
3369 ;;
3370 esac
3371 esac
John Criswell7a73b802003-06-30 21:59:07 +00003372 fi
3373 done
John Criswell47fdd832003-07-14 16:52:07 +00003374 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003375 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3376fi
3377fi
John Criswell47fdd832003-07-14 16:52:07 +00003378echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3379echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003380NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003381
3382echo "$as_me:$LINENO: checking whether ln -s works" >&5
3383echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3384LN_S=$as_ln_s
3385if test "$LN_S" = "ln -s"; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387echo "${ECHO_T}yes" >&6
3388else
3389 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3390echo "${ECHO_T}no, using $LN_S" >&6
3391fi
3392
John Criswell47fdd832003-07-14 16:52:07 +00003393echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3394echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003395if test "${lt_cv_deplibs_check_method+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397else
3398 lt_cv_file_magic_cmd='$MAGIC_CMD'
3399lt_cv_file_magic_test_file=
3400lt_cv_deplibs_check_method='unknown'
3401# Need to set the preceding variable on all platforms that support
3402# interlibrary dependencies.
3403# 'none' -- dependencies not supported.
3404# `unknown' -- same as none, but documents that we really don't know.
3405# 'pass_all' -- all dependencies passed with no checks.
3406# 'test_compile' -- check by making test program.
3407# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003408# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003409# If you have `file' or equivalent on your system and you're not sure
3410# whether `pass_all' will *always* work, you probably want this one.
3411
3412case $host_os in
3413aix4* | aix5*)
3414 lt_cv_deplibs_check_method=pass_all
3415 ;;
3416
3417beos*)
3418 lt_cv_deplibs_check_method=pass_all
3419 ;;
3420
3421bsdi4*)
3422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3423 lt_cv_file_magic_cmd='/usr/bin/file -L'
3424 lt_cv_file_magic_test_file=/shlib/libc.so
3425 ;;
3426
3427cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003428 # win32_libid is a shell function defined in ltmain.sh
3429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3430 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003431 ;;
3432
3433darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003434 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003435 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3436 lt_cv_file_magic_cmd='/usr/bin/file -L'
3437 case "$host_os" in
3438 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003439 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003440 ;;
3441 *) # Darwin 1.3 on
3442 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3443 ;;
3444 esac
John Criswell47fdd832003-07-14 16:52:07 +00003445 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003446 ;;
3447
3448freebsd*)
3449 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3450 case $host_cpu in
3451 i*86 )
3452 # Not sure whether the presence of OpenBSD here was a mistake.
3453 # Let's accept both of them until this is cleared up.
3454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3455 lt_cv_file_magic_cmd=/usr/bin/file
3456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3457 ;;
3458 esac
3459 else
3460 lt_cv_deplibs_check_method=pass_all
3461 fi
3462 ;;
3463
3464gnu*)
3465 lt_cv_deplibs_check_method=pass_all
3466 ;;
3467
John Criswell47fdd832003-07-14 16:52:07 +00003468hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003469 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003470 case "$host_cpu" in
3471 ia64*)
3472 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3474 ;;
3475 hppa*64*)
3476 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]'
3477 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3478 ;;
3479 *)
3480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3481 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3482 ;;
3483 esac
John Criswell7a73b802003-06-30 21:59:07 +00003484 ;;
3485
John Criswell47fdd832003-07-14 16:52:07 +00003486irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003487 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003488 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003489 # this will be overridden with pass_all, but let us keep it just in case
3490 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3491 ;;
3492 *)
3493 case $LD in
3494 *-32|*"-32 ") libmagic=32-bit;;
3495 *-n32|*"-n32 ") libmagic=N32;;
3496 *-64|*"-64 ") libmagic=64-bit;;
3497 *) libmagic=never-match;;
3498 esac
3499 # this will be overridden with pass_all, but let us keep it just in case
3500 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3501 ;;
3502 esac
3503 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3504 lt_cv_deplibs_check_method=pass_all
3505 ;;
3506
3507# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003508linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003509 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00003510 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003511 lt_cv_deplibs_check_method=pass_all ;;
3512 *)
3513 # glibc up to 2.1.1 does not perform some relocations on ARM
3514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3515 esac
3516 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3517 ;;
3518
3519netbsd*)
3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003522 else
John Criswell47fdd832003-07-14 16:52:07 +00003523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003524 fi
3525 ;;
3526
3527newos6*)
3528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3529 lt_cv_file_magic_cmd=/usr/bin/file
3530 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3531 ;;
3532
John Criswell47fdd832003-07-14 16:52:07 +00003533nto-qnx)
3534 lt_cv_deplibs_check_method=unknown
3535 ;;
3536
John Criswell7a73b802003-06-30 21:59:07 +00003537openbsd*)
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3542 else
3543 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3544 fi
3545 ;;
3546
3547osf3* | osf4* | osf5*)
3548 # this will be overridden with pass_all, but let us keep it just in case
3549 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3550 lt_cv_file_magic_test_file=/shlib/libc.so
3551 lt_cv_deplibs_check_method=pass_all
3552 ;;
3553
3554sco3.2v5*)
3555 lt_cv_deplibs_check_method=pass_all
3556 ;;
3557
3558solaris*)
3559 lt_cv_deplibs_check_method=pass_all
3560 lt_cv_file_magic_test_file=/lib/libc.so
3561 ;;
3562
John Criswell7a73b802003-06-30 21:59:07 +00003563sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3564 case $host_vendor in
3565 motorola)
3566 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]'
3567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3568 ;;
3569 ncr)
3570 lt_cv_deplibs_check_method=pass_all
3571 ;;
3572 sequent)
3573 lt_cv_file_magic_cmd='/bin/file'
3574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3575 ;;
3576 sni)
3577 lt_cv_file_magic_cmd='/bin/file'
3578 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3579 lt_cv_file_magic_test_file=/lib/libc.so
3580 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003581 siemens)
3582 lt_cv_deplibs_check_method=pass_all
3583 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003584 esac
3585 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003586
3587sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3588 lt_cv_deplibs_check_method=pass_all
3589 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003590esac
3591
3592fi
3593echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3594echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3595file_magic_cmd=$lt_cv_file_magic_cmd
3596deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003597test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003598
3599
3600
3601
John Criswell47fdd832003-07-14 16:52:07 +00003602# If no C compiler was specified, use CC.
3603LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00003604
John Criswell47fdd832003-07-14 16:52:07 +00003605# Allow CC to be a program name with arguments.
3606compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00003607
John Criswell47fdd832003-07-14 16:52:07 +00003608# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3609if test "${enable_libtool_lock+set}" = set; then
3610 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00003611
John Criswell47fdd832003-07-14 16:52:07 +00003612fi;
3613test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00003614
John Criswell47fdd832003-07-14 16:52:07 +00003615# Some flags need to be propagated to the compiler or linker for good
3616# libtool support.
3617case $host in
3618ia64-*-hpux*)
3619 # Find out which ABI we are using.
3620 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00003626 case `/usr/bin/file conftest.$ac_objext` in
3627 *ELF-32*)
3628 HPUX_IA64_MODE="32"
3629 ;;
3630 *ELF-64*)
3631 HPUX_IA64_MODE="64"
3632 ;;
3633 esac
3634 fi
3635 rm -rf conftest*
3636 ;;
3637*-*-irix6*)
3638 # Find out which ABI we are using.
3639 echo '#line 3639 "configure"' > conftest.$ac_ext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003644 (exit $ac_status); }; then
3645 if test "$lt_cv_prog_gnu_ld" = yes; then
3646 case `/usr/bin/file conftest.$ac_objext` in
3647 *32-bit*)
3648 LD="${LD-ld} -melf32bsmip"
3649 ;;
3650 *N32*)
3651 LD="${LD-ld} -melf32bmipn32"
3652 ;;
3653 *64-bit*)
3654 LD="${LD-ld} -melf64bmip"
3655 ;;
3656 esac
3657 else
3658 case `/usr/bin/file conftest.$ac_objext` in
3659 *32-bit*)
3660 LD="${LD-ld} -32"
3661 ;;
3662 *N32*)
3663 LD="${LD-ld} -n32"
3664 ;;
3665 *64-bit*)
3666 LD="${LD-ld} -64"
3667 ;;
3668 esac
3669 fi
3670 fi
3671 rm -rf conftest*
3672 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003673
John Criswell47fdd832003-07-14 16:52:07 +00003674x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3675 # Find out which ABI we are using.
3676 echo 'int i;' > conftest.$ac_ext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
3682 case "`/usr/bin/file conftest.o`" in
3683 *32-bit*)
3684 case $host in
3685 x86_64-*linux*)
3686 LD="${LD-ld} -m elf_i386"
3687 ;;
3688 ppc64-*linux*)
3689 LD="${LD-ld} -m elf32ppclinux"
3690 ;;
3691 s390x-*linux*)
3692 LD="${LD-ld} -m elf_s390"
3693 ;;
3694 sparc64-*linux*)
3695 LD="${LD-ld} -m elf32_sparc"
3696 ;;
3697 esac
3698 ;;
3699 *64-bit*)
3700 case $host in
3701 x86_64-*linux*)
3702 LD="${LD-ld} -m elf_x86_64"
3703 ;;
3704 ppc*-*linux*|powerpc*-*linux*)
3705 LD="${LD-ld} -m elf64ppc"
3706 ;;
3707 s390*-*linux*)
3708 LD="${LD-ld} -m elf64_s390"
3709 ;;
3710 sparc*-*linux*)
3711 LD="${LD-ld} -m elf64_sparc"
3712 ;;
3713 esac
3714 ;;
3715 esac
3716 fi
3717 rm -rf conftest*
3718 ;;
3719
3720*-*-sco3.2v5*)
3721 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3722 SAVE_CFLAGS="$CFLAGS"
3723 CFLAGS="$CFLAGS -belf"
3724 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3725echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3726if test "${lt_cv_cc_needs_belf+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729 ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735 cat >conftest.$ac_ext <<_ACEOF
3736#line $LINENO "configure"
3737#include "confdefs.h"
3738
3739#ifdef F77_DUMMY_MAIN
3740# ifdef __cplusplus
3741 extern "C"
3742# endif
3743 int F77_DUMMY_MAIN() { return 1; }
John Criswell7a73b802003-06-30 21:59:07 +00003744#endif
John Criswell47fdd832003-07-14 16:52:07 +00003745int
3746main ()
John Criswell7a73b802003-06-30 21:59:07 +00003747{
John Criswell7a73b802003-06-30 21:59:07 +00003748
John Criswell47fdd832003-07-14 16:52:07 +00003749 ;
3750 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003751}
John Criswell47fdd832003-07-14 16:52:07 +00003752_ACEOF
3753rm -f conftest.$ac_objext conftest$ac_exeext
3754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
John Criswell7a73b802003-06-30 21:59:07 +00003755 (eval $ac_link) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00003758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest$ac_exeext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00003766else
John Criswell47fdd832003-07-14 16:52:07 +00003767 echo "$as_me: failed program was:" >&5
3768cat conftest.$ac_ext >&5
3769lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00003770fi
John Criswell47fdd832003-07-14 16:52:07 +00003771rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3772 ac_ext=c
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
John Criswell7a73b802003-06-30 21:59:07 +00003778fi
John Criswell47fdd832003-07-14 16:52:07 +00003779echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783 CFLAGS="$SAVE_CFLAGS"
3784 fi
3785 ;;
3786
3787esac
3788
3789need_locks="$enable_libtool_lock"
3790
John Criswell7a73b802003-06-30 21:59:07 +00003791
3792
3793echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3794echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3795if test "${ac_cv_header_stdc+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 cat >conftest.$ac_ext <<_ACEOF
3799#line $LINENO "configure"
3800#include "confdefs.h"
3801#include <stdlib.h>
3802#include <stdarg.h>
3803#include <string.h>
3804#include <float.h>
3805
3806_ACEOF
3807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809 ac_status=$?
3810 egrep -v '^ *\+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null; then
3815 if test -s conftest.err; then
3816 ac_cpp_err=$ac_c_preproc_warn_flag
3817 else
3818 ac_cpp_err=
3819 fi
3820else
3821 ac_cpp_err=yes
3822fi
3823if test -z "$ac_cpp_err"; then
3824 ac_cv_header_stdc=yes
3825else
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 ac_cv_header_stdc=no
3829fi
3830rm -f conftest.err conftest.$ac_ext
3831
3832if test $ac_cv_header_stdc = yes; then
3833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834 cat >conftest.$ac_ext <<_ACEOF
3835#line $LINENO "configure"
3836#include "confdefs.h"
3837#include <string.h>
3838
3839_ACEOF
3840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "memchr" >/dev/null 2>&1; then
3842 :
3843else
3844 ac_cv_header_stdc=no
3845fi
3846rm -f conftest*
3847
3848fi
3849
3850if test $ac_cv_header_stdc = yes; then
3851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3852 cat >conftest.$ac_ext <<_ACEOF
3853#line $LINENO "configure"
3854#include "confdefs.h"
3855#include <stdlib.h>
3856
3857_ACEOF
3858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859 egrep "free" >/dev/null 2>&1; then
3860 :
3861else
3862 ac_cv_header_stdc=no
3863fi
3864rm -f conftest*
3865
3866fi
3867
3868if test $ac_cv_header_stdc = yes; then
3869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3870 if test "$cross_compiling" = yes; then
3871 :
3872else
3873 cat >conftest.$ac_ext <<_ACEOF
3874#line $LINENO "configure"
3875#include "confdefs.h"
3876#include <ctype.h>
3877#if ((' ' & 0x0FF) == 0x020)
3878# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3879# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3880#else
3881# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3882 || ('j' <= (c) && (c) <= 'r') \
3883 || ('s' <= (c) && (c) <= 'z'))
3884# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885#endif
3886
3887#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3888int
3889main ()
3890{
3891 int i;
3892 for (i = 0; i < 256; i++)
3893 if (XOR (islower (i), ISLOWER (i))
3894 || toupper (i) != TOUPPER (i))
3895 exit(2);
3896 exit (0);
3897}
3898_ACEOF
3899rm -f conftest$ac_exeext
3900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 (eval $ac_try) 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 :
3911else
3912 echo "$as_me: program exited with status $ac_status" >&5
3913echo "$as_me: failed program was:" >&5
3914cat conftest.$ac_ext >&5
3915( exit $ac_status )
3916ac_cv_header_stdc=no
3917fi
3918rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3919fi
3920fi
3921fi
3922echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3923echo "${ECHO_T}$ac_cv_header_stdc" >&6
3924if test $ac_cv_header_stdc = yes; then
3925
3926cat >>confdefs.h <<\_ACEOF
3927#define STDC_HEADERS 1
3928_ACEOF
3929
3930fi
3931
3932# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943 inttypes.h stdint.h unistd.h
3944do
3945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946echo "$as_me:$LINENO: checking for $ac_header" >&5
3947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 cat >conftest.$ac_ext <<_ACEOF
3952#line $LINENO "configure"
3953#include "confdefs.h"
3954$ac_includes_default
3955
3956#include <$ac_header>
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960 (eval $ac_compile) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 eval "$as_ac_Header=yes"
3971else
3972 echo "$as_me: failed program was:" >&5
3973cat conftest.$ac_ext >&5
3974eval "$as_ac_Header=no"
3975fi
3976rm -f conftest.$ac_objext conftest.$ac_ext
3977fi
3978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980if test `eval echo '${'$as_ac_Header'}'` = yes; then
3981 cat >>confdefs.h <<_ACEOF
3982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983_ACEOF
3984
3985fi
3986
3987done
3988
3989
3990
3991for ac_header in dlfcn.h
3992do
3993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3994if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995 echo "$as_me:$LINENO: checking for $ac_header" >&5
3996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3997if eval "test \"\${$as_ac_Header+set}\" = set"; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999fi
4000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4002else
4003 # Is the header compilable?
4004echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4006cat >conftest.$ac_ext <<_ACEOF
4007#line $LINENO "configure"
4008#include "confdefs.h"
4009$ac_includes_default
4010#include <$ac_header>
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 (eval $ac_try) 2>&5
4021 ac_status=$?
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 ac_header_compiler=yes
4025else
4026 echo "$as_me: failed program was:" >&5
4027cat conftest.$ac_ext >&5
4028ac_header_compiler=no
4029fi
4030rm -f conftest.$ac_objext conftest.$ac_ext
4031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4032echo "${ECHO_T}$ac_header_compiler" >&6
4033
4034# Is the header present?
4035echo "$as_me:$LINENO: checking $ac_header presence" >&5
4036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4037cat >conftest.$ac_ext <<_ACEOF
4038#line $LINENO "configure"
4039#include "confdefs.h"
4040#include <$ac_header>
4041_ACEOF
4042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044 ac_status=$?
4045 egrep -v '^ *\+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } >/dev/null; then
4050 if test -s conftest.err; then
4051 ac_cpp_err=$ac_c_preproc_warn_flag
4052 else
4053 ac_cpp_err=
4054 fi
4055else
4056 ac_cpp_err=yes
4057fi
4058if test -z "$ac_cpp_err"; then
4059 ac_header_preproc=yes
4060else
4061 echo "$as_me: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4063 ac_header_preproc=no
4064fi
4065rm -f conftest.err conftest.$ac_ext
4066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4067echo "${ECHO_T}$ac_header_preproc" >&6
4068
4069# So? What about this header?
4070case $ac_header_compiler:$ac_header_preproc in
4071 yes:no )
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4076 no:yes )
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4083esac
4084echo "$as_me:$LINENO: checking for $ac_header" >&5
4085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 eval "$as_ac_Header=$ac_header_preproc"
4090fi
4091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093
4094fi
4095if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096 cat >>confdefs.h <<_ACEOF
4097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098_ACEOF
4099
4100fi
4101
4102done
4103
John Criswell47fdd832003-07-14 16:52:07 +00004104ac_ext=cc
4105ac_cpp='$CXXCPP $CPPFLAGS'
4106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4109echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4110echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4111if test -z "$CXXCPP"; then
4112 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
John Criswell47fdd832003-07-14 16:52:07 +00004115 # Double quotes because CXXCPP needs to be expanded
4116 for CXXCPP in "$CXX -E" "/lib/cpp"
4117 do
4118 ac_preproc_ok=false
4119for ac_cxx_preproc_warn_flag in '' yes
4120do
4121 # Use a header file that comes with gcc, so configuring glibc
4122 # with a fresh cross-compiler works.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat >conftest.$ac_ext <<_ACEOF
4126#line $LINENO "configure"
4127#include "confdefs.h"
4128#include <assert.h>
4129 Syntax error
4130_ACEOF
4131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4133 ac_status=$?
4134 egrep -v '^ *\+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } >/dev/null; then
4139 if test -s conftest.err; then
4140 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004141 else
John Criswell47fdd832003-07-14 16:52:07 +00004142 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004143 fi
John Criswell47fdd832003-07-14 16:52:07 +00004144else
4145 ac_cpp_err=yes
4146fi
4147if test -z "$ac_cpp_err"; then
4148 :
4149else
4150 echo "$as_me: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 # Broken: fails on valid input.
4153continue
4154fi
4155rm -f conftest.err conftest.$ac_ext
4156
4157 # OK, works on sane cases. Now check whether non-existent headers
4158 # can be detected and how.
4159 cat >conftest.$ac_ext <<_ACEOF
4160#line $LINENO "configure"
4161#include "confdefs.h"
4162#include <ac_nonexistent.h>
4163_ACEOF
4164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4166 ac_status=$?
4167 egrep -v '^ *\+' conftest.er1 >conftest.err
4168 rm -f conftest.er1
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } >/dev/null; then
4172 if test -s conftest.err; then
4173 ac_cpp_err=$ac_cxx_preproc_warn_flag
4174 else
4175 ac_cpp_err=
4176 fi
4177else
4178 ac_cpp_err=yes
4179fi
4180if test -z "$ac_cpp_err"; then
4181 # Broken: success on invalid input.
4182continue
4183else
4184 echo "$as_me: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4186 # Passes both tests.
4187ac_preproc_ok=:
4188break
4189fi
4190rm -f conftest.err conftest.$ac_ext
4191
4192done
4193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194rm -f conftest.err conftest.$ac_ext
4195if $ac_preproc_ok; then
4196 break
John Criswell7a73b802003-06-30 21:59:07 +00004197fi
4198
John Criswell47fdd832003-07-14 16:52:07 +00004199 done
4200 ac_cv_prog_CXXCPP=$CXXCPP
4201
4202fi
4203 CXXCPP=$ac_cv_prog_CXXCPP
4204else
4205 ac_cv_prog_CXXCPP=$CXXCPP
4206fi
4207echo "$as_me:$LINENO: result: $CXXCPP" >&5
4208echo "${ECHO_T}$CXXCPP" >&6
4209ac_preproc_ok=false
4210for ac_cxx_preproc_warn_flag in '' yes
4211do
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat >conftest.$ac_ext <<_ACEOF
4217#line $LINENO "configure"
4218#include "confdefs.h"
4219#include <assert.h>
4220 Syntax error
4221_ACEOF
4222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4224 ac_status=$?
4225 egrep -v '^ *\+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } >/dev/null; then
4230 if test -s conftest.err; then
4231 ac_cpp_err=$ac_cxx_preproc_warn_flag
4232 else
4233 ac_cpp_err=
4234 fi
4235else
4236 ac_cpp_err=yes
4237fi
4238if test -z "$ac_cpp_err"; then
4239 :
4240else
4241 echo "$as_me: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4243 # Broken: fails on valid input.
4244continue
4245fi
4246rm -f conftest.err conftest.$ac_ext
4247
4248 # OK, works on sane cases. Now check whether non-existent headers
4249 # can be detected and how.
4250 cat >conftest.$ac_ext <<_ACEOF
4251#line $LINENO "configure"
4252#include "confdefs.h"
4253#include <ac_nonexistent.h>
4254_ACEOF
4255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4257 ac_status=$?
4258 egrep -v '^ *\+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null; then
4263 if test -s conftest.err; then
4264 ac_cpp_err=$ac_cxx_preproc_warn_flag
4265 else
4266 ac_cpp_err=
4267 fi
4268else
4269 ac_cpp_err=yes
4270fi
4271if test -z "$ac_cpp_err"; then
4272 # Broken: success on invalid input.
4273continue
4274else
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 # Passes both tests.
4278ac_preproc_ok=:
4279break
4280fi
4281rm -f conftest.err conftest.$ac_ext
4282
4283done
4284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285rm -f conftest.err conftest.$ac_ext
4286if $ac_preproc_ok; then
4287 :
4288else
4289 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4290echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4291 { (exit 1); exit 1; }; }
4292fi
4293
4294ac_ext=cc
4295ac_cpp='$CXXCPP $CPPFLAGS'
4296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299
4300
4301ac_ext=f
4302ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4303ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4305if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4307 do
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310echo "$as_me:$LINENO: checking for $ac_word" >&5
4311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312if test "${ac_cv_prog_F77+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315 if test -n "$F77"; then
4316 ac_cv_prog_F77="$F77" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329done
4330done
4331
4332fi
4333fi
4334F77=$ac_cv_prog_F77
4335if test -n "$F77"; then
4336 echo "$as_me:$LINENO: result: $F77" >&5
4337echo "${ECHO_T}$F77" >&6
4338else
4339 echo "$as_me:$LINENO: result: no" >&5
4340echo "${ECHO_T}no" >&6
4341fi
4342
4343 test -n "$F77" && break
4344 done
4345fi
4346if test -z "$F77"; then
4347 ac_ct_F77=$F77
4348 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4349do
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351set dummy $ac_prog; ac_word=$2
4352echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357 if test -n "$ac_ct_F77"; then
4358 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367 ac_cv_prog_ac_ct_F77="$ac_prog"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371done
4372done
4373
4374fi
4375fi
4376ac_ct_F77=$ac_cv_prog_ac_ct_F77
4377if test -n "$ac_ct_F77"; then
4378 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4379echo "${ECHO_T}$ac_ct_F77" >&6
4380else
4381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
4383fi
4384
4385 test -n "$ac_ct_F77" && break
4386done
4387
4388 F77=$ac_ct_F77
4389fi
4390
4391
4392# Provide some information about the compiler.
4393echo "$as_me:4393:" \
4394 "checking for Fortran 77 compiler version" >&5
4395ac_compiler=`set X $ac_compile; echo $2`
4396{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4397 (eval $ac_compiler --version </dev/null >&5) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }
4401{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4402 (eval $ac_compiler -v </dev/null >&5) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }
4406{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4407 (eval $ac_compiler -V </dev/null >&5) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }
4411
4412# If we don't use `.F' as extension, the preprocessor is not run on the
4413# input file.
4414ac_save_ext=$ac_ext
4415ac_ext=F
4416echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4417echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4418if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 cat >conftest.$ac_ext <<_ACEOF
4422 program main
4423#ifndef __GNUC__
4424 choke me
4425#endif
4426
4427 end
4428_ACEOF
4429rm -f conftest.$ac_objext
4430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_compiler_gnu=yes
4442else
4443 echo "$as_me: failed program was:" >&5
4444cat conftest.$ac_ext >&5
4445ac_compiler_gnu=no
4446fi
4447rm -f conftest.$ac_objext conftest.$ac_ext
4448ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4449
4450fi
4451echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4452echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4453ac_ext=$ac_save_ext
4454G77=`test $ac_compiler_gnu = yes && echo yes`
4455ac_test_FFLAGS=${FFLAGS+set}
4456ac_save_FFLAGS=$FFLAGS
4457FFLAGS=
4458echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4459echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4460if test "${ac_cv_prog_f77_g+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462else
4463 FFLAGS=-g
4464cat >conftest.$ac_ext <<_ACEOF
4465 program main
4466
4467 end
4468_ACEOF
4469rm -f conftest.$ac_objext
4470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_prog_f77_g=yes
4482else
4483 echo "$as_me: failed program was:" >&5
4484cat conftest.$ac_ext >&5
4485ac_cv_prog_f77_g=no
4486fi
4487rm -f conftest.$ac_objext conftest.$ac_ext
4488
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4491echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4492if test "$ac_test_FFLAGS" = set; then
4493 FFLAGS=$ac_save_FFLAGS
4494elif test $ac_cv_prog_f77_g = yes; then
4495 if test "$G77" = yes; then
4496 FFLAGS="-g -O2"
4497 else
4498 FFLAGS="-g"
4499 fi
4500else
4501 if test "$G77" = yes; then
4502 FFLAGS="-O2"
4503 else
4504 FFLAGS=
4505 fi
4506fi
4507ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513
4514
4515# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4516
4517# find the maximum length of command line arguments
4518echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4519echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4520if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 i=0
4524 testring="ABCD"
4525
4526 case $build_os in
4527 msdosdjgpp*)
4528 # On DJGPP, this test can blow up pretty badly due to problems in libc
4529 # (any single argument exceeding 2000 bytes causes a buffer overrun
4530 # during glob expansion). Even if it were fixed, the result of this
4531 # check would be larger than it should be.
4532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4533 ;;
4534
4535 gnu*)
4536 # Under GNU Hurd, this test is not required because there is
4537 # no limit to the length of command line arguments.
4538 # Libtool will interpret -1 as no limit whatsoever
4539 lt_cv_sys_max_cmd_len=-1;
4540 ;;
4541
4542 cygwin* | mingw*)
4543 # On Win9x/ME, this test blows up -- it succeeds, but takes
4544 # about 5 minutes as the teststring grows exponentially.
4545 # Worse, since 9x/ME are not pre-emptively multitasking,
4546 # you end up with a "frozen" computer, even though with patience
4547 # the test eventually succeeds (with a max line length of 256k).
4548 # Instead, let's just punt: use the minimum linelength reported by
4549 # all of the supported platforms: 8192 (on NT/2K/XP).
4550 lt_cv_sys_max_cmd_len=8192;
4551 ;;
4552
4553 *)
4554 # If test is not a shell built-in, we'll probably end up computing a
4555 # maximum length that is only half of the actual maximum length, but
4556 # we can't tell.
4557 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4558 = "XX$testring") >/dev/null 2>&1 &&
4559 new_result=`expr "X$testring" : ".*" 2>&1` &&
4560 lt_cv_sys_max_cmd_len=$new_result &&
4561 test $i != 17 # 1/2 MB should be enough
4562 do
4563 i=`expr $i + 1`
4564 testring=$testring$testring
4565 done
4566 testring=
4567 # Add a significant safety factor because C++ compilers can tack on massive
4568 # amounts of additional arguments before passing them to the linker.
4569 # It appears as though 1/2 is a usable value.
4570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4571 ;;
4572 esac
4573
4574fi
4575
4576if test -n $lt_cv_sys_max_cmd_len ; then
4577 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4578echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4579else
4580 echo "$as_me:$LINENO: result: none" >&5
4581echo "${ECHO_T}none" >&6
4582fi
4583
4584
4585
4586
4587# Check for command to grab the raw symbol name followed by C symbol from nm.
4588echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593
4594# These are sane defaults that work on at least a few old systems.
4595# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4596
4597# Character class describing NM global symbol codes.
4598symcode='[BCDEGRST]'
4599
4600# Regexp to match symbols that can be accessed directly from C.
4601sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4602
4603# Transform the above into a raw symbol and a C symbol.
4604symxfrm='\1 \2\3 \3'
4605
4606# Transform an extracted symbol line into a proper C declaration
4607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4608
4609# Transform an extracted symbol line into symbol name and symbol address
4610lt_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'"
4611
4612# Define system-specific variables.
4613case $host_os in
4614aix*)
4615 symcode='[BCDT]'
4616 ;;
4617cygwin* | mingw* | pw32*)
4618 symcode='[ABCDGISTW]'
4619 ;;
4620hpux*) # Its linker distinguishes data from code symbols
4621 if test "$host_cpu" = ia64; then
4622 symcode='[ABCDEGRST]'
4623 fi
4624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4625 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'"
4626 ;;
4627irix* | nonstopux*)
4628 symcode='[BCDEGRST]'
4629 ;;
4630osf*)
4631 symcode='[BCDEGQRST]'
4632 ;;
4633solaris* | sysv5*)
4634 symcode='[BDT]'
4635 ;;
4636sysv4)
4637 symcode='[DFNSTU]'
4638 ;;
4639esac
4640
4641# Handle CRLF in mingw tool chain
4642opt_cr=
4643case $build_os in
4644mingw*)
4645 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4646 ;;
4647esac
4648
4649# If we're using GNU nm, then use its standard symbol codes.
4650case `$NM -V 2>&1` in
4651*GNU* | *'with BFD'*)
4652 symcode='[ABCDGISTW]' ;;
4653esac
4654
4655# Try without a prefix undercore, then with it.
4656for ac_symprfx in "" "_"; do
4657
4658 # Write the raw and C identifiers.
4659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4660
4661 # Check to see that the pipe works correctly.
4662 pipe_works=no
4663
4664 rm -f conftest*
4665 cat > conftest.$ac_ext <<EOF
4666#ifdef __cplusplus
4667extern "C" {
4668#endif
4669char nm_test_var;
4670void nm_test_func(){}
4671#ifdef __cplusplus
4672}
4673#endif
4674int main(){nm_test_var='a';nm_test_func();return(0);}
4675EOF
4676
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 # Now try to grab the symbols.
4683 nlist=conftest.nm
4684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && test -s "$nlist"; then
4689 # Try sorting and uniquifying the output.
4690 if sort "$nlist" | uniq > "$nlist"T; then
4691 mv -f "$nlist"T "$nlist"
4692 else
4693 rm -f "$nlist"T
4694 fi
4695
4696 # Make sure that we snagged all the symbols we need.
4697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4699 cat <<EOF > conftest.$ac_ext
4700#ifdef __cplusplus
4701extern "C" {
4702#endif
4703
4704EOF
4705 # Now generate the symbol file.
4706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4707
4708 cat <<EOF >> conftest.$ac_ext
4709#if defined (__STDC__) && __STDC__
4710# define lt_ptr_t void *
4711#else
4712# define lt_ptr_t char *
4713# define const
4714#endif
4715
4716/* The mapping between symbol names and symbols. */
4717const struct {
4718 const char *name;
4719 lt_ptr_t address;
4720}
4721lt_preloaded_symbols[] =
4722{
4723EOF
4724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4725 cat <<\EOF >> conftest.$ac_ext
4726 {0, (lt_ptr_t) 0}
4727};
4728
4729#ifdef __cplusplus
4730}
4731#endif
4732EOF
4733 # Now try linking the two files.
4734 mv conftest.$ac_objext conftstm.$ac_objext
4735 lt_save_LIBS="$LIBS"
4736 lt_save_CFLAGS="$CFLAGS"
4737 LIBS="conftstm.$ac_objext"
4738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4744 pipe_works=yes
4745 fi
4746 LIBS="$lt_save_LIBS"
4747 CFLAGS="$lt_save_CFLAGS"
4748 else
4749 echo "cannot find nm_test_func in $nlist" >&5
4750 fi
4751 else
4752 echo "cannot find nm_test_var in $nlist" >&5
4753 fi
4754 else
4755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4756 fi
4757 else
4758 echo "$progname: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4760 fi
4761 rm -f conftest* conftst*
4762
4763 # Do not use the global_symbol_pipe unless it works.
4764 if test "$pipe_works" = yes; then
4765 break
4766 else
4767 lt_cv_sys_global_symbol_pipe=
4768 fi
4769done
4770
4771fi
4772
4773if test -z "$lt_cv_sys_global_symbol_pipe"; then
4774 lt_cv_sys_global_symbol_to_cdecl=
4775fi
4776if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4777 echo "$as_me:$LINENO: result: failed" >&5
4778echo "${ECHO_T}failed" >&6
4779else
4780 echo "$as_me:$LINENO: result: ok" >&5
4781echo "${ECHO_T}ok" >&6
4782fi
4783
4784echo "$as_me:$LINENO: checking for objdir" >&5
4785echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4786if test "${lt_cv_objdir+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789 rm -f .libs 2>/dev/null
4790mkdir .libs 2>/dev/null
4791if test -d .libs; then
4792 lt_cv_objdir=.libs
4793else
4794 # MS-DOS does not allow filenames that begin with a dot.
4795 lt_cv_objdir=_libs
4796fi
4797rmdir .libs 2>/dev/null
4798fi
4799echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4800echo "${ECHO_T}$lt_cv_objdir" >&6
4801objdir=$lt_cv_objdir
4802
4803
4804
4805
4806
4807case $host_os in
4808aix3*)
4809 # AIX sometimes has problems with the GCC collect2 program. For some
4810 # reason, if we set the COLLECT_NAMES environment variable, the problems
4811 # vanish in a puff of smoke.
4812 if test "X${COLLECT_NAMES+set}" != Xset; then
4813 COLLECT_NAMES=
4814 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00004815 fi
4816 ;;
4817esac
4818
John Criswell47fdd832003-07-14 16:52:07 +00004819# Sed substitution that helps us do robust quoting. It backslashifies
4820# metacharacters that are still active within double-quoted strings.
4821Xsed='sed -e s/^X//'
4822sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4823
4824# Same as above, but do not quote variable references.
4825double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4826
4827# Sed substitution to delay expansion of an escaped shell variable in a
4828# double_quote_subst'ed string.
4829delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4830
4831# Sed substitution to avoid accidental globbing in evaled expressions
4832no_glob_subst='s/\*/\\\*/g'
4833
4834# Constants:
4835rm="rm -f"
4836
4837# Global variables:
4838default_ofile=libtool
4839can_build_shared=yes
4840
4841# All known linkers require a `.a' archive for static linking (except M$VC,
4842# which needs '.lib').
4843libext=a
4844ltmain="$ac_aux_dir/ltmain.sh"
4845ofile="$default_ofile"
4846with_gnu_ld="$lt_cv_prog_gnu_ld"
4847
4848if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}ar; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_prog_AR+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$AR"; then
4857 ac_cv_prog_AR="$AR" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_AR="${ac_tool_prefix}ar"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872
4873fi
4874fi
4875AR=$ac_cv_prog_AR
4876if test -n "$AR"; then
4877 echo "$as_me:$LINENO: result: $AR" >&5
4878echo "${ECHO_T}$AR" >&6
4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884fi
4885if test -z "$ac_cv_prog_AR"; then
4886 ac_ct_AR=$AR
4887 # Extract the first word of "ar", so it can be a program name with args.
4888set dummy ar; ac_word=$2
4889echo "$as_me:$LINENO: checking for $ac_word" >&5
4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894 if test -n "$ac_ct_AR"; then
4895 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_ac_ct_AR="ar"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909done
4910
4911 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4912fi
4913fi
4914ac_ct_AR=$ac_cv_prog_ac_ct_AR
4915if test -n "$ac_ct_AR"; then
4916 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4917echo "${ECHO_T}$ac_ct_AR" >&6
4918else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921fi
4922
4923 AR=$ac_ct_AR
4924else
4925 AR="$ac_cv_prog_AR"
4926fi
4927
John Criswell7a73b802003-06-30 21:59:07 +00004928if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4930set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4931echo "$as_me:$LINENO: checking for $ac_word" >&5
4932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933if test "${ac_cv_prog_RANLIB+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936 if test -n "$RANLIB"; then
4937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4938else
4939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940for as_dir in $PATH
4941do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950done
4951done
4952
4953fi
4954fi
4955RANLIB=$ac_cv_prog_RANLIB
4956if test -n "$RANLIB"; then
4957 echo "$as_me:$LINENO: result: $RANLIB" >&5
4958echo "${ECHO_T}$RANLIB" >&6
4959else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962fi
4963
4964fi
4965if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968set dummy ranlib; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
4991 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4992fi
4993fi
4994ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995if test -n "$ac_ct_RANLIB"; then
4996 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997echo "${ECHO_T}$ac_ct_RANLIB" >&6
4998else
4999 echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001fi
5002
5003 RANLIB=$ac_ct_RANLIB
5004else
5005 RANLIB="$ac_cv_prog_RANLIB"
5006fi
5007
5008if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5010set dummy ${ac_tool_prefix}strip; ac_word=$2
5011echo "$as_me:$LINENO: checking for $ac_word" >&5
5012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013if test "${ac_cv_prog_STRIP+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015else
5016 if test -n "$STRIP"; then
5017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030done
5031done
5032
5033fi
5034fi
5035STRIP=$ac_cv_prog_STRIP
5036if test -n "$STRIP"; then
5037 echo "$as_me:$LINENO: result: $STRIP" >&5
5038echo "${ECHO_T}$STRIP" >&6
5039else
5040 echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
5042fi
5043
5044fi
5045if test -z "$ac_cv_prog_STRIP"; then
5046 ac_ct_STRIP=$STRIP
5047 # Extract the first word of "strip", so it can be a program name with args.
5048set dummy strip; ac_word=$2
5049echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 if test -n "$ac_ct_STRIP"; then
5055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ac_ct_STRIP="strip"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069done
5070
5071 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5072fi
5073fi
5074ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5075if test -n "$ac_ct_STRIP"; then
5076 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5077echo "${ECHO_T}$ac_ct_STRIP" >&6
5078else
5079 echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081fi
5082
5083 STRIP=$ac_ct_STRIP
5084else
5085 STRIP="$ac_cv_prog_STRIP"
5086fi
5087
5088
John Criswell7a73b802003-06-30 21:59:07 +00005089old_CC="$CC"
5090old_CFLAGS="$CFLAGS"
5091
5092# Set sane defaults for various variables
5093test -z "$AR" && AR=ar
5094test -z "$AR_FLAGS" && AR_FLAGS=cru
5095test -z "$AS" && AS=as
5096test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005097test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005098test -z "$DLLTOOL" && DLLTOOL=dlltool
5099test -z "$LD" && LD=ld
5100test -z "$LN_S" && LN_S="ln -s"
5101test -z "$MAGIC_CMD" && MAGIC_CMD=file
5102test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005103test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005104test -z "$OBJDUMP" && OBJDUMP=objdump
5105test -z "$RANLIB" && RANLIB=:
5106test -z "$STRIP" && STRIP=:
5107test -z "$ac_objext" && ac_objext=o
5108
John Criswell7a73b802003-06-30 21:59:07 +00005109# Determine commands to create old-style static archives.
5110old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5111old_postinstall_cmds='chmod 644 $oldlib'
5112old_postuninstall_cmds=
5113
5114if test -n "$RANLIB"; then
5115 case $host_os in
5116 openbsd*)
5117 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5118 ;;
5119 *)
5120 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5121 ;;
5122 esac
5123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5124fi
5125
John Criswell47fdd832003-07-14 16:52:07 +00005126# Only perform the check for file, if the check method requires it
5127case $deplibs_check_method in
5128file_magic*)
5129 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5130 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5131echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5132if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005134else
John Criswell47fdd832003-07-14 16:52:07 +00005135 case $MAGIC_CMD in
5136[\\/*] | ?:[\\/]*)
5137 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5138 ;;
5139*)
5140 lt_save_MAGIC_CMD="$MAGIC_CMD"
5141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5143 for ac_dir in $ac_dummy; do
5144 IFS="$lt_save_ifs"
5145 test -z "$ac_dir" && ac_dir=.
5146 if test -f $ac_dir/${ac_tool_prefix}file; then
5147 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5148 if test -n "$file_magic_test_file"; then
5149 case $deplibs_check_method in
5150 "file_magic "*)
5151 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5154 $EGREP "$file_magic_regex" > /dev/null; then
5155 :
5156 else
5157 cat <<EOF 1>&2
5158
5159*** Warning: the command libtool uses to detect shared libraries,
5160*** $file_magic_cmd, produces output that libtool cannot recognize.
5161*** The result is that libtool may fail to recognize shared libraries
5162*** as such. This will affect the creation of libtool libraries that
5163*** depend on shared libraries, but programs linked with such libtool
5164*** libraries will work regardless of this problem. Nevertheless, you
5165*** may want to report the problem to your system manager and/or to
5166*** bug-libtool@gnu.org
5167
5168EOF
5169 fi ;;
5170 esac
5171 fi
5172 break
5173 fi
5174 done
5175 IFS="$lt_save_ifs"
5176 MAGIC_CMD="$lt_save_MAGIC_CMD"
5177 ;;
5178esac
John Criswell7a73b802003-06-30 21:59:07 +00005179fi
John Criswell7a73b802003-06-30 21:59:07 +00005180
John Criswell47fdd832003-07-14 16:52:07 +00005181MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5182if test -n "$MAGIC_CMD"; then
5183 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5184echo "${ECHO_T}$MAGIC_CMD" >&6
5185else
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188fi
John Criswell7a73b802003-06-30 21:59:07 +00005189
John Criswell47fdd832003-07-14 16:52:07 +00005190if test -z "$lt_cv_path_MAGIC_CMD"; then
5191 if test -n "$ac_tool_prefix"; then
5192 echo "$as_me:$LINENO: checking for file" >&5
5193echo $ECHO_N "checking for file... $ECHO_C" >&6
5194if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197 case $MAGIC_CMD in
5198[\\/*] | ?:[\\/]*)
5199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5200 ;;
5201*)
5202 lt_save_MAGIC_CMD="$MAGIC_CMD"
5203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5205 for ac_dir in $ac_dummy; do
5206 IFS="$lt_save_ifs"
5207 test -z "$ac_dir" && ac_dir=.
5208 if test -f $ac_dir/file; then
5209 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5210 if test -n "$file_magic_test_file"; then
5211 case $deplibs_check_method in
5212 "file_magic "*)
5213 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5216 $EGREP "$file_magic_regex" > /dev/null; then
5217 :
5218 else
5219 cat <<EOF 1>&2
5220
5221*** Warning: the command libtool uses to detect shared libraries,
5222*** $file_magic_cmd, produces output that libtool cannot recognize.
5223*** The result is that libtool may fail to recognize shared libraries
5224*** as such. This will affect the creation of libtool libraries that
5225*** depend on shared libraries, but programs linked with such libtool
5226*** libraries will work regardless of this problem. Nevertheless, you
5227*** may want to report the problem to your system manager and/or to
5228*** bug-libtool@gnu.org
5229
5230EOF
5231 fi ;;
5232 esac
5233 fi
5234 break
5235 fi
5236 done
5237 IFS="$lt_save_ifs"
5238 MAGIC_CMD="$lt_save_MAGIC_CMD"
5239 ;;
5240esac
5241fi
5242
5243MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5244if test -n "$MAGIC_CMD"; then
5245 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5246echo "${ECHO_T}$MAGIC_CMD" >&6
5247else
5248 echo "$as_me:$LINENO: result: no" >&5
5249echo "${ECHO_T}no" >&6
5250fi
5251
5252 else
5253 MAGIC_CMD=:
5254 fi
5255fi
5256
5257 fi
5258 ;;
5259esac
5260
5261enable_dlopen=no
5262enable_win32_dll=no
5263
5264# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5265if test "${enable_libtool_lock+set}" = set; then
5266 enableval="$enable_libtool_lock"
5267
5268fi;
5269test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5270
John Criswell7a73b802003-06-30 21:59:07 +00005271
5272# Check whether --with-pic or --without-pic was given.
5273if test "${with_pic+set}" = set; then
5274 withval="$with_pic"
5275 pic_mode="$withval"
5276else
5277 pic_mode=default
5278fi;
5279test -z "$pic_mode" && pic_mode=default
5280
John Criswell47fdd832003-07-14 16:52:07 +00005281# Use C for the default configuration in the libtool script
5282tagname=
5283lt_save_CC="$CC"
5284ac_ext=c
5285ac_cpp='$CPP $CPPFLAGS'
5286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289
5290
5291# Source file extension for C test sources.
5292ac_ext=c
5293
5294# Object file extension for compiled C test sources.
5295objext=o
5296objext=$objext
5297
5298# Code to be used in simple compile tests
5299lt_simple_compile_test_code="int some_variable = 0;\n"
5300
5301# Code to be used in simple link tests
5302lt_simple_link_test_code='int main(){return(0);}\n'
5303
5304
5305# If no C compiler was specified, use CC.
5306LTCC=${LTCC-"$CC"}
5307
5308# Allow CC to be a program name with arguments.
5309compiler=$CC
5310
5311
5312#
5313# Check for any special shared library compilation flags.
5314#
5315lt_prog_cc_shlib=
5316if test "$GCC" = no; then
5317 case $host_os in
5318 sco3.2v5*)
5319 lt_prog_cc_shlib='-belf'
5320 ;;
5321 esac
5322fi
5323if test -n "$lt_prog_cc_shlib"; then
5324 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5325echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5326 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5327 else
5328 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5329echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5330 lt_cv_prog_cc_can_build_shared=no
5331 fi
5332fi
5333
5334
5335#
5336# Check to make sure the static flag actually works.
5337#
5338echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5339echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5340if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
John Criswell47fdd832003-07-14 16:52:07 +00005343 lt_prog_compiler_static_works=no
5344 save_LDFLAGS="$LDFLAGS"
5345 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5346 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5348 # The compiler can only warn and ignore the option if not recognized
5349 # So say no if there are warnings
5350 if test -s conftest.err; then
5351 # Append any errors to the config.log.
5352 cat conftest.err 1>&5
5353 else
5354 lt_prog_compiler_static_works=yes
5355 fi
5356 fi
5357 $rm conftest*
5358 LDFLAGS="$save_LDFLAGS"
5359
5360fi
5361echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5362echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5363
5364if test x"$lt_prog_compiler_static_works" = xyes; then
5365 :
5366else
5367 lt_prog_compiler_static=
5368fi
5369
5370
5371
5372## CAVEAT EMPTOR:
5373## There is no encapsulation within the following macros, do not change
5374## the running order or otherwise move them around unless you know exactly
5375## what you are doing...
5376
5377lt_prog_compiler_no_builtin_flag=
5378
5379if test "$GCC" = yes; then
5380 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5381
5382 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5383echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5384if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 lt_cv_prog_compiler_rtti_exceptions=no
5388 ac_outfile=conftest.$ac_objext
5389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5390 lt_compiler_flag="-fno-rtti -fno-exceptions"
5391 # Insert the option either (1) after the last *FLAGS variable, or
5392 # (2) before a word containing "conftest.", or (3) at the end.
5393 # Note that $ac_compile itself does not contain backslashes and begins
5394 # with a dollar sign (not a hyphen), so the echo should work correctly.
5395 # The option is referenced via a variable to avoid confusing sed.
5396 lt_compile=`echo "$ac_compile" | $SED \
5397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5399 -e 's:$: $lt_compiler_flag:'`
5400 (eval echo "\"\$as_me:5400: $lt_compile\"" >&5)
5401 (eval "$lt_compile" 2>conftest.err)
5402 ac_status=$?
5403 cat conftest.err >&5
5404 echo "$as_me:5404: \$? = $ac_status" >&5
5405 if (exit $ac_status) && test -s "$ac_outfile"; then
5406 # The compiler can only warn and ignore the option if not recognized
5407 # So say no if there are warnings
5408 if test ! -s conftest.err; then
5409 lt_cv_prog_compiler_rtti_exceptions=yes
5410 fi
5411 fi
5412 $rm conftest*
5413
5414fi
5415echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5416echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5417
5418if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5419 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5420else
5421 :
5422fi
5423
5424fi
5425
5426lt_prog_compiler_wl=
5427lt_prog_compiler_pic=
5428lt_prog_compiler_static=
5429
5430echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5431echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005432
5433 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005434 lt_prog_compiler_wl='-Wl,'
5435 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005436
5437 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005438 aix*)
5439 # All AIX code is PIC.
5440 if test "$host_cpu" = ia64; then
5441 # AIX 5 now supports IA64 processor
5442 lt_prog_compiler_static='-Bstatic'
5443 fi
John Criswell7a73b802003-06-30 21:59:07 +00005444 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005445
John Criswell7a73b802003-06-30 21:59:07 +00005446 amigaos*)
5447 # FIXME: we need at least 68020 code to build shared libraries, but
5448 # adding the `-m68020' flag to GCC prevents building anything better,
5449 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005451 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005452
5453 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005454 # PIC is the default for these OSes.
5455 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005456
5457 mingw* | pw32* | os2*)
5458 # This hack is so that the source file can tell whether it is being
5459 # built for inclusion in a dll (and should export symbols for example).
5460 lt_prog_compiler_pic='-DDLL_EXPORT'
5461 ;;
5462
John Criswell7a73b802003-06-30 21:59:07 +00005463 darwin* | rhapsody*)
5464 # PIC is the default on this platform
5465 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005466 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005467 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005468
5469 msdosdjgpp*)
5470 # Just because we use GCC doesn't mean we suddenly get shared libraries
5471 # on systems that don't support them.
5472 lt_prog_compiler_can_build_shared=no
5473 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005474 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005475
John Criswell7a73b802003-06-30 21:59:07 +00005476 sysv4*MP*)
5477 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005478 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005479 fi
5480 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005481
5482 hpux*)
5483 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5484 # not for PA HP-UX.
5485 case "$host_cpu" in
5486 hppa*64*|ia64*)
5487 # +Z the default
5488 ;;
5489 *)
5490 lt_prog_compiler_pic='-fPIC'
5491 ;;
5492 esac
5493 ;;
5494
John Criswell7a73b802003-06-30 21:59:07 +00005495 *)
John Criswell47fdd832003-07-14 16:52:07 +00005496 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005497 ;;
5498 esac
5499 else
John Criswell47fdd832003-07-14 16:52:07 +00005500 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005501 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005502 aix*)
5503 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005504 if test "$host_cpu" = ia64; then
5505 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005506 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005507 else
John Criswell47fdd832003-07-14 16:52:07 +00005508 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005509 fi
5510 ;;
5511
John Criswell47fdd832003-07-14 16:52:07 +00005512 mingw* | pw32* | os2*)
5513 # This hack is so that the source file can tell whether it is being
5514 # built for inclusion in a dll (and should export symbols for example).
5515 lt_prog_compiler_pic='-DDLL_EXPORT'
5516 ;;
5517
John Criswell7a73b802003-06-30 21:59:07 +00005518 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00005519 lt_prog_compiler_wl='-Wl,'
5520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5521 # not for PA HP-UX.
5522 case "$host_cpu" in
5523 hppa*64*|ia64*)
5524 # +Z the default
5525 ;;
5526 *)
5527 lt_prog_compiler_pic='+Z'
5528 ;;
5529 esac
5530 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5531 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00005532 ;;
5533
John Criswell47fdd832003-07-14 16:52:07 +00005534 irix5* | irix6* | nonstopux*)
5535 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005536 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00005537 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005538 ;;
5539
5540 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00005541 lt_prog_compiler_pic='-KPIC'
5542 lt_prog_compiler_static='-Bstatic'
5543 ;;
5544
5545 linux*)
5546 case $CC in
5547 icc|ecc)
5548 lt_prog_compiler_wl='-Wl,'
5549 lt_prog_compiler_pic='-KPIC'
5550 lt_prog_compiler_static='-static'
5551 ;;
5552 ccc)
5553 lt_prog_compiler_wl='-Wl,'
5554 # All Alpha code is PIC.
5555 lt_prog_compiler_static='-non_shared'
5556 ;;
5557 esac
John Criswell7a73b802003-06-30 21:59:07 +00005558 ;;
5559
5560 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00005561 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005562 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00005563 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00005564 ;;
5565
5566 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00005567 lt_prog_compiler_pic='-Kpic'
5568 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00005569 ;;
5570
5571 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00005572 lt_prog_compiler_wl='-Wl,'
5573 lt_prog_compiler_pic='-KPIC'
5574 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005575 ;;
5576
5577 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00005578 lt_prog_compiler_wl='-Qoption ld '
5579 lt_prog_compiler_pic='-PIC'
5580 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005581 ;;
5582
5583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00005584 lt_prog_compiler_wl='-Wl,'
5585 lt_prog_compiler_pic='-KPIC'
5586 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005587 ;;
5588
5589 sysv4*MP*)
5590 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00005591 lt_prog_compiler_pic='-Kconform_pic'
5592 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005593 fi
5594 ;;
5595
John Criswell47fdd832003-07-14 16:52:07 +00005596 uts4*)
5597 lt_prog_compiler_pic='-pic'
5598 lt_prog_compiler_static='-Bstatic'
5599 ;;
5600
John Criswell7a73b802003-06-30 21:59:07 +00005601 *)
John Criswell47fdd832003-07-14 16:52:07 +00005602 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005603 ;;
5604 esac
5605 fi
5606
John Criswell47fdd832003-07-14 16:52:07 +00005607echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5608echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005609
John Criswell47fdd832003-07-14 16:52:07 +00005610#
5611# Check to make sure the PIC flag actually works.
5612#
5613if test -n "$lt_prog_compiler_pic"; then
5614 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5615echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5616if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
John Criswell47fdd832003-07-14 16:52:07 +00005619 lt_prog_compiler_pic_works=no
5620 ac_outfile=conftest.$ac_objext
5621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5623 # Insert the option either (1) after the last *FLAGS variable, or
5624 # (2) before a word containing "conftest.", or (3) at the end.
5625 # Note that $ac_compile itself does not contain backslashes and begins
5626 # with a dollar sign (not a hyphen), so the echo should work correctly.
5627 # The option is referenced via a variable to avoid confusing sed.
5628 lt_compile=`echo "$ac_compile" | $SED \
5629 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5631 -e 's:$: $lt_compiler_flag:'`
5632 (eval echo "\"\$as_me:5632: $lt_compile\"" >&5)
5633 (eval "$lt_compile" 2>conftest.err)
5634 ac_status=$?
5635 cat conftest.err >&5
5636 echo "$as_me:5636: \$? = $ac_status" >&5
5637 if (exit $ac_status) && test -s "$ac_outfile"; then
5638 # The compiler can only warn and ignore the option if not recognized
5639 # So say no if there are warnings
5640 if test ! -s conftest.err; then
5641 lt_prog_compiler_pic_works=yes
5642 fi
5643 fi
5644 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00005645
John Criswell47fdd832003-07-14 16:52:07 +00005646fi
5647echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5648echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005649
John Criswell47fdd832003-07-14 16:52:07 +00005650if test x"$lt_prog_compiler_pic_works" = xyes; then
5651 case $lt_prog_compiler_pic in
5652 "" | " "*) ;;
5653 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5654 esac
John Criswell7a73b802003-06-30 21:59:07 +00005655else
John Criswell47fdd832003-07-14 16:52:07 +00005656 lt_prog_compiler_pic=
5657 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005658fi
5659
John Criswell7a73b802003-06-30 21:59:07 +00005660fi
John Criswell47fdd832003-07-14 16:52:07 +00005661case "$host_os" in
5662 # For platforms which do not support PIC, -DPIC is meaningless:
5663 *djgpp*)
5664 lt_prog_compiler_pic=
5665 ;;
5666 *)
5667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5668 ;;
5669esac
John Criswell7a73b802003-06-30 21:59:07 +00005670
John Criswell7a73b802003-06-30 21:59:07 +00005671echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5672echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00005673if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675else
John Criswell47fdd832003-07-14 16:52:07 +00005676 lt_cv_prog_compiler_c_o=no
5677 $rm -r conftest 2>/dev/null
5678 mkdir conftest
5679 cd conftest
5680 mkdir out
5681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005682
John Criswell47fdd832003-07-14 16:52:07 +00005683 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5684 # that will create temporary files in the current directory regardless of
5685 # the output directory. Thus, making CWD read-only will cause this test
5686 # to fail, enabling locking or at least warning the user not to do parallel
5687 # builds.
5688 chmod -w .
5689
5690 lt_compiler_flag="-o out/conftest2.$ac_objext"
5691 # Insert the option either (1) after the last *FLAGS variable, or
5692 # (2) before a word containing "conftest.", or (3) at the end.
5693 # Note that $ac_compile itself does not contain backslashes and begins
5694 # with a dollar sign (not a hyphen), so the echo should work correctly.
5695 lt_compile=`echo "$ac_compile" | $SED \
5696 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5698 -e 's:$: $lt_compiler_flag:'`
5699 (eval echo "\"\$as_me:5699: $lt_compile\"" >&5)
5700 (eval "$lt_compile" 2>out/conftest.err)
5701 ac_status=$?
5702 cat out/conftest.err >&5
5703 echo "$as_me:5703: \$? = $ac_status" >&5
5704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
5705 then
5706 # The compiler can only warn and ignore the option if not recognized
5707 # So say no if there are warnings
5708 if test ! -s out/conftest.err; then
5709 lt_cv_prog_compiler_c_o=yes
5710 fi
5711 fi
5712 chmod u+w .
5713 $rm conftest* out/*
5714 rmdir out
5715 cd ..
5716 rmdir conftest
5717 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00005718
5719fi
John Criswell47fdd832003-07-14 16:52:07 +00005720echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5721echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005722
John Criswell7a73b802003-06-30 21:59:07 +00005723
John Criswell7a73b802003-06-30 21:59:07 +00005724hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00005725if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00005726 # do not overwrite the value of need_locks provided by the user
5727 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5728echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5729 hard_links=yes
5730 $rm conftest*
5731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5732 touch conftest.a
5733 ln conftest.a conftest.b 2>&5 || hard_links=no
5734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5735 echo "$as_me:$LINENO: result: $hard_links" >&5
5736echo "${ECHO_T}$hard_links" >&6
5737 if test "$hard_links" = no; then
5738 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5739echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5740 need_locks=warn
5741 fi
5742else
5743 need_locks=no
5744fi
John Criswell7a73b802003-06-30 21:59:07 +00005745
John Criswell47fdd832003-07-14 16:52:07 +00005746echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5747echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5748
5749 runpath_var=
5750 allow_undefined_flag=
5751 enable_shared_with_static_runtimes=no
5752 archive_cmds=
5753 archive_expsym_cmds=
5754 old_archive_From_new_cmds=
5755 old_archive_from_expsyms_cmds=
5756 export_dynamic_flag_spec=
5757 whole_archive_flag_spec=
5758 thread_safe_flag_spec=
5759 hardcode_libdir_flag_spec=
5760 hardcode_libdir_flag_spec_ld=
5761 hardcode_libdir_separator=
5762 hardcode_direct=no
5763 hardcode_minus_L=no
5764 hardcode_shlibpath_var=unsupported
5765 link_all_deplibs=unknown
5766 hardcode_automatic=no
5767 module_cmds=
5768 module_expsym_cmds=
5769 always_export_symbols=no
5770 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5771 # include_expsyms should be a list of space-separated symbols to be *always*
5772 # included in the symbol list
5773 include_expsyms=
5774 # exclude_expsyms can be an extended regexp of symbols to exclude
5775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5777 # as well as any symbol that contains `d'.
5778 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5780 # platforms (ab)use it in PIC code, but their linkers get confused if
5781 # the symbol is explicitly referenced. Since portable code cannot
5782 # rely on this symbol name, it's probably fine to never include it in
5783 # preloaded symbol tables.
5784 extract_expsyms_cmds=
5785
5786 case $host_os in
5787 cygwin* | mingw* | pw32*)
5788 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5789 # When not using gcc, we currently assume that we are using
5790 # Microsoft Visual C++.
5791 if test "$GCC" != yes; then
5792 with_gnu_ld=no
5793 fi
5794 ;;
5795 openbsd*)
5796 with_gnu_ld=no
5797 ;;
5798 esac
5799
5800 ld_shlibs=yes
5801 if test "$with_gnu_ld" = yes; then
5802 # If archive_cmds runs LD, not CC, wlarc should be empty
5803 wlarc='${wl}'
5804
5805 # See if GNU ld supports shared libraries.
5806 case $host_os in
5807 aix3* | aix4* | aix5*)
5808 # On AIX/PPC, the GNU linker is very broken
5809 if test "$host_cpu" != ia64; then
5810 ld_shlibs=no
5811 cat <<EOF 1>&2
5812
5813*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5814*** to be unable to reliably create shared libraries on AIX.
5815*** Therefore, libtool is disabling shared libraries support. If you
5816*** really care for shared libraries, you may want to modify your PATH
5817*** so that a non-GNU linker is found, and then restart.
5818
5819EOF
5820 fi
5821 ;;
5822
5823 amigaos*)
5824 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)'
5825 hardcode_libdir_flag_spec='-L$libdir'
5826 hardcode_minus_L=yes
5827
5828 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5829 # that the semantics of dynamic libraries on AmigaOS, at least up
5830 # to version 4, is to share data among multiple programs linked
5831 # with the same dynamic library. Since this doesn't match the
5832 # behavior of shared libraries on other platforms, we can't use
5833 # them.
5834 ld_shlibs=no
5835 ;;
5836
5837 beos*)
5838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5839 allow_undefined_flag=unsupported
5840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5841 # support --undefined. This deserves some investigation. FIXME
5842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5843 else
5844 ld_shlibs=no
5845 fi
5846 ;;
5847
5848 cygwin* | mingw* | pw32*)
5849 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5850 # as there is no search path for DLLs.
5851 hardcode_libdir_flag_spec='-L$libdir'
5852 allow_undefined_flag=unsupported
5853 always_export_symbols=no
5854 enable_shared_with_static_runtimes=yes
5855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5856
5857 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5859 # If the export-symbols file already is a .def file (1st line
5860 # is EXPORTS), use it as is; otherwise, prepend...
5861 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5862 cp $export_symbols $output_objdir/$soname.def;
5863 else
5864 echo EXPORTS > $output_objdir/$soname.def;
5865 cat $export_symbols >> $output_objdir/$soname.def;
5866 fi~
5867 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5868 else
5869 ld_shlibs=no
5870 fi
5871 ;;
5872
5873 netbsd*)
5874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5875 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5876 wlarc=
5877 else
5878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5880 fi
5881 ;;
5882
5883 solaris* | sysv5*)
5884 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5885 ld_shlibs=no
5886 cat <<EOF 1>&2
5887
5888*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5889*** create shared libraries on Solaris systems. Therefore, libtool
5890*** is disabling shared libraries support. We urge you to upgrade GNU
5891*** binutils to release 2.9.1 or newer. Another option is to modify
5892*** your PATH or compiler configuration so that the native linker is
5893*** used, and then restart.
5894
5895EOF
5896 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5899 else
5900 ld_shlibs=no
5901 fi
5902 ;;
5903
5904 sunos4*)
5905 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5906 wlarc=
5907 hardcode_direct=yes
5908 hardcode_shlibpath_var=no
5909 ;;
5910
5911 *)
5912 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5915 else
5916 ld_shlibs=no
5917 fi
5918 ;;
5919 esac
5920
5921 if test "$ld_shlibs" = yes; then
5922 runpath_var=LD_RUN_PATH
5923 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5924 export_dynamic_flag_spec='${wl}--export-dynamic'
5925 # ancient GNU ld didn't support --whole-archive et. al.
5926 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5927 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5928 else
5929 whole_archive_flag_spec=
5930 fi
5931 fi
5932 else
5933 # PORTME fill in a description of your system's linker (not GNU ld)
5934 case $host_os in
5935 aix3*)
5936 allow_undefined_flag=unsupported
5937 always_export_symbols=yes
5938 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'
5939 # Note: this linker hardcodes the directories in LIBPATH if there
5940 # are no directories specified by -L.
5941 hardcode_minus_L=yes
5942 if test "$GCC" = yes && test -z "$link_static_flag"; then
5943 # Neither direct hardcoding nor static linking is supported with a
5944 # broken collect2.
5945 hardcode_direct=unsupported
5946 fi
5947 ;;
5948
5949 aix4* | aix5*)
5950 if test "$host_cpu" = ia64; then
5951 # On IA64, the linker does run time linking by default, so we don't
5952 # have to do anything special.
5953 aix_use_runtimelinking=no
5954 exp_sym_flag='-Bexport'
5955 no_entry_flag=""
5956 else
5957 # If we're using GNU nm, then we don't want the "-C" option.
5958 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5960 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'
5961 else
5962 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'
5963 fi
5964 aix_use_runtimelinking=no
5965
5966 # Test if we are trying to use run time linking or normal
5967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5968 # need to do runtime linking.
5969 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5970 for ld_flag in $LDFLAGS; do
5971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5972 aix_use_runtimelinking=yes
5973 break
5974 fi
5975 done
5976 esac
5977
5978 exp_sym_flag='-bexport'
5979 no_entry_flag='-bnoentry'
5980 fi
5981
5982 # When large executables or shared objects are built, AIX ld can
5983 # have problems creating the table of contents. If linking a library
5984 # or program results in "error TOC overflow" add -mminimal-toc to
5985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5987
5988 archive_cmds=''
5989 hardcode_direct=yes
5990 hardcode_libdir_separator=':'
5991 link_all_deplibs=yes
5992
5993 if test "$GCC" = yes; then
5994 case $host_os in aix4.012|aix4.012.*)
5995 # We only want to do this on AIX 4.2 and lower, the check
5996 # below for broken collect2 doesn't work under 4.3+
5997 collect2name=`${CC} -print-prog-name=collect2`
5998 if test -f "$collect2name" && \
5999 strings "$collect2name" | grep resolve_lib_name >/dev/null
6000 then
6001 # We have reworked collect2
6002 hardcode_direct=yes
6003 else
6004 # We have old collect2
6005 hardcode_direct=unsupported
6006 # It fails to find uninstalled libraries when the uninstalled
6007 # path is not listed in the libpath. Setting hardcode_minus_L
6008 # to unsupported forces relinking
6009 hardcode_minus_L=yes
6010 hardcode_libdir_flag_spec='-L$libdir'
6011 hardcode_libdir_separator=
6012 fi
6013 esac
6014 shared_flag='-shared'
6015 else
6016 # not using gcc
6017 if test "$host_cpu" = ia64; then
6018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6019 # chokes on -Wl,-G. The following line is correct:
6020 shared_flag='-G'
6021 else
6022 if test "$aix_use_runtimelinking" = yes; then
6023 shared_flag='${wl}-G'
6024 else
6025 shared_flag='${wl}-bM:SRE'
6026 fi
6027 fi
6028 fi
6029
6030 # It seems that -bexpall does not export symbols beginning with
6031 # underscore (_), so it is better to generate a list of symbols to export.
6032 always_export_symbols=yes
6033 if test "$aix_use_runtimelinking" = yes; then
6034 # Warning - without using the other runtime loading flags (-brtl),
6035 # -berok will link without error, but may produce a broken library.
6036 allow_undefined_flag='-berok'
6037 # Determine the default libpath from the value encoded in an empty executable.
6038 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00006039#line $LINENO "configure"
6040#include "confdefs.h"
6041
6042#ifdef F77_DUMMY_MAIN
6043# ifdef __cplusplus
6044 extern "C"
6045# endif
6046 int F77_DUMMY_MAIN() { return 1; }
6047#endif
6048int
6049main ()
6050{
John Criswell47fdd832003-07-14 16:52:07 +00006051
John Criswell7a73b802003-06-30 21:59:07 +00006052 ;
6053 return 0;
6054}
6055_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
John Criswell47fdd832003-07-14 16:52:07 +00006062 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006068
John Criswell47fdd832003-07-14 16:52:07 +00006069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6070}'`
6071# Check for a 64-bit object if we didn't find anything.
6072if 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; }
6073}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006074else
6075 echo "$as_me: failed program was:" >&5
6076cat conftest.$ac_ext >&5
6077fi
John Criswell47fdd832003-07-14 16:52:07 +00006078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6079if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006080
John Criswell47fdd832003-07-14 16:52:07 +00006081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6082 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"
6083 else
6084 if test "$host_cpu" = ia64; then
6085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6086 allow_undefined_flag="-z nodefs"
6087 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"
6088 else
6089 # Determine the default libpath from the value encoded in an empty executable.
6090 cat >conftest.$ac_ext <<_ACEOF
6091#line $LINENO "configure"
6092#include "confdefs.h"
John Criswell7a73b802003-06-30 21:59:07 +00006093
John Criswell47fdd832003-07-14 16:52:07 +00006094#ifdef F77_DUMMY_MAIN
6095# ifdef __cplusplus
6096 extern "C"
6097# endif
6098 int F77_DUMMY_MAIN() { return 1; }
6099#endif
6100int
6101main ()
6102{
John Criswell7a73b802003-06-30 21:59:07 +00006103
John Criswell47fdd832003-07-14 16:52:07 +00006104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006120
John Criswell47fdd832003-07-14 16:52:07 +00006121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6122}'`
6123# Check for a 64-bit object if we didn't find anything.
6124if 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; }
6125}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006126else
John Criswell47fdd832003-07-14 16:52:07 +00006127 echo "$as_me: failed program was:" >&5
6128cat conftest.$ac_ext >&5
6129fi
6130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006132
John Criswell47fdd832003-07-14 16:52:07 +00006133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6134 # Warning - without using the other run time loading flags,
6135 # -berok will link without error, but may produce a broken library.
6136 no_undefined_flag=' ${wl}-bernotok'
6137 allow_undefined_flag=' ${wl}-berok'
6138 # -bexpall does not export symbols beginning with underscore (_)
6139 always_export_symbols=yes
6140 # Exported symbols can be pulled into shared objects from archives
6141 whole_archive_flag_spec=' '
6142 archive_cmds_need_lc=yes
6143 # This is similar to how AIX traditionally builds it's shared libraries.
6144 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 +00006145 fi
6146 fi
John Criswell7a73b802003-06-30 21:59:07 +00006147 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006148
6149 amigaos*)
6150 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)'
6151 hardcode_libdir_flag_spec='-L$libdir'
6152 hardcode_minus_L=yes
6153 # see comment about different semantics on the GNU ld section
6154 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006155 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006156
John Criswell47fdd832003-07-14 16:52:07 +00006157 bsdi4*)
6158 export_dynamic_flag_spec=-rdynamic
6159 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006160
John Criswell47fdd832003-07-14 16:52:07 +00006161 cygwin* | mingw* | pw32*)
6162 # When not using gcc, we currently assume that we are using
6163 # Microsoft Visual C++.
6164 # hardcode_libdir_flag_spec is actually meaningless, as there is
6165 # no search path for DLLs.
6166 hardcode_libdir_flag_spec=' '
6167 allow_undefined_flag=unsupported
6168 # Tell ltmain to make .lib files, not .a files.
6169 libext=lib
6170 # Tell ltmain to make .dll files, not .so files.
6171 shrext=".dll"
6172 # FIXME: Setting linknames here is a bad hack.
6173 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6174 # The linker will automatically build a .lib file if we build a DLL.
6175 old_archive_From_new_cmds='true'
6176 # FIXME: Should let the user specify the lib program.
6177 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6178 fix_srcfile_path='`cygpath -w "$srcfile"`'
6179 enable_shared_with_static_runtimes=yes
6180 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006181
John Criswell47fdd832003-07-14 16:52:07 +00006182 darwin* | rhapsody*)
6183 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6184 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006185 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006186 rhapsody* | darwin1.[012])
6187 allow_undefined_flag='-undefined suppress'
6188 ;;
6189 *) # Darwin 1.3 on
6190 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006191 ;;
6192 esac
John Criswell47fdd832003-07-14 16:52:07 +00006193 # FIXME: Relying on posixy $() will cause problems for
6194 # cross-compilation, but unfortunately the echo tests do not
6195 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6196 # `"' quotes if we put them in here... so don't!
6197 lt_int_apple_cc_single_mod=no
6198 output_verbose_link_cmd='echo'
6199 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6200 lt_int_apple_cc_single_mod=yes
6201 fi
6202 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6203 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6204 else
6205 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'
6206 fi
6207 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6209 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6210 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}'
6211 else
6212 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}'
6213 fi
6214 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}'
6215 hardcode_direct=no
6216 hardcode_automatic=yes
6217 hardcode_shlibpath_var=unsupported
6218 whole_archive_flag_spec='-all_load $convenience'
6219 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006220 fi
John Criswell47fdd832003-07-14 16:52:07 +00006221 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006222
John Criswell47fdd832003-07-14 16:52:07 +00006223 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006225 hardcode_libdir_flag_spec='-L$libdir'
6226 hardcode_shlibpath_var=no
6227 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006228
John Criswell47fdd832003-07-14 16:52:07 +00006229 freebsd1*)
6230 ld_shlibs=no
6231 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006232
John Criswell47fdd832003-07-14 16:52:07 +00006233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6234 # support. Future versions do this automatically, but an explicit c++rt0.o
6235 # does not break anything, and helps significantly (at the cost of a little
6236 # extra space).
6237 freebsd2.2*)
6238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6239 hardcode_libdir_flag_spec='-R$libdir'
6240 hardcode_direct=yes
6241 hardcode_shlibpath_var=no
6242 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006243
John Criswell47fdd832003-07-14 16:52:07 +00006244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6245 freebsd2*)
6246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6247 hardcode_direct=yes
6248 hardcode_minus_L=yes
6249 hardcode_shlibpath_var=no
6250 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006251
John Criswell47fdd832003-07-14 16:52:07 +00006252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6253 freebsd*)
6254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6255 hardcode_libdir_flag_spec='-R$libdir'
6256 hardcode_direct=yes
6257 hardcode_shlibpath_var=no
6258 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006259
John Criswell47fdd832003-07-14 16:52:07 +00006260 hpux9*)
6261 if test "$GCC" = yes; then
6262 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'
6263 else
6264 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'
6265 fi
6266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6267 hardcode_libdir_separator=:
6268 hardcode_direct=yes
6269
6270 # hardcode_minus_L: Not really in the search PATH,
6271 # but as the default location of the library.
6272 hardcode_minus_L=yes
6273 export_dynamic_flag_spec='${wl}-E'
6274 ;;
6275
6276 hpux10* | hpux11*)
6277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6278 case "$host_cpu" in
6279 hppa*64*|ia64*)
6280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6281 ;;
6282 *)
6283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6284 ;;
6285 esac
6286 else
6287 case "$host_cpu" in
6288 hppa*64*|ia64*)
6289 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6290 ;;
6291 *)
6292 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6293 ;;
6294 esac
6295 fi
6296 if test "$with_gnu_ld" = no; then
6297 case "$host_cpu" in
6298 hppa*64*)
6299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6300 hardcode_libdir_flag_spec_ld='+b $libdir'
6301 hardcode_libdir_separator=:
6302 hardcode_direct=no
6303 hardcode_shlibpath_var=no
6304 ;;
6305 ia64*)
6306 hardcode_libdir_flag_spec='-L$libdir'
6307 hardcode_direct=no
6308 hardcode_shlibpath_var=no
6309
6310 # hardcode_minus_L: Not really in the search PATH,
6311 # but as the default location of the library.
6312 hardcode_minus_L=yes
6313 ;;
6314 *)
6315 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6316 hardcode_libdir_separator=:
6317 hardcode_direct=yes
6318 export_dynamic_flag_spec='${wl}-E'
6319
6320 # hardcode_minus_L: Not really in the search PATH,
6321 # but as the default location of the library.
6322 hardcode_minus_L=yes
6323 ;;
6324 esac
6325 fi
6326 ;;
6327
6328 irix5* | irix6* | nonstopux*)
6329 if test "$GCC" = yes; then
6330 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'
6331 else
6332 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'
6333 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6334 fi
6335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6336 hardcode_libdir_separator=:
6337 link_all_deplibs=yes
6338 ;;
6339
6340 netbsd*)
6341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6343 else
6344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6345 fi
6346 hardcode_libdir_flag_spec='-R$libdir'
6347 hardcode_direct=yes
6348 hardcode_shlibpath_var=no
6349 ;;
6350
6351 newsos6)
6352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6353 hardcode_direct=yes
6354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_shlibpath_var=no
6357 ;;
6358
6359 openbsd*)
6360 hardcode_direct=yes
6361 hardcode_shlibpath_var=no
6362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6364 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6365 export_dynamic_flag_spec='${wl}-E'
6366 else
6367 case $host_os in
6368 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6370 hardcode_libdir_flag_spec='-R$libdir'
6371 ;;
6372 *)
6373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6374 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6375 ;;
6376 esac
6377 fi
6378 ;;
6379
6380 os2*)
6381 hardcode_libdir_flag_spec='-L$libdir'
6382 hardcode_minus_L=yes
6383 allow_undefined_flag=unsupported
6384 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'
6385 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6386 ;;
6387
6388 osf3*)
6389 if test "$GCC" = yes; then
6390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6391 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'
6392 else
6393 allow_undefined_flag=' -expect_unresolved \*'
6394 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'
6395 fi
6396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6397 hardcode_libdir_separator=:
6398 ;;
6399
6400 osf4* | osf5*) # as osf3* with the addition of -msym flag
6401 if test "$GCC" = yes; then
6402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6403 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'
6404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6405 else
6406 allow_undefined_flag=' -expect_unresolved \*'
6407 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'
6408 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6409 $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'
6410
6411 # Both c and cxx compiler support -rpath directly
6412 hardcode_libdir_flag_spec='-rpath $libdir'
6413 fi
6414 hardcode_libdir_separator=:
6415 ;;
6416
6417 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006420 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006421 runpath_var=LD_RUN_PATH
6422 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006423 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006424
John Criswell47fdd832003-07-14 16:52:07 +00006425 solaris*)
6426 no_undefined_flag=' -z text'
6427 if test "$GCC" = yes; then
6428 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6429 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6430 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6431 else
6432 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6434 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6435 fi
6436 hardcode_libdir_flag_spec='-R$libdir'
6437 hardcode_shlibpath_var=no
6438 case $host_os in
6439 solaris2.[0-5] | solaris2.[0-5].*) ;;
6440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6442 esac
6443 link_all_deplibs=yes
6444 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006445
John Criswell47fdd832003-07-14 16:52:07 +00006446 sunos4*)
6447 if test "x$host_vendor" = xsequent; then
6448 # Use $CC to link under sequent, because it throws in some extra .o
6449 # files that make .init and .fini sections work.
6450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6451 else
6452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6453 fi
6454 hardcode_libdir_flag_spec='-L$libdir'
6455 hardcode_direct=yes
6456 hardcode_minus_L=yes
6457 hardcode_shlibpath_var=no
6458 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006459
John Criswell47fdd832003-07-14 16:52:07 +00006460 sysv4)
6461 case $host_vendor in
6462 sni)
6463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6464 hardcode_direct=yes # is this really true???
6465 ;;
6466 siemens)
6467 ## LD is ld it makes a PLAMLIB
6468 ## CC just makes a GrossModule.
6469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6470 reload_cmds='$CC -r -o $output$reload_objs'
6471 hardcode_direct=no
6472 ;;
6473 motorola)
6474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6476 ;;
6477 esac
6478 runpath_var='LD_RUN_PATH'
6479 hardcode_shlibpath_var=no
6480 ;;
6481
6482 sysv4.3*)
6483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6484 hardcode_shlibpath_var=no
6485 export_dynamic_flag_spec='-Bexport'
6486 ;;
6487
6488 sysv4*MP*)
6489 if test -d /usr/nec; then
6490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6491 hardcode_shlibpath_var=no
6492 runpath_var=LD_RUN_PATH
6493 hardcode_runpath_var=yes
6494 ld_shlibs=yes
6495 fi
6496 ;;
6497
6498 sysv4.2uw2*)
6499 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6500 hardcode_direct=yes
6501 hardcode_minus_L=no
6502 hardcode_shlibpath_var=no
6503 hardcode_runpath_var=yes
6504 runpath_var=LD_RUN_PATH
6505 ;;
6506
6507 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6508 no_undefined_flag='${wl}-z ${wl}text'
6509 if test "$GCC" = yes; then
6510 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6511 else
6512 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6513 fi
6514 runpath_var='LD_RUN_PATH'
6515 hardcode_shlibpath_var=no
6516 ;;
6517
6518 sysv5*)
6519 no_undefined_flag=' -z text'
6520 # $CC -shared without GNU ld will not create a library from C++
6521 # object files and a static libstdc++, better avoid it by now
6522 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6524 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6525 hardcode_libdir_flag_spec=
6526 hardcode_shlibpath_var=no
6527 runpath_var='LD_RUN_PATH'
6528 ;;
6529
6530 uts4*)
6531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532 hardcode_libdir_flag_spec='-L$libdir'
6533 hardcode_shlibpath_var=no
6534 ;;
6535
6536 *)
6537 ld_shlibs=no
6538 ;;
6539 esac
6540 fi
6541
John Criswell7a73b802003-06-30 21:59:07 +00006542echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6543echo "${ECHO_T}$ld_shlibs" >&6
6544test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006545
John Criswell47fdd832003-07-14 16:52:07 +00006546variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6547if test "$GCC" = yes; then
6548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6549fi
6550
6551#
6552# Do we need to explicitly link libc?
6553#
6554case "x$archive_cmds_need_lc" in
6555x|xyes)
6556 # Assume -lc should be added
6557 archive_cmds_need_lc=yes
6558
6559 if test "$enable_shared" = yes && test "$GCC" = yes; then
6560 case $archive_cmds in
6561 *'~'*)
6562 # FIXME: we may have to deal with multi-command sequences.
6563 ;;
6564 '$CC '*)
6565 # Test whether the compiler implicitly links with -lc since on some
6566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6567 # to ld, don't add -lc before -lgcc.
6568 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6570 $rm conftest*
6571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6572
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } 2>conftest.err; then
6578 soname=conftest
6579 lib=conftest
6580 libobjs=conftest.$ac_objext
6581 deplibs=
6582 wl=$lt_prog_compiler_wl
6583 compiler_flags=-v
6584 linker_flags=-v
6585 verstring=
6586 output_objdir=.
6587 libname=conftest
6588 lt_save_allow_undefined_flag=$allow_undefined_flag
6589 allow_undefined_flag=
6590 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6591 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }
6595 then
6596 archive_cmds_need_lc=no
6597 else
6598 archive_cmds_need_lc=yes
6599 fi
6600 allow_undefined_flag=$lt_save_allow_undefined_flag
6601 else
6602 cat conftest.err 1>&5
6603 fi
6604 $rm conftest*
6605 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6606echo "${ECHO_T}$archive_cmds_need_lc" >&6
6607 ;;
6608 esac
6609 fi
6610 ;;
6611esac
6612
John Criswell7a73b802003-06-30 21:59:07 +00006613echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6614echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6615hardcode_action=
6616if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00006617 test -n "$runpath_var " || \
6618 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00006619
6620 # We can hardcode non-existant directories.
6621 if test "$hardcode_direct" != no &&
6622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6623 # have to relink, otherwise we might link with an installed library
6624 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00006625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00006626 test "$hardcode_minus_L" != no; then
6627 # Linking always hardcodes the temporary library directory.
6628 hardcode_action=relink
6629 else
6630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6631 hardcode_action=immediate
6632 fi
6633else
6634 # We cannot hardcode anything, or else we can only hardcode existing
6635 # directories.
6636 hardcode_action=unsupported
6637fi
6638echo "$as_me:$LINENO: result: $hardcode_action" >&5
6639echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006640
John Criswell47fdd832003-07-14 16:52:07 +00006641if test "$hardcode_action" = relink; then
6642 # Fast installation is not supported
6643 enable_fast_install=no
6644elif test "$shlibpath_overrides_runpath" = yes ||
6645 test "$enable_shared" = no; then
6646 # Fast installation is not necessary
6647 enable_fast_install=needless
6648fi
6649
John Criswell7a73b802003-06-30 21:59:07 +00006650striplib=
6651old_striplib=
6652echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6653echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6654if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
6659else
John Criswell47fdd832003-07-14 16:52:07 +00006660# FIXME - insert some real tests, host_os isn't really good enough
6661 case $host_os in
6662 darwin*)
6663 if test -n "$STRIP" ; then
6664 striplib="$STRIP -x"
6665 echo "$as_me:$LINENO: result: yes" >&5
6666echo "${ECHO_T}yes" >&6
6667 else
John Criswell7a73b802003-06-30 21:59:07 +00006668 echo "$as_me:$LINENO: result: no" >&5
6669echo "${ECHO_T}no" >&6
6670fi
John Criswell47fdd832003-07-14 16:52:07 +00006671 ;;
6672 *)
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675 ;;
6676 esac
6677fi
John Criswell7a73b802003-06-30 21:59:07 +00006678
John Criswell7a73b802003-06-30 21:59:07 +00006679echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6680echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6681library_names_spec=
6682libname_spec='lib$name'
6683soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00006684shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00006685postinstall_cmds=
6686postuninstall_cmds=
6687finish_cmds=
6688finish_eval=
6689shlibpath_var=
6690shlibpath_overrides_runpath=unknown
6691version_type=none
6692dynamic_linker="$host_os ld.so"
6693sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00006694if test "$GCC" = yes; then
6695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6696 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6697 # if the path contains ";" then we assume it to be the separator
6698 # otherwise default to the standard path separator (i.e. ":") - it is
6699 # assumed that no part of a normal pathname contains ";" but that should
6700 # okay in the real world where ";" in dirpaths is itself problematic.
6701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6702 else
6703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6704 fi
6705else
6706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6707fi
6708need_lib_prefix=unknown
6709hardcode_into_libs=no
6710
6711# when you set need_version to no, make sure it does not cause -set_version
6712# flags to be left without arguments
6713need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00006714
6715case $host_os in
6716aix3*)
6717 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00006718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00006719 shlibpath_var=LIBPATH
6720
John Criswell47fdd832003-07-14 16:52:07 +00006721 # AIX 3 has no versioning support, so we append a major version to the name.
6722 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00006723 ;;
6724
6725aix4* | aix5*)
6726 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00006727 need_lib_prefix=no
6728 need_version=no
6729 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006730 if test "$host_cpu" = ia64; then
6731 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00006732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00006733 shlibpath_var=LD_LIBRARY_PATH
6734 else
6735 # With GCC up to 2.95.x, collect2 would create an import file
6736 # for dependence libraries. The import file would start with
6737 # the line `#! .'. This would cause the generated library to
6738 # depend on `.', always an invalid library. This was fixed in
6739 # development snapshots of GCC prior to 3.0.
6740 case $host_os in
6741 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00006742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6743 echo ' yes '
6744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6745 :
6746 else
6747 can_build_shared=no
6748 fi
6749 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006750 esac
John Criswell47fdd832003-07-14 16:52:07 +00006751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6752 # soname into executable. Probably we can add versioning support to
6753 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00006754 if test "$aix_use_runtimelinking" = yes; then
6755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6756 # instead of lib<name>.a to let people know that these are not
6757 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00006758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00006759 else
6760 # We preserve .a as extension for shared libraries through AIX4.2
6761 # and later when we are not doing run time linking.
6762 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00006763 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00006764 fi
6765 shlibpath_var=LIBPATH
6766 fi
6767 ;;
6768
6769amigaos*)
6770 library_names_spec='$libname.ixlibrary $libname.a'
6771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6772 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'
6773 ;;
6774
6775beos*)
John Criswell47fdd832003-07-14 16:52:07 +00006776 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00006777 dynamic_linker="$host_os ld.so"
6778 shlibpath_var=LIBRARY_PATH
6779 ;;
6780
6781bsdi4*)
6782 version_type=linux
6783 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00006784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6785 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00006786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6787 shlibpath_var=LD_LIBRARY_PATH
6788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00006790 # the default ld.so.conf also contains /usr/contrib/lib and
6791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6792 # libtool to hard-code these into programs
6793 ;;
6794
6795cygwin* | mingw* | pw32*)
6796 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00006797 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00006798 need_version=no
6799 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00006800
John Criswell7a73b802003-06-30 21:59:07 +00006801 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006802 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00006803 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00006804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6805 postinstall_cmds='base_file=`basename \${file}`~
6806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00006807 dldir=$destdir/`dirname \$dlpath`~
6808 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00006809 $install_prog $dir/$dlname \$dldir/$dlname'
6810 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00006811 dlpath=$dir/\$dldll~
6812 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00006813 shlibpath_overrides_runpath=yes
6814
6815 case $host_os in
6816 cygwin*)
6817 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6818 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6819 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6820 ;;
6821 mingw*)
6822 # MinGW DLLs use traditional 'lib' prefix
6823 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6825 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6826 # It is most probably a Windows format PATH printed by
6827 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6828 # path with ; separators, and with drive letters. We can handle the
6829 # drive letters (cygwin fileutils understands them), so leave them,
6830 # especially as we might pass files found there to a mingw objdump,
6831 # which wouldn't understand a cygwinified path. Ahh.
6832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6833 else
6834 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6835 fi
6836 ;;
6837 pw32*)
6838 # pw32 DLLs use 'pw' prefix rather than 'lib'
6839 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6840 ;;
6841 esac
John Criswell7a73b802003-06-30 21:59:07 +00006842 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006843
John Criswell7a73b802003-06-30 21:59:07 +00006844 *)
John Criswell47fdd832003-07-14 16:52:07 +00006845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00006846 ;;
6847 esac
6848 dynamic_linker='Win32 ld.exe'
6849 # FIXME: first we should search . and the directory the executable is in
6850 shlibpath_var=PATH
6851 ;;
6852
6853darwin* | rhapsody*)
6854 dynamic_linker="$host_os dyld"
6855 version_type=darwin
6856 need_lib_prefix=no
6857 need_version=no
6858 # FIXME: Relying on posixy $() will cause problems for
6859 # cross-compilation, but unfortunately the echo tests do not
6860 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00006861 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6862 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00006863 shlibpath_overrides_runpath=yes
6864 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00006865 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6866 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6867 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6868 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"`
6869 fi
6870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6871 ;;
6872
6873dgux*)
6874 version_type=linux
6875 need_lib_prefix=no
6876 need_version=no
6877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6878 soname_spec='${libname}${release}${shared_ext}$major'
6879 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00006880 ;;
6881
6882freebsd1*)
6883 dynamic_linker=no
6884 ;;
6885
6886freebsd*)
6887 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6888 version_type=freebsd-$objformat
6889 case $version_type in
6890 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00006891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00006892 need_version=no
6893 need_lib_prefix=no
6894 ;;
6895 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00006896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00006897 need_version=yes
6898 ;;
6899 esac
6900 shlibpath_var=LD_LIBRARY_PATH
6901 case $host_os in
6902 freebsd2*)
6903 shlibpath_overrides_runpath=yes
6904 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006905 freebsd3.01* | freebsdelf3.01*)
6906 shlibpath_overrides_runpath=yes
6907 hardcode_into_libs=yes
6908 ;;
6909 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00006910 shlibpath_overrides_runpath=no
6911 hardcode_into_libs=yes
6912 ;;
6913 esac
6914 ;;
6915
6916gnu*)
6917 version_type=linux
6918 need_lib_prefix=no
6919 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00006920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6921 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00006922 shlibpath_var=LD_LIBRARY_PATH
6923 hardcode_into_libs=yes
6924 ;;
6925
6926hpux9* | hpux10* | hpux11*)
6927 # Give a soname corresponding to the major version so that dld.sl refuses to
6928 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00006929 version_type=sunos
6930 need_lib_prefix=no
6931 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00006932 case "$host_cpu" in
6933 ia64*)
6934 shrext='.so'
6935 hardcode_into_libs=yes
6936 dynamic_linker="$host_os dld.so"
6937 shlibpath_var=LD_LIBRARY_PATH
6938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6940 soname_spec='${libname}${release}${shared_ext}$major'
6941 if test "X$HPUX_IA64_MODE" = X32; then
6942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6943 else
6944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6945 fi
6946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6947 ;;
6948 hppa*64*)
6949 shrext='.sl'
6950 hardcode_into_libs=yes
6951 dynamic_linker="$host_os dld.sl"
6952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955 soname_spec='${libname}${release}${shared_ext}$major'
6956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6958 ;;
6959 *)
6960 shrext='.sl'
6961 dynamic_linker="$host_os dld.sl"
6962 shlibpath_var=SHLIB_PATH
6963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6965 soname_spec='${libname}${release}${shared_ext}$major'
6966 ;;
6967 esac
John Criswell7a73b802003-06-30 21:59:07 +00006968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6969 postinstall_cmds='chmod 555 $lib'
6970 ;;
6971
John Criswell47fdd832003-07-14 16:52:07 +00006972irix5* | irix6* | nonstopux*)
6973 case $host_os in
6974 nonstopux*) version_type=nonstopux ;;
6975 *)
6976 if test "$lt_cv_prog_gnu_ld" = yes; then
6977 version_type=linux
6978 else
6979 version_type=irix
6980 fi ;;
6981 esac
John Criswell7a73b802003-06-30 21:59:07 +00006982 need_lib_prefix=no
6983 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00006984 soname_spec='${libname}${release}${shared_ext}$major'
6985 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 +00006986 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006987 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00006988 libsuff= shlibsuff=
6989 ;;
6990 *)
6991 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00006992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6993 libsuff= shlibsuff= libmagic=32-bit;;
6994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6995 libsuff=32 shlibsuff=N32 libmagic=N32;;
6996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00006998 *) libsuff= shlibsuff= libmagic=never-match;;
6999 esac
7000 ;;
7001 esac
7002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7003 shlibpath_overrides_runpath=no
7004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007006 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007007 ;;
7008
7009# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007010linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007011 dynamic_linker=no
7012 ;;
7013
7014# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007015linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007016 version_type=linux
7017 need_lib_prefix=no
7018 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7020 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7022 shlibpath_var=LD_LIBRARY_PATH
7023 shlibpath_overrides_runpath=no
7024 # This implies no fast_install, which is unacceptable.
7025 # Some rework will be needed to allow for fast_install
7026 # before this can be enabled.
7027 hardcode_into_libs=yes
7028
7029 # We used to test for /lib/ld.so.1 and disable shared libraries on
7030 # powerpc, because MkLinux only supported shared libraries with the
7031 # GNU dynamic linker. Since this was broken with cross compilers,
7032 # most powerpc-linux boxes support dynamic linking these days and
7033 # people can always --disable-shared, the test was removed, and we
7034 # assume the GNU/Linux dynamic linker is in use.
7035 dynamic_linker='GNU/Linux ld.so'
7036 ;;
7037
7038netbsd*)
7039 version_type=sunos
7040 need_lib_prefix=no
7041 need_version=no
7042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7045 dynamic_linker='NetBSD (a.out) ld.so'
7046 else
John Criswell47fdd832003-07-14 16:52:07 +00007047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7048 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007049 dynamic_linker='NetBSD ld.elf_so'
7050 fi
7051 shlibpath_var=LD_LIBRARY_PATH
7052 shlibpath_overrides_runpath=yes
7053 hardcode_into_libs=yes
7054 ;;
7055
7056newsos6)
7057 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 shlibpath_var=LD_LIBRARY_PATH
7060 shlibpath_overrides_runpath=yes
7061 ;;
7062
7063nto-qnx)
7064 version_type=linux
7065 need_lib_prefix=no
7066 need_version=no
7067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7068 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007069 shlibpath_var=LD_LIBRARY_PATH
7070 shlibpath_overrides_runpath=yes
7071 ;;
7072
7073openbsd*)
7074 version_type=sunos
7075 need_lib_prefix=no
7076 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7079 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007080 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 +00007081 case $host_os in
7082 openbsd2.[89] | openbsd2.[89].*)
7083 shlibpath_overrides_runpath=no
7084 ;;
7085 *)
7086 shlibpath_overrides_runpath=yes
7087 ;;
7088 esac
John Criswell7a73b802003-06-30 21:59:07 +00007089 else
7090 shlibpath_overrides_runpath=yes
7091 fi
John Criswell7a73b802003-06-30 21:59:07 +00007092 ;;
7093
7094os2*)
7095 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007096 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007097 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007098 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007099 dynamic_linker='OS/2 ld.exe'
7100 shlibpath_var=LIBPATH
7101 ;;
7102
7103osf3* | osf4* | osf5*)
7104 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007105 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007106 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007107 soname_spec='${libname}${release}${shared_ext}$major'
7108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007109 shlibpath_var=LD_LIBRARY_PATH
7110 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7111 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7112 ;;
7113
7114sco3.2v5*)
7115 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007116 soname_spec='${libname}${release}${shared_ext}$major'
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007118 shlibpath_var=LD_LIBRARY_PATH
7119 ;;
7120
7121solaris*)
7122 version_type=linux
7123 need_lib_prefix=no
7124 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7126 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007127 shlibpath_var=LD_LIBRARY_PATH
7128 shlibpath_overrides_runpath=yes
7129 hardcode_into_libs=yes
7130 # ldd complains unless libraries are executable
7131 postinstall_cmds='chmod +x $lib'
7132 ;;
7133
7134sunos4*)
7135 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7138 shlibpath_var=LD_LIBRARY_PATH
7139 shlibpath_overrides_runpath=yes
7140 if test "$with_gnu_ld" = yes; then
7141 need_lib_prefix=no
7142 fi
7143 need_version=yes
7144 ;;
7145
7146sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7147 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007150 shlibpath_var=LD_LIBRARY_PATH
7151 case $host_vendor in
7152 sni)
7153 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007154 need_lib_prefix=no
7155 export_dynamic_flag_spec='${wl}-Blargedynsym'
7156 runpath_var=LD_RUN_PATH
7157 ;;
7158 siemens)
7159 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007160 ;;
7161 motorola)
7162 need_lib_prefix=no
7163 need_version=no
7164 shlibpath_overrides_runpath=no
7165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7166 ;;
7167 esac
7168 ;;
7169
John Criswell7a73b802003-06-30 21:59:07 +00007170sysv4*MP*)
7171 if test -d /usr/nec ;then
7172 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7174 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007175 shlibpath_var=LD_LIBRARY_PATH
7176 fi
7177 ;;
7178
John Criswell47fdd832003-07-14 16:52:07 +00007179uts4*)
7180 version_type=linux
7181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7182 soname_spec='${libname}${release}${shared_ext}$major'
7183 shlibpath_var=LD_LIBRARY_PATH
7184 ;;
7185
John Criswell7a73b802003-06-30 21:59:07 +00007186*)
7187 dynamic_linker=no
7188 ;;
7189esac
7190echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7191echo "${ECHO_T}$dynamic_linker" >&6
7192test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007193
7194if test "x$enable_dlopen" != xyes; then
7195 enable_dlopen=unknown
7196 enable_dlopen_self=unknown
7197 enable_dlopen_self_static=unknown
7198else
7199 lt_cv_dlopen=no
7200 lt_cv_dlopen_libs=
7201
7202 case $host_os in
7203 beos*)
7204 lt_cv_dlopen="load_add_on"
7205 lt_cv_dlopen_libs=
7206 lt_cv_dlopen_self=yes
7207 ;;
7208
John Criswell47fdd832003-07-14 16:52:07 +00007209 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007210 lt_cv_dlopen="LoadLibrary"
7211 lt_cv_dlopen_libs=
7212 ;;
7213
John Criswell47fdd832003-07-14 16:52:07 +00007214 cygwin*)
7215 lt_cv_dlopen="dlopen"
7216 lt_cv_dlopen_libs=
7217 ;;
7218
7219 darwin*)
7220 # if libdl is installed we need to link against it
7221 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7222echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7223if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 ac_check_lib_save_LIBS=$LIBS
7227LIBS="-ldl $LIBS"
7228cat >conftest.$ac_ext <<_ACEOF
7229#line $LINENO "configure"
7230#include "confdefs.h"
7231
7232/* Override any gcc2 internal prototype to avoid an error. */
7233#ifdef __cplusplus
7234extern "C"
7235#endif
7236/* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7238char dlopen ();
7239#ifdef F77_DUMMY_MAIN
7240# ifdef __cplusplus
7241 extern "C"
7242# endif
7243 int F77_DUMMY_MAIN() { return 1; }
7244#endif
7245int
7246main ()
7247{
7248dlopen ();
7249 ;
7250 return 0;
7251}
7252_ACEOF
7253rm -f conftest.$ac_objext conftest$ac_exeext
7254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest$ac_exeext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 ac_cv_lib_dl_dlopen=yes
7266else
7267 echo "$as_me: failed program was:" >&5
7268cat conftest.$ac_ext >&5
7269ac_cv_lib_dl_dlopen=no
7270fi
7271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272LIBS=$ac_check_lib_save_LIBS
7273fi
7274echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7275echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7276if test $ac_cv_lib_dl_dlopen = yes; then
7277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7278else
7279
7280 lt_cv_dlopen="dyld"
7281 lt_cv_dlopen_libs=
7282 lt_cv_dlopen_self=yes
7283
7284fi
7285
7286 ;;
7287
John Criswell7a73b802003-06-30 21:59:07 +00007288 *)
7289 echo "$as_me:$LINENO: checking for shl_load" >&5
7290echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7291if test "${ac_cv_func_shl_load+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 cat >conftest.$ac_ext <<_ACEOF
7295#line $LINENO "configure"
7296#include "confdefs.h"
7297/* System header to define __stub macros and hopefully few prototypes,
7298 which can conflict with char shl_load (); below. */
7299#include <assert.h>
7300/* Override any gcc2 internal prototype to avoid an error. */
7301#ifdef __cplusplus
7302extern "C"
7303#endif
7304/* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7306char shl_load ();
7307char (*f) ();
7308
7309#ifdef F77_DUMMY_MAIN
7310# ifdef __cplusplus
7311 extern "C"
7312# endif
7313 int F77_DUMMY_MAIN() { return 1; }
7314#endif
7315int
7316main ()
7317{
7318/* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321#if defined (__stub_shl_load) || defined (__stub___shl_load)
7322choke me
7323#else
7324f = shl_load;
7325#endif
7326
7327 ;
7328 return 0;
7329}
7330_ACEOF
7331rm -f conftest.$ac_objext conftest$ac_exeext
7332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333 (eval $ac_link) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest$ac_exeext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_cv_func_shl_load=yes
7344else
7345 echo "$as_me: failed program was:" >&5
7346cat conftest.$ac_ext >&5
7347ac_cv_func_shl_load=no
7348fi
7349rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350fi
7351echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7352echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7353if test $ac_cv_func_shl_load = yes; then
7354 lt_cv_dlopen="shl_load"
7355else
7356 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7357echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7358if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361 ac_check_lib_save_LIBS=$LIBS
7362LIBS="-ldld $LIBS"
7363cat >conftest.$ac_ext <<_ACEOF
7364#line $LINENO "configure"
7365#include "confdefs.h"
7366
7367/* Override any gcc2 internal prototype to avoid an error. */
7368#ifdef __cplusplus
7369extern "C"
7370#endif
7371/* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7373char shl_load ();
7374#ifdef F77_DUMMY_MAIN
7375# ifdef __cplusplus
7376 extern "C"
7377# endif
7378 int F77_DUMMY_MAIN() { return 1; }
7379#endif
7380int
7381main ()
7382{
7383shl_load ();
7384 ;
7385 return 0;
7386}
7387_ACEOF
7388rm -f conftest.$ac_objext conftest$ac_exeext
7389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390 (eval $ac_link) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 (eval $ac_try) 2>&5
7397 ac_status=$?
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_lib_dld_shl_load=yes
7401else
7402 echo "$as_me: failed program was:" >&5
7403cat conftest.$ac_ext >&5
7404ac_cv_lib_dld_shl_load=no
7405fi
7406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7407LIBS=$ac_check_lib_save_LIBS
7408fi
7409echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7410echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7411if test $ac_cv_lib_dld_shl_load = yes; then
7412 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7413else
7414 echo "$as_me:$LINENO: checking for dlopen" >&5
7415echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7416if test "${ac_cv_func_dlopen+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419 cat >conftest.$ac_ext <<_ACEOF
7420#line $LINENO "configure"
7421#include "confdefs.h"
7422/* System header to define __stub macros and hopefully few prototypes,
7423 which can conflict with char dlopen (); below. */
7424#include <assert.h>
7425/* Override any gcc2 internal prototype to avoid an error. */
7426#ifdef __cplusplus
7427extern "C"
7428#endif
7429/* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7431char dlopen ();
7432char (*f) ();
7433
7434#ifdef F77_DUMMY_MAIN
7435# ifdef __cplusplus
7436 extern "C"
7437# endif
7438 int F77_DUMMY_MAIN() { return 1; }
7439#endif
7440int
7441main ()
7442{
7443/* The GNU C library defines this for functions which it implements
7444 to always fail with ENOSYS. Some functions are actually named
7445 something starting with __ and the normal name is an alias. */
7446#if defined (__stub_dlopen) || defined (__stub___dlopen)
7447choke me
7448#else
7449f = dlopen;
7450#endif
7451
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext conftest$ac_exeext
7457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 (eval $ac_link) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -s conftest$ac_exeext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_func_dlopen=yes
7469else
7470 echo "$as_me: failed program was:" >&5
7471cat conftest.$ac_ext >&5
7472ac_cv_func_dlopen=no
7473fi
7474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7475fi
7476echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7477echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7478if test $ac_cv_func_dlopen = yes; then
7479 lt_cv_dlopen="dlopen"
7480else
7481 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7482echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7483if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486 ac_check_lib_save_LIBS=$LIBS
7487LIBS="-ldl $LIBS"
7488cat >conftest.$ac_ext <<_ACEOF
7489#line $LINENO "configure"
7490#include "confdefs.h"
7491
7492/* Override any gcc2 internal prototype to avoid an error. */
7493#ifdef __cplusplus
7494extern "C"
7495#endif
7496/* We use char because int might match the return type of a gcc2
7497 builtin and then its argument prototype would still apply. */
7498char dlopen ();
7499#ifdef F77_DUMMY_MAIN
7500# ifdef __cplusplus
7501 extern "C"
7502# endif
7503 int F77_DUMMY_MAIN() { return 1; }
7504#endif
7505int
7506main ()
7507{
7508dlopen ();
7509 ;
7510 return 0;
7511}
7512_ACEOF
7513rm -f conftest.$ac_objext conftest$ac_exeext
7514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 ac_cv_lib_dl_dlopen=yes
7526else
7527 echo "$as_me: failed program was:" >&5
7528cat conftest.$ac_ext >&5
7529ac_cv_lib_dl_dlopen=no
7530fi
7531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7532LIBS=$ac_check_lib_save_LIBS
7533fi
7534echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7535echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7536if test $ac_cv_lib_dl_dlopen = yes; then
7537 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7538else
7539 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7540echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7541if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544 ac_check_lib_save_LIBS=$LIBS
7545LIBS="-lsvld $LIBS"
7546cat >conftest.$ac_ext <<_ACEOF
7547#line $LINENO "configure"
7548#include "confdefs.h"
7549
7550/* Override any gcc2 internal prototype to avoid an error. */
7551#ifdef __cplusplus
7552extern "C"
7553#endif
7554/* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556char dlopen ();
7557#ifdef F77_DUMMY_MAIN
7558# ifdef __cplusplus
7559 extern "C"
7560# endif
7561 int F77_DUMMY_MAIN() { return 1; }
7562#endif
7563int
7564main ()
7565{
7566dlopen ();
7567 ;
7568 return 0;
7569}
7570_ACEOF
7571rm -f conftest.$ac_objext conftest$ac_exeext
7572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_cv_lib_svld_dlopen=yes
7584else
7585 echo "$as_me: failed program was:" >&5
7586cat conftest.$ac_ext >&5
7587ac_cv_lib_svld_dlopen=no
7588fi
7589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590LIBS=$ac_check_lib_save_LIBS
7591fi
7592echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7593echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7594if test $ac_cv_lib_svld_dlopen = yes; then
7595 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7596else
7597 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7598echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7599if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602 ac_check_lib_save_LIBS=$LIBS
7603LIBS="-ldld $LIBS"
7604cat >conftest.$ac_ext <<_ACEOF
7605#line $LINENO "configure"
7606#include "confdefs.h"
7607
7608/* Override any gcc2 internal prototype to avoid an error. */
7609#ifdef __cplusplus
7610extern "C"
7611#endif
7612/* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7614char dld_link ();
7615#ifdef F77_DUMMY_MAIN
7616# ifdef __cplusplus
7617 extern "C"
7618# endif
7619 int F77_DUMMY_MAIN() { return 1; }
7620#endif
7621int
7622main ()
7623{
7624dld_link ();
7625 ;
7626 return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext conftest$ac_exeext
7630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631 (eval $ac_link) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 ac_cv_lib_dld_dld_link=yes
7642else
7643 echo "$as_me: failed program was:" >&5
7644cat conftest.$ac_ext >&5
7645ac_cv_lib_dld_dld_link=no
7646fi
7647rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7648LIBS=$ac_check_lib_save_LIBS
7649fi
7650echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7651echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7652if test $ac_cv_lib_dld_dld_link = yes; then
7653 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7654fi
7655
7656
7657fi
7658
7659
7660fi
7661
7662
7663fi
7664
7665
7666fi
7667
7668
7669fi
7670
7671 ;;
7672 esac
7673
7674 if test "x$lt_cv_dlopen" != xno; then
7675 enable_dlopen=yes
7676 else
7677 enable_dlopen=no
7678 fi
7679
7680 case $lt_cv_dlopen in
7681 dlopen)
7682 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00007683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00007684
7685 save_LDFLAGS="$LDFLAGS"
7686 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7687
7688 save_LIBS="$LIBS"
7689 LIBS="$lt_cv_dlopen_libs $LIBS"
7690
7691 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7692echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7693if test "${lt_cv_dlopen_self+set}" = set; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696 if test "$cross_compiling" = yes; then :
7697 lt_cv_dlopen_self=cross
7698else
John Criswell47fdd832003-07-14 16:52:07 +00007699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00007700 lt_status=$lt_dlunknown
7701 cat > conftest.$ac_ext <<EOF
John Criswell47fdd832003-07-14 16:52:07 +00007702#line 7702 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00007703#include "confdefs.h"
7704
7705#if HAVE_DLFCN_H
7706#include <dlfcn.h>
7707#endif
7708
7709#include <stdio.h>
7710
7711#ifdef RTLD_GLOBAL
7712# define LT_DLGLOBAL RTLD_GLOBAL
7713#else
7714# ifdef DL_GLOBAL
7715# define LT_DLGLOBAL DL_GLOBAL
7716# else
7717# define LT_DLGLOBAL 0
7718# endif
7719#endif
7720
7721/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7722 find out it does not work in some platform. */
7723#ifndef LT_DLLAZY_OR_NOW
7724# ifdef RTLD_LAZY
7725# define LT_DLLAZY_OR_NOW RTLD_LAZY
7726# else
7727# ifdef DL_LAZY
7728# define LT_DLLAZY_OR_NOW DL_LAZY
7729# else
7730# ifdef RTLD_NOW
7731# define LT_DLLAZY_OR_NOW RTLD_NOW
7732# else
7733# ifdef DL_NOW
7734# define LT_DLLAZY_OR_NOW DL_NOW
7735# else
7736# define LT_DLLAZY_OR_NOW 0
7737# endif
7738# endif
7739# endif
7740# endif
7741#endif
7742
7743#ifdef __cplusplus
7744extern "C" void exit (int);
7745#endif
7746
7747void fnord() { int i=42;}
7748int main ()
7749{
7750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7751 int status = $lt_dlunknown;
7752
7753 if (self)
7754 {
7755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7756 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7757 /* dlclose (self); */
7758 }
7759
7760 exit (status);
7761}
7762EOF
7763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764 (eval $ac_link) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7768 (./conftest; exit; ) 2>/dev/null
7769 lt_status=$?
7770 case x$lt_status in
7771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7773 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7774 esac
7775 else :
7776 # compilation failed
7777 lt_cv_dlopen_self=no
7778 fi
7779fi
7780rm -fr conftest*
7781
7782
7783fi
7784echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7785echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7786
7787 if test "x$lt_cv_dlopen_self" = xyes; then
7788 LDFLAGS="$LDFLAGS $link_static_flag"
7789 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7790echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7791if test "${lt_cv_dlopen_self_static+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 if test "$cross_compiling" = yes; then :
7795 lt_cv_dlopen_self_static=cross
7796else
John Criswell47fdd832003-07-14 16:52:07 +00007797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00007798 lt_status=$lt_dlunknown
7799 cat > conftest.$ac_ext <<EOF
John Criswell47fdd832003-07-14 16:52:07 +00007800#line 7800 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00007801#include "confdefs.h"
7802
7803#if HAVE_DLFCN_H
7804#include <dlfcn.h>
7805#endif
7806
7807#include <stdio.h>
7808
7809#ifdef RTLD_GLOBAL
7810# define LT_DLGLOBAL RTLD_GLOBAL
7811#else
7812# ifdef DL_GLOBAL
7813# define LT_DLGLOBAL DL_GLOBAL
7814# else
7815# define LT_DLGLOBAL 0
7816# endif
7817#endif
7818
7819/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7820 find out it does not work in some platform. */
7821#ifndef LT_DLLAZY_OR_NOW
7822# ifdef RTLD_LAZY
7823# define LT_DLLAZY_OR_NOW RTLD_LAZY
7824# else
7825# ifdef DL_LAZY
7826# define LT_DLLAZY_OR_NOW DL_LAZY
7827# else
7828# ifdef RTLD_NOW
7829# define LT_DLLAZY_OR_NOW RTLD_NOW
7830# else
7831# ifdef DL_NOW
7832# define LT_DLLAZY_OR_NOW DL_NOW
7833# else
7834# define LT_DLLAZY_OR_NOW 0
7835# endif
7836# endif
7837# endif
7838# endif
7839#endif
7840
7841#ifdef __cplusplus
7842extern "C" void exit (int);
7843#endif
7844
7845void fnord() { int i=42;}
7846int main ()
7847{
7848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7849 int status = $lt_dlunknown;
7850
7851 if (self)
7852 {
7853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7855 /* dlclose (self); */
7856 }
7857
7858 exit (status);
7859}
7860EOF
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7866 (./conftest; exit; ) 2>/dev/null
7867 lt_status=$?
7868 case x$lt_status in
7869 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7870 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7871 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7872 esac
7873 else :
7874 # compilation failed
7875 lt_cv_dlopen_self_static=no
7876 fi
7877fi
7878rm -fr conftest*
7879
7880
7881fi
7882echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7883echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7884 fi
7885
7886 CPPFLAGS="$save_CPPFLAGS"
7887 LDFLAGS="$save_LDFLAGS"
7888 LIBS="$save_LIBS"
7889 ;;
7890 esac
7891
7892 case $lt_cv_dlopen_self in
7893 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7894 *) enable_dlopen_self=unknown ;;
7895 esac
7896
7897 case $lt_cv_dlopen_self_static in
7898 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7899 *) enable_dlopen_self_static=unknown ;;
7900 esac
7901fi
7902
7903
John Criswell47fdd832003-07-14 16:52:07 +00007904# Report which librarie types wil actually be built
7905echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7906echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7907echo "$as_me:$LINENO: result: $can_build_shared" >&5
7908echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007909
John Criswell47fdd832003-07-14 16:52:07 +00007910echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7911echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7912test "$can_build_shared" = "no" && enable_shared=no
7913
7914# On AIX, shared libraries and static libraries use the same namespace, and
7915# are all built from PIC.
7916case "$host_os" in
7917aix3*)
7918 test "$enable_shared" = yes && enable_static=no
7919 if test -n "$RANLIB"; then
7920 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7921 postinstall_cmds='$RANLIB $lib'
7922 fi
7923 ;;
7924
7925aix4*)
7926 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7927 test "$enable_shared" = yes && enable_static=no
7928 fi
7929 ;;
7930 darwin* | rhapsody*)
7931 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7932 archive_cmds_need_lc=no
7933 case "$host_os" in
7934 rhapsody* | darwin1.[012])
7935 allow_undefined_flag='-undefined suppress'
7936 ;;
7937 *) # Darwin 1.3 on
7938 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7939 ;;
7940 esac
7941 # FIXME: Relying on posixy $() will cause problems for
7942 # cross-compilation, but unfortunately the echo tests do not
7943 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
7944 # `"' quotes if we put them in here... so don't!
7945 output_verbose_link_cmd='echo'
7946 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7947 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7948 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7949 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}'
7950 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}'
7951 hardcode_direct=no
7952 hardcode_automatic=yes
7953 hardcode_shlibpath_var=unsupported
7954 whole_archive_flag_spec='-all_load $convenience'
7955 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007956 fi
John Criswell7a73b802003-06-30 21:59:07 +00007957 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007958esac
7959echo "$as_me:$LINENO: result: $enable_shared" >&5
7960echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007961
John Criswell47fdd832003-07-14 16:52:07 +00007962echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7963echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7964# Make sure either enable_shared or enable_static is yes.
7965test "$enable_shared" = yes || enable_static=yes
7966echo "$as_me:$LINENO: result: $enable_static" >&5
7967echo "${ECHO_T}$enable_static" >&6
7968
7969# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00007970# libtool distribution, otherwise you forgot to ship ltmain.sh
7971# with your package, and you will get complaints that there are
7972# no rules to generate ltmain.sh.
7973if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00007974 # See if we are running on zsh, and set the options which allow our commands through
7975 # without removal of \ escapes.
7976 if test -n "${ZSH_VERSION+set}" ; then
7977 setopt NO_GLOB_SUBST
7978 fi
John Criswell7a73b802003-06-30 21:59:07 +00007979 # Now quote all the things that may contain metacharacters while being
7980 # careful not to overquote the AC_SUBSTed values. We take copies of the
7981 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00007982 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
7983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7985 deplibs_check_method reload_flag reload_cmds need_locks \
7986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7987 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00007988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00007989 old_postinstall_cmds old_postuninstall_cmds \
7990 compiler \
7991 CC \
7992 LD \
7993 lt_prog_compiler_wl \
7994 lt_prog_compiler_pic \
7995 lt_prog_compiler_static \
7996 lt_prog_compiler_no_builtin_flag \
7997 export_dynamic_flag_spec \
7998 thread_safe_flag_spec \
7999 whole_archive_flag_spec \
8000 enable_shared_with_static_runtimes \
8001 old_archive_cmds \
8002 old_archive_from_new_cmds \
8003 predep_objects \
8004 postdep_objects \
8005 predeps \
8006 postdeps \
8007 compiler_lib_search_path \
8008 archive_cmds \
8009 archive_expsym_cmds \
8010 postinstall_cmds \
8011 postuninstall_cmds \
8012 old_archive_from_expsyms_cmds \
8013 allow_undefined_flag \
8014 no_undefined_flag \
8015 export_symbols_cmds \
8016 hardcode_libdir_flag_spec \
8017 hardcode_libdir_flag_spec_ld \
8018 hardcode_libdir_separator \
8019 hardcode_automatic \
8020 module_cmds \
8021 module_expsym_cmds \
8022 lt_cv_prog_compiler_c_o \
8023 exclude_expsyms \
8024 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008025
8026 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008027 old_archive_cmds | \
8028 old_archive_from_new_cmds | \
8029 archive_cmds | \
8030 archive_expsym_cmds | \
8031 module_cmds | \
8032 module_expsym_cmds | \
8033 old_archive_from_expsyms_cmds | \
8034 export_symbols_cmds | \
8035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008036 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008037 old_postinstall_cmds | old_postuninstall_cmds | \
8038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008039 # Double-quote double-evaled strings.
8040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8041 ;;
8042 *)
8043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8044 ;;
8045 esac
8046 done
8047
John Criswell47fdd832003-07-14 16:52:07 +00008048 case $lt_echo in
8049 *'\$0 --fallback-echo"')
8050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8051 ;;
8052 esac
8053
8054cfgfile="${ofile}T"
8055 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8056 $rm -f "$cfgfile"
8057 { echo "$as_me:$LINENO: creating $ofile" >&5
8058echo "$as_me: creating $ofile" >&6;}
8059
8060 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008061#! $SHELL
8062
John Criswell47fdd832003-07-14 16:52:07 +00008063# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008064# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8065# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8066#
John Criswell47fdd832003-07-14 16:52:07 +00008067# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8068# Free Software Foundation, Inc.
8069#
8070# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008071# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8072#
8073# This program is free software; you can redistribute it and/or modify
8074# it under the terms of the GNU General Public License as published by
8075# the Free Software Foundation; either version 2 of the License, or
8076# (at your option) any later version.
8077#
8078# This program is distributed in the hope that it will be useful, but
8079# WITHOUT ANY WARRANTY; without even the implied warranty of
8080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8081# General Public License for more details.
8082#
8083# You should have received a copy of the GNU General Public License
8084# along with this program; if not, write to the Free Software
8085# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8086#
8087# As a special exception to the GNU General Public License, if you
8088# distribute this file as part of a program that contains a
8089# configuration script generated by Autoconf, you may include it under
8090# the same distribution terms that you use for the rest of that program.
8091
John Criswell47fdd832003-07-14 16:52:07 +00008092# A sed program that does not truncate output.
8093SED=$lt_SED
8094
John Criswell7a73b802003-06-30 21:59:07 +00008095# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008096Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008097
8098# The HP-UX ksh and POSIX shell print the target directory to stdout
8099# if CDPATH is set.
8100if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8101
John Criswell47fdd832003-07-14 16:52:07 +00008102# The names of the tagged configurations supported by this script.
8103available_tags=
8104
John Criswell7a73b802003-06-30 21:59:07 +00008105# ### BEGIN LIBTOOL CONFIG
8106
8107# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8108
8109# Shell to use when invoking shell scripts.
8110SHELL=$lt_SHELL
8111
8112# Whether or not to build shared libraries.
8113build_libtool_libs=$enable_shared
8114
8115# Whether or not to build static libraries.
8116build_old_libs=$enable_static
8117
8118# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008119build_libtool_need_lc=$archive_cmds_need_lc
8120
8121# Whether or not to disallow shared libs when runtime libs are static
8122allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008123
8124# Whether or not to optimize for fast installation.
8125fast_install=$enable_fast_install
8126
8127# The host system.
8128host_alias=$host_alias
8129host=$host
8130
8131# An echo program that does not interpret backslashes.
8132echo=$lt_echo
8133
8134# The archiver.
8135AR=$lt_AR
8136AR_FLAGS=$lt_AR_FLAGS
8137
John Criswell47fdd832003-07-14 16:52:07 +00008138# A C compiler.
8139LTCC=$lt_LTCC
8140
8141# A language-specific compiler.
8142CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008143
8144# Is the compiler the GNU C compiler?
8145with_gcc=$GCC
8146
John Criswell47fdd832003-07-14 16:52:07 +00008147# An ERE matcher.
8148EGREP=$lt_EGREP
8149
John Criswell7a73b802003-06-30 21:59:07 +00008150# The linker used to build libraries.
8151LD=$lt_LD
8152
8153# Whether we need hard or soft links.
8154LN_S=$lt_LN_S
8155
8156# A BSD-compatible nm program.
8157NM=$lt_NM
8158
8159# A symbol stripping program
8160STRIP=$STRIP
8161
8162# Used to examine libraries when file_magic_cmd begins "file"
8163MAGIC_CMD=$MAGIC_CMD
8164
8165# Used on cygwin: DLL creation program.
8166DLLTOOL="$DLLTOOL"
8167
8168# Used on cygwin: object dumper.
8169OBJDUMP="$OBJDUMP"
8170
8171# Used on cygwin: assembler.
8172AS="$AS"
8173
8174# The name of the directory that contains temporary libtool files.
8175objdir=$objdir
8176
8177# How to create reloadable object files.
8178reload_flag=$lt_reload_flag
8179reload_cmds=$lt_reload_cmds
8180
8181# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008182wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008183
8184# Object file suffix (normally "o").
8185objext="$ac_objext"
8186
8187# Old archive suffix (normally "a").
8188libext="$libext"
8189
John Criswell47fdd832003-07-14 16:52:07 +00008190# Shared library suffix (normally ".so").
8191shrext='$shrext'
8192
John Criswell7a73b802003-06-30 21:59:07 +00008193# Executable file suffix (normally "").
8194exeext="$exeext"
8195
8196# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008197pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008198pic_mode=$pic_mode
8199
John Criswell47fdd832003-07-14 16:52:07 +00008200# What is the maximum length of a command?
8201max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008202
John Criswell47fdd832003-07-14 16:52:07 +00008203# Does compiler simultaneously support -c and -o options?
8204compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008205
8206# Must we lock files when doing compilation ?
8207need_locks=$lt_need_locks
8208
8209# Do we need the lib prefix for modules?
8210need_lib_prefix=$need_lib_prefix
8211
8212# Do we need a version for libraries?
8213need_version=$need_version
8214
8215# Whether dlopen is supported.
8216dlopen_support=$enable_dlopen
8217
8218# Whether dlopen of programs is supported.
8219dlopen_self=$enable_dlopen_self
8220
8221# Whether dlopen of statically linked programs is supported.
8222dlopen_self_static=$enable_dlopen_self_static
8223
8224# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008225link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008226
8227# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008228no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008229
8230# Compiler flag to allow reflexive dlopens.
8231export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8232
8233# Compiler flag to generate shared objects directly from archives.
8234whole_archive_flag_spec=$lt_whole_archive_flag_spec
8235
8236# Compiler flag to generate thread-safe objects.
8237thread_safe_flag_spec=$lt_thread_safe_flag_spec
8238
8239# Library versioning type.
8240version_type=$version_type
8241
8242# Format of library name prefix.
8243libname_spec=$lt_libname_spec
8244
8245# List of archive names. First name is the real one, the rest are links.
8246# The last name is the one that the linker finds with -lNAME.
8247library_names_spec=$lt_library_names_spec
8248
8249# The coded name of the library, if different from the real name.
8250soname_spec=$lt_soname_spec
8251
8252# Commands used to build and install an old-style archive.
8253RANLIB=$lt_RANLIB
8254old_archive_cmds=$lt_old_archive_cmds
8255old_postinstall_cmds=$lt_old_postinstall_cmds
8256old_postuninstall_cmds=$lt_old_postuninstall_cmds
8257
8258# Create an old-style archive from a shared archive.
8259old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8260
8261# Create a temporary old-style archive to link instead of a shared archive.
8262old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8263
8264# Commands used to build and install a shared archive.
8265archive_cmds=$lt_archive_cmds
8266archive_expsym_cmds=$lt_archive_expsym_cmds
8267postinstall_cmds=$lt_postinstall_cmds
8268postuninstall_cmds=$lt_postuninstall_cmds
8269
John Criswell47fdd832003-07-14 16:52:07 +00008270# Commands used to build a loadable module (assumed same as above if empty)
8271module_cmds=$lt_module_cmds
8272module_expsym_cmds=$lt_module_expsym_cmds
8273
John Criswell7a73b802003-06-30 21:59:07 +00008274# Commands to strip libraries.
8275old_striplib=$lt_old_striplib
8276striplib=$lt_striplib
8277
John Criswell47fdd832003-07-14 16:52:07 +00008278# Dependencies to place before the objects being linked to create a
8279# shared library.
8280predep_objects=$lt_predep_objects
8281
8282# Dependencies to place after the objects being linked to create a
8283# shared library.
8284postdep_objects=$lt_postdep_objects
8285
8286# Dependencies to place before the objects being linked to create a
8287# shared library.
8288predeps=$lt_predeps
8289
8290# Dependencies to place after the objects being linked to create a
8291# shared library.
8292postdeps=$lt_postdeps
8293
8294# The library search path used internally by the compiler when linking
8295# a shared library.
8296compiler_lib_search_path=$lt_compiler_lib_search_path
8297
John Criswell7a73b802003-06-30 21:59:07 +00008298# Method to check whether dependent libraries are shared objects.
8299deplibs_check_method=$lt_deplibs_check_method
8300
8301# Command to use when deplibs_check_method == file_magic.
8302file_magic_cmd=$lt_file_magic_cmd
8303
8304# Flag that allows shared libraries with undefined symbols to be built.
8305allow_undefined_flag=$lt_allow_undefined_flag
8306
8307# Flag that forces no undefined symbols.
8308no_undefined_flag=$lt_no_undefined_flag
8309
8310# Commands used to finish a libtool library installation in a directory.
8311finish_cmds=$lt_finish_cmds
8312
8313# Same as above, but a single script fragment to be evaled but not shown.
8314finish_eval=$lt_finish_eval
8315
8316# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008317global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008318
8319# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008320global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008321
8322# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008323global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008324
8325# This is the shared library runtime path variable.
8326runpath_var=$runpath_var
8327
8328# This is the shared library path variable.
8329shlibpath_var=$shlibpath_var
8330
8331# Is shlibpath searched before the hard-coded library search path?
8332shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8333
8334# How to hardcode a shared library path into an executable.
8335hardcode_action=$hardcode_action
8336
8337# Whether we should hardcode library paths into libraries.
8338hardcode_into_libs=$hardcode_into_libs
8339
8340# Flag to hardcode \$libdir into a binary during linking.
8341# This must work even if \$libdir does not exist.
8342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8343
John Criswell47fdd832003-07-14 16:52:07 +00008344# If ld is used when linking, flag to hardcode \$libdir into
8345# a binary during linking. This must work even if \$libdir does
8346# not exist.
8347hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8348
John Criswell7a73b802003-06-30 21:59:07 +00008349# Whether we need a single -rpath flag with a separated argument.
8350hardcode_libdir_separator=$lt_hardcode_libdir_separator
8351
John Criswell47fdd832003-07-14 16:52:07 +00008352# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008353# resulting binary.
8354hardcode_direct=$hardcode_direct
8355
8356# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8357# resulting binary.
8358hardcode_minus_L=$hardcode_minus_L
8359
8360# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8361# the resulting binary.
8362hardcode_shlibpath_var=$hardcode_shlibpath_var
8363
John Criswell47fdd832003-07-14 16:52:07 +00008364# Set to yes if building a shared library automatically hardcodes DIR into the library
8365# and all subsequent libraries and executables linked against it.
8366hardcode_automatic=$hardcode_automatic
8367
John Criswell7a73b802003-06-30 21:59:07 +00008368# Variables whose values should be saved in libtool wrapper scripts and
8369# restored at relink time.
8370variables_saved_for_relink="$variables_saved_for_relink"
8371
8372# Whether libtool must link a program against all its dependency libraries.
8373link_all_deplibs=$link_all_deplibs
8374
8375# Compile-time system search path for libraries
8376sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8377
8378# Run-time system search path for libraries
8379sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8380
8381# Fix the shell variable \$srcfile for the compiler.
8382fix_srcfile_path="$fix_srcfile_path"
8383
8384# Set to yes if exported symbols are required.
8385always_export_symbols=$always_export_symbols
8386
8387# The commands to list exported symbols.
8388export_symbols_cmds=$lt_export_symbols_cmds
8389
8390# The commands to extract the exported symbol list from a shared archive.
8391extract_expsyms_cmds=$lt_extract_expsyms_cmds
8392
8393# Symbols that should not be listed in the preloaded symbols.
8394exclude_expsyms=$lt_exclude_expsyms
8395
8396# Symbols that must always be exported.
8397include_expsyms=$lt_include_expsyms
8398
8399# ### END LIBTOOL CONFIG
8400
8401__EOF__
8402
John Criswell47fdd832003-07-14 16:52:07 +00008403
John Criswell7a73b802003-06-30 21:59:07 +00008404 case $host_os in
8405 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008406 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008407
8408# AIX sometimes has problems with the GCC collect2 program. For some
8409# reason, if we set the COLLECT_NAMES environment variable, the problems
8410# vanish in a puff of smoke.
8411if test "X${COLLECT_NAMES+set}" != Xset; then
8412 COLLECT_NAMES=
8413 export COLLECT_NAMES
8414fi
8415EOF
8416 ;;
8417 esac
8418
John Criswell7a73b802003-06-30 21:59:07 +00008419 # We use sed instead of cat because bash on DJGPP gets confused if
8420 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8421 # text mode, it properly converts lines to CR/LF. This bash problem
8422 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008423 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008424
John Criswell47fdd832003-07-14 16:52:07 +00008425 mv -f "$cfgfile" "$ofile" || \
8426 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008427 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008428
8429else
8430 # If there is no Makefile yet, we rely on a make rule to execute
8431 # `config.status --recheck' to rerun these tests and create the
8432 # libtool script then.
8433 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008434fi
John Criswell7a73b802003-06-30 21:59:07 +00008435
8436
John Criswell47fdd832003-07-14 16:52:07 +00008437ac_ext=c
8438ac_cpp='$CPP $CPPFLAGS'
8439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
8443CC="$lt_save_CC"
8444
8445
8446# Check whether --with-tags or --without-tags was given.
8447if test "${with_tags+set}" = set; then
8448 withval="$with_tags"
8449 tagnames="$withval"
8450fi;
8451
8452if test -f "$ltmain" && test -n "$tagnames"; then
8453 if test ! -f "${ofile}"; then
8454 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8455echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8456 fi
8457
8458 if test -z "$LTCC"; then
8459 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8460 if test -z "$LTCC"; then
8461 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8462echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8463 else
8464 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8465echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8466 fi
8467 fi
8468
8469 # Extract list of available tagged configurations in $ofile.
8470 # Note that this assumes the entire list is on one line.
8471 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8472
8473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474 for tagname in $tagnames; do
8475 IFS="$lt_save_ifs"
8476 # Check whether tagname contains only valid characters
8477 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8478 "") ;;
8479 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8480echo "$as_me: error: invalid tag name: $tagname" >&2;}
8481 { (exit 1); exit 1; }; }
8482 ;;
8483 esac
8484
8485 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8486 then
8487 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8488echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8489 { (exit 1); exit 1; }; }
8490 fi
8491
8492 # Update the list of available tags.
8493 if test -n "$tagname"; then
8494 echo appending configuration tag \"$tagname\" to $ofile
8495
8496 case $tagname in
8497 CXX)
8498 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8499 ac_ext=cc
8500ac_cpp='$CXXCPP $CPPFLAGS'
8501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8504
8505
8506
8507
8508archive_cmds_need_lc_CXX=no
8509allow_undefined_flag_CXX=
8510always_export_symbols_CXX=no
8511archive_expsym_cmds_CXX=
8512export_dynamic_flag_spec_CXX=
8513hardcode_direct_CXX=no
8514hardcode_libdir_flag_spec_CXX=
8515hardcode_libdir_flag_spec_ld_CXX=
8516hardcode_libdir_separator_CXX=
8517hardcode_minus_L_CXX=no
8518hardcode_automatic_CXX=no
8519module_cmds_CXX=
8520module_expsym_cmds_CXX=
8521link_all_deplibs_CXX=unknown
8522old_archive_cmds_CXX=$old_archive_cmds
8523no_undefined_flag_CXX=
8524whole_archive_flag_spec_CXX=
8525enable_shared_with_static_runtimes_CXX=no
8526
8527# Dependencies to place before and after the object being linked:
8528predep_objects_CXX=
8529postdep_objects_CXX=
8530predeps_CXX=
8531postdeps_CXX=
8532compiler_lib_search_path_CXX=
8533
8534# Source file extension for C++ test sources.
8535ac_ext=cc
8536
8537# Object file extension for compiled C++ test sources.
8538objext=o
8539objext_CXX=$objext
8540
8541# Code to be used in simple compile tests
8542lt_simple_compile_test_code="int some_variable = 0;\n"
8543
8544# Code to be used in simple link tests
8545lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8546
8547# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8548
8549# If no C compiler was specified, use CC.
8550LTCC=${LTCC-"$CC"}
8551
8552# Allow CC to be a program name with arguments.
8553compiler=$CC
8554
8555
8556# Allow CC to be a program name with arguments.
8557lt_save_CC=$CC
8558lt_save_LD=$LD
8559lt_save_GCC=$GCC
8560GCC=$GXX
8561lt_save_with_gnu_ld=$with_gnu_ld
8562lt_save_path_LD=$lt_cv_path_LD
8563if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8564 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8565else
8566 unset lt_cv_prog_gnu_ld
8567fi
8568if test -n "${lt_cv_path_LDCXX+set}"; then
8569 lt_cv_path_LD=$lt_cv_path_LDCXX
8570else
8571 unset lt_cv_path_LD
8572fi
8573test -z "${LDCXX+set}" || LD=$LDCXX
8574CC=${CXX-"c++"}
8575compiler=$CC
8576compiler_CXX=$CC
8577cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8578
8579# We don't want -fno-exception wen compiling C++ code, so set the
8580# no_builtin_flag separately
8581if test "$GXX" = yes; then
8582 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8583else
8584 lt_prog_compiler_no_builtin_flag_CXX=
8585fi
8586
8587if test "$GXX" = yes; then
8588 # Set up default GNU C++ configuration
8589
8590
8591# Check whether --with-gnu-ld or --without-gnu-ld was given.
8592if test "${with_gnu_ld+set}" = set; then
8593 withval="$with_gnu_ld"
8594 test "$withval" = no || with_gnu_ld=yes
8595else
8596 with_gnu_ld=no
8597fi;
8598ac_prog=ld
8599if test "$GCC" = yes; then
8600 # Check if gcc -print-prog-name=ld gives a path.
8601 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8602echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8603 case $host in
8604 *-*-mingw*)
8605 # gcc leaves a trailing carriage return which upsets mingw
8606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8607 *)
8608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8609 esac
8610 case $ac_prog in
8611 # Accept absolute paths.
8612 [\\/]* | ?:[\\/]*)
8613 re_direlt='/[^/][^/]*/\.\./'
8614 # Canonicalize the path of ld
8615 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8616 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8617 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8618 done
8619 test -z "$LD" && LD="$ac_prog"
8620 ;;
8621 "")
8622 # If it fails, then pretend we aren't using GCC.
8623 ac_prog=ld
8624 ;;
8625 *)
8626 # If it is relative, then search for the first ld in PATH.
8627 with_gnu_ld=unknown
8628 ;;
8629 esac
8630elif test "$with_gnu_ld" = yes; then
8631 echo "$as_me:$LINENO: checking for GNU ld" >&5
8632echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8633else
8634 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8635echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8636fi
8637if test "${lt_cv_path_LD+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639else
8640 if test -z "$LD"; then
8641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8642 for ac_dir in $PATH; do
8643 IFS="$lt_save_ifs"
8644 test -z "$ac_dir" && ac_dir=.
8645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8646 lt_cv_path_LD="$ac_dir/$ac_prog"
8647 # Check to see if the program is GNU ld. I'd rather use --version,
8648 # but apparently some GNU ld's only accept -v.
8649 # Break only if it was the GNU/non-GNU ld that we prefer.
8650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8651 *GNU* | *'with BFD'*)
8652 test "$with_gnu_ld" != no && break
8653 ;;
8654 *)
8655 test "$with_gnu_ld" != yes && break
8656 ;;
8657 esac
8658 fi
8659 done
8660 IFS="$lt_save_ifs"
8661else
8662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8663fi
8664fi
8665
8666LD="$lt_cv_path_LD"
8667if test -n "$LD"; then
8668 echo "$as_me:$LINENO: result: $LD" >&5
8669echo "${ECHO_T}$LD" >&6
8670else
8671 echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
8673fi
8674test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8675echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8676 { (exit 1); exit 1; }; }
8677echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8678echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8679if test "${lt_cv_prog_gnu_ld+set}" = set; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8683case `"$LD" -v 2>&1 </dev/null` in
8684*GNU* | *'with BFD'*)
8685 lt_cv_prog_gnu_ld=yes
8686 ;;
8687*)
8688 lt_cv_prog_gnu_ld=no
8689 ;;
8690esac
8691fi
8692echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8693echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8694with_gnu_ld=$lt_cv_prog_gnu_ld
8695
8696
8697
8698 # Check if GNU C++ uses GNU ld as the underlying linker, since the
8699 # archiving commands below assume that GNU ld is being used.
8700 if test "$with_gnu_ld" = yes; then
8701 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702 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'
8703
8704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8706
8707 # If archive_cmds runs LD, not CC, wlarc should be empty
8708 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8709 # investigate it a little bit more. (MM)
8710 wlarc='${wl}'
8711
8712 # ancient GNU ld didn't support --whole-archive et. al.
8713 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8714 grep 'no-whole-archive' > /dev/null; then
8715 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8716 else
8717 whole_archive_flag_spec_CXX=
8718 fi
8719 else
8720 with_gnu_ld=no
8721 wlarc=
8722
8723 # A generic and very simple default shared library creation
8724 # command for GNU C++ for the case where it uses the native
8725 # linker, instead of GNU ld. If possible, this setting should
8726 # overridden to take advantage of the native linker features on
8727 # the platform it is being used on.
8728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8729 fi
8730
8731 # Commands to make compiler produce verbose output that lists
8732 # what "hidden" libraries, object files and flags are used when
8733 # linking a shared library.
8734 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8735
8736else
8737 GXX=no
8738 with_gnu_ld=no
8739 wlarc=
8740fi
8741
8742# PORTME: fill in a description of your system's C++ link characteristics
8743echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8744echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8745ld_shlibs_CXX=yes
8746case $host_os in
8747 aix3*)
8748 # FIXME: insert proper C++ library support
8749 ld_shlibs_CXX=no
8750 ;;
8751 aix4* | aix5*)
8752 if test "$host_cpu" = ia64; then
8753 # On IA64, the linker does run time linking by default, so we don't
8754 # have to do anything special.
8755 aix_use_runtimelinking=no
8756 exp_sym_flag='-Bexport'
8757 no_entry_flag=""
8758 else
8759 aix_use_runtimelinking=no
8760
8761 # Test if we are trying to use run time linking or normal
8762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763 # need to do runtime linking.
8764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8765 for ld_flag in $LDFLAGS; do
8766 case $ld_flag in
8767 *-brtl*)
8768 aix_use_runtimelinking=yes
8769 break
8770 ;;
8771 esac
8772 done
8773 esac
8774
8775 exp_sym_flag='-bexport'
8776 no_entry_flag='-bnoentry'
8777 fi
8778
8779 # When large executables or shared objects are built, AIX ld can
8780 # have problems creating the table of contents. If linking a library
8781 # or program results in "error TOC overflow" add -mminimal-toc to
8782 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8783 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8784
8785 archive_cmds_CXX=''
8786 hardcode_direct_CXX=yes
8787 hardcode_libdir_separator_CXX=':'
8788 link_all_deplibs_CXX=yes
8789
8790 if test "$GXX" = yes; then
8791 case $host_os in aix4.012|aix4.012.*)
8792 # We only want to do this on AIX 4.2 and lower, the check
8793 # below for broken collect2 doesn't work under 4.3+
8794 collect2name=`${CC} -print-prog-name=collect2`
8795 if test -f "$collect2name" && \
8796 strings "$collect2name" | grep resolve_lib_name >/dev/null
8797 then
8798 # We have reworked collect2
8799 hardcode_direct_CXX=yes
8800 else
8801 # We have old collect2
8802 hardcode_direct_CXX=unsupported
8803 # It fails to find uninstalled libraries when the uninstalled
8804 # path is not listed in the libpath. Setting hardcode_minus_L
8805 # to unsupported forces relinking
8806 hardcode_minus_L_CXX=yes
8807 hardcode_libdir_flag_spec_CXX='-L$libdir'
8808 hardcode_libdir_separator_CXX=
8809 fi
8810 esac
8811 shared_flag='-shared'
8812 else
8813 # not using gcc
8814 if test "$host_cpu" = ia64; then
8815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8816 # chokes on -Wl,-G. The following line is correct:
8817 shared_flag='-G'
8818 else
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag='${wl}-G'
8821 else
8822 shared_flag='${wl}-bM:SRE'
8823 fi
8824 fi
8825 fi
8826
8827 # It seems that -bexpall does not export symbols beginning with
8828 # underscore (_), so it is better to generate a list of symbols to export.
8829 always_export_symbols_CXX=yes
8830 if test "$aix_use_runtimelinking" = yes; then
8831 # Warning - without using the other runtime loading flags (-brtl),
8832 # -berok will link without error, but may produce a broken library.
8833 allow_undefined_flag_CXX='-berok'
8834 # Determine the default libpath from the value encoded in an empty executable.
8835 cat >conftest.$ac_ext <<_ACEOF
8836#line $LINENO "configure"
8837#include "confdefs.h"
8838
8839#ifdef F77_DUMMY_MAIN
8840# ifdef __cplusplus
8841 extern "C"
8842# endif
8843 int F77_DUMMY_MAIN() { return 1; }
8844#endif
8845int
8846main ()
8847{
8848
8849 ;
8850 return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext conftest$ac_exeext
8854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865
8866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8867}'`
8868# Check for a 64-bit object if we didn't find anything.
8869if 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; }
8870}'`; fi
8871else
8872 echo "$as_me: failed program was:" >&5
8873cat conftest.$ac_ext >&5
8874fi
8875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8877
8878 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8879
8880 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"
8881 else
8882 if test "$host_cpu" = ia64; then
8883 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8884 allow_undefined_flag_CXX="-z nodefs"
8885 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"
8886 else
8887 # Determine the default libpath from the value encoded in an empty executable.
8888 cat >conftest.$ac_ext <<_ACEOF
8889#line $LINENO "configure"
8890#include "confdefs.h"
8891
8892#ifdef F77_DUMMY_MAIN
8893# ifdef __cplusplus
8894 extern "C"
8895# endif
8896 int F77_DUMMY_MAIN() { return 1; }
8897#endif
8898int
8899main ()
8900{
8901
8902 ;
8903 return 0;
8904}
8905_ACEOF
8906rm -f conftest.$ac_objext conftest$ac_exeext
8907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918
8919aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8920}'`
8921# Check for a 64-bit object if we didn't find anything.
8922if 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; }
8923}'`; fi
8924else
8925 echo "$as_me: failed program was:" >&5
8926cat conftest.$ac_ext >&5
8927fi
8928rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8930
8931 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 # Warning - without using the other run time loading flags,
8933 # -berok will link without error, but may produce a broken library.
8934 no_undefined_flag_CXX=' ${wl}-bernotok'
8935 allow_undefined_flag_CXX=' ${wl}-berok'
8936 # -bexpall does not export symbols beginning with underscore (_)
8937 always_export_symbols_CXX=yes
8938 # Exported symbols can be pulled into shared objects from archives
8939 whole_archive_flag_spec_CXX=' '
8940 archive_cmds_need_lc_CXX=yes
8941 # This is similar to how AIX traditionally builds it's shared libraries.
8942 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'
8943 fi
8944 fi
8945 ;;
8946 chorus*)
8947 case $cc_basename in
8948 *)
8949 # FIXME: insert proper C++ library support
8950 ld_shlibs_CXX=no
8951 ;;
8952 esac
8953 ;;
8954
8955 cygwin* | mingw* | pw32*)
8956 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
8957 # as there is no search path for DLLs.
8958 hardcode_libdir_flag_spec_CXX='-L$libdir'
8959 allow_undefined_flag_CXX=unsupported
8960 always_export_symbols_CXX=no
8961 enable_shared_with_static_runtimes_CXX=yes
8962
8963 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8964 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'
8965 # If the export-symbols file already is a .def file (1st line
8966 # is EXPORTS), use it as is; otherwise, prepend...
8967 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8968 cp $export_symbols $output_objdir/$soname.def;
8969 else
8970 echo EXPORTS > $output_objdir/$soname.def;
8971 cat $export_symbols >> $output_objdir/$soname.def;
8972 fi~
8973 $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'
8974 else
8975 ld_shlibs_CXX=no
8976 fi
8977 ;;
8978
8979 darwin* | rhapsody*)
8980 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8981 archive_cmds_need_lc_CXX=no
8982 case "$host_os" in
8983 rhapsody* | darwin1.[012])
8984 allow_undefined_flag_CXX='-undefined suppress'
8985 ;;
8986 *) # Darwin 1.3 on
8987 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
8988 ;;
8989 esac
8990 lt_int_apple_cc_single_mod=no
8991 output_verbose_link_cmd='echo'
8992 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8993 lt_int_apple_cc_single_mod=yes
8994 fi
8995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8996 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8997 else
8998 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'
8999 fi
9000 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9001
9002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9003 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9004 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}'
9005 else
9006 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}'
9007 fi
9008 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}'
9009 hardcode_direct_CXX=no
9010 hardcode_automatic_CXX=yes
9011 hardcode_shlibpath_var_CXX=unsupported
9012 whole_archive_flag_spec_CXX='-all_load $convenience'
9013 link_all_deplibs_CXX=yes
9014 fi
9015 ;;
9016
9017 dgux*)
9018 case $cc_basename in
9019 ec++)
9020 # FIXME: insert proper C++ library support
9021 ld_shlibs_CXX=no
9022 ;;
9023 ghcx)
9024 # Green Hills C++ Compiler
9025 # FIXME: insert proper C++ library support
9026 ld_shlibs_CXX=no
9027 ;;
9028 *)
9029 # FIXME: insert proper C++ library support
9030 ld_shlibs_CXX=no
9031 ;;
9032 esac
9033 ;;
9034 freebsd12*)
9035 # C++ shared libraries reported to be fairly broken before switch to ELF
9036 ld_shlibs_CXX=no
9037 ;;
9038 freebsd-elf*)
9039 archive_cmds_need_lc_CXX=no
9040 ;;
9041 freebsd*)
9042 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9043 # conventions
9044 ld_shlibs_CXX=yes
9045 ;;
9046 gnu*)
9047 ;;
9048 hpux9*)
9049 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9050 hardcode_libdir_separator_CXX=:
9051 export_dynamic_flag_spec_CXX='${wl}-E'
9052 hardcode_direct_CXX=yes
9053 hardcode_minus_L_CXX=yes # Not in the search PATH,
9054 # but as the default
9055 # location of the library.
9056
9057 case $cc_basename in
9058 CC)
9059 # FIXME: insert proper C++ library support
9060 ld_shlibs_CXX=no
9061 ;;
9062 aCC)
9063 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'
9064 # Commands to make compiler produce verbose output that lists
9065 # what "hidden" libraries, object files and flags are used when
9066 # linking a shared library.
9067 #
9068 # There doesn't appear to be a way to prevent this compiler from
9069 # explicitly linking system object files so we need to strip them
9070 # from the output so that they don't get included in the library
9071 # dependencies.
9072 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'
9073 ;;
9074 *)
9075 if test "$GXX" = yes; then
9076 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'
9077 else
9078 # FIXME: insert proper C++ library support
9079 ld_shlibs_CXX=no
9080 fi
9081 ;;
9082 esac
9083 ;;
9084 hpux10*|hpux11*)
9085 if test $with_gnu_ld = no; then
9086 case "$host_cpu" in
9087 hppa*64*)
9088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9089 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9090 hardcode_libdir_separator_CXX=:
9091 ;;
9092 ia64*)
9093 hardcode_libdir_flag_spec_CXX='-L$libdir'
9094 ;;
9095 *)
9096 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9097 hardcode_libdir_separator_CXX=:
9098 export_dynamic_flag_spec_CXX='${wl}-E'
9099 ;;
9100 esac
9101 fi
9102 case "$host_cpu" in
9103 hppa*64*)
9104 hardcode_direct_CXX=no
9105 hardcode_shlibpath_var_CXX=no
9106 ;;
9107 ia64*)
9108 hardcode_direct_CXX=no
9109 hardcode_shlibpath_var_CXX=no
9110 hardcode_minus_L_CXX=yes # Not in the search PATH,
9111 # but as the default
9112 # location of the library.
9113 ;;
9114 *)
9115 hardcode_direct_CXX=yes
9116 hardcode_minus_L_CXX=yes # Not in the search PATH,
9117 # but as the default
9118 # location of the library.
9119 ;;
9120 esac
9121
9122 case $cc_basename in
9123 CC)
9124 # FIXME: insert proper C++ library support
9125 ld_shlibs_CXX=no
9126 ;;
9127 aCC)
9128 case "$host_cpu" in
9129 hppa*64*|ia64*)
9130 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9131 ;;
9132 *)
9133 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9134 ;;
9135 esac
9136 # Commands to make compiler produce verbose output that lists
9137 # what "hidden" libraries, object files and flags are used when
9138 # linking a shared library.
9139 #
9140 # There doesn't appear to be a way to prevent this compiler from
9141 # explicitly linking system object files so we need to strip them
9142 # from the output so that they don't get included in the library
9143 # dependencies.
9144 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'
9145 ;;
9146 *)
9147 if test "$GXX" = yes; then
9148 if test $with_gnu_ld = no; then
9149 case "$host_cpu" in
9150 ia64*|hppa*64*)
9151 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9152 ;;
9153 *)
9154 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'
9155 ;;
9156 esac
9157 fi
9158 else
9159 # FIXME: insert proper C++ library support
9160 ld_shlibs_CXX=no
9161 fi
9162 ;;
9163 esac
9164 ;;
9165 irix5* | irix6*)
9166 case $cc_basename in
9167 CC)
9168 # SGI C++
9169 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'
9170
9171 # Archives containing C++ object files must be created using
9172 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9173 # necessary to make sure instantiated templates are included
9174 # in the archive.
9175 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9176 ;;
9177 *)
9178 if test "$GXX" = yes; then
9179 if test "$with_gnu_ld" = no; then
9180 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'
9181 else
9182 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'
9183 fi
9184 fi
9185 link_all_deplibs_CXX=yes
9186 ;;
9187 esac
9188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator_CXX=:
9190 ;;
9191 linux*)
9192 case $cc_basename in
9193 KCC)
9194 # Kuck and Associates, Inc. (KAI) C++ Compiler
9195
9196 # KCC will only create a shared library if the output file
9197 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9198 # to its proper name (with version) after linking.
9199 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'
9200 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'
9201 # Commands to make compiler produce verbose output that lists
9202 # what "hidden" libraries, object files and flags are used when
9203 # linking a shared library.
9204 #
9205 # There doesn't appear to be a way to prevent this compiler from
9206 # explicitly linking system object files so we need to strip them
9207 # from the output so that they don't get included in the library
9208 # dependencies.
9209 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'
9210
9211 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9213
9214 # Archives containing C++ object files must be created using
9215 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9216 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9217 ;;
9218 icpc)
9219 # Intel C++
9220 with_gnu_ld=yes
9221 archive_cmds_need_lc_CXX=no
9222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 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'
9224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9226 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9227 ;;
9228 cxx)
9229 # Compaq C++
9230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231 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'
9232
9233 runpath_var=LD_RUN_PATH
9234 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9235 hardcode_libdir_separator_CXX=:
9236
9237 # Commands to make compiler produce verbose output that lists
9238 # what "hidden" libraries, object files and flags are used when
9239 # linking a shared library.
9240 #
9241 # There doesn't appear to be a way to prevent this compiler from
9242 # explicitly linking system object files so we need to strip them
9243 # from the output so that they don't get included in the library
9244 # dependencies.
9245 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'
9246 ;;
9247 esac
9248 ;;
9249 lynxos*)
9250 # FIXME: insert proper C++ library support
9251 ld_shlibs_CXX=no
9252 ;;
9253 m88k*)
9254 # FIXME: insert proper C++ library support
9255 ld_shlibs_CXX=no
9256 ;;
9257 mvs*)
9258 case $cc_basename in
9259 cxx)
9260 # FIXME: insert proper C++ library support
9261 ld_shlibs_CXX=no
9262 ;;
9263 *)
9264 # FIXME: insert proper C++ library support
9265 ld_shlibs_CXX=no
9266 ;;
9267 esac
9268 ;;
9269 netbsd*)
9270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9271 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9272 wlarc=
9273 hardcode_libdir_flag_spec_CXX='-R$libdir'
9274 hardcode_direct_CXX=yes
9275 hardcode_shlibpath_var_CXX=no
9276 fi
9277 # Workaround some broken pre-1.5 toolchains
9278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9279 ;;
9280 osf3*)
9281 case $cc_basename in
9282 KCC)
9283 # Kuck and Associates, Inc. (KAI) C++ Compiler
9284
9285 # KCC will only create a shared library if the output file
9286 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9287 # to its proper name (with version) after linking.
9288 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'
9289
9290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9291 hardcode_libdir_separator_CXX=:
9292
9293 # Archives containing C++ object files must be created using
9294 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9295 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9296
9297 ;;
9298 RCC)
9299 # Rational C++ 2.4.1
9300 # FIXME: insert proper C++ library support
9301 ld_shlibs_CXX=no
9302 ;;
9303 cxx)
9304 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9305 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'
9306
9307 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9308 hardcode_libdir_separator_CXX=:
9309
9310 # Commands to make compiler produce verbose output that lists
9311 # what "hidden" libraries, object files and flags are used when
9312 # linking a shared library.
9313 #
9314 # There doesn't appear to be a way to prevent this compiler from
9315 # explicitly linking system object files so we need to strip them
9316 # from the output so that they don't get included in the library
9317 # dependencies.
9318 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'
9319 ;;
9320 *)
9321 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9322 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9323 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'
9324
9325 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9326 hardcode_libdir_separator_CXX=:
9327
9328 # Commands to make compiler produce verbose output that lists
9329 # what "hidden" libraries, object files and flags are used when
9330 # linking a shared library.
9331 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9332
9333 else
9334 # FIXME: insert proper C++ library support
9335 ld_shlibs_CXX=no
9336 fi
9337 ;;
9338 esac
9339 ;;
9340 osf4* | osf5*)
9341 case $cc_basename in
9342 KCC)
9343 # Kuck and Associates, Inc. (KAI) C++ Compiler
9344
9345 # KCC will only create a shared library if the output file
9346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9347 # to its proper name (with version) after linking.
9348 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'
9349
9350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9351 hardcode_libdir_separator_CXX=:
9352
9353 # Archives containing C++ object files must be created using
9354 # the KAI C++ compiler.
9355 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9356 ;;
9357 RCC)
9358 # Rational C++ 2.4.1
9359 # FIXME: insert proper C++ library support
9360 ld_shlibs_CXX=no
9361 ;;
9362 cxx)
9363 allow_undefined_flag_CXX=' -expect_unresolved \*'
9364 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'
9365 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9366 echo "-hidden">> $lib.exp~
9367 $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~
9368 $rm $lib.exp'
9369
9370 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9371 hardcode_libdir_separator_CXX=:
9372
9373 # Commands to make compiler produce verbose output that lists
9374 # what "hidden" libraries, object files and flags are used when
9375 # linking a shared library.
9376 #
9377 # There doesn't appear to be a way to prevent this compiler from
9378 # explicitly linking system object files so we need to strip them
9379 # from the output so that they don't get included in the library
9380 # dependencies.
9381 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'
9382 ;;
9383 *)
9384 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9385 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9386 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'
9387
9388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9389 hardcode_libdir_separator_CXX=:
9390
9391 # Commands to make compiler produce verbose output that lists
9392 # what "hidden" libraries, object files and flags are used when
9393 # linking a shared library.
9394 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9395
9396 else
9397 # FIXME: insert proper C++ library support
9398 ld_shlibs_CXX=no
9399 fi
9400 ;;
9401 esac
9402 ;;
9403 psos*)
9404 # FIXME: insert proper C++ library support
9405 ld_shlibs_CXX=no
9406 ;;
9407 sco*)
9408 archive_cmds_need_lc_CXX=no
9409 case $cc_basename in
9410 CC)
9411 # FIXME: insert proper C++ library support
9412 ld_shlibs_CXX=no
9413 ;;
9414 *)
9415 # FIXME: insert proper C++ library support
9416 ld_shlibs_CXX=no
9417 ;;
9418 esac
9419 ;;
9420 sunos4*)
9421 case $cc_basename in
9422 CC)
9423 # Sun C++ 4.x
9424 # FIXME: insert proper C++ library support
9425 ld_shlibs_CXX=no
9426 ;;
9427 lcc)
9428 # Lucid
9429 # FIXME: insert proper C++ library support
9430 ld_shlibs_CXX=no
9431 ;;
9432 *)
9433 # FIXME: insert proper C++ library support
9434 ld_shlibs_CXX=no
9435 ;;
9436 esac
9437 ;;
9438 solaris*)
9439 case $cc_basename in
9440 CC)
9441 # Sun C++ 4.2, 5.x and Centerline C++
9442 no_undefined_flag_CXX=' -zdefs'
9443 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9444 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9445 $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'
9446
9447 hardcode_libdir_flag_spec_CXX='-R$libdir'
9448 hardcode_shlibpath_var_CXX=no
9449 case $host_os in
9450 solaris2.0-5 | solaris2.0-5.*) ;;
9451 *)
9452 # The C++ compiler is used as linker so we must use $wl
9453 # flag to pass the commands to the underlying system
9454 # linker.
9455 # Supported since Solaris 2.6 (maybe 2.5.1?)
9456 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9457 ;;
9458 esac
9459 link_all_deplibs_CXX=yes
9460
9461 # Commands to make compiler produce verbose output that lists
9462 # what "hidden" libraries, object files and flags are used when
9463 # linking a shared library.
9464 #
9465 # There doesn't appear to be a way to prevent this compiler from
9466 # explicitly linking system object files so we need to strip them
9467 # from the output so that they don't get included in the library
9468 # dependencies.
9469 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'
9470
9471 # Archives containing C++ object files must be created using
9472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9473 # necessary to make sure instantiated templates are included
9474 # in the archive.
9475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9476 ;;
9477 gcx)
9478 # Green Hills C++ Compiler
9479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9480
9481 # The C++ compiler must be used to create the archive.
9482 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9483 ;;
9484 *)
9485 # GNU C++ compiler with Solaris linker
9486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9487 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9488 if $CC --version | grep -v '^2\.7' > /dev/null; then
9489 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9490 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9491 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9492
9493 # Commands to make compiler produce verbose output that lists
9494 # what "hidden" libraries, object files and flags are used when
9495 # linking a shared library.
9496 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9497 else
9498 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9499 # platform.
9500 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9501 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9502 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9503
9504 # Commands to make compiler produce verbose output that lists
9505 # what "hidden" libraries, object files and flags are used when
9506 # linking a shared library.
9507 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9508 fi
9509
9510 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9511 fi
9512 ;;
9513 esac
9514 ;;
9515 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9516 archive_cmds_need_lc_CXX=no
9517 ;;
9518 tandem*)
9519 case $cc_basename in
9520 NCC)
9521 # NonStop-UX NCC 3.20
9522 # FIXME: insert proper C++ library support
9523 ld_shlibs_CXX=no
9524 ;;
9525 *)
9526 # FIXME: insert proper C++ library support
9527 ld_shlibs_CXX=no
9528 ;;
9529 esac
9530 ;;
9531 vxworks*)
9532 # FIXME: insert proper C++ library support
9533 ld_shlibs_CXX=no
9534 ;;
9535 *)
9536 # FIXME: insert proper C++ library support
9537 ld_shlibs_CXX=no
9538 ;;
9539esac
9540echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9541echo "${ECHO_T}$ld_shlibs_CXX" >&6
9542test "$ld_shlibs_CXX" = no && can_build_shared=no
9543
9544GCC_CXX="$GXX"
9545LD_CXX="$LD"
9546
9547## CAVEAT EMPTOR:
9548## There is no encapsulation within the following macros, do not change
9549## the running order or otherwise move them around unless you know exactly
9550## what you are doing...
9551
9552cat > conftest.$ac_ext <<EOF
9553class Foo
9554{
9555public:
9556 Foo (void) { a = 0; }
9557private:
9558 int a;
9559};
9560EOF
9561
9562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; then
9567 # Parse the compiler output and extract the necessary
9568 # objects, libraries and library flags.
9569
9570 # Sentinel used to keep track of whether or not we are before
9571 # the conftest object file.
9572 pre_test_object_deps_done=no
9573
9574 # The `*' in the case matches for architectures that use `case' in
9575 # $output_verbose_cmd can trigger glob expansion during the loop
9576 # eval without this substitution.
9577 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9578
9579 for p in `eval $output_verbose_link_cmd`; do
9580 case $p in
9581
9582 -L* | -R* | -l*)
9583 # Some compilers place space between "-{L,R}" and the path.
9584 # Remove the space.
9585 if test $p = "-L" \
9586 || test $p = "-R"; then
9587 prev=$p
9588 continue
9589 else
9590 prev=
9591 fi
9592
9593 if test "$pre_test_object_deps_done" = no; then
9594 case $p in
9595 -L* | -R*)
9596 # Internal compiler library paths should come after those
9597 # provided the user. The postdeps already come after the
9598 # user supplied libs so there is no need to process them.
9599 if test -z "$compiler_lib_search_path_CXX"; then
9600 compiler_lib_search_path_CXX="${prev}${p}"
9601 else
9602 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9603 fi
9604 ;;
9605 # The "-l" case would never come before the object being
9606 # linked, so don't bother handling this case.
9607 esac
9608 else
9609 if test -z "$postdeps_CXX"; then
9610 postdeps_CXX="${prev}${p}"
9611 else
9612 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9613 fi
9614 fi
9615 ;;
9616
9617 *.$objext)
9618 # This assumes that the test object file only shows up
9619 # once in the compiler output.
9620 if test "$p" = "conftest.$objext"; then
9621 pre_test_object_deps_done=yes
9622 continue
9623 fi
9624
9625 if test "$pre_test_object_deps_done" = no; then
9626 if test -z "$predep_objects_CXX"; then
9627 predep_objects_CXX="$p"
9628 else
9629 predep_objects_CXX="$predep_objects_CXX $p"
9630 fi
9631 else
9632 if test -z "$postdep_objects_CXX"; then
9633 postdep_objects_CXX="$p"
9634 else
9635 postdep_objects_CXX="$postdep_objects_CXX $p"
9636 fi
9637 fi
9638 ;;
9639
9640 *) ;; # Ignore the rest.
9641
9642 esac
9643 done
9644
9645 # Clean up.
9646 rm -f a.out a.exe
9647else
9648 echo "libtool.m4: error: problem compiling CXX test program"
9649fi
9650
9651$rm -f confest.$objext
9652
9653case " $postdeps_CXX " in
9654*" -lc "*) archive_cmds_need_lc_CXX=no ;;
9655esac
9656
9657lt_prog_compiler_wl_CXX=
9658lt_prog_compiler_pic_CXX=
9659lt_prog_compiler_static_CXX=
9660
9661echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9662echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9663
9664 # C++ specific cases for pic, static, wl, etc.
9665 if test "$GXX" = yes; then
9666 lt_prog_compiler_wl_CXX='-Wl,'
9667 lt_prog_compiler_static_CXX='-static'
9668
9669 case $host_os in
9670 aix*)
9671 # All AIX code is PIC.
9672 if test "$host_cpu" = ia64; then
9673 # AIX 5 now supports IA64 processor
9674 lt_prog_compiler_static_CXX='-Bstatic'
9675 fi
9676 ;;
9677 amigaos*)
9678 # FIXME: we need at least 68020 code to build shared libraries, but
9679 # adding the `-m68020' flag to GCC prevents building anything better,
9680 # like `-m68040'.
9681 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9682 ;;
9683 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9684 # PIC is the default for these OSes.
9685 ;;
9686 mingw* | os2* | pw32*)
9687 # This hack is so that the source file can tell whether it is being
9688 # built for inclusion in a dll (and should export symbols for example).
9689 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9690 ;;
9691 darwin* | rhapsody*)
9692 # PIC is the default on this platform
9693 # Common symbols not allowed in MH_DYLIB files
9694 lt_prog_compiler_pic_CXX='-fno-common'
9695 ;;
9696 *djgpp*)
9697 # DJGPP does not support shared libraries at all
9698 lt_prog_compiler_pic_CXX=
9699 ;;
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 lt_prog_compiler_pic_CXX=-Kconform_pic
9703 fi
9704 ;;
9705 hpux*)
9706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9707 # not for PA HP-UX.
9708 case "$host_cpu" in
9709 hppa*64*|ia64*)
9710 ;;
9711 *)
9712 lt_prog_compiler_pic_CXX='-fPIC'
9713 ;;
9714 esac
9715 ;;
9716 *)
9717 lt_prog_compiler_pic_CXX='-fPIC'
9718 ;;
9719 esac
9720 else
9721 case $host_os in
9722 aix4* | aix5*)
9723 # All AIX code is PIC.
9724 if test "$host_cpu" = ia64; then
9725 # AIX 5 now supports IA64 processor
9726 lt_prog_compiler_static_CXX='-Bstatic'
9727 else
9728 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9729 fi
9730 ;;
9731 chorus*)
9732 case $cc_basename in
9733 cxch68)
9734 # Green Hills C++ Compiler
9735 # _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"
9736 ;;
9737 esac
9738 ;;
9739 dgux*)
9740 case $cc_basename in
9741 ec++)
9742 lt_prog_compiler_pic_CXX='-KPIC'
9743 ;;
9744 ghcx)
9745 # Green Hills C++ Compiler
9746 lt_prog_compiler_pic_CXX='-pic'
9747 ;;
9748 *)
9749 ;;
9750 esac
9751 ;;
9752 freebsd*)
9753 # FreeBSD uses GNU C++
9754 ;;
9755 hpux9* | hpux10* | hpux11*)
9756 case $cc_basename in
9757 CC)
9758 lt_prog_compiler_wl_CXX='-Wl,'
9759 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9760 if test "$host_cpu" != ia64; then
9761 lt_prog_compiler_pic_CXX='+Z'
9762 fi
9763 ;;
9764 aCC)
9765 lt_prog_compiler_wl_CXX='-Wl,'
9766 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9767 case "$host_cpu" in
9768 hppa*64*|ia64*)
9769 # +Z the default
9770 ;;
9771 *)
9772 lt_prog_compiler_pic_CXX='+Z'
9773 ;;
9774 esac
9775 ;;
9776 *)
9777 ;;
9778 esac
9779 ;;
9780 irix5* | irix6* | nonstopux*)
9781 case $cc_basename in
9782 CC)
9783 lt_prog_compiler_wl_CXX='-Wl,'
9784 lt_prog_compiler_static_CXX='-non_shared'
9785 # CC pic flag -KPIC is the default.
9786 ;;
9787 *)
9788 ;;
9789 esac
9790 ;;
9791 linux*)
9792 case $cc_basename in
9793 KCC)
9794 # KAI C++ Compiler
9795 lt_prog_compiler_wl_CXX='--backend -Wl,'
9796 lt_prog_compiler_pic_CXX='-fPIC'
9797 ;;
9798 icpc)
9799 # Intel C++
9800 lt_prog_compiler_wl_CXX='-Wl,'
9801 lt_prog_compiler_pic_CXX='-KPIC'
9802 lt_prog_compiler_static_CXX='-static'
9803 ;;
9804 cxx)
9805 # Compaq C++
9806 # Make sure the PIC flag is empty. It appears that all Alpha
9807 # Linux and Compaq Tru64 Unix objects are PIC.
9808 lt_prog_compiler_pic_CXX=
9809 lt_prog_compiler_static_CXX='-non_shared'
9810 ;;
9811 *)
9812 ;;
9813 esac
9814 ;;
9815 lynxos*)
9816 ;;
9817 m88k*)
9818 ;;
9819 mvs*)
9820 case $cc_basename in
9821 cxx)
9822 lt_prog_compiler_pic_CXX='-W c,exportall'
9823 ;;
9824 *)
9825 ;;
9826 esac
9827 ;;
9828 netbsd*)
9829 ;;
9830 osf3* | osf4* | osf5*)
9831 case $cc_basename in
9832 KCC)
9833 lt_prog_compiler_wl_CXX='--backend -Wl,'
9834 ;;
9835 RCC)
9836 # Rational C++ 2.4.1
9837 lt_prog_compiler_pic_CXX='-pic'
9838 ;;
9839 cxx)
9840 # Digital/Compaq C++
9841 lt_prog_compiler_wl_CXX='-Wl,'
9842 # Make sure the PIC flag is empty. It appears that all Alpha
9843 # Linux and Compaq Tru64 Unix objects are PIC.
9844 lt_prog_compiler_pic_CXX=
9845 lt_prog_compiler_static_CXX='-non_shared'
9846 ;;
9847 *)
9848 ;;
9849 esac
9850 ;;
9851 psos*)
9852 ;;
9853 sco*)
9854 case $cc_basename in
9855 CC)
9856 lt_prog_compiler_pic_CXX='-fPIC'
9857 ;;
9858 *)
9859 ;;
9860 esac
9861 ;;
9862 solaris*)
9863 case $cc_basename in
9864 CC)
9865 # Sun C++ 4.2, 5.x and Centerline C++
9866 lt_prog_compiler_pic_CXX='-KPIC'
9867 lt_prog_compiler_static_CXX='-Bstatic'
9868 lt_prog_compiler_wl_CXX='-Qoption ld '
9869 ;;
9870 gcx)
9871 # Green Hills C++ Compiler
9872 lt_prog_compiler_pic_CXX='-PIC'
9873 ;;
9874 *)
9875 ;;
9876 esac
9877 ;;
9878 sunos4*)
9879 case $cc_basename in
9880 CC)
9881 # Sun C++ 4.x
9882 lt_prog_compiler_pic_CXX='-pic'
9883 lt_prog_compiler_static_CXX='-Bstatic'
9884 ;;
9885 lcc)
9886 # Lucid
9887 lt_prog_compiler_pic_CXX='-pic'
9888 ;;
9889 *)
9890 ;;
9891 esac
9892 ;;
9893 tandem*)
9894 case $cc_basename in
9895 NCC)
9896 # NonStop-UX NCC 3.20
9897 lt_prog_compiler_pic_CXX='-KPIC'
9898 ;;
9899 *)
9900 ;;
9901 esac
9902 ;;
9903 unixware*)
9904 ;;
9905 vxworks*)
9906 ;;
9907 *)
9908 lt_prog_compiler_can_build_shared_CXX=no
9909 ;;
9910 esac
9911 fi
9912
9913echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9914echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9915
9916#
9917# Check to make sure the PIC flag actually works.
9918#
9919if test -n "$lt_prog_compiler_pic_CXX"; then
9920 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9921echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9922if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925 lt_prog_compiler_pic_works_CXX=no
9926 ac_outfile=conftest.$ac_objext
9927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9928 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
9929 # Insert the option either (1) after the last *FLAGS variable, or
9930 # (2) before a word containing "conftest.", or (3) at the end.
9931 # Note that $ac_compile itself does not contain backslashes and begins
9932 # with a dollar sign (not a hyphen), so the echo should work correctly.
9933 # The option is referenced via a variable to avoid confusing sed.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>conftest.err)
9940 ac_status=$?
9941 cat conftest.err >&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s "$ac_outfile"; then
9944 # The compiler can only warn and ignore the option if not recognized
9945 # So say no if there are warnings
9946 if test ! -s conftest.err; then
9947 lt_prog_compiler_pic_works_CXX=yes
9948 fi
9949 fi
9950 $rm conftest*
9951
9952fi
9953echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
9954echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9955
9956if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9957 case $lt_prog_compiler_pic_CXX in
9958 "" | " "*) ;;
9959 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9960 esac
9961else
9962 lt_prog_compiler_pic_CXX=
9963 lt_prog_compiler_can_build_shared_CXX=no
9964fi
9965
9966fi
9967case "$host_os" in
9968 # For platforms which do not support PIC, -DPIC is meaningless:
9969 *djgpp*)
9970 lt_prog_compiler_pic_CXX=
9971 ;;
9972 *)
9973 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9974 ;;
9975esac
9976
9977echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9978echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9979if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982 lt_cv_prog_compiler_c_o_CXX=no
9983 $rm -r conftest 2>/dev/null
9984 mkdir conftest
9985 cd conftest
9986 mkdir out
9987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9988
9989 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9990 # that will create temporary files in the current directory regardless of
9991 # the output directory. Thus, making CWD read-only will cause this test
9992 # to fail, enabling locking or at least warning the user not to do parallel
9993 # builds.
9994 chmod -w .
9995
9996 lt_compiler_flag="-o out/conftest2.$ac_objext"
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 lt_compile=`echo "$ac_compile" | $SED \
10002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10004 -e 's:$: $lt_compiler_flag:'`
10005 (eval echo "\"\$as_me:10005: $lt_compile\"" >&5)
10006 (eval "$lt_compile" 2>out/conftest.err)
10007 ac_status=$?
10008 cat out/conftest.err >&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10011 then
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings
10014 if test ! -s out/conftest.err; then
10015 lt_cv_prog_compiler_c_o_CXX=yes
10016 fi
10017 fi
10018 chmod u+w .
10019 $rm conftest* out/*
10020 rmdir out
10021 cd ..
10022 rmdir conftest
10023 $rm conftest*
10024
10025fi
10026echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10027echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10028
10029
10030hard_links="nottested"
10031if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10032 # do not overwrite the value of need_locks provided by the user
10033 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10034echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10035 hard_links=yes
10036 $rm conftest*
10037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10038 touch conftest.a
10039 ln conftest.a conftest.b 2>&5 || hard_links=no
10040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10041 echo "$as_me:$LINENO: result: $hard_links" >&5
10042echo "${ECHO_T}$hard_links" >&6
10043 if test "$hard_links" = no; then
10044 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10045echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10046 need_locks=warn
10047 fi
10048else
10049 need_locks=no
10050fi
10051
10052echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10053echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10054
10055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10056 case $host_os in
10057 aix4* | aix5*)
10058 # If we're using GNU nm, then we don't want the "-C" option.
10059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10060 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10061 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'
10062 else
10063 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'
10064 fi
10065 ;;
10066 pw32*)
10067 export_symbols_cmds_CXX="$ltdll_cmds"
10068 ;;
10069 cygwin* | mingw*)
10070 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10071 ;;
10072 *)
10073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10074 ;;
10075 esac
10076
10077echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10078echo "${ECHO_T}$ld_shlibs_CXX" >&6
10079test "$ld_shlibs_CXX" = no && can_build_shared=no
10080
10081variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10082if test "$GCC" = yes; then
10083 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10084fi
10085
10086#
10087# Do we need to explicitly link libc?
10088#
10089case "x$archive_cmds_need_lc_CXX" in
10090x|xyes)
10091 # Assume -lc should be added
10092 archive_cmds_need_lc_CXX=yes
10093
10094 if test "$enable_shared" = yes && test "$GCC" = yes; then
10095 case $archive_cmds_CXX in
10096 *'~'*)
10097 # FIXME: we may have to deal with multi-command sequences.
10098 ;;
10099 '$CC '*)
10100 # Test whether the compiler implicitly links with -lc since on some
10101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10102 # to ld, don't add -lc before -lgcc.
10103 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10104echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10105 $rm conftest*
10106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10107
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } 2>conftest.err; then
10113 soname=conftest
10114 lib=conftest
10115 libobjs=conftest.$ac_objext
10116 deplibs=
10117 wl=$lt_prog_compiler_wl_CXX
10118 compiler_flags=-v
10119 linker_flags=-v
10120 verstring=
10121 output_objdir=.
10122 libname=conftest
10123 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10124 allow_undefined_flag_CXX=
10125 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10126 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }
10130 then
10131 archive_cmds_need_lc_CXX=no
10132 else
10133 archive_cmds_need_lc_CXX=yes
10134 fi
10135 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10136 else
10137 cat conftest.err 1>&5
10138 fi
10139 $rm conftest*
10140 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10141echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10142 ;;
10143 esac
10144 fi
10145 ;;
10146esac
10147
10148echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10149echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10150hardcode_action_CXX=
10151if test -n "$hardcode_libdir_flag_spec_CXX" || \
10152 test -n "$runpath_var CXX" || \
10153 test "X$hardcode_automatic_CXX"="Xyes" ; then
10154
10155 # We can hardcode non-existant directories.
10156 if test "$hardcode_direct_CXX" != no &&
10157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10158 # have to relink, otherwise we might link with an installed library
10159 # when we should be linking with a yet-to-be-installed one
10160 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10161 test "$hardcode_minus_L_CXX" != no; then
10162 # Linking always hardcodes the temporary library directory.
10163 hardcode_action_CXX=relink
10164 else
10165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10166 hardcode_action_CXX=immediate
10167 fi
10168else
10169 # We cannot hardcode anything, or else we can only hardcode existing
10170 # directories.
10171 hardcode_action_CXX=unsupported
10172fi
10173echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10174echo "${ECHO_T}$hardcode_action_CXX" >&6
10175
10176if test "$hardcode_action_CXX" = relink; then
10177 # Fast installation is not supported
10178 enable_fast_install=no
10179elif test "$shlibpath_overrides_runpath" = yes ||
10180 test "$enable_shared" = no; then
10181 # Fast installation is not necessary
10182 enable_fast_install=needless
10183fi
10184
10185striplib=
10186old_striplib=
10187echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10188echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10189if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10192 echo "$as_me:$LINENO: result: yes" >&5
10193echo "${ECHO_T}yes" >&6
10194else
10195# FIXME - insert some real tests, host_os isn't really good enough
10196 case $host_os in
10197 darwin*)
10198 if test -n "$STRIP" ; then
10199 striplib="$STRIP -x"
10200 echo "$as_me:$LINENO: result: yes" >&5
10201echo "${ECHO_T}yes" >&6
10202 else
10203 echo "$as_me:$LINENO: result: no" >&5
10204echo "${ECHO_T}no" >&6
10205fi
10206 ;;
10207 *)
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210 ;;
10211 esac
10212fi
10213
10214echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10215echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10216library_names_spec=
10217libname_spec='lib$name'
10218soname_spec=
10219shrext=".so"
10220postinstall_cmds=
10221postuninstall_cmds=
10222finish_cmds=
10223finish_eval=
10224shlibpath_var=
10225shlibpath_overrides_runpath=unknown
10226version_type=none
10227dynamic_linker="$host_os ld.so"
10228sys_lib_dlsearch_path_spec="/lib /usr/lib"
10229if test "$GCC" = yes; then
10230 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10231 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10232 # if the path contains ";" then we assume it to be the separator
10233 # otherwise default to the standard path separator (i.e. ":") - it is
10234 # assumed that no part of a normal pathname contains ";" but that should
10235 # okay in the real world where ";" in dirpaths is itself problematic.
10236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237 else
10238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10239 fi
10240else
10241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10242fi
10243need_lib_prefix=unknown
10244hardcode_into_libs=no
10245
10246# when you set need_version to no, make sure it does not cause -set_version
10247# flags to be left without arguments
10248need_version=unknown
10249
10250case $host_os in
10251aix3*)
10252 version_type=linux
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10254 shlibpath_var=LIBPATH
10255
10256 # AIX 3 has no versioning support, so we append a major version to the name.
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 ;;
10259
10260aix4* | aix5*)
10261 version_type=linux
10262 need_lib_prefix=no
10263 need_version=no
10264 hardcode_into_libs=yes
10265 if test "$host_cpu" = ia64; then
10266 # AIX 5 supports IA64
10267 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 else
10270 # With GCC up to 2.95.x, collect2 would create an import file
10271 # for dependence libraries. The import file would start with
10272 # the line `#! .'. This would cause the generated library to
10273 # depend on `.', always an invalid library. This was fixed in
10274 # development snapshots of GCC prior to 3.0.
10275 case $host_os in
10276 aix4 | aix4.[01] | aix4.[01].*)
10277 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10278 echo ' yes '
10279 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10280 :
10281 else
10282 can_build_shared=no
10283 fi
10284 ;;
10285 esac
10286 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10287 # soname into executable. Probably we can add versioning support to
10288 # collect2, so additional links can be useful in future.
10289 if test "$aix_use_runtimelinking" = yes; then
10290 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10291 # instead of lib<name>.a to let people know that these are not
10292 # typical AIX shared libraries.
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 else
10295 # We preserve .a as extension for shared libraries through AIX4.2
10296 # and later when we are not doing run time linking.
10297 library_names_spec='${libname}${release}.a $libname.a'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 fi
10300 shlibpath_var=LIBPATH
10301 fi
10302 ;;
10303
10304amigaos*)
10305 library_names_spec='$libname.ixlibrary $libname.a'
10306 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10307 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'
10308 ;;
10309
10310beos*)
10311 library_names_spec='${libname}${shared_ext}'
10312 dynamic_linker="$host_os ld.so"
10313 shlibpath_var=LIBRARY_PATH
10314 ;;
10315
10316bsdi4*)
10317 version_type=linux
10318 need_version=no
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 soname_spec='${libname}${release}${shared_ext}$major'
10321 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10324 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10325 # the default ld.so.conf also contains /usr/contrib/lib and
10326 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10327 # libtool to hard-code these into programs
10328 ;;
10329
10330cygwin* | mingw* | pw32*)
10331 version_type=windows
10332 shrext=".dll"
10333 need_version=no
10334 need_lib_prefix=no
10335
10336 case $GCC,$host_os in
10337 yes,cygwin* | yes,mingw* | yes,pw32*)
10338 library_names_spec='$libname.dll.a'
10339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10340 postinstall_cmds='base_file=`basename \${file}`~
10341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10342 dldir=$destdir/`dirname \$dlpath`~
10343 test -d \$dldir || mkdir -p \$dldir~
10344 $install_prog $dir/$dlname \$dldir/$dlname'
10345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10346 dlpath=$dir/\$dldll~
10347 $rm \$dlpath'
10348 shlibpath_overrides_runpath=yes
10349
10350 case $host_os in
10351 cygwin*)
10352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10355 ;;
10356 mingw*)
10357 # MinGW DLLs use traditional 'lib' prefix
10358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10361 # It is most probably a Windows format PATH printed by
10362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10363 # path with ; separators, and with drive letters. We can handle the
10364 # drive letters (cygwin fileutils understands them), so leave them,
10365 # especially as we might pass files found there to a mingw objdump,
10366 # which wouldn't understand a cygwinified path. Ahh.
10367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10368 else
10369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10370 fi
10371 ;;
10372 pw32*)
10373 # pw32 DLLs use 'pw' prefix rather than 'lib'
10374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10375 ;;
10376 esac
10377 ;;
10378
10379 *)
10380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10381 ;;
10382 esac
10383 dynamic_linker='Win32 ld.exe'
10384 # FIXME: first we should search . and the directory the executable is in
10385 shlibpath_var=PATH
10386 ;;
10387
10388darwin* | rhapsody*)
10389 dynamic_linker="$host_os dyld"
10390 version_type=darwin
10391 need_lib_prefix=no
10392 need_version=no
10393 # FIXME: Relying on posixy $() will cause problems for
10394 # cross-compilation, but unfortunately the echo tests do not
10395 # yet detect zsh echo's removal of \ escapes.
10396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397 soname_spec='${libname}${release}${major}$shared_ext'
10398 shlibpath_overrides_runpath=yes
10399 shlibpath_var=DYLD_LIBRARY_PATH
10400 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10402 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10403 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"`
10404 fi
10405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10406 ;;
10407
10408dgux*)
10409 version_type=linux
10410 need_lib_prefix=no
10411 need_version=no
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10415 ;;
10416
10417freebsd1*)
10418 dynamic_linker=no
10419 ;;
10420
10421freebsd*)
10422 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10423 version_type=freebsd-$objformat
10424 case $version_type in
10425 freebsd-elf*)
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 need_version=no
10428 need_lib_prefix=no
10429 ;;
10430 freebsd-*)
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10432 need_version=yes
10433 ;;
10434 esac
10435 shlibpath_var=LD_LIBRARY_PATH
10436 case $host_os in
10437 freebsd2*)
10438 shlibpath_overrides_runpath=yes
10439 ;;
10440 freebsd3.01* | freebsdelf3.01*)
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 ;;
10444 *) # from 3.2 on
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10447 ;;
10448 esac
10449 ;;
10450
10451gnu*)
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 hardcode_into_libs=yes
10459 ;;
10460
10461hpux9* | hpux10* | hpux11*)
10462 # Give a soname corresponding to the major version so that dld.sl refuses to
10463 # link against other versions.
10464 version_type=sunos
10465 need_lib_prefix=no
10466 need_version=no
10467 case "$host_cpu" in
10468 ia64*)
10469 shrext='.so'
10470 hardcode_into_libs=yes
10471 dynamic_linker="$host_os dld.so"
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 if test "X$HPUX_IA64_MODE" = X32; then
10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478 else
10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480 fi
10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482 ;;
10483 hppa*64*)
10484 shrext='.sl'
10485 hardcode_into_libs=yes
10486 dynamic_linker="$host_os dld.sl"
10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490 soname_spec='${libname}${release}${shared_ext}$major'
10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493 ;;
10494 *)
10495 shrext='.sl'
10496 dynamic_linker="$host_os dld.sl"
10497 shlibpath_var=SHLIB_PATH
10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 soname_spec='${libname}${release}${shared_ext}$major'
10501 ;;
10502 esac
10503 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504 postinstall_cmds='chmod 555 $lib'
10505 ;;
10506
10507irix5* | irix6* | nonstopux*)
10508 case $host_os in
10509 nonstopux*) version_type=nonstopux ;;
10510 *)
10511 if test "$lt_cv_prog_gnu_ld" = yes; then
10512 version_type=linux
10513 else
10514 version_type=irix
10515 fi ;;
10516 esac
10517 need_lib_prefix=no
10518 need_version=no
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521 case $host_os in
10522 irix5* | nonstopux*)
10523 libsuff= shlibsuff=
10524 ;;
10525 *)
10526 case $LD in # libtool.m4 will add one of these switches to LD
10527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528 libsuff= shlibsuff= libmagic=32-bit;;
10529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530 libsuff=32 shlibsuff=N32 libmagic=N32;;
10531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533 *) libsuff= shlibsuff= libmagic=never-match;;
10534 esac
10535 ;;
10536 esac
10537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538 shlibpath_overrides_runpath=no
10539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541 hardcode_into_libs=yes
10542 ;;
10543
10544# No shared lib support for Linux oldld, aout, or coff.
10545linux*oldld* | linux*aout* | linux*coff*)
10546 dynamic_linker=no
10547 ;;
10548
10549# This must be Linux ELF.
10550linux*)
10551 version_type=linux
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 # This implies no fast_install, which is unacceptable.
10560 # Some rework will be needed to allow for fast_install
10561 # before this can be enabled.
10562 hardcode_into_libs=yes
10563
10564 # We used to test for /lib/ld.so.1 and disable shared libraries on
10565 # powerpc, because MkLinux only supported shared libraries with the
10566 # GNU dynamic linker. Since this was broken with cross compilers,
10567 # most powerpc-linux boxes support dynamic linking these days and
10568 # people can always --disable-shared, the test was removed, and we
10569 # assume the GNU/Linux dynamic linker is in use.
10570 dynamic_linker='GNU/Linux ld.so'
10571 ;;
10572
10573netbsd*)
10574 version_type=sunos
10575 need_lib_prefix=no
10576 need_version=no
10577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10580 dynamic_linker='NetBSD (a.out) ld.so'
10581 else
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 dynamic_linker='NetBSD ld.elf_so'
10585 fi
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10589 ;;
10590
10591newsos6)
10592 version_type=linux
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 ;;
10597
10598nto-qnx)
10599 version_type=linux
10600 need_lib_prefix=no
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 ;;
10607
10608openbsd*)
10609 version_type=sunos
10610 need_lib_prefix=no
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614 shlibpath_var=LD_LIBRARY_PATH
10615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616 case $host_os in
10617 openbsd2.[89] | openbsd2.[89].*)
10618 shlibpath_overrides_runpath=no
10619 ;;
10620 *)
10621 shlibpath_overrides_runpath=yes
10622 ;;
10623 esac
10624 else
10625 shlibpath_overrides_runpath=yes
10626 fi
10627 ;;
10628
10629os2*)
10630 libname_spec='$name'
10631 shrext=".dll"
10632 need_lib_prefix=no
10633 library_names_spec='$libname${shared_ext} $libname.a'
10634 dynamic_linker='OS/2 ld.exe'
10635 shlibpath_var=LIBPATH
10636 ;;
10637
10638osf3* | osf4* | osf5*)
10639 version_type=osf
10640 need_lib_prefix=no
10641 need_version=no
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10647 ;;
10648
10649sco3.2v5*)
10650 version_type=osf
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 ;;
10655
10656solaris*)
10657 version_type=linux
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10665 # ldd complains unless libraries are executable
10666 postinstall_cmds='chmod +x $lib'
10667 ;;
10668
10669sunos4*)
10670 version_type=sunos
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 if test "$with_gnu_ld" = yes; then
10676 need_lib_prefix=no
10677 fi
10678 need_version=yes
10679 ;;
10680
10681sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10682 version_type=linux
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 case $host_vendor in
10687 sni)
10688 shlibpath_overrides_runpath=no
10689 need_lib_prefix=no
10690 export_dynamic_flag_spec='${wl}-Blargedynsym'
10691 runpath_var=LD_RUN_PATH
10692 ;;
10693 siemens)
10694 need_lib_prefix=no
10695 ;;
10696 motorola)
10697 need_lib_prefix=no
10698 need_version=no
10699 shlibpath_overrides_runpath=no
10700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10701 ;;
10702 esac
10703 ;;
10704
10705sysv4*MP*)
10706 if test -d /usr/nec ;then
10707 version_type=linux
10708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10709 soname_spec='$libname${shared_ext}.$major'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 fi
10712 ;;
10713
10714uts4*)
10715 version_type=linux
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 ;;
10720
10721*)
10722 dynamic_linker=no
10723 ;;
10724esac
10725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10726echo "${ECHO_T}$dynamic_linker" >&6
10727test "$dynamic_linker" = no && can_build_shared=no
10728
10729if test "x$enable_dlopen" != xyes; then
10730 enable_dlopen=unknown
10731 enable_dlopen_self=unknown
10732 enable_dlopen_self_static=unknown
10733else
10734 lt_cv_dlopen=no
10735 lt_cv_dlopen_libs=
10736
10737 case $host_os in
10738 beos*)
10739 lt_cv_dlopen="load_add_on"
10740 lt_cv_dlopen_libs=
10741 lt_cv_dlopen_self=yes
10742 ;;
10743
10744 mingw* | pw32*)
10745 lt_cv_dlopen="LoadLibrary"
10746 lt_cv_dlopen_libs=
10747 ;;
10748
10749 cygwin*)
10750 lt_cv_dlopen="dlopen"
10751 lt_cv_dlopen_libs=
10752 ;;
10753
10754 darwin*)
10755 # if libdl is installed we need to link against it
10756 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10757echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10758if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 ac_check_lib_save_LIBS=$LIBS
10762LIBS="-ldl $LIBS"
10763cat >conftest.$ac_ext <<_ACEOF
10764#line $LINENO "configure"
10765#include "confdefs.h"
10766
10767/* Override any gcc2 internal prototype to avoid an error. */
10768#ifdef __cplusplus
10769extern "C"
10770#endif
10771/* We use char because int might match the return type of a gcc2
10772 builtin and then its argument prototype would still apply. */
10773char dlopen ();
10774#ifdef F77_DUMMY_MAIN
10775# ifdef __cplusplus
10776 extern "C"
10777# endif
10778 int F77_DUMMY_MAIN() { return 1; }
10779#endif
10780int
10781main ()
10782{
10783dlopen ();
10784 ;
10785 return 0;
10786}
10787_ACEOF
10788rm -f conftest.$ac_objext conftest$ac_exeext
10789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_dl_dlopen=yes
10801else
10802 echo "$as_me: failed program was:" >&5
10803cat conftest.$ac_ext >&5
10804ac_cv_lib_dl_dlopen=no
10805fi
10806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807LIBS=$ac_check_lib_save_LIBS
10808fi
10809echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10810echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10811if test $ac_cv_lib_dl_dlopen = yes; then
10812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10813else
10814
10815 lt_cv_dlopen="dyld"
10816 lt_cv_dlopen_libs=
10817 lt_cv_dlopen_self=yes
10818
10819fi
10820
10821 ;;
10822
10823 *)
10824 echo "$as_me:$LINENO: checking for shl_load" >&5
10825echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10826if test "${ac_cv_func_shl_load+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 cat >conftest.$ac_ext <<_ACEOF
10830#line $LINENO "configure"
10831#include "confdefs.h"
10832/* System header to define __stub macros and hopefully few prototypes,
10833 which can conflict with char shl_load (); below. */
10834#include <assert.h>
10835/* Override any gcc2 internal prototype to avoid an error. */
10836#ifdef __cplusplus
10837extern "C"
10838#endif
10839/* We use char because int might match the return type of a gcc2
10840 builtin and then its argument prototype would still apply. */
10841char shl_load ();
10842char (*f) ();
10843
10844#ifdef F77_DUMMY_MAIN
10845# ifdef __cplusplus
10846 extern "C"
10847# endif
10848 int F77_DUMMY_MAIN() { return 1; }
10849#endif
10850int
10851main ()
10852{
10853/* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856#if defined (__stub_shl_load) || defined (__stub___shl_load)
10857choke me
10858#else
10859f = shl_load;
10860#endif
10861
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext conftest$ac_exeext
10867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_func_shl_load=yes
10879else
10880 echo "$as_me: failed program was:" >&5
10881cat conftest.$ac_ext >&5
10882ac_cv_func_shl_load=no
10883fi
10884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10885fi
10886echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10887echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10888if test $ac_cv_func_shl_load = yes; then
10889 lt_cv_dlopen="shl_load"
10890else
10891 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10893if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 ac_check_lib_save_LIBS=$LIBS
10897LIBS="-ldld $LIBS"
10898cat >conftest.$ac_ext <<_ACEOF
10899#line $LINENO "configure"
10900#include "confdefs.h"
10901
10902/* Override any gcc2 internal prototype to avoid an error. */
10903#ifdef __cplusplus
10904extern "C"
10905#endif
10906/* We use char because int might match the return type of a gcc2
10907 builtin and then its argument prototype would still apply. */
10908char shl_load ();
10909#ifdef F77_DUMMY_MAIN
10910# ifdef __cplusplus
10911 extern "C"
10912# endif
10913 int F77_DUMMY_MAIN() { return 1; }
10914#endif
10915int
10916main ()
10917{
10918shl_load ();
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext conftest$ac_exeext
10924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -s conftest$ac_exeext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_lib_dld_shl_load=yes
10936else
10937 echo "$as_me: failed program was:" >&5
10938cat conftest.$ac_ext >&5
10939ac_cv_lib_dld_shl_load=no
10940fi
10941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942LIBS=$ac_check_lib_save_LIBS
10943fi
10944echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10945echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10946if test $ac_cv_lib_dld_shl_load = yes; then
10947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10948else
10949 echo "$as_me:$LINENO: checking for dlopen" >&5
10950echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10951if test "${ac_cv_func_dlopen+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953else
10954 cat >conftest.$ac_ext <<_ACEOF
10955#line $LINENO "configure"
10956#include "confdefs.h"
10957/* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char dlopen (); below. */
10959#include <assert.h>
10960/* Override any gcc2 internal prototype to avoid an error. */
10961#ifdef __cplusplus
10962extern "C"
10963#endif
10964/* We use char because int might match the return type of a gcc2
10965 builtin and then its argument prototype would still apply. */
10966char dlopen ();
10967char (*f) ();
10968
10969#ifdef F77_DUMMY_MAIN
10970# ifdef __cplusplus
10971 extern "C"
10972# endif
10973 int F77_DUMMY_MAIN() { return 1; }
10974#endif
10975int
10976main ()
10977{
10978/* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981#if defined (__stub_dlopen) || defined (__stub___dlopen)
10982choke me
10983#else
10984f = dlopen;
10985#endif
10986
10987 ;
10988 return 0;
10989}
10990_ACEOF
10991rm -f conftest.$ac_objext conftest$ac_exeext
10992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993 (eval $ac_link) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -s conftest$ac_exeext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_cv_func_dlopen=yes
11004else
11005 echo "$as_me: failed program was:" >&5
11006cat conftest.$ac_ext >&5
11007ac_cv_func_dlopen=no
11008fi
11009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11010fi
11011echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11012echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11013if test $ac_cv_func_dlopen = yes; then
11014 lt_cv_dlopen="dlopen"
11015else
11016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020else
11021 ac_check_lib_save_LIBS=$LIBS
11022LIBS="-ldl $LIBS"
11023cat >conftest.$ac_ext <<_ACEOF
11024#line $LINENO "configure"
11025#include "confdefs.h"
11026
11027/* Override any gcc2 internal prototype to avoid an error. */
11028#ifdef __cplusplus
11029extern "C"
11030#endif
11031/* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */
11033char dlopen ();
11034#ifdef F77_DUMMY_MAIN
11035# ifdef __cplusplus
11036 extern "C"
11037# endif
11038 int F77_DUMMY_MAIN() { return 1; }
11039#endif
11040int
11041main ()
11042{
11043dlopen ();
11044 ;
11045 return 0;
11046}
11047_ACEOF
11048rm -f conftest.$ac_objext conftest$ac_exeext
11049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_lib_dl_dlopen=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063cat conftest.$ac_ext >&5
11064ac_cv_lib_dl_dlopen=no
11065fi
11066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067LIBS=$ac_check_lib_save_LIBS
11068fi
11069echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11070echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11071if test $ac_cv_lib_dl_dlopen = yes; then
11072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11073else
11074 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11075echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11076if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079 ac_check_lib_save_LIBS=$LIBS
11080LIBS="-lsvld $LIBS"
11081cat >conftest.$ac_ext <<_ACEOF
11082#line $LINENO "configure"
11083#include "confdefs.h"
11084
11085/* Override any gcc2 internal prototype to avoid an error. */
11086#ifdef __cplusplus
11087extern "C"
11088#endif
11089/* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11091char dlopen ();
11092#ifdef F77_DUMMY_MAIN
11093# ifdef __cplusplus
11094 extern "C"
11095# endif
11096 int F77_DUMMY_MAIN() { return 1; }
11097#endif
11098int
11099main ()
11100{
11101dlopen ();
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106rm -f conftest.$ac_objext conftest$ac_exeext
11107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } &&
11112 { ac_try='test -s conftest$ac_exeext'
11113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114 (eval $ac_try) 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; }; then
11118 ac_cv_lib_svld_dlopen=yes
11119else
11120 echo "$as_me: failed program was:" >&5
11121cat conftest.$ac_ext >&5
11122ac_cv_lib_svld_dlopen=no
11123fi
11124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11125LIBS=$ac_check_lib_save_LIBS
11126fi
11127echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11128echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11129if test $ac_cv_lib_svld_dlopen = yes; then
11130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11131else
11132 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11133echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11134if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136else
11137 ac_check_lib_save_LIBS=$LIBS
11138LIBS="-ldld $LIBS"
11139cat >conftest.$ac_ext <<_ACEOF
11140#line $LINENO "configure"
11141#include "confdefs.h"
11142
11143/* Override any gcc2 internal prototype to avoid an error. */
11144#ifdef __cplusplus
11145extern "C"
11146#endif
11147/* We use char because int might match the return type of a gcc2
11148 builtin and then its argument prototype would still apply. */
11149char dld_link ();
11150#ifdef F77_DUMMY_MAIN
11151# ifdef __cplusplus
11152 extern "C"
11153# endif
11154 int F77_DUMMY_MAIN() { return 1; }
11155#endif
11156int
11157main ()
11158{
11159dld_link ();
11160 ;
11161 return 0;
11162}
11163_ACEOF
11164rm -f conftest.$ac_objext conftest$ac_exeext
11165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_dld_dld_link=yes
11177else
11178 echo "$as_me: failed program was:" >&5
11179cat conftest.$ac_ext >&5
11180ac_cv_lib_dld_dld_link=no
11181fi
11182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11183LIBS=$ac_check_lib_save_LIBS
11184fi
11185echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11186echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11187if test $ac_cv_lib_dld_dld_link = yes; then
11188 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11189fi
11190
11191
11192fi
11193
11194
11195fi
11196
11197
11198fi
11199
11200
11201fi
11202
11203
11204fi
11205
11206 ;;
11207 esac
11208
11209 if test "x$lt_cv_dlopen" != xno; then
11210 enable_dlopen=yes
11211 else
11212 enable_dlopen=no
11213 fi
11214
11215 case $lt_cv_dlopen in
11216 dlopen)
11217 save_CPPFLAGS="$CPPFLAGS"
11218 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11219
11220 save_LDFLAGS="$LDFLAGS"
11221 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11222
11223 save_LIBS="$LIBS"
11224 LIBS="$lt_cv_dlopen_libs $LIBS"
11225
11226 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11227echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11228if test "${lt_cv_dlopen_self+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 if test "$cross_compiling" = yes; then :
11232 lt_cv_dlopen_self=cross
11233else
11234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235 lt_status=$lt_dlunknown
11236 cat > conftest.$ac_ext <<EOF
11237#line 11237 "configure"
11238#include "confdefs.h"
11239
11240#if HAVE_DLFCN_H
11241#include <dlfcn.h>
11242#endif
11243
11244#include <stdio.h>
11245
11246#ifdef RTLD_GLOBAL
11247# define LT_DLGLOBAL RTLD_GLOBAL
11248#else
11249# ifdef DL_GLOBAL
11250# define LT_DLGLOBAL DL_GLOBAL
11251# else
11252# define LT_DLGLOBAL 0
11253# endif
11254#endif
11255
11256/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257 find out it does not work in some platform. */
11258#ifndef LT_DLLAZY_OR_NOW
11259# ifdef RTLD_LAZY
11260# define LT_DLLAZY_OR_NOW RTLD_LAZY
11261# else
11262# ifdef DL_LAZY
11263# define LT_DLLAZY_OR_NOW DL_LAZY
11264# else
11265# ifdef RTLD_NOW
11266# define LT_DLLAZY_OR_NOW RTLD_NOW
11267# else
11268# ifdef DL_NOW
11269# define LT_DLLAZY_OR_NOW DL_NOW
11270# else
11271# define LT_DLLAZY_OR_NOW 0
11272# endif
11273# endif
11274# endif
11275# endif
11276#endif
11277
11278#ifdef __cplusplus
11279extern "C" void exit (int);
11280#endif
11281
11282void fnord() { int i=42;}
11283int main ()
11284{
11285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11286 int status = $lt_dlunknown;
11287
11288 if (self)
11289 {
11290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11292 /* dlclose (self); */
11293 }
11294
11295 exit (status);
11296}
11297EOF
11298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11303 (./conftest; exit; ) 2>/dev/null
11304 lt_status=$?
11305 case x$lt_status in
11306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11309 esac
11310 else :
11311 # compilation failed
11312 lt_cv_dlopen_self=no
11313 fi
11314fi
11315rm -fr conftest*
11316
11317
11318fi
11319echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11320echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11321
11322 if test "x$lt_cv_dlopen_self" = xyes; then
11323 LDFLAGS="$LDFLAGS $link_static_flag"
11324 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11325echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11326if test "${lt_cv_dlopen_self_static+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328else
11329 if test "$cross_compiling" = yes; then :
11330 lt_cv_dlopen_self_static=cross
11331else
11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333 lt_status=$lt_dlunknown
11334 cat > conftest.$ac_ext <<EOF
11335#line 11335 "configure"
11336#include "confdefs.h"
11337
11338#if HAVE_DLFCN_H
11339#include <dlfcn.h>
11340#endif
11341
11342#include <stdio.h>
11343
11344#ifdef RTLD_GLOBAL
11345# define LT_DLGLOBAL RTLD_GLOBAL
11346#else
11347# ifdef DL_GLOBAL
11348# define LT_DLGLOBAL DL_GLOBAL
11349# else
11350# define LT_DLGLOBAL 0
11351# endif
11352#endif
11353
11354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355 find out it does not work in some platform. */
11356#ifndef LT_DLLAZY_OR_NOW
11357# ifdef RTLD_LAZY
11358# define LT_DLLAZY_OR_NOW RTLD_LAZY
11359# else
11360# ifdef DL_LAZY
11361# define LT_DLLAZY_OR_NOW DL_LAZY
11362# else
11363# ifdef RTLD_NOW
11364# define LT_DLLAZY_OR_NOW RTLD_NOW
11365# else
11366# ifdef DL_NOW
11367# define LT_DLLAZY_OR_NOW DL_NOW
11368# else
11369# define LT_DLLAZY_OR_NOW 0
11370# endif
11371# endif
11372# endif
11373# endif
11374#endif
11375
11376#ifdef __cplusplus
11377extern "C" void exit (int);
11378#endif
11379
11380void fnord() { int i=42;}
11381int main ()
11382{
11383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11384 int status = $lt_dlunknown;
11385
11386 if (self)
11387 {
11388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11390 /* dlclose (self); */
11391 }
11392
11393 exit (status);
11394}
11395EOF
11396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397 (eval $ac_link) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11401 (./conftest; exit; ) 2>/dev/null
11402 lt_status=$?
11403 case x$lt_status in
11404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11407 esac
11408 else :
11409 # compilation failed
11410 lt_cv_dlopen_self_static=no
11411 fi
11412fi
11413rm -fr conftest*
11414
11415
11416fi
11417echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11418echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11419 fi
11420
11421 CPPFLAGS="$save_CPPFLAGS"
11422 LDFLAGS="$save_LDFLAGS"
11423 LIBS="$save_LIBS"
11424 ;;
11425 esac
11426
11427 case $lt_cv_dlopen_self in
11428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11429 *) enable_dlopen_self=unknown ;;
11430 esac
11431
11432 case $lt_cv_dlopen_self_static in
11433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11434 *) enable_dlopen_self_static=unknown ;;
11435 esac
11436fi
11437
11438
11439# The else clause should only fire when bootstrapping the
11440# libtool distribution, otherwise you forgot to ship ltmain.sh
11441# with your package, and you will get complaints that there are
11442# no rules to generate ltmain.sh.
11443if test -f "$ltmain"; then
11444 # See if we are running on zsh, and set the options which allow our commands through
11445 # without removal of \ escapes.
11446 if test -n "${ZSH_VERSION+set}" ; then
11447 setopt NO_GLOB_SUBST
11448 fi
11449 # Now quote all the things that may contain metacharacters while being
11450 # careful not to overquote the AC_SUBSTed values. We take copies of the
11451 # variables and quote the copies for generation of the libtool script.
11452 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11455 deplibs_check_method reload_flag reload_cmds need_locks \
11456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11457 lt_cv_sys_global_symbol_to_c_name_address \
11458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11459 old_postinstall_cmds old_postuninstall_cmds \
11460 compiler_CXX \
11461 CC_CXX \
11462 LD_CXX \
11463 lt_prog_compiler_wl_CXX \
11464 lt_prog_compiler_pic_CXX \
11465 lt_prog_compiler_static_CXX \
11466 lt_prog_compiler_no_builtin_flag_CXX \
11467 export_dynamic_flag_spec_CXX \
11468 thread_safe_flag_spec_CXX \
11469 whole_archive_flag_spec_CXX \
11470 enable_shared_with_static_runtimes_CXX \
11471 old_archive_cmds_CXX \
11472 old_archive_from_new_cmds_CXX \
11473 predep_objects_CXX \
11474 postdep_objects_CXX \
11475 predeps_CXX \
11476 postdeps_CXX \
11477 compiler_lib_search_path_CXX \
11478 archive_cmds_CXX \
11479 archive_expsym_cmds_CXX \
11480 postinstall_cmds_CXX \
11481 postuninstall_cmds_CXX \
11482 old_archive_from_expsyms_cmds_CXX \
11483 allow_undefined_flag_CXX \
11484 no_undefined_flag_CXX \
11485 export_symbols_cmds_CXX \
11486 hardcode_libdir_flag_spec_CXX \
11487 hardcode_libdir_flag_spec_ld_CXX \
11488 hardcode_libdir_separator_CXX \
11489 hardcode_automatic_CXX \
11490 module_cmds_CXX \
11491 module_expsym_cmds_CXX \
11492 lt_cv_prog_compiler_c_o_CXX \
11493 exclude_expsyms_CXX \
11494 include_expsyms_CXX; do
11495
11496 case $var in
11497 old_archive_cmds_CXX | \
11498 old_archive_from_new_cmds_CXX | \
11499 archive_cmds_CXX | \
11500 archive_expsym_cmds_CXX | \
11501 module_cmds_CXX | \
11502 module_expsym_cmds_CXX | \
11503 old_archive_from_expsyms_cmds_CXX | \
11504 export_symbols_cmds_CXX | \
11505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11506 postinstall_cmds | postuninstall_cmds | \
11507 old_postinstall_cmds | old_postuninstall_cmds | \
11508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11509 # Double-quote double-evaled strings.
11510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11511 ;;
11512 *)
11513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11514 ;;
11515 esac
11516 done
11517
11518 case $lt_echo in
11519 *'\$0 --fallback-echo"')
11520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11521 ;;
11522 esac
11523
11524cfgfile="$ofile"
11525
11526 cat <<__EOF__ >> "$cfgfile"
11527# ### BEGIN LIBTOOL TAG CONFIG: $tagname
11528
11529# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11530
11531# Shell to use when invoking shell scripts.
11532SHELL=$lt_SHELL
11533
11534# Whether or not to build shared libraries.
11535build_libtool_libs=$enable_shared
11536
11537# Whether or not to build static libraries.
11538build_old_libs=$enable_static
11539
11540# Whether or not to add -lc for building shared libraries.
11541build_libtool_need_lc=$archive_cmds_need_lc_CXX
11542
11543# Whether or not to disallow shared libs when runtime libs are static
11544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11545
11546# Whether or not to optimize for fast installation.
11547fast_install=$enable_fast_install
11548
11549# The host system.
11550host_alias=$host_alias
11551host=$host
11552
11553# An echo program that does not interpret backslashes.
11554echo=$lt_echo
11555
11556# The archiver.
11557AR=$lt_AR
11558AR_FLAGS=$lt_AR_FLAGS
11559
11560# A C compiler.
11561LTCC=$lt_LTCC
11562
11563# A language-specific compiler.
11564CC=$lt_compiler_CXX
11565
11566# Is the compiler the GNU C compiler?
11567with_gcc=$GCC_CXX
11568
11569# An ERE matcher.
11570EGREP=$lt_EGREP
11571
11572# The linker used to build libraries.
11573LD=$lt_LD_CXX
11574
11575# Whether we need hard or soft links.
11576LN_S=$lt_LN_S
11577
11578# A BSD-compatible nm program.
11579NM=$lt_NM
11580
11581# A symbol stripping program
11582STRIP=$STRIP
11583
11584# Used to examine libraries when file_magic_cmd begins "file"
11585MAGIC_CMD=$MAGIC_CMD
11586
11587# Used on cygwin: DLL creation program.
11588DLLTOOL="$DLLTOOL"
11589
11590# Used on cygwin: object dumper.
11591OBJDUMP="$OBJDUMP"
11592
11593# Used on cygwin: assembler.
11594AS="$AS"
11595
11596# The name of the directory that contains temporary libtool files.
11597objdir=$objdir
11598
11599# How to create reloadable object files.
11600reload_flag=$lt_reload_flag
11601reload_cmds=$lt_reload_cmds
11602
11603# How to pass a linker flag through the compiler.
11604wl=$lt_lt_prog_compiler_wl_CXX
11605
11606# Object file suffix (normally "o").
11607objext="$ac_objext"
11608
11609# Old archive suffix (normally "a").
11610libext="$libext"
11611
11612# Shared library suffix (normally ".so").
11613shrext='$shrext'
11614
11615# Executable file suffix (normally "").
11616exeext="$exeext"
11617
11618# Additional compiler flags for building library objects.
11619pic_flag=$lt_lt_prog_compiler_pic_CXX
11620pic_mode=$pic_mode
11621
11622# What is the maximum length of a command?
11623max_cmd_len=$lt_cv_sys_max_cmd_len
11624
11625# Does compiler simultaneously support -c and -o options?
11626compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11627
11628# Must we lock files when doing compilation ?
11629need_locks=$lt_need_locks
11630
11631# Do we need the lib prefix for modules?
11632need_lib_prefix=$need_lib_prefix
11633
11634# Do we need a version for libraries?
11635need_version=$need_version
11636
11637# Whether dlopen is supported.
11638dlopen_support=$enable_dlopen
11639
11640# Whether dlopen of programs is supported.
11641dlopen_self=$enable_dlopen_self
11642
11643# Whether dlopen of statically linked programs is supported.
11644dlopen_self_static=$enable_dlopen_self_static
11645
11646# Compiler flag to prevent dynamic linking.
11647link_static_flag=$lt_lt_prog_compiler_static_CXX
11648
11649# Compiler flag to turn off builtin functions.
11650no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11651
11652# Compiler flag to allow reflexive dlopens.
11653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11654
11655# Compiler flag to generate shared objects directly from archives.
11656whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11657
11658# Compiler flag to generate thread-safe objects.
11659thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11660
11661# Library versioning type.
11662version_type=$version_type
11663
11664# Format of library name prefix.
11665libname_spec=$lt_libname_spec
11666
11667# List of archive names. First name is the real one, the rest are links.
11668# The last name is the one that the linker finds with -lNAME.
11669library_names_spec=$lt_library_names_spec
11670
11671# The coded name of the library, if different from the real name.
11672soname_spec=$lt_soname_spec
11673
11674# Commands used to build and install an old-style archive.
11675RANLIB=$lt_RANLIB
11676old_archive_cmds=$lt_old_archive_cmds_CXX
11677old_postinstall_cmds=$lt_old_postinstall_cmds
11678old_postuninstall_cmds=$lt_old_postuninstall_cmds
11679
11680# Create an old-style archive from a shared archive.
11681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11682
11683# Create a temporary old-style archive to link instead of a shared archive.
11684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11685
11686# Commands used to build and install a shared archive.
11687archive_cmds=$lt_archive_cmds_CXX
11688archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11689postinstall_cmds=$lt_postinstall_cmds
11690postuninstall_cmds=$lt_postuninstall_cmds
11691
11692# Commands used to build a loadable module (assumed same as above if empty)
11693module_cmds=$lt_module_cmds_CXX
11694module_expsym_cmds=$lt_module_expsym_cmds_CXX
11695
11696# Commands to strip libraries.
11697old_striplib=$lt_old_striplib
11698striplib=$lt_striplib
11699
11700# Dependencies to place before the objects being linked to create a
11701# shared library.
11702predep_objects=$lt_predep_objects_CXX
11703
11704# Dependencies to place after the objects being linked to create a
11705# shared library.
11706postdep_objects=$lt_postdep_objects_CXX
11707
11708# Dependencies to place before the objects being linked to create a
11709# shared library.
11710predeps=$lt_predeps_CXX
11711
11712# Dependencies to place after the objects being linked to create a
11713# shared library.
11714postdeps=$lt_postdeps_CXX
11715
11716# The library search path used internally by the compiler when linking
11717# a shared library.
11718compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11719
11720# Method to check whether dependent libraries are shared objects.
11721deplibs_check_method=$lt_deplibs_check_method
11722
11723# Command to use when deplibs_check_method == file_magic.
11724file_magic_cmd=$lt_file_magic_cmd
11725
11726# Flag that allows shared libraries with undefined symbols to be built.
11727allow_undefined_flag=$lt_allow_undefined_flag_CXX
11728
11729# Flag that forces no undefined symbols.
11730no_undefined_flag=$lt_no_undefined_flag_CXX
11731
11732# Commands used to finish a libtool library installation in a directory.
11733finish_cmds=$lt_finish_cmds
11734
11735# Same as above, but a single script fragment to be evaled but not shown.
11736finish_eval=$lt_finish_eval
11737
11738# Take the output of nm and produce a listing of raw symbols and C names.
11739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11740
11741# Transform the output of nm in a proper C declaration
11742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11743
11744# Transform the output of nm in a C name address pair
11745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11746
11747# This is the shared library runtime path variable.
11748runpath_var=$runpath_var
11749
11750# This is the shared library path variable.
11751shlibpath_var=$shlibpath_var
11752
11753# Is shlibpath searched before the hard-coded library search path?
11754shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11755
11756# How to hardcode a shared library path into an executable.
11757hardcode_action=$hardcode_action_CXX
11758
11759# Whether we should hardcode library paths into libraries.
11760hardcode_into_libs=$hardcode_into_libs
11761
11762# Flag to hardcode \$libdir into a binary during linking.
11763# This must work even if \$libdir does not exist.
11764hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11765
11766# If ld is used when linking, flag to hardcode \$libdir into
11767# a binary during linking. This must work even if \$libdir does
11768# not exist.
11769hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11770
11771# Whether we need a single -rpath flag with a separated argument.
11772hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11773
11774# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11775# resulting binary.
11776hardcode_direct=$hardcode_direct_CXX
11777
11778# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11779# resulting binary.
11780hardcode_minus_L=$hardcode_minus_L_CXX
11781
11782# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11783# the resulting binary.
11784hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11785
11786# Set to yes if building a shared library automatically hardcodes DIR into the library
11787# and all subsequent libraries and executables linked against it.
11788hardcode_automatic=$hardcode_automatic_CXX
11789
11790# Variables whose values should be saved in libtool wrapper scripts and
11791# restored at relink time.
11792variables_saved_for_relink="$variables_saved_for_relink"
11793
11794# Whether libtool must link a program against all its dependency libraries.
11795link_all_deplibs=$link_all_deplibs_CXX
11796
11797# Compile-time system search path for libraries
11798sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11799
11800# Run-time system search path for libraries
11801sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11802
11803# Fix the shell variable \$srcfile for the compiler.
11804fix_srcfile_path="$fix_srcfile_path_CXX"
11805
11806# Set to yes if exported symbols are required.
11807always_export_symbols=$always_export_symbols_CXX
11808
11809# The commands to list exported symbols.
11810export_symbols_cmds=$lt_export_symbols_cmds_CXX
11811
11812# The commands to extract the exported symbol list from a shared archive.
11813extract_expsyms_cmds=$lt_extract_expsyms_cmds
11814
11815# Symbols that should not be listed in the preloaded symbols.
11816exclude_expsyms=$lt_exclude_expsyms_CXX
11817
11818# Symbols that must always be exported.
11819include_expsyms=$lt_include_expsyms_CXX
11820
11821# ### END LIBTOOL TAG CONFIG: $tagname
11822
11823__EOF__
11824
11825
11826else
11827 # If there is no Makefile yet, we rely on a make rule to execute
11828 # `config.status --recheck' to rerun these tests and create the
11829 # libtool script then.
11830 test -f Makefile && make "$ltmain"
11831fi
11832
11833
11834ac_ext=c
11835ac_cpp='$CPP $CPPFLAGS'
11836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11838ac_compiler_gnu=$ac_cv_c_compiler_gnu
11839
11840CC=$lt_save_CC
11841LDCXX=$LD
11842LD=$lt_save_LD
11843GCC=$lt_save_GCC
11844with_gnu_ldcxx=$with_gnu_ld
11845with_gnu_ld=$lt_save_with_gnu_ld
11846lt_cv_path_LDCXX=$lt_cv_path_LD
11847lt_cv_path_LD=$lt_save_path_LD
11848lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11849lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
11850
11851 else
11852 tagname=""
11853 fi
11854 ;;
11855
11856 F77)
11857 if test -n "$F77" && test "X$F77" != "Xno"; then
11858
11859ac_ext=f
11860ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11861ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11863
11864
11865archive_cmds_need_lc_F77=no
11866allow_undefined_flag_F77=
11867always_export_symbols_F77=no
11868archive_expsym_cmds_F77=
11869export_dynamic_flag_spec_F77=
11870hardcode_direct_F77=no
11871hardcode_libdir_flag_spec_F77=
11872hardcode_libdir_flag_spec_ld_F77=
11873hardcode_libdir_separator_F77=
11874hardcode_minus_L_F77=no
11875hardcode_automatic_F77=no
11876module_cmds_F77=
11877module_expsym_cmds_F77=
11878link_all_deplibs_F77=unknown
11879old_archive_cmds_F77=$old_archive_cmds
11880no_undefined_flag_F77=
11881whole_archive_flag_spec_F77=
11882enable_shared_with_static_runtimes_F77=no
11883
11884# Source file extension for f77 test sources.
11885ac_ext=f
11886
11887# Object file extension for compiled f77 test sources.
11888objext=o
11889objext_F77=$objext
11890
11891# Code to be used in simple compile tests
11892lt_simple_compile_test_code=" subroutine t\n return\n end\n"
11893
11894# Code to be used in simple link tests
11895lt_simple_link_test_code=" program t\n end\n"
11896
11897# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11898
11899# If no C compiler was specified, use CC.
11900LTCC=${LTCC-"$CC"}
11901
11902# Allow CC to be a program name with arguments.
11903compiler=$CC
11904
11905
11906# Allow CC to be a program name with arguments.
11907lt_save_CC="$CC"
11908CC=${F77-"f77"}
11909compiler=$CC
11910compiler_F77=$CC
11911cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11912
11913echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11914echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11915echo "$as_me:$LINENO: result: $can_build_shared" >&5
11916echo "${ECHO_T}$can_build_shared" >&6
11917
11918echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11919echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11920test "$can_build_shared" = "no" && enable_shared=no
11921
11922# On AIX, shared libraries and static libraries use the same namespace, and
11923# are all built from PIC.
11924case "$host_os" in
11925aix3*)
11926 test "$enable_shared" = yes && enable_static=no
11927 if test -n "$RANLIB"; then
11928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds='$RANLIB $lib'
11930 fi
11931 ;;
11932aix4*)
11933 test "$enable_shared" = yes && enable_static=no
11934 ;;
11935esac
11936echo "$as_me:$LINENO: result: $enable_shared" >&5
11937echo "${ECHO_T}$enable_shared" >&6
11938
11939echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11940echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11941# Make sure either enable_shared or enable_static is yes.
11942test "$enable_shared" = yes || enable_static=yes
11943echo "$as_me:$LINENO: result: $enable_static" >&5
11944echo "${ECHO_T}$enable_static" >&6
11945
11946test "$ld_shlibs_F77" = no && can_build_shared=no
11947
11948GCC_F77="$G77"
11949LD_F77="$LD"
11950
11951lt_prog_compiler_wl_F77=
11952lt_prog_compiler_pic_F77=
11953lt_prog_compiler_static_F77=
11954
11955echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11956echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11957
11958 if test "$GCC" = yes; then
11959 lt_prog_compiler_wl_F77='-Wl,'
11960 lt_prog_compiler_static_F77='-static'
11961
11962 case $host_os in
11963 aix*)
11964 # All AIX code is PIC.
11965 if test "$host_cpu" = ia64; then
11966 # AIX 5 now supports IA64 processor
11967 lt_prog_compiler_static_F77='-Bstatic'
11968 fi
11969 ;;
11970
11971 amigaos*)
11972 # FIXME: we need at least 68020 code to build shared libraries, but
11973 # adding the `-m68020' flag to GCC prevents building anything better,
11974 # like `-m68040'.
11975 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
11976 ;;
11977
11978 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11979 # PIC is the default for these OSes.
11980 ;;
11981
11982 mingw* | pw32* | os2*)
11983 # This hack is so that the source file can tell whether it is being
11984 # built for inclusion in a dll (and should export symbols for example).
11985 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11986 ;;
11987
11988 darwin* | rhapsody*)
11989 # PIC is the default on this platform
11990 # Common symbols not allowed in MH_DYLIB files
11991 lt_prog_compiler_pic_F77='-fno-common'
11992 ;;
11993
11994 msdosdjgpp*)
11995 # Just because we use GCC doesn't mean we suddenly get shared libraries
11996 # on systems that don't support them.
11997 lt_prog_compiler_can_build_shared_F77=no
11998 enable_shared=no
11999 ;;
12000
12001 sysv4*MP*)
12002 if test -d /usr/nec; then
12003 lt_prog_compiler_pic_F77=-Kconform_pic
12004 fi
12005 ;;
12006
12007 hpux*)
12008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12009 # not for PA HP-UX.
12010 case "$host_cpu" in
12011 hppa*64*|ia64*)
12012 # +Z the default
12013 ;;
12014 *)
12015 lt_prog_compiler_pic_F77='-fPIC'
12016 ;;
12017 esac
12018 ;;
12019
12020 *)
12021 lt_prog_compiler_pic_F77='-fPIC'
12022 ;;
12023 esac
12024 else
12025 # PORTME Check for flag to pass linker flags through the system compiler.
12026 case $host_os in
12027 aix*)
12028 lt_prog_compiler_wl_F77='-Wl,'
12029 if test "$host_cpu" = ia64; then
12030 # AIX 5 now supports IA64 processor
12031 lt_prog_compiler_static_F77='-Bstatic'
12032 else
12033 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12034 fi
12035 ;;
12036
12037 mingw* | pw32* | os2*)
12038 # This hack is so that the source file can tell whether it is being
12039 # built for inclusion in a dll (and should export symbols for example).
12040 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12041 ;;
12042
12043 hpux9* | hpux10* | hpux11*)
12044 lt_prog_compiler_wl_F77='-Wl,'
12045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12046 # not for PA HP-UX.
12047 case "$host_cpu" in
12048 hppa*64*|ia64*)
12049 # +Z the default
12050 ;;
12051 *)
12052 lt_prog_compiler_pic_F77='+Z'
12053 ;;
12054 esac
12055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12056 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12057 ;;
12058
12059 irix5* | irix6* | nonstopux*)
12060 lt_prog_compiler_wl_F77='-Wl,'
12061 # PIC (with -KPIC) is the default.
12062 lt_prog_compiler_static_F77='-non_shared'
12063 ;;
12064
12065 newsos6)
12066 lt_prog_compiler_pic_F77='-KPIC'
12067 lt_prog_compiler_static_F77='-Bstatic'
12068 ;;
12069
12070 linux*)
12071 case $CC in
12072 icc|ecc)
12073 lt_prog_compiler_wl_F77='-Wl,'
12074 lt_prog_compiler_pic_F77='-KPIC'
12075 lt_prog_compiler_static_F77='-static'
12076 ;;
12077 ccc)
12078 lt_prog_compiler_wl_F77='-Wl,'
12079 # All Alpha code is PIC.
12080 lt_prog_compiler_static_F77='-non_shared'
12081 ;;
12082 esac
12083 ;;
12084
12085 osf3* | osf4* | osf5*)
12086 lt_prog_compiler_wl_F77='-Wl,'
12087 # All OSF/1 code is PIC.
12088 lt_prog_compiler_static_F77='-non_shared'
12089 ;;
12090
12091 sco3.2v5*)
12092 lt_prog_compiler_pic_F77='-Kpic'
12093 lt_prog_compiler_static_F77='-dn'
12094 ;;
12095
12096 solaris*)
12097 lt_prog_compiler_wl_F77='-Wl,'
12098 lt_prog_compiler_pic_F77='-KPIC'
12099 lt_prog_compiler_static_F77='-Bstatic'
12100 ;;
12101
12102 sunos4*)
12103 lt_prog_compiler_wl_F77='-Qoption ld '
12104 lt_prog_compiler_pic_F77='-PIC'
12105 lt_prog_compiler_static_F77='-Bstatic'
12106 ;;
12107
12108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12109 lt_prog_compiler_wl_F77='-Wl,'
12110 lt_prog_compiler_pic_F77='-KPIC'
12111 lt_prog_compiler_static_F77='-Bstatic'
12112 ;;
12113
12114 sysv4*MP*)
12115 if test -d /usr/nec ;then
12116 lt_prog_compiler_pic_F77='-Kconform_pic'
12117 lt_prog_compiler_static_F77='-Bstatic'
12118 fi
12119 ;;
12120
12121 uts4*)
12122 lt_prog_compiler_pic_F77='-pic'
12123 lt_prog_compiler_static_F77='-Bstatic'
12124 ;;
12125
12126 *)
12127 lt_prog_compiler_can_build_shared_F77=no
12128 ;;
12129 esac
12130 fi
12131
12132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12133echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12134
12135#
12136# Check to make sure the PIC flag actually works.
12137#
12138if test -n "$lt_prog_compiler_pic_F77"; then
12139 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12141if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 lt_prog_compiler_pic_works_F77=no
12145 ac_outfile=conftest.$ac_objext
12146 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12147 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12148 # Insert the option either (1) after the last *FLAGS variable, or
12149 # (2) before a word containing "conftest.", or (3) at the end.
12150 # Note that $ac_compile itself does not contain backslashes and begins
12151 # with a dollar sign (not a hyphen), so the echo should work correctly.
12152 # The option is referenced via a variable to avoid confusing sed.
12153 lt_compile=`echo "$ac_compile" | $SED \
12154 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12156 -e 's:$: $lt_compiler_flag:'`
12157 (eval echo "\"\$as_me:12157: $lt_compile\"" >&5)
12158 (eval "$lt_compile" 2>conftest.err)
12159 ac_status=$?
12160 cat conftest.err >&5
12161 echo "$as_me:12161: \$? = $ac_status" >&5
12162 if (exit $ac_status) && test -s "$ac_outfile"; then
12163 # The compiler can only warn and ignore the option if not recognized
12164 # So say no if there are warnings
12165 if test ! -s conftest.err; then
12166 lt_prog_compiler_pic_works_F77=yes
12167 fi
12168 fi
12169 $rm conftest*
12170
12171fi
12172echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12173echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12174
12175if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12176 case $lt_prog_compiler_pic_F77 in
12177 "" | " "*) ;;
12178 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12179 esac
12180else
12181 lt_prog_compiler_pic_F77=
12182 lt_prog_compiler_can_build_shared_F77=no
12183fi
12184
12185fi
12186case "$host_os" in
12187 # For platforms which do not support PIC, -DPIC is meaningless:
12188 *djgpp*)
12189 lt_prog_compiler_pic_F77=
12190 ;;
12191 *)
12192 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12193 ;;
12194esac
12195
12196echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12197echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12198if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201 lt_cv_prog_compiler_c_o_F77=no
12202 $rm -r conftest 2>/dev/null
12203 mkdir conftest
12204 cd conftest
12205 mkdir out
12206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12207
12208 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12209 # that will create temporary files in the current directory regardless of
12210 # the output directory. Thus, making CWD read-only will cause this test
12211 # to fail, enabling locking or at least warning the user not to do parallel
12212 # builds.
12213 chmod -w .
12214
12215 lt_compiler_flag="-o out/conftest2.$ac_objext"
12216 # Insert the option either (1) after the last *FLAGS variable, or
12217 # (2) before a word containing "conftest.", or (3) at the end.
12218 # Note that $ac_compile itself does not contain backslashes and begins
12219 # with a dollar sign (not a hyphen), so the echo should work correctly.
12220 lt_compile=`echo "$ac_compile" | $SED \
12221 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12223 -e 's:$: $lt_compiler_flag:'`
12224 (eval echo "\"\$as_me:12224: $lt_compile\"" >&5)
12225 (eval "$lt_compile" 2>out/conftest.err)
12226 ac_status=$?
12227 cat out/conftest.err >&5
12228 echo "$as_me:12228: \$? = $ac_status" >&5
12229 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12230 then
12231 # The compiler can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test ! -s out/conftest.err; then
12234 lt_cv_prog_compiler_c_o_F77=yes
12235 fi
12236 fi
12237 chmod u+w .
12238 $rm conftest* out/*
12239 rmdir out
12240 cd ..
12241 rmdir conftest
12242 $rm conftest*
12243
12244fi
12245echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12246echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12247
12248
12249hard_links="nottested"
12250if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12251 # do not overwrite the value of need_locks provided by the user
12252 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12253echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12254 hard_links=yes
12255 $rm conftest*
12256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12257 touch conftest.a
12258 ln conftest.a conftest.b 2>&5 || hard_links=no
12259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12260 echo "$as_me:$LINENO: result: $hard_links" >&5
12261echo "${ECHO_T}$hard_links" >&6
12262 if test "$hard_links" = no; then
12263 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12264echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12265 need_locks=warn
12266 fi
12267else
12268 need_locks=no
12269fi
12270
12271echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12272echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12273
12274 runpath_var=
12275 allow_undefined_flag_F77=
12276 enable_shared_with_static_runtimes_F77=no
12277 archive_cmds_F77=
12278 archive_expsym_cmds_F77=
12279 old_archive_From_new_cmds_F77=
12280 old_archive_from_expsyms_cmds_F77=
12281 export_dynamic_flag_spec_F77=
12282 whole_archive_flag_spec_F77=
12283 thread_safe_flag_spec_F77=
12284 hardcode_libdir_flag_spec_F77=
12285 hardcode_libdir_flag_spec_ld_F77=
12286 hardcode_libdir_separator_F77=
12287 hardcode_direct_F77=no
12288 hardcode_minus_L_F77=no
12289 hardcode_shlibpath_var_F77=unsupported
12290 link_all_deplibs_F77=unknown
12291 hardcode_automatic_F77=no
12292 module_cmds_F77=
12293 module_expsym_cmds_F77=
12294 always_export_symbols_F77=no
12295 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12296 # include_expsyms should be a list of space-separated symbols to be *always*
12297 # included in the symbol list
12298 include_expsyms_F77=
12299 # exclude_expsyms can be an extended regexp of symbols to exclude
12300 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12301 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12302 # as well as any symbol that contains `d'.
12303 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12305 # platforms (ab)use it in PIC code, but their linkers get confused if
12306 # the symbol is explicitly referenced. Since portable code cannot
12307 # rely on this symbol name, it's probably fine to never include it in
12308 # preloaded symbol tables.
12309 extract_expsyms_cmds=
12310
12311 case $host_os in
12312 cygwin* | mingw* | pw32*)
12313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12314 # When not using gcc, we currently assume that we are using
12315 # Microsoft Visual C++.
12316 if test "$GCC" != yes; then
12317 with_gnu_ld=no
12318 fi
12319 ;;
12320 openbsd*)
12321 with_gnu_ld=no
12322 ;;
12323 esac
12324
12325 ld_shlibs_F77=yes
12326 if test "$with_gnu_ld" = yes; then
12327 # If archive_cmds runs LD, not CC, wlarc should be empty
12328 wlarc='${wl}'
12329
12330 # See if GNU ld supports shared libraries.
12331 case $host_os in
12332 aix3* | aix4* | aix5*)
12333 # On AIX/PPC, the GNU linker is very broken
12334 if test "$host_cpu" != ia64; then
12335 ld_shlibs_F77=no
12336 cat <<EOF 1>&2
12337
12338*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12339*** to be unable to reliably create shared libraries on AIX.
12340*** Therefore, libtool is disabling shared libraries support. If you
12341*** really care for shared libraries, you may want to modify your PATH
12342*** so that a non-GNU linker is found, and then restart.
12343
12344EOF
12345 fi
12346 ;;
12347
12348 amigaos*)
12349 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)'
12350 hardcode_libdir_flag_spec_F77='-L$libdir'
12351 hardcode_minus_L_F77=yes
12352
12353 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12354 # that the semantics of dynamic libraries on AmigaOS, at least up
12355 # to version 4, is to share data among multiple programs linked
12356 # with the same dynamic library. Since this doesn't match the
12357 # behavior of shared libraries on other platforms, we can't use
12358 # them.
12359 ld_shlibs_F77=no
12360 ;;
12361
12362 beos*)
12363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364 allow_undefined_flag_F77=unsupported
12365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12366 # support --undefined. This deserves some investigation. FIXME
12367 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368 else
12369 ld_shlibs_F77=no
12370 fi
12371 ;;
12372
12373 cygwin* | mingw* | pw32*)
12374 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12375 # as there is no search path for DLLs.
12376 hardcode_libdir_flag_spec_F77='-L$libdir'
12377 allow_undefined_flag_F77=unsupported
12378 always_export_symbols_F77=no
12379 enable_shared_with_static_runtimes_F77=yes
12380 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12381
12382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12383 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12384 # If the export-symbols file already is a .def file (1st line
12385 # is EXPORTS), use it as is; otherwise, prepend...
12386 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387 cp $export_symbols $output_objdir/$soname.def;
12388 else
12389 echo EXPORTS > $output_objdir/$soname.def;
12390 cat $export_symbols >> $output_objdir/$soname.def;
12391 fi~
12392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12393 else
12394 ld_shlibs=no
12395 fi
12396 ;;
12397
12398 netbsd*)
12399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12400 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12401 wlarc=
12402 else
12403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 fi
12406 ;;
12407
12408 solaris* | sysv5*)
12409 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12410 ld_shlibs_F77=no
12411 cat <<EOF 1>&2
12412
12413*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12414*** create shared libraries on Solaris systems. Therefore, libtool
12415*** is disabling shared libraries support. We urge you to upgrade GNU
12416*** binutils to release 2.9.1 or newer. Another option is to modify
12417*** your PATH or compiler configuration so that the native linker is
12418*** used, and then restart.
12419
12420EOF
12421 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12422 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424 else
12425 ld_shlibs_F77=no
12426 fi
12427 ;;
12428
12429 sunos4*)
12430 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12431 wlarc=
12432 hardcode_direct_F77=yes
12433 hardcode_shlibpath_var_F77=no
12434 ;;
12435
12436 *)
12437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12440 else
12441 ld_shlibs_F77=no
12442 fi
12443 ;;
12444 esac
12445
12446 if test "$ld_shlibs_F77" = yes; then
12447 runpath_var=LD_RUN_PATH
12448 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12449 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12450 # ancient GNU ld didn't support --whole-archive et. al.
12451 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12452 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12453 else
12454 whole_archive_flag_spec_F77=
12455 fi
12456 fi
12457 else
12458 # PORTME fill in a description of your system's linker (not GNU ld)
12459 case $host_os in
12460 aix3*)
12461 allow_undefined_flag_F77=unsupported
12462 always_export_symbols_F77=yes
12463 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'
12464 # Note: this linker hardcodes the directories in LIBPATH if there
12465 # are no directories specified by -L.
12466 hardcode_minus_L_F77=yes
12467 if test "$GCC" = yes && test -z "$link_static_flag"; then
12468 # Neither direct hardcoding nor static linking is supported with a
12469 # broken collect2.
12470 hardcode_direct_F77=unsupported
12471 fi
12472 ;;
12473
12474 aix4* | aix5*)
12475 if test "$host_cpu" = ia64; then
12476 # On IA64, the linker does run time linking by default, so we don't
12477 # have to do anything special.
12478 aix_use_runtimelinking=no
12479 exp_sym_flag='-Bexport'
12480 no_entry_flag=""
12481 else
12482 # If we're using GNU nm, then we don't want the "-C" option.
12483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12485 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'
12486 else
12487 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'
12488 fi
12489 aix_use_runtimelinking=no
12490
12491 # Test if we are trying to use run time linking or normal
12492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493 # need to do runtime linking.
12494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12495 for ld_flag in $LDFLAGS; do
12496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12497 aix_use_runtimelinking=yes
12498 break
12499 fi
12500 done
12501 esac
12502
12503 exp_sym_flag='-bexport'
12504 no_entry_flag='-bnoentry'
12505 fi
12506
12507 # When large executables or shared objects are built, AIX ld can
12508 # have problems creating the table of contents. If linking a library
12509 # or program results in "error TOC overflow" add -mminimal-toc to
12510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12512
12513 archive_cmds_F77=''
12514 hardcode_direct_F77=yes
12515 hardcode_libdir_separator_F77=':'
12516 link_all_deplibs_F77=yes
12517
12518 if test "$GCC" = yes; then
12519 case $host_os in aix4.012|aix4.012.*)
12520 # We only want to do this on AIX 4.2 and lower, the check
12521 # below for broken collect2 doesn't work under 4.3+
12522 collect2name=`${CC} -print-prog-name=collect2`
12523 if test -f "$collect2name" && \
12524 strings "$collect2name" | grep resolve_lib_name >/dev/null
12525 then
12526 # We have reworked collect2
12527 hardcode_direct_F77=yes
12528 else
12529 # We have old collect2
12530 hardcode_direct_F77=unsupported
12531 # It fails to find uninstalled libraries when the uninstalled
12532 # path is not listed in the libpath. Setting hardcode_minus_L
12533 # to unsupported forces relinking
12534 hardcode_minus_L_F77=yes
12535 hardcode_libdir_flag_spec_F77='-L$libdir'
12536 hardcode_libdir_separator_F77=
12537 fi
12538 esac
12539 shared_flag='-shared'
12540 else
12541 # not using gcc
12542 if test "$host_cpu" = ia64; then
12543 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12544 # chokes on -Wl,-G. The following line is correct:
12545 shared_flag='-G'
12546 else
12547 if test "$aix_use_runtimelinking" = yes; then
12548 shared_flag='${wl}-G'
12549 else
12550 shared_flag='${wl}-bM:SRE'
12551 fi
12552 fi
12553 fi
12554
12555 # It seems that -bexpall does not export symbols beginning with
12556 # underscore (_), so it is better to generate a list of symbols to export.
12557 always_export_symbols_F77=yes
12558 if test "$aix_use_runtimelinking" = yes; then
12559 # Warning - without using the other runtime loading flags (-brtl),
12560 # -berok will link without error, but may produce a broken library.
12561 allow_undefined_flag_F77='-berok'
12562 # Determine the default libpath from the value encoded in an empty executable.
12563 cat >conftest.$ac_ext <<_ACEOF
12564 program main
12565
12566 end
12567_ACEOF
12568rm -f conftest.$ac_objext conftest$ac_exeext
12569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580
12581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12582}'`
12583# Check for a 64-bit object if we didn't find anything.
12584if 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; }
12585}'`; fi
12586else
12587 echo "$as_me: failed program was:" >&5
12588cat conftest.$ac_ext >&5
12589fi
12590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12591if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12592
12593 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12594 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"
12595 else
12596 if test "$host_cpu" = ia64; then
12597 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12598 allow_undefined_flag_F77="-z nodefs"
12599 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"
12600 else
12601 # Determine the default libpath from the value encoded in an empty executable.
12602 cat >conftest.$ac_ext <<_ACEOF
12603 program main
12604
12605 end
12606_ACEOF
12607rm -f conftest.$ac_objext conftest$ac_exeext
12608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609 (eval $ac_link) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619
12620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12621}'`
12622# Check for a 64-bit object if we didn't find anything.
12623if 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; }
12624}'`; fi
12625else
12626 echo "$as_me: failed program was:" >&5
12627cat conftest.$ac_ext >&5
12628fi
12629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12631
12632 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12633 # Warning - without using the other run time loading flags,
12634 # -berok will link without error, but may produce a broken library.
12635 no_undefined_flag_F77=' ${wl}-bernotok'
12636 allow_undefined_flag_F77=' ${wl}-berok'
12637 # -bexpall does not export symbols beginning with underscore (_)
12638 always_export_symbols_F77=yes
12639 # Exported symbols can be pulled into shared objects from archives
12640 whole_archive_flag_spec_F77=' '
12641 archive_cmds_need_lc_F77=yes
12642 # This is similar to how AIX traditionally builds it's shared libraries.
12643 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'
12644 fi
12645 fi
12646 ;;
12647
12648 amigaos*)
12649 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)'
12650 hardcode_libdir_flag_spec_F77='-L$libdir'
12651 hardcode_minus_L_F77=yes
12652 # see comment about different semantics on the GNU ld section
12653 ld_shlibs_F77=no
12654 ;;
12655
12656 bsdi4*)
12657 export_dynamic_flag_spec_F77=-rdynamic
12658 ;;
12659
12660 cygwin* | mingw* | pw32*)
12661 # When not using gcc, we currently assume that we are using
12662 # Microsoft Visual C++.
12663 # hardcode_libdir_flag_spec is actually meaningless, as there is
12664 # no search path for DLLs.
12665 hardcode_libdir_flag_spec_F77=' '
12666 allow_undefined_flag_F77=unsupported
12667 # Tell ltmain to make .lib files, not .a files.
12668 libext=lib
12669 # Tell ltmain to make .dll files, not .so files.
12670 shrext=".dll"
12671 # FIXME: Setting linknames here is a bad hack.
12672 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12673 # The linker will automatically build a .lib file if we build a DLL.
12674 old_archive_From_new_cmds_F77='true'
12675 # FIXME: Should let the user specify the lib program.
12676 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12677 fix_srcfile_path='`cygpath -w "$srcfile"`'
12678 enable_shared_with_static_runtimes_F77=yes
12679 ;;
12680
12681 darwin* | rhapsody*)
12682 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12683 archive_cmds_need_lc_F77=no
12684 case "$host_os" in
12685 rhapsody* | darwin1.[012])
12686 allow_undefined_flag_F77='-undefined suppress'
12687 ;;
12688 *) # Darwin 1.3 on
12689 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12690 ;;
12691 esac
12692 # FIXME: Relying on posixy $() will cause problems for
12693 # cross-compilation, but unfortunately the echo tests do not
12694 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
12695 # `"' quotes if we put them in here... so don't!
12696 lt_int_apple_cc_single_mod=no
12697 output_verbose_link_cmd='echo'
12698 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12699 lt_int_apple_cc_single_mod=yes
12700 fi
12701 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12702 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12703 else
12704 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'
12705 fi
12706 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
12707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12709 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}'
12710 else
12711 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}'
12712 fi
12713 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}'
12714 hardcode_direct_F77=no
12715 hardcode_automatic_F77=yes
12716 hardcode_shlibpath_var_F77=unsupported
12717 whole_archive_flag_spec_F77='-all_load $convenience'
12718 link_all_deplibs_F77=yes
12719 fi
12720 ;;
12721
12722 dgux*)
12723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_libdir_flag_spec_F77='-L$libdir'
12725 hardcode_shlibpath_var_F77=no
12726 ;;
12727
12728 freebsd1*)
12729 ld_shlibs_F77=no
12730 ;;
12731
12732 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12733 # support. Future versions do this automatically, but an explicit c++rt0.o
12734 # does not break anything, and helps significantly (at the cost of a little
12735 # extra space).
12736 freebsd2.2*)
12737 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12738 hardcode_libdir_flag_spec_F77='-R$libdir'
12739 hardcode_direct_F77=yes
12740 hardcode_shlibpath_var_F77=no
12741 ;;
12742
12743 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12744 freebsd2*)
12745 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12746 hardcode_direct_F77=yes
12747 hardcode_minus_L_F77=yes
12748 hardcode_shlibpath_var_F77=no
12749 ;;
12750
12751 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12752 freebsd*)
12753 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12754 hardcode_libdir_flag_spec_F77='-R$libdir'
12755 hardcode_direct_F77=yes
12756 hardcode_shlibpath_var_F77=no
12757 ;;
12758
12759 hpux9*)
12760 if test "$GCC" = yes; then
12761 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'
12762 else
12763 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'
12764 fi
12765 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12766 hardcode_libdir_separator_F77=:
12767 hardcode_direct_F77=yes
12768
12769 # hardcode_minus_L: Not really in the search PATH,
12770 # but as the default location of the library.
12771 hardcode_minus_L_F77=yes
12772 export_dynamic_flag_spec_F77='${wl}-E'
12773 ;;
12774
12775 hpux10* | hpux11*)
12776 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12777 case "$host_cpu" in
12778 hppa*64*|ia64*)
12779 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12780 ;;
12781 *)
12782 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12783 ;;
12784 esac
12785 else
12786 case "$host_cpu" in
12787 hppa*64*|ia64*)
12788 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12789 ;;
12790 *)
12791 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12792 ;;
12793 esac
12794 fi
12795 if test "$with_gnu_ld" = no; then
12796 case "$host_cpu" in
12797 hppa*64*)
12798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12799 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12800 hardcode_libdir_separator_F77=:
12801 hardcode_direct_F77=no
12802 hardcode_shlibpath_var_F77=no
12803 ;;
12804 ia64*)
12805 hardcode_libdir_flag_spec_F77='-L$libdir'
12806 hardcode_direct_F77=no
12807 hardcode_shlibpath_var_F77=no
12808
12809 # hardcode_minus_L: Not really in the search PATH,
12810 # but as the default location of the library.
12811 hardcode_minus_L_F77=yes
12812 ;;
12813 *)
12814 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12815 hardcode_libdir_separator_F77=:
12816 hardcode_direct_F77=yes
12817 export_dynamic_flag_spec_F77='${wl}-E'
12818
12819 # hardcode_minus_L: Not really in the search PATH,
12820 # but as the default location of the library.
12821 hardcode_minus_L_F77=yes
12822 ;;
12823 esac
12824 fi
12825 ;;
12826
12827 irix5* | irix6* | nonstopux*)
12828 if test "$GCC" = yes; then
12829 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'
12830 else
12831 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'
12832 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
12833 fi
12834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12835 hardcode_libdir_separator_F77=:
12836 link_all_deplibs_F77=yes
12837 ;;
12838
12839 netbsd*)
12840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12841 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12842 else
12843 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12844 fi
12845 hardcode_libdir_flag_spec_F77='-R$libdir'
12846 hardcode_direct_F77=yes
12847 hardcode_shlibpath_var_F77=no
12848 ;;
12849
12850 newsos6)
12851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 hardcode_direct_F77=yes
12853 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12854 hardcode_libdir_separator_F77=:
12855 hardcode_shlibpath_var_F77=no
12856 ;;
12857
12858 openbsd*)
12859 hardcode_direct_F77=yes
12860 hardcode_shlibpath_var_F77=no
12861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12862 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12863 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12864 export_dynamic_flag_spec_F77='${wl}-E'
12865 else
12866 case $host_os in
12867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12869 hardcode_libdir_flag_spec_F77='-R$libdir'
12870 ;;
12871 *)
12872 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12873 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12874 ;;
12875 esac
12876 fi
12877 ;;
12878
12879 os2*)
12880 hardcode_libdir_flag_spec_F77='-L$libdir'
12881 hardcode_minus_L_F77=yes
12882 allow_undefined_flag_F77=unsupported
12883 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'
12884 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12885 ;;
12886
12887 osf3*)
12888 if test "$GCC" = yes; then
12889 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12890 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'
12891 else
12892 allow_undefined_flag_F77=' -expect_unresolved \*'
12893 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'
12894 fi
12895 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_F77=:
12897 ;;
12898
12899 osf4* | osf5*) # as osf3* with the addition of -msym flag
12900 if test "$GCC" = yes; then
12901 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12902 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'
12903 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12904 else
12905 allow_undefined_flag_F77=' -expect_unresolved \*'
12906 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'
12907 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~
12908 $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'
12909
12910 # Both c and cxx compiler support -rpath directly
12911 hardcode_libdir_flag_spec_F77='-rpath $libdir'
12912 fi
12913 hardcode_libdir_separator_F77=:
12914 ;;
12915
12916 sco3.2v5*)
12917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918 hardcode_shlibpath_var_F77=no
12919 export_dynamic_flag_spec_F77='${wl}-Bexport'
12920 runpath_var=LD_RUN_PATH
12921 hardcode_runpath_var=yes
12922 ;;
12923
12924 solaris*)
12925 no_undefined_flag_F77=' -z text'
12926 if test "$GCC" = yes; then
12927 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12929 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12930 else
12931 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12934 fi
12935 hardcode_libdir_flag_spec_F77='-R$libdir'
12936 hardcode_shlibpath_var_F77=no
12937 case $host_os in
12938 solaris2.[0-5] | solaris2.[0-5].*) ;;
12939 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12940 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
12941 esac
12942 link_all_deplibs_F77=yes
12943 ;;
12944
12945 sunos4*)
12946 if test "x$host_vendor" = xsequent; then
12947 # Use $CC to link under sequent, because it throws in some extra .o
12948 # files that make .init and .fini sections work.
12949 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12950 else
12951 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12952 fi
12953 hardcode_libdir_flag_spec_F77='-L$libdir'
12954 hardcode_direct_F77=yes
12955 hardcode_minus_L_F77=yes
12956 hardcode_shlibpath_var_F77=no
12957 ;;
12958
12959 sysv4)
12960 case $host_vendor in
12961 sni)
12962 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963 hardcode_direct_F77=yes # is this really true???
12964 ;;
12965 siemens)
12966 ## LD is ld it makes a PLAMLIB
12967 ## CC just makes a GrossModule.
12968 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12969 reload_cmds_F77='$CC -r -o $output$reload_objs'
12970 hardcode_direct_F77=no
12971 ;;
12972 motorola)
12973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12974 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
12975 ;;
12976 esac
12977 runpath_var='LD_RUN_PATH'
12978 hardcode_shlibpath_var_F77=no
12979 ;;
12980
12981 sysv4.3*)
12982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983 hardcode_shlibpath_var_F77=no
12984 export_dynamic_flag_spec_F77='-Bexport'
12985 ;;
12986
12987 sysv4*MP*)
12988 if test -d /usr/nec; then
12989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12990 hardcode_shlibpath_var_F77=no
12991 runpath_var=LD_RUN_PATH
12992 hardcode_runpath_var=yes
12993 ld_shlibs_F77=yes
12994 fi
12995 ;;
12996
12997 sysv4.2uw2*)
12998 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999 hardcode_direct_F77=yes
13000 hardcode_minus_L_F77=no
13001 hardcode_shlibpath_var_F77=no
13002 hardcode_runpath_var=yes
13003 runpath_var=LD_RUN_PATH
13004 ;;
13005
13006 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13007 no_undefined_flag_F77='${wl}-z ${wl}text'
13008 if test "$GCC" = yes; then
13009 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13010 else
13011 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13012 fi
13013 runpath_var='LD_RUN_PATH'
13014 hardcode_shlibpath_var_F77=no
13015 ;;
13016
13017 sysv5*)
13018 no_undefined_flag_F77=' -z text'
13019 # $CC -shared without GNU ld will not create a library from C++
13020 # object files and a static libstdc++, better avoid it by now
13021 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13024 hardcode_libdir_flag_spec_F77=
13025 hardcode_shlibpath_var_F77=no
13026 runpath_var='LD_RUN_PATH'
13027 ;;
13028
13029 uts4*)
13030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_libdir_flag_spec_F77='-L$libdir'
13032 hardcode_shlibpath_var_F77=no
13033 ;;
13034
13035 *)
13036 ld_shlibs_F77=no
13037 ;;
13038 esac
13039 fi
13040
13041echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13042echo "${ECHO_T}$ld_shlibs_F77" >&6
13043test "$ld_shlibs_F77" = no && can_build_shared=no
13044
13045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13046if test "$GCC" = yes; then
13047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13048fi
13049
13050#
13051# Do we need to explicitly link libc?
13052#
13053case "x$archive_cmds_need_lc_F77" in
13054x|xyes)
13055 # Assume -lc should be added
13056 archive_cmds_need_lc_F77=yes
13057
13058 if test "$enable_shared" = yes && test "$GCC" = yes; then
13059 case $archive_cmds_F77 in
13060 *'~'*)
13061 # FIXME: we may have to deal with multi-command sequences.
13062 ;;
13063 '$CC '*)
13064 # Test whether the compiler implicitly links with -lc since on some
13065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13066 # to ld, don't add -lc before -lgcc.
13067 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13068echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13069 $rm conftest*
13070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
13072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } 2>conftest.err; then
13077 soname=conftest
13078 lib=conftest
13079 libobjs=conftest.$ac_objext
13080 deplibs=
13081 wl=$lt_prog_compiler_wl_F77
13082 compiler_flags=-v
13083 linker_flags=-v
13084 verstring=
13085 output_objdir=.
13086 libname=conftest
13087 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13088 allow_undefined_flag_F77=
13089 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13091 ac_status=$?
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); }
13094 then
13095 archive_cmds_need_lc_F77=no
13096 else
13097 archive_cmds_need_lc_F77=yes
13098 fi
13099 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13100 else
13101 cat conftest.err 1>&5
13102 fi
13103 $rm conftest*
13104 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13105echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13106 ;;
13107 esac
13108 fi
13109 ;;
13110esac
13111
13112echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13113echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13114hardcode_action_F77=
13115if test -n "$hardcode_libdir_flag_spec_F77" || \
13116 test -n "$runpath_var F77" || \
13117 test "X$hardcode_automatic_F77"="Xyes" ; then
13118
13119 # We can hardcode non-existant directories.
13120 if test "$hardcode_direct_F77" != no &&
13121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13122 # have to relink, otherwise we might link with an installed library
13123 # when we should be linking with a yet-to-be-installed one
13124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13125 test "$hardcode_minus_L_F77" != no; then
13126 # Linking always hardcodes the temporary library directory.
13127 hardcode_action_F77=relink
13128 else
13129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13130 hardcode_action_F77=immediate
13131 fi
13132else
13133 # We cannot hardcode anything, or else we can only hardcode existing
13134 # directories.
13135 hardcode_action_F77=unsupported
13136fi
13137echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13138echo "${ECHO_T}$hardcode_action_F77" >&6
13139
13140if test "$hardcode_action_F77" = relink; then
13141 # Fast installation is not supported
13142 enable_fast_install=no
13143elif test "$shlibpath_overrides_runpath" = yes ||
13144 test "$enable_shared" = no; then
13145 # Fast installation is not necessary
13146 enable_fast_install=needless
13147fi
13148
13149striplib=
13150old_striplib=
13151echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13152echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13153if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13156 echo "$as_me:$LINENO: result: yes" >&5
13157echo "${ECHO_T}yes" >&6
13158else
13159# FIXME - insert some real tests, host_os isn't really good enough
13160 case $host_os in
13161 darwin*)
13162 if test -n "$STRIP" ; then
13163 striplib="$STRIP -x"
13164 echo "$as_me:$LINENO: result: yes" >&5
13165echo "${ECHO_T}yes" >&6
13166 else
13167 echo "$as_me:$LINENO: result: no" >&5
13168echo "${ECHO_T}no" >&6
13169fi
13170 ;;
13171 *)
13172 echo "$as_me:$LINENO: result: no" >&5
13173echo "${ECHO_T}no" >&6
13174 ;;
13175 esac
13176fi
13177
13178echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13179echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13180library_names_spec=
13181libname_spec='lib$name'
13182soname_spec=
13183shrext=".so"
13184postinstall_cmds=
13185postuninstall_cmds=
13186finish_cmds=
13187finish_eval=
13188shlibpath_var=
13189shlibpath_overrides_runpath=unknown
13190version_type=none
13191dynamic_linker="$host_os ld.so"
13192sys_lib_dlsearch_path_spec="/lib /usr/lib"
13193if test "$GCC" = yes; then
13194 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13195 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13196 # if the path contains ";" then we assume it to be the separator
13197 # otherwise default to the standard path separator (i.e. ":") - it is
13198 # assumed that no part of a normal pathname contains ";" but that should
13199 # okay in the real world where ";" in dirpaths is itself problematic.
13200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13201 else
13202 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13203 fi
13204else
13205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13206fi
13207need_lib_prefix=unknown
13208hardcode_into_libs=no
13209
13210# when you set need_version to no, make sure it does not cause -set_version
13211# flags to be left without arguments
13212need_version=unknown
13213
13214case $host_os in
13215aix3*)
13216 version_type=linux
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13218 shlibpath_var=LIBPATH
13219
13220 # AIX 3 has no versioning support, so we append a major version to the name.
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 ;;
13223
13224aix4* | aix5*)
13225 version_type=linux
13226 need_lib_prefix=no
13227 need_version=no
13228 hardcode_into_libs=yes
13229 if test "$host_cpu" = ia64; then
13230 # AIX 5 supports IA64
13231 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 else
13234 # With GCC up to 2.95.x, collect2 would create an import file
13235 # for dependence libraries. The import file would start with
13236 # the line `#! .'. This would cause the generated library to
13237 # depend on `.', always an invalid library. This was fixed in
13238 # development snapshots of GCC prior to 3.0.
13239 case $host_os in
13240 aix4 | aix4.[01] | aix4.[01].*)
13241 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13242 echo ' yes '
13243 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13244 :
13245 else
13246 can_build_shared=no
13247 fi
13248 ;;
13249 esac
13250 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13251 # soname into executable. Probably we can add versioning support to
13252 # collect2, so additional links can be useful in future.
13253 if test "$aix_use_runtimelinking" = yes; then
13254 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13255 # instead of lib<name>.a to let people know that these are not
13256 # typical AIX shared libraries.
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258 else
13259 # We preserve .a as extension for shared libraries through AIX4.2
13260 # and later when we are not doing run time linking.
13261 library_names_spec='${libname}${release}.a $libname.a'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 fi
13264 shlibpath_var=LIBPATH
13265 fi
13266 ;;
13267
13268amigaos*)
13269 library_names_spec='$libname.ixlibrary $libname.a'
13270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13271 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'
13272 ;;
13273
13274beos*)
13275 library_names_spec='${libname}${shared_ext}'
13276 dynamic_linker="$host_os ld.so"
13277 shlibpath_var=LIBRARY_PATH
13278 ;;
13279
13280bsdi4*)
13281 version_type=linux
13282 need_version=no
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 soname_spec='${libname}${release}${shared_ext}$major'
13285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13286 shlibpath_var=LD_LIBRARY_PATH
13287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13289 # the default ld.so.conf also contains /usr/contrib/lib and
13290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13291 # libtool to hard-code these into programs
13292 ;;
13293
13294cygwin* | mingw* | pw32*)
13295 version_type=windows
13296 shrext=".dll"
13297 need_version=no
13298 need_lib_prefix=no
13299
13300 case $GCC,$host_os in
13301 yes,cygwin* | yes,mingw* | yes,pw32*)
13302 library_names_spec='$libname.dll.a'
13303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13304 postinstall_cmds='base_file=`basename \${file}`~
13305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13306 dldir=$destdir/`dirname \$dlpath`~
13307 test -d \$dldir || mkdir -p \$dldir~
13308 $install_prog $dir/$dlname \$dldir/$dlname'
13309 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13310 dlpath=$dir/\$dldll~
13311 $rm \$dlpath'
13312 shlibpath_overrides_runpath=yes
13313
13314 case $host_os in
13315 cygwin*)
13316 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13317 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13318 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13319 ;;
13320 mingw*)
13321 # MinGW DLLs use traditional 'lib' prefix
13322 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13324 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13325 # It is most probably a Windows format PATH printed by
13326 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13327 # path with ; separators, and with drive letters. We can handle the
13328 # drive letters (cygwin fileutils understands them), so leave them,
13329 # especially as we might pass files found there to a mingw objdump,
13330 # which wouldn't understand a cygwinified path. Ahh.
13331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13332 else
13333 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13334 fi
13335 ;;
13336 pw32*)
13337 # pw32 DLLs use 'pw' prefix rather than 'lib'
13338 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13339 ;;
13340 esac
13341 ;;
13342
13343 *)
13344 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13345 ;;
13346 esac
13347 dynamic_linker='Win32 ld.exe'
13348 # FIXME: first we should search . and the directory the executable is in
13349 shlibpath_var=PATH
13350 ;;
13351
13352darwin* | rhapsody*)
13353 dynamic_linker="$host_os dyld"
13354 version_type=darwin
13355 need_lib_prefix=no
13356 need_version=no
13357 # FIXME: Relying on posixy $() will cause problems for
13358 # cross-compilation, but unfortunately the echo tests do not
13359 # yet detect zsh echo's removal of \ escapes.
13360 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13361 soname_spec='${libname}${release}${major}$shared_ext'
13362 shlibpath_overrides_runpath=yes
13363 shlibpath_var=DYLD_LIBRARY_PATH
13364 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13365 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13366 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13367 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"`
13368 fi
13369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13370 ;;
13371
13372dgux*)
13373 version_type=linux
13374 need_lib_prefix=no
13375 need_version=no
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13377 soname_spec='${libname}${release}${shared_ext}$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 ;;
13380
13381freebsd1*)
13382 dynamic_linker=no
13383 ;;
13384
13385freebsd*)
13386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13387 version_type=freebsd-$objformat
13388 case $version_type in
13389 freebsd-elf*)
13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13391 need_version=no
13392 need_lib_prefix=no
13393 ;;
13394 freebsd-*)
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13396 need_version=yes
13397 ;;
13398 esac
13399 shlibpath_var=LD_LIBRARY_PATH
13400 case $host_os in
13401 freebsd2*)
13402 shlibpath_overrides_runpath=yes
13403 ;;
13404 freebsd3.01* | freebsdelf3.01*)
13405 shlibpath_overrides_runpath=yes
13406 hardcode_into_libs=yes
13407 ;;
13408 *) # from 3.2 on
13409 shlibpath_overrides_runpath=no
13410 hardcode_into_libs=yes
13411 ;;
13412 esac
13413 ;;
13414
13415gnu*)
13416 version_type=linux
13417 need_lib_prefix=no
13418 need_version=no
13419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13420 soname_spec='${libname}${release}${shared_ext}$major'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 hardcode_into_libs=yes
13423 ;;
13424
13425hpux9* | hpux10* | hpux11*)
13426 # Give a soname corresponding to the major version so that dld.sl refuses to
13427 # link against other versions.
13428 version_type=sunos
13429 need_lib_prefix=no
13430 need_version=no
13431 case "$host_cpu" in
13432 ia64*)
13433 shrext='.so'
13434 hardcode_into_libs=yes
13435 dynamic_linker="$host_os dld.so"
13436 shlibpath_var=LD_LIBRARY_PATH
13437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 if test "X$HPUX_IA64_MODE" = X32; then
13441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13442 else
13443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13444 fi
13445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13446 ;;
13447 hppa*64*)
13448 shrext='.sl'
13449 hardcode_into_libs=yes
13450 dynamic_linker="$host_os dld.sl"
13451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454 soname_spec='${libname}${release}${shared_ext}$major'
13455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13457 ;;
13458 *)
13459 shrext='.sl'
13460 dynamic_linker="$host_os dld.sl"
13461 shlibpath_var=SHLIB_PATH
13462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 ;;
13466 esac
13467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13468 postinstall_cmds='chmod 555 $lib'
13469 ;;
13470
13471irix5* | irix6* | nonstopux*)
13472 case $host_os in
13473 nonstopux*) version_type=nonstopux ;;
13474 *)
13475 if test "$lt_cv_prog_gnu_ld" = yes; then
13476 version_type=linux
13477 else
13478 version_type=irix
13479 fi ;;
13480 esac
13481 need_lib_prefix=no
13482 need_version=no
13483 soname_spec='${libname}${release}${shared_ext}$major'
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13485 case $host_os in
13486 irix5* | nonstopux*)
13487 libsuff= shlibsuff=
13488 ;;
13489 *)
13490 case $LD in # libtool.m4 will add one of these switches to LD
13491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13492 libsuff= shlibsuff= libmagic=32-bit;;
13493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13494 libsuff=32 shlibsuff=N32 libmagic=N32;;
13495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13497 *) libsuff= shlibsuff= libmagic=never-match;;
13498 esac
13499 ;;
13500 esac
13501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13502 shlibpath_overrides_runpath=no
13503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13505 hardcode_into_libs=yes
13506 ;;
13507
13508# No shared lib support for Linux oldld, aout, or coff.
13509linux*oldld* | linux*aout* | linux*coff*)
13510 dynamic_linker=no
13511 ;;
13512
13513# This must be Linux ELF.
13514linux*)
13515 version_type=linux
13516 need_lib_prefix=no
13517 need_version=no
13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519 soname_spec='${libname}${release}${shared_ext}$major'
13520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13521 shlibpath_var=LD_LIBRARY_PATH
13522 shlibpath_overrides_runpath=no
13523 # This implies no fast_install, which is unacceptable.
13524 # Some rework will be needed to allow for fast_install
13525 # before this can be enabled.
13526 hardcode_into_libs=yes
13527
13528 # We used to test for /lib/ld.so.1 and disable shared libraries on
13529 # powerpc, because MkLinux only supported shared libraries with the
13530 # GNU dynamic linker. Since this was broken with cross compilers,
13531 # most powerpc-linux boxes support dynamic linking these days and
13532 # people can always --disable-shared, the test was removed, and we
13533 # assume the GNU/Linux dynamic linker is in use.
13534 dynamic_linker='GNU/Linux ld.so'
13535 ;;
13536
13537netbsd*)
13538 version_type=sunos
13539 need_lib_prefix=no
13540 need_version=no
13541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13544 dynamic_linker='NetBSD (a.out) ld.so'
13545 else
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 dynamic_linker='NetBSD ld.elf_so'
13549 fi
13550 shlibpath_var=LD_LIBRARY_PATH
13551 shlibpath_overrides_runpath=yes
13552 hardcode_into_libs=yes
13553 ;;
13554
13555newsos6)
13556 version_type=linux
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 shlibpath_overrides_runpath=yes
13560 ;;
13561
13562nto-qnx)
13563 version_type=linux
13564 need_lib_prefix=no
13565 need_version=no
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 ;;
13571
13572openbsd*)
13573 version_type=sunos
13574 need_lib_prefix=no
13575 need_version=no
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578 shlibpath_var=LD_LIBRARY_PATH
13579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13580 case $host_os in
13581 openbsd2.[89] | openbsd2.[89].*)
13582 shlibpath_overrides_runpath=no
13583 ;;
13584 *)
13585 shlibpath_overrides_runpath=yes
13586 ;;
13587 esac
13588 else
13589 shlibpath_overrides_runpath=yes
13590 fi
13591 ;;
13592
13593os2*)
13594 libname_spec='$name'
13595 shrext=".dll"
13596 need_lib_prefix=no
13597 library_names_spec='$libname${shared_ext} $libname.a'
13598 dynamic_linker='OS/2 ld.exe'
13599 shlibpath_var=LIBPATH
13600 ;;
13601
13602osf3* | osf4* | osf5*)
13603 version_type=osf
13604 need_lib_prefix=no
13605 need_version=no
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608 shlibpath_var=LD_LIBRARY_PATH
13609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13611 ;;
13612
13613sco3.2v5*)
13614 version_type=osf
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 ;;
13619
13620solaris*)
13621 version_type=linux
13622 need_lib_prefix=no
13623 need_version=no
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625 soname_spec='${libname}${release}${shared_ext}$major'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 shlibpath_overrides_runpath=yes
13628 hardcode_into_libs=yes
13629 # ldd complains unless libraries are executable
13630 postinstall_cmds='chmod +x $lib'
13631 ;;
13632
13633sunos4*)
13634 version_type=sunos
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes
13639 if test "$with_gnu_ld" = yes; then
13640 need_lib_prefix=no
13641 fi
13642 need_version=yes
13643 ;;
13644
13645sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13646 version_type=linux
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648 soname_spec='${libname}${release}${shared_ext}$major'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 case $host_vendor in
13651 sni)
13652 shlibpath_overrides_runpath=no
13653 need_lib_prefix=no
13654 export_dynamic_flag_spec='${wl}-Blargedynsym'
13655 runpath_var=LD_RUN_PATH
13656 ;;
13657 siemens)
13658 need_lib_prefix=no
13659 ;;
13660 motorola)
13661 need_lib_prefix=no
13662 need_version=no
13663 shlibpath_overrides_runpath=no
13664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13665 ;;
13666 esac
13667 ;;
13668
13669sysv4*MP*)
13670 if test -d /usr/nec ;then
13671 version_type=linux
13672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13673 soname_spec='$libname${shared_ext}.$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 fi
13676 ;;
13677
13678uts4*)
13679 version_type=linux
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681 soname_spec='${libname}${release}${shared_ext}$major'
13682 shlibpath_var=LD_LIBRARY_PATH
13683 ;;
13684
13685*)
13686 dynamic_linker=no
13687 ;;
13688esac
13689echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13690echo "${ECHO_T}$dynamic_linker" >&6
13691test "$dynamic_linker" = no && can_build_shared=no
13692
13693
13694# The else clause should only fire when bootstrapping the
13695# libtool distribution, otherwise you forgot to ship ltmain.sh
13696# with your package, and you will get complaints that there are
13697# no rules to generate ltmain.sh.
13698if test -f "$ltmain"; then
13699 # See if we are running on zsh, and set the options which allow our commands through
13700 # without removal of \ escapes.
13701 if test -n "${ZSH_VERSION+set}" ; then
13702 setopt NO_GLOB_SUBST
13703 fi
13704 # Now quote all the things that may contain metacharacters while being
13705 # careful not to overquote the AC_SUBSTed values. We take copies of the
13706 # variables and quote the copies for generation of the libtool script.
13707 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710 deplibs_check_method reload_flag reload_cmds need_locks \
13711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712 lt_cv_sys_global_symbol_to_c_name_address \
13713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714 old_postinstall_cmds old_postuninstall_cmds \
13715 compiler_F77 \
13716 CC_F77 \
13717 LD_F77 \
13718 lt_prog_compiler_wl_F77 \
13719 lt_prog_compiler_pic_F77 \
13720 lt_prog_compiler_static_F77 \
13721 lt_prog_compiler_no_builtin_flag_F77 \
13722 export_dynamic_flag_spec_F77 \
13723 thread_safe_flag_spec_F77 \
13724 whole_archive_flag_spec_F77 \
13725 enable_shared_with_static_runtimes_F77 \
13726 old_archive_cmds_F77 \
13727 old_archive_from_new_cmds_F77 \
13728 predep_objects_F77 \
13729 postdep_objects_F77 \
13730 predeps_F77 \
13731 postdeps_F77 \
13732 compiler_lib_search_path_F77 \
13733 archive_cmds_F77 \
13734 archive_expsym_cmds_F77 \
13735 postinstall_cmds_F77 \
13736 postuninstall_cmds_F77 \
13737 old_archive_from_expsyms_cmds_F77 \
13738 allow_undefined_flag_F77 \
13739 no_undefined_flag_F77 \
13740 export_symbols_cmds_F77 \
13741 hardcode_libdir_flag_spec_F77 \
13742 hardcode_libdir_flag_spec_ld_F77 \
13743 hardcode_libdir_separator_F77 \
13744 hardcode_automatic_F77 \
13745 module_cmds_F77 \
13746 module_expsym_cmds_F77 \
13747 lt_cv_prog_compiler_c_o_F77 \
13748 exclude_expsyms_F77 \
13749 include_expsyms_F77; do
13750
13751 case $var in
13752 old_archive_cmds_F77 | \
13753 old_archive_from_new_cmds_F77 | \
13754 archive_cmds_F77 | \
13755 archive_expsym_cmds_F77 | \
13756 module_cmds_F77 | \
13757 module_expsym_cmds_F77 | \
13758 old_archive_from_expsyms_cmds_F77 | \
13759 export_symbols_cmds_F77 | \
13760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13761 postinstall_cmds | postuninstall_cmds | \
13762 old_postinstall_cmds | old_postuninstall_cmds | \
13763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13764 # Double-quote double-evaled strings.
13765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13766 ;;
13767 *)
13768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13769 ;;
13770 esac
13771 done
13772
13773 case $lt_echo in
13774 *'\$0 --fallback-echo"')
13775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13776 ;;
13777 esac
13778
13779cfgfile="$ofile"
13780
13781 cat <<__EOF__ >> "$cfgfile"
13782# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13783
13784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13785
13786# Shell to use when invoking shell scripts.
13787SHELL=$lt_SHELL
13788
13789# Whether or not to build shared libraries.
13790build_libtool_libs=$enable_shared
13791
13792# Whether or not to build static libraries.
13793build_old_libs=$enable_static
13794
13795# Whether or not to add -lc for building shared libraries.
13796build_libtool_need_lc=$archive_cmds_need_lc_F77
13797
13798# Whether or not to disallow shared libs when runtime libs are static
13799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
13800
13801# Whether or not to optimize for fast installation.
13802fast_install=$enable_fast_install
13803
13804# The host system.
13805host_alias=$host_alias
13806host=$host
13807
13808# An echo program that does not interpret backslashes.
13809echo=$lt_echo
13810
13811# The archiver.
13812AR=$lt_AR
13813AR_FLAGS=$lt_AR_FLAGS
13814
13815# A C compiler.
13816LTCC=$lt_LTCC
13817
13818# A language-specific compiler.
13819CC=$lt_compiler_F77
13820
13821# Is the compiler the GNU C compiler?
13822with_gcc=$GCC_F77
13823
13824# An ERE matcher.
13825EGREP=$lt_EGREP
13826
13827# The linker used to build libraries.
13828LD=$lt_LD_F77
13829
13830# Whether we need hard or soft links.
13831LN_S=$lt_LN_S
13832
13833# A BSD-compatible nm program.
13834NM=$lt_NM
13835
13836# A symbol stripping program
13837STRIP=$STRIP
13838
13839# Used to examine libraries when file_magic_cmd begins "file"
13840MAGIC_CMD=$MAGIC_CMD
13841
13842# Used on cygwin: DLL creation program.
13843DLLTOOL="$DLLTOOL"
13844
13845# Used on cygwin: object dumper.
13846OBJDUMP="$OBJDUMP"
13847
13848# Used on cygwin: assembler.
13849AS="$AS"
13850
13851# The name of the directory that contains temporary libtool files.
13852objdir=$objdir
13853
13854# How to create reloadable object files.
13855reload_flag=$lt_reload_flag
13856reload_cmds=$lt_reload_cmds
13857
13858# How to pass a linker flag through the compiler.
13859wl=$lt_lt_prog_compiler_wl_F77
13860
13861# Object file suffix (normally "o").
13862objext="$ac_objext"
13863
13864# Old archive suffix (normally "a").
13865libext="$libext"
13866
13867# Shared library suffix (normally ".so").
13868shrext='$shrext'
13869
13870# Executable file suffix (normally "").
13871exeext="$exeext"
13872
13873# Additional compiler flags for building library objects.
13874pic_flag=$lt_lt_prog_compiler_pic_F77
13875pic_mode=$pic_mode
13876
13877# What is the maximum length of a command?
13878max_cmd_len=$lt_cv_sys_max_cmd_len
13879
13880# Does compiler simultaneously support -c and -o options?
13881compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13882
13883# Must we lock files when doing compilation ?
13884need_locks=$lt_need_locks
13885
13886# Do we need the lib prefix for modules?
13887need_lib_prefix=$need_lib_prefix
13888
13889# Do we need a version for libraries?
13890need_version=$need_version
13891
13892# Whether dlopen is supported.
13893dlopen_support=$enable_dlopen
13894
13895# Whether dlopen of programs is supported.
13896dlopen_self=$enable_dlopen_self
13897
13898# Whether dlopen of statically linked programs is supported.
13899dlopen_self_static=$enable_dlopen_self_static
13900
13901# Compiler flag to prevent dynamic linking.
13902link_static_flag=$lt_lt_prog_compiler_static_F77
13903
13904# Compiler flag to turn off builtin functions.
13905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
13906
13907# Compiler flag to allow reflexive dlopens.
13908export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
13909
13910# Compiler flag to generate shared objects directly from archives.
13911whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
13912
13913# Compiler flag to generate thread-safe objects.
13914thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
13915
13916# Library versioning type.
13917version_type=$version_type
13918
13919# Format of library name prefix.
13920libname_spec=$lt_libname_spec
13921
13922# List of archive names. First name is the real one, the rest are links.
13923# The last name is the one that the linker finds with -lNAME.
13924library_names_spec=$lt_library_names_spec
13925
13926# The coded name of the library, if different from the real name.
13927soname_spec=$lt_soname_spec
13928
13929# Commands used to build and install an old-style archive.
13930RANLIB=$lt_RANLIB
13931old_archive_cmds=$lt_old_archive_cmds_F77
13932old_postinstall_cmds=$lt_old_postinstall_cmds
13933old_postuninstall_cmds=$lt_old_postuninstall_cmds
13934
13935# Create an old-style archive from a shared archive.
13936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
13937
13938# Create a temporary old-style archive to link instead of a shared archive.
13939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
13940
13941# Commands used to build and install a shared archive.
13942archive_cmds=$lt_archive_cmds_F77
13943archive_expsym_cmds=$lt_archive_expsym_cmds_F77
13944postinstall_cmds=$lt_postinstall_cmds
13945postuninstall_cmds=$lt_postuninstall_cmds
13946
13947# Commands used to build a loadable module (assumed same as above if empty)
13948module_cmds=$lt_module_cmds_F77
13949module_expsym_cmds=$lt_module_expsym_cmds_F77
13950
13951# Commands to strip libraries.
13952old_striplib=$lt_old_striplib
13953striplib=$lt_striplib
13954
13955# Dependencies to place before the objects being linked to create a
13956# shared library.
13957predep_objects=$lt_predep_objects_F77
13958
13959# Dependencies to place after the objects being linked to create a
13960# shared library.
13961postdep_objects=$lt_postdep_objects_F77
13962
13963# Dependencies to place before the objects being linked to create a
13964# shared library.
13965predeps=$lt_predeps_F77
13966
13967# Dependencies to place after the objects being linked to create a
13968# shared library.
13969postdeps=$lt_postdeps_F77
13970
13971# The library search path used internally by the compiler when linking
13972# a shared library.
13973compiler_lib_search_path=$lt_compiler_lib_search_path_F77
13974
13975# Method to check whether dependent libraries are shared objects.
13976deplibs_check_method=$lt_deplibs_check_method
13977
13978# Command to use when deplibs_check_method == file_magic.
13979file_magic_cmd=$lt_file_magic_cmd
13980
13981# Flag that allows shared libraries with undefined symbols to be built.
13982allow_undefined_flag=$lt_allow_undefined_flag_F77
13983
13984# Flag that forces no undefined symbols.
13985no_undefined_flag=$lt_no_undefined_flag_F77
13986
13987# Commands used to finish a libtool library installation in a directory.
13988finish_cmds=$lt_finish_cmds
13989
13990# Same as above, but a single script fragment to be evaled but not shown.
13991finish_eval=$lt_finish_eval
13992
13993# Take the output of nm and produce a listing of raw symbols and C names.
13994global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13995
13996# Transform the output of nm in a proper C declaration
13997global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13998
13999# Transform the output of nm in a C name address pair
14000global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14001
14002# This is the shared library runtime path variable.
14003runpath_var=$runpath_var
14004
14005# This is the shared library path variable.
14006shlibpath_var=$shlibpath_var
14007
14008# Is shlibpath searched before the hard-coded library search path?
14009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14010
14011# How to hardcode a shared library path into an executable.
14012hardcode_action=$hardcode_action_F77
14013
14014# Whether we should hardcode library paths into libraries.
14015hardcode_into_libs=$hardcode_into_libs
14016
14017# Flag to hardcode \$libdir into a binary during linking.
14018# This must work even if \$libdir does not exist.
14019hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14020
14021# If ld is used when linking, flag to hardcode \$libdir into
14022# a binary during linking. This must work even if \$libdir does
14023# not exist.
14024hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14025
14026# Whether we need a single -rpath flag with a separated argument.
14027hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14028
14029# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14030# resulting binary.
14031hardcode_direct=$hardcode_direct_F77
14032
14033# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14034# resulting binary.
14035hardcode_minus_L=$hardcode_minus_L_F77
14036
14037# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14038# the resulting binary.
14039hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14040
14041# Set to yes if building a shared library automatically hardcodes DIR into the library
14042# and all subsequent libraries and executables linked against it.
14043hardcode_automatic=$hardcode_automatic_F77
14044
14045# Variables whose values should be saved in libtool wrapper scripts and
14046# restored at relink time.
14047variables_saved_for_relink="$variables_saved_for_relink"
14048
14049# Whether libtool must link a program against all its dependency libraries.
14050link_all_deplibs=$link_all_deplibs_F77
14051
14052# Compile-time system search path for libraries
14053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14054
14055# Run-time system search path for libraries
14056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14057
14058# Fix the shell variable \$srcfile for the compiler.
14059fix_srcfile_path="$fix_srcfile_path_F77"
14060
14061# Set to yes if exported symbols are required.
14062always_export_symbols=$always_export_symbols_F77
14063
14064# The commands to list exported symbols.
14065export_symbols_cmds=$lt_export_symbols_cmds_F77
14066
14067# The commands to extract the exported symbol list from a shared archive.
14068extract_expsyms_cmds=$lt_extract_expsyms_cmds
14069
14070# Symbols that should not be listed in the preloaded symbols.
14071exclude_expsyms=$lt_exclude_expsyms_F77
14072
14073# Symbols that must always be exported.
14074include_expsyms=$lt_include_expsyms_F77
14075
14076# ### END LIBTOOL TAG CONFIG: $tagname
14077
14078__EOF__
14079
14080
14081else
14082 # If there is no Makefile yet, we rely on a make rule to execute
14083 # `config.status --recheck' to rerun these tests and create the
14084 # libtool script then.
14085 test -f Makefile && make "$ltmain"
14086fi
14087
14088
14089ac_ext=c
14090ac_cpp='$CPP $CPPFLAGS'
14091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094
14095CC="$lt_save_CC"
14096
14097 else
14098 tagname=""
14099 fi
14100 ;;
14101
14102 GCJ)
14103 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14104
14105
14106
14107# Source file extension for Java test sources.
14108ac_ext=java
14109
14110# Object file extension for compiled Java test sources.
14111objext=o
14112objext_GCJ=$objext
14113
14114# Code to be used in simple compile tests
14115lt_simple_compile_test_code="class foo {}\n"
14116
14117# Code to be used in simple link tests
14118lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14119
14120# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14121
14122# If no C compiler was specified, use CC.
14123LTCC=${LTCC-"$CC"}
14124
14125# Allow CC to be a program name with arguments.
14126compiler=$CC
14127
14128
14129# Allow CC to be a program name with arguments.
14130lt_save_CC="$CC"
14131CC=${GCJ-"gcj"}
14132compiler=$CC
14133compiler_GCJ=$CC
14134
14135# GCJ did not exist at the time GCC didn't implicitly link libc in.
14136archive_cmds_need_lc_GCJ=no
14137
14138## CAVEAT EMPTOR:
14139## There is no encapsulation within the following macros, do not change
14140## the running order or otherwise move them around unless you know exactly
14141## what you are doing...
14142
14143lt_prog_compiler_no_builtin_flag_GCJ=
14144
14145if test "$GCC" = yes; then
14146 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14147
14148 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14149echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14150if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153 lt_cv_prog_compiler_rtti_exceptions=no
14154 ac_outfile=conftest.$ac_objext
14155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14156 lt_compiler_flag="-fno-rtti -fno-exceptions"
14157 # Insert the option either (1) after the last *FLAGS variable, or
14158 # (2) before a word containing "conftest.", or (3) at the end.
14159 # Note that $ac_compile itself does not contain backslashes and begins
14160 # with a dollar sign (not a hyphen), so the echo should work correctly.
14161 # The option is referenced via a variable to avoid confusing sed.
14162 lt_compile=`echo "$ac_compile" | $SED \
14163 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14165 -e 's:$: $lt_compiler_flag:'`
14166 (eval echo "\"\$as_me:14166: $lt_compile\"" >&5)
14167 (eval "$lt_compile" 2>conftest.err)
14168 ac_status=$?
14169 cat conftest.err >&5
14170 echo "$as_me:14170: \$? = $ac_status" >&5
14171 if (exit $ac_status) && test -s "$ac_outfile"; then
14172 # The compiler can only warn and ignore the option if not recognized
14173 # So say no if there are warnings
14174 if test ! -s conftest.err; then
14175 lt_cv_prog_compiler_rtti_exceptions=yes
14176 fi
14177 fi
14178 $rm conftest*
14179
14180fi
14181echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14183
14184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14186else
14187 :
14188fi
14189
14190fi
14191
14192lt_prog_compiler_wl_GCJ=
14193lt_prog_compiler_pic_GCJ=
14194lt_prog_compiler_static_GCJ=
14195
14196echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14198
14199 if test "$GCC" = yes; then
14200 lt_prog_compiler_wl_GCJ='-Wl,'
14201 lt_prog_compiler_static_GCJ='-static'
14202
14203 case $host_os in
14204 aix*)
14205 # All AIX code is PIC.
14206 if test "$host_cpu" = ia64; then
14207 # AIX 5 now supports IA64 processor
14208 lt_prog_compiler_static_GCJ='-Bstatic'
14209 fi
14210 ;;
14211
14212 amigaos*)
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14215 # like `-m68040'.
14216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14217 ;;
14218
14219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220 # PIC is the default for these OSes.
14221 ;;
14222
14223 mingw* | pw32* | os2*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14227 ;;
14228
14229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
14232 lt_prog_compiler_pic_GCJ='-fno-common'
14233 ;;
14234
14235 msdosdjgpp*)
14236 # Just because we use GCC doesn't mean we suddenly get shared libraries
14237 # on systems that don't support them.
14238 lt_prog_compiler_can_build_shared_GCJ=no
14239 enable_shared=no
14240 ;;
14241
14242 sysv4*MP*)
14243 if test -d /usr/nec; then
14244 lt_prog_compiler_pic_GCJ=-Kconform_pic
14245 fi
14246 ;;
14247
14248 hpux*)
14249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14250 # not for PA HP-UX.
14251 case "$host_cpu" in
14252 hppa*64*|ia64*)
14253 # +Z the default
14254 ;;
14255 *)
14256 lt_prog_compiler_pic_GCJ='-fPIC'
14257 ;;
14258 esac
14259 ;;
14260
14261 *)
14262 lt_prog_compiler_pic_GCJ='-fPIC'
14263 ;;
14264 esac
14265 else
14266 # PORTME Check for flag to pass linker flags through the system compiler.
14267 case $host_os in
14268 aix*)
14269 lt_prog_compiler_wl_GCJ='-Wl,'
14270 if test "$host_cpu" = ia64; then
14271 # AIX 5 now supports IA64 processor
14272 lt_prog_compiler_static_GCJ='-Bstatic'
14273 else
14274 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14275 fi
14276 ;;
14277
14278 mingw* | pw32* | os2*)
14279 # This hack is so that the source file can tell whether it is being
14280 # built for inclusion in a dll (and should export symbols for example).
14281 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14282 ;;
14283
14284 hpux9* | hpux10* | hpux11*)
14285 lt_prog_compiler_wl_GCJ='-Wl,'
14286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14287 # not for PA HP-UX.
14288 case "$host_cpu" in
14289 hppa*64*|ia64*)
14290 # +Z the default
14291 ;;
14292 *)
14293 lt_prog_compiler_pic_GCJ='+Z'
14294 ;;
14295 esac
14296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14297 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14298 ;;
14299
14300 irix5* | irix6* | nonstopux*)
14301 lt_prog_compiler_wl_GCJ='-Wl,'
14302 # PIC (with -KPIC) is the default.
14303 lt_prog_compiler_static_GCJ='-non_shared'
14304 ;;
14305
14306 newsos6)
14307 lt_prog_compiler_pic_GCJ='-KPIC'
14308 lt_prog_compiler_static_GCJ='-Bstatic'
14309 ;;
14310
14311 linux*)
14312 case $CC in
14313 icc|ecc)
14314 lt_prog_compiler_wl_GCJ='-Wl,'
14315 lt_prog_compiler_pic_GCJ='-KPIC'
14316 lt_prog_compiler_static_GCJ='-static'
14317 ;;
14318 ccc)
14319 lt_prog_compiler_wl_GCJ='-Wl,'
14320 # All Alpha code is PIC.
14321 lt_prog_compiler_static_GCJ='-non_shared'
14322 ;;
14323 esac
14324 ;;
14325
14326 osf3* | osf4* | osf5*)
14327 lt_prog_compiler_wl_GCJ='-Wl,'
14328 # All OSF/1 code is PIC.
14329 lt_prog_compiler_static_GCJ='-non_shared'
14330 ;;
14331
14332 sco3.2v5*)
14333 lt_prog_compiler_pic_GCJ='-Kpic'
14334 lt_prog_compiler_static_GCJ='-dn'
14335 ;;
14336
14337 solaris*)
14338 lt_prog_compiler_wl_GCJ='-Wl,'
14339 lt_prog_compiler_pic_GCJ='-KPIC'
14340 lt_prog_compiler_static_GCJ='-Bstatic'
14341 ;;
14342
14343 sunos4*)
14344 lt_prog_compiler_wl_GCJ='-Qoption ld '
14345 lt_prog_compiler_pic_GCJ='-PIC'
14346 lt_prog_compiler_static_GCJ='-Bstatic'
14347 ;;
14348
14349 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14350 lt_prog_compiler_wl_GCJ='-Wl,'
14351 lt_prog_compiler_pic_GCJ='-KPIC'
14352 lt_prog_compiler_static_GCJ='-Bstatic'
14353 ;;
14354
14355 sysv4*MP*)
14356 if test -d /usr/nec ;then
14357 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14358 lt_prog_compiler_static_GCJ='-Bstatic'
14359 fi
14360 ;;
14361
14362 uts4*)
14363 lt_prog_compiler_pic_GCJ='-pic'
14364 lt_prog_compiler_static_GCJ='-Bstatic'
14365 ;;
14366
14367 *)
14368 lt_prog_compiler_can_build_shared_GCJ=no
14369 ;;
14370 esac
14371 fi
14372
14373echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14374echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14375
14376#
14377# Check to make sure the PIC flag actually works.
14378#
14379if test -n "$lt_prog_compiler_pic_GCJ"; then
14380 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14381echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14382if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384else
14385 lt_prog_compiler_pic_works_GCJ=no
14386 ac_outfile=conftest.$ac_objext
14387 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 # The option is referenced via a variable to avoid confusing sed.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
14398 (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399 (eval "$lt_compile" 2>conftest.err)
14400 ac_status=$?
14401 cat conftest.err >&5
14402 echo "$as_me:14402: \$? = $ac_status" >&5
14403 if (exit $ac_status) && test -s "$ac_outfile"; then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings
14406 if test ! -s conftest.err; then
14407 lt_prog_compiler_pic_works_GCJ=yes
14408 fi
14409 fi
14410 $rm conftest*
14411
14412fi
14413echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14414echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14415
14416if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14417 case $lt_prog_compiler_pic_GCJ in
14418 "" | " "*) ;;
14419 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14420 esac
14421else
14422 lt_prog_compiler_pic_GCJ=
14423 lt_prog_compiler_can_build_shared_GCJ=no
14424fi
14425
14426fi
14427case "$host_os" in
14428 # For platforms which do not support PIC, -DPIC is meaningless:
14429 *djgpp*)
14430 lt_prog_compiler_pic_GCJ=
14431 ;;
14432 *)
14433 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14434 ;;
14435esac
14436
14437echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14438echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14439if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441else
14442 lt_cv_prog_compiler_c_o_GCJ=no
14443 $rm -r conftest 2>/dev/null
14444 mkdir conftest
14445 cd conftest
14446 mkdir out
14447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14448
14449 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14450 # that will create temporary files in the current directory regardless of
14451 # the output directory. Thus, making CWD read-only will cause this test
14452 # to fail, enabling locking or at least warning the user not to do parallel
14453 # builds.
14454 chmod -w .
14455
14456 lt_compiler_flag="-o out/conftest2.$ac_objext"
14457 # Insert the option either (1) after the last *FLAGS variable, or
14458 # (2) before a word containing "conftest.", or (3) at the end.
14459 # Note that $ac_compile itself does not contain backslashes and begins
14460 # with a dollar sign (not a hyphen), so the echo should work correctly.
14461 lt_compile=`echo "$ac_compile" | $SED \
14462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464 -e 's:$: $lt_compiler_flag:'`
14465 (eval echo "\"\$as_me:14465: $lt_compile\"" >&5)
14466 (eval "$lt_compile" 2>out/conftest.err)
14467 ac_status=$?
14468 cat out/conftest.err >&5
14469 echo "$as_me:14469: \$? = $ac_status" >&5
14470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14471 then
14472 # The compiler can only warn and ignore the option if not recognized
14473 # So say no if there are warnings
14474 if test ! -s out/conftest.err; then
14475 lt_cv_prog_compiler_c_o_GCJ=yes
14476 fi
14477 fi
14478 chmod u+w .
14479 $rm conftest* out/*
14480 rmdir out
14481 cd ..
14482 rmdir conftest
14483 $rm conftest*
14484
14485fi
14486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14487echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14488
14489
14490hard_links="nottested"
14491if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14492 # do not overwrite the value of need_locks provided by the user
14493 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14494echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14495 hard_links=yes
14496 $rm conftest*
14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498 touch conftest.a
14499 ln conftest.a conftest.b 2>&5 || hard_links=no
14500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501 echo "$as_me:$LINENO: result: $hard_links" >&5
14502echo "${ECHO_T}$hard_links" >&6
14503 if test "$hard_links" = no; then
14504 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14505echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14506 need_locks=warn
14507 fi
14508else
14509 need_locks=no
14510fi
14511
14512echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14514
14515 runpath_var=
14516 allow_undefined_flag_GCJ=
14517 enable_shared_with_static_runtimes_GCJ=no
14518 archive_cmds_GCJ=
14519 archive_expsym_cmds_GCJ=
14520 old_archive_From_new_cmds_GCJ=
14521 old_archive_from_expsyms_cmds_GCJ=
14522 export_dynamic_flag_spec_GCJ=
14523 whole_archive_flag_spec_GCJ=
14524 thread_safe_flag_spec_GCJ=
14525 hardcode_libdir_flag_spec_GCJ=
14526 hardcode_libdir_flag_spec_ld_GCJ=
14527 hardcode_libdir_separator_GCJ=
14528 hardcode_direct_GCJ=no
14529 hardcode_minus_L_GCJ=no
14530 hardcode_shlibpath_var_GCJ=unsupported
14531 link_all_deplibs_GCJ=unknown
14532 hardcode_automatic_GCJ=no
14533 module_cmds_GCJ=
14534 module_expsym_cmds_GCJ=
14535 always_export_symbols_GCJ=no
14536 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14537 # include_expsyms should be a list of space-separated symbols to be *always*
14538 # included in the symbol list
14539 include_expsyms_GCJ=
14540 # exclude_expsyms can be an extended regexp of symbols to exclude
14541 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14542 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14543 # as well as any symbol that contains `d'.
14544 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14545 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14546 # platforms (ab)use it in PIC code, but their linkers get confused if
14547 # the symbol is explicitly referenced. Since portable code cannot
14548 # rely on this symbol name, it's probably fine to never include it in
14549 # preloaded symbol tables.
14550 extract_expsyms_cmds=
14551
14552 case $host_os in
14553 cygwin* | mingw* | pw32*)
14554 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14555 # When not using gcc, we currently assume that we are using
14556 # Microsoft Visual C++.
14557 if test "$GCC" != yes; then
14558 with_gnu_ld=no
14559 fi
14560 ;;
14561 openbsd*)
14562 with_gnu_ld=no
14563 ;;
14564 esac
14565
14566 ld_shlibs_GCJ=yes
14567 if test "$with_gnu_ld" = yes; then
14568 # If archive_cmds runs LD, not CC, wlarc should be empty
14569 wlarc='${wl}'
14570
14571 # See if GNU ld supports shared libraries.
14572 case $host_os in
14573 aix3* | aix4* | aix5*)
14574 # On AIX/PPC, the GNU linker is very broken
14575 if test "$host_cpu" != ia64; then
14576 ld_shlibs_GCJ=no
14577 cat <<EOF 1>&2
14578
14579*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14580*** to be unable to reliably create shared libraries on AIX.
14581*** Therefore, libtool is disabling shared libraries support. If you
14582*** really care for shared libraries, you may want to modify your PATH
14583*** so that a non-GNU linker is found, and then restart.
14584
14585EOF
14586 fi
14587 ;;
14588
14589 amigaos*)
14590 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)'
14591 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14592 hardcode_minus_L_GCJ=yes
14593
14594 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14595 # that the semantics of dynamic libraries on AmigaOS, at least up
14596 # to version 4, is to share data among multiple programs linked
14597 # with the same dynamic library. Since this doesn't match the
14598 # behavior of shared libraries on other platforms, we can't use
14599 # them.
14600 ld_shlibs_GCJ=no
14601 ;;
14602
14603 beos*)
14604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14605 allow_undefined_flag_GCJ=unsupported
14606 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14607 # support --undefined. This deserves some investigation. FIXME
14608 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14609 else
14610 ld_shlibs_GCJ=no
14611 fi
14612 ;;
14613
14614 cygwin* | mingw* | pw32*)
14615 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14616 # as there is no search path for DLLs.
14617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14618 allow_undefined_flag_GCJ=unsupported
14619 always_export_symbols_GCJ=no
14620 enable_shared_with_static_runtimes_GCJ=yes
14621 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14622
14623 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14624 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14625 # If the export-symbols file already is a .def file (1st line
14626 # is EXPORTS), use it as is; otherwise, prepend...
14627 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14628 cp $export_symbols $output_objdir/$soname.def;
14629 else
14630 echo EXPORTS > $output_objdir/$soname.def;
14631 cat $export_symbols >> $output_objdir/$soname.def;
14632 fi~
14633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14634 else
14635 ld_shlibs=no
14636 fi
14637 ;;
14638
14639 netbsd*)
14640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14641 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14642 wlarc=
14643 else
14644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14646 fi
14647 ;;
14648
14649 solaris* | sysv5*)
14650 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14651 ld_shlibs_GCJ=no
14652 cat <<EOF 1>&2
14653
14654*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14655*** create shared libraries on Solaris systems. Therefore, libtool
14656*** is disabling shared libraries support. We urge you to upgrade GNU
14657*** binutils to release 2.9.1 or newer. Another option is to modify
14658*** your PATH or compiler configuration so that the native linker is
14659*** used, and then restart.
14660
14661EOF
14662 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14665 else
14666 ld_shlibs_GCJ=no
14667 fi
14668 ;;
14669
14670 sunos4*)
14671 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14672 wlarc=
14673 hardcode_direct_GCJ=yes
14674 hardcode_shlibpath_var_GCJ=no
14675 ;;
14676
14677 *)
14678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14680 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14681 else
14682 ld_shlibs_GCJ=no
14683 fi
14684 ;;
14685 esac
14686
14687 if test "$ld_shlibs_GCJ" = yes; then
14688 runpath_var=LD_RUN_PATH
14689 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14690 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14691 # ancient GNU ld didn't support --whole-archive et. al.
14692 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14693 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14694 else
14695 whole_archive_flag_spec_GCJ=
14696 fi
14697 fi
14698 else
14699 # PORTME fill in a description of your system's linker (not GNU ld)
14700 case $host_os in
14701 aix3*)
14702 allow_undefined_flag_GCJ=unsupported
14703 always_export_symbols_GCJ=yes
14704 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'
14705 # Note: this linker hardcodes the directories in LIBPATH if there
14706 # are no directories specified by -L.
14707 hardcode_minus_L_GCJ=yes
14708 if test "$GCC" = yes && test -z "$link_static_flag"; then
14709 # Neither direct hardcoding nor static linking is supported with a
14710 # broken collect2.
14711 hardcode_direct_GCJ=unsupported
14712 fi
14713 ;;
14714
14715 aix4* | aix5*)
14716 if test "$host_cpu" = ia64; then
14717 # On IA64, the linker does run time linking by default, so we don't
14718 # have to do anything special.
14719 aix_use_runtimelinking=no
14720 exp_sym_flag='-Bexport'
14721 no_entry_flag=""
14722 else
14723 # If we're using GNU nm, then we don't want the "-C" option.
14724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14726 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'
14727 else
14728 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'
14729 fi
14730 aix_use_runtimelinking=no
14731
14732 # Test if we are trying to use run time linking or normal
14733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14734 # need to do runtime linking.
14735 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14736 for ld_flag in $LDFLAGS; do
14737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14738 aix_use_runtimelinking=yes
14739 break
14740 fi
14741 done
14742 esac
14743
14744 exp_sym_flag='-bexport'
14745 no_entry_flag='-bnoentry'
14746 fi
14747
14748 # When large executables or shared objects are built, AIX ld can
14749 # have problems creating the table of contents. If linking a library
14750 # or program results in "error TOC overflow" add -mminimal-toc to
14751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14753
14754 archive_cmds_GCJ=''
14755 hardcode_direct_GCJ=yes
14756 hardcode_libdir_separator_GCJ=':'
14757 link_all_deplibs_GCJ=yes
14758
14759 if test "$GCC" = yes; then
14760 case $host_os in aix4.012|aix4.012.*)
14761 # We only want to do this on AIX 4.2 and lower, the check
14762 # below for broken collect2 doesn't work under 4.3+
14763 collect2name=`${CC} -print-prog-name=collect2`
14764 if test -f "$collect2name" && \
14765 strings "$collect2name" | grep resolve_lib_name >/dev/null
14766 then
14767 # We have reworked collect2
14768 hardcode_direct_GCJ=yes
14769 else
14770 # We have old collect2
14771 hardcode_direct_GCJ=unsupported
14772 # It fails to find uninstalled libraries when the uninstalled
14773 # path is not listed in the libpath. Setting hardcode_minus_L
14774 # to unsupported forces relinking
14775 hardcode_minus_L_GCJ=yes
14776 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14777 hardcode_libdir_separator_GCJ=
14778 fi
14779 esac
14780 shared_flag='-shared'
14781 else
14782 # not using gcc
14783 if test "$host_cpu" = ia64; then
14784 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14785 # chokes on -Wl,-G. The following line is correct:
14786 shared_flag='-G'
14787 else
14788 if test "$aix_use_runtimelinking" = yes; then
14789 shared_flag='${wl}-G'
14790 else
14791 shared_flag='${wl}-bM:SRE'
14792 fi
14793 fi
14794 fi
14795
14796 # It seems that -bexpall does not export symbols beginning with
14797 # underscore (_), so it is better to generate a list of symbols to export.
14798 always_export_symbols_GCJ=yes
14799 if test "$aix_use_runtimelinking" = yes; then
14800 # Warning - without using the other runtime loading flags (-brtl),
14801 # -berok will link without error, but may produce a broken library.
14802 allow_undefined_flag_GCJ='-berok'
14803 # Determine the default libpath from the value encoded in an empty executable.
14804 cat >conftest.$ac_ext <<_ACEOF
14805#line $LINENO "configure"
14806#include "confdefs.h"
14807
14808#ifdef F77_DUMMY_MAIN
14809# ifdef __cplusplus
14810 extern "C"
14811# endif
14812 int F77_DUMMY_MAIN() { return 1; }
14813#endif
14814int
14815main ()
14816{
14817
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822rm -f conftest.$ac_objext conftest$ac_exeext
14823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824 (eval $ac_link) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -s conftest$ac_exeext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834
14835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14836}'`
14837# Check for a 64-bit object if we didn't find anything.
14838if 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; }
14839}'`; fi
14840else
14841 echo "$as_me: failed program was:" >&5
14842cat conftest.$ac_ext >&5
14843fi
14844rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14846
14847 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14848 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"
14849 else
14850 if test "$host_cpu" = ia64; then
14851 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14852 allow_undefined_flag_GCJ="-z nodefs"
14853 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"
14854 else
14855 # Determine the default libpath from the value encoded in an empty executable.
14856 cat >conftest.$ac_ext <<_ACEOF
14857#line $LINENO "configure"
14858#include "confdefs.h"
14859
14860#ifdef F77_DUMMY_MAIN
14861# ifdef __cplusplus
14862 extern "C"
14863# endif
14864 int F77_DUMMY_MAIN() { return 1; }
14865#endif
14866int
14867main ()
14868{
14869
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext conftest$ac_exeext
14875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886
14887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14888}'`
14889# Check for a 64-bit object if we didn't find anything.
14890if 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; }
14891}'`; fi
14892else
14893 echo "$as_me: failed program was:" >&5
14894cat conftest.$ac_ext >&5
14895fi
14896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14898
14899 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14900 # Warning - without using the other run time loading flags,
14901 # -berok will link without error, but may produce a broken library.
14902 no_undefined_flag_GCJ=' ${wl}-bernotok'
14903 allow_undefined_flag_GCJ=' ${wl}-berok'
14904 # -bexpall does not export symbols beginning with underscore (_)
14905 always_export_symbols_GCJ=yes
14906 # Exported symbols can be pulled into shared objects from archives
14907 whole_archive_flag_spec_GCJ=' '
14908 archive_cmds_need_lc_GCJ=yes
14909 # This is similar to how AIX traditionally builds it's shared libraries.
14910 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'
14911 fi
14912 fi
14913 ;;
14914
14915 amigaos*)
14916 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)'
14917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14918 hardcode_minus_L_GCJ=yes
14919 # see comment about different semantics on the GNU ld section
14920 ld_shlibs_GCJ=no
14921 ;;
14922
14923 bsdi4*)
14924 export_dynamic_flag_spec_GCJ=-rdynamic
14925 ;;
14926
14927 cygwin* | mingw* | pw32*)
14928 # When not using gcc, we currently assume that we are using
14929 # Microsoft Visual C++.
14930 # hardcode_libdir_flag_spec is actually meaningless, as there is
14931 # no search path for DLLs.
14932 hardcode_libdir_flag_spec_GCJ=' '
14933 allow_undefined_flag_GCJ=unsupported
14934 # Tell ltmain to make .lib files, not .a files.
14935 libext=lib
14936 # Tell ltmain to make .dll files, not .so files.
14937 shrext=".dll"
14938 # FIXME: Setting linknames here is a bad hack.
14939 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14940 # The linker will automatically build a .lib file if we build a DLL.
14941 old_archive_From_new_cmds_GCJ='true'
14942 # FIXME: Should let the user specify the lib program.
14943 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14944 fix_srcfile_path='`cygpath -w "$srcfile"`'
14945 enable_shared_with_static_runtimes_GCJ=yes
14946 ;;
14947
14948 darwin* | rhapsody*)
14949 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14950 archive_cmds_need_lc_GCJ=no
14951 case "$host_os" in
14952 rhapsody* | darwin1.[012])
14953 allow_undefined_flag_GCJ='-undefined suppress'
14954 ;;
14955 *) # Darwin 1.3 on
14956 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14957 ;;
14958 esac
14959 # FIXME: Relying on posixy $() will cause problems for
14960 # cross-compilation, but unfortunately the echo tests do not
14961 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
14962 # `"' quotes if we put them in here... so don't!
14963 lt_int_apple_cc_single_mod=no
14964 output_verbose_link_cmd='echo'
14965 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14966 lt_int_apple_cc_single_mod=yes
14967 fi
14968 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14969 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14970 else
14971 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'
14972 fi
14973 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14974 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14975 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14976 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}'
14977 else
14978 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}'
14979 fi
14980 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}'
14981 hardcode_direct_GCJ=no
14982 hardcode_automatic_GCJ=yes
14983 hardcode_shlibpath_var_GCJ=unsupported
14984 whole_archive_flag_spec_GCJ='-all_load $convenience'
14985 link_all_deplibs_GCJ=yes
14986 fi
14987 ;;
14988
14989 dgux*)
14990 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14992 hardcode_shlibpath_var_GCJ=no
14993 ;;
14994
14995 freebsd1*)
14996 ld_shlibs_GCJ=no
14997 ;;
14998
14999 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15000 # support. Future versions do this automatically, but an explicit c++rt0.o
15001 # does not break anything, and helps significantly (at the cost of a little
15002 # extra space).
15003 freebsd2.2*)
15004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15005 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15006 hardcode_direct_GCJ=yes
15007 hardcode_shlibpath_var_GCJ=no
15008 ;;
15009
15010 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15011 freebsd2*)
15012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_direct_GCJ=yes
15014 hardcode_minus_L_GCJ=yes
15015 hardcode_shlibpath_var_GCJ=no
15016 ;;
15017
15018 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15019 freebsd*)
15020 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15021 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15022 hardcode_direct_GCJ=yes
15023 hardcode_shlibpath_var_GCJ=no
15024 ;;
15025
15026 hpux9*)
15027 if test "$GCC" = yes; then
15028 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'
15029 else
15030 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'
15031 fi
15032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15033 hardcode_libdir_separator_GCJ=:
15034 hardcode_direct_GCJ=yes
15035
15036 # hardcode_minus_L: Not really in the search PATH,
15037 # but as the default location of the library.
15038 hardcode_minus_L_GCJ=yes
15039 export_dynamic_flag_spec_GCJ='${wl}-E'
15040 ;;
15041
15042 hpux10* | hpux11*)
15043 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15044 case "$host_cpu" in
15045 hppa*64*|ia64*)
15046 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 ;;
15048 *)
15049 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15050 ;;
15051 esac
15052 else
15053 case "$host_cpu" in
15054 hppa*64*|ia64*)
15055 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 ;;
15057 *)
15058 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15059 ;;
15060 esac
15061 fi
15062 if test "$with_gnu_ld" = no; then
15063 case "$host_cpu" in
15064 hppa*64*)
15065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15066 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15067 hardcode_libdir_separator_GCJ=:
15068 hardcode_direct_GCJ=no
15069 hardcode_shlibpath_var_GCJ=no
15070 ;;
15071 ia64*)
15072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15073 hardcode_direct_GCJ=no
15074 hardcode_shlibpath_var_GCJ=no
15075
15076 # hardcode_minus_L: Not really in the search PATH,
15077 # but as the default location of the library.
15078 hardcode_minus_L_GCJ=yes
15079 ;;
15080 *)
15081 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15082 hardcode_libdir_separator_GCJ=:
15083 hardcode_direct_GCJ=yes
15084 export_dynamic_flag_spec_GCJ='${wl}-E'
15085
15086 # hardcode_minus_L: Not really in the search PATH,
15087 # but as the default location of the library.
15088 hardcode_minus_L_GCJ=yes
15089 ;;
15090 esac
15091 fi
15092 ;;
15093
15094 irix5* | irix6* | nonstopux*)
15095 if test "$GCC" = yes; then
15096 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'
15097 else
15098 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'
15099 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15100 fi
15101 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15102 hardcode_libdir_separator_GCJ=:
15103 link_all_deplibs_GCJ=yes
15104 ;;
15105
15106 netbsd*)
15107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15109 else
15110 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15111 fi
15112 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15113 hardcode_direct_GCJ=yes
15114 hardcode_shlibpath_var_GCJ=no
15115 ;;
15116
15117 newsos6)
15118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15119 hardcode_direct_GCJ=yes
15120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15121 hardcode_libdir_separator_GCJ=:
15122 hardcode_shlibpath_var_GCJ=no
15123 ;;
15124
15125 openbsd*)
15126 hardcode_direct_GCJ=yes
15127 hardcode_shlibpath_var_GCJ=no
15128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15129 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15131 export_dynamic_flag_spec_GCJ='${wl}-E'
15132 else
15133 case $host_os in
15134 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15135 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15136 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15137 ;;
15138 *)
15139 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15141 ;;
15142 esac
15143 fi
15144 ;;
15145
15146 os2*)
15147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15148 hardcode_minus_L_GCJ=yes
15149 allow_undefined_flag_GCJ=unsupported
15150 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'
15151 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15152 ;;
15153
15154 osf3*)
15155 if test "$GCC" = yes; then
15156 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15157 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'
15158 else
15159 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15160 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'
15161 fi
15162 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15163 hardcode_libdir_separator_GCJ=:
15164 ;;
15165
15166 osf4* | osf5*) # as osf3* with the addition of -msym flag
15167 if test "$GCC" = yes; then
15168 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15169 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'
15170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15171 else
15172 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15173 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'
15174 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~
15175 $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'
15176
15177 # Both c and cxx compiler support -rpath directly
15178 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15179 fi
15180 hardcode_libdir_separator_GCJ=:
15181 ;;
15182
15183 sco3.2v5*)
15184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_shlibpath_var_GCJ=no
15186 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15187 runpath_var=LD_RUN_PATH
15188 hardcode_runpath_var=yes
15189 ;;
15190
15191 solaris*)
15192 no_undefined_flag_GCJ=' -z text'
15193 if test "$GCC" = yes; then
15194 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15196 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15197 else
15198 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15201 fi
15202 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15203 hardcode_shlibpath_var_GCJ=no
15204 case $host_os in
15205 solaris2.[0-5] | solaris2.[0-5].*) ;;
15206 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15207 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15208 esac
15209 link_all_deplibs_GCJ=yes
15210 ;;
15211
15212 sunos4*)
15213 if test "x$host_vendor" = xsequent; then
15214 # Use $CC to link under sequent, because it throws in some extra .o
15215 # files that make .init and .fini sections work.
15216 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15217 else
15218 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15219 fi
15220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15221 hardcode_direct_GCJ=yes
15222 hardcode_minus_L_GCJ=yes
15223 hardcode_shlibpath_var_GCJ=no
15224 ;;
15225
15226 sysv4)
15227 case $host_vendor in
15228 sni)
15229 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230 hardcode_direct_GCJ=yes # is this really true???
15231 ;;
15232 siemens)
15233 ## LD is ld it makes a PLAMLIB
15234 ## CC just makes a GrossModule.
15235 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15236 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15237 hardcode_direct_GCJ=no
15238 ;;
15239 motorola)
15240 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15241 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15242 ;;
15243 esac
15244 runpath_var='LD_RUN_PATH'
15245 hardcode_shlibpath_var_GCJ=no
15246 ;;
15247
15248 sysv4.3*)
15249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_shlibpath_var_GCJ=no
15251 export_dynamic_flag_spec_GCJ='-Bexport'
15252 ;;
15253
15254 sysv4*MP*)
15255 if test -d /usr/nec; then
15256 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15257 hardcode_shlibpath_var_GCJ=no
15258 runpath_var=LD_RUN_PATH
15259 hardcode_runpath_var=yes
15260 ld_shlibs_GCJ=yes
15261 fi
15262 ;;
15263
15264 sysv4.2uw2*)
15265 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_direct_GCJ=yes
15267 hardcode_minus_L_GCJ=no
15268 hardcode_shlibpath_var_GCJ=no
15269 hardcode_runpath_var=yes
15270 runpath_var=LD_RUN_PATH
15271 ;;
15272
15273 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15274 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15275 if test "$GCC" = yes; then
15276 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 else
15278 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15279 fi
15280 runpath_var='LD_RUN_PATH'
15281 hardcode_shlibpath_var_GCJ=no
15282 ;;
15283
15284 sysv5*)
15285 no_undefined_flag_GCJ=' -z text'
15286 # $CC -shared without GNU ld will not create a library from C++
15287 # object files and a static libstdc++, better avoid it by now
15288 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15289 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15291 hardcode_libdir_flag_spec_GCJ=
15292 hardcode_shlibpath_var_GCJ=no
15293 runpath_var='LD_RUN_PATH'
15294 ;;
15295
15296 uts4*)
15297 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15299 hardcode_shlibpath_var_GCJ=no
15300 ;;
15301
15302 *)
15303 ld_shlibs_GCJ=no
15304 ;;
15305 esac
15306 fi
15307
15308echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15309echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15310test "$ld_shlibs_GCJ" = no && can_build_shared=no
15311
15312variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15313if test "$GCC" = yes; then
15314 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15315fi
15316
15317#
15318# Do we need to explicitly link libc?
15319#
15320case "x$archive_cmds_need_lc_GCJ" in
15321x|xyes)
15322 # Assume -lc should be added
15323 archive_cmds_need_lc_GCJ=yes
15324
15325 if test "$enable_shared" = yes && test "$GCC" = yes; then
15326 case $archive_cmds_GCJ in
15327 *'~'*)
15328 # FIXME: we may have to deal with multi-command sequences.
15329 ;;
15330 '$CC '*)
15331 # Test whether the compiler implicitly links with -lc since on some
15332 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15333 # to ld, don't add -lc before -lgcc.
15334 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15335echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15336 $rm conftest*
15337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15338
15339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 (eval $ac_compile) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } 2>conftest.err; then
15344 soname=conftest
15345 lib=conftest
15346 libobjs=conftest.$ac_objext
15347 deplibs=
15348 wl=$lt_prog_compiler_wl_GCJ
15349 compiler_flags=-v
15350 linker_flags=-v
15351 verstring=
15352 output_objdir=.
15353 libname=conftest
15354 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15355 allow_undefined_flag_GCJ=
15356 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15357 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }
15361 then
15362 archive_cmds_need_lc_GCJ=no
15363 else
15364 archive_cmds_need_lc_GCJ=yes
15365 fi
15366 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15367 else
15368 cat conftest.err 1>&5
15369 fi
15370 $rm conftest*
15371 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15372echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15373 ;;
15374 esac
15375 fi
15376 ;;
15377esac
15378
15379echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381hardcode_action_GCJ=
15382if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15383 test -n "$runpath_var GCJ" || \
15384 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15385
15386 # We can hardcode non-existant directories.
15387 if test "$hardcode_direct_GCJ" != no &&
15388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389 # have to relink, otherwise we might link with an installed library
15390 # when we should be linking with a yet-to-be-installed one
15391 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15392 test "$hardcode_minus_L_GCJ" != no; then
15393 # Linking always hardcodes the temporary library directory.
15394 hardcode_action_GCJ=relink
15395 else
15396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397 hardcode_action_GCJ=immediate
15398 fi
15399else
15400 # We cannot hardcode anything, or else we can only hardcode existing
15401 # directories.
15402 hardcode_action_GCJ=unsupported
15403fi
15404echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15405echo "${ECHO_T}$hardcode_action_GCJ" >&6
15406
15407if test "$hardcode_action_GCJ" = relink; then
15408 # Fast installation is not supported
15409 enable_fast_install=no
15410elif test "$shlibpath_overrides_runpath" = yes ||
15411 test "$enable_shared" = no; then
15412 # Fast installation is not necessary
15413 enable_fast_install=needless
15414fi
15415
15416striplib=
15417old_striplib=
15418echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15419echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15420if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15421 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15422 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15423 echo "$as_me:$LINENO: result: yes" >&5
15424echo "${ECHO_T}yes" >&6
15425else
15426# FIXME - insert some real tests, host_os isn't really good enough
15427 case $host_os in
15428 darwin*)
15429 if test -n "$STRIP" ; then
15430 striplib="$STRIP -x"
15431 echo "$as_me:$LINENO: result: yes" >&5
15432echo "${ECHO_T}yes" >&6
15433 else
15434 echo "$as_me:$LINENO: result: no" >&5
15435echo "${ECHO_T}no" >&6
15436fi
15437 ;;
15438 *)
15439 echo "$as_me:$LINENO: result: no" >&5
15440echo "${ECHO_T}no" >&6
15441 ;;
15442 esac
15443fi
15444
15445echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15446echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15447library_names_spec=
15448libname_spec='lib$name'
15449soname_spec=
15450shrext=".so"
15451postinstall_cmds=
15452postuninstall_cmds=
15453finish_cmds=
15454finish_eval=
15455shlibpath_var=
15456shlibpath_overrides_runpath=unknown
15457version_type=none
15458dynamic_linker="$host_os ld.so"
15459sys_lib_dlsearch_path_spec="/lib /usr/lib"
15460if test "$GCC" = yes; then
15461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15462 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15463 # if the path contains ";" then we assume it to be the separator
15464 # otherwise default to the standard path separator (i.e. ":") - it is
15465 # assumed that no part of a normal pathname contains ";" but that should
15466 # okay in the real world where ";" in dirpaths is itself problematic.
15467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15468 else
15469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15470 fi
15471else
15472 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15473fi
15474need_lib_prefix=unknown
15475hardcode_into_libs=no
15476
15477# when you set need_version to no, make sure it does not cause -set_version
15478# flags to be left without arguments
15479need_version=unknown
15480
15481case $host_os in
15482aix3*)
15483 version_type=linux
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15485 shlibpath_var=LIBPATH
15486
15487 # AIX 3 has no versioning support, so we append a major version to the name.
15488 soname_spec='${libname}${release}${shared_ext}$major'
15489 ;;
15490
15491aix4* | aix5*)
15492 version_type=linux
15493 need_lib_prefix=no
15494 need_version=no
15495 hardcode_into_libs=yes
15496 if test "$host_cpu" = ia64; then
15497 # AIX 5 supports IA64
15498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 else
15501 # With GCC up to 2.95.x, collect2 would create an import file
15502 # for dependence libraries. The import file would start with
15503 # the line `#! .'. This would cause the generated library to
15504 # depend on `.', always an invalid library. This was fixed in
15505 # development snapshots of GCC prior to 3.0.
15506 case $host_os in
15507 aix4 | aix4.[01] | aix4.[01].*)
15508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15509 echo ' yes '
15510 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15511 :
15512 else
15513 can_build_shared=no
15514 fi
15515 ;;
15516 esac
15517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15518 # soname into executable. Probably we can add versioning support to
15519 # collect2, so additional links can be useful in future.
15520 if test "$aix_use_runtimelinking" = yes; then
15521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15522 # instead of lib<name>.a to let people know that these are not
15523 # typical AIX shared libraries.
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 else
15526 # We preserve .a as extension for shared libraries through AIX4.2
15527 # and later when we are not doing run time linking.
15528 library_names_spec='${libname}${release}.a $libname.a'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 fi
15531 shlibpath_var=LIBPATH
15532 fi
15533 ;;
15534
15535amigaos*)
15536 library_names_spec='$libname.ixlibrary $libname.a'
15537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15538 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'
15539 ;;
15540
15541beos*)
15542 library_names_spec='${libname}${shared_ext}'
15543 dynamic_linker="$host_os ld.so"
15544 shlibpath_var=LIBRARY_PATH
15545 ;;
15546
15547bsdi4*)
15548 version_type=linux
15549 need_version=no
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15556 # the default ld.so.conf also contains /usr/contrib/lib and
15557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15558 # libtool to hard-code these into programs
15559 ;;
15560
15561cygwin* | mingw* | pw32*)
15562 version_type=windows
15563 shrext=".dll"
15564 need_version=no
15565 need_lib_prefix=no
15566
15567 case $GCC,$host_os in
15568 yes,cygwin* | yes,mingw* | yes,pw32*)
15569 library_names_spec='$libname.dll.a'
15570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15571 postinstall_cmds='base_file=`basename \${file}`~
15572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15573 dldir=$destdir/`dirname \$dlpath`~
15574 test -d \$dldir || mkdir -p \$dldir~
15575 $install_prog $dir/$dlname \$dldir/$dlname'
15576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15577 dlpath=$dir/\$dldll~
15578 $rm \$dlpath'
15579 shlibpath_overrides_runpath=yes
15580
15581 case $host_os in
15582 cygwin*)
15583 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15584 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15585 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15586 ;;
15587 mingw*)
15588 # MinGW DLLs use traditional 'lib' prefix
15589 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15591 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15592 # It is most probably a Windows format PATH printed by
15593 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15594 # path with ; separators, and with drive letters. We can handle the
15595 # drive letters (cygwin fileutils understands them), so leave them,
15596 # especially as we might pass files found there to a mingw objdump,
15597 # which wouldn't understand a cygwinified path. Ahh.
15598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15599 else
15600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15601 fi
15602 ;;
15603 pw32*)
15604 # pw32 DLLs use 'pw' prefix rather than 'lib'
15605 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15606 ;;
15607 esac
15608 ;;
15609
15610 *)
15611 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15612 ;;
15613 esac
15614 dynamic_linker='Win32 ld.exe'
15615 # FIXME: first we should search . and the directory the executable is in
15616 shlibpath_var=PATH
15617 ;;
15618
15619darwin* | rhapsody*)
15620 dynamic_linker="$host_os dyld"
15621 version_type=darwin
15622 need_lib_prefix=no
15623 need_version=no
15624 # FIXME: Relying on posixy $() will cause problems for
15625 # cross-compilation, but unfortunately the echo tests do not
15626 # yet detect zsh echo's removal of \ escapes.
15627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15628 soname_spec='${libname}${release}${major}$shared_ext'
15629 shlibpath_overrides_runpath=yes
15630 shlibpath_var=DYLD_LIBRARY_PATH
15631 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15633 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15634 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"`
15635 fi
15636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15637 ;;
15638
15639dgux*)
15640 version_type=linux
15641 need_lib_prefix=no
15642 need_version=no
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 ;;
15647
15648freebsd1*)
15649 dynamic_linker=no
15650 ;;
15651
15652freebsd*)
15653 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15654 version_type=freebsd-$objformat
15655 case $version_type in
15656 freebsd-elf*)
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15658 need_version=no
15659 need_lib_prefix=no
15660 ;;
15661 freebsd-*)
15662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15663 need_version=yes
15664 ;;
15665 esac
15666 shlibpath_var=LD_LIBRARY_PATH
15667 case $host_os in
15668 freebsd2*)
15669 shlibpath_overrides_runpath=yes
15670 ;;
15671 freebsd3.01* | freebsdelf3.01*)
15672 shlibpath_overrides_runpath=yes
15673 hardcode_into_libs=yes
15674 ;;
15675 *) # from 3.2 on
15676 shlibpath_overrides_runpath=no
15677 hardcode_into_libs=yes
15678 ;;
15679 esac
15680 ;;
15681
15682gnu*)
15683 version_type=linux
15684 need_lib_prefix=no
15685 need_version=no
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 hardcode_into_libs=yes
15690 ;;
15691
15692hpux9* | hpux10* | hpux11*)
15693 # Give a soname corresponding to the major version so that dld.sl refuses to
15694 # link against other versions.
15695 version_type=sunos
15696 need_lib_prefix=no
15697 need_version=no
15698 case "$host_cpu" in
15699 ia64*)
15700 shrext='.so'
15701 hardcode_into_libs=yes
15702 dynamic_linker="$host_os dld.so"
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 if test "X$HPUX_IA64_MODE" = X32; then
15708 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15709 else
15710 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15711 fi
15712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15713 ;;
15714 hppa*64*)
15715 shrext='.sl'
15716 hardcode_into_libs=yes
15717 dynamic_linker="$host_os dld.sl"
15718 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15724 ;;
15725 *)
15726 shrext='.sl'
15727 dynamic_linker="$host_os dld.sl"
15728 shlibpath_var=SHLIB_PATH
15729 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 ;;
15733 esac
15734 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15735 postinstall_cmds='chmod 555 $lib'
15736 ;;
15737
15738irix5* | irix6* | nonstopux*)
15739 case $host_os in
15740 nonstopux*) version_type=nonstopux ;;
15741 *)
15742 if test "$lt_cv_prog_gnu_ld" = yes; then
15743 version_type=linux
15744 else
15745 version_type=irix
15746 fi ;;
15747 esac
15748 need_lib_prefix=no
15749 need_version=no
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 case $host_os in
15753 irix5* | nonstopux*)
15754 libsuff= shlibsuff=
15755 ;;
15756 *)
15757 case $LD in # libtool.m4 will add one of these switches to LD
15758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15759 libsuff= shlibsuff= libmagic=32-bit;;
15760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15761 libsuff=32 shlibsuff=N32 libmagic=N32;;
15762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15764 *) libsuff= shlibsuff= libmagic=never-match;;
15765 esac
15766 ;;
15767 esac
15768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15769 shlibpath_overrides_runpath=no
15770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15772 hardcode_into_libs=yes
15773 ;;
15774
15775# No shared lib support for Linux oldld, aout, or coff.
15776linux*oldld* | linux*aout* | linux*coff*)
15777 dynamic_linker=no
15778 ;;
15779
15780# This must be Linux ELF.
15781linux*)
15782 version_type=linux
15783 need_lib_prefix=no
15784 need_version=no
15785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786 soname_spec='${libname}${release}${shared_ext}$major'
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=no
15790 # This implies no fast_install, which is unacceptable.
15791 # Some rework will be needed to allow for fast_install
15792 # before this can be enabled.
15793 hardcode_into_libs=yes
15794
15795 # We used to test for /lib/ld.so.1 and disable shared libraries on
15796 # powerpc, because MkLinux only supported shared libraries with the
15797 # GNU dynamic linker. Since this was broken with cross compilers,
15798 # most powerpc-linux boxes support dynamic linking these days and
15799 # people can always --disable-shared, the test was removed, and we
15800 # assume the GNU/Linux dynamic linker is in use.
15801 dynamic_linker='GNU/Linux ld.so'
15802 ;;
15803
15804netbsd*)
15805 version_type=sunos
15806 need_lib_prefix=no
15807 need_version=no
15808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811 dynamic_linker='NetBSD (a.out) ld.so'
15812 else
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 dynamic_linker='NetBSD ld.elf_so'
15816 fi
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 ;;
15821
15822newsos6)
15823 version_type=linux
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 ;;
15828
15829nto-qnx)
15830 version_type=linux
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 ;;
15838
15839openbsd*)
15840 version_type=sunos
15841 need_lib_prefix=no
15842 need_version=no
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15847 case $host_os in
15848 openbsd2.[89] | openbsd2.[89].*)
15849 shlibpath_overrides_runpath=no
15850 ;;
15851 *)
15852 shlibpath_overrides_runpath=yes
15853 ;;
15854 esac
15855 else
15856 shlibpath_overrides_runpath=yes
15857 fi
15858 ;;
15859
15860os2*)
15861 libname_spec='$name'
15862 shrext=".dll"
15863 need_lib_prefix=no
15864 library_names_spec='$libname${shared_ext} $libname.a'
15865 dynamic_linker='OS/2 ld.exe'
15866 shlibpath_var=LIBPATH
15867 ;;
15868
15869osf3* | osf4* | osf5*)
15870 version_type=osf
15871 need_lib_prefix=no
15872 need_version=no
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 shlibpath_var=LD_LIBRARY_PATH
15876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15878 ;;
15879
15880sco3.2v5*)
15881 version_type=osf
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 ;;
15886
15887solaris*)
15888 version_type=linux
15889 need_lib_prefix=no
15890 need_version=no
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=yes
15895 hardcode_into_libs=yes
15896 # ldd complains unless libraries are executable
15897 postinstall_cmds='chmod +x $lib'
15898 ;;
15899
15900sunos4*)
15901 version_type=sunos
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15904 shlibpath_var=LD_LIBRARY_PATH
15905 shlibpath_overrides_runpath=yes
15906 if test "$with_gnu_ld" = yes; then
15907 need_lib_prefix=no
15908 fi
15909 need_version=yes
15910 ;;
15911
15912sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15913 version_type=linux
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 soname_spec='${libname}${release}${shared_ext}$major'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 case $host_vendor in
15918 sni)
15919 shlibpath_overrides_runpath=no
15920 need_lib_prefix=no
15921 export_dynamic_flag_spec='${wl}-Blargedynsym'
15922 runpath_var=LD_RUN_PATH
15923 ;;
15924 siemens)
15925 need_lib_prefix=no
15926 ;;
15927 motorola)
15928 need_lib_prefix=no
15929 need_version=no
15930 shlibpath_overrides_runpath=no
15931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15932 ;;
15933 esac
15934 ;;
15935
15936sysv4*MP*)
15937 if test -d /usr/nec ;then
15938 version_type=linux
15939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15940 soname_spec='$libname${shared_ext}.$major'
15941 shlibpath_var=LD_LIBRARY_PATH
15942 fi
15943 ;;
15944
15945uts4*)
15946 version_type=linux
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 ;;
15951
15952*)
15953 dynamic_linker=no
15954 ;;
15955esac
15956echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15957echo "${ECHO_T}$dynamic_linker" >&6
15958test "$dynamic_linker" = no && can_build_shared=no
15959
15960if test "x$enable_dlopen" != xyes; then
15961 enable_dlopen=unknown
15962 enable_dlopen_self=unknown
15963 enable_dlopen_self_static=unknown
15964else
15965 lt_cv_dlopen=no
15966 lt_cv_dlopen_libs=
15967
15968 case $host_os in
15969 beos*)
15970 lt_cv_dlopen="load_add_on"
15971 lt_cv_dlopen_libs=
15972 lt_cv_dlopen_self=yes
15973 ;;
15974
15975 mingw* | pw32*)
15976 lt_cv_dlopen="LoadLibrary"
15977 lt_cv_dlopen_libs=
15978 ;;
15979
15980 cygwin*)
15981 lt_cv_dlopen="dlopen"
15982 lt_cv_dlopen_libs=
15983 ;;
15984
15985 darwin*)
15986 # if libdl is installed we need to link against it
15987 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15988echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15989if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991else
15992 ac_check_lib_save_LIBS=$LIBS
15993LIBS="-ldl $LIBS"
15994cat >conftest.$ac_ext <<_ACEOF
15995#line $LINENO "configure"
15996#include "confdefs.h"
15997
15998/* Override any gcc2 internal prototype to avoid an error. */
15999#ifdef __cplusplus
16000extern "C"
16001#endif
16002/* We use char because int might match the return type of a gcc2
16003 builtin and then its argument prototype would still apply. */
16004char dlopen ();
16005#ifdef F77_DUMMY_MAIN
16006# ifdef __cplusplus
16007 extern "C"
16008# endif
16009 int F77_DUMMY_MAIN() { return 1; }
16010#endif
16011int
16012main ()
16013{
16014dlopen ();
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext conftest$ac_exeext
16020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021 (eval $ac_link) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -s conftest$ac_exeext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_cv_lib_dl_dlopen=yes
16032else
16033 echo "$as_me: failed program was:" >&5
16034cat conftest.$ac_ext >&5
16035ac_cv_lib_dl_dlopen=no
16036fi
16037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16038LIBS=$ac_check_lib_save_LIBS
16039fi
16040echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16041echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16042if test $ac_cv_lib_dl_dlopen = yes; then
16043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16044else
16045
16046 lt_cv_dlopen="dyld"
16047 lt_cv_dlopen_libs=
16048 lt_cv_dlopen_self=yes
16049
16050fi
16051
16052 ;;
16053
16054 *)
16055 echo "$as_me:$LINENO: checking for shl_load" >&5
16056echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16057if test "${ac_cv_func_shl_load+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059else
16060 cat >conftest.$ac_ext <<_ACEOF
16061#line $LINENO "configure"
16062#include "confdefs.h"
16063/* System header to define __stub macros and hopefully few prototypes,
16064 which can conflict with char shl_load (); below. */
16065#include <assert.h>
16066/* Override any gcc2 internal prototype to avoid an error. */
16067#ifdef __cplusplus
16068extern "C"
16069#endif
16070/* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16072char shl_load ();
16073char (*f) ();
16074
16075#ifdef F77_DUMMY_MAIN
16076# ifdef __cplusplus
16077 extern "C"
16078# endif
16079 int F77_DUMMY_MAIN() { return 1; }
16080#endif
16081int
16082main ()
16083{
16084/* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087#if defined (__stub_shl_load) || defined (__stub___shl_load)
16088choke me
16089#else
16090f = shl_load;
16091#endif
16092
16093 ;
16094 return 0;
16095}
16096_ACEOF
16097rm -f conftest.$ac_objext conftest$ac_exeext
16098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099 (eval $ac_link) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_func_shl_load=yes
16110else
16111 echo "$as_me: failed program was:" >&5
16112cat conftest.$ac_ext >&5
16113ac_cv_func_shl_load=no
16114fi
16115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16116fi
16117echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16118echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16119if test $ac_cv_func_shl_load = yes; then
16120 lt_cv_dlopen="shl_load"
16121else
16122 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16123echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16124if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16126else
16127 ac_check_lib_save_LIBS=$LIBS
16128LIBS="-ldld $LIBS"
16129cat >conftest.$ac_ext <<_ACEOF
16130#line $LINENO "configure"
16131#include "confdefs.h"
16132
16133/* Override any gcc2 internal prototype to avoid an error. */
16134#ifdef __cplusplus
16135extern "C"
16136#endif
16137/* We use char because int might match the return type of a gcc2
16138 builtin and then its argument prototype would still apply. */
16139char shl_load ();
16140#ifdef F77_DUMMY_MAIN
16141# ifdef __cplusplus
16142 extern "C"
16143# endif
16144 int F77_DUMMY_MAIN() { return 1; }
16145#endif
16146int
16147main ()
16148{
16149shl_load ();
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154rm -f conftest.$ac_objext conftest$ac_exeext
16155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156 (eval $ac_link) 2>&5
16157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_lib_dld_shl_load=yes
16167else
16168 echo "$as_me: failed program was:" >&5
16169cat conftest.$ac_ext >&5
16170ac_cv_lib_dld_shl_load=no
16171fi
16172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16173LIBS=$ac_check_lib_save_LIBS
16174fi
16175echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16176echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16177if test $ac_cv_lib_dld_shl_load = yes; then
16178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16179else
16180 echo "$as_me:$LINENO: checking for dlopen" >&5
16181echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16182if test "${ac_cv_func_dlopen+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184else
16185 cat >conftest.$ac_ext <<_ACEOF
16186#line $LINENO "configure"
16187#include "confdefs.h"
16188/* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char dlopen (); below. */
16190#include <assert.h>
16191/* Override any gcc2 internal prototype to avoid an error. */
16192#ifdef __cplusplus
16193extern "C"
16194#endif
16195/* We use char because int might match the return type of a gcc2
16196 builtin and then its argument prototype would still apply. */
16197char dlopen ();
16198char (*f) ();
16199
16200#ifdef F77_DUMMY_MAIN
16201# ifdef __cplusplus
16202 extern "C"
16203# endif
16204 int F77_DUMMY_MAIN() { return 1; }
16205#endif
16206int
16207main ()
16208{
16209/* The GNU C library defines this for functions which it implements
16210 to always fail with ENOSYS. Some functions are actually named
16211 something starting with __ and the normal name is an alias. */
16212#if defined (__stub_dlopen) || defined (__stub___dlopen)
16213choke me
16214#else
16215f = dlopen;
16216#endif
16217
16218 ;
16219 return 0;
16220}
16221_ACEOF
16222rm -f conftest.$ac_objext conftest$ac_exeext
16223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -s conftest$ac_exeext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_func_dlopen=yes
16235else
16236 echo "$as_me: failed program was:" >&5
16237cat conftest.$ac_ext >&5
16238ac_cv_func_dlopen=no
16239fi
16240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16241fi
16242echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16243echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16244if test $ac_cv_func_dlopen = yes; then
16245 lt_cv_dlopen="dlopen"
16246else
16247 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16248echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16249if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251else
16252 ac_check_lib_save_LIBS=$LIBS
16253LIBS="-ldl $LIBS"
16254cat >conftest.$ac_ext <<_ACEOF
16255#line $LINENO "configure"
16256#include "confdefs.h"
16257
16258/* Override any gcc2 internal prototype to avoid an error. */
16259#ifdef __cplusplus
16260extern "C"
16261#endif
16262/* We use char because int might match the return type of a gcc2
16263 builtin and then its argument prototype would still apply. */
16264char dlopen ();
16265#ifdef F77_DUMMY_MAIN
16266# ifdef __cplusplus
16267 extern "C"
16268# endif
16269 int F77_DUMMY_MAIN() { return 1; }
16270#endif
16271int
16272main ()
16273{
16274dlopen ();
16275 ;
16276 return 0;
16277}
16278_ACEOF
16279rm -f conftest.$ac_objext conftest$ac_exeext
16280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_lib_dl_dlopen=yes
16292else
16293 echo "$as_me: failed program was:" >&5
16294cat conftest.$ac_ext >&5
16295ac_cv_lib_dl_dlopen=no
16296fi
16297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16298LIBS=$ac_check_lib_save_LIBS
16299fi
16300echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16301echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16302if test $ac_cv_lib_dl_dlopen = yes; then
16303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16304else
16305 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16306echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16307if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309else
16310 ac_check_lib_save_LIBS=$LIBS
16311LIBS="-lsvld $LIBS"
16312cat >conftest.$ac_ext <<_ACEOF
16313#line $LINENO "configure"
16314#include "confdefs.h"
16315
16316/* Override any gcc2 internal prototype to avoid an error. */
16317#ifdef __cplusplus
16318extern "C"
16319#endif
16320/* We use char because int might match the return type of a gcc2
16321 builtin and then its argument prototype would still apply. */
16322char dlopen ();
16323#ifdef F77_DUMMY_MAIN
16324# ifdef __cplusplus
16325 extern "C"
16326# endif
16327 int F77_DUMMY_MAIN() { return 1; }
16328#endif
16329int
16330main ()
16331{
16332dlopen ();
16333 ;
16334 return 0;
16335}
16336_ACEOF
16337rm -f conftest.$ac_objext conftest$ac_exeext
16338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } &&
16343 { ac_try='test -s conftest$ac_exeext'
16344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
16349 ac_cv_lib_svld_dlopen=yes
16350else
16351 echo "$as_me: failed program was:" >&5
16352cat conftest.$ac_ext >&5
16353ac_cv_lib_svld_dlopen=no
16354fi
16355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356LIBS=$ac_check_lib_save_LIBS
16357fi
16358echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16359echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16360if test $ac_cv_lib_svld_dlopen = yes; then
16361 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16362else
16363 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16364echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16365if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367else
16368 ac_check_lib_save_LIBS=$LIBS
16369LIBS="-ldld $LIBS"
16370cat >conftest.$ac_ext <<_ACEOF
16371#line $LINENO "configure"
16372#include "confdefs.h"
16373
16374/* Override any gcc2 internal prototype to avoid an error. */
16375#ifdef __cplusplus
16376extern "C"
16377#endif
16378/* We use char because int might match the return type of a gcc2
16379 builtin and then its argument prototype would still apply. */
16380char dld_link ();
16381#ifdef F77_DUMMY_MAIN
16382# ifdef __cplusplus
16383 extern "C"
16384# endif
16385 int F77_DUMMY_MAIN() { return 1; }
16386#endif
16387int
16388main ()
16389{
16390dld_link ();
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext conftest$ac_exeext
16396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397 (eval $ac_link) 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; }; then
16407 ac_cv_lib_dld_dld_link=yes
16408else
16409 echo "$as_me: failed program was:" >&5
16410cat conftest.$ac_ext >&5
16411ac_cv_lib_dld_dld_link=no
16412fi
16413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16414LIBS=$ac_check_lib_save_LIBS
16415fi
16416echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16417echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16418if test $ac_cv_lib_dld_dld_link = yes; then
16419 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16420fi
16421
16422
16423fi
16424
16425
16426fi
16427
16428
16429fi
16430
16431
16432fi
16433
16434
16435fi
16436
16437 ;;
16438 esac
16439
16440 if test "x$lt_cv_dlopen" != xno; then
16441 enable_dlopen=yes
16442 else
16443 enable_dlopen=no
16444 fi
16445
16446 case $lt_cv_dlopen in
16447 dlopen)
16448 save_CPPFLAGS="$CPPFLAGS"
16449 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16450
16451 save_LDFLAGS="$LDFLAGS"
16452 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16453
16454 save_LIBS="$LIBS"
16455 LIBS="$lt_cv_dlopen_libs $LIBS"
16456
16457 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16458echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16459if test "${lt_cv_dlopen_self+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461else
16462 if test "$cross_compiling" = yes; then :
16463 lt_cv_dlopen_self=cross
16464else
16465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16466 lt_status=$lt_dlunknown
16467 cat > conftest.$ac_ext <<EOF
16468#line 16468 "configure"
16469#include "confdefs.h"
16470
16471#if HAVE_DLFCN_H
16472#include <dlfcn.h>
16473#endif
16474
16475#include <stdio.h>
16476
16477#ifdef RTLD_GLOBAL
16478# define LT_DLGLOBAL RTLD_GLOBAL
16479#else
16480# ifdef DL_GLOBAL
16481# define LT_DLGLOBAL DL_GLOBAL
16482# else
16483# define LT_DLGLOBAL 0
16484# endif
16485#endif
16486
16487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16488 find out it does not work in some platform. */
16489#ifndef LT_DLLAZY_OR_NOW
16490# ifdef RTLD_LAZY
16491# define LT_DLLAZY_OR_NOW RTLD_LAZY
16492# else
16493# ifdef DL_LAZY
16494# define LT_DLLAZY_OR_NOW DL_LAZY
16495# else
16496# ifdef RTLD_NOW
16497# define LT_DLLAZY_OR_NOW RTLD_NOW
16498# else
16499# ifdef DL_NOW
16500# define LT_DLLAZY_OR_NOW DL_NOW
16501# else
16502# define LT_DLLAZY_OR_NOW 0
16503# endif
16504# endif
16505# endif
16506# endif
16507#endif
16508
16509#ifdef __cplusplus
16510extern "C" void exit (int);
16511#endif
16512
16513void fnord() { int i=42;}
16514int main ()
16515{
16516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16517 int status = $lt_dlunknown;
16518
16519 if (self)
16520 {
16521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16522 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16523 /* dlclose (self); */
16524 }
16525
16526 exit (status);
16527}
16528EOF
16529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>&5
16531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16534 (./conftest; exit; ) 2>/dev/null
16535 lt_status=$?
16536 case x$lt_status in
16537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16539 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16540 esac
16541 else :
16542 # compilation failed
16543 lt_cv_dlopen_self=no
16544 fi
16545fi
16546rm -fr conftest*
16547
16548
16549fi
16550echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16551echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16552
16553 if test "x$lt_cv_dlopen_self" = xyes; then
16554 LDFLAGS="$LDFLAGS $link_static_flag"
16555 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16556echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16557if test "${lt_cv_dlopen_self_static+set}" = set; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16559else
16560 if test "$cross_compiling" = yes; then :
16561 lt_cv_dlopen_self_static=cross
16562else
16563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16564 lt_status=$lt_dlunknown
16565 cat > conftest.$ac_ext <<EOF
16566#line 16566 "configure"
16567#include "confdefs.h"
16568
16569#if HAVE_DLFCN_H
16570#include <dlfcn.h>
16571#endif
16572
16573#include <stdio.h>
16574
16575#ifdef RTLD_GLOBAL
16576# define LT_DLGLOBAL RTLD_GLOBAL
16577#else
16578# ifdef DL_GLOBAL
16579# define LT_DLGLOBAL DL_GLOBAL
16580# else
16581# define LT_DLGLOBAL 0
16582# endif
16583#endif
16584
16585/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16586 find out it does not work in some platform. */
16587#ifndef LT_DLLAZY_OR_NOW
16588# ifdef RTLD_LAZY
16589# define LT_DLLAZY_OR_NOW RTLD_LAZY
16590# else
16591# ifdef DL_LAZY
16592# define LT_DLLAZY_OR_NOW DL_LAZY
16593# else
16594# ifdef RTLD_NOW
16595# define LT_DLLAZY_OR_NOW RTLD_NOW
16596# else
16597# ifdef DL_NOW
16598# define LT_DLLAZY_OR_NOW DL_NOW
16599# else
16600# define LT_DLLAZY_OR_NOW 0
16601# endif
16602# endif
16603# endif
16604# endif
16605#endif
16606
16607#ifdef __cplusplus
16608extern "C" void exit (int);
16609#endif
16610
16611void fnord() { int i=42;}
16612int main ()
16613{
16614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16615 int status = $lt_dlunknown;
16616
16617 if (self)
16618 {
16619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16620 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16621 /* dlclose (self); */
16622 }
16623
16624 exit (status);
16625}
16626EOF
16627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16628 (eval $ac_link) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16632 (./conftest; exit; ) 2>/dev/null
16633 lt_status=$?
16634 case x$lt_status in
16635 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16636 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16637 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16638 esac
16639 else :
16640 # compilation failed
16641 lt_cv_dlopen_self_static=no
16642 fi
16643fi
16644rm -fr conftest*
16645
16646
16647fi
16648echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16649echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16650 fi
16651
16652 CPPFLAGS="$save_CPPFLAGS"
16653 LDFLAGS="$save_LDFLAGS"
16654 LIBS="$save_LIBS"
16655 ;;
16656 esac
16657
16658 case $lt_cv_dlopen_self in
16659 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16660 *) enable_dlopen_self=unknown ;;
16661 esac
16662
16663 case $lt_cv_dlopen_self_static in
16664 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16665 *) enable_dlopen_self_static=unknown ;;
16666 esac
16667fi
16668
16669
16670# The else clause should only fire when bootstrapping the
16671# libtool distribution, otherwise you forgot to ship ltmain.sh
16672# with your package, and you will get complaints that there are
16673# no rules to generate ltmain.sh.
16674if test -f "$ltmain"; then
16675 # See if we are running on zsh, and set the options which allow our commands through
16676 # without removal of \ escapes.
16677 if test -n "${ZSH_VERSION+set}" ; then
16678 setopt NO_GLOB_SUBST
16679 fi
16680 # Now quote all the things that may contain metacharacters while being
16681 # careful not to overquote the AC_SUBSTed values. We take copies of the
16682 # variables and quote the copies for generation of the libtool script.
16683 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16686 deplibs_check_method reload_flag reload_cmds need_locks \
16687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16688 lt_cv_sys_global_symbol_to_c_name_address \
16689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16690 old_postinstall_cmds old_postuninstall_cmds \
16691 compiler_GCJ \
16692 CC_GCJ \
16693 LD_GCJ \
16694 lt_prog_compiler_wl_GCJ \
16695 lt_prog_compiler_pic_GCJ \
16696 lt_prog_compiler_static_GCJ \
16697 lt_prog_compiler_no_builtin_flag_GCJ \
16698 export_dynamic_flag_spec_GCJ \
16699 thread_safe_flag_spec_GCJ \
16700 whole_archive_flag_spec_GCJ \
16701 enable_shared_with_static_runtimes_GCJ \
16702 old_archive_cmds_GCJ \
16703 old_archive_from_new_cmds_GCJ \
16704 predep_objects_GCJ \
16705 postdep_objects_GCJ \
16706 predeps_GCJ \
16707 postdeps_GCJ \
16708 compiler_lib_search_path_GCJ \
16709 archive_cmds_GCJ \
16710 archive_expsym_cmds_GCJ \
16711 postinstall_cmds_GCJ \
16712 postuninstall_cmds_GCJ \
16713 old_archive_from_expsyms_cmds_GCJ \
16714 allow_undefined_flag_GCJ \
16715 no_undefined_flag_GCJ \
16716 export_symbols_cmds_GCJ \
16717 hardcode_libdir_flag_spec_GCJ \
16718 hardcode_libdir_flag_spec_ld_GCJ \
16719 hardcode_libdir_separator_GCJ \
16720 hardcode_automatic_GCJ \
16721 module_cmds_GCJ \
16722 module_expsym_cmds_GCJ \
16723 lt_cv_prog_compiler_c_o_GCJ \
16724 exclude_expsyms_GCJ \
16725 include_expsyms_GCJ; do
16726
16727 case $var in
16728 old_archive_cmds_GCJ | \
16729 old_archive_from_new_cmds_GCJ | \
16730 archive_cmds_GCJ | \
16731 archive_expsym_cmds_GCJ | \
16732 module_cmds_GCJ | \
16733 module_expsym_cmds_GCJ | \
16734 old_archive_from_expsyms_cmds_GCJ | \
16735 export_symbols_cmds_GCJ | \
16736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16737 postinstall_cmds | postuninstall_cmds | \
16738 old_postinstall_cmds | old_postuninstall_cmds | \
16739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16740 # Double-quote double-evaled strings.
16741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16742 ;;
16743 *)
16744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16745 ;;
16746 esac
16747 done
16748
16749 case $lt_echo in
16750 *'\$0 --fallback-echo"')
16751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16752 ;;
16753 esac
16754
16755cfgfile="$ofile"
16756
16757 cat <<__EOF__ >> "$cfgfile"
16758# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16759
16760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761
16762# Shell to use when invoking shell scripts.
16763SHELL=$lt_SHELL
16764
16765# Whether or not to build shared libraries.
16766build_libtool_libs=$enable_shared
16767
16768# Whether or not to build static libraries.
16769build_old_libs=$enable_static
16770
16771# Whether or not to add -lc for building shared libraries.
16772build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16773
16774# Whether or not to disallow shared libs when runtime libs are static
16775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16776
16777# Whether or not to optimize for fast installation.
16778fast_install=$enable_fast_install
16779
16780# The host system.
16781host_alias=$host_alias
16782host=$host
16783
16784# An echo program that does not interpret backslashes.
16785echo=$lt_echo
16786
16787# The archiver.
16788AR=$lt_AR
16789AR_FLAGS=$lt_AR_FLAGS
16790
16791# A C compiler.
16792LTCC=$lt_LTCC
16793
16794# A language-specific compiler.
16795CC=$lt_compiler_GCJ
16796
16797# Is the compiler the GNU C compiler?
16798with_gcc=$GCC_GCJ
16799
16800# An ERE matcher.
16801EGREP=$lt_EGREP
16802
16803# The linker used to build libraries.
16804LD=$lt_LD_GCJ
16805
16806# Whether we need hard or soft links.
16807LN_S=$lt_LN_S
16808
16809# A BSD-compatible nm program.
16810NM=$lt_NM
16811
16812# A symbol stripping program
16813STRIP=$STRIP
16814
16815# Used to examine libraries when file_magic_cmd begins "file"
16816MAGIC_CMD=$MAGIC_CMD
16817
16818# Used on cygwin: DLL creation program.
16819DLLTOOL="$DLLTOOL"
16820
16821# Used on cygwin: object dumper.
16822OBJDUMP="$OBJDUMP"
16823
16824# Used on cygwin: assembler.
16825AS="$AS"
16826
16827# The name of the directory that contains temporary libtool files.
16828objdir=$objdir
16829
16830# How to create reloadable object files.
16831reload_flag=$lt_reload_flag
16832reload_cmds=$lt_reload_cmds
16833
16834# How to pass a linker flag through the compiler.
16835wl=$lt_lt_prog_compiler_wl_GCJ
16836
16837# Object file suffix (normally "o").
16838objext="$ac_objext"
16839
16840# Old archive suffix (normally "a").
16841libext="$libext"
16842
16843# Shared library suffix (normally ".so").
16844shrext='$shrext'
16845
16846# Executable file suffix (normally "").
16847exeext="$exeext"
16848
16849# Additional compiler flags for building library objects.
16850pic_flag=$lt_lt_prog_compiler_pic_GCJ
16851pic_mode=$pic_mode
16852
16853# What is the maximum length of a command?
16854max_cmd_len=$lt_cv_sys_max_cmd_len
16855
16856# Does compiler simultaneously support -c and -o options?
16857compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16858
16859# Must we lock files when doing compilation ?
16860need_locks=$lt_need_locks
16861
16862# Do we need the lib prefix for modules?
16863need_lib_prefix=$need_lib_prefix
16864
16865# Do we need a version for libraries?
16866need_version=$need_version
16867
16868# Whether dlopen is supported.
16869dlopen_support=$enable_dlopen
16870
16871# Whether dlopen of programs is supported.
16872dlopen_self=$enable_dlopen_self
16873
16874# Whether dlopen of statically linked programs is supported.
16875dlopen_self_static=$enable_dlopen_self_static
16876
16877# Compiler flag to prevent dynamic linking.
16878link_static_flag=$lt_lt_prog_compiler_static_GCJ
16879
16880# Compiler flag to turn off builtin functions.
16881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16882
16883# Compiler flag to allow reflexive dlopens.
16884export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16885
16886# Compiler flag to generate shared objects directly from archives.
16887whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16888
16889# Compiler flag to generate thread-safe objects.
16890thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16891
16892# Library versioning type.
16893version_type=$version_type
16894
16895# Format of library name prefix.
16896libname_spec=$lt_libname_spec
16897
16898# List of archive names. First name is the real one, the rest are links.
16899# The last name is the one that the linker finds with -lNAME.
16900library_names_spec=$lt_library_names_spec
16901
16902# The coded name of the library, if different from the real name.
16903soname_spec=$lt_soname_spec
16904
16905# Commands used to build and install an old-style archive.
16906RANLIB=$lt_RANLIB
16907old_archive_cmds=$lt_old_archive_cmds_GCJ
16908old_postinstall_cmds=$lt_old_postinstall_cmds
16909old_postuninstall_cmds=$lt_old_postuninstall_cmds
16910
16911# Create an old-style archive from a shared archive.
16912old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16913
16914# Create a temporary old-style archive to link instead of a shared archive.
16915old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16916
16917# Commands used to build and install a shared archive.
16918archive_cmds=$lt_archive_cmds_GCJ
16919archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16920postinstall_cmds=$lt_postinstall_cmds
16921postuninstall_cmds=$lt_postuninstall_cmds
16922
16923# Commands used to build a loadable module (assumed same as above if empty)
16924module_cmds=$lt_module_cmds_GCJ
16925module_expsym_cmds=$lt_module_expsym_cmds_GCJ
16926
16927# Commands to strip libraries.
16928old_striplib=$lt_old_striplib
16929striplib=$lt_striplib
16930
16931# Dependencies to place before the objects being linked to create a
16932# shared library.
16933predep_objects=$lt_predep_objects_GCJ
16934
16935# Dependencies to place after the objects being linked to create a
16936# shared library.
16937postdep_objects=$lt_postdep_objects_GCJ
16938
16939# Dependencies to place before the objects being linked to create a
16940# shared library.
16941predeps=$lt_predeps_GCJ
16942
16943# Dependencies to place after the objects being linked to create a
16944# shared library.
16945postdeps=$lt_postdeps_GCJ
16946
16947# The library search path used internally by the compiler when linking
16948# a shared library.
16949compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16950
16951# Method to check whether dependent libraries are shared objects.
16952deplibs_check_method=$lt_deplibs_check_method
16953
16954# Command to use when deplibs_check_method == file_magic.
16955file_magic_cmd=$lt_file_magic_cmd
16956
16957# Flag that allows shared libraries with undefined symbols to be built.
16958allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16959
16960# Flag that forces no undefined symbols.
16961no_undefined_flag=$lt_no_undefined_flag_GCJ
16962
16963# Commands used to finish a libtool library installation in a directory.
16964finish_cmds=$lt_finish_cmds
16965
16966# Same as above, but a single script fragment to be evaled but not shown.
16967finish_eval=$lt_finish_eval
16968
16969# Take the output of nm and produce a listing of raw symbols and C names.
16970global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16971
16972# Transform the output of nm in a proper C declaration
16973global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16974
16975# Transform the output of nm in a C name address pair
16976global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16977
16978# This is the shared library runtime path variable.
16979runpath_var=$runpath_var
16980
16981# This is the shared library path variable.
16982shlibpath_var=$shlibpath_var
16983
16984# Is shlibpath searched before the hard-coded library search path?
16985shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16986
16987# How to hardcode a shared library path into an executable.
16988hardcode_action=$hardcode_action_GCJ
16989
16990# Whether we should hardcode library paths into libraries.
16991hardcode_into_libs=$hardcode_into_libs
16992
16993# Flag to hardcode \$libdir into a binary during linking.
16994# This must work even if \$libdir does not exist.
16995hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16996
16997# If ld is used when linking, flag to hardcode \$libdir into
16998# a binary during linking. This must work even if \$libdir does
16999# not exist.
17000hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17001
17002# Whether we need a single -rpath flag with a separated argument.
17003hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17004
17005# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17006# resulting binary.
17007hardcode_direct=$hardcode_direct_GCJ
17008
17009# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17010# resulting binary.
17011hardcode_minus_L=$hardcode_minus_L_GCJ
17012
17013# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17014# the resulting binary.
17015hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17016
17017# Set to yes if building a shared library automatically hardcodes DIR into the library
17018# and all subsequent libraries and executables linked against it.
17019hardcode_automatic=$hardcode_automatic_GCJ
17020
17021# Variables whose values should be saved in libtool wrapper scripts and
17022# restored at relink time.
17023variables_saved_for_relink="$variables_saved_for_relink"
17024
17025# Whether libtool must link a program against all its dependency libraries.
17026link_all_deplibs=$link_all_deplibs_GCJ
17027
17028# Compile-time system search path for libraries
17029sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17030
17031# Run-time system search path for libraries
17032sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17033
17034# Fix the shell variable \$srcfile for the compiler.
17035fix_srcfile_path="$fix_srcfile_path_GCJ"
17036
17037# Set to yes if exported symbols are required.
17038always_export_symbols=$always_export_symbols_GCJ
17039
17040# The commands to list exported symbols.
17041export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17042
17043# The commands to extract the exported symbol list from a shared archive.
17044extract_expsyms_cmds=$lt_extract_expsyms_cmds
17045
17046# Symbols that should not be listed in the preloaded symbols.
17047exclude_expsyms=$lt_exclude_expsyms_GCJ
17048
17049# Symbols that must always be exported.
17050include_expsyms=$lt_include_expsyms_GCJ
17051
17052# ### END LIBTOOL TAG CONFIG: $tagname
17053
17054__EOF__
17055
17056
17057else
17058 # If there is no Makefile yet, we rely on a make rule to execute
17059 # `config.status --recheck' to rerun these tests and create the
17060 # libtool script then.
17061 test -f Makefile && make "$ltmain"
17062fi
17063
17064
17065ac_ext=c
17066ac_cpp='$CPP $CPPFLAGS'
17067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17069ac_compiler_gnu=$ac_cv_c_compiler_gnu
17070
17071CC="$lt_save_CC"
17072
17073 else
17074 tagname=""
17075 fi
17076 ;;
17077
17078 RC)
17079
17080
17081
17082# Source file extension for RC test sources.
17083ac_ext=rc
17084
17085# Object file extension for compiled RC test sources.
17086objext=o
17087objext_RC=$objext
17088
17089# Code to be used in simple compile tests
17090lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17091
17092# Code to be used in simple link tests
17093lt_simple_link_test_code="$lt_simple_compile_test_code"
17094
17095# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17096
17097# If no C compiler was specified, use CC.
17098LTCC=${LTCC-"$CC"}
17099
17100# Allow CC to be a program name with arguments.
17101compiler=$CC
17102
17103
17104# Allow CC to be a program name with arguments.
17105lt_save_CC="$CC"
17106CC=${RC-"windres"}
17107compiler=$CC
17108compiler_RC=$CC
17109lt_cv_prog_compiler_c_o_RC=yes
17110
17111# The else clause should only fire when bootstrapping the
17112# libtool distribution, otherwise you forgot to ship ltmain.sh
17113# with your package, and you will get complaints that there are
17114# no rules to generate ltmain.sh.
17115if test -f "$ltmain"; then
17116 # See if we are running on zsh, and set the options which allow our commands through
17117 # without removal of \ escapes.
17118 if test -n "${ZSH_VERSION+set}" ; then
17119 setopt NO_GLOB_SUBST
17120 fi
17121 # Now quote all the things that may contain metacharacters while being
17122 # careful not to overquote the AC_SUBSTed values. We take copies of the
17123 # variables and quote the copies for generation of the libtool script.
17124 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17125 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17126 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17127 deplibs_check_method reload_flag reload_cmds need_locks \
17128 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17129 lt_cv_sys_global_symbol_to_c_name_address \
17130 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17131 old_postinstall_cmds old_postuninstall_cmds \
17132 compiler_RC \
17133 CC_RC \
17134 LD_RC \
17135 lt_prog_compiler_wl_RC \
17136 lt_prog_compiler_pic_RC \
17137 lt_prog_compiler_static_RC \
17138 lt_prog_compiler_no_builtin_flag_RC \
17139 export_dynamic_flag_spec_RC \
17140 thread_safe_flag_spec_RC \
17141 whole_archive_flag_spec_RC \
17142 enable_shared_with_static_runtimes_RC \
17143 old_archive_cmds_RC \
17144 old_archive_from_new_cmds_RC \
17145 predep_objects_RC \
17146 postdep_objects_RC \
17147 predeps_RC \
17148 postdeps_RC \
17149 compiler_lib_search_path_RC \
17150 archive_cmds_RC \
17151 archive_expsym_cmds_RC \
17152 postinstall_cmds_RC \
17153 postuninstall_cmds_RC \
17154 old_archive_from_expsyms_cmds_RC \
17155 allow_undefined_flag_RC \
17156 no_undefined_flag_RC \
17157 export_symbols_cmds_RC \
17158 hardcode_libdir_flag_spec_RC \
17159 hardcode_libdir_flag_spec_ld_RC \
17160 hardcode_libdir_separator_RC \
17161 hardcode_automatic_RC \
17162 module_cmds_RC \
17163 module_expsym_cmds_RC \
17164 lt_cv_prog_compiler_c_o_RC \
17165 exclude_expsyms_RC \
17166 include_expsyms_RC; do
17167
17168 case $var in
17169 old_archive_cmds_RC | \
17170 old_archive_from_new_cmds_RC | \
17171 archive_cmds_RC | \
17172 archive_expsym_cmds_RC | \
17173 module_cmds_RC | \
17174 module_expsym_cmds_RC | \
17175 old_archive_from_expsyms_cmds_RC | \
17176 export_symbols_cmds_RC | \
17177 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17178 postinstall_cmds | postuninstall_cmds | \
17179 old_postinstall_cmds | old_postuninstall_cmds | \
17180 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17181 # Double-quote double-evaled strings.
17182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17183 ;;
17184 *)
17185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17186 ;;
17187 esac
17188 done
17189
17190 case $lt_echo in
17191 *'\$0 --fallback-echo"')
17192 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17193 ;;
17194 esac
17195
17196cfgfile="$ofile"
17197
17198 cat <<__EOF__ >> "$cfgfile"
17199# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17200
17201# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17202
17203# Shell to use when invoking shell scripts.
17204SHELL=$lt_SHELL
17205
17206# Whether or not to build shared libraries.
17207build_libtool_libs=$enable_shared
17208
17209# Whether or not to build static libraries.
17210build_old_libs=$enable_static
17211
17212# Whether or not to add -lc for building shared libraries.
17213build_libtool_need_lc=$archive_cmds_need_lc_RC
17214
17215# Whether or not to disallow shared libs when runtime libs are static
17216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17217
17218# Whether or not to optimize for fast installation.
17219fast_install=$enable_fast_install
17220
17221# The host system.
17222host_alias=$host_alias
17223host=$host
17224
17225# An echo program that does not interpret backslashes.
17226echo=$lt_echo
17227
17228# The archiver.
17229AR=$lt_AR
17230AR_FLAGS=$lt_AR_FLAGS
17231
17232# A C compiler.
17233LTCC=$lt_LTCC
17234
17235# A language-specific compiler.
17236CC=$lt_compiler_RC
17237
17238# Is the compiler the GNU C compiler?
17239with_gcc=$GCC_RC
17240
17241# An ERE matcher.
17242EGREP=$lt_EGREP
17243
17244# The linker used to build libraries.
17245LD=$lt_LD_RC
17246
17247# Whether we need hard or soft links.
17248LN_S=$lt_LN_S
17249
17250# A BSD-compatible nm program.
17251NM=$lt_NM
17252
17253# A symbol stripping program
17254STRIP=$STRIP
17255
17256# Used to examine libraries when file_magic_cmd begins "file"
17257MAGIC_CMD=$MAGIC_CMD
17258
17259# Used on cygwin: DLL creation program.
17260DLLTOOL="$DLLTOOL"
17261
17262# Used on cygwin: object dumper.
17263OBJDUMP="$OBJDUMP"
17264
17265# Used on cygwin: assembler.
17266AS="$AS"
17267
17268# The name of the directory that contains temporary libtool files.
17269objdir=$objdir
17270
17271# How to create reloadable object files.
17272reload_flag=$lt_reload_flag
17273reload_cmds=$lt_reload_cmds
17274
17275# How to pass a linker flag through the compiler.
17276wl=$lt_lt_prog_compiler_wl_RC
17277
17278# Object file suffix (normally "o").
17279objext="$ac_objext"
17280
17281# Old archive suffix (normally "a").
17282libext="$libext"
17283
17284# Shared library suffix (normally ".so").
17285shrext='$shrext'
17286
17287# Executable file suffix (normally "").
17288exeext="$exeext"
17289
17290# Additional compiler flags for building library objects.
17291pic_flag=$lt_lt_prog_compiler_pic_RC
17292pic_mode=$pic_mode
17293
17294# What is the maximum length of a command?
17295max_cmd_len=$lt_cv_sys_max_cmd_len
17296
17297# Does compiler simultaneously support -c and -o options?
17298compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17299
17300# Must we lock files when doing compilation ?
17301need_locks=$lt_need_locks
17302
17303# Do we need the lib prefix for modules?
17304need_lib_prefix=$need_lib_prefix
17305
17306# Do we need a version for libraries?
17307need_version=$need_version
17308
17309# Whether dlopen is supported.
17310dlopen_support=$enable_dlopen
17311
17312# Whether dlopen of programs is supported.
17313dlopen_self=$enable_dlopen_self
17314
17315# Whether dlopen of statically linked programs is supported.
17316dlopen_self_static=$enable_dlopen_self_static
17317
17318# Compiler flag to prevent dynamic linking.
17319link_static_flag=$lt_lt_prog_compiler_static_RC
17320
17321# Compiler flag to turn off builtin functions.
17322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17323
17324# Compiler flag to allow reflexive dlopens.
17325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17326
17327# Compiler flag to generate shared objects directly from archives.
17328whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17329
17330# Compiler flag to generate thread-safe objects.
17331thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17332
17333# Library versioning type.
17334version_type=$version_type
17335
17336# Format of library name prefix.
17337libname_spec=$lt_libname_spec
17338
17339# List of archive names. First name is the real one, the rest are links.
17340# The last name is the one that the linker finds with -lNAME.
17341library_names_spec=$lt_library_names_spec
17342
17343# The coded name of the library, if different from the real name.
17344soname_spec=$lt_soname_spec
17345
17346# Commands used to build and install an old-style archive.
17347RANLIB=$lt_RANLIB
17348old_archive_cmds=$lt_old_archive_cmds_RC
17349old_postinstall_cmds=$lt_old_postinstall_cmds
17350old_postuninstall_cmds=$lt_old_postuninstall_cmds
17351
17352# Create an old-style archive from a shared archive.
17353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17354
17355# Create a temporary old-style archive to link instead of a shared archive.
17356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17357
17358# Commands used to build and install a shared archive.
17359archive_cmds=$lt_archive_cmds_RC
17360archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17361postinstall_cmds=$lt_postinstall_cmds
17362postuninstall_cmds=$lt_postuninstall_cmds
17363
17364# Commands used to build a loadable module (assumed same as above if empty)
17365module_cmds=$lt_module_cmds_RC
17366module_expsym_cmds=$lt_module_expsym_cmds_RC
17367
17368# Commands to strip libraries.
17369old_striplib=$lt_old_striplib
17370striplib=$lt_striplib
17371
17372# Dependencies to place before the objects being linked to create a
17373# shared library.
17374predep_objects=$lt_predep_objects_RC
17375
17376# Dependencies to place after the objects being linked to create a
17377# shared library.
17378postdep_objects=$lt_postdep_objects_RC
17379
17380# Dependencies to place before the objects being linked to create a
17381# shared library.
17382predeps=$lt_predeps_RC
17383
17384# Dependencies to place after the objects being linked to create a
17385# shared library.
17386postdeps=$lt_postdeps_RC
17387
17388# The library search path used internally by the compiler when linking
17389# a shared library.
17390compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17391
17392# Method to check whether dependent libraries are shared objects.
17393deplibs_check_method=$lt_deplibs_check_method
17394
17395# Command to use when deplibs_check_method == file_magic.
17396file_magic_cmd=$lt_file_magic_cmd
17397
17398# Flag that allows shared libraries with undefined symbols to be built.
17399allow_undefined_flag=$lt_allow_undefined_flag_RC
17400
17401# Flag that forces no undefined symbols.
17402no_undefined_flag=$lt_no_undefined_flag_RC
17403
17404# Commands used to finish a libtool library installation in a directory.
17405finish_cmds=$lt_finish_cmds
17406
17407# Same as above, but a single script fragment to be evaled but not shown.
17408finish_eval=$lt_finish_eval
17409
17410# Take the output of nm and produce a listing of raw symbols and C names.
17411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17412
17413# Transform the output of nm in a proper C declaration
17414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17415
17416# Transform the output of nm in a C name address pair
17417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17418
17419# This is the shared library runtime path variable.
17420runpath_var=$runpath_var
17421
17422# This is the shared library path variable.
17423shlibpath_var=$shlibpath_var
17424
17425# Is shlibpath searched before the hard-coded library search path?
17426shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17427
17428# How to hardcode a shared library path into an executable.
17429hardcode_action=$hardcode_action_RC
17430
17431# Whether we should hardcode library paths into libraries.
17432hardcode_into_libs=$hardcode_into_libs
17433
17434# Flag to hardcode \$libdir into a binary during linking.
17435# This must work even if \$libdir does not exist.
17436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17437
17438# If ld is used when linking, flag to hardcode \$libdir into
17439# a binary during linking. This must work even if \$libdir does
17440# not exist.
17441hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17442
17443# Whether we need a single -rpath flag with a separated argument.
17444hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17445
17446# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17447# resulting binary.
17448hardcode_direct=$hardcode_direct_RC
17449
17450# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17451# resulting binary.
17452hardcode_minus_L=$hardcode_minus_L_RC
17453
17454# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17455# the resulting binary.
17456hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17457
17458# Set to yes if building a shared library automatically hardcodes DIR into the library
17459# and all subsequent libraries and executables linked against it.
17460hardcode_automatic=$hardcode_automatic_RC
17461
17462# Variables whose values should be saved in libtool wrapper scripts and
17463# restored at relink time.
17464variables_saved_for_relink="$variables_saved_for_relink"
17465
17466# Whether libtool must link a program against all its dependency libraries.
17467link_all_deplibs=$link_all_deplibs_RC
17468
17469# Compile-time system search path for libraries
17470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17471
17472# Run-time system search path for libraries
17473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17474
17475# Fix the shell variable \$srcfile for the compiler.
17476fix_srcfile_path="$fix_srcfile_path_RC"
17477
17478# Set to yes if exported symbols are required.
17479always_export_symbols=$always_export_symbols_RC
17480
17481# The commands to list exported symbols.
17482export_symbols_cmds=$lt_export_symbols_cmds_RC
17483
17484# The commands to extract the exported symbol list from a shared archive.
17485extract_expsyms_cmds=$lt_extract_expsyms_cmds
17486
17487# Symbols that should not be listed in the preloaded symbols.
17488exclude_expsyms=$lt_exclude_expsyms_RC
17489
17490# Symbols that must always be exported.
17491include_expsyms=$lt_include_expsyms_RC
17492
17493# ### END LIBTOOL TAG CONFIG: $tagname
17494
17495__EOF__
17496
17497
17498else
17499 # If there is no Makefile yet, we rely on a make rule to execute
17500 # `config.status --recheck' to rerun these tests and create the
17501 # libtool script then.
17502 test -f Makefile && make "$ltmain"
17503fi
17504
17505
17506ac_ext=c
17507ac_cpp='$CPP $CPPFLAGS'
17508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510ac_compiler_gnu=$ac_cv_c_compiler_gnu
17511
17512CC="$lt_save_CC"
17513
17514 ;;
17515
17516 *)
17517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17518echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17519 { (exit 1); exit 1; }; }
17520 ;;
17521 esac
17522
17523 # Append the new tag name to the list of available tags.
17524 if test -n "$tagname" ; then
17525 available_tags="$available_tags $tagname"
17526 fi
17527 fi
17528 done
17529 IFS="$lt_save_ifs"
17530
17531 # Now substitute the updated list of available tags.
17532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17533 mv "${ofile}T" "$ofile"
17534 chmod +x "$ofile"
17535 else
17536 rm -f "${ofile}T"
17537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17538echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17539 { (exit 1); exit 1; }; }
17540 fi
17541fi
John Criswell7a73b802003-06-30 21:59:07 +000017542
17543
17544
17545# This can be used to rebuild libtool when needed
17546LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17547
17548# Always use our own libtool.
17549LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17550
17551# Prevent multiple expansion
17552
17553
17554
John Criswell47fdd832003-07-14 16:52:07 +000017555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
John Criswell7a73b802003-06-30 21:59:07 +000017573# Extract the first word of "ar", so it can be a program name with args.
17574set dummy ar; ac_word=$2
17575echo "$as_me:$LINENO: checking for $ac_word" >&5
17576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17577if test "${ac_cv_path_AR+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 case $AR in
17581 [\\/]* | ?:[\\/]*)
17582 ac_cv_path_AR="$AR" # Let the user override the test with a path.
17583 ;;
17584 *)
17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586for as_dir in $PATH
17587do
17588 IFS=$as_save_IFS
17589 test -z "$as_dir" && as_dir=.
17590 for ac_exec_ext in '' $ac_executable_extensions; do
17591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17592 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17594 break 2
17595 fi
17596done
17597done
17598
17599 ;;
17600esac
17601fi
17602AR=$ac_cv_path_AR
17603
17604if test -n "$AR"; then
17605 echo "$as_me:$LINENO: result: $AR" >&5
17606echo "${ECHO_T}$AR" >&6
17607else
17608 echo "$as_me:$LINENO: result: no" >&5
17609echo "${ECHO_T}no" >&6
17610fi
17611
17612# Extract the first word of "sed", so it can be a program name with args.
17613set dummy sed; ac_word=$2
17614echo "$as_me:$LINENO: checking for $ac_word" >&5
17615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17616if test "${ac_cv_path_SED+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618else
17619 case $SED in
17620 [\\/]* | ?:[\\/]*)
17621 ac_cv_path_SED="$SED" # Let the user override the test with a path.
17622 ;;
17623 *)
17624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17625for as_dir in $PATH
17626do
17627 IFS=$as_save_IFS
17628 test -z "$as_dir" && as_dir=.
17629 for ac_exec_ext in '' $ac_executable_extensions; do
17630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17631 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17633 break 2
17634 fi
17635done
17636done
17637
17638 ;;
17639esac
17640fi
17641SED=$ac_cv_path_SED
17642
17643if test -n "$SED"; then
17644 echo "$as_me:$LINENO: result: $SED" >&5
17645echo "${ECHO_T}$SED" >&6
17646else
17647 echo "$as_me:$LINENO: result: no" >&5
17648echo "${ECHO_T}no" >&6
17649fi
17650
17651# Extract the first word of "rm", so it can be a program name with args.
17652set dummy rm; ac_word=$2
17653echo "$as_me:$LINENO: checking for $ac_word" >&5
17654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17655if test "${ac_cv_path_RM+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657else
17658 case $RM in
17659 [\\/]* | ?:[\\/]*)
17660 ac_cv_path_RM="$RM" # Let the user override the test with a path.
17661 ;;
17662 *)
17663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664for as_dir in $PATH
17665do
17666 IFS=$as_save_IFS
17667 test -z "$as_dir" && as_dir=.
17668 for ac_exec_ext in '' $ac_executable_extensions; do
17669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
17671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17672 break 2
17673 fi
17674done
17675done
17676
17677 ;;
17678esac
17679fi
17680RM=$ac_cv_path_RM
17681
17682if test -n "$RM"; then
17683 echo "$as_me:$LINENO: result: $RM" >&5
17684echo "${ECHO_T}$RM" >&6
17685else
17686 echo "$as_me:$LINENO: result: no" >&5
17687echo "${ECHO_T}no" >&6
17688fi
17689
17690# Extract the first word of "echo", so it can be a program name with args.
17691set dummy echo; ac_word=$2
17692echo "$as_me:$LINENO: checking for $ac_word" >&5
17693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17694if test "${ac_cv_path_ECHO+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696else
17697 case $ECHO in
17698 [\\/]* | ?:[\\/]*)
17699 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
17700 ;;
17701 *)
17702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703for as_dir in $PATH
17704do
17705 IFS=$as_save_IFS
17706 test -z "$as_dir" && as_dir=.
17707 for ac_exec_ext in '' $ac_executable_extensions; do
17708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
17710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17711 break 2
17712 fi
17713done
17714done
17715
17716 ;;
17717esac
17718fi
17719ECHO=$ac_cv_path_ECHO
17720
17721if test -n "$ECHO"; then
17722 echo "$as_me:$LINENO: result: $ECHO" >&5
17723echo "${ECHO_T}$ECHO" >&6
17724else
17725 echo "$as_me:$LINENO: result: no" >&5
17726echo "${ECHO_T}no" >&6
17727fi
17728
17729# Extract the first word of "mkdir", so it can be a program name with args.
17730set dummy mkdir; ac_word=$2
17731echo "$as_me:$LINENO: checking for $ac_word" >&5
17732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17733if test "${ac_cv_path_MKDIR+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735else
17736 case $MKDIR in
17737 [\\/]* | ?:[\\/]*)
17738 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
17739 ;;
17740 *)
17741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742for as_dir in $PATH
17743do
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
17746 for ac_exec_ext in '' $ac_executable_extensions; do
17747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
17749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17750 break 2
17751 fi
17752done
17753done
17754
17755 ;;
17756esac
17757fi
17758MKDIR=$ac_cv_path_MKDIR
17759
17760if test -n "$MKDIR"; then
17761 echo "$as_me:$LINENO: result: $MKDIR" >&5
17762echo "${ECHO_T}$MKDIR" >&6
17763else
17764 echo "$as_me:$LINENO: result: no" >&5
17765echo "${ECHO_T}no" >&6
17766fi
17767
17768# Extract the first word of "date", so it can be a program name with args.
17769set dummy date; ac_word=$2
17770echo "$as_me:$LINENO: checking for $ac_word" >&5
17771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17772if test "${ac_cv_path_DATE+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 case $DATE in
17776 [\\/]* | ?:[\\/]*)
17777 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
17778 ;;
17779 *)
17780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781for as_dir in $PATH
17782do
17783 IFS=$as_save_IFS
17784 test -z "$as_dir" && as_dir=.
17785 for ac_exec_ext in '' $ac_executable_extensions; do
17786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17787 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
17788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17789 break 2
17790 fi
17791done
17792done
17793
17794 ;;
17795esac
17796fi
17797DATE=$ac_cv_path_DATE
17798
17799if test -n "$DATE"; then
17800 echo "$as_me:$LINENO: result: $DATE" >&5
17801echo "${ECHO_T}$DATE" >&6
17802else
17803 echo "$as_me:$LINENO: result: no" >&5
17804echo "${ECHO_T}no" >&6
17805fi
17806
17807# Extract the first word of "mv", so it can be a program name with args.
17808set dummy mv; ac_word=$2
17809echo "$as_me:$LINENO: checking for $ac_word" >&5
17810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17811if test "${ac_cv_path_MV+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17813else
17814 case $MV in
17815 [\\/]* | ?:[\\/]*)
17816 ac_cv_path_MV="$MV" # Let the user override the test with a path.
17817 ;;
17818 *)
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820for as_dir in $PATH
17821do
17822 IFS=$as_save_IFS
17823 test -z "$as_dir" && as_dir=.
17824 for ac_exec_ext in '' $ac_executable_extensions; do
17825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
17827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17828 break 2
17829 fi
17830done
17831done
17832
17833 ;;
17834esac
17835fi
17836MV=$ac_cv_path_MV
17837
17838if test -n "$MV"; then
17839 echo "$as_me:$LINENO: result: $MV" >&5
17840echo "${ECHO_T}$MV" >&6
17841else
17842 echo "$as_me:$LINENO: result: no" >&5
17843echo "${ECHO_T}no" >&6
17844fi
17845
17846# Extract the first word of "dot", so it can be a program name with args.
17847set dummy dot; ac_word=$2
17848echo "$as_me:$LINENO: checking for $ac_word" >&5
17849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17850if test "${ac_cv_path_DOT+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852else
17853 case $DOT in
17854 [\\/]* | ?:[\\/]*)
17855 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
17856 ;;
17857 *)
17858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859for as_dir in $PATH
17860do
17861 IFS=$as_save_IFS
17862 test -z "$as_dir" && as_dir=.
17863 for ac_exec_ext in '' $ac_executable_extensions; do
17864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17865 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
17866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17867 break 2
17868 fi
17869done
17870done
17871
17872 ;;
17873esac
17874fi
17875DOT=$ac_cv_path_DOT
17876
17877if test -n "$DOT"; then
17878 echo "$as_me:$LINENO: result: $DOT" >&5
17879echo "${ECHO_T}$DOT" >&6
17880else
17881 echo "$as_me:$LINENO: result: no" >&5
17882echo "${ECHO_T}no" >&6
17883fi
17884
17885# Extract the first word of "etags", so it can be a program name with args.
17886set dummy etags; ac_word=$2
17887echo "$as_me:$LINENO: checking for $ac_word" >&5
17888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17889if test "${ac_cv_path_ETAGS+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 case $ETAGS in
17893 [\\/]* | ?:[\\/]*)
17894 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
17895 ;;
17896 *)
17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17898for as_dir in $PATH
17899do
17900 IFS=$as_save_IFS
17901 test -z "$as_dir" && as_dir=.
17902 for ac_exec_ext in '' $ac_executable_extensions; do
17903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17904 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
17905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17906 break 2
17907 fi
17908done
17909done
17910
17911 ;;
17912esac
17913fi
17914ETAGS=$ac_cv_path_ETAGS
17915
17916if test -n "$ETAGS"; then
17917 echo "$as_me:$LINENO: result: $ETAGS" >&5
17918echo "${ECHO_T}$ETAGS" >&6
17919else
17920 echo "$as_me:$LINENO: result: no" >&5
17921echo "${ECHO_T}no" >&6
17922fi
17923
17924# Extract the first word of "purify", so it can be a program name with args.
17925set dummy purify; ac_word=$2
17926echo "$as_me:$LINENO: checking for $ac_word" >&5
17927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17928if test "${ac_cv_path_PURIFY+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930else
17931 case $PURIFY in
17932 [\\/]* | ?:[\\/]*)
17933 ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
17934 ;;
17935 *)
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937for as_dir in $PATH
17938do
17939 IFS=$as_save_IFS
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943 ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
17944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17945 break 2
17946 fi
17947done
17948done
17949
17950 ;;
17951esac
17952fi
17953PURIFY=$ac_cv_path_PURIFY
17954
17955if test -n "$PURIFY"; then
17956 echo "$as_me:$LINENO: result: $PURIFY" >&5
17957echo "${ECHO_T}$PURIFY" >&6
17958else
17959 echo "$as_me:$LINENO: result: no" >&5
17960echo "${ECHO_T}no" >&6
17961fi
17962
17963
17964
17965
17966
17967
17968echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17969echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
17970if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17971 echo $ECHO_N "(cached) $ECHO_C" >&6
17972else
17973 ac_check_lib_save_LIBS=$LIBS
17974LIBS="-lelf $LIBS"
17975cat >conftest.$ac_ext <<_ACEOF
17976#line $LINENO "configure"
17977#include "confdefs.h"
17978
17979/* Override any gcc2 internal prototype to avoid an error. */
17980#ifdef __cplusplus
17981extern "C"
17982#endif
17983/* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17985char elf_begin ();
17986#ifdef F77_DUMMY_MAIN
17987# ifdef __cplusplus
17988 extern "C"
17989# endif
17990 int F77_DUMMY_MAIN() { return 1; }
17991#endif
17992int
17993main ()
17994{
17995elf_begin ();
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext conftest$ac_exeext
18001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
18006 { ac_try='test -s conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_lib_elf_elf_begin=yes
18013else
18014 echo "$as_me: failed program was:" >&5
18015cat conftest.$ac_ext >&5
18016ac_cv_lib_elf_elf_begin=no
18017fi
18018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18019LIBS=$ac_check_lib_save_LIBS
18020fi
18021echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18022echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18023if test $ac_cv_lib_elf_elf_begin = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025#define HAVE_LIBELF 1
18026_ACEOF
18027
18028 LIBS="-lelf $LIBS"
18029
18030fi
18031
18032
18033echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18034echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18035if test "${ac_cv_search_dlopen+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 ac_func_search_save_LIBS=$LIBS
18039ac_cv_search_dlopen=no
18040cat >conftest.$ac_ext <<_ACEOF
18041#line $LINENO "configure"
18042#include "confdefs.h"
18043
18044/* Override any gcc2 internal prototype to avoid an error. */
18045#ifdef __cplusplus
18046extern "C"
18047#endif
18048/* We use char because int might match the return type of a gcc2
18049 builtin and then its argument prototype would still apply. */
18050char dlopen ();
18051#ifdef F77_DUMMY_MAIN
18052# ifdef __cplusplus
18053 extern "C"
18054# endif
18055 int F77_DUMMY_MAIN() { return 1; }
18056#endif
18057int
18058main ()
18059{
18060dlopen ();
18061 ;
18062 return 0;
18063}
18064_ACEOF
18065rm -f conftest.$ac_objext conftest$ac_exeext
18066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
18071 { ac_try='test -s conftest$ac_exeext'
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; }; then
18077 ac_cv_search_dlopen="none required"
18078else
18079 echo "$as_me: failed program was:" >&5
18080cat conftest.$ac_ext >&5
18081fi
18082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18083if test "$ac_cv_search_dlopen" = no; then
18084 for ac_lib in dl; do
18085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18086 cat >conftest.$ac_ext <<_ACEOF
18087#line $LINENO "configure"
18088#include "confdefs.h"
18089
18090/* Override any gcc2 internal prototype to avoid an error. */
18091#ifdef __cplusplus
18092extern "C"
18093#endif
18094/* We use char because int might match the return type of a gcc2
18095 builtin and then its argument prototype would still apply. */
18096char dlopen ();
18097#ifdef F77_DUMMY_MAIN
18098# ifdef __cplusplus
18099 extern "C"
18100# endif
18101 int F77_DUMMY_MAIN() { return 1; }
18102#endif
18103int
18104main ()
18105{
18106dlopen ();
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext conftest$ac_exeext
18112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113 (eval $ac_link) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } &&
18117 { ac_try='test -s conftest$ac_exeext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_search_dlopen="-l$ac_lib"
18124break
18125else
18126 echo "$as_me: failed program was:" >&5
18127cat conftest.$ac_ext >&5
18128fi
18129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18130 done
18131fi
18132LIBS=$ac_func_search_save_LIBS
18133fi
18134echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18135echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18136if test "$ac_cv_search_dlopen" != no; then
18137 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18138
18139else
18140 { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18141echo "$as_me: error: dlopen() required but not found" >&2;}
18142 { (exit 1); exit 1; }; }
18143fi
18144
18145
18146echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18147echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18148if test "${ac_cv_search_mallinfo+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150else
18151 ac_func_search_save_LIBS=$LIBS
18152ac_cv_search_mallinfo=no
18153cat >conftest.$ac_ext <<_ACEOF
18154#line $LINENO "configure"
18155#include "confdefs.h"
18156
18157/* Override any gcc2 internal prototype to avoid an error. */
18158#ifdef __cplusplus
18159extern "C"
18160#endif
18161/* We use char because int might match the return type of a gcc2
18162 builtin and then its argument prototype would still apply. */
18163char mallinfo ();
18164#ifdef F77_DUMMY_MAIN
18165# ifdef __cplusplus
18166 extern "C"
18167# endif
18168 int F77_DUMMY_MAIN() { return 1; }
18169#endif
18170int
18171main ()
18172{
18173mallinfo ();
18174 ;
18175 return 0;
18176}
18177_ACEOF
18178rm -f conftest.$ac_objext conftest$ac_exeext
18179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -s conftest$ac_exeext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_search_mallinfo="none required"
18191else
18192 echo "$as_me: failed program was:" >&5
18193cat conftest.$ac_ext >&5
18194fi
18195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18196if test "$ac_cv_search_mallinfo" = no; then
18197 for ac_lib in malloc; do
18198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18199 cat >conftest.$ac_ext <<_ACEOF
18200#line $LINENO "configure"
18201#include "confdefs.h"
18202
18203/* Override any gcc2 internal prototype to avoid an error. */
18204#ifdef __cplusplus
18205extern "C"
18206#endif
18207/* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18209char mallinfo ();
18210#ifdef F77_DUMMY_MAIN
18211# ifdef __cplusplus
18212 extern "C"
18213# endif
18214 int F77_DUMMY_MAIN() { return 1; }
18215#endif
18216int
18217main ()
18218{
18219mallinfo ();
18220 ;
18221 return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext conftest$ac_exeext
18225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18226 (eval $ac_link) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -s conftest$ac_exeext'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18233 ac_status=$?
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; }; then
18236 ac_cv_search_mallinfo="-l$ac_lib"
18237break
18238else
18239 echo "$as_me: failed program was:" >&5
18240cat conftest.$ac_ext >&5
18241fi
18242rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18243 done
18244fi
18245LIBS=$ac_func_search_save_LIBS
18246fi
18247echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18248echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18249if test "$ac_cv_search_mallinfo" != no; then
18250 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18251 cat >>confdefs.h <<\_ACEOF
18252#define HAVE_MALLINFO 1
18253_ACEOF
18254
18255fi
18256
18257
18258
18259echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18260echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18261if test "${ac_cv_header_stdc+set}" = set; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263else
18264 cat >conftest.$ac_ext <<_ACEOF
18265#line $LINENO "configure"
18266#include "confdefs.h"
18267#include <stdlib.h>
18268#include <stdarg.h>
18269#include <string.h>
18270#include <float.h>
18271
18272_ACEOF
18273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18275 ac_status=$?
18276 egrep -v '^ *\+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } >/dev/null; then
18281 if test -s conftest.err; then
18282 ac_cpp_err=$ac_c_preproc_warn_flag
18283 else
18284 ac_cpp_err=
18285 fi
18286else
18287 ac_cpp_err=yes
18288fi
18289if test -z "$ac_cpp_err"; then
18290 ac_cv_header_stdc=yes
18291else
18292 echo "$as_me: failed program was:" >&5
18293 cat conftest.$ac_ext >&5
18294 ac_cv_header_stdc=no
18295fi
18296rm -f conftest.err conftest.$ac_ext
18297
18298if test $ac_cv_header_stdc = yes; then
18299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18300 cat >conftest.$ac_ext <<_ACEOF
18301#line $LINENO "configure"
18302#include "confdefs.h"
18303#include <string.h>
18304
18305_ACEOF
18306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18307 egrep "memchr" >/dev/null 2>&1; then
18308 :
18309else
18310 ac_cv_header_stdc=no
18311fi
18312rm -f conftest*
18313
18314fi
18315
18316if test $ac_cv_header_stdc = yes; then
18317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18318 cat >conftest.$ac_ext <<_ACEOF
18319#line $LINENO "configure"
18320#include "confdefs.h"
18321#include <stdlib.h>
18322
18323_ACEOF
18324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18325 egrep "free" >/dev/null 2>&1; then
18326 :
18327else
18328 ac_cv_header_stdc=no
18329fi
18330rm -f conftest*
18331
18332fi
18333
18334if test $ac_cv_header_stdc = yes; then
18335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18336 if test "$cross_compiling" = yes; then
18337 :
18338else
18339 cat >conftest.$ac_ext <<_ACEOF
18340#line $LINENO "configure"
18341#include "confdefs.h"
18342#include <ctype.h>
18343#if ((' ' & 0x0FF) == 0x020)
18344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18346#else
18347# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18348 || ('j' <= (c) && (c) <= 'r') \
18349 || ('s' <= (c) && (c) <= 'z'))
18350# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18351#endif
18352
18353#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18354int
18355main ()
18356{
18357 int i;
18358 for (i = 0; i < 256; i++)
18359 if (XOR (islower (i), ISLOWER (i))
18360 || toupper (i) != TOUPPER (i))
18361 exit(2);
18362 exit (0);
18363}
18364_ACEOF
18365rm -f conftest$ac_exeext
18366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367 (eval $ac_link) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 :
18377else
18378 echo "$as_me: program exited with status $ac_status" >&5
18379echo "$as_me: failed program was:" >&5
18380cat conftest.$ac_ext >&5
18381( exit $ac_status )
18382ac_cv_header_stdc=no
18383fi
18384rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18385fi
18386fi
18387fi
18388echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18389echo "${ECHO_T}$ac_cv_header_stdc" >&6
18390if test $ac_cv_header_stdc = yes; then
18391
18392cat >>confdefs.h <<\_ACEOF
18393#define STDC_HEADERS 1
18394_ACEOF
18395
18396fi
18397
18398echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18399echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18400if test "${ac_cv_header_sys_wait_h+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403 cat >conftest.$ac_ext <<_ACEOF
18404#line $LINENO "configure"
18405#include "confdefs.h"
18406#include <sys/types.h>
18407#include <sys/wait.h>
18408#ifndef WEXITSTATUS
18409# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18410#endif
18411#ifndef WIFEXITED
18412# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18413#endif
18414
18415#ifdef F77_DUMMY_MAIN
18416# ifdef __cplusplus
18417 extern "C"
18418# endif
18419 int F77_DUMMY_MAIN() { return 1; }
18420#endif
18421int
18422main ()
18423{
18424 int s;
18425 wait (&s);
18426 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext
18432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433 (eval $ac_compile) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } &&
18437 { ac_try='test -s conftest.$ac_objext'
18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 ac_cv_header_sys_wait_h=yes
18444else
18445 echo "$as_me: failed program was:" >&5
18446cat conftest.$ac_ext >&5
18447ac_cv_header_sys_wait_h=no
18448fi
18449rm -f conftest.$ac_objext conftest.$ac_ext
18450fi
18451echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18452echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18453if test $ac_cv_header_sys_wait_h = yes; then
18454
18455cat >>confdefs.h <<\_ACEOF
18456#define HAVE_SYS_WAIT_H 1
18457_ACEOF
18458
18459fi
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18471do
18472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474 echo "$as_me:$LINENO: checking for $ac_header" >&5
18475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18476if eval "test \"\${$as_ac_Header+set}\" = set"; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18478fi
18479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18481else
18482 # Is the header compilable?
18483echo "$as_me:$LINENO: checking $ac_header usability" >&5
18484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18485cat >conftest.$ac_ext <<_ACEOF
18486#line $LINENO "configure"
18487#include "confdefs.h"
18488$ac_includes_default
18489#include <$ac_header>
18490_ACEOF
18491rm -f conftest.$ac_objext
18492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493 (eval $ac_compile) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_header_compiler=yes
18504else
18505 echo "$as_me: failed program was:" >&5
18506cat conftest.$ac_ext >&5
18507ac_header_compiler=no
18508fi
18509rm -f conftest.$ac_objext conftest.$ac_ext
18510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511echo "${ECHO_T}$ac_header_compiler" >&6
18512
18513# Is the header present?
18514echo "$as_me:$LINENO: checking $ac_header presence" >&5
18515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18516cat >conftest.$ac_ext <<_ACEOF
18517#line $LINENO "configure"
18518#include "confdefs.h"
18519#include <$ac_header>
18520_ACEOF
18521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18523 ac_status=$?
18524 egrep -v '^ *\+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } >/dev/null; then
18529 if test -s conftest.err; then
18530 ac_cpp_err=$ac_c_preproc_warn_flag
18531 else
18532 ac_cpp_err=
18533 fi
18534else
18535 ac_cpp_err=yes
18536fi
18537if test -z "$ac_cpp_err"; then
18538 ac_header_preproc=yes
18539else
18540 echo "$as_me: failed program was:" >&5
18541 cat conftest.$ac_ext >&5
18542 ac_header_preproc=no
18543fi
18544rm -f conftest.err conftest.$ac_ext
18545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18546echo "${ECHO_T}$ac_header_preproc" >&6
18547
18548# So? What about this header?
18549case $ac_header_compiler:$ac_header_preproc in
18550 yes:no )
18551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18555 no:yes )
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18562esac
18563echo "$as_me:$LINENO: checking for $ac_header" >&5
18564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18565if eval "test \"\${$as_ac_Header+set}\" = set"; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18567else
18568 eval "$as_ac_Header=$ac_header_preproc"
18569fi
18570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18572
18573fi
18574if test `eval echo '${'$as_ac_Header'}'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577_ACEOF
18578
18579fi
18580
18581done
18582
18583
18584
18585
18586
18587
18588for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18589do
18590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18591if eval "test \"\${$as_ac_Header+set}\" = set"; then
18592 echo "$as_me:$LINENO: checking for $ac_header" >&5
18593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18594if eval "test \"\${$as_ac_Header+set}\" = set"; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596fi
18597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18599else
18600 # Is the header compilable?
18601echo "$as_me:$LINENO: checking $ac_header usability" >&5
18602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18603cat >conftest.$ac_ext <<_ACEOF
18604#line $LINENO "configure"
18605#include "confdefs.h"
18606$ac_includes_default
18607#include <$ac_header>
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>&5
18612 ac_status=$?
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18621 ac_header_compiler=yes
18622else
18623 echo "$as_me: failed program was:" >&5
18624cat conftest.$ac_ext >&5
18625ac_header_compiler=no
18626fi
18627rm -f conftest.$ac_objext conftest.$ac_ext
18628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18629echo "${ECHO_T}$ac_header_compiler" >&6
18630
18631# Is the header present?
18632echo "$as_me:$LINENO: checking $ac_header presence" >&5
18633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18634cat >conftest.$ac_ext <<_ACEOF
18635#line $LINENO "configure"
18636#include "confdefs.h"
18637#include <$ac_header>
18638_ACEOF
18639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18641 ac_status=$?
18642 egrep -v '^ *\+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } >/dev/null; then
18647 if test -s conftest.err; then
18648 ac_cpp_err=$ac_c_preproc_warn_flag
18649 else
18650 ac_cpp_err=
18651 fi
18652else
18653 ac_cpp_err=yes
18654fi
18655if test -z "$ac_cpp_err"; then
18656 ac_header_preproc=yes
18657else
18658 echo "$as_me: failed program was:" >&5
18659 cat conftest.$ac_ext >&5
18660 ac_header_preproc=no
18661fi
18662rm -f conftest.err conftest.$ac_ext
18663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664echo "${ECHO_T}$ac_header_preproc" >&6
18665
18666# So? What about this header?
18667case $ac_header_compiler:$ac_header_preproc in
18668 yes:no )
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18673 no:yes )
18674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18680esac
18681echo "$as_me:$LINENO: checking for $ac_header" >&5
18682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18683if eval "test \"\${$as_ac_Header+set}\" = set"; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685else
18686 eval "$as_ac_Header=$ac_header_preproc"
18687fi
18688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18690
18691fi
18692if test `eval echo '${'$as_ac_Header'}'` = yes; then
18693 cat >>confdefs.h <<_ACEOF
18694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18695_ACEOF
18696
18697fi
18698
18699done
18700
18701
18702
18703
18704for ac_header in dlfcn.h link.h
18705do
18706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18707if eval "test \"\${$as_ac_Header+set}\" = set"; then
18708 echo "$as_me:$LINENO: checking for $ac_header" >&5
18709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18710if eval "test \"\${$as_ac_Header+set}\" = set"; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712fi
18713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18715else
18716 # Is the header compilable?
18717echo "$as_me:$LINENO: checking $ac_header usability" >&5
18718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18719cat >conftest.$ac_ext <<_ACEOF
18720#line $LINENO "configure"
18721#include "confdefs.h"
18722$ac_includes_default
18723#include <$ac_header>
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -s conftest.$ac_objext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_header_compiler=yes
18738else
18739 echo "$as_me: failed program was:" >&5
18740cat conftest.$ac_ext >&5
18741ac_header_compiler=no
18742fi
18743rm -f conftest.$ac_objext conftest.$ac_ext
18744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745echo "${ECHO_T}$ac_header_compiler" >&6
18746
18747# Is the header present?
18748echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18750cat >conftest.$ac_ext <<_ACEOF
18751#line $LINENO "configure"
18752#include "confdefs.h"
18753#include <$ac_header>
18754_ACEOF
18755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18757 ac_status=$?
18758 egrep -v '^ *\+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } >/dev/null; then
18763 if test -s conftest.err; then
18764 ac_cpp_err=$ac_c_preproc_warn_flag
18765 else
18766 ac_cpp_err=
18767 fi
18768else
18769 ac_cpp_err=yes
18770fi
18771if test -z "$ac_cpp_err"; then
18772 ac_header_preproc=yes
18773else
18774 echo "$as_me: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18776 ac_header_preproc=no
18777fi
18778rm -f conftest.err conftest.$ac_ext
18779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18780echo "${ECHO_T}$ac_header_preproc" >&6
18781
18782# So? What about this header?
18783case $ac_header_compiler:$ac_header_preproc in
18784 yes:no )
18785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18789 no:yes )
18790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18796esac
18797echo "$as_me:$LINENO: checking for $ac_header" >&5
18798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18799if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
18802 eval "$as_ac_Header=$ac_header_preproc"
18803fi
18804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18806
18807fi
18808if test `eval echo '${'$as_ac_Header'}'` = yes; then
18809 cat >>confdefs.h <<_ACEOF
18810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811_ACEOF
18812
18813fi
18814
18815done
18816
18817
18818
18819echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18820echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18821if test "${ac_cv_prog_cc_stdc+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823else
18824 ac_cv_prog_cc_stdc=no
18825ac_save_CC=$CC
18826cat >conftest.$ac_ext <<_ACEOF
18827#line $LINENO "configure"
18828#include "confdefs.h"
18829#include <stdarg.h>
18830#include <stdio.h>
18831#include <sys/types.h>
18832#include <sys/stat.h>
18833/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18834struct buf { int x; };
18835FILE * (*rcsopen) (struct buf *, struct stat *, int);
18836static char *e (p, i)
18837 char **p;
18838 int i;
18839{
18840 return p[i];
18841}
18842static char *f (char * (*g) (char **, int), char **p, ...)
18843{
18844 char *s;
18845 va_list v;
18846 va_start (v,p);
18847 s = g (p, va_arg (v,int));
18848 va_end (v);
18849 return s;
18850}
18851int test (int i, double x);
18852struct s1 {int (*f) (int a);};
18853struct s2 {int (*f) (double a);};
18854int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18855int argc;
18856char **argv;
18857#ifdef F77_DUMMY_MAIN
18858# ifdef __cplusplus
18859 extern "C"
18860# endif
18861 int F77_DUMMY_MAIN() { return 1; }
18862#endif
18863int
18864main ()
18865{
18866return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871# Don't try gcc -ansi; that turns off useful extensions and
18872# breaks some systems' header files.
18873# AIX -qlanglvl=ansi
18874# Ultrix and OSF/1 -std1
18875# HP-UX 10.20 and later -Ae
18876# HP-UX older versions -Aa -D_HPUX_SOURCE
18877# SVR4 -Xc -D__EXTENSIONS__
18878for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18879do
18880 CC="$ac_save_CC $ac_arg"
18881 rm -f conftest.$ac_objext
18882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18883 (eval $ac_compile) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -s conftest.$ac_objext'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; }; then
18893 ac_cv_prog_cc_stdc=$ac_arg
18894break
18895else
18896 echo "$as_me: failed program was:" >&5
18897cat conftest.$ac_ext >&5
18898fi
18899rm -f conftest.$ac_objext
18900done
18901rm -f conftest.$ac_ext conftest.$ac_objext
18902CC=$ac_save_CC
18903
18904fi
18905
18906case "x$ac_cv_prog_cc_stdc" in
18907 x|xno)
18908 echo "$as_me:$LINENO: result: none needed" >&5
18909echo "${ECHO_T}none needed" >&6 ;;
18910 *)
18911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
18912echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
18913 CC="$CC $ac_cv_prog_cc_stdc" ;;
18914esac
18915
18916echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18917echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18918if test "${ac_cv_c_const+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921 cat >conftest.$ac_ext <<_ACEOF
18922#line $LINENO "configure"
18923#include "confdefs.h"
18924
18925#ifdef F77_DUMMY_MAIN
18926# ifdef __cplusplus
18927 extern "C"
18928# endif
18929 int F77_DUMMY_MAIN() { return 1; }
18930#endif
18931int
18932main ()
18933{
18934/* FIXME: Include the comments suggested by Paul. */
18935#ifndef __cplusplus
18936 /* Ultrix mips cc rejects this. */
18937 typedef int charset[2];
18938 const charset x;
18939 /* SunOS 4.1.1 cc rejects this. */
18940 char const *const *ccp;
18941 char **p;
18942 /* NEC SVR4.0.2 mips cc rejects this. */
18943 struct point {int x, y;};
18944 static struct point const zero = {0,0};
18945 /* AIX XL C 1.02.0.0 rejects this.
18946 It does not let you subtract one const X* pointer from another in
18947 an arm of an if-expression whose if-part is not a constant
18948 expression */
18949 const char *g = "string";
18950 ccp = &g + (g ? g-g : 0);
18951 /* HPUX 7.0 cc rejects these. */
18952 ++ccp;
18953 p = (char**) ccp;
18954 ccp = (char const *const *) p;
18955 { /* SCO 3.2v4 cc rejects this. */
18956 char *t;
18957 char const *s = 0 ? (char *) 0 : (char const *) 0;
18958
18959 *t++ = 0;
18960 }
18961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18962 int x[] = {25, 17};
18963 const int *foo = &x[0];
18964 ++foo;
18965 }
18966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18967 typedef const int *iptr;
18968 iptr p = 0;
18969 ++p;
18970 }
18971 { /* AIX XL C 1.02.0.0 rejects this saying
18972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18973 struct s { int j; const int *ap[3]; };
18974 struct s *b; b->j = 5;
18975 }
18976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18977 const int foo = 10;
18978 }
18979#endif
18980
18981 ;
18982 return 0;
18983}
18984_ACEOF
18985rm -f conftest.$ac_objext
18986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -s conftest.$ac_objext'
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; }; then
18997 ac_cv_c_const=yes
18998else
18999 echo "$as_me: failed program was:" >&5
19000cat conftest.$ac_ext >&5
19001ac_cv_c_const=no
19002fi
19003rm -f conftest.$ac_objext conftest.$ac_ext
19004fi
19005echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19006echo "${ECHO_T}$ac_cv_c_const" >&6
19007if test $ac_cv_c_const = no; then
19008
19009cat >>confdefs.h <<\_ACEOF
19010#define const
19011_ACEOF
19012
19013fi
19014
19015echo "$as_me:$LINENO: checking for inline" >&5
19016echo $ECHO_N "checking for inline... $ECHO_C" >&6
19017if test "${ac_cv_c_inline+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019else
19020 ac_cv_c_inline=no
19021for ac_kw in inline __inline__ __inline; do
19022 cat >conftest.$ac_ext <<_ACEOF
19023#line $LINENO "configure"
19024#include "confdefs.h"
19025#ifndef __cplusplus
19026static $ac_kw int static_foo () {return 0; }
19027$ac_kw int foo () {return 0; }
19028#endif
19029
19030_ACEOF
19031rm -f conftest.$ac_objext
19032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033 (eval $ac_compile) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_c_inline=$ac_kw; break
19044else
19045 echo "$as_me: failed program was:" >&5
19046cat conftest.$ac_ext >&5
19047fi
19048rm -f conftest.$ac_objext conftest.$ac_ext
19049done
19050
19051fi
19052echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19053echo "${ECHO_T}$ac_cv_c_inline" >&6
19054case $ac_cv_c_inline in
19055 inline | yes) ;;
19056 no)
19057cat >>confdefs.h <<\_ACEOF
19058#define inline
19059_ACEOF
19060 ;;
19061 *) cat >>confdefs.h <<_ACEOF
19062#define inline $ac_cv_c_inline
19063_ACEOF
19064 ;;
19065esac
19066
19067
19068echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19069echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19070if test "${ac_cv_c_bigendian+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 # See if sys/param.h defines the BYTE_ORDER macro.
19074cat >conftest.$ac_ext <<_ACEOF
19075#line $LINENO "configure"
19076#include "confdefs.h"
19077#include <sys/types.h>
19078#include <sys/param.h>
19079
19080#ifdef F77_DUMMY_MAIN
19081# ifdef __cplusplus
19082 extern "C"
19083# endif
19084 int F77_DUMMY_MAIN() { return 1; }
19085#endif
19086int
19087main ()
19088{
19089#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19090 bogus endian macros
19091#endif
19092
19093 ;
19094 return 0;
19095}
19096_ACEOF
19097rm -f conftest.$ac_objext
19098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099 (eval $ac_compile) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -s conftest.$ac_objext'
19104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105 (eval $ac_try) 2>&5
19106 ac_status=$?
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 # It does; now see whether it defined to BIG_ENDIAN or not.
19110cat >conftest.$ac_ext <<_ACEOF
19111#line $LINENO "configure"
19112#include "confdefs.h"
19113#include <sys/types.h>
19114#include <sys/param.h>
19115
19116#ifdef F77_DUMMY_MAIN
19117# ifdef __cplusplus
19118 extern "C"
19119# endif
19120 int F77_DUMMY_MAIN() { return 1; }
19121#endif
19122int
19123main ()
19124{
19125#if BYTE_ORDER != BIG_ENDIAN
19126 not big endian
19127#endif
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
19139 { ac_try='test -s conftest.$ac_objext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_c_bigendian=yes
19146else
19147 echo "$as_me: failed program was:" >&5
19148cat conftest.$ac_ext >&5
19149ac_cv_c_bigendian=no
19150fi
19151rm -f conftest.$ac_objext conftest.$ac_ext
19152else
19153 echo "$as_me: failed program was:" >&5
19154cat conftest.$ac_ext >&5
19155# It does not; compile a test program.
19156if test "$cross_compiling" = yes; then
19157 # try to guess the endianess by grep'ing values into an object file
19158 ac_cv_c_bigendian=unknown
19159 cat >conftest.$ac_ext <<_ACEOF
19160#line $LINENO "configure"
19161#include "confdefs.h"
19162short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19163short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19164void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19165short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19166short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19167void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19168#ifdef F77_DUMMY_MAIN
19169# ifdef __cplusplus
19170 extern "C"
19171# endif
19172 int F77_DUMMY_MAIN() { return 1; }
19173#endif
19174int
19175main ()
19176{
19177 _ascii (); _ebcdic ();
19178 ;
19179 return 0;
19180}
19181_ACEOF
19182rm -f conftest.$ac_objext
19183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184 (eval $ac_compile) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19195 ac_cv_c_bigendian=yes
19196fi
19197if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19198 if test "$ac_cv_c_bigendian" = unknown; then
19199 ac_cv_c_bigendian=no
19200 else
19201 # finding both strings is unlikely to happen, but who knows?
19202 ac_cv_c_bigendian=unknown
19203 fi
19204fi
19205else
19206 echo "$as_me: failed program was:" >&5
19207cat conftest.$ac_ext >&5
19208fi
19209rm -f conftest.$ac_objext conftest.$ac_ext
19210else
19211 cat >conftest.$ac_ext <<_ACEOF
19212#line $LINENO "configure"
19213#include "confdefs.h"
19214int
19215main ()
19216{
19217 /* Are we little or big endian? From Harbison&Steele. */
19218 union
19219 {
19220 long l;
19221 char c[sizeof (long)];
19222 } u;
19223 u.l = 1;
19224 exit (u.c[sizeof (long) - 1] == 1);
19225}
19226_ACEOF
19227rm -f conftest$ac_exeext
19228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_c_bigendian=no
19239else
19240 echo "$as_me: program exited with status $ac_status" >&5
19241echo "$as_me: failed program was:" >&5
19242cat conftest.$ac_ext >&5
19243( exit $ac_status )
19244ac_cv_c_bigendian=yes
19245fi
19246rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19247fi
19248fi
19249rm -f conftest.$ac_objext conftest.$ac_ext
19250fi
19251echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19252echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19253case $ac_cv_c_bigendian in
19254 yes)
19255 cat >>confdefs.h <<\_ACEOF
19256#define ENDIAN_BIG 1
19257_ACEOF
19258 ;;
19259 no)
19260 cat >>confdefs.h <<\_ACEOF
19261#define ENDIAN_LITTLE 1
19262_ACEOF
19263 ;;
19264 *)
19265 { { echo "$as_me:$LINENO: error: unknown endianess
19266presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19267echo "$as_me: error: unknown endianess
19268presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19269 { (exit 1); exit 1; }; } ;;
19270esac
19271
19272
19273echo "$as_me:$LINENO: checking for pid_t" >&5
19274echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19275if test "${ac_cv_type_pid_t+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19277else
19278 cat >conftest.$ac_ext <<_ACEOF
19279#line $LINENO "configure"
19280#include "confdefs.h"
19281$ac_includes_default
19282#ifdef F77_DUMMY_MAIN
19283# ifdef __cplusplus
19284 extern "C"
19285# endif
19286 int F77_DUMMY_MAIN() { return 1; }
19287#endif
19288int
19289main ()
19290{
19291if ((pid_t *) 0)
19292 return 0;
19293if (sizeof (pid_t))
19294 return 0;
19295 ;
19296 return 0;
19297}
19298_ACEOF
19299rm -f conftest.$ac_objext
19300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try='test -s conftest.$ac_objext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_type_pid_t=yes
19312else
19313 echo "$as_me: failed program was:" >&5
19314cat conftest.$ac_ext >&5
19315ac_cv_type_pid_t=no
19316fi
19317rm -f conftest.$ac_objext conftest.$ac_ext
19318fi
19319echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19320echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19321if test $ac_cv_type_pid_t = yes; then
19322 :
19323else
19324
19325cat >>confdefs.h <<_ACEOF
19326#define pid_t int
19327_ACEOF
19328
19329fi
19330
19331echo "$as_me:$LINENO: checking for size_t" >&5
19332echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19333if test "${ac_cv_type_size_t+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19335else
19336 cat >conftest.$ac_ext <<_ACEOF
19337#line $LINENO "configure"
19338#include "confdefs.h"
19339$ac_includes_default
19340#ifdef F77_DUMMY_MAIN
19341# ifdef __cplusplus
19342 extern "C"
19343# endif
19344 int F77_DUMMY_MAIN() { return 1; }
19345#endif
19346int
19347main ()
19348{
19349if ((size_t *) 0)
19350 return 0;
19351if (sizeof (size_t))
19352 return 0;
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext
19358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359 (eval $ac_compile) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_type_size_t=yes
19370else
19371 echo "$as_me: failed program was:" >&5
19372cat conftest.$ac_ext >&5
19373ac_cv_type_size_t=no
19374fi
19375rm -f conftest.$ac_objext conftest.$ac_ext
19376fi
19377echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19378echo "${ECHO_T}$ac_cv_type_size_t" >&6
19379if test $ac_cv_type_size_t = yes; then
19380 :
19381else
19382
19383cat >>confdefs.h <<_ACEOF
19384#define size_t unsigned
19385_ACEOF
19386
19387fi
19388
19389echo "$as_me:$LINENO: checking for int64_t" >&5
19390echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19391if test "${ac_cv_type_int64_t+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19393else
19394 cat >conftest.$ac_ext <<_ACEOF
19395#line $LINENO "configure"
19396#include "confdefs.h"
19397$ac_includes_default
19398#ifdef F77_DUMMY_MAIN
19399# ifdef __cplusplus
19400 extern "C"
19401# endif
19402 int F77_DUMMY_MAIN() { return 1; }
19403#endif
19404int
19405main ()
19406{
19407if ((int64_t *) 0)
19408 return 0;
19409if (sizeof (int64_t))
19410 return 0;
19411 ;
19412 return 0;
19413}
19414_ACEOF
19415rm -f conftest.$ac_objext
19416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>&5
19418 ac_status=$?
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -s conftest.$ac_objext'
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_type_int64_t=yes
19428else
19429 echo "$as_me: failed program was:" >&5
19430cat conftest.$ac_ext >&5
19431ac_cv_type_int64_t=no
19432fi
19433rm -f conftest.$ac_objext conftest.$ac_ext
19434fi
19435echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19436echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19437if test $ac_cv_type_int64_t = yes; then
19438
19439cat >>confdefs.h <<_ACEOF
19440#define HAVE_INT64_T 1
19441_ACEOF
19442
19443
19444else
19445 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19446echo "$as_me: error: Type int64_t required but not found" >&2;}
19447 { (exit 1); exit 1; }; }
19448fi
19449
19450echo "$as_me:$LINENO: checking for uint64_t" >&5
19451echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19452if test "${ac_cv_type_uint64_t+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454else
19455 cat >conftest.$ac_ext <<_ACEOF
19456#line $LINENO "configure"
19457#include "confdefs.h"
19458$ac_includes_default
19459#ifdef F77_DUMMY_MAIN
19460# ifdef __cplusplus
19461 extern "C"
19462# endif
19463 int F77_DUMMY_MAIN() { return 1; }
19464#endif
19465int
19466main ()
19467{
19468if ((uint64_t *) 0)
19469 return 0;
19470if (sizeof (uint64_t))
19471 return 0;
19472 ;
19473 return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
19482 { ac_try='test -s conftest.$ac_objext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19488 ac_cv_type_uint64_t=yes
19489else
19490 echo "$as_me: failed program was:" >&5
19491cat conftest.$ac_ext >&5
19492ac_cv_type_uint64_t=no
19493fi
19494rm -f conftest.$ac_objext conftest.$ac_ext
19495fi
19496echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19497echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19498if test $ac_cv_type_uint64_t = yes; then
19499
19500cat >>confdefs.h <<_ACEOF
19501#define HAVE_UINT64_T 1
19502_ACEOF
19503
19504
19505else
19506 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19507echo "$as_me: error: Type uint64_t required but not found" >&2;}
19508 { (exit 1); exit 1; }; }
19509fi
19510
19511echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19512echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19513if test "${ac_cv_header_time+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516 cat >conftest.$ac_ext <<_ACEOF
19517#line $LINENO "configure"
19518#include "confdefs.h"
19519#include <sys/types.h>
19520#include <sys/time.h>
19521#include <time.h>
19522
19523#ifdef F77_DUMMY_MAIN
19524# ifdef __cplusplus
19525 extern "C"
19526# endif
19527 int F77_DUMMY_MAIN() { return 1; }
19528#endif
19529int
19530main ()
19531{
19532if ((struct tm *) 0)
19533return 0;
19534 ;
19535 return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -s conftest.$ac_objext'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19550 ac_cv_header_time=yes
19551else
19552 echo "$as_me: failed program was:" >&5
19553cat conftest.$ac_ext >&5
19554ac_cv_header_time=no
19555fi
19556rm -f conftest.$ac_objext conftest.$ac_ext
19557fi
19558echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19559echo "${ECHO_T}$ac_cv_header_time" >&6
19560if test $ac_cv_header_time = yes; then
19561
19562cat >>confdefs.h <<\_ACEOF
19563#define TIME_WITH_SYS_TIME 1
19564_ACEOF
19565
19566fi
19567
19568echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19569echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19570if test "${ac_cv_struct_tm+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
19574#line $LINENO "configure"
19575#include "confdefs.h"
19576#include <sys/types.h>
19577#include <time.h>
19578
19579#ifdef F77_DUMMY_MAIN
19580# ifdef __cplusplus
19581 extern "C"
19582# endif
19583 int F77_DUMMY_MAIN() { return 1; }
19584#endif
19585int
19586main ()
19587{
19588struct tm *tp; tp->tm_sec;
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595 (eval $ac_compile) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -s conftest.$ac_objext'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_struct_tm=time.h
19606else
19607 echo "$as_me: failed program was:" >&5
19608cat conftest.$ac_ext >&5
19609ac_cv_struct_tm=sys/time.h
19610fi
19611rm -f conftest.$ac_objext conftest.$ac_ext
19612fi
19613echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19614echo "${ECHO_T}$ac_cv_struct_tm" >&6
19615if test $ac_cv_struct_tm = sys/time.h; then
19616
19617cat >>confdefs.h <<\_ACEOF
19618#define TM_IN_SYS_TIME 1
19619_ACEOF
19620
19621fi
19622
19623
John Criswell7a73b802003-06-30 21:59:07 +000019624echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19625echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19626if test "${ac_cv_cxx_namespaces+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629
19630
19631 ac_ext=cc
19632ac_cpp='$CXXCPP $CPPFLAGS'
19633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19636
19637 cat >conftest.$ac_ext <<_ACEOF
19638#line $LINENO "configure"
19639#include "confdefs.h"
19640namespace Outer { namespace Inner { int i = 0; }}
19641#ifdef F77_DUMMY_MAIN
19642# ifdef __cplusplus
19643 extern "C"
19644# endif
19645 int F77_DUMMY_MAIN() { return 1; }
19646#endif
19647int
19648main ()
19649{
19650using namespace Outer::Inner; return i;
19651 ;
19652 return 0;
19653}
19654_ACEOF
19655rm -f conftest.$ac_objext
19656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -s conftest.$ac_objext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 ac_cv_cxx_namespaces=yes
19668else
19669 echo "$as_me: failed program was:" >&5
19670cat conftest.$ac_ext >&5
19671ac_cv_cxx_namespaces=no
19672fi
19673rm -f conftest.$ac_objext conftest.$ac_ext
19674 ac_ext=c
19675ac_cpp='$CPP $CPPFLAGS'
19676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679
19680
19681fi
19682echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19683echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19684if test "$ac_cv_cxx_namespaces" = yes; then
19685
19686cat >>confdefs.h <<\_ACEOF
19687#define HAVE_NAMESPACES
19688_ACEOF
19689
19690fi
19691
19692echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
19693echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
19694if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696else
19697
19698
19699
19700 ac_ext=cc
19701ac_cpp='$CXXCPP $CPPFLAGS'
19702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
19706 cat >conftest.$ac_ext <<_ACEOF
19707#line $LINENO "configure"
19708#include "confdefs.h"
19709#include <ext/hash_map>
19710#ifdef HAVE_NAMESPACES
19711using namespace std;
19712#endif
19713#ifdef F77_DUMMY_MAIN
19714# ifdef __cplusplus
19715 extern "C"
19716# endif
19717 int F77_DUMMY_MAIN() { return 1; }
19718#endif
19719int
19720main ()
19721{
19722hash_map<int, int> t; return 0;
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 ac_cv_cxx_have_ext_hash_map=std
19740else
19741 echo "$as_me: failed program was:" >&5
19742cat conftest.$ac_ext >&5
19743ac_cv_cxx_have_ext_hash_map=no
19744fi
19745rm -f conftest.$ac_objext conftest.$ac_ext
19746 cat >conftest.$ac_ext <<_ACEOF
19747#line $LINENO "configure"
19748#include "confdefs.h"
19749#include <ext/hash_map>
19750#ifdef HAVE_NAMESPACES
19751using namespace __gnu_cxx;
19752#endif
19753#ifdef F77_DUMMY_MAIN
19754# ifdef __cplusplus
19755 extern "C"
19756# endif
19757 int F77_DUMMY_MAIN() { return 1; }
19758#endif
19759int
19760main ()
19761{
19762hash_map<int, int> t; return 0;
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -s conftest.$ac_objext'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_cxx_have_ext_hash_map=gnu
19780else
19781 echo "$as_me: failed program was:" >&5
19782cat conftest.$ac_ext >&5
19783ac_cv_cxx_have_ext_hash_map=no
19784fi
19785rm -f conftest.$ac_objext conftest.$ac_ext
19786 ac_ext=c
19787ac_cpp='$CPP $CPPFLAGS'
19788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790ac_compiler_gnu=$ac_cv_c_compiler_gnu
19791
19792
19793fi
19794echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
19795echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
19796if test "$ac_cv_cxx_have_ext_hash_map" = std; then
19797
19798cat >>confdefs.h <<\_ACEOF
19799#define HAVE_STD_EXT_HASH_MAP
19800_ACEOF
19801
19802fi
19803if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
19804
19805cat >>confdefs.h <<\_ACEOF
19806#define HAVE_GNU_EXT_HASH_MAP
19807_ACEOF
19808
19809fi
19810
19811echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
19812echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
19813if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815else
19816
19817
19818
19819 ac_ext=cc
19820ac_cpp='$CXXCPP $CPPFLAGS'
19821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824
19825 cat >conftest.$ac_ext <<_ACEOF
19826#line $LINENO "configure"
19827#include "confdefs.h"
19828#include <ext/hash_set>
19829#ifdef HAVE_NAMESPACES
19830using namespace std;
19831#endif
19832#ifdef F77_DUMMY_MAIN
19833# ifdef __cplusplus
19834 extern "C"
19835# endif
19836 int F77_DUMMY_MAIN() { return 1; }
19837#endif
19838int
19839main ()
19840{
19841hash_set<int> t; return 0;
19842 ;
19843 return 0;
19844}
19845_ACEOF
19846rm -f conftest.$ac_objext
19847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -s conftest.$ac_objext'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_cv_cxx_have_ext_hash_set=std
19859else
19860 echo "$as_me: failed program was:" >&5
19861cat conftest.$ac_ext >&5
19862ac_cv_cxx_have_ext_hash_set=no
19863fi
19864rm -f conftest.$ac_objext conftest.$ac_ext
19865 cat >conftest.$ac_ext <<_ACEOF
19866#line $LINENO "configure"
19867#include "confdefs.h"
19868#include <ext/hash_set>
19869#ifdef HAVE_NAMESPACES
19870using namespace __gnu_cxx;
19871#endif
19872#ifdef F77_DUMMY_MAIN
19873# ifdef __cplusplus
19874 extern "C"
19875# endif
19876 int F77_DUMMY_MAIN() { return 1; }
19877#endif
19878int
19879main ()
19880{
19881hash_set<int> t; return 0;
19882 ;
19883 return 0;
19884}
19885_ACEOF
19886rm -f conftest.$ac_objext
19887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888 (eval $ac_compile) 2>&5
19889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -s conftest.$ac_objext'
19893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894 (eval $ac_try) 2>&5
19895 ac_status=$?
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_cxx_have_ext_hash_set=gnu
19899else
19900 echo "$as_me: failed program was:" >&5
19901cat conftest.$ac_ext >&5
19902ac_cv_cxx_have_ext_hash_set=no
19903fi
19904rm -f conftest.$ac_objext conftest.$ac_ext
19905 ac_ext=c
19906ac_cpp='$CPP $CPPFLAGS'
19907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910
19911
19912fi
19913echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
19914echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
19915if test "$ac_cv_cxx_have_ext_hash_set" = std; then
19916
19917cat >>confdefs.h <<\_ACEOF
19918#define HAVE_STD_EXT_HASH_SET
19919_ACEOF
19920
19921fi
19922if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
19923
19924cat >>confdefs.h <<\_ACEOF
19925#define HAVE_GNU_EXT_HASH_SET
19926_ACEOF
19927
19928fi
19929
19930echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19931echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19932if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935
19936
19937
19938 ac_ext=cc
19939ac_cpp='$CXXCPP $CPPFLAGS'
19940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19943
19944 cat >conftest.$ac_ext <<_ACEOF
19945#line $LINENO "configure"
19946#include "confdefs.h"
19947#include <ext/slist>
19948#ifdef HAVE_NAMESPACES
19949using namespace std;
19950#endif
19951#ifdef F77_DUMMY_MAIN
19952# ifdef __cplusplus
19953 extern "C"
19954# endif
19955 int F77_DUMMY_MAIN() { return 1; }
19956#endif
19957int
19958main ()
19959{
19960slist<int> s; return 0;
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965rm -f conftest.$ac_objext
19966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_cxx_have_ext_slist=std
19978else
19979 echo "$as_me: failed program was:" >&5
19980cat conftest.$ac_ext >&5
19981ac_cv_cxx_have_ext_slist=no
19982fi
19983rm -f conftest.$ac_objext conftest.$ac_ext
19984 cat >conftest.$ac_ext <<_ACEOF
19985#line $LINENO "configure"
19986#include "confdefs.h"
19987#include <ext/slist>
19988#ifdef HAVE_NAMESPACES
19989using namespace __gnu_cxx;
19990#endif
19991#ifdef F77_DUMMY_MAIN
19992# ifdef __cplusplus
19993 extern "C"
19994# endif
19995 int F77_DUMMY_MAIN() { return 1; }
19996#endif
19997int
19998main ()
19999{
20000slist<int> s; return 0;
20001 ;
20002 return 0;
20003}
20004_ACEOF
20005rm -f conftest.$ac_objext
20006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007 (eval $ac_compile) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 ac_cv_cxx_have_ext_slist=gnu
20018else
20019 echo "$as_me: failed program was:" >&5
20020cat conftest.$ac_ext >&5
20021ac_cv_cxx_have_ext_slist=no
20022fi
20023rm -f conftest.$ac_objext conftest.$ac_ext
20024
20025 ac_ext=c
20026ac_cpp='$CPP $CPPFLAGS'
20027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20029ac_compiler_gnu=$ac_cv_c_compiler_gnu
20030
20031
20032fi
20033echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20034echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20035if test "$ac_cv_cxx_have_ext_slist" = std; then
20036
20037cat >>confdefs.h <<\_ACEOF
20038#define HAVE_EXT_SLIST std
20039_ACEOF
20040
20041fi
20042if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20043
20044cat >>confdefs.h <<\_ACEOF
20045#define HAVE_EXT_SLIST gnu
20046_ACEOF
20047
20048fi
20049
20050echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20051echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20052if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054else
20055
20056
20057
20058 ac_ext=cc
20059ac_cpp='$CXXCPP $CPPFLAGS'
20060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20063
20064 cat >conftest.$ac_ext <<_ACEOF
20065#line $LINENO "configure"
20066#include "confdefs.h"
20067#include <iterator>
20068#ifdef HAVE_NAMESPACES
20069using namespace std;
20070#endif
20071#ifdef F77_DUMMY_MAIN
20072# ifdef __cplusplus
20073 extern "C"
20074# endif
20075 int F77_DUMMY_MAIN() { return 1; }
20076#endif
20077int
20078main ()
20079{
20080iterator<int,int,int> t; return 0;
20081 ;
20082 return 0;
20083}
20084_ACEOF
20085rm -f conftest.$ac_objext
20086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } &&
20091 { ac_try='test -s conftest.$ac_objext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20094 ac_status=$?
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_cxx_have_std_iterator=yes
20098else
20099 echo "$as_me: failed program was:" >&5
20100cat conftest.$ac_ext >&5
20101ac_cv_cxx_have_std_iterator=no
20102fi
20103rm -f conftest.$ac_objext conftest.$ac_ext
20104 ac_ext=c
20105ac_cpp='$CPP $CPPFLAGS'
20106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109
20110
20111fi
20112echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20113echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20114if test "$ac_cv_cxx_have_std_iterator" = yes; then
20115
20116cat >>confdefs.h <<\_ACEOF
20117#define HAVE_STD_ITERATOR
20118_ACEOF
20119
20120fi
20121
20122echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20123echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20124if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127
20128
20129
20130 ac_ext=cc
20131ac_cpp='$CXXCPP $CPPFLAGS'
20132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135
20136 cat >conftest.$ac_ext <<_ACEOF
20137#line $LINENO "configure"
20138#include "confdefs.h"
20139#include <iterator>
20140#ifdef HAVE_NAMESPACES
20141using namespace std;
20142#endif
20143#ifdef F77_DUMMY_MAIN
20144# ifdef __cplusplus
20145 extern "C"
20146# endif
20147 int F77_DUMMY_MAIN() { return 1; }
20148#endif
20149int
20150main ()
20151{
20152bidirectional_iterator<int,int,int> t; return 0;
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } &&
20163 { ac_try='test -s conftest.$ac_objext'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 ac_cv_cxx_have_bi_iterator=yes
20170else
20171 echo "$as_me: failed program was:" >&5
20172cat conftest.$ac_ext >&5
20173ac_cv_cxx_have_bi_iterator=no
20174fi
20175rm -f conftest.$ac_objext conftest.$ac_ext
20176 ac_ext=c
20177ac_cpp='$CPP $CPPFLAGS'
20178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181
20182
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20185echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20186if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20187
20188cat >>confdefs.h <<\_ACEOF
20189#define HAVE_BI_ITERATOR
20190_ACEOF
20191
20192fi
20193
20194echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20195echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20196if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199
20200
20201
20202 ac_ext=cc
20203ac_cpp='$CXXCPP $CPPFLAGS'
20204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20207
20208 cat >conftest.$ac_ext <<_ACEOF
20209#line $LINENO "configure"
20210#include "confdefs.h"
20211#include <iterator>
20212#ifdef HAVE_NAMESPACES
20213using namespace std;
20214#endif
20215#ifdef F77_DUMMY_MAIN
20216# ifdef __cplusplus
20217 extern "C"
20218# endif
20219 int F77_DUMMY_MAIN() { return 1; }
20220#endif
20221int
20222main ()
20223{
20224forward_iterator<int,int,int> t; return 0;
20225 ;
20226 return 0;
20227}
20228_ACEOF
20229rm -f conftest.$ac_objext
20230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231 (eval $ac_compile) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
20235 { ac_try='test -s conftest.$ac_objext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_cxx_have_fwd_iterator=yes
20242else
20243 echo "$as_me: failed program was:" >&5
20244cat conftest.$ac_ext >&5
20245ac_cv_cxx_have_fwd_iterator=no
20246fi
20247rm -f conftest.$ac_objext conftest.$ac_ext
20248 ac_ext=c
20249ac_cpp='$CPP $CPPFLAGS'
20250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252ac_compiler_gnu=$ac_cv_c_compiler_gnu
20253
20254
20255fi
20256echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20257echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20258if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20259
20260cat >>confdefs.h <<\_ACEOF
20261#define HAVE_FWD_ITERATOR
20262_ACEOF
20263
20264fi
20265
20266
20267# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20268# for constant arguments. Useless!
20269echo "$as_me:$LINENO: checking for working alloca.h" >&5
20270echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20271if test "${ac_cv_working_alloca_h+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20273else
20274 cat >conftest.$ac_ext <<_ACEOF
20275#line $LINENO "configure"
20276#include "confdefs.h"
20277#include <alloca.h>
20278#ifdef F77_DUMMY_MAIN
20279# ifdef __cplusplus
20280 extern "C"
20281# endif
20282 int F77_DUMMY_MAIN() { return 1; }
20283#endif
20284int
20285main ()
20286{
20287char *p = (char *) alloca (2 * sizeof (int));
20288 ;
20289 return 0;
20290}
20291_ACEOF
20292rm -f conftest.$ac_objext conftest$ac_exeext
20293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294 (eval $ac_link) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
20298 { ac_try='test -s conftest$ac_exeext'
20299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300 (eval $ac_try) 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_working_alloca_h=yes
20305else
20306 echo "$as_me: failed program was:" >&5
20307cat conftest.$ac_ext >&5
20308ac_cv_working_alloca_h=no
20309fi
20310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20311fi
20312echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20313echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20314if test $ac_cv_working_alloca_h = yes; then
20315
20316cat >>confdefs.h <<\_ACEOF
20317#define HAVE_ALLOCA_H 1
20318_ACEOF
20319
20320fi
20321
20322echo "$as_me:$LINENO: checking for alloca" >&5
20323echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20324if test "${ac_cv_func_alloca_works+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20326else
20327 cat >conftest.$ac_ext <<_ACEOF
20328#line $LINENO "configure"
20329#include "confdefs.h"
20330#ifdef __GNUC__
20331# define alloca __builtin_alloca
20332#else
20333# ifdef _MSC_VER
20334# include <malloc.h>
20335# define alloca _alloca
20336# else
20337# if HAVE_ALLOCA_H
20338# include <alloca.h>
20339# else
20340# ifdef _AIX
20341 #pragma alloca
20342# else
20343# ifndef alloca /* predefined by HP cc +Olibcalls */
20344char *alloca ();
20345# endif
20346# endif
20347# endif
20348# endif
20349#endif
20350
20351#ifdef F77_DUMMY_MAIN
20352# ifdef __cplusplus
20353 extern "C"
20354# endif
20355 int F77_DUMMY_MAIN() { return 1; }
20356#endif
20357int
20358main ()
20359{
20360char *p = (char *) alloca (1);
20361 ;
20362 return 0;
20363}
20364_ACEOF
20365rm -f conftest.$ac_objext conftest$ac_exeext
20366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367 (eval $ac_link) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } &&
20371 { ac_try='test -s conftest$ac_exeext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_func_alloca_works=yes
20378else
20379 echo "$as_me: failed program was:" >&5
20380cat conftest.$ac_ext >&5
20381ac_cv_func_alloca_works=no
20382fi
20383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20384fi
20385echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20386echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20387
20388if test $ac_cv_func_alloca_works = yes; then
20389
20390cat >>confdefs.h <<\_ACEOF
20391#define HAVE_ALLOCA 1
20392_ACEOF
20393
20394else
20395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20396# that cause trouble. Some versions do not even contain alloca or
20397# contain a buggy version. If you still want to use their alloca,
20398# use ar to extract alloca.o from them instead of compiling alloca.c.
20399
20400ALLOCA=alloca.$ac_objext
20401
20402cat >>confdefs.h <<\_ACEOF
20403#define C_ALLOCA 1
20404_ACEOF
20405
20406
20407echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20408echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20409if test "${ac_cv_os_cray+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412 cat >conftest.$ac_ext <<_ACEOF
20413#line $LINENO "configure"
20414#include "confdefs.h"
20415#if defined(CRAY) && ! defined(CRAY2)
20416webecray
20417#else
20418wenotbecray
20419#endif
20420
20421_ACEOF
20422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20423 egrep "webecray" >/dev/null 2>&1; then
20424 ac_cv_os_cray=yes
20425else
20426 ac_cv_os_cray=no
20427fi
20428rm -f conftest*
20429
20430fi
20431echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20432echo "${ECHO_T}$ac_cv_os_cray" >&6
20433if test $ac_cv_os_cray = yes; then
20434 for ac_func in _getb67 GETB67 getb67; do
20435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436echo "$as_me:$LINENO: checking for $ac_func" >&5
20437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20438if eval "test \"\${$as_ac_var+set}\" = set"; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440else
20441 cat >conftest.$ac_ext <<_ACEOF
20442#line $LINENO "configure"
20443#include "confdefs.h"
20444/* System header to define __stub macros and hopefully few prototypes,
20445 which can conflict with char $ac_func (); below. */
20446#include <assert.h>
20447/* Override any gcc2 internal prototype to avoid an error. */
20448#ifdef __cplusplus
20449extern "C"
20450#endif
20451/* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453char $ac_func ();
20454char (*f) ();
20455
20456#ifdef F77_DUMMY_MAIN
20457# ifdef __cplusplus
20458 extern "C"
20459# endif
20460 int F77_DUMMY_MAIN() { return 1; }
20461#endif
20462int
20463main ()
20464{
20465/* The GNU C library defines this for functions which it implements
20466 to always fail with ENOSYS. Some functions are actually named
20467 something starting with __ and the normal name is an alias. */
20468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20469choke me
20470#else
20471f = $ac_func;
20472#endif
20473
20474 ;
20475 return 0;
20476}
20477_ACEOF
20478rm -f conftest.$ac_objext conftest$ac_exeext
20479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480 (eval $ac_link) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -s conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 eval "$as_ac_var=yes"
20491else
20492 echo "$as_me: failed program was:" >&5
20493cat conftest.$ac_ext >&5
20494eval "$as_ac_var=no"
20495fi
20496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20497fi
20498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20500if test `eval echo '${'$as_ac_var'}'` = yes; then
20501
20502cat >>confdefs.h <<_ACEOF
20503#define CRAY_STACKSEG_END $ac_func
20504_ACEOF
20505
20506 break
20507fi
20508
20509 done
20510fi
20511
20512echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20513echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20514if test "${ac_cv_c_stack_direction+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516else
20517 if test "$cross_compiling" = yes; then
20518 ac_cv_c_stack_direction=0
20519else
20520 cat >conftest.$ac_ext <<_ACEOF
20521#line $LINENO "configure"
20522#include "confdefs.h"
20523int
20524find_stack_direction ()
20525{
20526 static char *addr = 0;
20527 auto char dummy;
20528 if (addr == 0)
20529 {
20530 addr = &dummy;
20531 return find_stack_direction ();
20532 }
20533 else
20534 return (&dummy > addr) ? 1 : -1;
20535}
20536
20537int
20538main ()
20539{
20540 exit (find_stack_direction () < 0);
20541}
20542_ACEOF
20543rm -f conftest$ac_exeext
20544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>&5
20546 ac_status=$?
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
20554 ac_cv_c_stack_direction=1
20555else
20556 echo "$as_me: program exited with status $ac_status" >&5
20557echo "$as_me: failed program was:" >&5
20558cat conftest.$ac_ext >&5
20559( exit $ac_status )
20560ac_cv_c_stack_direction=-1
20561fi
20562rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20563fi
20564fi
20565echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20566echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20567
20568cat >>confdefs.h <<_ACEOF
20569#define STACK_DIRECTION $ac_cv_c_stack_direction
20570_ACEOF
20571
20572
20573fi
20574
20575if test $ac_cv_c_compiler_gnu = yes; then
20576 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20577echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20578if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580else
20581 ac_pattern="Autoconf.*'x'"
20582 cat >conftest.$ac_ext <<_ACEOF
20583#line $LINENO "configure"
20584#include "confdefs.h"
20585#include <sgtty.h>
20586Autoconf TIOCGETP
20587_ACEOF
20588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20589 egrep "$ac_pattern" >/dev/null 2>&1; then
20590 ac_cv_prog_gcc_traditional=yes
20591else
20592 ac_cv_prog_gcc_traditional=no
20593fi
20594rm -f conftest*
20595
20596
20597 if test $ac_cv_prog_gcc_traditional = no; then
20598 cat >conftest.$ac_ext <<_ACEOF
20599#line $LINENO "configure"
20600#include "confdefs.h"
20601#include <termio.h>
20602Autoconf TCGETA
20603_ACEOF
20604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20605 egrep "$ac_pattern" >/dev/null 2>&1; then
20606 ac_cv_prog_gcc_traditional=yes
20607fi
20608rm -f conftest*
20609
20610 fi
20611fi
20612echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20613echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20614 if test $ac_cv_prog_gcc_traditional = yes; then
20615 CC="$CC -traditional"
20616 fi
20617fi
20618
20619echo "$as_me:$LINENO: checking for working memcmp" >&5
20620echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20621if test "${ac_cv_func_memcmp_working+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623else
20624 if test "$cross_compiling" = yes; then
20625 ac_cv_func_memcmp_working=no
20626else
20627 cat >conftest.$ac_ext <<_ACEOF
20628#line $LINENO "configure"
20629#include "confdefs.h"
20630
20631#ifdef F77_DUMMY_MAIN
20632# ifdef __cplusplus
20633 extern "C"
20634# endif
20635 int F77_DUMMY_MAIN() { return 1; }
20636#endif
20637int
20638main ()
20639{
20640
20641 /* Some versions of memcmp are not 8-bit clean. */
20642 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20643 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20644 exit (1);
20645
20646 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20647 or more and with at least one buffer not starting on a 4-byte boundary.
20648 William Lewis provided this test program. */
20649 {
20650 char foo[21];
20651 char bar[21];
20652 int i;
20653 for (i = 0; i < 4; i++)
20654 {
20655 char *a = foo + i;
20656 char *b = bar + i;
20657 strcpy (a, "--------01111111");
20658 strcpy (b, "--------10000000");
20659 if (memcmp (a, b, 16) >= 0)
20660 exit (1);
20661 }
20662 exit (0);
20663 }
20664
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669rm -f conftest$ac_exeext
20670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671 (eval $ac_link) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_cv_func_memcmp_working=yes
20681else
20682 echo "$as_me: program exited with status $ac_status" >&5
20683echo "$as_me: failed program was:" >&5
20684cat conftest.$ac_ext >&5
20685( exit $ac_status )
20686ac_cv_func_memcmp_working=no
20687fi
20688rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20689fi
20690fi
20691echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20692echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20693test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20694
20695
20696
20697for ac_header in stdlib.h unistd.h
20698do
20699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700if eval "test \"\${$as_ac_Header+set}\" = set"; then
20701 echo "$as_me:$LINENO: checking for $ac_header" >&5
20702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20703if eval "test \"\${$as_ac_Header+set}\" = set"; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705fi
20706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20708else
20709 # Is the header compilable?
20710echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20712cat >conftest.$ac_ext <<_ACEOF
20713#line $LINENO "configure"
20714#include "confdefs.h"
20715$ac_includes_default
20716#include <$ac_header>
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720 (eval $ac_compile) 2>&5
20721 ac_status=$?
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_header_compiler=yes
20731else
20732 echo "$as_me: failed program was:" >&5
20733cat conftest.$ac_ext >&5
20734ac_header_compiler=no
20735fi
20736rm -f conftest.$ac_objext conftest.$ac_ext
20737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738echo "${ECHO_T}$ac_header_compiler" >&6
20739
20740# Is the header present?
20741echo "$as_me:$LINENO: checking $ac_header presence" >&5
20742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20743cat >conftest.$ac_ext <<_ACEOF
20744#line $LINENO "configure"
20745#include "confdefs.h"
20746#include <$ac_header>
20747_ACEOF
20748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20750 ac_status=$?
20751 egrep -v '^ *\+' conftest.er1 >conftest.err
20752 rm -f conftest.er1
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } >/dev/null; then
20756 if test -s conftest.err; then
20757 ac_cpp_err=$ac_c_preproc_warn_flag
20758 else
20759 ac_cpp_err=
20760 fi
20761else
20762 ac_cpp_err=yes
20763fi
20764if test -z "$ac_cpp_err"; then
20765 ac_header_preproc=yes
20766else
20767 echo "$as_me: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20769 ac_header_preproc=no
20770fi
20771rm -f conftest.err conftest.$ac_ext
20772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773echo "${ECHO_T}$ac_header_preproc" >&6
20774
20775# So? What about this header?
20776case $ac_header_compiler:$ac_header_preproc in
20777 yes:no )
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20782 no:yes )
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20789esac
20790echo "$as_me:$LINENO: checking for $ac_header" >&5
20791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20792if eval "test \"\${$as_ac_Header+set}\" = set"; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794else
20795 eval "$as_ac_Header=$ac_header_preproc"
20796fi
20797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20799
20800fi
20801if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20804_ACEOF
20805
20806fi
20807
20808done
20809
20810
20811for ac_func in getpagesize
20812do
20813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814echo "$as_me:$LINENO: checking for $ac_func" >&5
20815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816if eval "test \"\${$as_ac_var+set}\" = set"; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818else
20819 cat >conftest.$ac_ext <<_ACEOF
20820#line $LINENO "configure"
20821#include "confdefs.h"
20822/* System header to define __stub macros and hopefully few prototypes,
20823 which can conflict with char $ac_func (); below. */
20824#include <assert.h>
20825/* Override any gcc2 internal prototype to avoid an error. */
20826#ifdef __cplusplus
20827extern "C"
20828#endif
20829/* We use char because int might match the return type of a gcc2
20830 builtin and then its argument prototype would still apply. */
20831char $ac_func ();
20832char (*f) ();
20833
20834#ifdef F77_DUMMY_MAIN
20835# ifdef __cplusplus
20836 extern "C"
20837# endif
20838 int F77_DUMMY_MAIN() { return 1; }
20839#endif
20840int
20841main ()
20842{
20843/* The GNU C library defines this for functions which it implements
20844 to always fail with ENOSYS. Some functions are actually named
20845 something starting with __ and the normal name is an alias. */
20846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847choke me
20848#else
20849f = $ac_func;
20850#endif
20851
20852 ;
20853 return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext conftest$ac_exeext
20857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>&5
20859 ac_status=$?
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); } &&
20862 { ac_try='test -s conftest$ac_exeext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
20868 eval "$as_ac_var=yes"
20869else
20870 echo "$as_me: failed program was:" >&5
20871cat conftest.$ac_ext >&5
20872eval "$as_ac_var=no"
20873fi
20874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20875fi
20876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20878if test `eval echo '${'$as_ac_var'}'` = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20881_ACEOF
20882
20883fi
20884done
20885
20886echo "$as_me:$LINENO: checking for working mmap" >&5
20887echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20888if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20890else
20891 if test "$cross_compiling" = yes; then
20892 ac_cv_func_mmap_fixed_mapped=no
20893else
20894 cat >conftest.$ac_ext <<_ACEOF
20895#line $LINENO "configure"
20896#include "confdefs.h"
20897$ac_includes_default
20898/* malloc might have been renamed as rpl_malloc. */
20899#undef malloc
20900
20901/* Thanks to Mike Haertel and Jim Avera for this test.
20902 Here is a matrix of mmap possibilities:
20903 mmap private not fixed
20904 mmap private fixed at somewhere currently unmapped
20905 mmap private fixed at somewhere already mapped
20906 mmap shared not fixed
20907 mmap shared fixed at somewhere currently unmapped
20908 mmap shared fixed at somewhere already mapped
20909 For private mappings, we should verify that changes cannot be read()
20910 back from the file, nor mmap's back from the file at a different
20911 address. (There have been systems where private was not correctly
20912 implemented like the infamous i386 svr4.0, and systems where the
20913 VM page cache was not coherent with the file system buffer cache
20914 like early versions of FreeBSD and possibly contemporary NetBSD.)
20915 For shared mappings, we should conversely verify that changes get
20916 propagated back to all the places they're supposed to be.
20917
20918 Grep wants private fixed already mapped.
20919 The main things grep needs to know about mmap are:
20920 * does it exist and is it safe to write into the mmap'd area
20921 * how to use it (BSD variants) */
20922
20923#include <fcntl.h>
20924#include <sys/mman.h>
20925
20926#if !STDC_HEADERS && !HAVE_STDLIB_H
20927char *malloc ();
20928#endif
20929
20930/* This mess was copied from the GNU getpagesize.h. */
20931#if !HAVE_GETPAGESIZE
20932/* Assume that all systems that can run configure have sys/param.h. */
20933# if !HAVE_SYS_PARAM_H
20934# define HAVE_SYS_PARAM_H 1
20935# endif
20936
20937# ifdef _SC_PAGESIZE
20938# define getpagesize() sysconf(_SC_PAGESIZE)
20939# else /* no _SC_PAGESIZE */
20940# if HAVE_SYS_PARAM_H
20941# include <sys/param.h>
20942# ifdef EXEC_PAGESIZE
20943# define getpagesize() EXEC_PAGESIZE
20944# else /* no EXEC_PAGESIZE */
20945# ifdef NBPG
20946# define getpagesize() NBPG * CLSIZE
20947# ifndef CLSIZE
20948# define CLSIZE 1
20949# endif /* no CLSIZE */
20950# else /* no NBPG */
20951# ifdef NBPC
20952# define getpagesize() NBPC
20953# else /* no NBPC */
20954# ifdef PAGESIZE
20955# define getpagesize() PAGESIZE
20956# endif /* PAGESIZE */
20957# endif /* no NBPC */
20958# endif /* no NBPG */
20959# endif /* no EXEC_PAGESIZE */
20960# else /* no HAVE_SYS_PARAM_H */
20961# define getpagesize() 8192 /* punt totally */
20962# endif /* no HAVE_SYS_PARAM_H */
20963# endif /* no _SC_PAGESIZE */
20964
20965#endif /* no HAVE_GETPAGESIZE */
20966
20967int
20968main ()
20969{
20970 char *data, *data2, *data3;
20971 int i, pagesize;
20972 int fd;
20973
20974 pagesize = getpagesize ();
20975
20976 /* First, make a file with some known garbage in it. */
20977 data = (char *) malloc (pagesize);
20978 if (!data)
20979 exit (1);
20980 for (i = 0; i < pagesize; ++i)
20981 *(data + i) = rand ();
20982 umask (0);
20983 fd = creat ("conftest.mmap", 0600);
20984 if (fd < 0)
20985 exit (1);
20986 if (write (fd, data, pagesize) != pagesize)
20987 exit (1);
20988 close (fd);
20989
20990 /* Next, try to mmap the file at a fixed address which already has
20991 something else allocated at it. If we can, also make sure that
20992 we see the same garbage. */
20993 fd = open ("conftest.mmap", O_RDWR);
20994 if (fd < 0)
20995 exit (1);
20996 data2 = (char *) malloc (2 * pagesize);
20997 if (!data2)
20998 exit (1);
20999 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21000 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21001 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21002 exit (1);
21003 for (i = 0; i < pagesize; ++i)
21004 if (*(data + i) != *(data2 + i))
21005 exit (1);
21006
21007 /* Finally, make sure that changes to the mapped area do not
21008 percolate back to the file as seen by read(). (This is a bug on
21009 some variants of i386 svr4.0.) */
21010 for (i = 0; i < pagesize; ++i)
21011 *(data2 + i) = *(data2 + i) + 1;
21012 data3 = (char *) malloc (pagesize);
21013 if (!data3)
21014 exit (1);
21015 if (read (fd, data3, pagesize) != pagesize)
21016 exit (1);
21017 for (i = 0; i < pagesize; ++i)
21018 if (*(data + i) != *(data3 + i))
21019 exit (1);
21020 close (fd);
21021 exit (0);
21022}
21023_ACEOF
21024rm -f conftest$ac_exeext
21025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>&5
21027 ac_status=$?
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ac_cv_func_mmap_fixed_mapped=yes
21036else
21037 echo "$as_me: program exited with status $ac_status" >&5
21038echo "$as_me: failed program was:" >&5
21039cat conftest.$ac_ext >&5
21040( exit $ac_status )
21041ac_cv_func_mmap_fixed_mapped=no
21042fi
21043rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21044fi
21045fi
21046echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21047echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21048if test $ac_cv_func_mmap_fixed_mapped = yes; then
21049
21050cat >>confdefs.h <<\_ACEOF
21051#define HAVE_MMAP 1
21052_ACEOF
21053
21054fi
21055rm -f conftest.mmap
21056
21057echo "$as_me:$LINENO: checking for mmap of files" >&5
21058echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21059if test "${ac_cv_func_mmap_file+set}" = set; then
21060 echo $ECHO_N "(cached) $ECHO_C" >&6
21061else
21062
21063
21064 ac_ext=c
21065ac_cpp='$CPP $CPPFLAGS'
21066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068ac_compiler_gnu=$ac_cv_c_compiler_gnu
21069
21070 if test "$cross_compiling" = yes; then
21071 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21072echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21073 { (exit 1); exit 1; }; }
21074else
21075 cat >conftest.$ac_ext <<_ACEOF
21076#line $LINENO "configure"
21077#include "confdefs.h"
21078
21079#ifdef HAVE_SYS_MMAN_H
21080#include <sys/mman.h>
21081#endif
21082
21083#ifdef HAVE_SYS_TYPES_H
21084#include <sys/types.h>
21085#endif
21086
21087#ifdef HAVE_FCNTL_H
21088#include <fcntl.h>
21089#endif
21090
21091 int fd;
21092 int main () {
21093 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21094_ACEOF
21095rm -f conftest$ac_exeext
21096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097 (eval $ac_link) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; }; then
21106 ac_cv_func_mmap_file=yes
21107else
21108 echo "$as_me: program exited with status $ac_status" >&5
21109echo "$as_me: failed program was:" >&5
21110cat conftest.$ac_ext >&5
21111( exit $ac_status )
21112ac_cv_func_mmap_file=no
21113fi
21114rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115fi
21116 ac_ext=c
21117ac_cpp='$CPP $CPPFLAGS'
21118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123fi
21124echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21125echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21126if test "$ac_cv_func_mmap_file" = yes; then
21127 cat >>confdefs.h <<\_ACEOF
21128#define HAVE_MMAP_FILE 1
21129_ACEOF
21130
21131 MMAP_FILE=yes
21132
21133fi
21134
21135if test ${ac_cv_func_mmap_file} = "no"
21136then
21137 { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21138echo "$as_me: error: mmap() of files required but not found" >&2;}
21139 { (exit 1); exit 1; }; }
21140fi
21141echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21142echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21143if test "${ac_cv_header_mmap_anon+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145else
21146
21147
21148 ac_ext=c
21149ac_cpp='$CPP $CPPFLAGS'
21150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152ac_compiler_gnu=$ac_cv_c_compiler_gnu
21153
21154 cat >conftest.$ac_ext <<_ACEOF
21155#line $LINENO "configure"
21156#include "confdefs.h"
21157#include <sys/mman.h>
21158 #include <unistd.h>
21159 #include <fcntl.h>
21160#ifdef F77_DUMMY_MAIN
21161# ifdef __cplusplus
21162 extern "C"
21163# endif
21164 int F77_DUMMY_MAIN() { return 1; }
21165#endif
21166int
21167main ()
21168{
21169mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176 (eval $ac_compile) 2>&5
21177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -s conftest.$ac_objext'
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_header_mmap_anon=yes
21187else
21188 echo "$as_me: failed program was:" >&5
21189cat conftest.$ac_ext >&5
21190ac_cv_header_mmap_anon=no
21191fi
21192rm -f conftest.$ac_objext conftest.$ac_ext
21193 ac_ext=c
21194ac_cpp='$CPP $CPPFLAGS'
21195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199
21200fi
21201echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21202echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21203if test "$ac_cv_header_mmap_anon" = yes; then
21204 cat >>confdefs.h <<\_ACEOF
21205#define HAVE_MMAP_ANONYMOUS 1
21206_ACEOF
21207
21208fi
21209
21210echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21211echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21212if test "${ac_cv_type_signal+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21214else
21215 cat >conftest.$ac_ext <<_ACEOF
21216#line $LINENO "configure"
21217#include "confdefs.h"
21218#include <sys/types.h>
21219#include <signal.h>
21220#ifdef signal
21221# undef signal
21222#endif
21223#ifdef __cplusplus
21224extern "C" void (*signal (int, void (*)(int)))(int);
21225#else
21226void (*signal ()) ();
21227#endif
21228
21229#ifdef F77_DUMMY_MAIN
21230# ifdef __cplusplus
21231 extern "C"
21232# endif
21233 int F77_DUMMY_MAIN() { return 1; }
21234#endif
21235int
21236main ()
21237{
21238int i;
21239 ;
21240 return 0;
21241}
21242_ACEOF
21243rm -f conftest.$ac_objext
21244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245 (eval $ac_compile) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } &&
21249 { ac_try='test -s conftest.$ac_objext'
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_cv_type_signal=void
21256else
21257 echo "$as_me: failed program was:" >&5
21258cat conftest.$ac_ext >&5
21259ac_cv_type_signal=int
21260fi
21261rm -f conftest.$ac_objext conftest.$ac_ext
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21264echo "${ECHO_T}$ac_cv_type_signal" >&6
21265
21266cat >>confdefs.h <<_ACEOF
21267#define RETSIGTYPE $ac_cv_type_signal
21268_ACEOF
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21281do
21282as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21283echo "$as_me:$LINENO: checking for $ac_func" >&5
21284echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21285if eval "test \"\${$as_ac_var+set}\" = set"; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21287else
21288 cat >conftest.$ac_ext <<_ACEOF
21289#line $LINENO "configure"
21290#include "confdefs.h"
21291/* System header to define __stub macros and hopefully few prototypes,
21292 which can conflict with char $ac_func (); below. */
21293#include <assert.h>
21294/* Override any gcc2 internal prototype to avoid an error. */
21295#ifdef __cplusplus
21296extern "C"
21297#endif
21298/* We use char because int might match the return type of a gcc2
21299 builtin and then its argument prototype would still apply. */
21300char $ac_func ();
21301char (*f) ();
21302
21303#ifdef F77_DUMMY_MAIN
21304# ifdef __cplusplus
21305 extern "C"
21306# endif
21307 int F77_DUMMY_MAIN() { return 1; }
21308#endif
21309int
21310main ()
21311{
21312/* The GNU C library defines this for functions which it implements
21313 to always fail with ENOSYS. Some functions are actually named
21314 something starting with __ and the normal name is an alias. */
21315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21316choke me
21317#else
21318f = $ac_func;
21319#endif
21320
21321 ;
21322 return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext conftest$ac_exeext
21326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327 (eval $ac_link) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -s conftest$ac_exeext'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; }; then
21337 eval "$as_ac_var=yes"
21338else
21339 echo "$as_me: failed program was:" >&5
21340cat conftest.$ac_ext >&5
21341eval "$as_ac_var=no"
21342fi
21343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21344fi
21345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21347if test `eval echo '${'$as_ac_var'}'` = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21350_ACEOF
21351
21352fi
21353done
21354
21355
21356
21357echo "$as_me:$LINENO: checking for mmap" >&5
21358echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21359if test "${ac_cv_func_mmap+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361else
21362 cat >conftest.$ac_ext <<_ACEOF
21363#line $LINENO "configure"
21364#include "confdefs.h"
21365/* System header to define __stub macros and hopefully few prototypes,
21366 which can conflict with char mmap (); below. */
21367#include <assert.h>
21368/* Override any gcc2 internal prototype to avoid an error. */
21369#ifdef __cplusplus
21370extern "C"
21371#endif
21372/* We use char because int might match the return type of a gcc2
21373 builtin and then its argument prototype would still apply. */
21374char mmap ();
21375char (*f) ();
21376
21377#ifdef F77_DUMMY_MAIN
21378# ifdef __cplusplus
21379 extern "C"
21380# endif
21381 int F77_DUMMY_MAIN() { return 1; }
21382#endif
21383int
21384main ()
21385{
21386/* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
21389#if defined (__stub_mmap) || defined (__stub___mmap)
21390choke me
21391#else
21392f = mmap;
21393#endif
21394
21395 ;
21396 return 0;
21397}
21398_ACEOF
21399rm -f conftest.$ac_objext conftest$ac_exeext
21400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401 (eval $ac_link) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
21405 { ac_try='test -s conftest$ac_exeext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_func_mmap=yes
21412else
21413 echo "$as_me: failed program was:" >&5
21414cat conftest.$ac_ext >&5
21415ac_cv_func_mmap=no
21416fi
21417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21418fi
21419echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21420echo "${ECHO_T}$ac_cv_func_mmap" >&6
21421if test $ac_cv_func_mmap = yes; then
21422 :
21423else
21424 { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21425echo "$as_me: error: Function mmap() required but not found" >&2;}
21426 { (exit 1); exit 1; }; }
21427fi
21428
21429echo "$as_me:$LINENO: checking for mprotect" >&5
21430echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21431if test "${ac_cv_func_mprotect+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433else
21434 cat >conftest.$ac_ext <<_ACEOF
21435#line $LINENO "configure"
21436#include "confdefs.h"
21437/* System header to define __stub macros and hopefully few prototypes,
21438 which can conflict with char mprotect (); below. */
21439#include <assert.h>
21440/* Override any gcc2 internal prototype to avoid an error. */
21441#ifdef __cplusplus
21442extern "C"
21443#endif
21444/* We use char because int might match the return type of a gcc2
21445 builtin and then its argument prototype would still apply. */
21446char mprotect ();
21447char (*f) ();
21448
21449#ifdef F77_DUMMY_MAIN
21450# ifdef __cplusplus
21451 extern "C"
21452# endif
21453 int F77_DUMMY_MAIN() { return 1; }
21454#endif
21455int
21456main ()
21457{
21458/* The GNU C library defines this for functions which it implements
21459 to always fail with ENOSYS. Some functions are actually named
21460 something starting with __ and the normal name is an alias. */
21461#if defined (__stub_mprotect) || defined (__stub___mprotect)
21462choke me
21463#else
21464f = mprotect;
21465#endif
21466
21467 ;
21468 return 0;
21469}
21470_ACEOF
21471rm -f conftest.$ac_objext conftest$ac_exeext
21472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473 (eval $ac_link) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); } &&
21477 { ac_try='test -s conftest$ac_exeext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 ac_cv_func_mprotect=yes
21484else
21485 echo "$as_me: failed program was:" >&5
21486cat conftest.$ac_ext >&5
21487ac_cv_func_mprotect=no
21488fi
21489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21492echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21493if test $ac_cv_func_mprotect = yes; then
21494 :
21495else
21496 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21497echo "$as_me: error: Function mprotect() required but not found" >&2;}
21498 { (exit 1); exit 1; }; }
21499fi
21500
21501
21502# Check whether --enable-purify or --disable-purify was given.
21503if test "${enable_purify+set}" = set; then
21504 enableval="$enable_purify"
21505 ENABLE_PURIFY=ENABLE_PURIFY=1
21506
21507else
21508 ENABLE_PURIFY=
21509
21510fi;
John Criswell7a73b802003-06-30 21:59:07 +000021511# Check whether --enable-optimized or --disable-optimized was given.
21512if test "${enable_optimized+set}" = set; then
21513 enableval="$enable_optimized"
21514 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21515
21516else
21517 ENABLE_OPTIMIZED=
21518
21519fi;
21520# Check whether --enable-spec or --disable-spec was given.
21521if test "${enable_spec+set}" = set; then
21522 enableval="$enable_spec"
21523 USE_SPEC=USE_SPEC=1
21524
21525else
21526 USE_SPEC=
21527
21528fi;
21529# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21530if test "${enable_precompiled_bytecode+set}" = set; then
21531 enableval="$enable_precompiled_bytecode"
21532 UPB=USE_PRECOMPILED_BYTECODE=1
21533
21534else
21535 UPB=
21536
21537fi;
21538case $build in
21539 *i*86*) # Check whether --enable-jit or --disable-jit was given.
21540if test "${enable_jit+set}" = set; then
21541 enableval="$enable_jit"
21542 JIT=TARGET_HAS_JIT=1
21543
21544else
21545 JIT=
21546
21547fi;
21548 ;;
21549 *)
21550 ;;
21551esac
21552
21553
21554# Check whether --with-spec or --without-spec was given.
21555if test "${with_spec+set}" = set; then
21556 withval="$with_spec"
21557 SPEC_ROOT=$withval
21558
21559else
21560 SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21561
21562fi;
21563
21564# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21565if test "${with_llvmgccdir+set}" = set; then
21566 withval="$with_llvmgccdir"
21567 LLVMGCCDIR=$withval
21568
21569fi;
21570
21571# Check whether --with-bcrepos or --without-bcrepos was given.
21572if test "${with_bcrepos+set}" = set; then
21573 withval="$with_bcrepos"
21574 BCR=$withval
21575
21576else
21577 BCR=/home/vadve/lattner/LLVMPrograms
21578
21579fi;
21580
21581# Check whether --with-papi or --without-papi was given.
21582if test "${with_papi+set}" = set; then
21583 withval="$with_papi"
21584 PAPIDIR=$withval
21585
21586else
21587 PAPIDIR=/home/vadve/shared/papi-2.3.4.1
21588
21589fi;
21590
21591# Check whether --with-objroot or --without-objroot was given.
21592if test "${with_objroot+set}" = set; then
21593 withval="$with_objroot"
21594 OBJROOT=$withval
21595
21596else
21597 OBJROOT=.
21598
21599fi;
21600
21601# Check whether --with-purify or --without-purify was given.
21602if test "${with_purify+set}" = set; then
21603 withval="$with_purify"
21604 PURIFY=$withval
21605
21606fi;
21607
21608ac_config_files="$ac_config_files Makefile.config"
21609cat >confcache <<\_ACEOF
21610# This file is a shell script that caches the results of configure
21611# tests run on this system so they can be shared between configure
21612# scripts and configure runs, see configure's option --config-cache.
21613# It is not useful on other systems. If it contains results you don't
21614# want to keep, you may remove or edit it.
21615#
21616# config.status only pays attention to the cache file if you give it
21617# the --recheck option to rerun configure.
21618#
21619# `ac_cv_env_foo' variables (set or unset) will be overriden when
21620# loading this file, other *unset* `ac_cv_foo' will be assigned the
21621# following values.
21622
21623_ACEOF
21624
21625# The following way of writing the cache mishandles newlines in values,
21626# but we know of no workaround that is simple, portable, and efficient.
21627# So, don't put newlines in cache variables' values.
21628# Ultrix sh set writes to stderr and can't be redirected directly,
21629# and sets the high bit in the cache file unless we assign to the vars.
21630{
21631 (set) 2>&1 |
21632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21633 *ac_space=\ *)
21634 # `set' does not quote correctly, so add quotes (double-quote
21635 # substitution turns \\\\ into \\, and sed turns \\ into \).
21636 sed -n \
21637 "s/'/'\\\\''/g;
21638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21639 ;;
21640 *)
21641 # `set' quotes correctly as required by POSIX, so do not add quotes.
21642 sed -n \
21643 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21644 ;;
21645 esac;
21646} |
21647 sed '
21648 t clear
21649 : clear
21650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21651 t end
21652 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21653 : end' >>confcache
21654if cmp -s $cache_file confcache; then :; else
21655 if test -w $cache_file; then
21656 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21657 cat confcache >$cache_file
21658 else
21659 echo "not updating unwritable cache $cache_file"
21660 fi
21661fi
21662rm -f confcache
21663
21664test "x$prefix" = xNONE && prefix=$ac_default_prefix
21665# Let make expand exec_prefix.
21666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21667
21668# VPATH may cause trouble with some makes, so we remove $(srcdir),
21669# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21670# trailing colons and then remove the whole line if VPATH becomes empty
21671# (actually we leave an empty line to preserve line numbers).
21672if test "x$srcdir" = x.; then
21673 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21674s/:*\$(srcdir):*/:/;
21675s/:*\${srcdir}:*/:/;
21676s/:*@srcdir@:*/:/;
21677s/^\([^=]*=[ ]*\):*/\1/;
21678s/:*$//;
21679s/^[^=]*=[ ]*$//;
21680}'
21681fi
21682
21683DEFS=-DHAVE_CONFIG_H
21684
21685
21686: ${CONFIG_STATUS=./config.status}
21687ac_clean_files_save=$ac_clean_files
21688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21689{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21690echo "$as_me: creating $CONFIG_STATUS" >&6;}
21691cat >$CONFIG_STATUS <<_ACEOF
21692#! $SHELL
21693# Generated by $as_me.
21694# Run this file to recreate the current configuration.
21695# Compiler output produced by configure, useful for debugging
21696# configure, is in config.log if it exists.
21697
21698debug=false
21699SHELL=\${CONFIG_SHELL-$SHELL}
21700_ACEOF
21701
21702cat >>$CONFIG_STATUS <<\_ACEOF
21703
21704## --------------------- ##
21705## M4sh Initialization. ##
21706## --------------------- ##
21707
21708# Be Bourne compatible
21709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21710 emulate sh
21711 NULLCMD=:
21712elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21713 set -o posix
21714fi
21715
21716# NLS nuisances.
21717# Support unset when possible.
21718if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21719 as_unset=unset
21720else
21721 as_unset=false
21722fi
21723
21724(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
21725 { $as_unset LANG || test "${LANG+set}" != set; } ||
21726 { LANG=C; export LANG; }
21727(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
21728 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
21729 { LC_ALL=C; export LC_ALL; }
21730(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
21731 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
21732 { LC_TIME=C; export LC_TIME; }
21733(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
21734 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
21735 { LC_CTYPE=C; export LC_CTYPE; }
21736(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
21737 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
21738 { LANGUAGE=C; export LANGUAGE; }
21739(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
21740 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
21741 { LC_COLLATE=C; export LC_COLLATE; }
21742(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
21743 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
21744 { LC_NUMERIC=C; export LC_NUMERIC; }
21745(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
21746 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
21747 { LC_MESSAGES=C; export LC_MESSAGES; }
21748
21749
21750# Name of the executable.
21751as_me=`(basename "$0") 2>/dev/null ||
21752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21753 X"$0" : 'X\(//\)$' \| \
21754 X"$0" : 'X\(/\)$' \| \
21755 . : '\(.\)' 2>/dev/null ||
21756echo X/"$0" |
21757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21758 /^X\/\(\/\/\)$/{ s//\1/; q; }
21759 /^X\/\(\/\).*/{ s//\1/; q; }
21760 s/.*/./; q'`
21761
21762# PATH needs CR, and LINENO needs CR and PATH.
21763# Avoid depending upon Character Ranges.
21764as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21765as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21766as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21767as_cr_digits='0123456789'
21768as_cr_alnum=$as_cr_Letters$as_cr_digits
21769
21770# The user is always right.
21771if test "${PATH_SEPARATOR+set}" != set; then
21772 echo "#! /bin/sh" >conftest.sh
21773 echo "exit 0" >>conftest.sh
21774 chmod +x conftest.sh
21775 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
21776 PATH_SEPARATOR=';'
21777 else
21778 PATH_SEPARATOR=:
21779 fi
21780 rm -f conftest.sh
21781fi
21782
21783
21784 as_lineno_1=$LINENO
21785 as_lineno_2=$LINENO
21786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21787 test "x$as_lineno_1" != "x$as_lineno_2" &&
21788 test "x$as_lineno_3" = "x$as_lineno_2" || {
21789 # Find who we are. Look in the path if we contain no path at all
21790 # relative or not.
21791 case $0 in
21792 *[\\/]* ) as_myself=$0 ;;
21793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21794for as_dir in $PATH
21795do
21796 IFS=$as_save_IFS
21797 test -z "$as_dir" && as_dir=.
21798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21799done
21800
21801 ;;
21802 esac
21803 # We did not find ourselves, most probably we were run as `sh COMMAND'
21804 # in which case we are not to be found in the path.
21805 if test "x$as_myself" = x; then
21806 as_myself=$0
21807 fi
21808 if test ! -f "$as_myself"; then
21809 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21810echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21811 { (exit 1); exit 1; }; }
21812 fi
21813 case $CONFIG_SHELL in
21814 '')
21815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21816for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21817do
21818 IFS=$as_save_IFS
21819 test -z "$as_dir" && as_dir=.
21820 for as_base in sh bash ksh sh5; do
21821 case $as_dir in
21822 /*)
21823 if ("$as_dir/$as_base" -c '
21824 as_lineno_1=$LINENO
21825 as_lineno_2=$LINENO
21826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21827 test "x$as_lineno_1" != "x$as_lineno_2" &&
21828 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21829 CONFIG_SHELL=$as_dir/$as_base
21830 export CONFIG_SHELL
21831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21832 fi;;
21833 esac
21834 done
21835done
21836;;
21837 esac
21838
21839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840 # uniformly replaced by the line number. The first 'sed' inserts a
21841 # line-number line before each line; the second 'sed' does the real
21842 # work. The second script uses 'N' to pair each line-number line
21843 # with the numbered line, and appends trailing '-' during
21844 # substitution so that $LINENO is not a special case at line end.
21845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21847 sed '=' <$as_myself |
21848 sed '
21849 N
21850 s,$,-,
21851 : loop
21852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21853 t loop
21854 s,-$,,
21855 s,^['$as_cr_digits']*\n,,
21856 ' >$as_me.lineno &&
21857 chmod +x $as_me.lineno ||
21858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860 { (exit 1); exit 1; }; }
21861
21862 # Don't try to exec as it changes $[0], causing all sort of problems
21863 # (the dirname of $[0] is not the place where we might find the
21864 # original and so on. Autoconf is especially sensible to this).
21865 . ./$as_me.lineno
21866 # Exit status is that of the last command.
21867 exit
21868}
21869
21870
21871case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872 *c*,-n*) ECHO_N= ECHO_C='
21873' ECHO_T=' ' ;;
21874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21876esac
21877
21878if expr a : '\(a\)' >/dev/null 2>&1; then
21879 as_expr=expr
21880else
21881 as_expr=false
21882fi
21883
21884rm -f conf$$ conf$$.exe conf$$.file
21885echo >conf$$.file
21886if ln -s conf$$.file conf$$ 2>/dev/null; then
21887 # We could just check for DJGPP; but this test a) works b) is more generic
21888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889 if test -f conf$$.exe; then
21890 # Don't use ln at all; we don't have any links
21891 as_ln_s='cp -p'
21892 else
21893 as_ln_s='ln -s'
21894 fi
21895elif ln conf$$.file conf$$ 2>/dev/null; then
21896 as_ln_s=ln
21897else
21898 as_ln_s='cp -p'
21899fi
21900rm -f conf$$ conf$$.exe conf$$.file
21901
21902as_executable_p="test -f"
21903
21904# Sed expression to map a string onto a valid CPP name.
21905as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21906
21907# Sed expression to map a string onto a valid variable name.
21908as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21909
21910
21911# IFS
21912# We need space, tab and new line, in precisely that order.
21913as_nl='
21914'
21915IFS=" $as_nl"
21916
21917# CDPATH.
21918$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
21919
21920exec 6>&1
21921
21922# Open the log real soon, to keep \$[0] and so on meaningful, and to
21923# report actual input values of CONFIG_FILES etc. instead of their
21924# values after options handling. Logging --version etc. is OK.
21925exec 5>>config.log
21926{
21927 echo
21928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21929## Running $as_me. ##
21930_ASBOX
21931} >&5
21932cat >&5 <<_CSEOF
21933
21934This file was extended by [LLVM] $as_me [1.0], which was
21935generated by GNU Autoconf 2.53. Invocation command line was
21936
21937 CONFIG_FILES = $CONFIG_FILES
21938 CONFIG_HEADERS = $CONFIG_HEADERS
21939 CONFIG_LINKS = $CONFIG_LINKS
21940 CONFIG_COMMANDS = $CONFIG_COMMANDS
21941 $ $0 $@
21942
21943_CSEOF
21944echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21945echo >&5
21946_ACEOF
21947
21948# Files that config.status was made for.
21949if test -n "$ac_config_files"; then
21950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21951fi
21952
21953if test -n "$ac_config_headers"; then
21954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21955fi
21956
21957if test -n "$ac_config_links"; then
21958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21959fi
21960
21961if test -n "$ac_config_commands"; then
21962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21963fi
21964
21965cat >>$CONFIG_STATUS <<\_ACEOF
21966
21967ac_cs_usage="\
21968\`$as_me' instantiates files from templates according to the
21969current configuration.
21970
21971Usage: $0 [OPTIONS] [FILE]...
21972
21973 -h, --help print this help, then exit
21974 -V, --version print version number, then exit
21975 -d, --debug don't remove temporary files
21976 --recheck update $as_me by reconfiguring in the same conditions
21977 --file=FILE[:TEMPLATE]
21978 instantiate the configuration file FILE
21979 --header=FILE[:TEMPLATE]
21980 instantiate the configuration header FILE
21981
21982Configuration files:
21983$config_files
21984
21985Configuration headers:
21986$config_headers
21987
21988Report bugs to <bug-autoconf@gnu.org>."
21989_ACEOF
21990
21991cat >>$CONFIG_STATUS <<_ACEOF
21992ac_cs_version="\\
21993[LLVM] config.status [1.0]
21994configured by $0, generated by GNU Autoconf 2.53,
21995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21996
21997Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21998Free Software Foundation, Inc.
21999This config.status script is free software; the Free Software Foundation
22000gives unlimited permission to copy, distribute and modify it."
22001srcdir=$srcdir
22002INSTALL="$INSTALL"
22003_ACEOF
22004
22005cat >>$CONFIG_STATUS <<\_ACEOF
22006# If no file are specified by the user, then we need to provide default
22007# value. By we need to know if files were specified by the user.
22008ac_need_defaults=:
22009while test $# != 0
22010do
22011 case $1 in
22012 --*=*)
22013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22015 shift
22016 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22017 shift
22018 ;;
22019 -*);;
22020 *) # This is not an option, so the user has probably given explicit
22021 # arguments.
22022 ac_need_defaults=false;;
22023 esac
22024
22025 case $1 in
22026 # Handling of the options.
22027_ACEOF
22028cat >>$CONFIG_STATUS <<_ACEOF
22029 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22030 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22031 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22032_ACEOF
22033cat >>$CONFIG_STATUS <<\_ACEOF
22034 --version | --vers* | -V )
22035 echo "$ac_cs_version"; exit 0 ;;
22036 --he | --h)
22037 # Conflict between --help and --header
22038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22039Try \`$0 --help' for more information." >&5
22040echo "$as_me: error: ambiguous option: $1
22041Try \`$0 --help' for more information." >&2;}
22042 { (exit 1); exit 1; }; };;
22043 --help | --hel | -h )
22044 echo "$ac_cs_usage"; exit 0 ;;
22045 --debug | --d* | -d )
22046 debug=: ;;
22047 --file | --fil | --fi | --f )
22048 shift
22049 CONFIG_FILES="$CONFIG_FILES $1"
22050 ac_need_defaults=false;;
22051 --header | --heade | --head | --hea )
22052 shift
22053 CONFIG_HEADERS="$CONFIG_HEADERS $1"
22054 ac_need_defaults=false;;
22055
22056 # This is an error.
22057 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22058Try \`$0 --help' for more information." >&5
22059echo "$as_me: error: unrecognized option: $1
22060Try \`$0 --help' for more information." >&2;}
22061 { (exit 1); exit 1; }; } ;;
22062
22063 *) ac_config_targets="$ac_config_targets $1" ;;
22064
22065 esac
22066 shift
22067done
22068
22069_ACEOF
22070
22071
22072
22073
22074
22075cat >>$CONFIG_STATUS <<\_ACEOF
22076for ac_config_target in $ac_config_targets
22077do
22078 case "$ac_config_target" in
22079 # Handling of arguments.
22080 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22081 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22083echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22084 { (exit 1); exit 1; }; };;
22085 esac
22086done
22087
22088# If the user did not use the arguments to specify the items to instantiate,
22089# then the envvar interface is used. Set only those that are not.
22090# We use the long form for the default assignment because of an extremely
22091# bizarre bug on SunOS 4.1.3.
22092if $ac_need_defaults; then
22093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22095fi
22096
22097# Create a temporary directory, and hook for its removal unless debugging.
22098$debug ||
22099{
22100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22101 trap '{ (exit 1); exit 1; }' 1 2 13 15
22102}
22103
22104# Create a (secure) tmp directory for tmp files.
22105: ${TMPDIR=/tmp}
22106{
22107 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22108 test -n "$tmp" && test -d "$tmp"
22109} ||
22110{
22111 tmp=$TMPDIR/cs$$-$RANDOM
22112 (umask 077 && mkdir $tmp)
22113} ||
22114{
22115 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22116 { (exit 1); exit 1; }
22117}
22118
22119_ACEOF
22120
22121cat >>$CONFIG_STATUS <<_ACEOF
22122
22123#
22124# CONFIG_FILES section.
22125#
22126
22127# No need to generate the scripts if there are no CONFIG_FILES.
22128# This happens for instance when ./config.status config.h
22129if test -n "\$CONFIG_FILES"; then
22130 # Protect against being on the right side of a sed subst in config.status.
22131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22133s,@SHELL@,$SHELL,;t t
22134s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22135s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22136s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22137s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22138s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22139s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22140s,@exec_prefix@,$exec_prefix,;t t
22141s,@prefix@,$prefix,;t t
22142s,@program_transform_name@,$program_transform_name,;t t
22143s,@bindir@,$bindir,;t t
22144s,@sbindir@,$sbindir,;t t
22145s,@libexecdir@,$libexecdir,;t t
22146s,@datadir@,$datadir,;t t
22147s,@sysconfdir@,$sysconfdir,;t t
22148s,@sharedstatedir@,$sharedstatedir,;t t
22149s,@localstatedir@,$localstatedir,;t t
22150s,@libdir@,$libdir,;t t
22151s,@includedir@,$includedir,;t t
22152s,@oldincludedir@,$oldincludedir,;t t
22153s,@infodir@,$infodir,;t t
22154s,@mandir@,$mandir,;t t
22155s,@build_alias@,$build_alias,;t t
22156s,@host_alias@,$host_alias,;t t
22157s,@target_alias@,$target_alias,;t t
22158s,@DEFS@,$DEFS,;t t
22159s,@ECHO_C@,$ECHO_C,;t t
22160s,@ECHO_N@,$ECHO_N,;t t
22161s,@ECHO_T@,$ECHO_T,;t t
22162s,@LIBS@,$LIBS,;t t
22163s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22164s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22165s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22166s,@build@,$build,;t t
22167s,@build_cpu@,$build_cpu,;t t
22168s,@build_vendor@,$build_vendor,;t t
22169s,@build_os@,$build_os,;t t
22170s,@host@,$host,;t t
22171s,@host_cpu@,$host_cpu,;t t
22172s,@host_vendor@,$host_vendor,;t t
22173s,@host_os@,$host_os,;t t
22174s,@target@,$target,;t t
22175s,@target_cpu@,$target_cpu,;t t
22176s,@target_vendor@,$target_vendor,;t t
22177s,@target_os@,$target_os,;t t
22178s,@OS@,$OS,;t t
22179s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22180s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000022181s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022182s,@CXX@,$CXX,;t t
22183s,@CXXFLAGS@,$CXXFLAGS,;t t
22184s,@LDFLAGS@,$LDFLAGS,;t t
22185s,@CPPFLAGS@,$CPPFLAGS,;t t
22186s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22187s,@EXEEXT@,$EXEEXT,;t t
22188s,@OBJEXT@,$OBJEXT,;t t
22189s,@CC@,$CC,;t t
22190s,@CFLAGS@,$CFLAGS,;t t
22191s,@ac_ct_CC@,$ac_ct_CC,;t t
22192s,@CPP@,$CPP,;t t
22193s,@ifGNUmake@,$ifGNUmake,;t t
22194s,@LEX@,$LEX,;t t
22195s,@LEXLIB@,$LEXLIB,;t t
22196s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22197s,@YACC@,$YACC,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022198s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022199s,@LN_S@,$LN_S,;t t
22200s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022201s,@AR@,$AR,;t t
22202s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022203s,@RANLIB@,$RANLIB,;t t
22204s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22205s,@STRIP@,$STRIP,;t t
22206s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000022207s,@CXXCPP@,$CXXCPP,;t t
22208s,@F77@,$F77,;t t
22209s,@FFLAGS@,$FFLAGS,;t t
22210s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022211s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022212s,@SED@,$SED,;t t
22213s,@RM@,$RM,;t t
22214s,@MKDIR@,$MKDIR,;t t
22215s,@DATE@,$DATE,;t t
22216s,@MV@,$MV,;t t
22217s,@DOT@,$DOT,;t t
22218s,@ETAGS@,$ETAGS,;t t
22219s,@PURIFY@,$PURIFY,;t t
22220s,@ALLOCA@,$ALLOCA,;t t
22221s,@LIBOBJS@,$LIBOBJS,;t t
22222s,@MMAP_FILE@,$MMAP_FILE,;t t
22223s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000022224s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22225s,@USE_SPEC@,$USE_SPEC,;t t
22226s,@UPB@,$UPB,;t t
22227s,@JIT@,$JIT,;t t
22228s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22229s,@BCR@,$BCR,;t t
22230s,@PAPIDIR@,$PAPIDIR,;t t
22231s,@OBJROOT@,$OBJROOT,;t t
22232CEOF
22233
22234_ACEOF
22235
22236 cat >>$CONFIG_STATUS <<\_ACEOF
22237 # Split the substitutions into bite-sized pieces for seds with
22238 # small command number limits, like on Digital OSF/1 and HP-UX.
22239 ac_max_sed_lines=48
22240 ac_sed_frag=1 # Number of current file.
22241 ac_beg=1 # First line for current file.
22242 ac_end=$ac_max_sed_lines # Line after last line for current file.
22243 ac_more_lines=:
22244 ac_sed_cmds=
22245 while $ac_more_lines; do
22246 if test $ac_beg -gt 1; then
22247 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22248 else
22249 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22250 fi
22251 if test ! -s $tmp/subs.frag; then
22252 ac_more_lines=false
22253 else
22254 # The purpose of the label and of the branching condition is to
22255 # speed up the sed processing (if there are no `@' at all, there
22256 # is no need to browse any of the substitutions).
22257 # These are the two extra sed commands mentioned above.
22258 (echo ':t
22259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22260 if test -z "$ac_sed_cmds"; then
22261 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22262 else
22263 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22264 fi
22265 ac_sed_frag=`expr $ac_sed_frag + 1`
22266 ac_beg=$ac_end
22267 ac_end=`expr $ac_end + $ac_max_sed_lines`
22268 fi
22269 done
22270 if test -z "$ac_sed_cmds"; then
22271 ac_sed_cmds=cat
22272 fi
22273fi # test -n "$CONFIG_FILES"
22274
22275_ACEOF
22276cat >>$CONFIG_STATUS <<\_ACEOF
22277for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22279 case $ac_file in
22280 - | *:- | *:-:* ) # input from stdin
22281 cat >$tmp/stdin
22282 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22283 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22284 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22285 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22286 * ) ac_file_in=$ac_file.in ;;
22287 esac
22288
22289 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22290 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22292 X"$ac_file" : 'X\(//\)[^/]' \| \
22293 X"$ac_file" : 'X\(//\)$' \| \
22294 X"$ac_file" : 'X\(/\)' \| \
22295 . : '\(.\)' 2>/dev/null ||
22296echo X"$ac_file" |
22297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22299 /^X\(\/\/\)$/{ s//\1/; q; }
22300 /^X\(\/\).*/{ s//\1/; q; }
22301 s/.*/./; q'`
22302 { case "$ac_dir" in
22303 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22304 *) as_incr_dir=.;;
22305esac
22306as_dummy="$ac_dir"
22307for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22308 case $as_mkdir_dir in
22309 # Skip DOS drivespec
22310 ?:) as_incr_dir=$as_mkdir_dir ;;
22311 *)
22312 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22313 test -d "$as_incr_dir" ||
22314 mkdir "$as_incr_dir" ||
22315 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22316echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22317 { (exit 1); exit 1; }; }
22318 ;;
22319 esac
22320done; }
22321
22322 ac_builddir=.
22323
22324if test "$ac_dir" != .; then
22325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22326 # A "../" for each directory in $ac_dir_suffix.
22327 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22328else
22329 ac_dir_suffix= ac_top_builddir=
22330fi
22331
22332case $srcdir in
22333 .) # No --srcdir option. We are building in place.
22334 ac_srcdir=.
22335 if test -z "$ac_top_builddir"; then
22336 ac_top_srcdir=.
22337 else
22338 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22339 fi ;;
22340 [\\/]* | ?:[\\/]* ) # Absolute path.
22341 ac_srcdir=$srcdir$ac_dir_suffix;
22342 ac_top_srcdir=$srcdir ;;
22343 *) # Relative path.
22344 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22345 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22346esac
22347# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22348# absolute.
22349ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22350ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
22351ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22352ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22353
22354
22355 case $INSTALL in
22356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22357 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22358 esac
22359
22360 if test x"$ac_file" != x-; then
22361 { echo "$as_me:$LINENO: creating $ac_file" >&5
22362echo "$as_me: creating $ac_file" >&6;}
22363 rm -f "$ac_file"
22364 fi
22365 # Let's still pretend it is `configure' which instantiates (i.e., don't
22366 # use $as_me), people would be surprised to read:
22367 # /* config.h. Generated by config.status. */
22368 if test x"$ac_file" = x-; then
22369 configure_input=
22370 else
22371 configure_input="$ac_file. "
22372 fi
22373 configure_input=$configure_input"Generated from `echo $ac_file_in |
22374 sed 's,.*/,,'` by configure."
22375
22376 # First look for the input files in the build tree, otherwise in the
22377 # src tree.
22378 ac_file_inputs=`IFS=:
22379 for f in $ac_file_in; do
22380 case $f in
22381 -) echo $tmp/stdin ;;
22382 [\\/$]*)
22383 # Absolute (can't be DOS-style, as IFS=:)
22384 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22385echo "$as_me: error: cannot find input file: $f" >&2;}
22386 { (exit 1); exit 1; }; }
22387 echo $f;;
22388 *) # Relative
22389 if test -f "$f"; then
22390 # Build tree
22391 echo $f
22392 elif test -f "$srcdir/$f"; then
22393 # Source tree
22394 echo $srcdir/$f
22395 else
22396 # /dev/null tree
22397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22398echo "$as_me: error: cannot find input file: $f" >&2;}
22399 { (exit 1); exit 1; }; }
22400 fi;;
22401 esac
22402 done` || { (exit 1); exit 1; }
22403_ACEOF
22404cat >>$CONFIG_STATUS <<_ACEOF
22405 sed "$ac_vpsub
22406$extrasub
22407_ACEOF
22408cat >>$CONFIG_STATUS <<\_ACEOF
22409:t
22410/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411s,@configure_input@,$configure_input,;t t
22412s,@srcdir@,$ac_srcdir,;t t
22413s,@abs_srcdir@,$ac_abs_srcdir,;t t
22414s,@top_srcdir@,$ac_top_srcdir,;t t
22415s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22416s,@builddir@,$ac_builddir,;t t
22417s,@abs_builddir@,$ac_abs_builddir,;t t
22418s,@top_builddir@,$ac_top_builddir,;t t
22419s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22420s,@INSTALL@,$ac_INSTALL,;t t
22421" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22422 rm -f $tmp/stdin
22423 if test x"$ac_file" != x-; then
22424 mv $tmp/out $ac_file
22425 else
22426 cat $tmp/out
22427 rm -f $tmp/out
22428 fi
22429
22430done
22431_ACEOF
22432cat >>$CONFIG_STATUS <<\_ACEOF
22433
22434#
22435# CONFIG_HEADER section.
22436#
22437
22438# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22439# NAME is the cpp macro being defined and VALUE is the value it is being given.
22440#
22441# ac_d sets the value in "#define NAME VALUE" lines.
22442ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22443ac_dB='[ ].*$,\1#\2'
22444ac_dC=' '
22445ac_dD=',;t'
22446# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22447ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22448ac_uB='$,\1#\2define\3'
22449ac_uC=' '
22450ac_uD=',;t'
22451
22452for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22454 case $ac_file in
22455 - | *:- | *:-:* ) # input from stdin
22456 cat >$tmp/stdin
22457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461 * ) ac_file_in=$ac_file.in ;;
22462 esac
22463
22464 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22465echo "$as_me: creating $ac_file" >&6;}
22466
22467 # First look for the input files in the build tree, otherwise in the
22468 # src tree.
22469 ac_file_inputs=`IFS=:
22470 for f in $ac_file_in; do
22471 case $f in
22472 -) echo $tmp/stdin ;;
22473 [\\/$]*)
22474 # Absolute (can't be DOS-style, as IFS=:)
22475 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22476echo "$as_me: error: cannot find input file: $f" >&2;}
22477 { (exit 1); exit 1; }; }
22478 echo $f;;
22479 *) # Relative
22480 if test -f "$f"; then
22481 # Build tree
22482 echo $f
22483 elif test -f "$srcdir/$f"; then
22484 # Source tree
22485 echo $srcdir/$f
22486 else
22487 # /dev/null tree
22488 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22489echo "$as_me: error: cannot find input file: $f" >&2;}
22490 { (exit 1); exit 1; }; }
22491 fi;;
22492 esac
22493 done` || { (exit 1); exit 1; }
22494 # Remove the trailing spaces.
22495 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22496
22497_ACEOF
22498
22499# Transform confdefs.h into two sed scripts, `conftest.defines' and
22500# `conftest.undefs', that substitutes the proper values into
22501# config.h.in to produce config.h. The first handles `#define'
22502# templates, and the second `#undef' templates.
22503# And first: Protect against being on the right side of a sed subst in
22504# config.status. Protect against being in an unquoted here document
22505# in config.status.
22506rm -f conftest.defines conftest.undefs
22507# Using a here document instead of a string reduces the quoting nightmare.
22508# Putting comments in sed scripts is not portable.
22509#
22510# `end' is used to avoid that the second main sed command (meant for
22511# 0-ary CPP macros) applies to n-ary macro definitions.
22512# See the Autoconf documentation for `clear'.
22513cat >confdef2sed.sed <<\_ACEOF
22514s/[\\&,]/\\&/g
22515s,[\\$`],\\&,g
22516t clear
22517: clear
22518s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22519t end
22520s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22521: end
22522_ACEOF
22523# If some macros were called several times there might be several times
22524# the same #defines, which is useless. Nevertheless, we may not want to
22525# sort them, since we want the *last* AC-DEFINE to be honored.
22526uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22527sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22528rm -f confdef2sed.sed
22529
22530# This sed command replaces #undef with comments. This is necessary, for
22531# example, in the case of _POSIX_SOURCE, which is predefined and required
22532# on some systems where configure will not decide to define it.
22533cat >>conftest.undefs <<\_ACEOF
22534s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22535_ACEOF
22536
22537# Break up conftest.defines because some shells have a limit on the size
22538# of here documents, and old seds have small limits too (100 cmds).
22539echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22540echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22541echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22542echo ' :' >>$CONFIG_STATUS
22543rm -f conftest.tail
22544while grep . conftest.defines >/dev/null
22545do
22546 # Write a limited-size here document to $tmp/defines.sed.
22547 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22548 # Speed up: don't consider the non `#define' lines.
22549 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22550 # Work around the forget-to-reset-the-flag bug.
22551 echo 't clr' >>$CONFIG_STATUS
22552 echo ': clr' >>$CONFIG_STATUS
22553 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22554 echo 'CEOF
22555 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22556 rm -f $tmp/in
22557 mv $tmp/out $tmp/in
22558' >>$CONFIG_STATUS
22559 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22560 rm -f conftest.defines
22561 mv conftest.tail conftest.defines
22562done
22563rm -f conftest.defines
22564echo ' fi # egrep' >>$CONFIG_STATUS
22565echo >>$CONFIG_STATUS
22566
22567# Break up conftest.undefs because some shells have a limit on the size
22568# of here documents, and old seds have small limits too (100 cmds).
22569echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22570rm -f conftest.tail
22571while grep . conftest.undefs >/dev/null
22572do
22573 # Write a limited-size here document to $tmp/undefs.sed.
22574 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22575 # Speed up: don't consider the non `#undef'
22576 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22577 # Work around the forget-to-reset-the-flag bug.
22578 echo 't clr' >>$CONFIG_STATUS
22579 echo ': clr' >>$CONFIG_STATUS
22580 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22581 echo 'CEOF
22582 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22583 rm -f $tmp/in
22584 mv $tmp/out $tmp/in
22585' >>$CONFIG_STATUS
22586 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22587 rm -f conftest.undefs
22588 mv conftest.tail conftest.undefs
22589done
22590rm -f conftest.undefs
22591
22592cat >>$CONFIG_STATUS <<\_ACEOF
22593 # Let's still pretend it is `configure' which instantiates (i.e., don't
22594 # use $as_me), people would be surprised to read:
22595 # /* config.h. Generated by config.status. */
22596 if test x"$ac_file" = x-; then
22597 echo "/* Generated by configure. */" >$tmp/config.h
22598 else
22599 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22600 fi
22601 cat $tmp/in >>$tmp/config.h
22602 rm -f $tmp/in
22603 if test x"$ac_file" != x-; then
22604 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22605 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22606echo "$as_me: $ac_file is unchanged" >&6;}
22607 else
22608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610 X"$ac_file" : 'X\(//\)[^/]' \| \
22611 X"$ac_file" : 'X\(//\)$' \| \
22612 X"$ac_file" : 'X\(/\)' \| \
22613 . : '\(.\)' 2>/dev/null ||
22614echo X"$ac_file" |
22615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617 /^X\(\/\/\)$/{ s//\1/; q; }
22618 /^X\(\/\).*/{ s//\1/; q; }
22619 s/.*/./; q'`
22620 { case "$ac_dir" in
22621 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22622 *) as_incr_dir=.;;
22623esac
22624as_dummy="$ac_dir"
22625for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22626 case $as_mkdir_dir in
22627 # Skip DOS drivespec
22628 ?:) as_incr_dir=$as_mkdir_dir ;;
22629 *)
22630 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22631 test -d "$as_incr_dir" ||
22632 mkdir "$as_incr_dir" ||
22633 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22634echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22635 { (exit 1); exit 1; }; }
22636 ;;
22637 esac
22638done; }
22639
22640 rm -f $ac_file
22641 mv $tmp/config.h $ac_file
22642 fi
22643 else
22644 cat $tmp/config.h
22645 rm -f $tmp/config.h
22646 fi
22647done
22648_ACEOF
22649
22650cat >>$CONFIG_STATUS <<\_ACEOF
22651
22652{ (exit 0); exit 0; }
22653_ACEOF
22654chmod +x $CONFIG_STATUS
22655ac_clean_files=$ac_clean_files_save
22656
22657
22658# configure is writing to config.log, and then calls config.status.
22659# config.status does its own redirection, appending to config.log.
22660# Unfortunately, on DOS this fails, as config.log is still kept open
22661# by configure, so config.status won't be able to write to it; its
22662# output is simply discarded. So we exec the FD to /dev/null,
22663# effectively closing config.log, so it can be properly (re)opened and
22664# appended to by config.status. When coming back to configure, we
22665# need to make the FD available again.
22666if test "$no_create" != yes; then
22667 ac_cs_success=:
22668 exec 5>/dev/null
22669 $SHELL $CONFIG_STATUS || ac_cs_success=false
22670 exec 5>>config.log
22671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22672 # would make configure fail if this is the last instruction.
22673 $ac_cs_success || { (exit 1); exit 1; }
22674fi
22675