]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
SLES10 Fixes (part 3):
[mirror_spl-debian.git] / configure
CommitLineData
bf9f3bac 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274$*
275EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete. It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428# Factoring default headers for most tests.
429ac_includes_default="\
430#include <stdio.h>
431#if HAVE_SYS_TYPES_H
432# include <sys/types.h>
433#endif
434#if HAVE_SYS_STAT_H
435# include <sys/stat.h>
436#endif
437#if STDC_HEADERS
438# include <stdlib.h>
439# include <stddef.h>
440#else
441# if HAVE_STDLIB_H
442# include <stdlib.h>
443# endif
444#endif
445#if HAVE_STRING_H
446# if !STDC_HEADERS && HAVE_MEMORY_H
447# include <memory.h>
448# endif
449# include <string.h>
450#endif
451#if HAVE_STRINGS_H
452# include <strings.h>
453#endif
454#if HAVE_INTTYPES_H
455# include <inttypes.h>
456#else
457# if HAVE_STDINT_H
458# include <stdint.h>
459# endif
460#endif
461#if HAVE_UNISTD_H
462# include <unistd.h>
463#endif"
464
c5f70460 465ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPL_META_NAME SPL_META_VERSION SPL_META_RELEASE SPL_META_ALIAS SPL_META_DATA SPL_META_AUTHOR SPL_META_LT_CURRENT SPL_META_LT_REVISION SPL_META_LT_AGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LINUX LINUX_OBJ LINUX_VERSION KERNELMAKE_PARAMS KERNELCPPFLAGS KERNELCFLAGS LIBOBJS LTLIBOBJS'
bf9f3bac 466ac_subst_files=''
467
468# Initialize some variables set by options.
469ac_init_help=
470ac_init_version=false
471# The variables have the same names as the options, with
472# dashes changed to underlines.
473cache_file=/dev/null
474exec_prefix=NONE
475no_create=
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484verbose=
485x_includes=NONE
486x_libraries=NONE
487
488# Installation directory options.
489# These are left unexpanded so users can "make install exec_prefix=/foo"
490# and all the variables that are supposed to be based on exec_prefix
491# by default will actually change.
492# Use braces instead of parens because sh, perl, etc. also accept them.
493bindir='${exec_prefix}/bin'
494sbindir='${exec_prefix}/sbin'
495libexecdir='${exec_prefix}/libexec'
496datadir='${prefix}/share'
497sysconfdir='${prefix}/etc'
498sharedstatedir='${prefix}/com'
499localstatedir='${prefix}/var'
500libdir='${exec_prefix}/lib'
501includedir='${prefix}/include'
502oldincludedir='/usr/include'
503infodir='${prefix}/info'
504mandir='${prefix}/man'
505
506ac_prev=
507for ac_option
508do
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518 # Accept the important Cygnus configure options, so we can diagnose typos.
519
520 case $ac_option in
521
522 -bindir | --bindir | --bindi | --bind | --bin | --bi)
523 ac_prev=bindir ;;
524 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 bindir=$ac_optarg ;;
526
527 -build | --build | --buil | --bui | --bu)
528 ac_prev=build_alias ;;
529 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530 build_alias=$ac_optarg ;;
531
532 -cache-file | --cache-file | --cache-fil | --cache-fi \
533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534 ac_prev=cache_file ;;
535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537 cache_file=$ac_optarg ;;
538
539 --config-cache | -C)
540 cache_file=config.cache ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir=$ac_optarg ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 eval "enable_$ac_feature=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559 # Reject names that are not valid shell variable names.
560 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562 { (exit 1); exit 1; }; }
563 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564 case $ac_option in
565 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_$ac_feature='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix=$ac_optarg ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he | -h)
584 ac_init_help=long ;;
585 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586 ac_init_help=recursive ;;
587 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588 ac_init_help=short ;;
589
590 -host | --host | --hos | --ho)
591 ac_prev=host_alias ;;
592 -host=* | --host=* | --hos=* | --ho=*)
593 host_alias=$ac_optarg ;;
594
595 -includedir | --includedir | --includedi | --included | --include \
596 | --includ | --inclu | --incl | --inc)
597 ac_prev=includedir ;;
598 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599 | --includ=* | --inclu=* | --incl=* | --inc=*)
600 includedir=$ac_optarg ;;
601
602 -infodir | --infodir | --infodi | --infod | --info | --inf)
603 ac_prev=infodir ;;
604 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605 infodir=$ac_optarg ;;
606
607 -libdir | --libdir | --libdi | --libd)
608 ac_prev=libdir ;;
609 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 libdir=$ac_optarg ;;
611
612 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613 | --libexe | --libex | --libe)
614 ac_prev=libexecdir ;;
615 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616 | --libexe=* | --libex=* | --libe=*)
617 libexecdir=$ac_optarg ;;
618
619 -localstatedir | --localstatedir | --localstatedi | --localstated \
620 | --localstate | --localstat | --localsta | --localst \
621 | --locals | --local | --loca | --loc | --lo)
622 ac_prev=localstatedir ;;
623 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626 localstatedir=$ac_optarg ;;
627
628 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629 ac_prev=mandir ;;
630 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 mandir=$ac_optarg ;;
632
633 -nfp | --nfp | --nf)
634 # Obsolete; use --without-fp.
635 with_fp=no ;;
636
637 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638 | --no-cr | --no-c | -n)
639 no_create=yes ;;
640
641 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 no_recursion=yes ;;
644
645 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647 | --oldin | --oldi | --old | --ol | --o)
648 ac_prev=oldincludedir ;;
649 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652 oldincludedir=$ac_optarg ;;
653
654 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655 ac_prev=prefix ;;
656 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 prefix=$ac_optarg ;;
658
659 -program-prefix | --program-prefix | --program-prefi | --program-pref \
660 | --program-pre | --program-pr | --program-p)
661 ac_prev=program_prefix ;;
662 -program-prefix=* | --program-prefix=* | --program-prefi=* \
663 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664 program_prefix=$ac_optarg ;;
665
666 -program-suffix | --program-suffix | --program-suffi | --program-suff \
667 | --program-suf | --program-su | --program-s)
668 ac_prev=program_suffix ;;
669 -program-suffix=* | --program-suffix=* | --program-suffi=* \
670 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671 program_suffix=$ac_optarg ;;
672
673 -program-transform-name | --program-transform-name \
674 | --program-transform-nam | --program-transform-na \
675 | --program-transform-n | --program-transform- \
676 | --program-transform | --program-transfor \
677 | --program-transfo | --program-transf \
678 | --program-trans | --program-tran \
679 | --progr-tra | --program-tr | --program-t)
680 ac_prev=program_transform_name ;;
681 -program-transform-name=* | --program-transform-name=* \
682 | --program-transform-nam=* | --program-transform-na=* \
683 | --program-transform-n=* | --program-transform-=* \
684 | --program-transform=* | --program-transfor=* \
685 | --program-transfo=* | --program-transf=* \
686 | --program-trans=* | --program-tran=* \
687 | --progr-tra=* | --program-tr=* | --program-t=*)
688 program_transform_name=$ac_optarg ;;
689
690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691 | -silent | --silent | --silen | --sile | --sil)
692 silent=yes ;;
693
694 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695 ac_prev=sbindir ;;
696 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697 | --sbi=* | --sb=*)
698 sbindir=$ac_optarg ;;
699
700 -sharedstatedir | --sharedstatedir | --sharedstatedi \
701 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702 | --sharedst | --shareds | --shared | --share | --shar \
703 | --sha | --sh)
704 ac_prev=sharedstatedir ;;
705 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708 | --sha=* | --sh=*)
709 sharedstatedir=$ac_optarg ;;
710
711 -site | --site | --sit)
712 ac_prev=site ;;
713 -site=* | --site=* | --sit=*)
714 site=$ac_optarg ;;
715
716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717 ac_prev=srcdir ;;
718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 srcdir=$ac_optarg ;;
720
721 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722 | --syscon | --sysco | --sysc | --sys | --sy)
723 ac_prev=sysconfdir ;;
724 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726 sysconfdir=$ac_optarg ;;
727
728 -target | --target | --targe | --targ | --tar | --ta | --t)
729 ac_prev=target_alias ;;
730 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731 target_alias=$ac_optarg ;;
732
733 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 verbose=yes ;;
735
736 -version | --version | --versio | --versi | --vers | -V)
737 ac_init_version=: ;;
738
739 -with-* | --with-*)
740 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741 # Reject names that are not valid shell variable names.
742 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743 { echo "$as_me: error: invalid package name: $ac_package" >&2
744 { (exit 1); exit 1; }; }
745 ac_package=`echo $ac_package| sed 's/-/_/g'`
746 case $ac_option in
747 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 *) ac_optarg=yes ;;
749 esac
750 eval "with_$ac_package='$ac_optarg'" ;;
751
752 -without-* | --without-*)
753 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754 # Reject names that are not valid shell variable names.
755 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756 { echo "$as_me: error: invalid package name: $ac_package" >&2
757 { (exit 1); exit 1; }; }
758 ac_package=`echo $ac_package | sed 's/-/_/g'`
759 eval "with_$ac_package=no" ;;
760
761 --x)
762 # Obsolete; use --with-x.
763 with_x=yes ;;
764
765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766 | --x-incl | --x-inc | --x-in | --x-i)
767 ac_prev=x_includes ;;
768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770 x_includes=$ac_optarg ;;
771
772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774 ac_prev=x_libraries ;;
775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777 x_libraries=$ac_optarg ;;
778
779 -*) { echo "$as_me: error: unrecognized option: $ac_option
780Try \`$0 --help' for more information." >&2
781 { (exit 1); exit 1; }; }
782 ;;
783
784 *=*)
785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786 # Reject names that are not valid shell variable names.
787 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789 { (exit 1); exit 1; }; }
790 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791 eval "$ac_envvar='$ac_optarg'"
792 export $ac_envvar ;;
793
794 *)
795 # FIXME: should be removed in autoconf 3.0.
796 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 ;;
801
802 esac
803done
804
805if test -n "$ac_prev"; then
806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807 { echo "$as_me: error: missing argument to $ac_option" >&2
808 { (exit 1); exit 1; }; }
809fi
810
811# Be sure to have absolute paths.
812for ac_var in exec_prefix prefix
813do
814 eval ac_val=$`echo $ac_var`
815 case $ac_val in
816 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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# Be sure to have absolute paths.
823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824 localstatedir libdir includedir oldincludedir infodir mandir
825do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832done
833
834# There might be people who depend on the old broken behavior: `$host'
835# used to hold the argument of --host etc.
836# FIXME: To remove some day.
837build=$build_alias
838host=$host_alias
839target=$target_alias
840
841# FIXME: To remove some day.
842if test "x$host_alias" != x; then
843 if test "x$build_alias" = x; then
844 cross_compiling=maybe
845 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846 If a cross compiler is detected then cross compile mode will be used." >&2
847 elif test "x$build_alias" != "x$host_alias"; then
848 cross_compiling=yes
849 fi
850fi
851
852ac_tool_prefix=
853test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855test "$silent" = yes && exec 6>/dev/null
856
857
858# Find the source files, if location was not specified.
859if test -z "$srcdir"; then
860 ac_srcdir_defaulted=yes
861 # Try the directory containing this script, then its parent.
862 ac_confdir=`(dirname "$0") 2>/dev/null ||
863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864 X"$0" : 'X\(//\)[^/]' \| \
865 X"$0" : 'X\(//\)$' \| \
866 X"$0" : 'X\(/\)' \| \
867 . : '\(.\)' 2>/dev/null ||
868echo X"$0" |
869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871 /^X\(\/\/\)$/{ s//\1/; q; }
872 /^X\(\/\).*/{ s//\1/; q; }
873 s/.*/./; q'`
874 srcdir=$ac_confdir
875 if test ! -r $srcdir/$ac_unique_file; then
876 srcdir=..
877 fi
878else
879 ac_srcdir_defaulted=no
880fi
881if test ! -r $srcdir/$ac_unique_file; then
882 if test "$ac_srcdir_defaulted" = yes; then
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884 { (exit 1); exit 1; }; }
885 else
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887 { (exit 1); exit 1; }; }
888 fi
889fi
890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892 { (exit 1); exit 1; }; }
893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894ac_env_build_alias_set=${build_alias+set}
895ac_env_build_alias_value=$build_alias
896ac_cv_env_build_alias_set=${build_alias+set}
897ac_cv_env_build_alias_value=$build_alias
898ac_env_host_alias_set=${host_alias+set}
899ac_env_host_alias_value=$host_alias
900ac_cv_env_host_alias_set=${host_alias+set}
901ac_cv_env_host_alias_value=$host_alias
902ac_env_target_alias_set=${target_alias+set}
903ac_env_target_alias_value=$target_alias
904ac_cv_env_target_alias_set=${target_alias+set}
905ac_cv_env_target_alias_value=$target_alias
906ac_env_CC_set=${CC+set}
907ac_env_CC_value=$CC
908ac_cv_env_CC_set=${CC+set}
909ac_cv_env_CC_value=$CC
910ac_env_CFLAGS_set=${CFLAGS+set}
911ac_env_CFLAGS_value=$CFLAGS
912ac_cv_env_CFLAGS_set=${CFLAGS+set}
913ac_cv_env_CFLAGS_value=$CFLAGS
914ac_env_LDFLAGS_set=${LDFLAGS+set}
915ac_env_LDFLAGS_value=$LDFLAGS
916ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917ac_cv_env_LDFLAGS_value=$LDFLAGS
918ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_env_CPPFLAGS_value=$CPPFLAGS
920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922ac_env_CPP_set=${CPP+set}
923ac_env_CPP_value=$CPP
924ac_cv_env_CPP_set=${CPP+set}
925ac_cv_env_CPP_value=$CPP
926ac_env_CXX_set=${CXX+set}
927ac_env_CXX_value=$CXX
928ac_cv_env_CXX_set=${CXX+set}
929ac_cv_env_CXX_value=$CXX
930ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_env_CXXFLAGS_value=$CXXFLAGS
932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934ac_env_CXXCPP_set=${CXXCPP+set}
935ac_env_CXXCPP_value=$CXXCPP
936ac_cv_env_CXXCPP_set=${CXXCPP+set}
937ac_cv_env_CXXCPP_value=$CXXCPP
938ac_env_F77_set=${F77+set}
939ac_env_F77_value=$F77
940ac_cv_env_F77_set=${F77+set}
941ac_cv_env_F77_value=$F77
942ac_env_FFLAGS_set=${FFLAGS+set}
943ac_env_FFLAGS_value=$FFLAGS
944ac_cv_env_FFLAGS_set=${FFLAGS+set}
945ac_cv_env_FFLAGS_value=$FFLAGS
946
947#
948# Report the --help message.
949#
950if test "$ac_init_help" = "long"; then
951 # Omit some internal or obsolete options to make the list less imposing.
952 # This message is too long to be a string in the A/UX 3.1 sh.
953 cat <<_ACEOF
954\`configure' configures this package to adapt to many kinds of systems.
955
956Usage: $0 [OPTION]... [VAR=VALUE]...
957
958To assign environment variables (e.g., CC, CFLAGS...), specify them as
959VAR=VALUE. See below for descriptions of some of the useful variables.
960
961Defaults for the options are specified in brackets.
962
963Configuration:
964 -h, --help display this help and exit
965 --help=short display options specific to this package
966 --help=recursive display the short help of all the included packages
967 -V, --version display version information and exit
968 -q, --quiet, --silent do not print \`checking...' messages
969 --cache-file=FILE cache test results in FILE [disabled]
970 -C, --config-cache alias for \`--cache-file=config.cache'
971 -n, --no-create do not create output files
972 --srcdir=DIR find the sources in DIR [configure dir or \`..']
973
974_ACEOF
975
976 cat <<_ACEOF
977Installation directories:
978 --prefix=PREFIX install architecture-independent files in PREFIX
979 [$ac_default_prefix]
980 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
981 [PREFIX]
982
983By default, \`make install' will install all the files in
984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
985an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986for instance \`--prefix=\$HOME'.
987
988For better control, use the options below.
989
990Fine tuning of the installation directories:
991 --bindir=DIR user executables [EPREFIX/bin]
992 --sbindir=DIR system admin executables [EPREFIX/sbin]
993 --libexecdir=DIR program executables [EPREFIX/libexec]
994 --datadir=DIR read-only architecture-independent data [PREFIX/share]
995 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
996 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
997 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
998 --libdir=DIR object code libraries [EPREFIX/lib]
999 --includedir=DIR C header files [PREFIX/include]
1000 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1001 --infodir=DIR info documentation [PREFIX/info]
1002 --mandir=DIR man documentation [PREFIX/man]
1003_ACEOF
1004
1005 cat <<\_ACEOF
1006
1007Program names:
1008 --program-prefix=PREFIX prepend PREFIX to installed program names
1009 --program-suffix=SUFFIX append SUFFIX to installed program names
1010 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1011
1012System types:
1013 --build=BUILD configure for building on BUILD [guessed]
1014 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 --target=TARGET configure for building compilers for TARGET [HOST]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-debug Enable generic debug support (default off)
1038 --enable-debug-kmem Enable kmem debug support (default off)
1039 --enable-debug-mutex Enable mutex debug support (default off)
1040 --enable-debug-kstat Enable kstat debug support (default off)
1041 --enable-debug-callb Enable callb debug support (default off)
1042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
1051 --with-linux=PATH Path to kernel source
1052 --with-linux-obj=PATH Path to kernel build objects
1053
1054Some influential environment variables:
1055 CC C compiler command
1056 CFLAGS C compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CPP C preprocessor
1062 CXX C++ compiler command
1063 CXXFLAGS C++ compiler flags
1064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
1067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071_ACEOF
1072fi
1073
1074if test "$ac_init_help" = "recursive"; then
1075 # If there are subdirs, report their specific --help.
1076 ac_popdir=`pwd`
1077 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1078 test -d $ac_dir || continue
1079 ac_builddir=.
1080
1081if test "$ac_dir" != .; then
1082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1083 # A "../" for each directory in $ac_dir_suffix.
1084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1085else
1086 ac_dir_suffix= ac_top_builddir=
1087fi
1088
1089case $srcdir in
1090 .) # No --srcdir option. We are building in place.
1091 ac_srcdir=.
1092 if test -z "$ac_top_builddir"; then
1093 ac_top_srcdir=.
1094 else
1095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1096 fi ;;
1097 [\\/]* | ?:[\\/]* ) # Absolute path.
1098 ac_srcdir=$srcdir$ac_dir_suffix;
1099 ac_top_srcdir=$srcdir ;;
1100 *) # Relative path.
1101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1102 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1103esac
1104
1105# Do not use `cd foo && pwd` to compute absolute paths, because
1106# the directories may not exist.
1107case `pwd` in
1108.) ac_abs_builddir="$ac_dir";;
1109*)
1110 case "$ac_dir" in
1111 .) ac_abs_builddir=`pwd`;;
1112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1113 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1114 esac;;
1115esac
1116case $ac_abs_builddir in
1117.) ac_abs_top_builddir=${ac_top_builddir}.;;
1118*)
1119 case ${ac_top_builddir}. in
1120 .) ac_abs_top_builddir=$ac_abs_builddir;;
1121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1123 esac;;
1124esac
1125case $ac_abs_builddir in
1126.) ac_abs_srcdir=$ac_srcdir;;
1127*)
1128 case $ac_srcdir in
1129 .) ac_abs_srcdir=$ac_abs_builddir;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1132 esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_srcdir=$ac_top_srcdir;;
1136*)
1137 case $ac_top_srcdir in
1138 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1141 esac;;
1142esac
1143
1144 cd $ac_dir
1145 # Check for guested configure; otherwise get Cygnus style configure.
1146 if test -f $ac_srcdir/configure.gnu; then
1147 echo
1148 $SHELL $ac_srcdir/configure.gnu --help=recursive
1149 elif test -f $ac_srcdir/configure; then
1150 echo
1151 $SHELL $ac_srcdir/configure --help=recursive
1152 elif test -f $ac_srcdir/configure.ac ||
1153 test -f $ac_srcdir/configure.in; then
1154 echo
1155 $ac_configure --help
1156 else
1157 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1158 fi
1159 cd $ac_popdir
1160 done
1161fi
1162
1163test -n "$ac_init_help" && exit 0
1164if $ac_init_version; then
1165 cat <<\_ACEOF
1166
1167Copyright (C) 2003 Free Software Foundation, Inc.
1168This configure script is free software; the Free Software Foundation
1169gives unlimited permission to copy, distribute and modify it.
1170_ACEOF
1171 exit 0
1172fi
1173exec 5>config.log
1174cat >&5 <<_ACEOF
1175This file contains any messages produced by compilers while
1176running configure, to aid debugging if configure makes a mistake.
1177
1178It was created by $as_me, which was
1179generated by GNU Autoconf 2.59. Invocation command line was
1180
1181 $ $0 $@
1182
1183_ACEOF
1184{
1185cat <<_ASUNAME
1186## --------- ##
1187## Platform. ##
1188## --------- ##
1189
1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1191uname -m = `(uname -m) 2>/dev/null || echo unknown`
1192uname -r = `(uname -r) 2>/dev/null || echo unknown`
1193uname -s = `(uname -s) 2>/dev/null || echo unknown`
1194uname -v = `(uname -v) 2>/dev/null || echo unknown`
1195
1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1198
1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1206
1207_ASUNAME
1208
1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1210for as_dir in $PATH
1211do
1212 IFS=$as_save_IFS
1213 test -z "$as_dir" && as_dir=.
1214 echo "PATH: $as_dir"
1215done
1216
1217} >&5
1218
1219cat >&5 <<_ACEOF
1220
1221
1222## ----------- ##
1223## Core tests. ##
1224## ----------- ##
1225
1226_ACEOF
1227
1228
1229# Keep a trace of the command line.
1230# Strip out --no-create and --no-recursion so they do not pile up.
1231# Strip out --silent because we don't want to record it for future runs.
1232# Also quote any args containing shell meta-characters.
1233# Make two passes to allow for proper duplicate-argument suppression.
1234ac_configure_args=
1235ac_configure_args0=
1236ac_configure_args1=
1237ac_sep=
1238ac_must_keep_next=false
1239for ac_pass in 1 2
1240do
1241 for ac_arg
1242 do
1243 case $ac_arg in
1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 continue ;;
1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1250 esac
1251 case $ac_pass in
1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1253 2)
1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1255 if test $ac_must_keep_next = true; then
1256 ac_must_keep_next=false # Got value, back to normal.
1257 else
1258 case $ac_arg in
1259 *=* | --config-cache | -C | -disable-* | --disable-* \
1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1262 | -with-* | --with-* | -without-* | --without-* | --x)
1263 case "$ac_configure_args0 " in
1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1265 esac
1266 ;;
1267 -* ) ac_must_keep_next=true ;;
1268 esac
1269 fi
1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1271 # Get rid of the leading space.
1272 ac_sep=" "
1273 ;;
1274 esac
1275 done
1276done
1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1279
1280# When interrupted or exit'd, cleanup temporary files, and complete
1281# config.log. We remove comments because anyway the quotes in there
1282# would cause problems or look ugly.
1283# WARNING: Be sure not to use single quotes in there, as some shells,
1284# such as our DU 5.0 friend, will then `close' the trap.
1285trap 'exit_status=$?
1286 # Save into config.log some information that might help in debugging.
1287 {
1288 echo
1289
1290 cat <<\_ASBOX
1291## ---------------- ##
1292## Cache variables. ##
1293## ---------------- ##
1294_ASBOX
1295 echo
1296 # The following way of writing the cache mishandles newlines in values,
1297{
1298 (set) 2>&1 |
1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1300 *ac_space=\ *)
1301 sed -n \
1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1304 ;;
1305 *)
1306 sed -n \
1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1308 ;;
1309 esac;
1310}
1311 echo
1312
1313 cat <<\_ASBOX
1314## ----------------- ##
1315## Output variables. ##
1316## ----------------- ##
1317_ASBOX
1318 echo
1319 for ac_var in $ac_subst_vars
1320 do
1321 eval ac_val=$`echo $ac_var`
1322 echo "$ac_var='"'"'$ac_val'"'"'"
1323 done | sort
1324 echo
1325
1326 if test -n "$ac_subst_files"; then
1327 cat <<\_ASBOX
1328## ------------- ##
1329## Output files. ##
1330## ------------- ##
1331_ASBOX
1332 echo
1333 for ac_var in $ac_subst_files
1334 do
1335 eval ac_val=$`echo $ac_var`
1336 echo "$ac_var='"'"'$ac_val'"'"'"
1337 done | sort
1338 echo
1339 fi
1340
1341 if test -s confdefs.h; then
1342 cat <<\_ASBOX
1343## ----------- ##
1344## confdefs.h. ##
1345## ----------- ##
1346_ASBOX
1347 echo
1348 sed "/^$/d" confdefs.h | sort
1349 echo
1350 fi
1351 test "$ac_signal" != 0 &&
1352 echo "$as_me: caught signal $ac_signal"
1353 echo "$as_me: exit $exit_status"
1354 } >&5
1355 rm -f core *.core &&
1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1357 exit $exit_status
1358 ' 0
1359for ac_signal in 1 2 13 15; do
1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1361done
1362ac_signal=0
1363
1364# confdefs.h avoids OS command line length limits that DEFS can exceed.
1365rm -rf conftest* confdefs.h
1366# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1367echo >confdefs.h
1368
1369# Predefined preprocessor variables.
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_NAME "$PACKAGE_NAME"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_VERSION "$PACKAGE_VERSION"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_STRING "$PACKAGE_STRING"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1393_ACEOF
1394
1395
1396# Let the site file select an alternate cache file if it wants to.
1397# Prefer explicitly selected file to automatically selected ones.
1398if test -z "$CONFIG_SITE"; then
1399 if test "x$prefix" != xNONE; then
1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1401 else
1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1403 fi
1404fi
1405for ac_site_file in $CONFIG_SITE; do
1406 if test -r "$ac_site_file"; then
1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1408echo "$as_me: loading site script $ac_site_file" >&6;}
1409 sed 's/^/| /' "$ac_site_file" >&5
1410 . "$ac_site_file"
1411 fi
1412done
1413
1414if test -r "$cache_file"; then
1415 # Some versions of bash will fail to source /dev/null (special
1416 # files actually), so we avoid doing that.
1417 if test -f "$cache_file"; then
1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1419echo "$as_me: loading cache $cache_file" >&6;}
1420 case $cache_file in
1421 [\\/]* | ?:[\\/]* ) . $cache_file;;
1422 *) . ./$cache_file;;
1423 esac
1424 fi
1425else
1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1427echo "$as_me: creating cache $cache_file" >&6;}
1428 >$cache_file
1429fi
1430
1431# Check that the precious variables saved in the cache have kept the same
1432# value.
1433ac_cache_corrupted=false
1434for ac_var in `(set) 2>&1 |
1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1437 eval ac_new_set=\$ac_env_${ac_var}_set
1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1439 eval ac_new_val="\$ac_env_${ac_var}_value"
1440 case $ac_old_set,$ac_new_set in
1441 set,)
1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1444 ac_cache_corrupted=: ;;
1445 ,set)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,);;
1450 *)
1451 if test "x$ac_old_val" != "x$ac_new_val"; then
1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1455echo "$as_me: former value: $ac_old_val" >&2;}
1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1457echo "$as_me: current value: $ac_new_val" >&2;}
1458 ac_cache_corrupted=:
1459 fi;;
1460 esac
1461 # Pass precious variables to config.status.
1462 if test "$ac_new_set" = set; then
1463 case $ac_new_val in
1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1466 *) ac_arg=$ac_var=$ac_new_val ;;
1467 esac
1468 case " $ac_configure_args " in
1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1471 esac
1472 fi
1473done
1474if $ac_cache_corrupted; then
1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1476echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1479 { (exit 1); exit 1; }; }
1480fi
1481
1482ac_ext=c
1483ac_cpp='$CPP $CPPFLAGS'
1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
0c617c9a
BB
1506ac_ext=c
1507ac_cpp='$CPP $CPPFLAGS'
1508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511
1512
dd529a30 1513 echo "$as_me:$LINENO: checking metadata" >&5
1514echo $ECHO_N "checking metadata... $ECHO_C" >&6
1515
1516 META="$srcdir/META"
1517 _spl_ac_meta_got_file=no
1518 if test -f "$META"; then
1519 _spl_ac_meta_got_file=yes
1520
abc3ca14 1521 SPL_META_NAME=`perl -n\
dd529a30 1522 -e "BEGIN { \\$key=shift @ARGV; }"\
1523 -e "next unless s/^\s*\\$key[:=]//i;"\
1524 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1525 -e "s/^\s+//;"\
1526 -e "s/\s+$//;"\
1527 -e "s/^(['\"])(.*)\1/\\$2/;"\
1528 -e "\\$val=\\$_;"\
1529 -e "END { print \\$val if defined \\$val; }"\
1530 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 1531 if test -n "$SPL_META_NAME"; then
dd529a30 1532
1533cat >>confdefs.h <<_ACEOF
abc3ca14 1534#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 1535_ACEOF
1536
1537
1538 fi
1539
abc3ca14 1540 SPL_META_VERSION=`perl -n\
dd529a30 1541 -e "BEGIN { \\$key=shift @ARGV; }"\
1542 -e "next unless s/^\s*\\$key[:=]//i;"\
1543 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1544 -e "s/^\s+//;"\
1545 -e "s/\s+$//;"\
1546 -e "s/^(['\"])(.*)\1/\\$2/;"\
1547 -e "\\$val=\\$_;"\
1548 -e "END { print \\$val if defined \\$val; }"\
1549 'VERSION' $META`;
abc3ca14 1550 if test -n "$SPL_META_VERSION"; then
dd529a30 1551
1552cat >>confdefs.h <<_ACEOF
abc3ca14 1553#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 1554_ACEOF
1555
1556
1557 fi
1558
abc3ca14 1559 SPL_META_RELEASE=`perl -n\
dd529a30 1560 -e "BEGIN { \\$key=shift @ARGV; }"\
1561 -e "next unless s/^\s*\\$key[:=]//i;"\
1562 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1563 -e "s/^\s+//;"\
1564 -e "s/\s+$//;"\
1565 -e "s/^(['\"])(.*)\1/\\$2/;"\
1566 -e "\\$val=\\$_;"\
1567 -e "END { print \\$val if defined \\$val; }"\
1568 'RELEASE' $META`;
abc3ca14 1569 if test -n "$SPL_META_RELEASE"; then
dd529a30 1570
1571cat >>confdefs.h <<_ACEOF
abc3ca14 1572#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 1573_ACEOF
1574
1575
1576 fi
1577
abc3ca14 1578 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 1579 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 1580 test -n "$SPL_META_RELEASE" &&
72e7de60 1581 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 1582
1583cat >>confdefs.h <<_ACEOF
72e7de60 1584#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 1585_ACEOF
1586
1587
1588 fi
1589
abc3ca14 1590 SPL_META_DATA=`perl -n\
dd529a30 1591 -e "BEGIN { \\$key=shift @ARGV; }"\
1592 -e "next unless s/^\s*\\$key[:=]//i;"\
1593 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1594 -e "s/^\s+//;"\
1595 -e "s/\s+$//;"\
1596 -e "s/^(['\"])(.*)\1/\\$2/;"\
1597 -e "\\$val=\\$_;"\
1598 -e "END { print \\$val if defined \\$val; }"\
1599 'DATE' $META`;
abc3ca14 1600 if test -n "$SPL_META_DATA"; then
dd529a30 1601
1602cat >>confdefs.h <<_ACEOF
abc3ca14 1603#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 1604_ACEOF
1605
1606
1607 fi
1608
abc3ca14 1609 SPL_META_AUTHOR=`perl -n\
dd529a30 1610 -e "BEGIN { \\$key=shift @ARGV; }"\
1611 -e "next unless s/^\s*\\$key[:=]//i;"\
1612 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1613 -e "s/^\s+//;"\
1614 -e "s/\s+$//;"\
1615 -e "s/^(['\"])(.*)\1/\\$2/;"\
1616 -e "\\$val=\\$_;"\
1617 -e "END { print \\$val if defined \\$val; }"\
1618 'AUTHOR' $META`;
abc3ca14 1619 if test -n "$SPL_META_AUTHOR"; then
dd529a30 1620
1621cat >>confdefs.h <<_ACEOF
abc3ca14 1622#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 1623_ACEOF
1624
1625
1626 fi
1627
1628
abc3ca14 1629 SPL_META_LT_CURRENT=`perl -n\
dd529a30 1630 -e "BEGIN { \\$key=shift @ARGV; }"\
1631 -e "next unless s/^\s*\\$key[:=]//i;"\
1632 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1633 -e "s/^\s+//;"\
1634 -e "s/\s+$//;"\
1635 -e "s/^(['\"])(.*)\1/\\$2/;"\
1636 -e "\\$val=\\$_;"\
1637 -e "END { print \\$val if defined \\$val; }"\
1638 'LT_CURRENT' $META`;
abc3ca14 1639 SPL_META_LT_REVISION=`perl -n\
dd529a30 1640 -e "BEGIN { \\$key=shift @ARGV; }"\
1641 -e "next unless s/^\s*\\$key[:=]//i;"\
1642 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1643 -e "s/^\s+//;"\
1644 -e "s/\s+$//;"\
1645 -e "s/^(['\"])(.*)\1/\\$2/;"\
1646 -e "\\$val=\\$_;"\
1647 -e "END { print \\$val if defined \\$val; }"\
1648 'LT_REVISION' $META`;
abc3ca14 1649 SPL_META_LT_AGE=`perl -n\
dd529a30 1650 -e "BEGIN { \\$key=shift @ARGV; }"\
1651 -e "next unless s/^\s*\\$key[:=]//i;"\
1652 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
1653 -e "s/^\s+//;"\
1654 -e "s/\s+$//;"\
1655 -e "s/^(['\"])(.*)\1/\\$2/;"\
1656 -e "\\$val=\\$_;"\
1657 -e "END { print \\$val if defined \\$val; }"\
1658 'LT_AGE' $META`;
abc3ca14
BB
1659 if test -n "$SPL_META_LT_CURRENT" \
1660 -o -n "$SPL_META_LT_REVISION" \
1661 -o -n "$SPL_META_LT_AGE"; then
1662 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
1663 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
1664 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 1665
1666cat >>confdefs.h <<_ACEOF
abc3ca14 1667#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
abc3ca14 1672#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
abc3ca14 1677#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 1678_ACEOF
1679
1680
1681
1682
1683 fi
1684 fi
1685
1686 echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
1687echo "${ECHO_T}$_spl_ac_meta_got_file" >&6
1688
1689
bf9f3bac 1690ac_aux_dir=
1691for ac_dir in config $srcdir/config; do
1692 if test -f $ac_dir/install-sh; then
1693 ac_aux_dir=$ac_dir
1694 ac_install_sh="$ac_aux_dir/install-sh -c"
1695 break
1696 elif test -f $ac_dir/install.sh; then
1697 ac_aux_dir=$ac_dir
1698 ac_install_sh="$ac_aux_dir/install.sh -c"
1699 break
1700 elif test -f $ac_dir/shtool; then
1701 ac_aux_dir=$ac_dir
1702 ac_install_sh="$ac_aux_dir/shtool install -c"
1703 break
1704 fi
1705done
1706if test -z "$ac_aux_dir"; then
1707 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1708echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1709 { (exit 1); exit 1; }; }
1710fi
1711ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1712ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1713ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1714
1715# Make sure we can run config.sub.
1716$ac_config_sub sun4 >/dev/null 2>&1 ||
1717 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1718echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1719 { (exit 1); exit 1; }; }
1720
1721echo "$as_me:$LINENO: checking build system type" >&5
1722echo $ECHO_N "checking build system type... $ECHO_C" >&6
1723if test "${ac_cv_build+set}" = set; then
1724 echo $ECHO_N "(cached) $ECHO_C" >&6
1725else
1726 ac_cv_build_alias=$build_alias
1727test -z "$ac_cv_build_alias" &&
1728 ac_cv_build_alias=`$ac_config_guess`
1729test -z "$ac_cv_build_alias" &&
1730 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1731echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1732 { (exit 1); exit 1; }; }
1733ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1734 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1735echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1736 { (exit 1); exit 1; }; }
1737
1738fi
1739echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1740echo "${ECHO_T}$ac_cv_build" >&6
1741build=$ac_cv_build
1742build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1743build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1744build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1745
1746
1747echo "$as_me:$LINENO: checking host system type" >&5
1748echo $ECHO_N "checking host system type... $ECHO_C" >&6
1749if test "${ac_cv_host+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752 ac_cv_host_alias=$host_alias
1753test -z "$ac_cv_host_alias" &&
1754 ac_cv_host_alias=$ac_cv_build_alias
1755ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1757echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1758 { (exit 1); exit 1; }; }
1759
1760fi
1761echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1762echo "${ECHO_T}$ac_cv_host" >&6
1763host=$ac_cv_host
1764host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1765host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1766host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1767
1768
1769echo "$as_me:$LINENO: checking target system type" >&5
1770echo $ECHO_N "checking target system type... $ECHO_C" >&6
1771if test "${ac_cv_target+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774 ac_cv_target_alias=$target_alias
1775test "x$ac_cv_target_alias" = "x" &&
1776 ac_cv_target_alias=$ac_cv_host_alias
1777ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1779echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1780 { (exit 1); exit 1; }; }
1781
1782fi
1783echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1784echo "${ECHO_T}$ac_cv_target" >&6
1785target=$ac_cv_target
1786target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1787target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1788target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1789
1790
1791# The aliases save the names the user supplied, while $host etc.
1792# will get canonicalized.
1793test -n "$target_alias" &&
1794 test "$program_prefix$program_suffix$program_transform_name" = \
1795 NONENONEs,x,x, &&
1796 program_prefix=${target_alias}-
1797am__api_version="1.9"
1798# Find a good install program. We prefer a C program (faster),
1799# so one script is as good as another. But avoid the broken or
1800# incompatible versions:
1801# SysV /etc/install, /usr/sbin/install
1802# SunOS /usr/etc/install
1803# IRIX /sbin/install
1804# AIX /bin/install
1805# AmigaOS /C/install, which installs bootblocks on floppy discs
1806# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1807# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1808# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1809# OS/2's system install, which has a completely different semantic
1810# ./install, which can be erroneously created by make from ./install.sh.
1811echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1812echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1813if test -z "$INSTALL"; then
1814if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 # Account for people who put trailing slashes in PATH elements.
1823case $as_dir/ in
1824 ./ | .// | /cC/* | \
1825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1827 /usr/ucb/* ) ;;
1828 *)
1829 # OSF1 and SCO ODT 3.0 have their own names for install.
1830 # Don't use installbsd from OSF since it installs stuff as root
1831 # by default.
1832 for ac_prog in ginstall scoinst install; do
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1835 if test $ac_prog = install &&
1836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1837 # AIX install. It has an incompatible calling convention.
1838 :
1839 elif test $ac_prog = install &&
1840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1841 # program-specific install script used by HP pwplus--don't use.
1842 :
1843 else
1844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1845 break 3
1846 fi
1847 fi
1848 done
1849 done
1850 ;;
1851esac
1852done
1853
1854
1855fi
1856 if test "${ac_cv_path_install+set}" = set; then
1857 INSTALL=$ac_cv_path_install
1858 else
1859 # As a last resort, use the slow shell script. We don't cache a
1860 # path for INSTALL within a source directory, because that will
1861 # break other packages using the cache if that directory is
1862 # removed, or if the path is relative.
1863 INSTALL=$ac_install_sh
1864 fi
1865fi
1866echo "$as_me:$LINENO: result: $INSTALL" >&5
1867echo "${ECHO_T}$INSTALL" >&6
1868
1869# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1870# It thinks the first close brace ends the variable substitution.
1871test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1872
1873test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1874
1875test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1876
1877echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1878echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1879# Just in case
1880sleep 1
1881echo timestamp > conftest.file
1882# Do `set' in a subshell so we don't clobber the current shell's
1883# arguments. Must try -L first in case configure is actually a
1884# symlink; some systems play weird games with the mod time of symlinks
1885# (eg FreeBSD returns the mod time of the symlink's containing
1886# directory).
1887if (
1888 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1889 if test "$*" = "X"; then
1890 # -L didn't work.
1891 set X `ls -t $srcdir/configure conftest.file`
1892 fi
1893 rm -f conftest.file
1894 if test "$*" != "X $srcdir/configure conftest.file" \
1895 && test "$*" != "X conftest.file $srcdir/configure"; then
1896
1897 # If neither matched, then we have a broken ls. This can happen
1898 # if, for instance, CONFIG_SHELL is bash and it inherits a
1899 # broken ls alias from the environment. This has actually
1900 # happened. Such a system could not be considered "sane".
1901 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1902alias in your environment" >&5
1903echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1904alias in your environment" >&2;}
1905 { (exit 1); exit 1; }; }
1906 fi
1907
1908 test "$2" = conftest.file
1909 )
1910then
1911 # Ok.
1912 :
1913else
1914 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1915Check your system clock" >&5
1916echo "$as_me: error: newly created file is older than distributed files!
1917Check your system clock" >&2;}
1918 { (exit 1); exit 1; }; }
1919fi
1920echo "$as_me:$LINENO: result: yes" >&5
1921echo "${ECHO_T}yes" >&6
1922test "$program_prefix" != NONE &&
1923 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1924# Use a double $ so make ignores it.
1925test "$program_suffix" != NONE &&
1926 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1927# Double any \ or $. echo might interpret backslashes.
1928# By default was `s,x,x', remove it if useless.
1929cat <<\_ACEOF >conftest.sed
1930s/[\\$]/&&/g;s/;s,x,x,$//
1931_ACEOF
1932program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1933rm conftest.sed
1934
1935# expand $ac_aux_dir to an absolute path
1936am_aux_dir=`cd $ac_aux_dir && pwd`
1937
1938test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1939# Use eval to expand $SHELL
1940if eval "$MISSING --run true"; then
1941 am_missing_run="$MISSING --run "
1942else
1943 am_missing_run=
1944 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1945echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1946fi
1947
1948if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1949 # We used to keeping the `.' as first argument, in order to
1950 # allow $(mkdir_p) to be used without argument. As in
1951 # $(mkdir_p) $(somedir)
1952 # where $(somedir) is conditionally defined. However this is wrong
1953 # for two reasons:
1954 # 1. if the package is installed by a user who cannot write `.'
1955 # make install will fail,
1956 # 2. the above comment should most certainly read
1957 # $(mkdir_p) $(DESTDIR)$(somedir)
1958 # so it does not work when $(somedir) is undefined and
1959 # $(DESTDIR) is not.
1960 # To support the latter case, we have to write
1961 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1962 # so the `.' trick is pointless.
1963 mkdir_p='mkdir -p --'
1964else
1965 # On NextStep and OpenStep, the `mkdir' command does not
1966 # recognize any option. It will interpret all options as
1967 # directories to create, and then abort because `.' already
1968 # exists.
1969 for d in ./-p ./--version;
1970 do
1971 test -d $d && rmdir $d
1972 done
1973 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1974 if test -f "$ac_aux_dir/mkinstalldirs"; then
1975 mkdir_p='$(mkinstalldirs)'
1976 else
1977 mkdir_p='$(install_sh) -d'
1978 fi
1979fi
1980
1981for ac_prog in gawk mawk nawk awk
1982do
1983 # Extract the first word of "$ac_prog", so it can be a program name with args.
1984set dummy $ac_prog; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_AWK+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990 if test -n "$AWK"; then
1991 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_AWK="$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004done
2005done
2006
2007fi
2008fi
2009AWK=$ac_cv_prog_AWK
2010if test -n "$AWK"; then
2011 echo "$as_me:$LINENO: result: $AWK" >&5
2012echo "${ECHO_T}$AWK" >&6
2013else
2014 echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018 test -n "$AWK" && break
2019done
2020
2021echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2023set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2024if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 cat >conftest.make <<\_ACEOF
2028all:
2029 @echo 'ac_maketemp="$(MAKE)"'
2030_ACEOF
2031# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2032eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2033if test -n "$ac_maketemp"; then
2034 eval ac_cv_prog_make_${ac_make}_set=yes
2035else
2036 eval ac_cv_prog_make_${ac_make}_set=no
2037fi
2038rm -f conftest.make
2039fi
2040if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2041 echo "$as_me:$LINENO: result: yes" >&5
2042echo "${ECHO_T}yes" >&6
2043 SET_MAKE=
2044else
2045 echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6
2047 SET_MAKE="MAKE=${MAKE-make}"
2048fi
2049
2050rm -rf .tst 2>/dev/null
2051mkdir .tst 2>/dev/null
2052if test -d .tst; then
2053 am__leading_dot=.
2054else
2055 am__leading_dot=_
2056fi
2057rmdir .tst 2>/dev/null
2058
2059# test to see if srcdir already configured
2060if test "`cd $srcdir && pwd`" != "`pwd`" &&
2061 test -f $srcdir/config.status; then
2062 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2063echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2064 { (exit 1); exit 1; }; }
2065fi
2066
2067# test whether we have cygpath
2068if test -z "$CYGPATH_W"; then
2069 if (cygpath --version) >/dev/null 2>/dev/null; then
2070 CYGPATH_W='cygpath -w'
2071 else
2072 CYGPATH_W=echo
2073 fi
2074fi
2075
2076
2077# Define the identity of the package.
abc3ca14
BB
2078 PACKAGE=$SPL_META_NAME
2079 VERSION=$SPL_META_VERSION
bf9f3bac 2080
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE "$PACKAGE"
2084_ACEOF
2085
2086
2087cat >>confdefs.h <<_ACEOF
2088#define VERSION "$VERSION"
2089_ACEOF
2090
2091# Some tools Automake needs.
2092
2093ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2094
2095
2096AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2097
2098
2099AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2100
2101
2102AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2103
2104
2105MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2106
2107install_sh=${install_sh-"$am_aux_dir/install-sh"}
2108
2109# Installed binaries are usually stripped using `strip' when the user
2110# run `make install-strip'. However `strip' might not be the right
2111# tool to use in cross-compilation environments, therefore Automake
2112# will honor the `STRIP' environment variable to overrule this program.
2113if test "$cross_compiling" != no; then
2114 if test -n "$ac_tool_prefix"; then
2115 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2116set dummy ${ac_tool_prefix}strip; ac_word=$2
2117echo "$as_me:$LINENO: checking for $ac_word" >&5
2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119if test "${ac_cv_prog_STRIP+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121else
2122 if test -n "$STRIP"; then
2123 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2124else
2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2135 fi
2136done
2137done
2138
2139fi
2140fi
2141STRIP=$ac_cv_prog_STRIP
2142if test -n "$STRIP"; then
2143 echo "$as_me:$LINENO: result: $STRIP" >&5
2144echo "${ECHO_T}$STRIP" >&6
2145else
2146 echo "$as_me:$LINENO: result: no" >&5
2147echo "${ECHO_T}no" >&6
2148fi
2149
2150fi
2151if test -z "$ac_cv_prog_STRIP"; then
2152 ac_ct_STRIP=$STRIP
2153 # Extract the first word of "strip", so it can be a program name with args.
2154set dummy strip; ac_word=$2
2155echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 if test -n "$ac_ct_STRIP"; then
2161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2162else
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170 ac_cv_prog_ac_ct_STRIP="strip"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2173 fi
2174done
2175done
2176
2177 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2178fi
2179fi
2180ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2181if test -n "$ac_ct_STRIP"; then
2182 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2183echo "${ECHO_T}$ac_ct_STRIP" >&6
2184else
2185 echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6
2187fi
2188
2189 STRIP=$ac_ct_STRIP
2190else
2191 STRIP="$ac_cv_prog_STRIP"
2192fi
2193
2194fi
2195INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2196
2197# We need awk for the "check" target. The system "awk" is bad on
2198# some platforms.
2199# Always define AMTAR for backward compatibility.
2200
2201AMTAR=${AMTAR-"${am_missing_run}tar"}
2202
2203am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2204
2205
2206
2207
2208
2209 ac_config_headers="$ac_config_headers spl_config.h"
2210
0cbaeb11
BB
2211
2212
bf9f3bac 2213echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2214echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2215 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2216if test "${enable_maintainer_mode+set}" = set; then
2217 enableval="$enable_maintainer_mode"
2218 USE_MAINTAINER_MODE=$enableval
2219else
2220 USE_MAINTAINER_MODE=no
2221fi;
2222 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2223echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2224
2225
2226if test $USE_MAINTAINER_MODE = yes; then
2227 MAINTAINER_MODE_TRUE=
2228 MAINTAINER_MODE_FALSE='#'
2229else
2230 MAINTAINER_MODE_TRUE='#'
2231 MAINTAINER_MODE_FALSE=
2232fi
2233
2234 MAINT=$MAINTAINER_MODE_TRUE
2235
2236
2237
2238# Find a good install program. We prefer a C program (faster),
2239# so one script is as good as another. But avoid the broken or
2240# incompatible versions:
2241# SysV /etc/install, /usr/sbin/install
2242# SunOS /usr/etc/install
2243# IRIX /sbin/install
2244# AIX /bin/install
2245# AmigaOS /C/install, which installs bootblocks on floppy discs
2246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249# OS/2's system install, which has a completely different semantic
2250# ./install, which can be erroneously created by make from ./install.sh.
2251echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2253if test -z "$INSTALL"; then
2254if test "${ac_cv_path_install+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2263case $as_dir/ in
2264 ./ | .// | /cC/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2267 /usr/ucb/* ) ;;
2268 *)
2269 # OSF1 and SCO ODT 3.0 have their own names for install.
2270 # Don't use installbsd from OSF since it installs stuff as root
2271 # by default.
2272 for ac_prog in ginstall scoinst install; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2275 if test $ac_prog = install &&
2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # AIX install. It has an incompatible calling convention.
2278 :
2279 elif test $ac_prog = install &&
2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281 # program-specific install script used by HP pwplus--don't use.
2282 :
2283 else
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2285 break 3
2286 fi
2287 fi
2288 done
2289 done
2290 ;;
2291esac
2292done
2293
2294
2295fi
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2298 else
2299 # As a last resort, use the slow shell script. We don't cache a
2300 # path for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the path is relative.
2303 INSTALL=$ac_install_sh
2304 fi
2305fi
2306echo "$as_me:$LINENO: result: $INSTALL" >&5
2307echo "${ECHO_T}$INSTALL" >&6
2308
2309# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310# It thinks the first close brace ends the variable substitution.
2311test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325echo "$as_me:$LINENO: checking for $ac_word" >&5
2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344done
2345done
2346
2347fi
2348fi
2349CC=$ac_cv_prog_CC
2350if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352echo "${ECHO_T}$CC" >&6
2353else
2354 echo "$as_me:$LINENO: result: no" >&5
2355echo "${ECHO_T}no" >&6
2356fi
2357
2358fi
2359if test -z "$ac_cv_prog_CC"; then
2360 ac_ct_CC=$CC
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362set dummy gcc; ac_word=$2
2363echo "$as_me:$LINENO: checking for $ac_word" >&5
2364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370else
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382done
2383done
2384
2385fi
2386fi
2387ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390echo "${ECHO_T}$ac_ct_CC" >&6
2391else
2392 echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6
2394fi
2395
2396 CC=$ac_ct_CC
2397else
2398 CC="$ac_cv_prog_CC"
2399fi
2400
2401if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}cc; ac_word=$2
2405echo "$as_me:$LINENO: checking for $ac_word" >&5
2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_CC="${ac_tool_prefix}cc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425done
2426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
2431 echo "$as_me:$LINENO: result: $CC" >&5
2432echo "${ECHO_T}$CC" >&6
2433else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436fi
2437
2438fi
2439if test -z "$ac_cv_prog_CC"; then
2440 ac_ct_CC=$CC
2441 # Extract the first word of "cc", so it can be a program name with args.
2442set dummy cc; ac_word=$2
2443echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CC="cc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462done
2463done
2464
2465fi
2466fi
2467ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468if test -n "$ac_ct_CC"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2470echo "${ECHO_T}$ac_ct_CC" >&6
2471else
2472 echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6
2474fi
2475
2476 CC=$ac_ct_CC
2477else
2478 CC="$ac_cv_prog_CC"
2479fi
2480
2481fi
2482if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484set dummy cc; ac_word=$2
2485echo "$as_me:$LINENO: checking for $ac_word" >&5
2486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492else
2493 ac_prog_rejected=no
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2503 continue
2504 fi
2505 ac_cv_prog_CC="cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
2511
2512if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2515 shift
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2520 shift
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2522 fi
2523fi
2524fi
2525fi
2526CC=$ac_cv_prog_CC
2527if test -n "$CC"; then
2528 echo "$as_me:$LINENO: result: $CC" >&5
2529echo "${ECHO_T}$CC" >&6
2530else
2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
2533fi
2534
2535fi
2536if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 for ac_prog in cl
2539 do
2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542echo "$as_me:$LINENO: checking for $ac_word" >&5
2543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561done
2562done
2563
2564fi
2565fi
2566CC=$ac_cv_prog_CC
2567if test -n "$CC"; then
2568 echo "$as_me:$LINENO: result: $CC" >&5
2569echo "${ECHO_T}$CC" >&6
2570else
2571 echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6
2573fi
2574
2575 test -n "$CC" && break
2576 done
2577fi
2578if test -z "$CC"; then
2579 ac_ct_CC=$CC
2580 for ac_prog in cl
2581do
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583set dummy $ac_prog; ac_word=$2
2584echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_CC="$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603done
2604done
2605
2606fi
2607fi
2608ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609if test -n "$ac_ct_CC"; then
2610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611echo "${ECHO_T}$ac_ct_CC" >&6
2612else
2613 echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6
2615fi
2616
2617 test -n "$ac_ct_CC" && break
2618done
2619
2620 CC=$ac_ct_CC
2621fi
2622
2623fi
2624
2625
2626test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2627See \`config.log' for more details." >&5
2628echo "$as_me: error: no acceptable C compiler found in \$PATH
2629See \`config.log' for more details." >&2;}
2630 { (exit 1); exit 1; }; }
2631
2632# Provide some information about the compiler.
2633echo "$as_me:$LINENO:" \
2634 "checking for C compiler version" >&5
2635ac_compiler=`set X $ac_compile; echo $2`
2636{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2637 (eval $ac_compiler --version </dev/null >&5) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }
2641{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2642 (eval $ac_compiler -v </dev/null >&5) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }
2646{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2647 (eval $ac_compiler -V </dev/null >&5) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }
2651
2652cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
2658
2659int
2660main ()
2661{
2662
2663 ;
2664 return 0;
2665}
2666_ACEOF
2667ac_clean_files_save=$ac_clean_files
2668ac_clean_files="$ac_clean_files a.out a.exe b.out"
2669# Try to create an executable without -o first, disregard a.out.
2670# It will help us diagnose broken compilers, and finding out an intuition
2671# of exeext.
2672echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2673echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2674ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2675if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2676 (eval $ac_link_default) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; then
2680 # Find the output, starting from the most likely. This scheme is
2681# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2682# resort.
2683
2684# Be careful to initialize this variable, since it used to be cached.
2685# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2686ac_cv_exeext=
2687# b.out is created by i960 compilers.
2688for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2689do
2690 test -f "$ac_file" || continue
2691 case $ac_file in
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2693 ;;
2694 conftest.$ac_ext )
2695 # This is the source file.
2696 ;;
2697 [ab].out )
2698 # We found the default executable, but exeext='' is most
2699 # certainly right.
2700 break;;
2701 *.* )
2702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 # FIXME: I believe we export ac_cv_exeext for Libtool,
2704 # but it would be cool to find out if it's true. Does anybody
2705 # maintain Libtool? --akim.
2706 export ac_cv_exeext
2707 break;;
2708 * )
2709 break;;
2710 esac
2711done
2712else
2713 echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: C compiler cannot create executables
2719See \`config.log' for more details." >&2;}
2720 { (exit 77); exit 77; }; }
2721fi
2722
2723ac_exeext=$ac_cv_exeext
2724echo "$as_me:$LINENO: result: $ac_file" >&5
2725echo "${ECHO_T}$ac_file" >&6
2726
2727# Check the compiler produces executables we can run. If not, either
2728# the compiler is broken, or we cross compile.
2729echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2730echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2731# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2732# If not cross compiling, check that we can run a simple program.
2733if test "$cross_compiling" != yes; then
2734 if { ac_try='./$ac_file'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 cross_compiling=no
2741 else
2742 if test "$cross_compiling" = maybe; then
2743 cross_compiling=yes
2744 else
2745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2746If you meant to cross compile, use \`--host'.
2747See \`config.log' for more details." >&5
2748echo "$as_me: error: cannot run C compiled programs.
2749If you meant to cross compile, use \`--host'.
2750See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2752 fi
2753 fi
2754fi
2755echo "$as_me:$LINENO: result: yes" >&5
2756echo "${ECHO_T}yes" >&6
2757
2758rm -f a.out a.exe conftest$ac_cv_exeext b.out
2759ac_clean_files=$ac_clean_files_save
2760# Check the compiler produces executables we can run. If not, either
2761# the compiler is broken, or we cross compile.
2762echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2763echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2764echo "$as_me:$LINENO: result: $cross_compiling" >&5
2765echo "${ECHO_T}$cross_compiling" >&6
2766
2767echo "$as_me:$LINENO: checking for suffix of executables" >&5
2768echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
2774 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2775# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2776# work properly (i.e., refer to `conftest.exe'), while it won't with
2777# `rm'.
2778for ac_file in conftest.exe conftest conftest.*; do
2779 test -f "$ac_file" || continue
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2782 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2783 export ac_cv_exeext
2784 break;;
2785 * ) break;;
2786 esac
2787done
2788else
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2790See \`config.log' for more details." >&5
2791echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2792See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2794fi
2795
2796rm -f conftest$ac_cv_exeext
2797echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2798echo "${ECHO_T}$ac_cv_exeext" >&6
2799
2800rm -f conftest.$ac_ext
2801EXEEXT=$ac_cv_exeext
2802ac_exeext=$EXEEXT
2803echo "$as_me:$LINENO: checking for suffix of object files" >&5
2804echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2805if test "${ac_cv_objext+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808 cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h. */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h. */
2814
2815int
2816main ()
2817{
2818
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.o conftest.obj
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2833 break;;
2834 esac
2835done
2836else
2837 echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2841See \`config.log' for more details." >&5
2842echo "$as_me: error: cannot compute suffix of object files: cannot compile
2843See \`config.log' for more details." >&2;}
2844 { (exit 1); exit 1; }; }
2845fi
2846
2847rm -f conftest.$ac_cv_objext conftest.$ac_ext
2848fi
2849echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2850echo "${ECHO_T}$ac_cv_objext" >&6
2851OBJEXT=$ac_cv_objext
2852ac_objext=$OBJEXT
2853echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2854echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2855if test "${ac_cv_c_compiler_gnu+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864
2865int
2866main ()
2867{
2868#ifndef __GNUC__
2869 choke me
2870#endif
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876rm -f conftest.$ac_objext
2877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -z "$ac_c_werror_flag"
2886 || test ! -s conftest.err'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2898 ac_compiler_gnu=yes
2899else
2900 echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903ac_compiler_gnu=no
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908fi
2909echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2910echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2911GCC=`test $ac_compiler_gnu = yes && echo yes`
2912ac_test_CFLAGS=${CFLAGS+set}
2913ac_save_CFLAGS=$CFLAGS
2914CFLAGS="-g"
2915echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2916echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2917if test "${ac_cv_prog_cc_g+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2937 (eval $ac_compile) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 ac_cv_prog_cc_g=yes
2958else
2959 echo "$as_me: failed program was:" >&5
2960sed 's/^/| /' conftest.$ac_ext >&5
2961
2962ac_cv_prog_cc_g=no
2963fi
2964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2965fi
2966echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2968if test "$ac_test_CFLAGS" = set; then
2969 CFLAGS=$ac_save_CFLAGS
2970elif test $ac_cv_prog_cc_g = yes; then
2971 if test "$GCC" = yes; then
2972 CFLAGS="-g -O2"
2973 else
2974 CFLAGS="-g"
2975 fi
2976else
2977 if test "$GCC" = yes; then
2978 CFLAGS="-O2"
2979 else
2980 CFLAGS=
2981 fi
2982fi
2983echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2984echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2985if test "${ac_cv_prog_cc_stdc+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 ac_cv_prog_cc_stdc=no
2989ac_save_CC=$CC
2990cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h. */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h. */
2996#include <stdarg.h>
2997#include <stdio.h>
2998#include <sys/types.h>
2999#include <sys/stat.h>
3000/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3001struct buf { int x; };
3002FILE * (*rcsopen) (struct buf *, struct stat *, int);
3003static char *e (p, i)
3004 char **p;
3005 int i;
3006{
3007 return p[i];
3008}
3009static char *f (char * (*g) (char **, int), char **p, ...)
3010{
3011 char *s;
3012 va_list v;
3013 va_start (v,p);
3014 s = g (p, va_arg (v,int));
3015 va_end (v);
3016 return s;
3017}
3018
3019/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3020 function prototypes and stuff, but not '\xHH' hex character constants.
3021 These don't provoke an error unfortunately, instead are silently treated
3022 as 'x'. The following induces an error, until -std1 is added to get
3023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3024 array size at least. It's necessary to write '\x00'==0 to get something
3025 that's true only with -std1. */
3026int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3027
3028int test (int i, double x);
3029struct s1 {int (*f) (int a);};
3030struct s2 {int (*f) (double a);};
3031int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3032int argc;
3033char **argv;
3034int
3035main ()
3036{
3037return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3038 ;
3039 return 0;
3040}
3041_ACEOF
3042# Don't try gcc -ansi; that turns off useful extensions and
3043# breaks some systems' header files.
3044# AIX -qlanglvl=ansi
3045# Ultrix and OSF/1 -std1
3046# HP-UX 10.20 and later -Ae
3047# HP-UX older versions -Aa -D_HPUX_SOURCE
3048# SVR4 -Xc -D__EXTENSIONS__
3049for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050do
3051 CC="$ac_save_CC $ac_arg"
3052 rm -f conftest.$ac_objext
3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_c_werror_flag"
3062 || test ! -s conftest.err'
3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_cv_prog_cc_stdc=$ac_arg
3075break
3076else
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080fi
3081rm -f conftest.err conftest.$ac_objext
3082done
3083rm -f conftest.$ac_ext conftest.$ac_objext
3084CC=$ac_save_CC
3085
3086fi
3087
3088case "x$ac_cv_prog_cc_stdc" in
3089 x|xno)
3090 echo "$as_me:$LINENO: result: none needed" >&5
3091echo "${ECHO_T}none needed" >&6 ;;
3092 *)
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3094echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3095 CC="$CC $ac_cv_prog_cc_stdc" ;;
3096esac
3097
3098# Some people use a C++ compiler to compile C. Since we use `exit',
3099# in C++ we need to declare it. In case someone uses the same compiler
3100# for both compiling C and C++ we need to have the C++ compiler decide
3101# the declaration of exit, since it's the most demanding environment.
3102cat >conftest.$ac_ext <<_ACEOF
3103#ifndef __cplusplus
3104 choke me
3105#endif
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
3116 { ac_try='test -z "$ac_c_werror_flag"
3117 || test ! -s conftest.err'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 for ac_declaration in \
3130 '' \
3131 'extern "C" void std::exit (int) throw (); using std::exit;' \
3132 'extern "C" void std::exit (int); using std::exit;' \
3133 'extern "C" void exit (int) throw ();' \
3134 'extern "C" void exit (int);' \
3135 'void exit (int);'
3136do
3137 cat >conftest.$ac_ext <<_ACEOF
3138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
3143$ac_declaration
3144#include <stdlib.h>
3145int
3146main ()
3147{
3148exit (42);
3149 ;
3150 return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180continue
3181fi
3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183 cat >conftest.$ac_ext <<_ACEOF
3184/* confdefs.h. */
3185_ACEOF
3186cat confdefs.h >>conftest.$ac_ext
3187cat >>conftest.$ac_ext <<_ACEOF
3188/* end confdefs.h. */
3189$ac_declaration
3190int
3191main ()
3192{
3193exit (42);
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
3199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 break
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225fi
3226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3227done
3228rm -f conftest*
3229if test -n "$ac_declaration"; then
3230 echo '#ifdef __cplusplus' >>confdefs.h
3231 echo $ac_declaration >>confdefs.h
3232 echo '#endif' >>confdefs.h
3233fi
3234
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239fi
3240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246DEPDIR="${am__leading_dot}deps"
3247
3248 ac_config_commands="$ac_config_commands depfiles"
3249
3250
3251am_make=${MAKE-make}
3252cat > confinc << 'END'
3253am__doit:
3254 @echo done
3255.PHONY: am__doit
3256END
3257# If we don't find an include directive, just comment out the code.
3258echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3259echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3260am__include="#"
3261am__quote=
3262_am_result=none
3263# First try GNU make style include.
3264echo "include confinc" > confmf
3265# We grep out `Entering directory' and `Leaving directory'
3266# messages which can occur if `w' ends up in MAKEFLAGS.
3267# In particular we don't look at `^make:' because GNU make might
3268# be invoked under some other name (usually "gmake"), in which
3269# case it prints its new name instead of `make'.
3270if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3271 am__include=include
3272 am__quote=
3273 _am_result=GNU
3274fi
3275# Now try BSD make style include.
3276if test "$am__include" = "#"; then
3277 echo '.include "confinc"' > confmf
3278 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3279 am__include=.include
3280 am__quote="\""
3281 _am_result=BSD
3282 fi
3283fi
3284
3285
3286echo "$as_me:$LINENO: result: $_am_result" >&5
3287echo "${ECHO_T}$_am_result" >&6
3288rm -f confinc confmf
3289
3290# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3291if test "${enable_dependency_tracking+set}" = set; then
3292 enableval="$enable_dependency_tracking"
3293
3294fi;
3295if test "x$enable_dependency_tracking" != xno; then
3296 am_depcomp="$ac_aux_dir/depcomp"
3297 AMDEPBACKSLASH='\'
3298fi
3299
3300
3301if test "x$enable_dependency_tracking" != xno; then
3302 AMDEP_TRUE=
3303 AMDEP_FALSE='#'
3304else
3305 AMDEP_TRUE='#'
3306 AMDEP_FALSE=
3307fi
3308
3309
3310
3311
3312depcc="$CC" am_compiler_list=
3313
3314echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3315echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3316if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318else
3319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3320 # We make a subdir and do the tests there. Otherwise we can end up
3321 # making bogus files that we don't know about and never remove. For
3322 # instance it was reported that on HP-UX the gcc test will end up
3323 # making a dummy file named `D' -- because `-MD' means `put the output
3324 # in D'.
3325 mkdir conftest.dir
3326 # Copy depcomp to subdir because otherwise we won't find it if we're
3327 # using a relative directory.
3328 cp "$am_depcomp" conftest.dir
3329 cd conftest.dir
3330 # We will build objects and dependencies in a subdirectory because
3331 # it helps to detect inapplicable dependency modes. For instance
3332 # both Tru64's cc and ICC support -MD to output dependencies as a
3333 # side effect of compilation, but ICC will put the dependencies in
3334 # the current directory while Tru64 will put them in the object
3335 # directory.
3336 mkdir sub
3337
3338 am_cv_CC_dependencies_compiler_type=none
3339 if test "$am_compiler_list" = ""; then
3340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341 fi
3342 for depmode in $am_compiler_list; do
3343 # Setup a source with many dependencies, because some compilers
3344 # like to wrap large dependency lists on column 80 (with \), and
3345 # we should not choose a depcomp mode which is confused by this.
3346 #
3347 # We need to recreate these files for each test, as the compiler may
3348 # overwrite some of them when testing with obscure command lines.
3349 # This happens at least with the AIX C compiler.
3350 : > sub/conftest.c
3351 for i in 1 2 3 4 5 6; do
3352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3353 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3354 # Solaris 8's {/usr,}/bin/sh.
3355 touch sub/conftst$i.h
3356 done
3357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358
3359 case $depmode in
3360 nosideeffect)
3361 # after this tag, mechanisms are not by side-effect, so they'll
3362 # only be used when explicitly requested
3363 if test "x$enable_dependency_tracking" = xyes; then
3364 continue
3365 else
3366 break
3367 fi
3368 ;;
3369 none) break ;;
3370 esac
3371 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3372 # mode. It turns out that the SunPro C++ compiler does not properly
3373 # handle `-M -o', and we need to detect this.
3374 if depmode=$depmode \
3375 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3376 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3377 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3378 >/dev/null 2>conftest.err &&
3379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382 # icc doesn't choke on unknown options, it will just issue warnings
3383 # or remarks (even with -Werror). So we grep stderr for any message
3384 # that says an option was ignored or not supported.
3385 # When given -MP, icc 7.0 and 7.1 complain thusly:
3386 # icc: Command line warning: ignoring option '-M'; no argument required
3387 # The diagnosis changed in icc 8.0:
3388 # icc: Command line remark: option '-MP' not supported
3389 if (grep 'ignoring option' conftest.err ||
3390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3391 am_cv_CC_dependencies_compiler_type=$depmode
3392 break
3393 fi
3394 fi
3395 done
3396
3397 cd ..
3398 rm -rf conftest.dir
3399else
3400 am_cv_CC_dependencies_compiler_type=none
3401fi
3402
3403fi
3404echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3405echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3406CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3407
3408
3409
3410if
3411 test "x$enable_dependency_tracking" != xno \
3412 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3413 am__fastdepCC_TRUE=
3414 am__fastdepCC_FALSE='#'
3415else
3416 am__fastdepCC_TRUE='#'
3417 am__fastdepCC_FALSE=
3418fi
3419
3420
3421# Check whether --enable-shared or --disable-shared was given.
3422if test "${enable_shared+set}" = set; then
3423 enableval="$enable_shared"
3424 p=${PACKAGE-default}
3425 case $enableval in
3426 yes) enable_shared=yes ;;
3427 no) enable_shared=no ;;
3428 *)
3429 enable_shared=no
3430 # Look at the argument we got. We use all the common list separators.
3431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432 for pkg in $enableval; do
3433 IFS="$lt_save_ifs"
3434 if test "X$pkg" = "X$p"; then
3435 enable_shared=yes
3436 fi
3437 done
3438 IFS="$lt_save_ifs"
3439 ;;
3440 esac
3441else
3442 enable_shared=yes
3443fi;
3444
3445# Check whether --enable-static or --disable-static was given.
3446if test "${enable_static+set}" = set; then
3447 enableval="$enable_static"
3448 p=${PACKAGE-default}
3449 case $enableval in
3450 yes) enable_static=yes ;;
3451 no) enable_static=no ;;
3452 *)
3453 enable_static=no
3454 # Look at the argument we got. We use all the common list separators.
3455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3456 for pkg in $enableval; do
3457 IFS="$lt_save_ifs"
3458 if test "X$pkg" = "X$p"; then
3459 enable_static=yes
3460 fi
3461 done
3462 IFS="$lt_save_ifs"
3463 ;;
3464 esac
3465else
3466 enable_static=yes
3467fi;
3468
3469# Check whether --enable-fast-install or --disable-fast-install was given.
3470if test "${enable_fast_install+set}" = set; then
3471 enableval="$enable_fast_install"
3472 p=${PACKAGE-default}
3473 case $enableval in
3474 yes) enable_fast_install=yes ;;
3475 no) enable_fast_install=no ;;
3476 *)
3477 enable_fast_install=no
3478 # Look at the argument we got. We use all the common list separators.
3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3480 for pkg in $enableval; do
3481 IFS="$lt_save_ifs"
3482 if test "X$pkg" = "X$p"; then
3483 enable_fast_install=yes
3484 fi
3485 done
3486 IFS="$lt_save_ifs"
3487 ;;
3488 esac
3489else
3490 enable_fast_install=yes
3491fi;
3492
3493echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3494echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3495if test "${lt_cv_path_SED+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 # Loop through the user's path and test for sed and gsed.
3499# Then use that list of sed's as ones to test for truncation.
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for lt_ac_prog in sed gsed; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3508 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3509 fi
3510 done
3511 done
3512done
3513IFS=$as_save_IFS
3514lt_ac_max=0
3515lt_ac_count=0
3516# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3517# along with /bin/sed that truncates output.
3518for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3519 test ! -f $lt_ac_sed && continue
3520 cat /dev/null > conftest.in
3521 lt_ac_count=0
3522 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3523 # Check for GNU sed and select it if it is found.
3524 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3525 lt_cv_path_SED=$lt_ac_sed
3526 break
3527 fi
3528 while true; do
3529 cat conftest.in conftest.in >conftest.tmp
3530 mv conftest.tmp conftest.in
3531 cp conftest.in conftest.nl
3532 echo >>conftest.nl
3533 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3534 cmp -s conftest.out conftest.nl || break
3535 # 10000 chars as input seems more than enough
3536 test $lt_ac_count -gt 10 && break
3537 lt_ac_count=`expr $lt_ac_count + 1`
3538 if test $lt_ac_count -gt $lt_ac_max; then
3539 lt_ac_max=$lt_ac_count
3540 lt_cv_path_SED=$lt_ac_sed
3541 fi
3542 done
3543done
3544
3545fi
3546
3547SED=$lt_cv_path_SED
3548
3549echo "$as_me:$LINENO: result: $SED" >&5
3550echo "${ECHO_T}$SED" >&6
3551
3552echo "$as_me:$LINENO: checking for egrep" >&5
3553echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3554if test "${ac_cv_prog_egrep+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3558 then ac_cv_prog_egrep='grep -E'
3559 else ac_cv_prog_egrep='egrep'
3560 fi
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3563echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3564 EGREP=$ac_cv_prog_egrep
3565
3566
3567
3568# Check whether --with-gnu-ld or --without-gnu-ld was given.
3569if test "${with_gnu_ld+set}" = set; then
3570 withval="$with_gnu_ld"
3571 test "$withval" = no || with_gnu_ld=yes
3572else
3573 with_gnu_ld=no
3574fi;
3575ac_prog=ld
3576if test "$GCC" = yes; then
3577 # Check if gcc -print-prog-name=ld gives a path.
3578 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3579echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3580 case $host in
3581 *-*-mingw*)
3582 # gcc leaves a trailing carriage return which upsets mingw
3583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3584 *)
3585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3586 esac
3587 case $ac_prog in
3588 # Accept absolute paths.
3589 [\\/]* | ?:[\\/]*)
3590 re_direlt='/[^/][^/]*/\.\./'
3591 # Canonicalize the pathname of ld
3592 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3593 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3594 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3595 done
3596 test -z "$LD" && LD="$ac_prog"
3597 ;;
3598 "")
3599 # If it fails, then pretend we aren't using GCC.
3600 ac_prog=ld
3601 ;;
3602 *)
3603 # If it is relative, then search for the first ld in PATH.
3604 with_gnu_ld=unknown
3605 ;;
3606 esac
3607elif test "$with_gnu_ld" = yes; then
3608 echo "$as_me:$LINENO: checking for GNU ld" >&5
3609echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3610else
3611 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3612echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3613fi
3614if test "${lt_cv_path_LD+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 if test -z "$LD"; then
3618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3619 for ac_dir in $PATH; do
3620 IFS="$lt_save_ifs"
3621 test -z "$ac_dir" && ac_dir=.
3622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3623 lt_cv_path_LD="$ac_dir/$ac_prog"
3624 # Check to see if the program is GNU ld. I'd rather use --version,
3625 # but apparently some variants of GNU ld only accept -v.
3626 # Break only if it was the GNU/non-GNU ld that we prefer.
3627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3628 *GNU* | *'with BFD'*)
3629 test "$with_gnu_ld" != no && break
3630 ;;
3631 *)
3632 test "$with_gnu_ld" != yes && break
3633 ;;
3634 esac
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638else
3639 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3640fi
3641fi
3642
3643LD="$lt_cv_path_LD"
3644if test -n "$LD"; then
3645 echo "$as_me:$LINENO: result: $LD" >&5
3646echo "${ECHO_T}$LD" >&6
3647else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650fi
3651test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3652echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3653 { (exit 1); exit 1; }; }
3654echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3655echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3656if test "${lt_cv_prog_gnu_ld+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658else
3659 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3660case `$LD -v 2>&1 </dev/null` in
3661*GNU* | *'with BFD'*)
3662 lt_cv_prog_gnu_ld=yes
3663 ;;
3664*)
3665 lt_cv_prog_gnu_ld=no
3666 ;;
3667esac
3668fi
3669echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3670echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3671with_gnu_ld=$lt_cv_prog_gnu_ld
3672
3673
3674echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3675echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3676if test "${lt_cv_ld_reload_flag+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679 lt_cv_ld_reload_flag='-r'
3680fi
3681echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3682echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3683reload_flag=$lt_cv_ld_reload_flag
3684case $reload_flag in
3685"" | " "*) ;;
3686*) reload_flag=" $reload_flag" ;;
3687esac
3688reload_cmds='$LD$reload_flag -o $output$reload_objs'
3689case $host_os in
3690 darwin*)
3691 if test "$GCC" = yes; then
3692 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3693 else
3694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3695 fi
3696 ;;
3697esac
3698
3699echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3700echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3701if test "${lt_cv_path_NM+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 if test -n "$NM"; then
3705 # Let the user override the test.
3706 lt_cv_path_NM="$NM"
3707else
3708 lt_nm_to_check="${ac_tool_prefix}nm"
3709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3710 lt_nm_to_check="$lt_nm_to_check nm"
3711 fi
3712 for lt_tmp_nm in $lt_nm_to_check; do
3713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3715 IFS="$lt_save_ifs"
3716 test -z "$ac_dir" && ac_dir=.
3717 tmp_nm="$ac_dir/$lt_tmp_nm"
3718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3719 # Check to see if the nm accepts a BSD-compat flag.
3720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3721 # nm: unknown option "B" ignored
3722 # Tru64's nm complains that /dev/null is an invalid object file
3723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3724 */dev/null* | *'Invalid file or object type'*)
3725 lt_cv_path_NM="$tmp_nm -B"
3726 break
3727 ;;
3728 *)
3729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3730 */dev/null*)
3731 lt_cv_path_NM="$tmp_nm -p"
3732 break
3733 ;;
3734 *)
3735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3736 continue # so that we can try to find one that supports BSD flags
3737 ;;
3738 esac
3739 ;;
3740 esac
3741 fi
3742 done
3743 IFS="$lt_save_ifs"
3744 done
3745 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3746fi
3747fi
3748echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3749echo "${ECHO_T}$lt_cv_path_NM" >&6
3750NM="$lt_cv_path_NM"
3751
3752echo "$as_me:$LINENO: checking whether ln -s works" >&5
3753echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3754LN_S=$as_ln_s
3755if test "$LN_S" = "ln -s"; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757echo "${ECHO_T}yes" >&6
3758else
3759 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3760echo "${ECHO_T}no, using $LN_S" >&6
3761fi
3762
3763echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3764echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3765if test "${lt_cv_deplibs_check_method+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 lt_cv_file_magic_cmd='$MAGIC_CMD'
3769lt_cv_file_magic_test_file=
3770lt_cv_deplibs_check_method='unknown'
3771# Need to set the preceding variable on all platforms that support
3772# interlibrary dependencies.
3773# 'none' -- dependencies not supported.
3774# `unknown' -- same as none, but documents that we really don't know.
3775# 'pass_all' -- all dependencies passed with no checks.
3776# 'test_compile' -- check by making test program.
3777# 'file_magic [[regex]]' -- check by looking for files in library path
3778# which responds to the $file_magic_cmd with a given extended regex.
3779# If you have `file' or equivalent on your system and you're not sure
3780# whether `pass_all' will *always* work, you probably want this one.
3781
3782case $host_os in
3783aix4* | aix5*)
3784 lt_cv_deplibs_check_method=pass_all
3785 ;;
3786
3787beos*)
3788 lt_cv_deplibs_check_method=pass_all
3789 ;;
3790
3791bsdi[45]*)
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3793 lt_cv_file_magic_cmd='/usr/bin/file -L'
3794 lt_cv_file_magic_test_file=/shlib/libc.so
3795 ;;
3796
3797cygwin*)
3798 # func_win32_libid is a shell function defined in ltmain.sh
3799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3800 lt_cv_file_magic_cmd='func_win32_libid'
3801 ;;
3802
3803mingw* | pw32*)
3804 # Base MSYS/MinGW do not provide the 'file' command needed by
3805 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3806 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3807 lt_cv_file_magic_cmd='$OBJDUMP -f'
3808 ;;
3809
3810darwin* | rhapsody*)
3811 lt_cv_deplibs_check_method=pass_all
3812 ;;
3813
3814freebsd* | kfreebsd*-gnu | dragonfly*)
3815 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3816 case $host_cpu in
3817 i*86 )
3818 # Not sure whether the presence of OpenBSD here was a mistake.
3819 # Let's accept both of them until this is cleared up.
3820 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3823 ;;
3824 esac
3825 else
3826 lt_cv_deplibs_check_method=pass_all
3827 fi
3828 ;;
3829
3830gnu*)
3831 lt_cv_deplibs_check_method=pass_all
3832 ;;
3833
3834hpux10.20* | hpux11*)
3835 lt_cv_file_magic_cmd=/usr/bin/file
3836 case $host_cpu in
3837 ia64*)
3838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3839 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3840 ;;
3841 hppa*64*)
3842 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]'
3843 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3844 ;;
3845 *)
3846 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3847 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3848 ;;
3849 esac
3850 ;;
3851
3852interix3*)
3853 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3855 ;;
3856
3857irix5* | irix6* | nonstopux*)
3858 case $LD in
3859 *-32|*"-32 ") libmagic=32-bit;;
3860 *-n32|*"-n32 ") libmagic=N32;;
3861 *-64|*"-64 ") libmagic=64-bit;;
3862 *) libmagic=never-match;;
3863 esac
3864 lt_cv_deplibs_check_method=pass_all
3865 ;;
3866
3867# This must be Linux ELF.
3868linux*)
3869 lt_cv_deplibs_check_method=pass_all
3870 ;;
3871
3872netbsd*)
3873 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3875 else
3876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3877 fi
3878 ;;
3879
3880newos6*)
3881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3882 lt_cv_file_magic_cmd=/usr/bin/file
3883 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3884 ;;
3885
3886nto-qnx*)
3887 lt_cv_deplibs_check_method=unknown
3888 ;;
3889
3890openbsd*)
3891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3893 else
3894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3895 fi
3896 ;;
3897
3898osf3* | osf4* | osf5*)
3899 lt_cv_deplibs_check_method=pass_all
3900 ;;
3901
3902solaris*)
3903 lt_cv_deplibs_check_method=pass_all
3904 ;;
3905
3906sysv4 | sysv4.3*)
3907 case $host_vendor in
3908 motorola)
3909 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]'
3910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3911 ;;
3912 ncr)
3913 lt_cv_deplibs_check_method=pass_all
3914 ;;
3915 sequent)
3916 lt_cv_file_magic_cmd='/bin/file'
3917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3918 ;;
3919 sni)
3920 lt_cv_file_magic_cmd='/bin/file'
3921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3922 lt_cv_file_magic_test_file=/lib/libc.so
3923 ;;
3924 siemens)
3925 lt_cv_deplibs_check_method=pass_all
3926 ;;
3927 pc)
3928 lt_cv_deplibs_check_method=pass_all
3929 ;;
3930 esac
3931 ;;
3932
3933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3934 lt_cv_deplibs_check_method=pass_all
3935 ;;
3936esac
3937
3938fi
3939echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3940echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3941file_magic_cmd=$lt_cv_file_magic_cmd
3942deplibs_check_method=$lt_cv_deplibs_check_method
3943test -z "$deplibs_check_method" && deplibs_check_method=unknown
3944
3945
3946
3947
3948# If no C compiler was specified, use CC.
3949LTCC=${LTCC-"$CC"}
3950
3951# If no C compiler flags were specified, use CFLAGS.
3952LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3953
3954# Allow CC to be a program name with arguments.
3955compiler=$CC
3956
3957
3958# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
3961
3962fi;
3963test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3964
3965# Some flags need to be propagated to the compiler or linker for good
3966# libtool support.
3967case $host in
3968ia64-*-hpux*)
3969 # Find out which ABI we are using.
3970 echo 'int i;' > conftest.$ac_ext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3977 *ELF-32*)
3978 HPUX_IA64_MODE="32"
3979 ;;
3980 *ELF-64*)
3981 HPUX_IA64_MODE="64"
3982 ;;
3983 esac
3984 fi
3985 rm -rf conftest*
3986 ;;
3987*-*-irix6*)
3988 # Find out which ABI we are using.
0cbaeb11 3989 echo '#line 3989 "configure"' > conftest.$ac_ext
bf9f3bac 3990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; then
3995 if test "$lt_cv_prog_gnu_ld" = yes; then
3996 case `/usr/bin/file conftest.$ac_objext` in
3997 *32-bit*)
3998 LD="${LD-ld} -melf32bsmip"
3999 ;;
4000 *N32*)
4001 LD="${LD-ld} -melf32bmipn32"
4002 ;;
4003 *64-bit*)
4004 LD="${LD-ld} -melf64bmip"
4005 ;;
4006 esac
4007 else
4008 case `/usr/bin/file conftest.$ac_objext` in
4009 *32-bit*)
4010 LD="${LD-ld} -32"
4011 ;;
4012 *N32*)
4013 LD="${LD-ld} -n32"
4014 ;;
4015 *64-bit*)
4016 LD="${LD-ld} -64"
4017 ;;
4018 esac
4019 fi
4020 fi
4021 rm -rf conftest*
4022 ;;
4023
4024x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4025 # Find out which ABI we are using.
4026 echo 'int i;' > conftest.$ac_ext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 case `/usr/bin/file conftest.o` in
4033 *32-bit*)
4034 case $host in
4035 x86_64-*linux*)
4036 LD="${LD-ld} -m elf_i386"
4037 ;;
4038 ppc64-*linux*|powerpc64-*linux*)
4039 LD="${LD-ld} -m elf32ppclinux"
4040 ;;
4041 s390x-*linux*)
4042 LD="${LD-ld} -m elf_s390"
4043 ;;
4044 sparc64-*linux*)
4045 LD="${LD-ld} -m elf32_sparc"
4046 ;;
4047 esac
4048 ;;
4049 *64-bit*)
4050 case $host in
4051 x86_64-*linux*)
4052 LD="${LD-ld} -m elf_x86_64"
4053 ;;
4054 ppc*-*linux*|powerpc*-*linux*)
4055 LD="${LD-ld} -m elf64ppc"
4056 ;;
4057 s390*-*linux*)
4058 LD="${LD-ld} -m elf64_s390"
4059 ;;
4060 sparc*-*linux*)
4061 LD="${LD-ld} -m elf64_sparc"
4062 ;;
4063 esac
4064 ;;
4065 esac
4066 fi
4067 rm -rf conftest*
4068 ;;
4069
4070*-*-sco3.2v5*)
4071 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4072 SAVE_CFLAGS="$CFLAGS"
4073 CFLAGS="$CFLAGS -belf"
4074 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4075echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4076if test "${lt_cv_cc_needs_belf+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078else
4079 ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091
4092int
4093main ()
4094{
4095
4096 ;
4097 return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext conftest$ac_exeext
4101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4102 (eval $ac_link) 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag"
4110 || test ! -s conftest.err'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 (eval $ac_try) 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest$ac_exeext'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 lt_cv_cc_needs_belf=yes
4123else
4124 echo "$as_me: failed program was:" >&5
4125sed 's/^/| /' conftest.$ac_ext >&5
4126
4127lt_cv_cc_needs_belf=no
4128fi
4129rm -f conftest.err conftest.$ac_objext \
4130 conftest$ac_exeext conftest.$ac_ext
4131 ac_ext=c
4132ac_cpp='$CPP $CPPFLAGS'
4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137fi
4138echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4139echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4142 CFLAGS="$SAVE_CFLAGS"
4143 fi
4144 ;;
4145sparc*-*solaris*)
4146 # Find out which ABI we are using.
4147 echo 'int i;' > conftest.$ac_ext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; then
4153 case `/usr/bin/file conftest.o` in
4154 *64-bit*)
4155 case $lt_cv_prog_gnu_ld in
4156 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4157 *) LD="${LD-ld} -64" ;;
4158 esac
4159 ;;
4160 esac
4161 fi
4162 rm -rf conftest*
4163 ;;
4164
4165
4166esac
4167
4168need_locks="$enable_libtool_lock"
4169
4170
4171ac_ext=c
4172ac_cpp='$CPP $CPPFLAGS'
4173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4177echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4178# On Suns, sometimes $CPP names a directory.
4179if test -n "$CPP" && test -d "$CPP"; then
4180 CPP=
4181fi
4182if test -z "$CPP"; then
4183 if test "${ac_cv_prog_CPP+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 # Double quotes because CPP needs to be expanded
4187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4188 do
4189 ac_preproc_ok=false
4190for ac_c_preproc_warn_flag in '' yes
4191do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
4204#ifdef __STDC__
4205# include <limits.h>
4206#else
4207# include <assert.h>
4208#endif
4209 Syntax error
4210_ACEOF
4211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null; then
4219 if test -s conftest.err; then
4220 ac_cpp_err=$ac_c_preproc_warn_flag
4221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4222 else
4223 ac_cpp_err=
4224 fi
4225else
4226 ac_cpp_err=yes
4227fi
4228if test -z "$ac_cpp_err"; then
4229 :
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 # Broken: fails on valid input.
4235continue
4236fi
4237rm -f conftest.err conftest.$ac_ext
4238
4239 # OK, works on sane cases. Now check whether non-existent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
4247#include <ac_nonexistent.h>
4248_ACEOF
4249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4260 else
4261 ac_cpp_err=
4262 fi
4263else
4264 ac_cpp_err=yes
4265fi
4266if test -z "$ac_cpp_err"; then
4267 # Broken: success on invalid input.
4268continue
4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273 # Passes both tests.
4274ac_preproc_ok=:
4275break
4276fi
4277rm -f conftest.err conftest.$ac_ext
4278
4279done
4280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281rm -f conftest.err conftest.$ac_ext
4282if $ac_preproc_ok; then
4283 break
4284fi
4285
4286 done
4287 ac_cv_prog_CPP=$CPP
4288
4289fi
4290 CPP=$ac_cv_prog_CPP
4291else
4292 ac_cv_prog_CPP=$CPP
4293fi
4294echo "$as_me:$LINENO: result: $CPP" >&5
4295echo "${ECHO_T}$CPP" >&6
4296ac_preproc_ok=false
4297for ac_c_preproc_warn_flag in '' yes
4298do
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.$ac_ext <<_ACEOF
4306/* confdefs.h. */
4307_ACEOF
4308cat confdefs.h >>conftest.$ac_ext
4309cat >>conftest.$ac_ext <<_ACEOF
4310/* end confdefs.h. */
4311#ifdef __STDC__
4312# include <limits.h>
4313#else
4314# include <assert.h>
4315#endif
4316 Syntax error
4317_ACEOF
4318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4320 ac_status=$?
4321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } >/dev/null; then
4326 if test -s conftest.err; then
4327 ac_cpp_err=$ac_c_preproc_warn_flag
4328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4329 else
4330 ac_cpp_err=
4331 fi
4332else
4333 ac_cpp_err=yes
4334fi
4335if test -z "$ac_cpp_err"; then
4336 :
4337else
4338 echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 # Broken: fails on valid input.
4342continue
4343fi
4344rm -f conftest.err conftest.$ac_ext
4345
4346 # OK, works on sane cases. Now check whether non-existent headers
4347 # can be detected and how.
4348 cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h. */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h. */
4354#include <ac_nonexistent.h>
4355_ACEOF
4356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_c_preproc_warn_flag
4366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4367 else
4368 ac_cpp_err=
4369 fi
4370else
4371 ac_cpp_err=yes
4372fi
4373if test -z "$ac_cpp_err"; then
4374 # Broken: success on invalid input.
4375continue
4376else
4377 echo "$as_me: failed program was:" >&5
4378sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 # Passes both tests.
4381ac_preproc_ok=:
4382break
4383fi
4384rm -f conftest.err conftest.$ac_ext
4385
4386done
4387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4388rm -f conftest.err conftest.$ac_ext
4389if $ac_preproc_ok; then
4390 :
4391else
4392 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4393See \`config.log' for more details." >&5
4394echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4395See \`config.log' for more details." >&2;}
4396 { (exit 1); exit 1; }; }
4397fi
4398
4399ac_ext=c
4400ac_cpp='$CPP $CPPFLAGS'
4401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404
4405
4406echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4407echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4408if test "${ac_cv_header_stdc+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417#include <stdlib.h>
4418#include <stdarg.h>
4419#include <string.h>
4420#include <float.h>
4421
4422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430rm -f conftest.$ac_objext
4431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_header_stdc=yes
4453else
4454 echo "$as_me: failed program was:" >&5
4455sed 's/^/| /' conftest.$ac_ext >&5
4456
4457ac_cv_header_stdc=no
4458fi
4459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4460
4461if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <string.h>
4470
4471_ACEOF
4472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "memchr" >/dev/null 2>&1; then
4474 :
4475else
4476 ac_cv_header_stdc=no
4477fi
4478rm -f conftest*
4479
4480fi
4481
4482if test $ac_cv_header_stdc = yes; then
4483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4484 cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490#include <stdlib.h>
4491
4492_ACEOF
4493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then
4495 :
4496else
4497 ac_cv_header_stdc=no
4498fi
4499rm -f conftest*
4500
4501fi
4502
4503if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then
4506 :
4507else
4508 cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
4514#include <ctype.h>
4515#if ((' ' & 0x0FF) == 0x020)
4516# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4517# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4518#else
4519# define ISLOWER(c) \
4520 (('a' <= (c) && (c) <= 'i') \
4521 || ('j' <= (c) && (c) <= 'r') \
4522 || ('s' <= (c) && (c) <= 'z'))
4523# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524#endif
4525
4526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4527int
4528main ()
4529{
4530 int i;
4531 for (i = 0; i < 256; i++)
4532 if (XOR (islower (i), ISLOWER (i))
4533 || toupper (i) != TOUPPER (i))
4534 exit(2);
4535 exit (0);
4536}
4537_ACEOF
4538rm -f conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4549 :
4550else
4551 echo "$as_me: program exited with status $ac_status" >&5
4552echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555( exit $ac_status )
4556ac_cv_header_stdc=no
4557fi
4558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559fi
4560fi
4561fi
4562echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4563echo "${ECHO_T}$ac_cv_header_stdc" >&6
4564if test $ac_cv_header_stdc = yes; then
4565
4566cat >>confdefs.h <<\_ACEOF
4567#define STDC_HEADERS 1
4568_ACEOF
4569
4570fi
4571
4572# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4583 inttypes.h stdint.h unistd.h
4584do
4585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586echo "$as_me:$LINENO: checking for $ac_header" >&5
4587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4588if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4597$ac_includes_default
4598
4599#include <$ac_header>
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 eval "$as_ac_Header=yes"
4624else
4625 echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628eval "$as_ac_Header=no"
4629fi
4630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4631fi
4632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4634if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637_ACEOF
4638
4639fi
4640
4641done
4642
4643
4644
4645for ac_header in dlfcn.h
4646do
4647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4648if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo "$as_me:$LINENO: checking for $ac_header" >&5
4650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4651if eval "test \"\${$as_ac_Header+set}\" = set"; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653fi
4654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656else
4657 # Is the header compilable?
4658echo "$as_me:$LINENO: checking $ac_header usability" >&5
4659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4660cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666$ac_includes_default
4667#include <$ac_header>
4668_ACEOF
4669rm -f conftest.$ac_objext
4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler=yes
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696ac_header_compiler=no
4697fi
4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700echo "${ECHO_T}$ac_header_compiler" >&6
4701
4702# Is the header present?
4703echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705cat >conftest.$ac_ext <<_ACEOF
4706/* confdefs.h. */
4707_ACEOF
4708cat confdefs.h >>conftest.$ac_ext
4709cat >>conftest.$ac_ext <<_ACEOF
4710/* end confdefs.h. */
4711#include <$ac_header>
4712_ACEOF
4713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null; then
4721 if test -s conftest.err; then
4722 ac_cpp_err=$ac_c_preproc_warn_flag
4723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4724 else
4725 ac_cpp_err=
4726 fi
4727else
4728 ac_cpp_err=yes
4729fi
4730if test -z "$ac_cpp_err"; then
4731 ac_header_preproc=yes
4732else
4733 echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 ac_header_preproc=no
4737fi
4738rm -f conftest.err conftest.$ac_ext
4739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740echo "${ECHO_T}$ac_header_preproc" >&6
4741
4742# So? What about this header?
4743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4744 yes:no: )
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4749 ac_header_preproc=yes
4750 ;;
4751 no:yes:* )
4752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4764 (
4765 cat <<\_ASBOX
4766## ------------------------------------------ ##
4767## Report this to the AC_PACKAGE_NAME lists. ##
4768## ------------------------------------------ ##
4769_ASBOX
4770 ) |
4771 sed "s/^/$as_me: WARNING: /" >&2
4772 ;;
4773esac
4774echo "$as_me:$LINENO: checking for $ac_header" >&5
4775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4776if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 eval "$as_ac_Header=\$ac_header_preproc"
4780fi
4781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783
4784fi
4785if test `eval echo '${'$as_ac_Header'}'` = yes; then
4786 cat >>confdefs.h <<_ACEOF
4787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788_ACEOF
4789
4790fi
4791
4792done
4793
4794ac_ext=cc
4795ac_cpp='$CXXCPP $CPPFLAGS'
4796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4799if test -n "$ac_tool_prefix"; then
4800 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4801 do
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804echo "$as_me:$LINENO: checking for $ac_word" >&5
4805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806if test "${ac_cv_prog_CXX+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
4823done
4824done
4825
4826fi
4827fi
4828CXX=$ac_cv_prog_CXX
4829if test -n "$CXX"; then
4830 echo "$as_me:$LINENO: result: $CXX" >&5
4831echo "${ECHO_T}$CXX" >&6
4832else
4833 echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6
4835fi
4836
4837 test -n "$CXX" && break
4838 done
4839fi
4840if test -z "$CXX"; then
4841 ac_ct_CXX=$CXX
4842 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4843do
4844 # Extract the first word of "$ac_prog", so it can be a program name with args.
4845set dummy $ac_prog; ac_word=$2
4846echo "$as_me:$LINENO: checking for $ac_word" >&5
4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4848if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851 if test -n "$ac_ct_CXX"; then
4852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_prog_ac_ct_CXX="$ac_prog"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865done
4866done
4867
4868fi
4869fi
4870ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4871if test -n "$ac_ct_CXX"; then
4872 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4873echo "${ECHO_T}$ac_ct_CXX" >&6
4874else
4875 echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6
4877fi
4878
4879 test -n "$ac_ct_CXX" && break
4880done
4881test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4882
4883 CXX=$ac_ct_CXX
4884fi
4885
4886
4887# Provide some information about the compiler.
4888echo "$as_me:$LINENO:" \
4889 "checking for C++ compiler version" >&5
4890ac_compiler=`set X $ac_compile; echo $2`
4891{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4892 (eval $ac_compiler --version </dev/null >&5) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }
4896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4897 (eval $ac_compiler -v </dev/null >&5) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4902 (eval $ac_compiler -V </dev/null >&5) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }
4906
4907echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922#ifndef __GNUC__
4923 choke me
4924#endif
4925
4926 ;
4927 return 0;
4928}
4929_ACEOF
4930rm -f conftest.$ac_objext
4931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4932 (eval $ac_compile) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_cxx_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest.$ac_objext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_compiler_gnu=yes
4953else
4954 echo "$as_me: failed program was:" >&5
4955sed 's/^/| /' conftest.$ac_ext >&5
4956
4957ac_compiler_gnu=no
4958fi
4959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4961
4962fi
4963echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4964echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4965GXX=`test $ac_compiler_gnu = yes && echo yes`
4966ac_test_CXXFLAGS=${CXXFLAGS+set}
4967ac_save_CXXFLAGS=$CXXFLAGS
4968CXXFLAGS="-g"
4969echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4970echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4971if test "${ac_cv_prog_cxx_g+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 cat >conftest.$ac_ext <<_ACEOF
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext
4990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_cxx_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest.$ac_objext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 (eval $ac_try) 2>&5
5008 ac_status=$?
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_prog_cxx_g=yes
5012else
5013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016ac_cv_prog_cxx_g=no
5017fi
5018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5021echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5022if test "$ac_test_CXXFLAGS" = set; then
5023 CXXFLAGS=$ac_save_CXXFLAGS
5024elif test $ac_cv_prog_cxx_g = yes; then
5025 if test "$GXX" = yes; then
5026 CXXFLAGS="-g -O2"
5027 else
5028 CXXFLAGS="-g"
5029 fi
5030else
5031 if test "$GXX" = yes; then
5032 CXXFLAGS="-O2"
5033 else
5034 CXXFLAGS=
5035 fi
5036fi
5037for ac_declaration in \
5038 '' \
5039 'extern "C" void std::exit (int) throw (); using std::exit;' \
5040 'extern "C" void std::exit (int); using std::exit;' \
5041 'extern "C" void exit (int) throw ();' \
5042 'extern "C" void exit (int);' \
5043 'void exit (int);'
5044do
5045 cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051$ac_declaration
5052#include <stdlib.h>
5053int
5054main ()
5055{
5056exit (42);
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext
5062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try='test -z "$ac_cxx_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 :
5084else
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088continue
5089fi
5090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091 cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h. */
5097$ac_declaration
5098int
5099main ()
5100{
5101exit (42);
5102 ;
5103 return 0;
5104}
5105_ACEOF
5106rm -f conftest.$ac_objext
5107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_cxx_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 break
5129else
5130 echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
5133fi
5134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135done
5136rm -f conftest*
5137if test -n "$ac_declaration"; then
5138 echo '#ifdef __cplusplus' >>confdefs.h
5139 echo $ac_declaration >>confdefs.h
5140 echo '#endif' >>confdefs.h
5141fi
5142
5143ac_ext=cc
5144ac_cpp='$CXXCPP $CPPFLAGS'
5145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148
5149depcc="$CXX" am_compiler_list=
5150
5151echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5152echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5153if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named `D' -- because `-MD' means `put the output
5161 # in D'.
5162 mkdir conftest.dir
5163 # Copy depcomp to subdir because otherwise we won't find it if we're
5164 # using a relative directory.
5165 cp "$am_depcomp" conftest.dir
5166 cd conftest.dir
5167 # We will build objects and dependencies in a subdirectory because
5168 # it helps to detect inapplicable dependency modes. For instance
5169 # both Tru64's cc and ICC support -MD to output dependencies as a
5170 # side effect of compilation, but ICC will put the dependencies in
5171 # the current directory while Tru64 will put them in the object
5172 # directory.
5173 mkdir sub
5174
5175 am_cv_CXX_dependencies_compiler_type=none
5176 if test "$am_compiler_list" = ""; then
5177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5178 fi
5179 for depmode in $am_compiler_list; do
5180 # Setup a source with many dependencies, because some compilers
5181 # like to wrap large dependency lists on column 80 (with \), and
5182 # we should not choose a depcomp mode which is confused by this.
5183 #
5184 # We need to recreate these files for each test, as the compiler may
5185 # overwrite some of them when testing with obscure command lines.
5186 # This happens at least with the AIX C compiler.
5187 : > sub/conftest.c
5188 for i in 1 2 3 4 5 6; do
5189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5191 # Solaris 8's {/usr,}/bin/sh.
5192 touch sub/conftst$i.h
5193 done
5194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5195
5196 case $depmode in
5197 nosideeffect)
5198 # after this tag, mechanisms are not by side-effect, so they'll
5199 # only be used when explicitly requested
5200 if test "x$enable_dependency_tracking" = xyes; then
5201 continue
5202 else
5203 break
5204 fi
5205 ;;
5206 none) break ;;
5207 esac
5208 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5209 # mode. It turns out that the SunPro C++ compiler does not properly
5210 # handle `-M -o', and we need to detect this.
5211 if depmode=$depmode \
5212 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5213 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5214 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5215 >/dev/null 2>conftest.err &&
5216 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5217 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5218 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5219 # icc doesn't choke on unknown options, it will just issue warnings
5220 # or remarks (even with -Werror). So we grep stderr for any message
5221 # that says an option was ignored or not supported.
5222 # When given -MP, icc 7.0 and 7.1 complain thusly:
5223 # icc: Command line warning: ignoring option '-M'; no argument required
5224 # The diagnosis changed in icc 8.0:
5225 # icc: Command line remark: option '-MP' not supported
5226 if (grep 'ignoring option' conftest.err ||
5227 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5228 am_cv_CXX_dependencies_compiler_type=$depmode
5229 break
5230 fi
5231 fi
5232 done
5233
5234 cd ..
5235 rm -rf conftest.dir
5236else
5237 am_cv_CXX_dependencies_compiler_type=none
5238fi
5239
5240fi
5241echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5242echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5243CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5244
5245
5246
5247if
5248 test "x$enable_dependency_tracking" != xno \
5249 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5250 am__fastdepCXX_TRUE=
5251 am__fastdepCXX_FALSE='#'
5252else
5253 am__fastdepCXX_TRUE='#'
5254 am__fastdepCXX_FALSE=
5255fi
5256
5257
5258
5259
5260if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5261 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5262 (test "X$CXX" != "Xg++"))) ; then
5263 ac_ext=cc
5264ac_cpp='$CXXCPP $CPPFLAGS'
5265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5269echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5270if test -z "$CXXCPP"; then
5271 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273else
5274 # Double quotes because CXXCPP needs to be expanded
5275 for CXXCPP in "$CXX -E" "/lib/cpp"
5276 do
5277 ac_preproc_ok=false
5278for ac_cxx_preproc_warn_flag in '' yes
5279do
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292#ifdef __STDC__
5293# include <limits.h>
5294#else
5295# include <assert.h>
5296#endif
5297 Syntax error
5298_ACEOF
5299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } >/dev/null; then
5307 if test -s conftest.err; then
5308 ac_cpp_err=$ac_cxx_preproc_warn_flag
5309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5310 else
5311 ac_cpp_err=
5312 fi
5313else
5314 ac_cpp_err=yes
5315fi
5316if test -z "$ac_cpp_err"; then
5317 :
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 # Broken: fails on valid input.
5323continue
5324fi
5325rm -f conftest.err conftest.$ac_ext
5326
5327 # OK, works on sane cases. Now check whether non-existent headers
5328 # can be detected and how.
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335#include <ac_nonexistent.h>
5336_ACEOF
5337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_cxx_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351else
5352 ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
5355 # Broken: success on invalid input.
5356continue
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 # Passes both tests.
5362ac_preproc_ok=:
5363break
5364fi
5365rm -f conftest.err conftest.$ac_ext
5366
5367done
5368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369rm -f conftest.err conftest.$ac_ext
5370if $ac_preproc_ok; then
5371 break
5372fi
5373
5374 done
5375 ac_cv_prog_CXXCPP=$CXXCPP
5376
5377fi
5378 CXXCPP=$ac_cv_prog_CXXCPP
5379else
5380 ac_cv_prog_CXXCPP=$CXXCPP
5381fi
5382echo "$as_me:$LINENO: result: $CXXCPP" >&5
5383echo "${ECHO_T}$CXXCPP" >&6
5384ac_preproc_ok=false
5385for ac_cxx_preproc_warn_flag in '' yes
5386do
5387 # Use a header file that comes with gcc, so configuring glibc
5388 # with a fresh cross-compiler works.
5389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390 # <limits.h> exists even on freestanding compilers.
5391 # On the NeXT, cc -E runs the code through the compiler's parser,
5392 # not just through cpp. "Syntax error" is here to catch this case.
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#ifdef __STDC__
5400# include <limits.h>
5401#else
5402# include <assert.h>
5403#endif
5404 Syntax error
5405_ACEOF
5406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null; then
5414 if test -s conftest.err; then
5415 ac_cpp_err=$ac_cxx_preproc_warn_flag
5416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5417 else
5418 ac_cpp_err=
5419 fi
5420else
5421 ac_cpp_err=yes
5422fi
5423if test -z "$ac_cpp_err"; then
5424 :
5425else
5426 echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 # Broken: fails on valid input.
5430continue
5431fi
5432rm -f conftest.err conftest.$ac_ext
5433
5434 # OK, works on sane cases. Now check whether non-existent headers
5435 # can be detected and how.
5436 cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h. */
5442#include <ac_nonexistent.h>
5443_ACEOF
5444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } >/dev/null; then
5452 if test -s conftest.err; then
5453 ac_cpp_err=$ac_cxx_preproc_warn_flag
5454 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5455 else
5456 ac_cpp_err=
5457 fi
5458else
5459 ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
5462 # Broken: success on invalid input.
5463continue
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
5472rm -f conftest.err conftest.$ac_ext
5473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476rm -f conftest.err conftest.$ac_ext
5477if $ac_preproc_ok; then
5478 :
5479else
5480 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5481See \`config.log' for more details." >&5
5482echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5483See \`config.log' for more details." >&2;}
5484 { (exit 1); exit 1; }; }
5485fi
5486
5487ac_ext=cc
5488ac_cpp='$CXXCPP $CPPFLAGS'
5489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5492
5493fi
5494
5495
5496ac_ext=f
5497ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5498ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5500if test -n "$ac_tool_prefix"; then
5501 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5502 do
5503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505echo "$as_me:$LINENO: checking for $ac_word" >&5
5506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507if test "${ac_cv_prog_F77+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 if test -n "$F77"; then
5511 ac_cv_prog_F77="$F77" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5523 fi
5524done
5525done
5526
5527fi
5528fi
5529F77=$ac_cv_prog_F77
5530if test -n "$F77"; then
5531 echo "$as_me:$LINENO: result: $F77" >&5
5532echo "${ECHO_T}$F77" >&6
5533else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536fi
5537
5538 test -n "$F77" && break
5539 done
5540fi
5541if test -z "$F77"; then
5542 ac_ct_F77=$F77
5543 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5544do
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546set dummy $ac_prog; ac_word=$2
5547echo "$as_me:$LINENO: checking for $ac_word" >&5
5548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 if test -n "$ac_ct_F77"; then
5553 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5554else
5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556for as_dir in $PATH
5557do
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_ac_ct_F77="$ac_prog"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5565 fi
5566done
5567done
5568
5569fi
5570fi
5571ac_ct_F77=$ac_cv_prog_ac_ct_F77
5572if test -n "$ac_ct_F77"; then
5573 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5574echo "${ECHO_T}$ac_ct_F77" >&6
5575else
5576 echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6
5578fi
5579
5580 test -n "$ac_ct_F77" && break
5581done
5582
5583 F77=$ac_ct_F77
5584fi
5585
5586
5587# Provide some information about the compiler.
0cbaeb11 5588echo "$as_me:5588:" \
bf9f3bac 5589 "checking for Fortran 77 compiler version" >&5
5590ac_compiler=`set X $ac_compile; echo $2`
5591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5592 (eval $ac_compiler --version </dev/null >&5) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }
5596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5597 (eval $ac_compiler -v </dev/null >&5) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }
5601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5602 (eval $ac_compiler -V </dev/null >&5) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }
5606rm -f a.out
5607
5608# If we don't use `.F' as extension, the preprocessor is not run on the
5609# input file. (Note that this only needs to work for GNU compilers.)
5610ac_save_ext=$ac_ext
5611ac_ext=F
5612echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5613echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5614if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617 cat >conftest.$ac_ext <<_ACEOF
5618 program main
5619#ifndef __GNUC__
5620 choke me
5621#endif
5622
5623 end
5624_ACEOF
5625rm -f conftest.$ac_objext
5626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_f77_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_compiler_gnu=yes
5648else
5649 echo "$as_me: failed program was:" >&5
5650sed 's/^/| /' conftest.$ac_ext >&5
5651
5652ac_compiler_gnu=no
5653fi
5654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5655ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5656
5657fi
5658echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5659echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5660ac_ext=$ac_save_ext
5661ac_test_FFLAGS=${FFLAGS+set}
5662ac_save_FFLAGS=$FFLAGS
5663FFLAGS=
5664echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5665echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5666if test "${ac_cv_prog_f77_g+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 FFLAGS=-g
5670cat >conftest.$ac_ext <<_ACEOF
5671 program main
5672
5673 end
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_f77_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 ac_cv_prog_f77_g=yes
5698else
5699 echo "$as_me: failed program was:" >&5
5700sed 's/^/| /' conftest.$ac_ext >&5
5701
5702ac_cv_prog_f77_g=no
5703fi
5704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5705
5706fi
5707echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5708echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5709if test "$ac_test_FFLAGS" = set; then
5710 FFLAGS=$ac_save_FFLAGS
5711elif test $ac_cv_prog_f77_g = yes; then
5712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5713 FFLAGS="-g -O2"
5714 else
5715 FFLAGS="-g"
5716 fi
5717else
5718 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5719 FFLAGS="-O2"
5720 else
5721 FFLAGS=
5722 fi
5723fi
5724
5725G77=`test $ac_compiler_gnu = yes && echo yes`
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732
5733
5734# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5735
5736# find the maximum length of command line arguments
5737echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5738echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5739if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742 i=0
5743 teststring="ABCD"
5744
5745 case $build_os in
5746 msdosdjgpp*)
5747 # On DJGPP, this test can blow up pretty badly due to problems in libc
5748 # (any single argument exceeding 2000 bytes causes a buffer overrun
5749 # during glob expansion). Even if it were fixed, the result of this
5750 # check would be larger than it should be.
5751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5752 ;;
5753
5754 gnu*)
5755 # Under GNU Hurd, this test is not required because there is
5756 # no limit to the length of command line arguments.
5757 # Libtool will interpret -1 as no limit whatsoever
5758 lt_cv_sys_max_cmd_len=-1;
5759 ;;
5760
5761 cygwin* | mingw*)
5762 # On Win9x/ME, this test blows up -- it succeeds, but takes
5763 # about 5 minutes as the teststring grows exponentially.
5764 # Worse, since 9x/ME are not pre-emptively multitasking,
5765 # you end up with a "frozen" computer, even though with patience
5766 # the test eventually succeeds (with a max line length of 256k).
5767 # Instead, let's just punt: use the minimum linelength reported by
5768 # all of the supported platforms: 8192 (on NT/2K/XP).
5769 lt_cv_sys_max_cmd_len=8192;
5770 ;;
5771
5772 amigaos*)
5773 # On AmigaOS with pdksh, this test takes hours, literally.
5774 # So we just punt and use a minimum line length of 8192.
5775 lt_cv_sys_max_cmd_len=8192;
5776 ;;
5777
5778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5779 # This has been around since 386BSD, at least. Likely further.
5780 if test -x /sbin/sysctl; then
5781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5782 elif test -x /usr/sbin/sysctl; then
5783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5784 else
5785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5786 fi
5787 # And add a safety zone
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5790 ;;
5791
5792 interix*)
5793 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5794 lt_cv_sys_max_cmd_len=196608
5795 ;;
5796
5797 osf*)
5798 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5799 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5800 # nice to cause kernel panics so lets avoid the loop below.
5801 # First set a reasonable default.
5802 lt_cv_sys_max_cmd_len=16384
5803 #
5804 if test -x /sbin/sysconfig; then
5805 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5806 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5807 esac
5808 fi
5809 ;;
5810 sco3.2v5*)
5811 lt_cv_sys_max_cmd_len=102400
5812 ;;
5813 sysv5* | sco5v6* | sysv4.2uw2*)
5814 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5815 if test -n "$kargmax"; then
5816 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5817 else
5818 lt_cv_sys_max_cmd_len=32768
5819 fi
5820 ;;
5821 *)
5822 # If test is not a shell built-in, we'll probably end up computing a
5823 # maximum length that is only half of the actual maximum length, but
5824 # we can't tell.
5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5826 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5827 = "XX$teststring") >/dev/null 2>&1 &&
5828 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5829 lt_cv_sys_max_cmd_len=$new_result &&
5830 test $i != 17 # 1/2 MB should be enough
5831 do
5832 i=`expr $i + 1`
5833 teststring=$teststring$teststring
5834 done
5835 teststring=
5836 # Add a significant safety factor because C++ compilers can tack on massive
5837 # amounts of additional arguments before passing them to the linker.
5838 # It appears as though 1/2 is a usable value.
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5840 ;;
5841 esac
5842
5843fi
5844
5845if test -n $lt_cv_sys_max_cmd_len ; then
5846 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5847echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5848else
5849 echo "$as_me:$LINENO: result: none" >&5
5850echo "${ECHO_T}none" >&6
5851fi
5852
5853
5854
5855
5856# Check for command to grab the raw symbol name followed by C symbol from nm.
5857echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5858echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5859if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862
5863# These are sane defaults that work on at least a few old systems.
5864# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5865
5866# Character class describing NM global symbol codes.
5867symcode='[BCDEGRST]'
5868
5869# Regexp to match symbols that can be accessed directly from C.
5870sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5871
5872# Transform an extracted symbol line into a proper C declaration
5873lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5874
5875# Transform an extracted symbol line into symbol name and symbol address
5876lt_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'"
5877
5878# Define system-specific variables.
5879case $host_os in
5880aix*)
5881 symcode='[BCDT]'
5882 ;;
5883cygwin* | mingw* | pw32*)
5884 symcode='[ABCDGISTW]'
5885 ;;
5886hpux*) # Its linker distinguishes data from code symbols
5887 if test "$host_cpu" = ia64; then
5888 symcode='[ABCDEGRST]'
5889 fi
5890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5891 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'"
5892 ;;
5893linux*)
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDGIRSTW]'
5896 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5897 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'"
5898 fi
5899 ;;
5900irix* | nonstopux*)
5901 symcode='[BCDEGRST]'
5902 ;;
5903osf*)
5904 symcode='[BCDEGQRST]'
5905 ;;
5906solaris*)
5907 symcode='[BDRT]'
5908 ;;
5909sco3.2v5*)
5910 symcode='[DT]'
5911 ;;
5912sysv4.2uw2*)
5913 symcode='[DT]'
5914 ;;
5915sysv5* | sco5v6* | unixware* | OpenUNIX*)
5916 symcode='[ABDT]'
5917 ;;
5918sysv4)
5919 symcode='[DFNSTU]'
5920 ;;
5921esac
5922
5923# Handle CRLF in mingw tool chain
5924opt_cr=
5925case $build_os in
5926mingw*)
5927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5928 ;;
5929esac
5930
5931# If we're using GNU nm, then use its standard symbol codes.
5932case `$NM -V 2>&1` in
5933*GNU* | *'with BFD'*)
5934 symcode='[ABCDGIRSTW]' ;;
5935esac
5936
5937# Try without a prefix undercore, then with it.
5938for ac_symprfx in "" "_"; do
5939
5940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5941 symxfrm="\\1 $ac_symprfx\\2 \\2"
5942
5943 # Write the raw and C identifiers.
5944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5945
5946 # Check to see that the pipe works correctly.
5947 pipe_works=no
5948
5949 rm -f conftest*
5950 cat > conftest.$ac_ext <<EOF
5951#ifdef __cplusplus
5952extern "C" {
5953#endif
5954char nm_test_var;
5955void nm_test_func(){}
5956#ifdef __cplusplus
5957}
5958#endif
5959int main(){nm_test_var='a';nm_test_func();return(0);}
5960EOF
5961
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
5967 # Now try to grab the symbols.
5968 nlist=conftest.nm
5969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && test -s "$nlist"; then
5974 # Try sorting and uniquifying the output.
5975 if sort "$nlist" | uniq > "$nlist"T; then
5976 mv -f "$nlist"T "$nlist"
5977 else
5978 rm -f "$nlist"T
5979 fi
5980
5981 # Make sure that we snagged all the symbols we need.
5982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5984 cat <<EOF > conftest.$ac_ext
5985#ifdef __cplusplus
5986extern "C" {
5987#endif
5988
5989EOF
5990 # Now generate the symbol file.
5991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5992
5993 cat <<EOF >> conftest.$ac_ext
5994#if defined (__STDC__) && __STDC__
5995# define lt_ptr_t void *
5996#else
5997# define lt_ptr_t char *
5998# define const
5999#endif
6000
6001/* The mapping between symbol names and symbols. */
6002const struct {
6003 const char *name;
6004 lt_ptr_t address;
6005}
6006lt_preloaded_symbols[] =
6007{
6008EOF
6009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6010 cat <<\EOF >> conftest.$ac_ext
6011 {0, (lt_ptr_t) 0}
6012};
6013
6014#ifdef __cplusplus
6015}
6016#endif
6017EOF
6018 # Now try linking the two files.
6019 mv conftest.$ac_objext conftstm.$ac_objext
6020 lt_save_LIBS="$LIBS"
6021 lt_save_CFLAGS="$CFLAGS"
6022 LIBS="conftstm.$ac_objext"
6023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6029 pipe_works=yes
6030 fi
6031 LIBS="$lt_save_LIBS"
6032 CFLAGS="$lt_save_CFLAGS"
6033 else
6034 echo "cannot find nm_test_func in $nlist" >&5
6035 fi
6036 else
6037 echo "cannot find nm_test_var in $nlist" >&5
6038 fi
6039 else
6040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6041 fi
6042 else
6043 echo "$progname: failed program was:" >&5
6044 cat conftest.$ac_ext >&5
6045 fi
6046 rm -f conftest* conftst*
6047
6048 # Do not use the global_symbol_pipe unless it works.
6049 if test "$pipe_works" = yes; then
6050 break
6051 else
6052 lt_cv_sys_global_symbol_pipe=
6053 fi
6054done
6055
6056fi
6057
6058if test -z "$lt_cv_sys_global_symbol_pipe"; then
6059 lt_cv_sys_global_symbol_to_cdecl=
6060fi
6061if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6062 echo "$as_me:$LINENO: result: failed" >&5
6063echo "${ECHO_T}failed" >&6
6064else
6065 echo "$as_me:$LINENO: result: ok" >&5
6066echo "${ECHO_T}ok" >&6
6067fi
6068
6069echo "$as_me:$LINENO: checking for objdir" >&5
6070echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6071if test "${lt_cv_objdir+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074 rm -f .libs 2>/dev/null
6075mkdir .libs 2>/dev/null
6076if test -d .libs; then
6077 lt_cv_objdir=.libs
6078else
6079 # MS-DOS does not allow filenames that begin with a dot.
6080 lt_cv_objdir=_libs
6081fi
6082rmdir .libs 2>/dev/null
6083fi
6084echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6085echo "${ECHO_T}$lt_cv_objdir" >&6
6086objdir=$lt_cv_objdir
6087
6088
6089
6090
6091
6092case $host_os in
6093aix3*)
6094 # AIX sometimes has problems with the GCC collect2 program. For some
6095 # reason, if we set the COLLECT_NAMES environment variable, the problems
6096 # vanish in a puff of smoke.
6097 if test "X${COLLECT_NAMES+set}" != Xset; then
6098 COLLECT_NAMES=
6099 export COLLECT_NAMES
6100 fi
6101 ;;
6102esac
6103
6104# Sed substitution that helps us do robust quoting. It backslashifies
6105# metacharacters that are still active within double-quoted strings.
6106Xsed='sed -e 1s/^X//'
6107sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6108
6109# Same as above, but do not quote variable references.
6110double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6111
6112# Sed substitution to delay expansion of an escaped shell variable in a
6113# double_quote_subst'ed string.
6114delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6115
6116# Sed substitution to avoid accidental globbing in evaled expressions
6117no_glob_subst='s/\*/\\\*/g'
6118
6119# Constants:
6120rm="rm -f"
6121
6122# Global variables:
6123default_ofile=libtool
6124can_build_shared=yes
6125
6126# All known linkers require a `.a' archive for static linking (except MSVC,
6127# which needs '.lib').
6128libext=a
6129ltmain="$ac_aux_dir/ltmain.sh"
6130ofile="$default_ofile"
6131with_gnu_ld="$lt_cv_prog_gnu_ld"
6132
6133if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6135set dummy ${ac_tool_prefix}ar; ac_word=$2
6136echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6138if test "${ac_cv_prog_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 if test -n "$AR"; then
6142 ac_cv_prog_AR="$AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6151 ac_cv_prog_AR="${ac_tool_prefix}ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156done
6157
6158fi
6159fi
6160AR=$ac_cv_prog_AR
6161if test -n "$AR"; then
6162 echo "$as_me:$LINENO: result: $AR" >&5
6163echo "${ECHO_T}$AR" >&6
6164else
6165 echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167fi
6168
6169fi
6170if test -z "$ac_cv_prog_AR"; then
6171 ac_ct_AR=$AR
6172 # Extract the first word of "ar", so it can be a program name with args.
6173set dummy ar; ac_word=$2
6174echo "$as_me:$LINENO: checking for $ac_word" >&5
6175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6176if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 if test -n "$ac_ct_AR"; then
6180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_prog_ac_ct_AR="ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6192 fi
6193done
6194done
6195
6196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6197fi
6198fi
6199ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200if test -n "$ac_ct_AR"; then
6201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202echo "${ECHO_T}$ac_ct_AR" >&6
6203else
6204 echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
6206fi
6207
6208 AR=$ac_ct_AR
6209else
6210 AR="$ac_cv_prog_AR"
6211fi
6212
6213if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6215set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6216echo "$as_me:$LINENO: checking for $ac_word" >&5
6217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6218if test "${ac_cv_prog_RANLIB+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 if test -n "$RANLIB"; then
6222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6223else
6224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225for as_dir in $PATH
6226do
6227 IFS=$as_save_IFS
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 break 2
6234 fi
6235done
6236done
6237
6238fi
6239fi
6240RANLIB=$ac_cv_prog_RANLIB
6241if test -n "$RANLIB"; then
6242 echo "$as_me:$LINENO: result: $RANLIB" >&5
6243echo "${ECHO_T}$RANLIB" >&6
6244else
6245 echo "$as_me:$LINENO: result: no" >&5
6246echo "${ECHO_T}no" >&6
6247fi
6248
6249fi
6250if test -z "$ac_cv_prog_RANLIB"; then
6251 ac_ct_RANLIB=$RANLIB
6252 # Extract the first word of "ranlib", so it can be a program name with args.
6253set dummy ranlib; ac_word=$2
6254echo "$as_me:$LINENO: checking for $ac_word" >&5
6255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6256if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 if test -n "$ac_ct_RANLIB"; then
6260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_RANLIB="ranlib"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273done
6274done
6275
6276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6277fi
6278fi
6279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6280if test -n "$ac_ct_RANLIB"; then
6281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6282echo "${ECHO_T}$ac_ct_RANLIB" >&6
6283else
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287
6288 RANLIB=$ac_ct_RANLIB
6289else
6290 RANLIB="$ac_cv_prog_RANLIB"
6291fi
6292
6293if test -n "$ac_tool_prefix"; then
6294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6295set dummy ${ac_tool_prefix}strip; ac_word=$2
6296echo "$as_me:$LINENO: checking for $ac_word" >&5
6297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6298if test "${ac_cv_prog_STRIP+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 if test -n "$STRIP"; then
6302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316done
6317
6318fi
6319fi
6320STRIP=$ac_cv_prog_STRIP
6321if test -n "$STRIP"; then
6322 echo "$as_me:$LINENO: result: $STRIP" >&5
6323echo "${ECHO_T}$STRIP" >&6
6324else
6325 echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
6327fi
6328
6329fi
6330if test -z "$ac_cv_prog_STRIP"; then
6331 ac_ct_STRIP=$STRIP
6332 # Extract the first word of "strip", so it can be a program name with args.
6333set dummy strip; ac_word=$2
6334echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354done
6355
6356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6357fi
6358fi
6359ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360if test -n "$ac_ct_STRIP"; then
6361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6362echo "${ECHO_T}$ac_ct_STRIP" >&6
6363else
6364 echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
6366fi
6367
6368 STRIP=$ac_ct_STRIP
6369else
6370 STRIP="$ac_cv_prog_STRIP"
6371fi
6372
6373
6374old_CC="$CC"
6375old_CFLAGS="$CFLAGS"
6376
6377# Set sane defaults for various variables
6378test -z "$AR" && AR=ar
6379test -z "$AR_FLAGS" && AR_FLAGS=cru
6380test -z "$AS" && AS=as
6381test -z "$CC" && CC=cc
6382test -z "$LTCC" && LTCC=$CC
6383test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6384test -z "$DLLTOOL" && DLLTOOL=dlltool
6385test -z "$LD" && LD=ld
6386test -z "$LN_S" && LN_S="ln -s"
6387test -z "$MAGIC_CMD" && MAGIC_CMD=file
6388test -z "$NM" && NM=nm
6389test -z "$SED" && SED=sed
6390test -z "$OBJDUMP" && OBJDUMP=objdump
6391test -z "$RANLIB" && RANLIB=:
6392test -z "$STRIP" && STRIP=:
6393test -z "$ac_objext" && ac_objext=o
6394
6395# Determine commands to create old-style static archives.
6396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6397old_postinstall_cmds='chmod 644 $oldlib'
6398old_postuninstall_cmds=
6399
6400if test -n "$RANLIB"; then
6401 case $host_os in
6402 openbsd*)
6403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6404 ;;
6405 *)
6406 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6407 ;;
6408 esac
6409 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6410fi
6411
6412for cc_temp in $compiler""; do
6413 case $cc_temp in
6414 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6415 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6416 \-*) ;;
6417 *) break;;
6418 esac
6419done
6420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6421
6422
6423# Only perform the check for file, if the check method requires it
6424case $deplibs_check_method in
6425file_magic*)
6426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6427 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6428echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6429if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 case $MAGIC_CMD in
6433[\\/*] | ?:[\\/]*)
6434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6435 ;;
6436*)
6437 lt_save_MAGIC_CMD="$MAGIC_CMD"
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6440 for ac_dir in $ac_dummy; do
6441 IFS="$lt_save_ifs"
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f $ac_dir/${ac_tool_prefix}file; then
6444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6445 if test -n "$file_magic_test_file"; then
6446 case $deplibs_check_method in
6447 "file_magic "*)
6448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6451 $EGREP "$file_magic_regex" > /dev/null; then
6452 :
6453 else
6454 cat <<EOF 1>&2
6455
6456*** Warning: the command libtool uses to detect shared libraries,
6457*** $file_magic_cmd, produces output that libtool cannot recognize.
6458*** The result is that libtool may fail to recognize shared libraries
6459*** as such. This will affect the creation of libtool libraries that
6460*** depend on shared libraries, but programs linked with such libtool
6461*** libraries will work regardless of this problem. Nevertheless, you
6462*** may want to report the problem to your system manager and/or to
6463*** bug-libtool@gnu.org
6464
6465EOF
6466 fi ;;
6467 esac
6468 fi
6469 break
6470 fi
6471 done
6472 IFS="$lt_save_ifs"
6473 MAGIC_CMD="$lt_save_MAGIC_CMD"
6474 ;;
6475esac
6476fi
6477
6478MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6479if test -n "$MAGIC_CMD"; then
6480 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6481echo "${ECHO_T}$MAGIC_CMD" >&6
6482else
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485fi
6486
6487if test -z "$lt_cv_path_MAGIC_CMD"; then
6488 if test -n "$ac_tool_prefix"; then
6489 echo "$as_me:$LINENO: checking for file" >&5
6490echo $ECHO_N "checking for file... $ECHO_C" >&6
6491if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 case $MAGIC_CMD in
6495[\\/*] | ?:[\\/]*)
6496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6497 ;;
6498*)
6499 lt_save_MAGIC_CMD="$MAGIC_CMD"
6500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6502 for ac_dir in $ac_dummy; do
6503 IFS="$lt_save_ifs"
6504 test -z "$ac_dir" && ac_dir=.
6505 if test -f $ac_dir/file; then
6506 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6507 if test -n "$file_magic_test_file"; then
6508 case $deplibs_check_method in
6509 "file_magic "*)
6510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6513 $EGREP "$file_magic_regex" > /dev/null; then
6514 :
6515 else
6516 cat <<EOF 1>&2
6517
6518*** Warning: the command libtool uses to detect shared libraries,
6519*** $file_magic_cmd, produces output that libtool cannot recognize.
6520*** The result is that libtool may fail to recognize shared libraries
6521*** as such. This will affect the creation of libtool libraries that
6522*** depend on shared libraries, but programs linked with such libtool
6523*** libraries will work regardless of this problem. Nevertheless, you
6524*** may want to report the problem to your system manager and/or to
6525*** bug-libtool@gnu.org
6526
6527EOF
6528 fi ;;
6529 esac
6530 fi
6531 break
6532 fi
6533 done
6534 IFS="$lt_save_ifs"
6535 MAGIC_CMD="$lt_save_MAGIC_CMD"
6536 ;;
6537esac
6538fi
6539
6540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541if test -n "$MAGIC_CMD"; then
6542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6543echo "${ECHO_T}$MAGIC_CMD" >&6
6544else
6545 echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
6547fi
6548
6549 else
6550 MAGIC_CMD=:
6551 fi
6552fi
6553
6554 fi
6555 ;;
6556esac
6557
6558enable_dlopen=no
6559enable_win32_dll=no
6560
6561# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6562if test "${enable_libtool_lock+set}" = set; then
6563 enableval="$enable_libtool_lock"
6564
6565fi;
6566test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568
6569# Check whether --with-pic or --without-pic was given.
6570if test "${with_pic+set}" = set; then
6571 withval="$with_pic"
6572 pic_mode="$withval"
6573else
6574 pic_mode=default
6575fi;
6576test -z "$pic_mode" && pic_mode=default
6577
6578# Use C for the default configuration in the libtool script
6579tagname=
6580lt_save_CC="$CC"
6581ac_ext=c
6582ac_cpp='$CPP $CPPFLAGS'
6583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587
6588# Source file extension for C test sources.
6589ac_ext=c
6590
6591# Object file extension for compiled C test sources.
6592objext=o
6593objext=$objext
6594
6595# Code to be used in simple compile tests
6596lt_simple_compile_test_code="int some_variable = 0;\n"
6597
6598# Code to be used in simple link tests
6599lt_simple_link_test_code='int main(){return(0);}\n'
6600
6601
6602# If no C compiler was specified, use CC.
6603LTCC=${LTCC-"$CC"}
6604
6605# If no C compiler flags were specified, use CFLAGS.
6606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6607
6608# Allow CC to be a program name with arguments.
6609compiler=$CC
6610
6611
6612# save warnings/boilerplate of simple test code
6613ac_outfile=conftest.$ac_objext
6614printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616_lt_compiler_boilerplate=`cat conftest.err`
6617$rm conftest*
6618
6619ac_outfile=conftest.$ac_objext
6620printf "$lt_simple_link_test_code" >conftest.$ac_ext
6621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622_lt_linker_boilerplate=`cat conftest.err`
6623$rm conftest*
6624
6625
6626
6627lt_prog_compiler_no_builtin_flag=
6628
6629if test "$GCC" = yes; then
6630 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6631
6632
6633echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6634echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6635if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638 lt_cv_prog_compiler_rtti_exceptions=no
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6641 lt_compiler_flag="-fno-rtti -fno-exceptions"
6642 # Insert the option either (1) after the last *FLAGS variable, or
6643 # (2) before a word containing "conftest.", or (3) at the end.
6644 # Note that $ac_compile itself does not contain backslashes and begins
6645 # with a dollar sign (not a hyphen), so the echo should work correctly.
6646 # The option is referenced via a variable to avoid confusing sed.
6647 lt_compile=`echo "$ac_compile" | $SED \
6648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 6651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
bf9f3bac 6652 (eval "$lt_compile" 2>conftest.err)
6653 ac_status=$?
6654 cat conftest.err >&5
0cbaeb11 6655 echo "$as_me:6655: \$? = $ac_status" >&5
bf9f3bac 6656 if (exit $ac_status) && test -s "$ac_outfile"; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings other than the usual output.
6659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6662 lt_cv_prog_compiler_rtti_exceptions=yes
6663 fi
6664 fi
6665 $rm conftest*
6666
6667fi
6668echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6669echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6670
6671if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6673else
6674 :
6675fi
6676
6677fi
6678
6679lt_prog_compiler_wl=
6680lt_prog_compiler_pic=
6681lt_prog_compiler_static=
6682
6683echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6684echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6685
6686 if test "$GCC" = yes; then
6687 lt_prog_compiler_wl='-Wl,'
6688 lt_prog_compiler_static='-static'
6689
6690 case $host_os in
6691 aix*)
6692 # All AIX code is PIC.
6693 if test "$host_cpu" = ia64; then
6694 # AIX 5 now supports IA64 processor
6695 lt_prog_compiler_static='-Bstatic'
6696 fi
6697 ;;
6698
6699 amigaos*)
6700 # FIXME: we need at least 68020 code to build shared libraries, but
6701 # adding the `-m68020' flag to GCC prevents building anything better,
6702 # like `-m68040'.
6703 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6704 ;;
6705
6706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6707 # PIC is the default for these OSes.
6708 ;;
6709
6710 mingw* | pw32* | os2*)
6711 # This hack is so that the source file can tell whether it is being
6712 # built for inclusion in a dll (and should export symbols for example).
6713 lt_prog_compiler_pic='-DDLL_EXPORT'
6714 ;;
6715
6716 darwin* | rhapsody*)
6717 # PIC is the default on this platform
6718 # Common symbols not allowed in MH_DYLIB files
6719 lt_prog_compiler_pic='-fno-common'
6720 ;;
6721
6722 interix3*)
6723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6724 # Instead, we relocate shared libraries at runtime.
6725 ;;
6726
6727 msdosdjgpp*)
6728 # Just because we use GCC doesn't mean we suddenly get shared libraries
6729 # on systems that don't support them.
6730 lt_prog_compiler_can_build_shared=no
6731 enable_shared=no
6732 ;;
6733
6734 sysv4*MP*)
6735 if test -d /usr/nec; then
6736 lt_prog_compiler_pic=-Kconform_pic
6737 fi
6738 ;;
6739
6740 hpux*)
6741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6742 # not for PA HP-UX.
6743 case $host_cpu in
6744 hppa*64*|ia64*)
6745 # +Z the default
6746 ;;
6747 *)
6748 lt_prog_compiler_pic='-fPIC'
6749 ;;
6750 esac
6751 ;;
6752
6753 *)
6754 lt_prog_compiler_pic='-fPIC'
6755 ;;
6756 esac
6757 else
6758 # PORTME Check for flag to pass linker flags through the system compiler.
6759 case $host_os in
6760 aix*)
6761 lt_prog_compiler_wl='-Wl,'
6762 if test "$host_cpu" = ia64; then
6763 # AIX 5 now supports IA64 processor
6764 lt_prog_compiler_static='-Bstatic'
6765 else
6766 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6767 fi
6768 ;;
6769 darwin*)
6770 # PIC is the default on this platform
6771 # Common symbols not allowed in MH_DYLIB files
6772 case $cc_basename in
6773 xlc*)
6774 lt_prog_compiler_pic='-qnocommon'
6775 lt_prog_compiler_wl='-Wl,'
6776 ;;
6777 esac
6778 ;;
6779
6780 mingw* | pw32* | os2*)
6781 # This hack is so that the source file can tell whether it is being
6782 # built for inclusion in a dll (and should export symbols for example).
6783 lt_prog_compiler_pic='-DDLL_EXPORT'
6784 ;;
6785
6786 hpux9* | hpux10* | hpux11*)
6787 lt_prog_compiler_wl='-Wl,'
6788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6789 # not for PA HP-UX.
6790 case $host_cpu in
6791 hppa*64*|ia64*)
6792 # +Z the default
6793 ;;
6794 *)
6795 lt_prog_compiler_pic='+Z'
6796 ;;
6797 esac
6798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6799 lt_prog_compiler_static='${wl}-a ${wl}archive'
6800 ;;
6801
6802 irix5* | irix6* | nonstopux*)
6803 lt_prog_compiler_wl='-Wl,'
6804 # PIC (with -KPIC) is the default.
6805 lt_prog_compiler_static='-non_shared'
6806 ;;
6807
6808 newsos6)
6809 lt_prog_compiler_pic='-KPIC'
6810 lt_prog_compiler_static='-Bstatic'
6811 ;;
6812
6813 linux*)
6814 case $cc_basename in
6815 icc* | ecc*)
6816 lt_prog_compiler_wl='-Wl,'
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-static'
6819 ;;
6820 pgcc* | pgf77* | pgf90* | pgf95*)
6821 # Portland Group compilers (*not* the Pentium gcc compiler,
6822 # which looks to be a dead project)
6823 lt_prog_compiler_wl='-Wl,'
6824 lt_prog_compiler_pic='-fpic'
6825 lt_prog_compiler_static='-Bstatic'
6826 ;;
6827 ccc*)
6828 lt_prog_compiler_wl='-Wl,'
6829 # All Alpha code is PIC.
6830 lt_prog_compiler_static='-non_shared'
6831 ;;
6832 esac
6833 ;;
6834
6835 osf3* | osf4* | osf5*)
6836 lt_prog_compiler_wl='-Wl,'
6837 # All OSF/1 code is PIC.
6838 lt_prog_compiler_static='-non_shared'
6839 ;;
6840
6841 solaris*)
6842 lt_prog_compiler_pic='-KPIC'
6843 lt_prog_compiler_static='-Bstatic'
6844 case $cc_basename in
6845 f77* | f90* | f95*)
6846 lt_prog_compiler_wl='-Qoption ld ';;
6847 *)
6848 lt_prog_compiler_wl='-Wl,';;
6849 esac
6850 ;;
6851
6852 sunos4*)
6853 lt_prog_compiler_wl='-Qoption ld '
6854 lt_prog_compiler_pic='-PIC'
6855 lt_prog_compiler_static='-Bstatic'
6856 ;;
6857
6858 sysv4 | sysv4.2uw2* | sysv4.3*)
6859 lt_prog_compiler_wl='-Wl,'
6860 lt_prog_compiler_pic='-KPIC'
6861 lt_prog_compiler_static='-Bstatic'
6862 ;;
6863
6864 sysv4*MP*)
6865 if test -d /usr/nec ;then
6866 lt_prog_compiler_pic='-Kconform_pic'
6867 lt_prog_compiler_static='-Bstatic'
6868 fi
6869 ;;
6870
6871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6872 lt_prog_compiler_wl='-Wl,'
6873 lt_prog_compiler_pic='-KPIC'
6874 lt_prog_compiler_static='-Bstatic'
6875 ;;
6876
6877 unicos*)
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_can_build_shared=no
6880 ;;
6881
6882 uts4*)
6883 lt_prog_compiler_pic='-pic'
6884 lt_prog_compiler_static='-Bstatic'
6885 ;;
6886
6887 *)
6888 lt_prog_compiler_can_build_shared=no
6889 ;;
6890 esac
6891 fi
6892
6893echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6894echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6895
6896#
6897# Check to make sure the PIC flag actually works.
6898#
6899if test -n "$lt_prog_compiler_pic"; then
6900
6901echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6902echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6903if test "${lt_prog_compiler_pic_works+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 lt_prog_compiler_pic_works=no
6907 ac_outfile=conftest.$ac_objext
6908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6910 # Insert the option either (1) after the last *FLAGS variable, or
6911 # (2) before a word containing "conftest.", or (3) at the end.
6912 # Note that $ac_compile itself does not contain backslashes and begins
6913 # with a dollar sign (not a hyphen), so the echo should work correctly.
6914 # The option is referenced via a variable to avoid confusing sed.
6915 lt_compile=`echo "$ac_compile" | $SED \
6916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6918 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 6919 (eval echo "\"\$as_me:6919: $lt_compile\"" >&5)
bf9f3bac 6920 (eval "$lt_compile" 2>conftest.err)
6921 ac_status=$?
6922 cat conftest.err >&5
0cbaeb11 6923 echo "$as_me:6923: \$? = $ac_status" >&5
bf9f3bac 6924 if (exit $ac_status) && test -s "$ac_outfile"; then
6925 # The compiler can only warn and ignore the option if not recognized
6926 # So say no if there are warnings other than the usual output.
6927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6930 lt_prog_compiler_pic_works=yes
6931 fi
6932 fi
6933 $rm conftest*
6934
6935fi
6936echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6937echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6938
6939if test x"$lt_prog_compiler_pic_works" = xyes; then
6940 case $lt_prog_compiler_pic in
6941 "" | " "*) ;;
6942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6943 esac
6944else
6945 lt_prog_compiler_pic=
6946 lt_prog_compiler_can_build_shared=no
6947fi
6948
6949fi
6950case $host_os in
6951 # For platforms which do not support PIC, -DPIC is meaningless:
6952 *djgpp*)
6953 lt_prog_compiler_pic=
6954 ;;
6955 *)
6956 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6957 ;;
6958esac
6959
6960#
6961# Check to make sure the static flag actually works.
6962#
6963wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6964echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6965echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6966if test "${lt_prog_compiler_static_works+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 lt_prog_compiler_static_works=no
6970 save_LDFLAGS="$LDFLAGS"
6971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6972 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6974 # The linker can only warn and ignore the option if not recognized
6975 # So say no if there are warnings
6976 if test -s conftest.err; then
6977 # Append any errors to the config.log.
6978 cat conftest.err 1>&5
6979 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6981 if diff conftest.exp conftest.er2 >/dev/null; then
6982 lt_prog_compiler_static_works=yes
6983 fi
6984 else
6985 lt_prog_compiler_static_works=yes
6986 fi
6987 fi
6988 $rm conftest*
6989 LDFLAGS="$save_LDFLAGS"
6990
6991fi
6992echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6993echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6994
6995if test x"$lt_prog_compiler_static_works" = xyes; then
6996 :
6997else
6998 lt_prog_compiler_static=
6999fi
7000
7001
7002echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7003echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7004if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006else
7007 lt_cv_prog_compiler_c_o=no
7008 $rm -r conftest 2>/dev/null
7009 mkdir conftest
7010 cd conftest
7011 mkdir out
7012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7013
7014 lt_compiler_flag="-o out/conftest2.$ac_objext"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 lt_compile=`echo "$ac_compile" | $SED \
7020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7022 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 7023 (eval echo "\"\$as_me:7023: $lt_compile\"" >&5)
bf9f3bac 7024 (eval "$lt_compile" 2>out/conftest.err)
7025 ac_status=$?
7026 cat out/conftest.err >&5
0cbaeb11 7027 echo "$as_me:7027: \$? = $ac_status" >&5
bf9f3bac 7028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7029 then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings
7032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_c_o=yes
7036 fi
7037 fi
7038 chmod u+w . 2>&5
7039 $rm conftest*
7040 # SGI C++ compiler will create directory out/ii_files/ for
7041 # template instantiation
7042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7043 $rm out/* && rmdir out
7044 cd ..
7045 rmdir conftest
7046 $rm conftest*
7047
7048fi
7049echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7050echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7051
7052
7053hard_links="nottested"
7054if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7055 # do not overwrite the value of need_locks provided by the user
7056 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7057echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7058 hard_links=yes
7059 $rm conftest*
7060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7061 touch conftest.a
7062 ln conftest.a conftest.b 2>&5 || hard_links=no
7063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7064 echo "$as_me:$LINENO: result: $hard_links" >&5
7065echo "${ECHO_T}$hard_links" >&6
7066 if test "$hard_links" = no; then
7067 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7068echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7069 need_locks=warn
7070 fi
7071else
7072 need_locks=no
7073fi
7074
7075echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7076echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7077
7078 runpath_var=
7079 allow_undefined_flag=
7080 enable_shared_with_static_runtimes=no
7081 archive_cmds=
7082 archive_expsym_cmds=
7083 old_archive_From_new_cmds=
7084 old_archive_from_expsyms_cmds=
7085 export_dynamic_flag_spec=
7086 whole_archive_flag_spec=
7087 thread_safe_flag_spec=
7088 hardcode_libdir_flag_spec=
7089 hardcode_libdir_flag_spec_ld=
7090 hardcode_libdir_separator=
7091 hardcode_direct=no
7092 hardcode_minus_L=no
7093 hardcode_shlibpath_var=unsupported
7094 link_all_deplibs=unknown
7095 hardcode_automatic=no
7096 module_cmds=
7097 module_expsym_cmds=
7098 always_export_symbols=no
7099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7100 # include_expsyms should be a list of space-separated symbols to be *always*
7101 # included in the symbol list
7102 include_expsyms=
7103 # exclude_expsyms can be an extended regexp of symbols to exclude
7104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7106 # as well as any symbol that contains `d'.
7107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7109 # platforms (ab)use it in PIC code, but their linkers get confused if
7110 # the symbol is explicitly referenced. Since portable code cannot
7111 # rely on this symbol name, it's probably fine to never include it in
7112 # preloaded symbol tables.
7113 extract_expsyms_cmds=
7114 # Just being paranoid about ensuring that cc_basename is set.
7115 for cc_temp in $compiler""; do
7116 case $cc_temp in
7117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7119 \-*) ;;
7120 *) break;;
7121 esac
7122done
7123cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7124
7125 case $host_os in
7126 cygwin* | mingw* | pw32*)
7127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7128 # When not using gcc, we currently assume that we are using
7129 # Microsoft Visual C++.
7130 if test "$GCC" != yes; then
7131 with_gnu_ld=no
7132 fi
7133 ;;
7134 interix*)
7135 # we just hope/assume this is gcc and not c89 (= MSVC++)
7136 with_gnu_ld=yes
7137 ;;
7138 openbsd*)
7139 with_gnu_ld=no
7140 ;;
7141 esac
7142
7143 ld_shlibs=yes
7144 if test "$with_gnu_ld" = yes; then
7145 # If archive_cmds runs LD, not CC, wlarc should be empty
7146 wlarc='${wl}'
7147
7148 # Set some defaults for GNU ld with shared library support. These
7149 # are reset later if shared libraries are not supported. Putting them
7150 # here allows them to be overridden if necessary.
7151 runpath_var=LD_RUN_PATH
7152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7153 export_dynamic_flag_spec='${wl}--export-dynamic'
7154 # ancient GNU ld didn't support --whole-archive et. al.
7155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7157 else
7158 whole_archive_flag_spec=
7159 fi
7160 supports_anon_versioning=no
7161 case `$LD -v 2>/dev/null` in
7162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7165 *\ 2.11.*) ;; # other 2.11 versions
7166 *) supports_anon_versioning=yes ;;
7167 esac
7168
7169 # See if GNU ld supports shared libraries.
7170 case $host_os in
7171 aix3* | aix4* | aix5*)
7172 # On AIX/PPC, the GNU linker is very broken
7173 if test "$host_cpu" != ia64; then
7174 ld_shlibs=no
7175 cat <<EOF 1>&2
7176
7177*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7178*** to be unable to reliably create shared libraries on AIX.
7179*** Therefore, libtool is disabling shared libraries support. If you
7180*** really care for shared libraries, you may want to modify your PATH
7181*** so that a non-GNU linker is found, and then restart.
7182
7183EOF
7184 fi
7185 ;;
7186
7187 amigaos*)
7188 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)'
7189 hardcode_libdir_flag_spec='-L$libdir'
7190 hardcode_minus_L=yes
7191
7192 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7193 # that the semantics of dynamic libraries on AmigaOS, at least up
7194 # to version 4, is to share data among multiple programs linked
7195 # with the same dynamic library. Since this doesn't match the
7196 # behavior of shared libraries on other platforms, we can't use
7197 # them.
7198 ld_shlibs=no
7199 ;;
7200
7201 beos*)
7202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7203 allow_undefined_flag=unsupported
7204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7205 # support --undefined. This deserves some investigation. FIXME
7206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7207 else
7208 ld_shlibs=no
7209 fi
7210 ;;
7211
7212 cygwin* | mingw* | pw32*)
7213 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7214 # as there is no search path for DLLs.
7215 hardcode_libdir_flag_spec='-L$libdir'
7216 allow_undefined_flag=unsupported
7217 always_export_symbols=no
7218 enable_shared_with_static_runtimes=yes
7219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7220
7221 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7223 # If the export-symbols file already is a .def file (1st line
7224 # is EXPORTS), use it as is; otherwise, prepend...
7225 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7226 cp $export_symbols $output_objdir/$soname.def;
7227 else
7228 echo EXPORTS > $output_objdir/$soname.def;
7229 cat $export_symbols >> $output_objdir/$soname.def;
7230 fi~
7231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7232 else
7233 ld_shlibs=no
7234 fi
7235 ;;
7236
7237 interix3*)
7238 hardcode_direct=no
7239 hardcode_shlibpath_var=no
7240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7241 export_dynamic_flag_spec='${wl}-E'
7242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7243 # Instead, shared libraries are loaded at an image base (0x10000000 by
7244 # default) and relocated if they conflict, which is a slow very memory
7245 # consuming and fragmenting process. To avoid this, we pick a random,
7246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7249 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7250 ;;
7251
7252 linux*)
7253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254 tmp_addflag=
7255 case $cc_basename,$host_cpu in
7256 pgcc*) # Portland Group C compiler
7257 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7258 tmp_addflag=' $pic_flag'
7259 ;;
7260 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7261 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7262 tmp_addflag=' $pic_flag -Mnomain' ;;
7263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7264 tmp_addflag=' -i_dynamic' ;;
7265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7266 tmp_addflag=' -i_dynamic -nofor_main' ;;
7267 ifc* | ifort*) # Intel Fortran compiler
7268 tmp_addflag=' -nofor_main' ;;
7269 esac
7270 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7271
7272 if test $supports_anon_versioning = yes; then
7273 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7275 $echo "local: *; };" >> $output_objdir/$libname.ver~
7276 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7277 fi
7278 else
7279 ld_shlibs=no
7280 fi
7281 ;;
7282
7283 netbsd*)
7284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7286 wlarc=
7287 else
7288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7290 fi
7291 ;;
7292
7293 solaris*)
7294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7295 ld_shlibs=no
7296 cat <<EOF 1>&2
7297
7298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7299*** create shared libraries on Solaris systems. Therefore, libtool
7300*** is disabling shared libraries support. We urge you to upgrade GNU
7301*** binutils to release 2.9.1 or newer. Another option is to modify
7302*** your PATH or compiler configuration so that the native linker is
7303*** used, and then restart.
7304
7305EOF
7306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7309 else
7310 ld_shlibs=no
7311 fi
7312 ;;
7313
7314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7315 case `$LD -v 2>&1` in
7316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7317 ld_shlibs=no
7318 cat <<_LT_EOF 1>&2
7319
7320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7321*** reliably create shared libraries on SCO systems. Therefore, libtool
7322*** is disabling shared libraries support. We urge you to upgrade GNU
7323*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7324*** your PATH or compiler configuration so that the native linker is
7325*** used, and then restart.
7326
7327_LT_EOF
7328 ;;
7329 *)
7330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7334 else
7335 ld_shlibs=no
7336 fi
7337 ;;
7338 esac
7339 ;;
7340
7341 sunos4*)
7342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7343 wlarc=
7344 hardcode_direct=yes
7345 hardcode_shlibpath_var=no
7346 ;;
7347
7348 *)
7349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7352 else
7353 ld_shlibs=no
7354 fi
7355 ;;
7356 esac
7357
7358 if test "$ld_shlibs" = no; then
7359 runpath_var=
7360 hardcode_libdir_flag_spec=
7361 export_dynamic_flag_spec=
7362 whole_archive_flag_spec=
7363 fi
7364 else
7365 # PORTME fill in a description of your system's linker (not GNU ld)
7366 case $host_os in
7367 aix3*)
7368 allow_undefined_flag=unsupported
7369 always_export_symbols=yes
7370 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'
7371 # Note: this linker hardcodes the directories in LIBPATH if there
7372 # are no directories specified by -L.
7373 hardcode_minus_L=yes
7374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7375 # Neither direct hardcoding nor static linking is supported with a
7376 # broken collect2.
7377 hardcode_direct=unsupported
7378 fi
7379 ;;
7380
7381 aix4* | aix5*)
7382 if test "$host_cpu" = ia64; then
7383 # On IA64, the linker does run time linking by default, so we don't
7384 # have to do anything special.
7385 aix_use_runtimelinking=no
7386 exp_sym_flag='-Bexport'
7387 no_entry_flag=""
7388 else
7389 # If we're using GNU nm, then we don't want the "-C" option.
7390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7391 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7392 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'
7393 else
7394 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'
7395 fi
7396 aix_use_runtimelinking=no
7397
7398 # Test if we are trying to use run time linking or normal
7399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7400 # need to do runtime linking.
7401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7402 for ld_flag in $LDFLAGS; do
7403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7404 aix_use_runtimelinking=yes
7405 break
7406 fi
7407 done
7408 ;;
7409 esac
7410
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7413 fi
7414
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7420
7421 archive_cmds=''
7422 hardcode_direct=yes
7423 hardcode_libdir_separator=':'
7424 link_all_deplibs=yes
7425
7426 if test "$GCC" = yes; then
7427 case $host_os in aix4.[012]|aix4.[012].*)
7428 # We only want to do this on AIX 4.2 and lower, the check
7429 # below for broken collect2 doesn't work under 4.3+
7430 collect2name=`${CC} -print-prog-name=collect2`
7431 if test -f "$collect2name" && \
7432 strings "$collect2name" | grep resolve_lib_name >/dev/null
7433 then
7434 # We have reworked collect2
7435 hardcode_direct=yes
7436 else
7437 # We have old collect2
7438 hardcode_direct=unsupported
7439 # It fails to find uninstalled libraries when the uninstalled
7440 # path is not listed in the libpath. Setting hardcode_minus_L
7441 # to unsupported forces relinking
7442 hardcode_minus_L=yes
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_libdir_separator=
7445 fi
7446 ;;
7447 esac
7448 shared_flag='-shared'
7449 if test "$aix_use_runtimelinking" = yes; then
7450 shared_flag="$shared_flag "'${wl}-G'
7451 fi
7452 else
7453 # not using gcc
7454 if test "$host_cpu" = ia64; then
7455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7456 # chokes on -Wl,-G. The following line is correct:
7457 shared_flag='-G'
7458 else
7459 if test "$aix_use_runtimelinking" = yes; then
7460 shared_flag='${wl}-G'
7461 else
7462 shared_flag='${wl}-bM:SRE'
7463 fi
7464 fi
7465 fi
7466
7467 # It seems that -bexpall does not export symbols beginning with
7468 # underscore (_), so it is better to generate a list of symbols to export.
7469 always_export_symbols=yes
7470 if test "$aix_use_runtimelinking" = yes; then
7471 # Warning - without using the other runtime loading flags (-brtl),
7472 # -berok will link without error, but may produce a broken library.
7473 allow_undefined_flag='-berok'
7474 # Determine the default libpath from the value encoded in an empty executable.
7475 cat >conftest.$ac_ext <<_ACEOF
7476/* confdefs.h. */
7477_ACEOF
7478cat confdefs.h >>conftest.$ac_ext
7479cat >>conftest.$ac_ext <<_ACEOF
7480/* end confdefs.h. */
7481
7482int
7483main ()
7484{
7485
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490rm -f conftest.$ac_objext conftest$ac_exeext
7491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492 (eval $ac_link) 2>conftest.er1
7493 ac_status=$?
7494 grep -v '^ *+' conftest.er1 >conftest.err
7495 rm -f conftest.er1
7496 cat conftest.err >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -z "$ac_c_werror_flag"
7500 || test ! -s conftest.err'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512
7513aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7514}'`
7515# Check for a 64-bit object if we didn't find anything.
7516if 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; }
7517}'`; fi
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522fi
7523rm -f conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7526
7527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7528 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7529 else
7530 if test "$host_cpu" = ia64; then
7531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7532 allow_undefined_flag="-z nodefs"
7533 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7534 else
7535 # Determine the default libpath from the value encoded in an empty executable.
7536 cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
7542
7543int
7544main ()
7545{
7546
7547 ;
7548 return 0;
7549}
7550_ACEOF
7551rm -f conftest.$ac_objext conftest$ac_exeext
7552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>conftest.er1
7554 ac_status=$?
7555 grep -v '^ *+' conftest.er1 >conftest.err
7556 rm -f conftest.er1
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -z "$ac_c_werror_flag"
7561 || test ! -s conftest.err'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 (eval $ac_try) 2>&5
7564 ac_status=$?
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; } &&
7567 { ac_try='test -s conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573
7574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7575}'`
7576# Check for a 64-bit object if we didn't find anything.
7577if 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; }
7578}'`; fi
7579else
7580 echo "$as_me: failed program was:" >&5
7581sed 's/^/| /' conftest.$ac_ext >&5
7582
7583fi
7584rm -f conftest.err conftest.$ac_objext \
7585 conftest$ac_exeext conftest.$ac_ext
7586if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7587
7588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7589 # Warning - without using the other run time loading flags,
7590 # -berok will link without error, but may produce a broken library.
7591 no_undefined_flag=' ${wl}-bernotok'
7592 allow_undefined_flag=' ${wl}-berok'
7593 # Exported symbols can be pulled into shared objects from archives
7594 whole_archive_flag_spec='$convenience'
7595 archive_cmds_need_lc=yes
7596 # This is similar to how AIX traditionally builds its shared libraries.
7597 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7598 fi
7599 fi
7600 ;;
7601
7602 amigaos*)
7603 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)'
7604 hardcode_libdir_flag_spec='-L$libdir'
7605 hardcode_minus_L=yes
7606 # see comment about different semantics on the GNU ld section
7607 ld_shlibs=no
7608 ;;
7609
7610 bsdi[45]*)
7611 export_dynamic_flag_spec=-rdynamic
7612 ;;
7613
7614 cygwin* | mingw* | pw32*)
7615 # When not using gcc, we currently assume that we are using
7616 # Microsoft Visual C++.
7617 # hardcode_libdir_flag_spec is actually meaningless, as there is
7618 # no search path for DLLs.
7619 hardcode_libdir_flag_spec=' '
7620 allow_undefined_flag=unsupported
7621 # Tell ltmain to make .lib files, not .a files.
7622 libext=lib
7623 # Tell ltmain to make .dll files, not .so files.
7624 shrext_cmds=".dll"
7625 # FIXME: Setting linknames here is a bad hack.
7626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7627 # The linker will automatically build a .lib file if we build a DLL.
7628 old_archive_From_new_cmds='true'
7629 # FIXME: Should let the user specify the lib program.
7630 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7631 fix_srcfile_path='`cygpath -w "$srcfile"`'
7632 enable_shared_with_static_runtimes=yes
7633 ;;
7634
7635 darwin* | rhapsody*)
7636 case $host_os in
7637 rhapsody* | darwin1.[012])
7638 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7639 ;;
7640 *) # Darwin 1.3 on
7641 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7642 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7643 else
7644 case ${MACOSX_DEPLOYMENT_TARGET} in
7645 10.[012])
7646 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7647 ;;
7648 10.*)
7649 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7650 ;;
7651 esac
7652 fi
7653 ;;
7654 esac
7655 archive_cmds_need_lc=no
7656 hardcode_direct=no
7657 hardcode_automatic=yes
7658 hardcode_shlibpath_var=unsupported
7659 whole_archive_flag_spec=''
7660 link_all_deplibs=yes
7661 if test "$GCC" = yes ; then
7662 output_verbose_link_cmd='echo'
7663 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7664 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7665 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7666 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}'
7667 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7668 else
7669 case $cc_basename in
7670 xlc*)
7671 output_verbose_link_cmd='echo'
7672 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7673 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7674 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7675 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7676 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7677 ;;
7678 *)
7679 ld_shlibs=no
7680 ;;
7681 esac
7682 fi
7683 ;;
7684
7685 dgux*)
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 hardcode_shlibpath_var=no
7689 ;;
7690
7691 freebsd1*)
7692 ld_shlibs=no
7693 ;;
7694
7695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7696 # support. Future versions do this automatically, but an explicit c++rt0.o
7697 # does not break anything, and helps significantly (at the cost of a little
7698 # extra space).
7699 freebsd2.2*)
7700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7701 hardcode_libdir_flag_spec='-R$libdir'
7702 hardcode_direct=yes
7703 hardcode_shlibpath_var=no
7704 ;;
7705
7706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7707 freebsd2*)
7708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7709 hardcode_direct=yes
7710 hardcode_minus_L=yes
7711 hardcode_shlibpath_var=no
7712 ;;
7713
7714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7715 freebsd* | kfreebsd*-gnu | dragonfly*)
7716 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7717 hardcode_libdir_flag_spec='-R$libdir'
7718 hardcode_direct=yes
7719 hardcode_shlibpath_var=no
7720 ;;
7721
7722 hpux9*)
7723 if test "$GCC" = yes; then
7724 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'
7725 else
7726 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'
7727 fi
7728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7729 hardcode_libdir_separator=:
7730 hardcode_direct=yes
7731
7732 # hardcode_minus_L: Not really in the search PATH,
7733 # but as the default location of the library.
7734 hardcode_minus_L=yes
7735 export_dynamic_flag_spec='${wl}-E'
7736 ;;
7737
7738 hpux10*)
7739 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7741 else
7742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7743 fi
7744 if test "$with_gnu_ld" = no; then
7745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7746 hardcode_libdir_separator=:
7747
7748 hardcode_direct=yes
7749 export_dynamic_flag_spec='${wl}-E'
7750
7751 # hardcode_minus_L: Not really in the search PATH,
7752 # but as the default location of the library.
7753 hardcode_minus_L=yes
7754 fi
7755 ;;
7756
7757 hpux11*)
7758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7759 case $host_cpu in
7760 hppa*64*)
7761 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762 ;;
7763 ia64*)
7764 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7765 ;;
7766 *)
7767 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7768 ;;
7769 esac
7770 else
7771 case $host_cpu in
7772 hppa*64*)
7773 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7774 ;;
7775 ia64*)
7776 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7777 ;;
7778 *)
7779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7780 ;;
7781 esac
7782 fi
7783 if test "$with_gnu_ld" = no; then
7784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7785 hardcode_libdir_separator=:
7786
7787 case $host_cpu in
7788 hppa*64*|ia64*)
7789 hardcode_libdir_flag_spec_ld='+b $libdir'
7790 hardcode_direct=no
7791 hardcode_shlibpath_var=no
7792 ;;
7793 *)
7794 hardcode_direct=yes
7795 export_dynamic_flag_spec='${wl}-E'
7796
7797 # hardcode_minus_L: Not really in the search PATH,
7798 # but as the default location of the library.
7799 hardcode_minus_L=yes
7800 ;;
7801 esac
7802 fi
7803 ;;
7804
7805 irix5* | irix6* | nonstopux*)
7806 if test "$GCC" = yes; then
7807 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'
7808 else
7809 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'
7810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7811 fi
7812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7813 hardcode_libdir_separator=:
7814 link_all_deplibs=yes
7815 ;;
7816
7817 netbsd*)
7818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7820 else
7821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7822 fi
7823 hardcode_libdir_flag_spec='-R$libdir'
7824 hardcode_direct=yes
7825 hardcode_shlibpath_var=no
7826 ;;
7827
7828 newsos6)
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_direct=yes
7831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7832 hardcode_libdir_separator=:
7833 hardcode_shlibpath_var=no
7834 ;;
7835
7836 openbsd*)
7837 hardcode_direct=yes
7838 hardcode_shlibpath_var=no
7839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7841 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7843 export_dynamic_flag_spec='${wl}-E'
7844 else
7845 case $host_os in
7846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7848 hardcode_libdir_flag_spec='-R$libdir'
7849 ;;
7850 *)
7851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7853 ;;
7854 esac
7855 fi
7856 ;;
7857
7858 os2*)
7859 hardcode_libdir_flag_spec='-L$libdir'
7860 hardcode_minus_L=yes
7861 allow_undefined_flag=unsupported
7862 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'
7863 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7864 ;;
7865
7866 osf3*)
7867 if test "$GCC" = yes; then
7868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7869 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'
7870 else
7871 allow_undefined_flag=' -expect_unresolved \*'
7872 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'
7873 fi
7874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7875 hardcode_libdir_separator=:
7876 ;;
7877
7878 osf4* | osf5*) # as osf3* with the addition of -msym flag
7879 if test "$GCC" = yes; then
7880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7881 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'
7882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7883 else
7884 allow_undefined_flag=' -expect_unresolved \*'
7885 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'
7886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7887 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7888
7889 # Both c and cxx compiler support -rpath directly
7890 hardcode_libdir_flag_spec='-rpath $libdir'
7891 fi
7892 hardcode_libdir_separator=:
7893 ;;
7894
7895 solaris*)
7896 no_undefined_flag=' -z text'
7897 if test "$GCC" = yes; then
7898 wlarc='${wl}'
7899 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7901 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7902 else
7903 wlarc=''
7904 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7905 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7907 fi
7908 hardcode_libdir_flag_spec='-R$libdir'
7909 hardcode_shlibpath_var=no
7910 case $host_os in
7911 solaris2.[0-5] | solaris2.[0-5].*) ;;
7912 *)
7913 # The compiler driver will combine linker options so we
7914 # cannot just pass the convience library names through
7915 # without $wl, iff we do not link with $LD.
7916 # Luckily, gcc supports the same syntax we need for Sun Studio.
7917 # Supported since Solaris 2.6 (maybe 2.5.1?)
7918 case $wlarc in
7919 '')
7920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7921 *)
7922 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7923 esac ;;
7924 esac
7925 link_all_deplibs=yes
7926 ;;
7927
7928 sunos4*)
7929 if test "x$host_vendor" = xsequent; then
7930 # Use $CC to link under sequent, because it throws in some extra .o
7931 # files that make .init and .fini sections work.
7932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7933 else
7934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7935 fi
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_direct=yes
7938 hardcode_minus_L=yes
7939 hardcode_shlibpath_var=no
7940 ;;
7941
7942 sysv4)
7943 case $host_vendor in
7944 sni)
7945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7946 hardcode_direct=yes # is this really true???
7947 ;;
7948 siemens)
7949 ## LD is ld it makes a PLAMLIB
7950 ## CC just makes a GrossModule.
7951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7952 reload_cmds='$CC -r -o $output$reload_objs'
7953 hardcode_direct=no
7954 ;;
7955 motorola)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7958 ;;
7959 esac
7960 runpath_var='LD_RUN_PATH'
7961 hardcode_shlibpath_var=no
7962 ;;
7963
7964 sysv4.3*)
7965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7966 hardcode_shlibpath_var=no
7967 export_dynamic_flag_spec='-Bexport'
7968 ;;
7969
7970 sysv4*MP*)
7971 if test -d /usr/nec; then
7972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_shlibpath_var=no
7974 runpath_var=LD_RUN_PATH
7975 hardcode_runpath_var=yes
7976 ld_shlibs=yes
7977 fi
7978 ;;
7979
7980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7981 no_undefined_flag='${wl}-z,text'
7982 archive_cmds_need_lc=no
7983 hardcode_shlibpath_var=no
7984 runpath_var='LD_RUN_PATH'
7985
7986 if test "$GCC" = yes; then
7987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7989 else
7990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7992 fi
7993 ;;
7994
7995 sysv5* | sco3.2v5* | sco5v6*)
7996 # Note: We can NOT use -z defs as we might desire, because we do not
7997 # link with -lc, and that would cause any symbols used from libc to
7998 # always be unresolved, which means just about no library would
7999 # ever link correctly. If we're not using GNU ld we use -z text
8000 # though, which does catch some bad symbols but isn't as heavy-handed
8001 # as -z defs.
8002 no_undefined_flag='${wl}-z,text'
8003 allow_undefined_flag='${wl}-z,nodefs'
8004 archive_cmds_need_lc=no
8005 hardcode_shlibpath_var=no
8006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8007 hardcode_libdir_separator=':'
8008 link_all_deplibs=yes
8009 export_dynamic_flag_spec='${wl}-Bexport'
8010 runpath_var='LD_RUN_PATH'
8011
8012 if test "$GCC" = yes; then
8013 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8015 else
8016 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8018 fi
8019 ;;
8020
8021 uts4*)
8022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_shlibpath_var=no
8025 ;;
8026
8027 *)
8028 ld_shlibs=no
8029 ;;
8030 esac
8031 fi
8032
8033echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8034echo "${ECHO_T}$ld_shlibs" >&6
8035test "$ld_shlibs" = no && can_build_shared=no
8036
8037#
8038# Do we need to explicitly link libc?
8039#
8040case "x$archive_cmds_need_lc" in
8041x|xyes)
8042 # Assume -lc should be added
8043 archive_cmds_need_lc=yes
8044
8045 if test "$enable_shared" = yes && test "$GCC" = yes; then
8046 case $archive_cmds in
8047 *'~'*)
8048 # FIXME: we may have to deal with multi-command sequences.
8049 ;;
8050 '$CC '*)
8051 # Test whether the compiler implicitly links with -lc since on some
8052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8053 # to ld, don't add -lc before -lgcc.
8054 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8055echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8056 $rm conftest*
8057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8058
8059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8060 (eval $ac_compile) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } 2>conftest.err; then
8064 soname=conftest
8065 lib=conftest
8066 libobjs=conftest.$ac_objext
8067 deplibs=
8068 wl=$lt_prog_compiler_wl
8069 pic_flag=$lt_prog_compiler_pic
8070 compiler_flags=-v
8071 linker_flags=-v
8072 verstring=
8073 output_objdir=.
8074 libname=conftest
8075 lt_save_allow_undefined_flag=$allow_undefined_flag
8076 allow_undefined_flag=
8077 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8078 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }
8082 then
8083 archive_cmds_need_lc=no
8084 else
8085 archive_cmds_need_lc=yes
8086 fi
8087 allow_undefined_flag=$lt_save_allow_undefined_flag
8088 else
8089 cat conftest.err 1>&5
8090 fi
8091 $rm conftest*
8092 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8093echo "${ECHO_T}$archive_cmds_need_lc" >&6
8094 ;;
8095 esac
8096 fi
8097 ;;
8098esac
8099
8100echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8101echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8102library_names_spec=
8103libname_spec='lib$name'
8104soname_spec=
8105shrext_cmds=".so"
8106postinstall_cmds=
8107postuninstall_cmds=
8108finish_cmds=
8109finish_eval=
8110shlibpath_var=
8111shlibpath_overrides_runpath=unknown
8112version_type=none
8113dynamic_linker="$host_os ld.so"
8114sys_lib_dlsearch_path_spec="/lib /usr/lib"
8115if test "$GCC" = yes; then
8116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8117 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8118 # if the path contains ";" then we assume it to be the separator
8119 # otherwise default to the standard path separator (i.e. ":") - it is
8120 # assumed that no part of a normal pathname contains ";" but that should
8121 # okay in the real world where ";" in dirpaths is itself problematic.
8122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8123 else
8124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8125 fi
8126else
8127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8128fi
8129need_lib_prefix=unknown
8130hardcode_into_libs=no
8131
8132# when you set need_version to no, make sure it does not cause -set_version
8133# flags to be left without arguments
8134need_version=unknown
8135
8136case $host_os in
8137aix3*)
8138 version_type=linux
8139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8140 shlibpath_var=LIBPATH
8141
8142 # AIX 3 has no versioning support, so we append a major version to the name.
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 ;;
8145
8146aix4* | aix5*)
8147 version_type=linux
8148 need_lib_prefix=no
8149 need_version=no
8150 hardcode_into_libs=yes
8151 if test "$host_cpu" = ia64; then
8152 # AIX 5 supports IA64
8153 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8154 shlibpath_var=LD_LIBRARY_PATH
8155 else
8156 # With GCC up to 2.95.x, collect2 would create an import file
8157 # for dependence libraries. The import file would start with
8158 # the line `#! .'. This would cause the generated library to
8159 # depend on `.', always an invalid library. This was fixed in
8160 # development snapshots of GCC prior to 3.0.
8161 case $host_os in
8162 aix4 | aix4.[01] | aix4.[01].*)
8163 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8164 echo ' yes '
8165 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8166 :
8167 else
8168 can_build_shared=no
8169 fi
8170 ;;
8171 esac
8172 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8173 # soname into executable. Probably we can add versioning support to
8174 # collect2, so additional links can be useful in future.
8175 if test "$aix_use_runtimelinking" = yes; then
8176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8177 # instead of lib<name>.a to let people know that these are not
8178 # typical AIX shared libraries.
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180 else
8181 # We preserve .a as extension for shared libraries through AIX4.2
8182 # and later when we are not doing run time linking.
8183 library_names_spec='${libname}${release}.a $libname.a'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 fi
8186 shlibpath_var=LIBPATH
8187 fi
8188 ;;
8189
8190amigaos*)
8191 library_names_spec='$libname.ixlibrary $libname.a'
8192 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8193 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'
8194 ;;
8195
8196beos*)
8197 library_names_spec='${libname}${shared_ext}'
8198 dynamic_linker="$host_os ld.so"
8199 shlibpath_var=LIBRARY_PATH
8200 ;;
8201
8202bsdi[45]*)
8203 version_type=linux
8204 need_version=no
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8206 soname_spec='${libname}${release}${shared_ext}$major'
8207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8211 # the default ld.so.conf also contains /usr/contrib/lib and
8212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8213 # libtool to hard-code these into programs
8214 ;;
8215
8216cygwin* | mingw* | pw32*)
8217 version_type=windows
8218 shrext_cmds=".dll"
8219 need_version=no
8220 need_lib_prefix=no
8221
8222 case $GCC,$host_os in
8223 yes,cygwin* | yes,mingw* | yes,pw32*)
8224 library_names_spec='$libname.dll.a'
8225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8226 postinstall_cmds='base_file=`basename \${file}`~
8227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8228 dldir=$destdir/`dirname \$dlpath`~
8229 test -d \$dldir || mkdir -p \$dldir~
8230 $install_prog $dir/$dlname \$dldir/$dlname~
8231 chmod a+x \$dldir/$dlname'
8232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8233 dlpath=$dir/\$dldll~
8234 $rm \$dlpath'
8235 shlibpath_overrides_runpath=yes
8236
8237 case $host_os in
8238 cygwin*)
8239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8242 ;;
8243 mingw*)
8244 # MinGW DLLs use traditional 'lib' prefix
8245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8246 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8247 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8248 # It is most probably a Windows format PATH printed by
8249 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8250 # path with ; separators, and with drive letters. We can handle the
8251 # drive letters (cygwin fileutils understands them), so leave them,
8252 # especially as we might pass files found there to a mingw objdump,
8253 # which wouldn't understand a cygwinified path. Ahh.
8254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8255 else
8256 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8257 fi
8258 ;;
8259 pw32*)
8260 # pw32 DLLs use 'pw' prefix rather than 'lib'
8261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8262 ;;
8263 esac
8264 ;;
8265
8266 *)
8267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8268 ;;
8269 esac
8270 dynamic_linker='Win32 ld.exe'
8271 # FIXME: first we should search . and the directory the executable is in
8272 shlibpath_var=PATH
8273 ;;
8274
8275darwin* | rhapsody*)
8276 dynamic_linker="$host_os dyld"
8277 version_type=darwin
8278 need_lib_prefix=no
8279 need_version=no
8280 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8281 soname_spec='${libname}${release}${major}$shared_ext'
8282 shlibpath_overrides_runpath=yes
8283 shlibpath_var=DYLD_LIBRARY_PATH
8284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8285 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8286 if test "$GCC" = yes; then
8287 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"`
8288 else
8289 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8290 fi
8291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8292 ;;
8293
8294dgux*)
8295 version_type=linux
8296 need_lib_prefix=no
8297 need_version=no
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 ;;
8302
8303freebsd1*)
8304 dynamic_linker=no
8305 ;;
8306
8307kfreebsd*-gnu)
8308 version_type=linux
8309 need_lib_prefix=no
8310 need_version=no
8311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8312 soname_spec='${libname}${release}${shared_ext}$major'
8313 shlibpath_var=LD_LIBRARY_PATH
8314 shlibpath_overrides_runpath=no
8315 hardcode_into_libs=yes
8316 dynamic_linker='GNU ld.so'
8317 ;;
8318
8319freebsd* | dragonfly*)
8320 # DragonFly does not have aout. When/if they implement a new
8321 # versioning mechanism, adjust this.
8322 if test -x /usr/bin/objformat; then
8323 objformat=`/usr/bin/objformat`
8324 else
8325 case $host_os in
8326 freebsd[123]*) objformat=aout ;;
8327 *) objformat=elf ;;
8328 esac
8329 fi
8330 version_type=freebsd-$objformat
8331 case $version_type in
8332 freebsd-elf*)
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8334 need_version=no
8335 need_lib_prefix=no
8336 ;;
8337 freebsd-*)
8338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8339 need_version=yes
8340 ;;
8341 esac
8342 shlibpath_var=LD_LIBRARY_PATH
8343 case $host_os in
8344 freebsd2*)
8345 shlibpath_overrides_runpath=yes
8346 ;;
8347 freebsd3.[01]* | freebsdelf3.[01]*)
8348 shlibpath_overrides_runpath=yes
8349 hardcode_into_libs=yes
8350 ;;
8351 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8352 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8353 shlibpath_overrides_runpath=no
8354 hardcode_into_libs=yes
8355 ;;
8356 freebsd*) # from 4.6 on
8357 shlibpath_overrides_runpath=yes
8358 hardcode_into_libs=yes
8359 ;;
8360 esac
8361 ;;
8362
8363gnu*)
8364 version_type=linux
8365 need_lib_prefix=no
8366 need_version=no
8367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8368 soname_spec='${libname}${release}${shared_ext}$major'
8369 shlibpath_var=LD_LIBRARY_PATH
8370 hardcode_into_libs=yes
8371 ;;
8372
8373hpux9* | hpux10* | hpux11*)
8374 # Give a soname corresponding to the major version so that dld.sl refuses to
8375 # link against other versions.
8376 version_type=sunos
8377 need_lib_prefix=no
8378 need_version=no
8379 case $host_cpu in
8380 ia64*)
8381 shrext_cmds='.so'
8382 hardcode_into_libs=yes
8383 dynamic_linker="$host_os dld.so"
8384 shlibpath_var=LD_LIBRARY_PATH
8385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387 soname_spec='${libname}${release}${shared_ext}$major'
8388 if test "X$HPUX_IA64_MODE" = X32; then
8389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8390 else
8391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8392 fi
8393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8394 ;;
8395 hppa*64*)
8396 shrext_cmds='.sl'
8397 hardcode_into_libs=yes
8398 dynamic_linker="$host_os dld.sl"
8399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8402 soname_spec='${libname}${release}${shared_ext}$major'
8403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8405 ;;
8406 *)
8407 shrext_cmds='.sl'
8408 dynamic_linker="$host_os dld.sl"
8409 shlibpath_var=SHLIB_PATH
8410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 ;;
8414 esac
8415 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8416 postinstall_cmds='chmod 555 $lib'
8417 ;;
8418
8419interix3*)
8420 version_type=linux
8421 need_lib_prefix=no
8422 need_version=no
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8426 shlibpath_var=LD_LIBRARY_PATH
8427 shlibpath_overrides_runpath=no
8428 hardcode_into_libs=yes
8429 ;;
8430
8431irix5* | irix6* | nonstopux*)
8432 case $host_os in
8433 nonstopux*) version_type=nonstopux ;;
8434 *)
8435 if test "$lt_cv_prog_gnu_ld" = yes; then
8436 version_type=linux
8437 else
8438 version_type=irix
8439 fi ;;
8440 esac
8441 need_lib_prefix=no
8442 need_version=no
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8445 case $host_os in
8446 irix5* | nonstopux*)
8447 libsuff= shlibsuff=
8448 ;;
8449 *)
8450 case $LD in # libtool.m4 will add one of these switches to LD
8451 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8452 libsuff= shlibsuff= libmagic=32-bit;;
8453 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8454 libsuff=32 shlibsuff=N32 libmagic=N32;;
8455 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8456 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8457 *) libsuff= shlibsuff= libmagic=never-match;;
8458 esac
8459 ;;
8460 esac
8461 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8462 shlibpath_overrides_runpath=no
8463 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8464 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8465 hardcode_into_libs=yes
8466 ;;
8467
8468# No shared lib support for Linux oldld, aout, or coff.
8469linux*oldld* | linux*aout* | linux*coff*)
8470 dynamic_linker=no
8471 ;;
8472
8473# This must be Linux ELF.
8474linux*)
8475 version_type=linux
8476 need_lib_prefix=no
8477 need_version=no
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8479 soname_spec='${libname}${release}${shared_ext}$major'
8480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 shlibpath_overrides_runpath=no
8483 # This implies no fast_install, which is unacceptable.
8484 # Some rework will be needed to allow for fast_install
8485 # before this can be enabled.
8486 hardcode_into_libs=yes
8487
8488 # find out which ABI we are using
8489 libsuff=
8490 case "$host_cpu" in
8491 x86_64*|s390x*|powerpc64*)
0cbaeb11 8492 echo '#line 8492 "configure"' > conftest.$ac_ext
bf9f3bac 8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; then
8498 case `/usr/bin/file conftest.$ac_objext` in
8499 *64-bit*)
8500 libsuff=64
8501 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8502 ;;
8503 esac
8504 fi
8505 rm -rf conftest*
8506 ;;
8507 esac
8508
8509 # Append ld.so.conf contents to the search path
8510 if test -f /etc/ld.so.conf; then
8511 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8512 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8513 fi
8514
8515 # We used to test for /lib/ld.so.1 and disable shared libraries on
8516 # powerpc, because MkLinux only supported shared libraries with the
8517 # GNU dynamic linker. Since this was broken with cross compilers,
8518 # most powerpc-linux boxes support dynamic linking these days and
8519 # people can always --disable-shared, the test was removed, and we
8520 # assume the GNU/Linux dynamic linker is in use.
8521 dynamic_linker='GNU/Linux ld.so'
8522 ;;
8523
8524knetbsd*-gnu)
8525 version_type=linux
8526 need_lib_prefix=no
8527 need_version=no
8528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 shlibpath_var=LD_LIBRARY_PATH
8531 shlibpath_overrides_runpath=no
8532 hardcode_into_libs=yes
8533 dynamic_linker='GNU ld.so'
8534 ;;
8535
8536netbsd*)
8537 version_type=sunos
8538 need_lib_prefix=no
8539 need_version=no
8540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8543 dynamic_linker='NetBSD (a.out) ld.so'
8544 else
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 dynamic_linker='NetBSD ld.elf_so'
8548 fi
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8552 ;;
8553
8554newsos6)
8555 version_type=linux
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 shlibpath_overrides_runpath=yes
8559 ;;
8560
8561nto-qnx*)
8562 version_type=linux
8563 need_lib_prefix=no
8564 need_version=no
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8566 soname_spec='${libname}${release}${shared_ext}$major'
8567 shlibpath_var=LD_LIBRARY_PATH
8568 shlibpath_overrides_runpath=yes
8569 ;;
8570
8571openbsd*)
8572 version_type=sunos
8573 sys_lib_dlsearch_path_spec="/usr/lib"
8574 need_lib_prefix=no
8575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8576 case $host_os in
8577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8578 *) need_version=no ;;
8579 esac
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8582 shlibpath_var=LD_LIBRARY_PATH
8583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8584 case $host_os in
8585 openbsd2.[89] | openbsd2.[89].*)
8586 shlibpath_overrides_runpath=no
8587 ;;
8588 *)
8589 shlibpath_overrides_runpath=yes
8590 ;;
8591 esac
8592 else
8593 shlibpath_overrides_runpath=yes
8594 fi
8595 ;;
8596
8597os2*)
8598 libname_spec='$name'
8599 shrext_cmds=".dll"
8600 need_lib_prefix=no
8601 library_names_spec='$libname${shared_ext} $libname.a'
8602 dynamic_linker='OS/2 ld.exe'
8603 shlibpath_var=LIBPATH
8604 ;;
8605
8606osf3* | osf4* | osf5*)
8607 version_type=osf
8608 need_lib_prefix=no
8609 need_version=no
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8615 ;;
8616
8617solaris*)
8618 version_type=linux
8619 need_lib_prefix=no
8620 need_version=no
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622 soname_spec='${libname}${release}${shared_ext}$major'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 shlibpath_overrides_runpath=yes
8625 hardcode_into_libs=yes
8626 # ldd complains unless libraries are executable
8627 postinstall_cmds='chmod +x $lib'
8628 ;;
8629
8630sunos4*)
8631 version_type=sunos
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8633 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=yes
8636 if test "$with_gnu_ld" = yes; then
8637 need_lib_prefix=no
8638 fi
8639 need_version=yes
8640 ;;
8641
8642sysv4 | sysv4.3*)
8643 version_type=linux
8644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645 soname_spec='${libname}${release}${shared_ext}$major'
8646 shlibpath_var=LD_LIBRARY_PATH
8647 case $host_vendor in
8648 sni)
8649 shlibpath_overrides_runpath=no
8650 need_lib_prefix=no
8651 export_dynamic_flag_spec='${wl}-Blargedynsym'
8652 runpath_var=LD_RUN_PATH
8653 ;;
8654 siemens)
8655 need_lib_prefix=no
8656 ;;
8657 motorola)
8658 need_lib_prefix=no
8659 need_version=no
8660 shlibpath_overrides_runpath=no
8661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8662 ;;
8663 esac
8664 ;;
8665
8666sysv4*MP*)
8667 if test -d /usr/nec ;then
8668 version_type=linux
8669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8670 soname_spec='$libname${shared_ext}.$major'
8671 shlibpath_var=LD_LIBRARY_PATH
8672 fi
8673 ;;
8674
8675sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8676 version_type=freebsd-elf
8677 need_lib_prefix=no
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 hardcode_into_libs=yes
8683 if test "$with_gnu_ld" = yes; then
8684 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8685 shlibpath_overrides_runpath=no
8686 else
8687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8688 shlibpath_overrides_runpath=yes
8689 case $host_os in
8690 sco3.2v5*)
8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8692 ;;
8693 esac
8694 fi
8695 sys_lib_dlsearch_path_spec='/usr/lib'
8696 ;;
8697
8698uts4*)
8699 version_type=linux
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 shlibpath_var=LD_LIBRARY_PATH
8703 ;;
8704
8705*)
8706 dynamic_linker=no
8707 ;;
8708esac
8709echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8710echo "${ECHO_T}$dynamic_linker" >&6
8711test "$dynamic_linker" = no && can_build_shared=no
8712
8713variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8714if test "$GCC" = yes; then
8715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8716fi
8717
8718echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8719echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8720hardcode_action=
8721if test -n "$hardcode_libdir_flag_spec" || \
8722 test -n "$runpath_var" || \
8723 test "X$hardcode_automatic" = "Xyes" ; then
8724
8725 # We can hardcode non-existant directories.
8726 if test "$hardcode_direct" != no &&
8727 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8728 # have to relink, otherwise we might link with an installed library
8729 # when we should be linking with a yet-to-be-installed one
8730 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8731 test "$hardcode_minus_L" != no; then
8732 # Linking always hardcodes the temporary library directory.
8733 hardcode_action=relink
8734 else
8735 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8736 hardcode_action=immediate
8737 fi
8738else
8739 # We cannot hardcode anything, or else we can only hardcode existing
8740 # directories.
8741 hardcode_action=unsupported
8742fi
8743echo "$as_me:$LINENO: result: $hardcode_action" >&5
8744echo "${ECHO_T}$hardcode_action" >&6
8745
8746if test "$hardcode_action" = relink; then
8747 # Fast installation is not supported
8748 enable_fast_install=no
8749elif test "$shlibpath_overrides_runpath" = yes ||
8750 test "$enable_shared" = no; then
8751 # Fast installation is not necessary
8752 enable_fast_install=needless
8753fi
8754
8755striplib=
8756old_striplib=
8757echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8758echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8759if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764else
8765# FIXME - insert some real tests, host_os isn't really good enough
8766 case $host_os in
8767 darwin*)
8768 if test -n "$STRIP" ; then
8769 striplib="$STRIP -x"
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775fi
8776 ;;
8777 *)
8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
8780 ;;
8781 esac
8782fi
8783
8784if test "x$enable_dlopen" != xyes; then
8785 enable_dlopen=unknown
8786 enable_dlopen_self=unknown
8787 enable_dlopen_self_static=unknown
8788else
8789 lt_cv_dlopen=no
8790 lt_cv_dlopen_libs=
8791
8792 case $host_os in
8793 beos*)
8794 lt_cv_dlopen="load_add_on"
8795 lt_cv_dlopen_libs=
8796 lt_cv_dlopen_self=yes
8797 ;;
8798
8799 mingw* | pw32*)
8800 lt_cv_dlopen="LoadLibrary"
8801 lt_cv_dlopen_libs=
8802 ;;
8803
8804 cygwin*)
8805 lt_cv_dlopen="dlopen"
8806 lt_cv_dlopen_libs=
8807 ;;
8808
8809 darwin*)
8810 # if libdl is installed we need to link against it
8811 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8812echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8813if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815else
8816 ac_check_lib_save_LIBS=$LIBS
8817LIBS="-ldl $LIBS"
8818cat >conftest.$ac_ext <<_ACEOF
8819/* confdefs.h. */
8820_ACEOF
8821cat confdefs.h >>conftest.$ac_ext
8822cat >>conftest.$ac_ext <<_ACEOF
8823/* end confdefs.h. */
8824
8825/* Override any gcc2 internal prototype to avoid an error. */
8826#ifdef __cplusplus
8827extern "C"
8828#endif
8829/* We use char because int might match the return type of a gcc2
8830 builtin and then its argument prototype would still apply. */
8831char dlopen ();
8832int
8833main ()
8834{
8835dlopen ();
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext conftest$ac_exeext
8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 (eval $ac_link) 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag"
8850 || test ! -s conftest.err'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_lib_dl_dlopen=yes
8863else
8864 echo "$as_me: failed program was:" >&5
8865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867ac_cv_lib_dl_dlopen=no
8868fi
8869rm -f conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871LIBS=$ac_check_lib_save_LIBS
8872fi
8873echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8874echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8875if test $ac_cv_lib_dl_dlopen = yes; then
8876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8877else
8878
8879 lt_cv_dlopen="dyld"
8880 lt_cv_dlopen_libs=
8881 lt_cv_dlopen_self=yes
8882
8883fi
8884
8885 ;;
8886
8887 *)
8888 echo "$as_me:$LINENO: checking for shl_load" >&5
8889echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8890if test "${ac_cv_func_shl_load+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893 cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
8899/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8901#define shl_load innocuous_shl_load
8902
8903/* System header to define __stub macros and hopefully few prototypes,
8904 which can conflict with char shl_load (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8907
8908#ifdef __STDC__
8909# include <limits.h>
8910#else
8911# include <assert.h>
8912#endif
8913
8914#undef shl_load
8915
8916/* Override any gcc2 internal prototype to avoid an error. */
8917#ifdef __cplusplus
8918extern "C"
8919{
8920#endif
8921/* We use char because int might match the return type of a gcc2
8922 builtin and then its argument prototype would still apply. */
8923char shl_load ();
8924/* The GNU C library defines this for functions which it implements
8925 to always fail with ENOSYS. Some functions are actually named
8926 something starting with __ and the normal name is an alias. */
8927#if defined (__stub_shl_load) || defined (__stub___shl_load)
8928choke me
8929#else
8930char (*f) () = shl_load;
8931#endif
8932#ifdef __cplusplus
8933}
8934#endif
8935
8936int
8937main ()
8938{
8939return f != shl_load;
8940 ;
8941 return 0;
8942}
8943_ACEOF
8944rm -f conftest.$ac_objext conftest$ac_exeext
8945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_func_shl_load=yes
8967else
8968 echo "$as_me: failed program was:" >&5
8969sed 's/^/| /' conftest.$ac_ext >&5
8970
8971ac_cv_func_shl_load=no
8972fi
8973rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975fi
8976echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8977echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8978if test $ac_cv_func_shl_load = yes; then
8979 lt_cv_dlopen="shl_load"
8980else
8981 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8982echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8983if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986 ac_check_lib_save_LIBS=$LIBS
8987LIBS="-ldld $LIBS"
8988cat >conftest.$ac_ext <<_ACEOF
8989/* confdefs.h. */
8990_ACEOF
8991cat confdefs.h >>conftest.$ac_ext
8992cat >>conftest.$ac_ext <<_ACEOF
8993/* end confdefs.h. */
8994
8995/* Override any gcc2 internal prototype to avoid an error. */
8996#ifdef __cplusplus
8997extern "C"
8998#endif
8999/* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001char shl_load ();
9002int
9003main ()
9004{
9005shl_load ();
9006 ;
9007 return 0;
9008}
9009_ACEOF
9010rm -f conftest.$ac_objext conftest$ac_exeext
9011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dld_shl_load=yes
9033else
9034 echo "$as_me: failed program was:" >&5
9035sed 's/^/| /' conftest.$ac_ext >&5
9036
9037ac_cv_lib_dld_shl_load=no
9038fi
9039rm -f conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041LIBS=$ac_check_lib_save_LIBS
9042fi
9043echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9044echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9045if test $ac_cv_lib_dld_shl_load = yes; then
9046 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9047else
9048 echo "$as_me:$LINENO: checking for dlopen" >&5
9049echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9050if test "${ac_cv_func_dlopen+set}" = set; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9052else
9053 cat >conftest.$ac_ext <<_ACEOF
9054/* confdefs.h. */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h. */
9059/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9061#define dlopen innocuous_dlopen
9062
9063/* System header to define __stub macros and hopefully few prototypes,
9064 which can conflict with char dlopen (); below.
9065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 <limits.h> exists even on freestanding compilers. */
9067
9068#ifdef __STDC__
9069# include <limits.h>
9070#else
9071# include <assert.h>
9072#endif
9073
9074#undef dlopen
9075
9076/* Override any gcc2 internal prototype to avoid an error. */
9077#ifdef __cplusplus
9078extern "C"
9079{
9080#endif
9081/* We use char because int might match the return type of a gcc2
9082 builtin and then its argument prototype would still apply. */
9083char dlopen ();
9084/* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
9087#if defined (__stub_dlopen) || defined (__stub___dlopen)
9088choke me
9089#else
9090char (*f) () = dlopen;
9091#endif
9092#ifdef __cplusplus
9093}
9094#endif
9095
9096int
9097main ()
9098{
9099return f != dlopen;
9100 ;
9101 return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext conftest$ac_exeext
9105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_func_dlopen=yes
9127else
9128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
9130
9131ac_cv_func_dlopen=no
9132fi
9133rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135fi
9136echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9137echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9138if test $ac_cv_func_dlopen = yes; then
9139 lt_cv_dlopen="dlopen"
9140else
9141 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9142echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9143if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145else
9146 ac_check_lib_save_LIBS=$LIBS
9147LIBS="-ldl $LIBS"
9148cat >conftest.$ac_ext <<_ACEOF
9149/* confdefs.h. */
9150_ACEOF
9151cat confdefs.h >>conftest.$ac_ext
9152cat >>conftest.$ac_ext <<_ACEOF
9153/* end confdefs.h. */
9154
9155/* Override any gcc2 internal prototype to avoid an error. */
9156#ifdef __cplusplus
9157extern "C"
9158#endif
9159/* We use char because int might match the return type of a gcc2
9160 builtin and then its argument prototype would still apply. */
9161char dlopen ();
9162int
9163main ()
9164{
9165dlopen ();
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext conftest$ac_exeext
9171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_lib_dl_dlopen=yes
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197ac_cv_lib_dl_dlopen=no
9198fi
9199rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201LIBS=$ac_check_lib_save_LIBS
9202fi
9203echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9204echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9205if test $ac_cv_lib_dl_dlopen = yes; then
9206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9207else
9208 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9209echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9210if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212else
9213 ac_check_lib_save_LIBS=$LIBS
9214LIBS="-lsvld $LIBS"
9215cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221
9222/* Override any gcc2 internal prototype to avoid an error. */
9223#ifdef __cplusplus
9224extern "C"
9225#endif
9226/* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9228char dlopen ();
9229int
9230main ()
9231{
9232dlopen ();
9233 ;
9234 return 0;
9235}
9236_ACEOF
9237rm -f conftest.$ac_objext conftest$ac_exeext
9238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -z "$ac_c_werror_flag"
9247 || test ! -s conftest.err'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; } &&
9253 { ac_try='test -s conftest$ac_exeext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_lib_svld_dlopen=yes
9260else
9261 echo "$as_me: failed program was:" >&5
9262sed 's/^/| /' conftest.$ac_ext >&5
9263
9264ac_cv_lib_svld_dlopen=no
9265fi
9266rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268LIBS=$ac_check_lib_save_LIBS
9269fi
9270echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9271echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9272if test $ac_cv_lib_svld_dlopen = yes; then
9273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9274else
9275 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9276echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9277if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279else
9280 ac_check_lib_save_LIBS=$LIBS
9281LIBS="-ldld $LIBS"
9282cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
9288
9289/* Override any gcc2 internal prototype to avoid an error. */
9290#ifdef __cplusplus
9291extern "C"
9292#endif
9293/* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295char dld_link ();
9296int
9297main ()
9298{
9299dld_link ();
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304rm -f conftest.$ac_objext conftest$ac_exeext
9305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_dld_dld_link=yes
9327else
9328 echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331ac_cv_lib_dld_dld_link=no
9332fi
9333rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335LIBS=$ac_check_lib_save_LIBS
9336fi
9337echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9338echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9339if test $ac_cv_lib_dld_dld_link = yes; then
9340 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9341fi
9342
9343
9344fi
9345
9346
9347fi
9348
9349
9350fi
9351
9352
9353fi
9354
9355
9356fi
9357
9358 ;;
9359 esac
9360
9361 if test "x$lt_cv_dlopen" != xno; then
9362 enable_dlopen=yes
9363 else
9364 enable_dlopen=no
9365 fi
9366
9367 case $lt_cv_dlopen in
9368 dlopen)
9369 save_CPPFLAGS="$CPPFLAGS"
9370 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9371
9372 save_LDFLAGS="$LDFLAGS"
9373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9374
9375 save_LIBS="$LIBS"
9376 LIBS="$lt_cv_dlopen_libs $LIBS"
9377
9378 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9379echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9380if test "${lt_cv_dlopen_self+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9382else
9383 if test "$cross_compiling" = yes; then :
9384 lt_cv_dlopen_self=cross
9385else
9386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9387 lt_status=$lt_dlunknown
9388 cat > conftest.$ac_ext <<EOF
0cbaeb11 9389#line 9389 "configure"
bf9f3bac 9390#include "confdefs.h"
9391
9392#if HAVE_DLFCN_H
9393#include <dlfcn.h>
9394#endif
9395
9396#include <stdio.h>
9397
9398#ifdef RTLD_GLOBAL
9399# define LT_DLGLOBAL RTLD_GLOBAL
9400#else
9401# ifdef DL_GLOBAL
9402# define LT_DLGLOBAL DL_GLOBAL
9403# else
9404# define LT_DLGLOBAL 0
9405# endif
9406#endif
9407
9408/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9409 find out it does not work in some platform. */
9410#ifndef LT_DLLAZY_OR_NOW
9411# ifdef RTLD_LAZY
9412# define LT_DLLAZY_OR_NOW RTLD_LAZY
9413# else
9414# ifdef DL_LAZY
9415# define LT_DLLAZY_OR_NOW DL_LAZY
9416# else
9417# ifdef RTLD_NOW
9418# define LT_DLLAZY_OR_NOW RTLD_NOW
9419# else
9420# ifdef DL_NOW
9421# define LT_DLLAZY_OR_NOW DL_NOW
9422# else
9423# define LT_DLLAZY_OR_NOW 0
9424# endif
9425# endif
9426# endif
9427# endif
9428#endif
9429
9430#ifdef __cplusplus
9431extern "C" void exit (int);
9432#endif
9433
9434void fnord() { int i=42;}
9435int main ()
9436{
9437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9438 int status = $lt_dlunknown;
9439
9440 if (self)
9441 {
9442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9444 /* dlclose (self); */
9445 }
9446 else
9447 puts (dlerror ());
9448
9449 exit (status);
9450}
9451EOF
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9454 ac_status=$?
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9457 (./conftest; exit; ) >&5 2>/dev/null
9458 lt_status=$?
9459 case x$lt_status in
9460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9462 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9463 esac
9464 else :
9465 # compilation failed
9466 lt_cv_dlopen_self=no
9467 fi
9468fi
9469rm -fr conftest*
9470
9471
9472fi
9473echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9474echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9475
9476 if test "x$lt_cv_dlopen_self" = xyes; then
9477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9478 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9479echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9480if test "${lt_cv_dlopen_self_static+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483 if test "$cross_compiling" = yes; then :
9484 lt_cv_dlopen_self_static=cross
9485else
9486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9487 lt_status=$lt_dlunknown
9488 cat > conftest.$ac_ext <<EOF
0cbaeb11 9489#line 9489 "configure"
bf9f3bac 9490#include "confdefs.h"
9491
9492#if HAVE_DLFCN_H
9493#include <dlfcn.h>
9494#endif
9495
9496#include <stdio.h>
9497
9498#ifdef RTLD_GLOBAL
9499# define LT_DLGLOBAL RTLD_GLOBAL
9500#else
9501# ifdef DL_GLOBAL
9502# define LT_DLGLOBAL DL_GLOBAL
9503# else
9504# define LT_DLGLOBAL 0
9505# endif
9506#endif
9507
9508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9509 find out it does not work in some platform. */
9510#ifndef LT_DLLAZY_OR_NOW
9511# ifdef RTLD_LAZY
9512# define LT_DLLAZY_OR_NOW RTLD_LAZY
9513# else
9514# ifdef DL_LAZY
9515# define LT_DLLAZY_OR_NOW DL_LAZY
9516# else
9517# ifdef RTLD_NOW
9518# define LT_DLLAZY_OR_NOW RTLD_NOW
9519# else
9520# ifdef DL_NOW
9521# define LT_DLLAZY_OR_NOW DL_NOW
9522# else
9523# define LT_DLLAZY_OR_NOW 0
9524# endif
9525# endif
9526# endif
9527# endif
9528#endif
9529
9530#ifdef __cplusplus
9531extern "C" void exit (int);
9532#endif
9533
9534void fnord() { int i=42;}
9535int main ()
9536{
9537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9538 int status = $lt_dlunknown;
9539
9540 if (self)
9541 {
9542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9544 /* dlclose (self); */
9545 }
9546 else
9547 puts (dlerror ());
9548
9549 exit (status);
9550}
9551EOF
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9557 (./conftest; exit; ) >&5 2>/dev/null
9558 lt_status=$?
9559 case x$lt_status in
9560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9563 esac
9564 else :
9565 # compilation failed
9566 lt_cv_dlopen_self_static=no
9567 fi
9568fi
9569rm -fr conftest*
9570
9571
9572fi
9573echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9574echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9575 fi
9576
9577 CPPFLAGS="$save_CPPFLAGS"
9578 LDFLAGS="$save_LDFLAGS"
9579 LIBS="$save_LIBS"
9580 ;;
9581 esac
9582
9583 case $lt_cv_dlopen_self in
9584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9585 *) enable_dlopen_self=unknown ;;
9586 esac
9587
9588 case $lt_cv_dlopen_self_static in
9589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9590 *) enable_dlopen_self_static=unknown ;;
9591 esac
9592fi
9593
9594
9595# Report which library types will actually be built
9596echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9597echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9598echo "$as_me:$LINENO: result: $can_build_shared" >&5
9599echo "${ECHO_T}$can_build_shared" >&6
9600
9601echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9602echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9603test "$can_build_shared" = "no" && enable_shared=no
9604
9605# On AIX, shared libraries and static libraries use the same namespace, and
9606# are all built from PIC.
9607case $host_os in
9608aix3*)
9609 test "$enable_shared" = yes && enable_static=no
9610 if test -n "$RANLIB"; then
9611 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9612 postinstall_cmds='$RANLIB $lib'
9613 fi
9614 ;;
9615
9616aix4* | aix5*)
9617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9618 test "$enable_shared" = yes && enable_static=no
9619 fi
9620 ;;
9621esac
9622echo "$as_me:$LINENO: result: $enable_shared" >&5
9623echo "${ECHO_T}$enable_shared" >&6
9624
9625echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9626echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9627# Make sure either enable_shared or enable_static is yes.
9628test "$enable_shared" = yes || enable_static=yes
9629echo "$as_me:$LINENO: result: $enable_static" >&5
9630echo "${ECHO_T}$enable_static" >&6
9631
9632# The else clause should only fire when bootstrapping the
9633# libtool distribution, otherwise you forgot to ship ltmain.sh
9634# with your package, and you will get complaints that there are
9635# no rules to generate ltmain.sh.
9636if test -f "$ltmain"; then
9637 # See if we are running on zsh, and set the options which allow our commands through
9638 # without removal of \ escapes.
9639 if test -n "${ZSH_VERSION+set}" ; then
9640 setopt NO_GLOB_SUBST
9641 fi
9642 # Now quote all the things that may contain metacharacters while being
9643 # careful not to overquote the AC_SUBSTed values. We take copies of the
9644 # variables and quote the copies for generation of the libtool script.
9645 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9646 SED SHELL STRIP \
9647 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9648 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9649 deplibs_check_method reload_flag reload_cmds need_locks \
9650 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9651 lt_cv_sys_global_symbol_to_c_name_address \
9652 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9653 old_postinstall_cmds old_postuninstall_cmds \
9654 compiler \
9655 CC \
9656 LD \
9657 lt_prog_compiler_wl \
9658 lt_prog_compiler_pic \
9659 lt_prog_compiler_static \
9660 lt_prog_compiler_no_builtin_flag \
9661 export_dynamic_flag_spec \
9662 thread_safe_flag_spec \
9663 whole_archive_flag_spec \
9664 enable_shared_with_static_runtimes \
9665 old_archive_cmds \
9666 old_archive_from_new_cmds \
9667 predep_objects \
9668 postdep_objects \
9669 predeps \
9670 postdeps \
9671 compiler_lib_search_path \
9672 archive_cmds \
9673 archive_expsym_cmds \
9674 postinstall_cmds \
9675 postuninstall_cmds \
9676 old_archive_from_expsyms_cmds \
9677 allow_undefined_flag \
9678 no_undefined_flag \
9679 export_symbols_cmds \
9680 hardcode_libdir_flag_spec \
9681 hardcode_libdir_flag_spec_ld \
9682 hardcode_libdir_separator \
9683 hardcode_automatic \
9684 module_cmds \
9685 module_expsym_cmds \
9686 lt_cv_prog_compiler_c_o \
9687 exclude_expsyms \
9688 include_expsyms; do
9689
9690 case $var in
9691 old_archive_cmds | \
9692 old_archive_from_new_cmds | \
9693 archive_cmds | \
9694 archive_expsym_cmds | \
9695 module_cmds | \
9696 module_expsym_cmds | \
9697 old_archive_from_expsyms_cmds | \
9698 export_symbols_cmds | \
9699 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9700 postinstall_cmds | postuninstall_cmds | \
9701 old_postinstall_cmds | old_postuninstall_cmds | \
9702 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9703 # Double-quote double-evaled strings.
9704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9705 ;;
9706 *)
9707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9708 ;;
9709 esac
9710 done
9711
9712 case $lt_echo in
9713 *'\$0 --fallback-echo"')
9714 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9715 ;;
9716 esac
9717
9718cfgfile="${ofile}T"
9719 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9720 $rm -f "$cfgfile"
9721 { echo "$as_me:$LINENO: creating $ofile" >&5
9722echo "$as_me: creating $ofile" >&6;}
9723
9724 cat <<__EOF__ >> "$cfgfile"
9725#! $SHELL
9726
9727# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9728# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9729# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9730#
9731# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9732# Free Software Foundation, Inc.
9733#
9734# This file is part of GNU Libtool:
9735# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9736#
9737# This program is free software; you can redistribute it and/or modify
9738# it under the terms of the GNU General Public License as published by
9739# the Free Software Foundation; either version 2 of the License, or
9740# (at your option) any later version.
9741#
9742# This program is distributed in the hope that it will be useful, but
9743# WITHOUT ANY WARRANTY; without even the implied warranty of
9744# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9745# General Public License for more details.
9746#
9747# You should have received a copy of the GNU General Public License
9748# along with this program; if not, write to the Free Software
9749# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9750#
9751# As a special exception to the GNU General Public License, if you
9752# distribute this file as part of a program that contains a
9753# configuration script generated by Autoconf, you may include it under
9754# the same distribution terms that you use for the rest of that program.
9755
9756# A sed program that does not truncate output.
9757SED=$lt_SED
9758
9759# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9760Xsed="$SED -e 1s/^X//"
9761
9762# The HP-UX ksh and POSIX shell print the target directory to stdout
9763# if CDPATH is set.
9764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9765
9766# The names of the tagged configurations supported by this script.
9767available_tags=
9768
9769# ### BEGIN LIBTOOL CONFIG
9770
9771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9772
9773# Shell to use when invoking shell scripts.
9774SHELL=$lt_SHELL
9775
9776# Whether or not to build shared libraries.
9777build_libtool_libs=$enable_shared
9778
9779# Whether or not to build static libraries.
9780build_old_libs=$enable_static
9781
9782# Whether or not to add -lc for building shared libraries.
9783build_libtool_need_lc=$archive_cmds_need_lc
9784
9785# Whether or not to disallow shared libs when runtime libs are static
9786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9787
9788# Whether or not to optimize for fast installation.
9789fast_install=$enable_fast_install
9790
9791# The host system.
9792host_alias=$host_alias
9793host=$host
9794host_os=$host_os
9795
9796# The build system.
9797build_alias=$build_alias
9798build=$build
9799build_os=$build_os
9800
9801# An echo program that does not interpret backslashes.
9802echo=$lt_echo
9803
9804# The archiver.
9805AR=$lt_AR
9806AR_FLAGS=$lt_AR_FLAGS
9807
9808# A C compiler.
9809LTCC=$lt_LTCC
9810
9811# LTCC compiler flags.
9812LTCFLAGS=$lt_LTCFLAGS
9813
9814# A language-specific compiler.
9815CC=$lt_compiler
9816
9817# Is the compiler the GNU C compiler?
9818with_gcc=$GCC
9819
9820gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9821gcc_ver=\`gcc -dumpversion\`
9822
9823# An ERE matcher.
9824EGREP=$lt_EGREP
9825
9826# The linker used to build libraries.
9827LD=$lt_LD
9828
9829# Whether we need hard or soft links.
9830LN_S=$lt_LN_S
9831
9832# A BSD-compatible nm program.
9833NM=$lt_NM
9834
9835# A symbol stripping program
9836STRIP=$lt_STRIP
9837
9838# Used to examine libraries when file_magic_cmd begins "file"
9839MAGIC_CMD=$MAGIC_CMD
9840
9841# Used on cygwin: DLL creation program.
9842DLLTOOL="$DLLTOOL"
9843
9844# Used on cygwin: object dumper.
9845OBJDUMP="$OBJDUMP"
9846
9847# Used on cygwin: assembler.
9848AS="$AS"
9849
9850# The name of the directory that contains temporary libtool files.
9851objdir=$objdir
9852
9853# How to create reloadable object files.
9854reload_flag=$lt_reload_flag
9855reload_cmds=$lt_reload_cmds
9856
9857# How to pass a linker flag through the compiler.
9858wl=$lt_lt_prog_compiler_wl
9859
9860# Object file suffix (normally "o").
9861objext="$ac_objext"
9862
9863# Old archive suffix (normally "a").
9864libext="$libext"
9865
9866# Shared library suffix (normally ".so").
9867shrext_cmds='$shrext_cmds'
9868
9869# Executable file suffix (normally "").
9870exeext="$exeext"
9871
9872# Additional compiler flags for building library objects.
9873pic_flag=$lt_lt_prog_compiler_pic
9874pic_mode=$pic_mode
9875
9876# What is the maximum length of a command?
9877max_cmd_len=$lt_cv_sys_max_cmd_len
9878
9879# Does compiler simultaneously support -c and -o options?
9880compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9881
9882# Must we lock files when doing compilation?
9883need_locks=$lt_need_locks
9884
9885# Do we need the lib prefix for modules?
9886need_lib_prefix=$need_lib_prefix
9887
9888# Do we need a version for libraries?
9889need_version=$need_version
9890
9891# Whether dlopen is supported.
9892dlopen_support=$enable_dlopen
9893
9894# Whether dlopen of programs is supported.
9895dlopen_self=$enable_dlopen_self
9896
9897# Whether dlopen of statically linked programs is supported.
9898dlopen_self_static=$enable_dlopen_self_static
9899
9900# Compiler flag to prevent dynamic linking.
9901link_static_flag=$lt_lt_prog_compiler_static
9902
9903# Compiler flag to turn off builtin functions.
9904no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9905
9906# Compiler flag to allow reflexive dlopens.
9907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9908
9909# Compiler flag to generate shared objects directly from archives.
9910whole_archive_flag_spec=$lt_whole_archive_flag_spec
9911
9912# Compiler flag to generate thread-safe objects.
9913thread_safe_flag_spec=$lt_thread_safe_flag_spec
9914
9915# Library versioning type.
9916version_type=$version_type
9917
9918# Format of library name prefix.
9919libname_spec=$lt_libname_spec
9920
9921# List of archive names. First name is the real one, the rest are links.
9922# The last name is the one that the linker finds with -lNAME.
9923library_names_spec=$lt_library_names_spec
9924
9925# The coded name of the library, if different from the real name.
9926soname_spec=$lt_soname_spec
9927
9928# Commands used to build and install an old-style archive.
9929RANLIB=$lt_RANLIB
9930old_archive_cmds=$lt_old_archive_cmds
9931old_postinstall_cmds=$lt_old_postinstall_cmds
9932old_postuninstall_cmds=$lt_old_postuninstall_cmds
9933
9934# Create an old-style archive from a shared archive.
9935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9936
9937# Create a temporary old-style archive to link instead of a shared archive.
9938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9939
9940# Commands used to build and install a shared archive.
9941archive_cmds=$lt_archive_cmds
9942archive_expsym_cmds=$lt_archive_expsym_cmds
9943postinstall_cmds=$lt_postinstall_cmds
9944postuninstall_cmds=$lt_postuninstall_cmds
9945
9946# Commands used to build a loadable module (assumed same as above if empty)
9947module_cmds=$lt_module_cmds
9948module_expsym_cmds=$lt_module_expsym_cmds
9949
9950# Commands to strip libraries.
9951old_striplib=$lt_old_striplib
9952striplib=$lt_striplib
9953
9954# Dependencies to place before the objects being linked to create a
9955# shared library.
9956predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9957
9958# Dependencies to place after the objects being linked to create a
9959# shared library.
9960postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9961
9962# Dependencies to place before the objects being linked to create a
9963# shared library.
9964predeps=$lt_predeps
9965
9966# Dependencies to place after the objects being linked to create a
9967# shared library.
9968postdeps=$lt_postdeps
9969
9970# The library search path used internally by the compiler when linking
9971# a shared library.
9972compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9973
9974# Method to check whether dependent libraries are shared objects.
9975deplibs_check_method=$lt_deplibs_check_method
9976
9977# Command to use when deplibs_check_method == file_magic.
9978file_magic_cmd=$lt_file_magic_cmd
9979
9980# Flag that allows shared libraries with undefined symbols to be built.
9981allow_undefined_flag=$lt_allow_undefined_flag
9982
9983# Flag that forces no undefined symbols.
9984no_undefined_flag=$lt_no_undefined_flag
9985
9986# Commands used to finish a libtool library installation in a directory.
9987finish_cmds=$lt_finish_cmds
9988
9989# Same as above, but a single script fragment to be evaled but not shown.
9990finish_eval=$lt_finish_eval
9991
9992# Take the output of nm and produce a listing of raw symbols and C names.
9993global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9994
9995# Transform the output of nm in a proper C declaration
9996global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9997
9998# Transform the output of nm in a C name address pair
9999global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10000
10001# This is the shared library runtime path variable.
10002runpath_var=$runpath_var
10003
10004# This is the shared library path variable.
10005shlibpath_var=$shlibpath_var
10006
10007# Is shlibpath searched before the hard-coded library search path?
10008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10009
10010# How to hardcode a shared library path into an executable.
10011hardcode_action=$hardcode_action
10012
10013# Whether we should hardcode library paths into libraries.
10014hardcode_into_libs=$hardcode_into_libs
10015
10016# Flag to hardcode \$libdir into a binary during linking.
10017# This must work even if \$libdir does not exist.
10018hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10019
10020# If ld is used when linking, flag to hardcode \$libdir into
10021# a binary during linking. This must work even if \$libdir does
10022# not exist.
10023hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10024
10025# Whether we need a single -rpath flag with a separated argument.
10026hardcode_libdir_separator=$lt_hardcode_libdir_separator
10027
10028# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10029# resulting binary.
10030hardcode_direct=$hardcode_direct
10031
10032# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10033# resulting binary.
10034hardcode_minus_L=$hardcode_minus_L
10035
10036# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10037# the resulting binary.
10038hardcode_shlibpath_var=$hardcode_shlibpath_var
10039
10040# Set to yes if building a shared library automatically hardcodes DIR into the library
10041# and all subsequent libraries and executables linked against it.
10042hardcode_automatic=$hardcode_automatic
10043
10044# Variables whose values should be saved in libtool wrapper scripts and
10045# restored at relink time.
10046variables_saved_for_relink="$variables_saved_for_relink"
10047
10048# Whether libtool must link a program against all its dependency libraries.
10049link_all_deplibs=$link_all_deplibs
10050
10051# Compile-time system search path for libraries
10052sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10053
10054# Run-time system search path for libraries
10055sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10056
10057# Fix the shell variable \$srcfile for the compiler.
10058fix_srcfile_path="$fix_srcfile_path"
10059
10060# Set to yes if exported symbols are required.
10061always_export_symbols=$always_export_symbols
10062
10063# The commands to list exported symbols.
10064export_symbols_cmds=$lt_export_symbols_cmds
10065
10066# The commands to extract the exported symbol list from a shared archive.
10067extract_expsyms_cmds=$lt_extract_expsyms_cmds
10068
10069# Symbols that should not be listed in the preloaded symbols.
10070exclude_expsyms=$lt_exclude_expsyms
10071
10072# Symbols that must always be exported.
10073include_expsyms=$lt_include_expsyms
10074
10075# ### END LIBTOOL CONFIG
10076
10077__EOF__
10078
10079
10080 case $host_os in
10081 aix3*)
10082 cat <<\EOF >> "$cfgfile"
10083
10084# AIX sometimes has problems with the GCC collect2 program. For some
10085# reason, if we set the COLLECT_NAMES environment variable, the problems
10086# vanish in a puff of smoke.
10087if test "X${COLLECT_NAMES+set}" != Xset; then
10088 COLLECT_NAMES=
10089 export COLLECT_NAMES
10090fi
10091EOF
10092 ;;
10093 esac
10094
10095 # We use sed instead of cat because bash on DJGPP gets confused if
10096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10097 # text mode, it properly converts lines to CR/LF. This bash problem
10098 # is reportedly fixed, but why not run on old versions too?
10099 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10100
10101 mv -f "$cfgfile" "$ofile" || \
10102 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10103 chmod +x "$ofile"
10104
10105else
10106 # If there is no Makefile yet, we rely on a make rule to execute
10107 # `config.status --recheck' to rerun these tests and create the
10108 # libtool script then.
10109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10110 if test -f "$ltmain_in"; then
10111 test -f Makefile && make "$ltmain"
10112 fi
10113fi
10114
10115
10116ac_ext=c
10117ac_cpp='$CPP $CPPFLAGS'
10118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10120ac_compiler_gnu=$ac_cv_c_compiler_gnu
10121
10122CC="$lt_save_CC"
10123
10124
10125# Check whether --with-tags or --without-tags was given.
10126if test "${with_tags+set}" = set; then
10127 withval="$with_tags"
10128 tagnames="$withval"
10129fi;
10130
10131if test -f "$ltmain" && test -n "$tagnames"; then
10132 if test ! -f "${ofile}"; then
10133 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10134echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10135 fi
10136
10137 if test -z "$LTCC"; then
10138 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10139 if test -z "$LTCC"; then
10140 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10141echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10142 else
10143 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10144echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10145 fi
10146 fi
10147 if test -z "$LTCFLAGS"; then
10148 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10149 fi
10150
10151 # Extract list of available tagged configurations in $ofile.
10152 # Note that this assumes the entire list is on one line.
10153 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10154
10155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10156 for tagname in $tagnames; do
10157 IFS="$lt_save_ifs"
10158 # Check whether tagname contains only valid characters
10159 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10160 "") ;;
10161 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10162echo "$as_me: error: invalid tag name: $tagname" >&2;}
10163 { (exit 1); exit 1; }; }
10164 ;;
10165 esac
10166
10167 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10168 then
10169 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10170echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10171 { (exit 1); exit 1; }; }
10172 fi
10173
10174 # Update the list of available tags.
10175 if test -n "$tagname"; then
10176 echo appending configuration tag \"$tagname\" to $ofile
10177
10178 case $tagname in
10179 CXX)
10180 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10181 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10182 (test "X$CXX" != "Xg++"))) ; then
10183 ac_ext=cc
10184ac_cpp='$CXXCPP $CPPFLAGS'
10185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10188
10189
10190
10191
10192archive_cmds_need_lc_CXX=no
10193allow_undefined_flag_CXX=
10194always_export_symbols_CXX=no
10195archive_expsym_cmds_CXX=
10196export_dynamic_flag_spec_CXX=
10197hardcode_direct_CXX=no
10198hardcode_libdir_flag_spec_CXX=
10199hardcode_libdir_flag_spec_ld_CXX=
10200hardcode_libdir_separator_CXX=
10201hardcode_minus_L_CXX=no
10202hardcode_shlibpath_var_CXX=unsupported
10203hardcode_automatic_CXX=no
10204module_cmds_CXX=
10205module_expsym_cmds_CXX=
10206link_all_deplibs_CXX=unknown
10207old_archive_cmds_CXX=$old_archive_cmds
10208no_undefined_flag_CXX=
10209whole_archive_flag_spec_CXX=
10210enable_shared_with_static_runtimes_CXX=no
10211
10212# Dependencies to place before and after the object being linked:
10213predep_objects_CXX=
10214postdep_objects_CXX=
10215predeps_CXX=
10216postdeps_CXX=
10217compiler_lib_search_path_CXX=
10218
10219# Source file extension for C++ test sources.
10220ac_ext=cpp
10221
10222# Object file extension for compiled C++ test sources.
10223objext=o
10224objext_CXX=$objext
10225
10226# Code to be used in simple compile tests
10227lt_simple_compile_test_code="int some_variable = 0;\n"
10228
10229# Code to be used in simple link tests
10230lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10231
10232# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10233
10234# If no C compiler was specified, use CC.
10235LTCC=${LTCC-"$CC"}
10236
10237# If no C compiler flags were specified, use CFLAGS.
10238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10239
10240# Allow CC to be a program name with arguments.
10241compiler=$CC
10242
10243
10244# save warnings/boilerplate of simple test code
10245ac_outfile=conftest.$ac_objext
10246printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10248_lt_compiler_boilerplate=`cat conftest.err`
10249$rm conftest*
10250
10251ac_outfile=conftest.$ac_objext
10252printf "$lt_simple_link_test_code" >conftest.$ac_ext
10253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10254_lt_linker_boilerplate=`cat conftest.err`
10255$rm conftest*
10256
10257
10258# Allow CC to be a program name with arguments.
10259lt_save_CC=$CC
10260lt_save_LD=$LD
10261lt_save_GCC=$GCC
10262GCC=$GXX
10263lt_save_with_gnu_ld=$with_gnu_ld
10264lt_save_path_LD=$lt_cv_path_LD
10265if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10267else
10268 $as_unset lt_cv_prog_gnu_ld
10269fi
10270if test -n "${lt_cv_path_LDCXX+set}"; then
10271 lt_cv_path_LD=$lt_cv_path_LDCXX
10272else
10273 $as_unset lt_cv_path_LD
10274fi
10275test -z "${LDCXX+set}" || LD=$LDCXX
10276CC=${CXX-"c++"}
10277compiler=$CC
10278compiler_CXX=$CC
10279for cc_temp in $compiler""; do
10280 case $cc_temp in
10281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10283 \-*) ;;
10284 *) break;;
10285 esac
10286done
10287cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10288
10289
10290# We don't want -fno-exception wen compiling C++ code, so set the
10291# no_builtin_flag separately
10292if test "$GXX" = yes; then
10293 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10294else
10295 lt_prog_compiler_no_builtin_flag_CXX=
10296fi
10297
10298if test "$GXX" = yes; then
10299 # Set up default GNU C++ configuration
10300
10301
10302# Check whether --with-gnu-ld or --without-gnu-ld was given.
10303if test "${with_gnu_ld+set}" = set; then
10304 withval="$with_gnu_ld"
10305 test "$withval" = no || with_gnu_ld=yes
10306else
10307 with_gnu_ld=no
10308fi;
10309ac_prog=ld
10310if test "$GCC" = yes; then
10311 # Check if gcc -print-prog-name=ld gives a path.
10312 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10313echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10314 case $host in
10315 *-*-mingw*)
10316 # gcc leaves a trailing carriage return which upsets mingw
10317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10318 *)
10319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10320 esac
10321 case $ac_prog in
10322 # Accept absolute paths.
10323 [\\/]* | ?:[\\/]*)
10324 re_direlt='/[^/][^/]*/\.\./'
10325 # Canonicalize the pathname of ld
10326 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10328 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10329 done
10330 test -z "$LD" && LD="$ac_prog"
10331 ;;
10332 "")
10333 # If it fails, then pretend we aren't using GCC.
10334 ac_prog=ld
10335 ;;
10336 *)
10337 # If it is relative, then search for the first ld in PATH.
10338 with_gnu_ld=unknown
10339 ;;
10340 esac
10341elif test "$with_gnu_ld" = yes; then
10342 echo "$as_me:$LINENO: checking for GNU ld" >&5
10343echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10344else
10345 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10346echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10347fi
10348if test "${lt_cv_path_LD+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 if test -z "$LD"; then
10352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10353 for ac_dir in $PATH; do
10354 IFS="$lt_save_ifs"
10355 test -z "$ac_dir" && ac_dir=.
10356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10357 lt_cv_path_LD="$ac_dir/$ac_prog"
10358 # Check to see if the program is GNU ld. I'd rather use --version,
10359 # but apparently some variants of GNU ld only accept -v.
10360 # Break only if it was the GNU/non-GNU ld that we prefer.
10361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10362 *GNU* | *'with BFD'*)
10363 test "$with_gnu_ld" != no && break
10364 ;;
10365 *)
10366 test "$with_gnu_ld" != yes && break
10367 ;;
10368 esac
10369 fi
10370 done
10371 IFS="$lt_save_ifs"
10372else
10373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10374fi
10375fi
10376
10377LD="$lt_cv_path_LD"
10378if test -n "$LD"; then
10379 echo "$as_me:$LINENO: result: $LD" >&5
10380echo "${ECHO_T}$LD" >&6
10381else
10382 echo "$as_me:$LINENO: result: no" >&5
10383echo "${ECHO_T}no" >&6
10384fi
10385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10387 { (exit 1); exit 1; }; }
10388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10390if test "${lt_cv_prog_gnu_ld+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10394case `$LD -v 2>&1 </dev/null` in
10395*GNU* | *'with BFD'*)
10396 lt_cv_prog_gnu_ld=yes
10397 ;;
10398*)
10399 lt_cv_prog_gnu_ld=no
10400 ;;
10401esac
10402fi
10403echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10404echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10405with_gnu_ld=$lt_cv_prog_gnu_ld
10406
10407
10408
10409 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10410 # archiving commands below assume that GNU ld is being used.
10411 if test "$with_gnu_ld" = yes; then
10412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 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'
10414
10415 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10416 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10417
10418 # If archive_cmds runs LD, not CC, wlarc should be empty
10419 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10420 # investigate it a little bit more. (MM)
10421 wlarc='${wl}'
10422
10423 # ancient GNU ld didn't support --whole-archive et. al.
10424 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10425 grep 'no-whole-archive' > /dev/null; then
10426 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10427 else
10428 whole_archive_flag_spec_CXX=
10429 fi
10430 else
10431 with_gnu_ld=no
10432 wlarc=
10433
10434 # A generic and very simple default shared library creation
10435 # command for GNU C++ for the case where it uses the native
10436 # linker, instead of GNU ld. If possible, this setting should
10437 # overridden to take advantage of the native linker features on
10438 # the platform it is being used on.
10439 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10440 fi
10441
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10446
10447else
10448 GXX=no
10449 with_gnu_ld=no
10450 wlarc=
10451fi
10452
10453# PORTME: fill in a description of your system's C++ link characteristics
10454echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10455echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10456ld_shlibs_CXX=yes
10457case $host_os in
10458 aix3*)
10459 # FIXME: insert proper C++ library support
10460 ld_shlibs_CXX=no
10461 ;;
10462 aix4* | aix5*)
10463 if test "$host_cpu" = ia64; then
10464 # On IA64, the linker does run time linking by default, so we don't
10465 # have to do anything special.
10466 aix_use_runtimelinking=no
10467 exp_sym_flag='-Bexport'
10468 no_entry_flag=""
10469 else
10470 aix_use_runtimelinking=no
10471
10472 # Test if we are trying to use run time linking or normal
10473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10474 # need to do runtime linking.
10475 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10476 for ld_flag in $LDFLAGS; do
10477 case $ld_flag in
10478 *-brtl*)
10479 aix_use_runtimelinking=yes
10480 break
10481 ;;
10482 esac
10483 done
10484 ;;
10485 esac
10486
10487 exp_sym_flag='-bexport'
10488 no_entry_flag='-bnoentry'
10489 fi
10490
10491 # When large executables or shared objects are built, AIX ld can
10492 # have problems creating the table of contents. If linking a library
10493 # or program results in "error TOC overflow" add -mminimal-toc to
10494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10496
10497 archive_cmds_CXX=''
10498 hardcode_direct_CXX=yes
10499 hardcode_libdir_separator_CXX=':'
10500 link_all_deplibs_CXX=yes
10501
10502 if test "$GXX" = yes; then
10503 case $host_os in aix4.[012]|aix4.[012].*)
10504 # We only want to do this on AIX 4.2 and lower, the check
10505 # below for broken collect2 doesn't work under 4.3+
10506 collect2name=`${CC} -print-prog-name=collect2`
10507 if test -f "$collect2name" && \
10508 strings "$collect2name" | grep resolve_lib_name >/dev/null
10509 then
10510 # We have reworked collect2
10511 hardcode_direct_CXX=yes
10512 else
10513 # We have old collect2
10514 hardcode_direct_CXX=unsupported
10515 # It fails to find uninstalled libraries when the uninstalled
10516 # path is not listed in the libpath. Setting hardcode_minus_L
10517 # to unsupported forces relinking
10518 hardcode_minus_L_CXX=yes
10519 hardcode_libdir_flag_spec_CXX='-L$libdir'
10520 hardcode_libdir_separator_CXX=
10521 fi
10522 ;;
10523 esac
10524 shared_flag='-shared'
10525 if test "$aix_use_runtimelinking" = yes; then
10526 shared_flag="$shared_flag "'${wl}-G'
10527 fi
10528 else
10529 # not using gcc
10530 if test "$host_cpu" = ia64; then
10531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10532 # chokes on -Wl,-G. The following line is correct:
10533 shared_flag='-G'
10534 else
10535 if test "$aix_use_runtimelinking" = yes; then
10536 shared_flag='${wl}-G'
10537 else
10538 shared_flag='${wl}-bM:SRE'
10539 fi
10540 fi
10541 fi
10542
10543 # It seems that -bexpall does not export symbols beginning with
10544 # underscore (_), so it is better to generate a list of symbols to export.
10545 always_export_symbols_CXX=yes
10546 if test "$aix_use_runtimelinking" = yes; then
10547 # Warning - without using the other runtime loading flags (-brtl),
10548 # -berok will link without error, but may produce a broken library.
10549 allow_undefined_flag_CXX='-berok'
10550 # Determine the default libpath from the value encoded in an empty executable.
10551 cat >conftest.$ac_ext <<_ACEOF
10552/* confdefs.h. */
10553_ACEOF
10554cat confdefs.h >>conftest.$ac_ext
10555cat >>conftest.$ac_ext <<_ACEOF
10556/* end confdefs.h. */
10557
10558int
10559main ()
10560{
10561
10562 ;
10563 return 0;
10564}
10565_ACEOF
10566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_cxx_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588
10589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10590}'`
10591# Check for a 64-bit object if we didn't find anything.
10592if 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; }
10593}'`; fi
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
10598fi
10599rm -f conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10602
10603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10604
10605 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10606 else
10607 if test "$host_cpu" = ia64; then
10608 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10609 allow_undefined_flag_CXX="-z nodefs"
10610 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10611 else
10612 # Determine the default libpath from the value encoded in an empty executable.
10613 cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
10620int
10621main ()
10622{
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
10629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10630 (eval $ac_link) 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } &&
10637 { ac_try='test -z "$ac_cxx_werror_flag"
10638 || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650
10651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10652}'`
10653# Check for a 64-bit object if we didn't find anything.
10654if 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; }
10655}'`; fi
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660fi
10661rm -f conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10664
10665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10666 # Warning - without using the other run time loading flags,
10667 # -berok will link without error, but may produce a broken library.
10668 no_undefined_flag_CXX=' ${wl}-bernotok'
10669 allow_undefined_flag_CXX=' ${wl}-berok'
10670 # Exported symbols can be pulled into shared objects from archives
10671 whole_archive_flag_spec_CXX='$convenience'
10672 archive_cmds_need_lc_CXX=yes
10673 # This is similar to how AIX traditionally builds its shared libraries.
10674 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10675 fi
10676 fi
10677 ;;
10678
10679 beos*)
10680 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10681 allow_undefined_flag_CXX=unsupported
10682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10683 # support --undefined. This deserves some investigation. FIXME
10684 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10685 else
10686 ld_shlibs_CXX=no
10687 fi
10688 ;;
10689
10690 chorus*)
10691 case $cc_basename in
10692 *)
10693 # FIXME: insert proper C++ library support
10694 ld_shlibs_CXX=no
10695 ;;
10696 esac
10697 ;;
10698
10699 cygwin* | mingw* | pw32*)
10700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10701 # as there is no search path for DLLs.
10702 hardcode_libdir_flag_spec_CXX='-L$libdir'
10703 allow_undefined_flag_CXX=unsupported
10704 always_export_symbols_CXX=no
10705 enable_shared_with_static_runtimes_CXX=yes
10706
10707 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10709 # If the export-symbols file already is a .def file (1st line
10710 # is EXPORTS), use it as is; otherwise, prepend...
10711 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10712 cp $export_symbols $output_objdir/$soname.def;
10713 else
10714 echo EXPORTS > $output_objdir/$soname.def;
10715 cat $export_symbols >> $output_objdir/$soname.def;
10716 fi~
10717 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10718 else
10719 ld_shlibs_CXX=no
10720 fi
10721 ;;
10722 darwin* | rhapsody*)
10723 case $host_os in
10724 rhapsody* | darwin1.[012])
10725 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10726 ;;
10727 *) # Darwin 1.3 on
10728 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10730 else
10731 case ${MACOSX_DEPLOYMENT_TARGET} in
10732 10.[012])
10733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10734 ;;
10735 10.*)
10736 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10737 ;;
10738 esac
10739 fi
10740 ;;
10741 esac
10742 archive_cmds_need_lc_CXX=no
10743 hardcode_direct_CXX=no
10744 hardcode_automatic_CXX=yes
10745 hardcode_shlibpath_var_CXX=unsupported
10746 whole_archive_flag_spec_CXX=''
10747 link_all_deplibs_CXX=yes
10748
10749 if test "$GXX" = yes ; then
10750 lt_int_apple_cc_single_mod=no
10751 output_verbose_link_cmd='echo'
10752 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10753 lt_int_apple_cc_single_mod=yes
10754 fi
10755 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10756 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10757 else
10758 archive_cmds_CXX='$CC -r -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'
10759 fi
10760 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10761 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10762 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10763 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}'
10764 else
10765 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
10766 fi
10767 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10768 else
10769 case $cc_basename in
10770 xlc*)
10771 output_verbose_link_cmd='echo'
10772 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10773 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10774 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10775 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10776 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10777 ;;
10778 *)
10779 ld_shlibs_CXX=no
10780 ;;
10781 esac
10782 fi
10783 ;;
10784
10785 dgux*)
10786 case $cc_basename in
10787 ec++*)
10788 # FIXME: insert proper C++ library support
10789 ld_shlibs_CXX=no
10790 ;;
10791 ghcx*)
10792 # Green Hills C++ Compiler
10793 # FIXME: insert proper C++ library support
10794 ld_shlibs_CXX=no
10795 ;;
10796 *)
10797 # FIXME: insert proper C++ library support
10798 ld_shlibs_CXX=no
10799 ;;
10800 esac
10801 ;;
10802 freebsd[12]*)
10803 # C++ shared libraries reported to be fairly broken before switch to ELF
10804 ld_shlibs_CXX=no
10805 ;;
10806 freebsd-elf*)
10807 archive_cmds_need_lc_CXX=no
10808 ;;
10809 freebsd* | kfreebsd*-gnu | dragonfly*)
10810 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10811 # conventions
10812 ld_shlibs_CXX=yes
10813 ;;
10814 gnu*)
10815 ;;
10816 hpux9*)
10817 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10818 hardcode_libdir_separator_CXX=:
10819 export_dynamic_flag_spec_CXX='${wl}-E'
10820 hardcode_direct_CXX=yes
10821 hardcode_minus_L_CXX=yes # Not in the search PATH,
10822 # but as the default
10823 # location of the library.
10824
10825 case $cc_basename in
10826 CC*)
10827 # FIXME: insert proper C++ library support
10828 ld_shlibs_CXX=no
10829 ;;
10830 aCC*)
10831 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'
10832 # Commands to make compiler produce verbose output that lists
10833 # what "hidden" libraries, object files and flags are used when
10834 # linking a shared library.
10835 #
10836 # There doesn't appear to be a way to prevent this compiler from
10837 # explicitly linking system object files so we need to strip them
10838 # from the output so that they don't get included in the library
10839 # dependencies.
10840 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'
10841 ;;
10842 *)
10843 if test "$GXX" = yes; then
10844 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'
10845 else
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 fi
10849 ;;
10850 esac
10851 ;;
10852 hpux10*|hpux11*)
10853 if test $with_gnu_ld = no; then
10854 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10855 hardcode_libdir_separator_CXX=:
10856
10857 case $host_cpu in
10858 hppa*64*|ia64*)
10859 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10860 ;;
10861 *)
10862 export_dynamic_flag_spec_CXX='${wl}-E'
10863 ;;
10864 esac
10865 fi
10866 case $host_cpu in
10867 hppa*64*|ia64*)
10868 hardcode_direct_CXX=no
10869 hardcode_shlibpath_var_CXX=no
10870 ;;
10871 *)
10872 hardcode_direct_CXX=yes
10873 hardcode_minus_L_CXX=yes # Not in the search PATH,
10874 # but as the default
10875 # location of the library.
10876 ;;
10877 esac
10878
10879 case $cc_basename in
10880 CC*)
10881 # FIXME: insert proper C++ library support
10882 ld_shlibs_CXX=no
10883 ;;
10884 aCC*)
10885 case $host_cpu in
10886 hppa*64*)
10887 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10888 ;;
10889 ia64*)
10890 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10891 ;;
10892 *)
10893 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10894 ;;
10895 esac
10896 # Commands to make compiler produce verbose output that lists
10897 # what "hidden" libraries, object files and flags are used when
10898 # linking a shared library.
10899 #
10900 # There doesn't appear to be a way to prevent this compiler from
10901 # explicitly linking system object files so we need to strip them
10902 # from the output so that they don't get included in the library
10903 # dependencies.
10904 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'
10905 ;;
10906 *)
10907 if test "$GXX" = yes; then
10908 if test $with_gnu_ld = no; then
10909 case $host_cpu in
10910 hppa*64*)
10911 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10912 ;;
10913 ia64*)
10914 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10915 ;;
10916 *)
10917 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'
10918 ;;
10919 esac
10920 fi
10921 else
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 fi
10925 ;;
10926 esac
10927 ;;
10928 interix3*)
10929 hardcode_direct_CXX=no
10930 hardcode_shlibpath_var_CXX=no
10931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10932 export_dynamic_flag_spec_CXX='${wl}-E'
10933 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10934 # Instead, shared libraries are loaded at an image base (0x10000000 by
10935 # default) and relocated if they conflict, which is a slow very memory
10936 # consuming and fragmenting process. To avoid this, we pick a random,
10937 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10938 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10939 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10940 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10941 ;;
10942 irix5* | irix6*)
10943 case $cc_basename in
10944 CC*)
10945 # SGI C++
10946 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 ${output_objdir}/so_locations -o $lib'
10947
10948 # Archives containing C++ object files must be created using
10949 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10950 # necessary to make sure instantiated templates are included
10951 # in the archive.
10952 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10953 ;;
10954 *)
10955 if test "$GXX" = yes; then
10956 if test "$with_gnu_ld" = no; then
10957 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}${output_objdir}/so_locations -o $lib'
10958 else
10959 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'
10960 fi
10961 fi
10962 link_all_deplibs_CXX=yes
10963 ;;
10964 esac
10965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10966 hardcode_libdir_separator_CXX=:
10967 ;;
10968 linux*)
10969 case $cc_basename in
10970 KCC*)
10971 # Kuck and Associates, Inc. (KAI) C++ Compiler
10972
10973 # KCC will only create a shared library if the output file
10974 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10975 # to its proper name (with version) after linking.
10976 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'
10977 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'
10978 # Commands to make compiler produce verbose output that lists
10979 # what "hidden" libraries, object files and flags are used when
10980 # linking a shared library.
10981 #
10982 # There doesn't appear to be a way to prevent this compiler from
10983 # explicitly linking system object files so we need to strip them
10984 # from the output so that they don't get included in the library
10985 # dependencies.
10986 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'
10987
10988 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10990
10991 # Archives containing C++ object files must be created using
10992 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10993 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10994 ;;
10995 icpc*)
10996 # Intel C++
10997 with_gnu_ld=yes
10998 # version 8.0 and above of icpc choke on multiply defined symbols
10999 # if we add $predep_objects and $postdep_objects, however 7.1 and
11000 # earlier do not add the objects themselves.
11001 case `$CC -V 2>&1` in
11002 *"Version 7."*)
11003 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11004 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'
11005 ;;
11006 *) # Version 8.0 or newer
11007 tmp_idyn=
11008 case $host_cpu in
11009 ia64*) tmp_idyn=' -i_dynamic';;
11010 esac
11011 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11012 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11013 ;;
11014 esac
11015 archive_cmds_need_lc_CXX=no
11016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11017 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11018 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11019 ;;
11020 pgCC*)
11021 # Portland Group C++ compiler
11022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11023 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11024
11025 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11027 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11028 ;;
11029 cxx*)
11030 # Compaq C++
11031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 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'
11033
11034 runpath_var=LD_RUN_PATH
11035 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11036 hardcode_libdir_separator_CXX=:
11037
11038 # Commands to make compiler produce verbose output that lists
11039 # what "hidden" libraries, object files and flags are used when
11040 # linking a shared library.
11041 #
11042 # There doesn't appear to be a way to prevent this compiler from
11043 # explicitly linking system object files so we need to strip them
11044 # from the output so that they don't get included in the library
11045 # dependencies.
11046 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'
11047 ;;
11048 esac
11049 ;;
11050 lynxos*)
11051 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no
11053 ;;
11054 m88k*)
11055 # FIXME: insert proper C++ library support
11056 ld_shlibs_CXX=no
11057 ;;
11058 mvs*)
11059 case $cc_basename in
11060 cxx*)
11061 # FIXME: insert proper C++ library support
11062 ld_shlibs_CXX=no
11063 ;;
11064 *)
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11067 ;;
11068 esac
11069 ;;
11070 netbsd*)
11071 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11072 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11073 wlarc=
11074 hardcode_libdir_flag_spec_CXX='-R$libdir'
11075 hardcode_direct_CXX=yes
11076 hardcode_shlibpath_var_CXX=no
11077 fi
11078 # Workaround some broken pre-1.5 toolchains
11079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11080 ;;
11081 openbsd2*)
11082 # C++ shared libraries are fairly broken
11083 ld_shlibs_CXX=no
11084 ;;
11085 openbsd*)
11086 hardcode_direct_CXX=yes
11087 hardcode_shlibpath_var_CXX=no
11088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11089 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11092 export_dynamic_flag_spec_CXX='${wl}-E'
11093 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11094 fi
11095 output_verbose_link_cmd='echo'
11096 ;;
11097 osf3*)
11098 case $cc_basename in
11099 KCC*)
11100 # Kuck and Associates, Inc. (KAI) C++ Compiler
11101
11102 # KCC will only create a shared library if the output file
11103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11104 # to its proper name (with version) after linking.
11105 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'
11106
11107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11108 hardcode_libdir_separator_CXX=:
11109
11110 # Archives containing C++ object files must be created using
11111 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11112 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11113
11114 ;;
11115 RCC*)
11116 # Rational C++ 2.4.1
11117 # FIXME: insert proper C++ library support
11118 ld_shlibs_CXX=no
11119 ;;
11120 cxx*)
11121 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11122 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 ${output_objdir}/so_locations -o $lib'
11123
11124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11125 hardcode_libdir_separator_CXX=:
11126
11127 # Commands to make compiler produce verbose output that lists
11128 # what "hidden" libraries, object files and flags are used when
11129 # linking a shared library.
11130 #
11131 # There doesn't appear to be a way to prevent this compiler from
11132 # explicitly linking system object files so we need to strip them
11133 # from the output so that they don't get included in the library
11134 # dependencies.
11135 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'
11136 ;;
11137 *)
11138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11139 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11140 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}${output_objdir}/so_locations -o $lib'
11141
11142 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11143 hardcode_libdir_separator_CXX=:
11144
11145 # Commands to make compiler produce verbose output that lists
11146 # what "hidden" libraries, object files and flags are used when
11147 # linking a shared library.
11148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11149
11150 else
11151 # FIXME: insert proper C++ library support
11152 ld_shlibs_CXX=no
11153 fi
11154 ;;
11155 esac
11156 ;;
11157 osf4* | osf5*)
11158 case $cc_basename in
11159 KCC*)
11160 # Kuck and Associates, Inc. (KAI) C++ Compiler
11161
11162 # KCC will only create a shared library if the output file
11163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11164 # to its proper name (with version) after linking.
11165 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'
11166
11167 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11168 hardcode_libdir_separator_CXX=:
11169
11170 # Archives containing C++ object files must be created using
11171 # the KAI C++ compiler.
11172 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11173 ;;
11174 RCC*)
11175 # Rational C++ 2.4.1
11176 # FIXME: insert proper C++ library support
11177 ld_shlibs_CXX=no
11178 ;;
11179 cxx*)
11180 allow_undefined_flag_CXX=' -expect_unresolved \*'
11181 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 ${output_objdir}/so_locations -o $lib'
11182 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11183 echo "-hidden">> $lib.exp~
11184 $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 ${output_objdir}/so_locations -o $lib~
11185 $rm $lib.exp'
11186
11187 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11188 hardcode_libdir_separator_CXX=:
11189
11190 # Commands to make compiler produce verbose output that lists
11191 # what "hidden" libraries, object files and flags are used when
11192 # linking a shared library.
11193 #
11194 # There doesn't appear to be a way to prevent this compiler from
11195 # explicitly linking system object files so we need to strip them
11196 # from the output so that they don't get included in the library
11197 # dependencies.
11198 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'
11199 ;;
11200 *)
11201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11203 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}${output_objdir}/so_locations -o $lib'
11204
11205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11206 hardcode_libdir_separator_CXX=:
11207
11208 # Commands to make compiler produce verbose output that lists
11209 # what "hidden" libraries, object files and flags are used when
11210 # linking a shared library.
11211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11212
11213 else
11214 # FIXME: insert proper C++ library support
11215 ld_shlibs_CXX=no
11216 fi
11217 ;;
11218 esac
11219 ;;
11220 psos*)
11221 # FIXME: insert proper C++ library support
11222 ld_shlibs_CXX=no
11223 ;;
11224 sunos4*)
11225 case $cc_basename in
11226 CC*)
11227 # Sun C++ 4.x
11228 # FIXME: insert proper C++ library support
11229 ld_shlibs_CXX=no
11230 ;;
11231 lcc*)
11232 # Lucid
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11235 ;;
11236 *)
11237 # FIXME: insert proper C++ library support
11238 ld_shlibs_CXX=no
11239 ;;
11240 esac
11241 ;;
11242 solaris*)
11243 case $cc_basename in
11244 CC*)
11245 # Sun C++ 4.2, 5.x and Centerline C++
11246 archive_cmds_need_lc_CXX=yes
11247 no_undefined_flag_CXX=' -zdefs'
11248 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11250 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11251
11252 hardcode_libdir_flag_spec_CXX='-R$libdir'
11253 hardcode_shlibpath_var_CXX=no
11254 case $host_os in
11255 solaris2.[0-5] | solaris2.[0-5].*) ;;
11256 *)
11257 # The C++ compiler is used as linker so we must use $wl
11258 # flag to pass the commands to the underlying system
11259 # linker. We must also pass each convience library through
11260 # to the system linker between allextract/defaultextract.
11261 # The C++ compiler will combine linker options so we
11262 # cannot just pass the convience library names through
11263 # without $wl.
11264 # Supported since Solaris 2.6 (maybe 2.5.1?)
11265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11266 ;;
11267 esac
11268 link_all_deplibs_CXX=yes
11269
11270 output_verbose_link_cmd='echo'
11271
11272 # Archives containing C++ object files must be created using
11273 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11274 # necessary to make sure instantiated templates are included
11275 # in the archive.
11276 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11277 ;;
11278 gcx*)
11279 # Green Hills C++ Compiler
11280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11281
11282 # The C++ compiler must be used to create the archive.
11283 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11284 ;;
11285 *)
11286 # GNU C++ compiler with Solaris linker
11287 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11288 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11289 if $CC --version | grep -v '^2\.7' > /dev/null; then
11290 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11291 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11292 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11293
11294 # Commands to make compiler produce verbose output that lists
11295 # what "hidden" libraries, object files and flags are used when
11296 # linking a shared library.
11297 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11298 else
11299 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11300 # platform.
11301 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11302 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11303 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304
11305 # Commands to make compiler produce verbose output that lists
11306 # what "hidden" libraries, object files and flags are used when
11307 # linking a shared library.
11308 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11309 fi
11310
11311 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11312 fi
11313 ;;
11314 esac
11315 ;;
11316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11317 no_undefined_flag_CXX='${wl}-z,text'
11318 archive_cmds_need_lc_CXX=no
11319 hardcode_shlibpath_var_CXX=no
11320 runpath_var='LD_RUN_PATH'
11321
11322 case $cc_basename in
11323 CC*)
11324 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 ;;
11327 *)
11328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 ;;
11331 esac
11332 ;;
11333 sysv5* | sco3.2v5* | sco5v6*)
11334 # Note: We can NOT use -z defs as we might desire, because we do not
11335 # link with -lc, and that would cause any symbols used from libc to
11336 # always be unresolved, which means just about no library would
11337 # ever link correctly. If we're not using GNU ld we use -z text
11338 # though, which does catch some bad symbols but isn't as heavy-handed
11339 # as -z defs.
11340 # For security reasons, it is highly recommended that you always
11341 # use absolute paths for naming shared libraries, and exclude the
11342 # DT_RUNPATH tag from executables and libraries. But doing so
11343 # requires that you compile everything twice, which is a pain.
11344 # So that behaviour is only enabled if SCOABSPATH is set to a
11345 # non-empty value in the environment. Most likely only useful for
11346 # creating official distributions of packages.
11347 # This is a hack until libtool officially supports absolute path
11348 # names for shared libraries.
11349 no_undefined_flag_CXX='${wl}-z,text'
11350 allow_undefined_flag_CXX='${wl}-z,nodefs'
11351 archive_cmds_need_lc_CXX=no
11352 hardcode_shlibpath_var_CXX=no
11353 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11354 hardcode_libdir_separator_CXX=':'
11355 link_all_deplibs_CXX=yes
11356 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11357 runpath_var='LD_RUN_PATH'
11358
11359 case $cc_basename in
11360 CC*)
11361 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 ;;
11364 *)
11365 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 ;;
11368 esac
11369 ;;
11370 tandem*)
11371 case $cc_basename in
11372 NCC*)
11373 # NonStop-UX NCC 3.20
11374 # FIXME: insert proper C++ library support
11375 ld_shlibs_CXX=no
11376 ;;
11377 *)
11378 # FIXME: insert proper C++ library support
11379 ld_shlibs_CXX=no
11380 ;;
11381 esac
11382 ;;
11383 vxworks*)
11384 # FIXME: insert proper C++ library support
11385 ld_shlibs_CXX=no
11386 ;;
11387 *)
11388 # FIXME: insert proper C++ library support
11389 ld_shlibs_CXX=no
11390 ;;
11391esac
11392echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11393echo "${ECHO_T}$ld_shlibs_CXX" >&6
11394test "$ld_shlibs_CXX" = no && can_build_shared=no
11395
11396GCC_CXX="$GXX"
11397LD_CXX="$LD"
11398
11399
11400cat > conftest.$ac_ext <<EOF
11401class Foo
11402{
11403public:
11404 Foo (void) { a = 0; }
11405private:
11406 int a;
11407};
11408EOF
11409
11410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; then
11415 # Parse the compiler output and extract the necessary
11416 # objects, libraries and library flags.
11417
11418 # Sentinel used to keep track of whether or not we are before
11419 # the conftest object file.
11420 pre_test_object_deps_done=no
11421
11422 # The `*' in the case matches for architectures that use `case' in
11423 # $output_verbose_cmd can trigger glob expansion during the loop
11424 # eval without this substitution.
11425 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11426
11427 for p in `eval $output_verbose_link_cmd`; do
11428 case $p in
11429
11430 -L* | -R* | -l*)
11431 # Some compilers place space between "-{L,R}" and the path.
11432 # Remove the space.
11433 if test $p = "-L" \
11434 || test $p = "-R"; then
11435 prev=$p
11436 continue
11437 else
11438 prev=
11439 fi
11440
11441 if test "$pre_test_object_deps_done" = no; then
11442 case $p in
11443 -L* | -R*)
11444 # Internal compiler library paths should come after those
11445 # provided the user. The postdeps already come after the
11446 # user supplied libs so there is no need to process them.
11447 if test -z "$compiler_lib_search_path_CXX"; then
11448 compiler_lib_search_path_CXX="${prev}${p}"
11449 else
11450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11451 fi
11452 ;;
11453 # The "-l" case would never come before the object being
11454 # linked, so don't bother handling this case.
11455 esac
11456 else
11457 if test -z "$postdeps_CXX"; then
11458 postdeps_CXX="${prev}${p}"
11459 else
11460 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11461 fi
11462 fi
11463 ;;
11464
11465 *.$objext)
11466 # This assumes that the test object file only shows up
11467 # once in the compiler output.
11468 if test "$p" = "conftest.$objext"; then
11469 pre_test_object_deps_done=yes
11470 continue
11471 fi
11472
11473 if test "$pre_test_object_deps_done" = no; then
11474 if test -z "$predep_objects_CXX"; then
11475 predep_objects_CXX="$p"
11476 else
11477 predep_objects_CXX="$predep_objects_CXX $p"
11478 fi
11479 else
11480 if test -z "$postdep_objects_CXX"; then
11481 postdep_objects_CXX="$p"
11482 else
11483 postdep_objects_CXX="$postdep_objects_CXX $p"
11484 fi
11485 fi
11486 ;;
11487
11488 *) ;; # Ignore the rest.
11489
11490 esac
11491 done
11492
11493 # Clean up.
11494 rm -f a.out a.exe
11495else
11496 echo "libtool.m4: error: problem compiling CXX test program"
11497fi
11498
11499$rm -f confest.$objext
11500
11501# PORTME: override above test on systems where it is broken
11502case $host_os in
11503interix3*)
11504 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11505 # hack all around it, let's just trust "g++" to DTRT.
11506 predep_objects_CXX=
11507 postdep_objects_CXX=
11508 postdeps_CXX=
11509 ;;
11510
11511solaris*)
11512 case $cc_basename in
11513 CC*)
11514 # Adding this requires a known-good setup of shared libraries for
11515 # Sun compiler versions before 5.6, else PIC objects from an old
11516 # archive will be linked into the output, leading to subtle bugs.
11517 postdeps_CXX='-lCstd -lCrun'
11518 ;;
11519 esac
11520 ;;
11521esac
11522
11523
11524case " $postdeps_CXX " in
11525*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11526esac
11527
11528lt_prog_compiler_wl_CXX=
11529lt_prog_compiler_pic_CXX=
11530lt_prog_compiler_static_CXX=
11531
11532echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11533echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11534
11535 # C++ specific cases for pic, static, wl, etc.
11536 if test "$GXX" = yes; then
11537 lt_prog_compiler_wl_CXX='-Wl,'
11538 lt_prog_compiler_static_CXX='-static'
11539
11540 case $host_os in
11541 aix*)
11542 # All AIX code is PIC.
11543 if test "$host_cpu" = ia64; then
11544 # AIX 5 now supports IA64 processor
11545 lt_prog_compiler_static_CXX='-Bstatic'
11546 fi
11547 ;;
11548 amigaos*)
11549 # FIXME: we need at least 68020 code to build shared libraries, but
11550 # adding the `-m68020' flag to GCC prevents building anything better,
11551 # like `-m68040'.
11552 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11553 ;;
11554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11555 # PIC is the default for these OSes.
11556 ;;
11557 mingw* | os2* | pw32*)
11558 # This hack is so that the source file can tell whether it is being
11559 # built for inclusion in a dll (and should export symbols for example).
11560 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11561 ;;
11562 darwin* | rhapsody*)
11563 # PIC is the default on this platform
11564 # Common symbols not allowed in MH_DYLIB files
11565 lt_prog_compiler_pic_CXX='-fno-common'
11566 ;;
11567 *djgpp*)
11568 # DJGPP does not support shared libraries at all
11569 lt_prog_compiler_pic_CXX=
11570 ;;
11571 interix3*)
11572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11573 # Instead, we relocate shared libraries at runtime.
11574 ;;
11575 sysv4*MP*)
11576 if test -d /usr/nec; then
11577 lt_prog_compiler_pic_CXX=-Kconform_pic
11578 fi
11579 ;;
11580 hpux*)
11581 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11582 # not for PA HP-UX.
11583 case $host_cpu in
11584 hppa*64*|ia64*)
11585 ;;
11586 *)
11587 lt_prog_compiler_pic_CXX='-fPIC'
11588 ;;
11589 esac
11590 ;;
11591 *)
11592 lt_prog_compiler_pic_CXX='-fPIC'
11593 ;;
11594 esac
11595 else
11596 case $host_os in
11597 aix4* | aix5*)
11598 # All AIX code is PIC.
11599 if test "$host_cpu" = ia64; then
11600 # AIX 5 now supports IA64 processor
11601 lt_prog_compiler_static_CXX='-Bstatic'
11602 else
11603 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11604 fi
11605 ;;
11606 chorus*)
11607 case $cc_basename in
11608 cxch68*)
11609 # Green Hills C++ Compiler
11610 # _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"
11611 ;;
11612 esac
11613 ;;
11614 darwin*)
11615 # PIC is the default on this platform
11616 # Common symbols not allowed in MH_DYLIB files
11617 case $cc_basename in
11618 xlc*)
11619 lt_prog_compiler_pic_CXX='-qnocommon'
11620 lt_prog_compiler_wl_CXX='-Wl,'
11621 ;;
11622 esac
11623 ;;
11624 dgux*)
11625 case $cc_basename in
11626 ec++*)
11627 lt_prog_compiler_pic_CXX='-KPIC'
11628 ;;
11629 ghcx*)
11630 # Green Hills C++ Compiler
11631 lt_prog_compiler_pic_CXX='-pic'
11632 ;;
11633 *)
11634 ;;
11635 esac
11636 ;;
11637 freebsd* | kfreebsd*-gnu | dragonfly*)
11638 # FreeBSD uses GNU C++
11639 ;;
11640 hpux9* | hpux10* | hpux11*)
11641 case $cc_basename in
11642 CC*)
11643 lt_prog_compiler_wl_CXX='-Wl,'
11644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11645 if test "$host_cpu" != ia64; then
11646 lt_prog_compiler_pic_CXX='+Z'
11647 fi
11648 ;;
11649 aCC*)
11650 lt_prog_compiler_wl_CXX='-Wl,'
11651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11652 case $host_cpu in
11653 hppa*64*|ia64*)
11654 # +Z the default
11655 ;;
11656 *)
11657 lt_prog_compiler_pic_CXX='+Z'
11658 ;;
11659 esac
11660 ;;
11661 *)
11662 ;;
11663 esac
11664 ;;
11665 interix*)
11666 # This is c89, which is MS Visual C++ (no shared libs)
11667 # Anyone wants to do a port?
11668 ;;
11669 irix5* | irix6* | nonstopux*)
11670 case $cc_basename in
11671 CC*)
11672 lt_prog_compiler_wl_CXX='-Wl,'
11673 lt_prog_compiler_static_CXX='-non_shared'
11674 # CC pic flag -KPIC is the default.
11675 ;;
11676 *)
11677 ;;
11678 esac
11679 ;;
11680 linux*)
11681 case $cc_basename in
11682 KCC*)
11683 # KAI C++ Compiler
11684 lt_prog_compiler_wl_CXX='--backend -Wl,'
11685 lt_prog_compiler_pic_CXX='-fPIC'
11686 ;;
11687 icpc* | ecpc*)
11688 # Intel C++
11689 lt_prog_compiler_wl_CXX='-Wl,'
11690 lt_prog_compiler_pic_CXX='-KPIC'
11691 lt_prog_compiler_static_CXX='-static'
11692 ;;
11693 pgCC*)
11694 # Portland Group C++ compiler.
11695 lt_prog_compiler_wl_CXX='-Wl,'
11696 lt_prog_compiler_pic_CXX='-fpic'
11697 lt_prog_compiler_static_CXX='-Bstatic'
11698 ;;
11699 cxx*)
11700 # Compaq C++
11701 # Make sure the PIC flag is empty. It appears that all Alpha
11702 # Linux and Compaq Tru64 Unix objects are PIC.
11703 lt_prog_compiler_pic_CXX=
11704 lt_prog_compiler_static_CXX='-non_shared'
11705 ;;
11706 *)
11707 ;;
11708 esac
11709 ;;
11710 lynxos*)
11711 ;;
11712 m88k*)
11713 ;;
11714 mvs*)
11715 case $cc_basename in
11716 cxx*)
11717 lt_prog_compiler_pic_CXX='-W c,exportall'
11718 ;;
11719 *)
11720 ;;
11721 esac
11722 ;;
11723 netbsd*)
11724 ;;
11725 osf3* | osf4* | osf5*)
11726 case $cc_basename in
11727 KCC*)
11728 lt_prog_compiler_wl_CXX='--backend -Wl,'
11729 ;;
11730 RCC*)
11731 # Rational C++ 2.4.1
11732 lt_prog_compiler_pic_CXX='-pic'
11733 ;;
11734 cxx*)
11735 # Digital/Compaq C++
11736 lt_prog_compiler_wl_CXX='-Wl,'
11737 # Make sure the PIC flag is empty. It appears that all Alpha
11738 # Linux and Compaq Tru64 Unix objects are PIC.
11739 lt_prog_compiler_pic_CXX=
11740 lt_prog_compiler_static_CXX='-non_shared'
11741 ;;
11742 *)
11743 ;;
11744 esac
11745 ;;
11746 psos*)
11747 ;;
11748 solaris*)
11749 case $cc_basename in
11750 CC*)
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 lt_prog_compiler_pic_CXX='-KPIC'
11753 lt_prog_compiler_static_CXX='-Bstatic'
11754 lt_prog_compiler_wl_CXX='-Qoption ld '
11755 ;;
11756 gcx*)
11757 # Green Hills C++ Compiler
11758 lt_prog_compiler_pic_CXX='-PIC'
11759 ;;
11760 *)
11761 ;;
11762 esac
11763 ;;
11764 sunos4*)
11765 case $cc_basename in
11766 CC*)
11767 # Sun C++ 4.x
11768 lt_prog_compiler_pic_CXX='-pic'
11769 lt_prog_compiler_static_CXX='-Bstatic'
11770 ;;
11771 lcc*)
11772 # Lucid
11773 lt_prog_compiler_pic_CXX='-pic'
11774 ;;
11775 *)
11776 ;;
11777 esac
11778 ;;
11779 tandem*)
11780 case $cc_basename in
11781 NCC*)
11782 # NonStop-UX NCC 3.20
11783 lt_prog_compiler_pic_CXX='-KPIC'
11784 ;;
11785 *)
11786 ;;
11787 esac
11788 ;;
11789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11790 case $cc_basename in
11791 CC*)
11792 lt_prog_compiler_wl_CXX='-Wl,'
11793 lt_prog_compiler_pic_CXX='-KPIC'
11794 lt_prog_compiler_static_CXX='-Bstatic'
11795 ;;
11796 esac
11797 ;;
11798 vxworks*)
11799 ;;
11800 *)
11801 lt_prog_compiler_can_build_shared_CXX=no
11802 ;;
11803 esac
11804 fi
11805
11806echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11807echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11808
11809#
11810# Check to make sure the PIC flag actually works.
11811#
11812if test -n "$lt_prog_compiler_pic_CXX"; then
11813
11814echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11815echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11816if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818else
11819 lt_prog_compiler_pic_works_CXX=no
11820 ac_outfile=conftest.$ac_objext
11821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11822 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11823 # Insert the option either (1) after the last *FLAGS variable, or
11824 # (2) before a word containing "conftest.", or (3) at the end.
11825 # Note that $ac_compile itself does not contain backslashes and begins
11826 # with a dollar sign (not a hyphen), so the echo should work correctly.
11827 # The option is referenced via a variable to avoid confusing sed.
11828 lt_compile=`echo "$ac_compile" | $SED \
11829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11831 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 11832 (eval echo "\"\$as_me:11832: $lt_compile\"" >&5)
bf9f3bac 11833 (eval "$lt_compile" 2>conftest.err)
11834 ac_status=$?
11835 cat conftest.err >&5
0cbaeb11 11836 echo "$as_me:11836: \$? = $ac_status" >&5
bf9f3bac 11837 if (exit $ac_status) && test -s "$ac_outfile"; then
11838 # The compiler can only warn and ignore the option if not recognized
11839 # So say no if there are warnings other than the usual output.
11840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11843 lt_prog_compiler_pic_works_CXX=yes
11844 fi
11845 fi
11846 $rm conftest*
11847
11848fi
11849echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11850echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11851
11852if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11853 case $lt_prog_compiler_pic_CXX in
11854 "" | " "*) ;;
11855 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11856 esac
11857else
11858 lt_prog_compiler_pic_CXX=
11859 lt_prog_compiler_can_build_shared_CXX=no
11860fi
11861
11862fi
11863case $host_os in
11864 # For platforms which do not support PIC, -DPIC is meaningless:
11865 *djgpp*)
11866 lt_prog_compiler_pic_CXX=
11867 ;;
11868 *)
11869 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11870 ;;
11871esac
11872
11873#
11874# Check to make sure the static flag actually works.
11875#
11876wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11877echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11878echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11879if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 lt_prog_compiler_static_works_CXX=no
11883 save_LDFLAGS="$LDFLAGS"
11884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11885 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11887 # The linker can only warn and ignore the option if not recognized
11888 # So say no if there are warnings
11889 if test -s conftest.err; then
11890 # Append any errors to the config.log.
11891 cat conftest.err 1>&5
11892 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11894 if diff conftest.exp conftest.er2 >/dev/null; then
11895 lt_prog_compiler_static_works_CXX=yes
11896 fi
11897 else
11898 lt_prog_compiler_static_works_CXX=yes
11899 fi
11900 fi
11901 $rm conftest*
11902 LDFLAGS="$save_LDFLAGS"
11903
11904fi
11905echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11906echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11907
11908if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11909 :
11910else
11911 lt_prog_compiler_static_CXX=
11912fi
11913
11914
11915echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11916echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11917if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 lt_cv_prog_compiler_c_o_CXX=no
11921 $rm -r conftest 2>/dev/null
11922 mkdir conftest
11923 cd conftest
11924 mkdir out
11925 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11926
11927 lt_compiler_flag="-o out/conftest2.$ac_objext"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 lt_compile=`echo "$ac_compile" | $SED \
11933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11935 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 11936 (eval echo "\"\$as_me:11936: $lt_compile\"" >&5)
bf9f3bac 11937 (eval "$lt_compile" 2>out/conftest.err)
11938 ac_status=$?
11939 cat out/conftest.err >&5
0cbaeb11 11940 echo "$as_me:11940: \$? = $ac_status" >&5
bf9f3bac 11941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11942 then
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings
11945 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_c_o_CXX=yes
11949 fi
11950 fi
11951 chmod u+w . 2>&5
11952 $rm conftest*
11953 # SGI C++ compiler will create directory out/ii_files/ for
11954 # template instantiation
11955 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11956 $rm out/* && rmdir out
11957 cd ..
11958 rmdir conftest
11959 $rm conftest*
11960
11961fi
11962echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11963echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11964
11965
11966hard_links="nottested"
11967if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11968 # do not overwrite the value of need_locks provided by the user
11969 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11970echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11971 hard_links=yes
11972 $rm conftest*
11973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11974 touch conftest.a
11975 ln conftest.a conftest.b 2>&5 || hard_links=no
11976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11977 echo "$as_me:$LINENO: result: $hard_links" >&5
11978echo "${ECHO_T}$hard_links" >&6
11979 if test "$hard_links" = no; then
11980 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11981echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11982 need_locks=warn
11983 fi
11984else
11985 need_locks=no
11986fi
11987
11988echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11989echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11990
11991 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11992 case $host_os in
11993 aix4* | aix5*)
11994 # If we're using GNU nm, then we don't want the "-C" option.
11995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11996 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11997 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'
11998 else
11999 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'
12000 fi
12001 ;;
12002 pw32*)
12003 export_symbols_cmds_CXX="$ltdll_cmds"
12004 ;;
12005 cygwin* | mingw*)
12006 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12007 ;;
12008 *)
12009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12010 ;;
12011 esac
12012
12013echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12014echo "${ECHO_T}$ld_shlibs_CXX" >&6
12015test "$ld_shlibs_CXX" = no && can_build_shared=no
12016
12017#
12018# Do we need to explicitly link libc?
12019#
12020case "x$archive_cmds_need_lc_CXX" in
12021x|xyes)
12022 # Assume -lc should be added
12023 archive_cmds_need_lc_CXX=yes
12024
12025 if test "$enable_shared" = yes && test "$GCC" = yes; then
12026 case $archive_cmds_CXX in
12027 *'~'*)
12028 # FIXME: we may have to deal with multi-command sequences.
12029 ;;
12030 '$CC '*)
12031 # Test whether the compiler implicitly links with -lc since on some
12032 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12033 # to ld, don't add -lc before -lgcc.
12034 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12035echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12036 $rm conftest*
12037 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12038
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } 2>conftest.err; then
12044 soname=conftest
12045 lib=conftest
12046 libobjs=conftest.$ac_objext
12047 deplibs=
12048 wl=$lt_prog_compiler_wl_CXX
12049 pic_flag=$lt_prog_compiler_pic_CXX
12050 compiler_flags=-v
12051 linker_flags=-v
12052 verstring=
12053 output_objdir=.
12054 libname=conftest
12055 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12056 allow_undefined_flag_CXX=
12057 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12058 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }
12062 then
12063 archive_cmds_need_lc_CXX=no
12064 else
12065 archive_cmds_need_lc_CXX=yes
12066 fi
12067 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12068 else
12069 cat conftest.err 1>&5
12070 fi
12071 $rm conftest*
12072 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12073echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12074 ;;
12075 esac
12076 fi
12077 ;;
12078esac
12079
12080echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12081echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12082library_names_spec=
12083libname_spec='lib$name'
12084soname_spec=
12085shrext_cmds=".so"
12086postinstall_cmds=
12087postuninstall_cmds=
12088finish_cmds=
12089finish_eval=
12090shlibpath_var=
12091shlibpath_overrides_runpath=unknown
12092version_type=none
12093dynamic_linker="$host_os ld.so"
12094sys_lib_dlsearch_path_spec="/lib /usr/lib"
12095if test "$GCC" = yes; then
12096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12097 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12098 # if the path contains ";" then we assume it to be the separator
12099 # otherwise default to the standard path separator (i.e. ":") - it is
12100 # assumed that no part of a normal pathname contains ";" but that should
12101 # okay in the real world where ";" in dirpaths is itself problematic.
12102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12103 else
12104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12105 fi
12106else
12107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12108fi
12109need_lib_prefix=unknown
12110hardcode_into_libs=no
12111
12112# when you set need_version to no, make sure it does not cause -set_version
12113# flags to be left without arguments
12114need_version=unknown
12115
12116case $host_os in
12117aix3*)
12118 version_type=linux
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12120 shlibpath_var=LIBPATH
12121
12122 # AIX 3 has no versioning support, so we append a major version to the name.
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 ;;
12125
12126aix4* | aix5*)
12127 version_type=linux
12128 need_lib_prefix=no
12129 need_version=no
12130 hardcode_into_libs=yes
12131 if test "$host_cpu" = ia64; then
12132 # AIX 5 supports IA64
12133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12134 shlibpath_var=LD_LIBRARY_PATH
12135 else
12136 # With GCC up to 2.95.x, collect2 would create an import file
12137 # for dependence libraries. The import file would start with
12138 # the line `#! .'. This would cause the generated library to
12139 # depend on `.', always an invalid library. This was fixed in
12140 # development snapshots of GCC prior to 3.0.
12141 case $host_os in
12142 aix4 | aix4.[01] | aix4.[01].*)
12143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12144 echo ' yes '
12145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12146 :
12147 else
12148 can_build_shared=no
12149 fi
12150 ;;
12151 esac
12152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12153 # soname into executable. Probably we can add versioning support to
12154 # collect2, so additional links can be useful in future.
12155 if test "$aix_use_runtimelinking" = yes; then
12156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12157 # instead of lib<name>.a to let people know that these are not
12158 # typical AIX shared libraries.
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 else
12161 # We preserve .a as extension for shared libraries through AIX4.2
12162 # and later when we are not doing run time linking.
12163 library_names_spec='${libname}${release}.a $libname.a'
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 fi
12166 shlibpath_var=LIBPATH
12167 fi
12168 ;;
12169
12170amigaos*)
12171 library_names_spec='$libname.ixlibrary $libname.a'
12172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12173 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'
12174 ;;
12175
12176beos*)
12177 library_names_spec='${libname}${shared_ext}'
12178 dynamic_linker="$host_os ld.so"
12179 shlibpath_var=LIBRARY_PATH
12180 ;;
12181
12182bsdi[45]*)
12183 version_type=linux
12184 need_version=no
12185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12186 soname_spec='${libname}${release}${shared_ext}$major'
12187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12191 # the default ld.so.conf also contains /usr/contrib/lib and
12192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12193 # libtool to hard-code these into programs
12194 ;;
12195
12196cygwin* | mingw* | pw32*)
12197 version_type=windows
12198 shrext_cmds=".dll"
12199 need_version=no
12200 need_lib_prefix=no
12201
12202 case $GCC,$host_os in
12203 yes,cygwin* | yes,mingw* | yes,pw32*)
12204 library_names_spec='$libname.dll.a'
12205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12206 postinstall_cmds='base_file=`basename \${file}`~
12207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12208 dldir=$destdir/`dirname \$dlpath`~
12209 test -d \$dldir || mkdir -p \$dldir~
12210 $install_prog $dir/$dlname \$dldir/$dlname~
12211 chmod a+x \$dldir/$dlname'
12212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12213 dlpath=$dir/\$dldll~
12214 $rm \$dlpath'
12215 shlibpath_overrides_runpath=yes
12216
12217 case $host_os in
12218 cygwin*)
12219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12222 ;;
12223 mingw*)
12224 # MinGW DLLs use traditional 'lib' prefix
12225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12228 # It is most probably a Windows format PATH printed by
12229 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12230 # path with ; separators, and with drive letters. We can handle the
12231 # drive letters (cygwin fileutils understands them), so leave them,
12232 # especially as we might pass files found there to a mingw objdump,
12233 # which wouldn't understand a cygwinified path. Ahh.
12234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12235 else
12236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12237 fi
12238 ;;
12239 pw32*)
12240 # pw32 DLLs use 'pw' prefix rather than 'lib'
12241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12242 ;;
12243 esac
12244 ;;
12245
12246 *)
12247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12248 ;;
12249 esac
12250 dynamic_linker='Win32 ld.exe'
12251 # FIXME: first we should search . and the directory the executable is in
12252 shlibpath_var=PATH
12253 ;;
12254
12255darwin* | rhapsody*)
12256 dynamic_linker="$host_os dyld"
12257 version_type=darwin
12258 need_lib_prefix=no
12259 need_version=no
12260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12261 soname_spec='${libname}${release}${major}$shared_ext'
12262 shlibpath_overrides_runpath=yes
12263 shlibpath_var=DYLD_LIBRARY_PATH
12264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12265 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12266 if test "$GCC" = yes; then
12267 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"`
12268 else
12269 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12270 fi
12271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12272 ;;
12273
12274dgux*)
12275 version_type=linux
12276 need_lib_prefix=no
12277 need_version=no
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 shlibpath_var=LD_LIBRARY_PATH
12281 ;;
12282
12283freebsd1*)
12284 dynamic_linker=no
12285 ;;
12286
12287kfreebsd*-gnu)
12288 version_type=linux
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=no
12295 hardcode_into_libs=yes
12296 dynamic_linker='GNU ld.so'
12297 ;;
12298
12299freebsd* | dragonfly*)
12300 # DragonFly does not have aout. When/if they implement a new
12301 # versioning mechanism, adjust this.
12302 if test -x /usr/bin/objformat; then
12303 objformat=`/usr/bin/objformat`
12304 else
12305 case $host_os in
12306 freebsd[123]*) objformat=aout ;;
12307 *) objformat=elf ;;
12308 esac
12309 fi
12310 version_type=freebsd-$objformat
12311 case $version_type in
12312 freebsd-elf*)
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12314 need_version=no
12315 need_lib_prefix=no
12316 ;;
12317 freebsd-*)
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12319 need_version=yes
12320 ;;
12321 esac
12322 shlibpath_var=LD_LIBRARY_PATH
12323 case $host_os in
12324 freebsd2*)
12325 shlibpath_overrides_runpath=yes
12326 ;;
12327 freebsd3.[01]* | freebsdelf3.[01]*)
12328 shlibpath_overrides_runpath=yes
12329 hardcode_into_libs=yes
12330 ;;
12331 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12332 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12333 shlibpath_overrides_runpath=no
12334 hardcode_into_libs=yes
12335 ;;
12336 freebsd*) # from 4.6 on
12337 shlibpath_overrides_runpath=yes
12338 hardcode_into_libs=yes
12339 ;;
12340 esac
12341 ;;
12342
12343gnu*)
12344 version_type=linux
12345 need_lib_prefix=no
12346 need_version=no
12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12348 soname_spec='${libname}${release}${shared_ext}$major'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 hardcode_into_libs=yes
12351 ;;
12352
12353hpux9* | hpux10* | hpux11*)
12354 # Give a soname corresponding to the major version so that dld.sl refuses to
12355 # link against other versions.
12356 version_type=sunos
12357 need_lib_prefix=no
12358 need_version=no
12359 case $host_cpu in
12360 ia64*)
12361 shrext_cmds='.so'
12362 hardcode_into_libs=yes
12363 dynamic_linker="$host_os dld.so"
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec='${libname}${release}${shared_ext}$major'
12368 if test "X$HPUX_IA64_MODE" = X32; then
12369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12370 else
12371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12372 fi
12373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12374 ;;
12375 hppa*64*)
12376 shrext_cmds='.sl'
12377 hardcode_into_libs=yes
12378 dynamic_linker="$host_os dld.sl"
12379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12382 soname_spec='${libname}${release}${shared_ext}$major'
12383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12385 ;;
12386 *)
12387 shrext_cmds='.sl'
12388 dynamic_linker="$host_os dld.sl"
12389 shlibpath_var=SHLIB_PATH
12390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392 soname_spec='${libname}${release}${shared_ext}$major'
12393 ;;
12394 esac
12395 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12396 postinstall_cmds='chmod 555 $lib'
12397 ;;
12398
12399interix3*)
12400 version_type=linux
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=no
12408 hardcode_into_libs=yes
12409 ;;
12410
12411irix5* | irix6* | nonstopux*)
12412 case $host_os in
12413 nonstopux*) version_type=nonstopux ;;
12414 *)
12415 if test "$lt_cv_prog_gnu_ld" = yes; then
12416 version_type=linux
12417 else
12418 version_type=irix
12419 fi ;;
12420 esac
12421 need_lib_prefix=no
12422 need_version=no
12423 soname_spec='${libname}${release}${shared_ext}$major'
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12425 case $host_os in
12426 irix5* | nonstopux*)
12427 libsuff= shlibsuff=
12428 ;;
12429 *)
12430 case $LD in # libtool.m4 will add one of these switches to LD
12431 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12432 libsuff= shlibsuff= libmagic=32-bit;;
12433 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12434 libsuff=32 shlibsuff=N32 libmagic=N32;;
12435 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12436 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12437 *) libsuff= shlibsuff= libmagic=never-match;;
12438 esac
12439 ;;
12440 esac
12441 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12442 shlibpath_overrides_runpath=no
12443 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12444 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12445 hardcode_into_libs=yes
12446 ;;
12447
12448# No shared lib support for Linux oldld, aout, or coff.
12449linux*oldld* | linux*aout* | linux*coff*)
12450 dynamic_linker=no
12451 ;;
12452
12453# This must be Linux ELF.
12454linux*)
12455 version_type=linux
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=no
12463 # This implies no fast_install, which is unacceptable.
12464 # Some rework will be needed to allow for fast_install
12465 # before this can be enabled.
12466 hardcode_into_libs=yes
12467
12468 # find out which ABI we are using
12469 libsuff=
12470 case "$host_cpu" in
12471 x86_64*|s390x*|powerpc64*)
0cbaeb11 12472 echo '#line 12472 "configure"' > conftest.$ac_ext
bf9f3bac 12473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12474 (eval $ac_compile) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; then
12478 case `/usr/bin/file conftest.$ac_objext` in
12479 *64-bit*)
12480 libsuff=64
12481 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12482 ;;
12483 esac
12484 fi
12485 rm -rf conftest*
12486 ;;
12487 esac
12488
12489 # Append ld.so.conf contents to the search path
12490 if test -f /etc/ld.so.conf; then
12491 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12492 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12493 fi
12494
12495 # We used to test for /lib/ld.so.1 and disable shared libraries on
12496 # powerpc, because MkLinux only supported shared libraries with the
12497 # GNU dynamic linker. Since this was broken with cross compilers,
12498 # most powerpc-linux boxes support dynamic linking these days and
12499 # people can always --disable-shared, the test was removed, and we
12500 # assume the GNU/Linux dynamic linker is in use.
12501 dynamic_linker='GNU/Linux ld.so'
12502 ;;
12503
12504knetbsd*-gnu)
12505 version_type=linux
12506 need_lib_prefix=no
12507 need_version=no
12508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12509 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 shlibpath_overrides_runpath=no
12512 hardcode_into_libs=yes
12513 dynamic_linker='GNU ld.so'
12514 ;;
12515
12516netbsd*)
12517 version_type=sunos
12518 need_lib_prefix=no
12519 need_version=no
12520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523 dynamic_linker='NetBSD (a.out) ld.so'
12524 else
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12526 soname_spec='${libname}${release}${shared_ext}$major'
12527 dynamic_linker='NetBSD ld.elf_so'
12528 fi
12529 shlibpath_var=LD_LIBRARY_PATH
12530 shlibpath_overrides_runpath=yes
12531 hardcode_into_libs=yes
12532 ;;
12533
12534newsos6)
12535 version_type=linux
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=yes
12539 ;;
12540
12541nto-qnx*)
12542 version_type=linux
12543 need_lib_prefix=no
12544 need_version=no
12545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12546 soname_spec='${libname}${release}${shared_ext}$major'
12547 shlibpath_var=LD_LIBRARY_PATH
12548 shlibpath_overrides_runpath=yes
12549 ;;
12550
12551openbsd*)
12552 version_type=sunos
12553 sys_lib_dlsearch_path_spec="/usr/lib"
12554 need_lib_prefix=no
12555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12556 case $host_os in
12557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12558 *) need_version=no ;;
12559 esac
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12564 case $host_os in
12565 openbsd2.[89] | openbsd2.[89].*)
12566 shlibpath_overrides_runpath=no
12567 ;;
12568 *)
12569 shlibpath_overrides_runpath=yes
12570 ;;
12571 esac
12572 else
12573 shlibpath_overrides_runpath=yes
12574 fi
12575 ;;
12576
12577os2*)
12578 libname_spec='$name'
12579 shrext_cmds=".dll"
12580 need_lib_prefix=no
12581 library_names_spec='$libname${shared_ext} $libname.a'
12582 dynamic_linker='OS/2 ld.exe'
12583 shlibpath_var=LIBPATH
12584 ;;
12585
12586osf3* | osf4* | osf5*)
12587 version_type=osf
12588 need_lib_prefix=no
12589 need_version=no
12590 soname_spec='${libname}${release}${shared_ext}$major'
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12595 ;;
12596
12597solaris*)
12598 version_type=linux
12599 need_lib_prefix=no
12600 need_version=no
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 # ldd complains unless libraries are executable
12607 postinstall_cmds='chmod +x $lib'
12608 ;;
12609
12610sunos4*)
12611 version_type=sunos
12612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12614 shlibpath_var=LD_LIBRARY_PATH
12615 shlibpath_overrides_runpath=yes
12616 if test "$with_gnu_ld" = yes; then
12617 need_lib_prefix=no
12618 fi
12619 need_version=yes
12620 ;;
12621
12622sysv4 | sysv4.3*)
12623 version_type=linux
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 case $host_vendor in
12628 sni)
12629 shlibpath_overrides_runpath=no
12630 need_lib_prefix=no
12631 export_dynamic_flag_spec='${wl}-Blargedynsym'
12632 runpath_var=LD_RUN_PATH
12633 ;;
12634 siemens)
12635 need_lib_prefix=no
12636 ;;
12637 motorola)
12638 need_lib_prefix=no
12639 need_version=no
12640 shlibpath_overrides_runpath=no
12641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12642 ;;
12643 esac
12644 ;;
12645
12646sysv4*MP*)
12647 if test -d /usr/nec ;then
12648 version_type=linux
12649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12650 soname_spec='$libname${shared_ext}.$major'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 fi
12653 ;;
12654
12655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12656 version_type=freebsd-elf
12657 need_lib_prefix=no
12658 need_version=no
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 shlibpath_var=LD_LIBRARY_PATH
12662 hardcode_into_libs=yes
12663 if test "$with_gnu_ld" = yes; then
12664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12665 shlibpath_overrides_runpath=no
12666 else
12667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12668 shlibpath_overrides_runpath=yes
12669 case $host_os in
12670 sco3.2v5*)
12671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12672 ;;
12673 esac
12674 fi
12675 sys_lib_dlsearch_path_spec='/usr/lib'
12676 ;;
12677
12678uts4*)
12679 version_type=linux
12680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12681 soname_spec='${libname}${release}${shared_ext}$major'
12682 shlibpath_var=LD_LIBRARY_PATH
12683 ;;
12684
12685*)
12686 dynamic_linker=no
12687 ;;
12688esac
12689echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12690echo "${ECHO_T}$dynamic_linker" >&6
12691test "$dynamic_linker" = no && can_build_shared=no
12692
12693variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12694if test "$GCC" = yes; then
12695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12696fi
12697
12698echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12699echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12700hardcode_action_CXX=
12701if test -n "$hardcode_libdir_flag_spec_CXX" || \
12702 test -n "$runpath_var_CXX" || \
12703 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12704
12705 # We can hardcode non-existant directories.
12706 if test "$hardcode_direct_CXX" != no &&
12707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12708 # have to relink, otherwise we might link with an installed library
12709 # when we should be linking with a yet-to-be-installed one
12710 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12711 test "$hardcode_minus_L_CXX" != no; then
12712 # Linking always hardcodes the temporary library directory.
12713 hardcode_action_CXX=relink
12714 else
12715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12716 hardcode_action_CXX=immediate
12717 fi
12718else
12719 # We cannot hardcode anything, or else we can only hardcode existing
12720 # directories.
12721 hardcode_action_CXX=unsupported
12722fi
12723echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12724echo "${ECHO_T}$hardcode_action_CXX" >&6
12725
12726if test "$hardcode_action_CXX" = relink; then
12727 # Fast installation is not supported
12728 enable_fast_install=no
12729elif test "$shlibpath_overrides_runpath" = yes ||
12730 test "$enable_shared" = no; then
12731 # Fast installation is not necessary
12732 enable_fast_install=needless
12733fi
12734
12735
12736# The else clause should only fire when bootstrapping the
12737# libtool distribution, otherwise you forgot to ship ltmain.sh
12738# with your package, and you will get complaints that there are
12739# no rules to generate ltmain.sh.
12740if test -f "$ltmain"; then
12741 # See if we are running on zsh, and set the options which allow our commands through
12742 # without removal of \ escapes.
12743 if test -n "${ZSH_VERSION+set}" ; then
12744 setopt NO_GLOB_SUBST
12745 fi
12746 # Now quote all the things that may contain metacharacters while being
12747 # careful not to overquote the AC_SUBSTed values. We take copies of the
12748 # variables and quote the copies for generation of the libtool script.
12749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12750 SED SHELL STRIP \
12751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12753 deplibs_check_method reload_flag reload_cmds need_locks \
12754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12755 lt_cv_sys_global_symbol_to_c_name_address \
12756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12757 old_postinstall_cmds old_postuninstall_cmds \
12758 compiler_CXX \
12759 CC_CXX \
12760 LD_CXX \
12761 lt_prog_compiler_wl_CXX \
12762 lt_prog_compiler_pic_CXX \
12763 lt_prog_compiler_static_CXX \
12764 lt_prog_compiler_no_builtin_flag_CXX \
12765 export_dynamic_flag_spec_CXX \
12766 thread_safe_flag_spec_CXX \
12767 whole_archive_flag_spec_CXX \
12768 enable_shared_with_static_runtimes_CXX \
12769 old_archive_cmds_CXX \
12770 old_archive_from_new_cmds_CXX \
12771 predep_objects_CXX \
12772 postdep_objects_CXX \
12773 predeps_CXX \
12774 postdeps_CXX \
12775 compiler_lib_search_path_CXX \
12776 archive_cmds_CXX \
12777 archive_expsym_cmds_CXX \
12778 postinstall_cmds_CXX \
12779 postuninstall_cmds_CXX \
12780 old_archive_from_expsyms_cmds_CXX \
12781 allow_undefined_flag_CXX \
12782 no_undefined_flag_CXX \
12783 export_symbols_cmds_CXX \
12784 hardcode_libdir_flag_spec_CXX \
12785 hardcode_libdir_flag_spec_ld_CXX \
12786 hardcode_libdir_separator_CXX \
12787 hardcode_automatic_CXX \
12788 module_cmds_CXX \
12789 module_expsym_cmds_CXX \
12790 lt_cv_prog_compiler_c_o_CXX \
12791 exclude_expsyms_CXX \
12792 include_expsyms_CXX; do
12793
12794 case $var in
12795 old_archive_cmds_CXX | \
12796 old_archive_from_new_cmds_CXX | \
12797 archive_cmds_CXX | \
12798 archive_expsym_cmds_CXX | \
12799 module_cmds_CXX | \
12800 module_expsym_cmds_CXX | \
12801 old_archive_from_expsyms_cmds_CXX | \
12802 export_symbols_cmds_CXX | \
12803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12804 postinstall_cmds | postuninstall_cmds | \
12805 old_postinstall_cmds | old_postuninstall_cmds | \
12806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12807 # Double-quote double-evaled strings.
12808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12809 ;;
12810 *)
12811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12812 ;;
12813 esac
12814 done
12815
12816 case $lt_echo in
12817 *'\$0 --fallback-echo"')
12818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12819 ;;
12820 esac
12821
12822cfgfile="$ofile"
12823
12824 cat <<__EOF__ >> "$cfgfile"
12825# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12826
12827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12828
12829# Shell to use when invoking shell scripts.
12830SHELL=$lt_SHELL
12831
12832# Whether or not to build shared libraries.
12833build_libtool_libs=$enable_shared
12834
12835# Whether or not to build static libraries.
12836build_old_libs=$enable_static
12837
12838# Whether or not to add -lc for building shared libraries.
12839build_libtool_need_lc=$archive_cmds_need_lc_CXX
12840
12841# Whether or not to disallow shared libs when runtime libs are static
12842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12843
12844# Whether or not to optimize for fast installation.
12845fast_install=$enable_fast_install
12846
12847# The host system.
12848host_alias=$host_alias
12849host=$host
12850host_os=$host_os
12851
12852# The build system.
12853build_alias=$build_alias
12854build=$build
12855build_os=$build_os
12856
12857# An echo program that does not interpret backslashes.
12858echo=$lt_echo
12859
12860# The archiver.
12861AR=$lt_AR
12862AR_FLAGS=$lt_AR_FLAGS
12863
12864# A C compiler.
12865LTCC=$lt_LTCC
12866
12867# LTCC compiler flags.
12868LTCFLAGS=$lt_LTCFLAGS
12869
12870# A language-specific compiler.
12871CC=$lt_compiler_CXX
12872
12873# Is the compiler the GNU C compiler?
12874with_gcc=$GCC_CXX
12875
12876gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12877gcc_ver=\`gcc -dumpversion\`
12878
12879# An ERE matcher.
12880EGREP=$lt_EGREP
12881
12882# The linker used to build libraries.
12883LD=$lt_LD_CXX
12884
12885# Whether we need hard or soft links.
12886LN_S=$lt_LN_S
12887
12888# A BSD-compatible nm program.
12889NM=$lt_NM
12890
12891# A symbol stripping program
12892STRIP=$lt_STRIP
12893
12894# Used to examine libraries when file_magic_cmd begins "file"
12895MAGIC_CMD=$MAGIC_CMD
12896
12897# Used on cygwin: DLL creation program.
12898DLLTOOL="$DLLTOOL"
12899
12900# Used on cygwin: object dumper.
12901OBJDUMP="$OBJDUMP"
12902
12903# Used on cygwin: assembler.
12904AS="$AS"
12905
12906# The name of the directory that contains temporary libtool files.
12907objdir=$objdir
12908
12909# How to create reloadable object files.
12910reload_flag=$lt_reload_flag
12911reload_cmds=$lt_reload_cmds
12912
12913# How to pass a linker flag through the compiler.
12914wl=$lt_lt_prog_compiler_wl_CXX
12915
12916# Object file suffix (normally "o").
12917objext="$ac_objext"
12918
12919# Old archive suffix (normally "a").
12920libext="$libext"
12921
12922# Shared library suffix (normally ".so").
12923shrext_cmds='$shrext_cmds'
12924
12925# Executable file suffix (normally "").
12926exeext="$exeext"
12927
12928# Additional compiler flags for building library objects.
12929pic_flag=$lt_lt_prog_compiler_pic_CXX
12930pic_mode=$pic_mode
12931
12932# What is the maximum length of a command?
12933max_cmd_len=$lt_cv_sys_max_cmd_len
12934
12935# Does compiler simultaneously support -c and -o options?
12936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12937
12938# Must we lock files when doing compilation?
12939need_locks=$lt_need_locks
12940
12941# Do we need the lib prefix for modules?
12942need_lib_prefix=$need_lib_prefix
12943
12944# Do we need a version for libraries?
12945need_version=$need_version
12946
12947# Whether dlopen is supported.
12948dlopen_support=$enable_dlopen
12949
12950# Whether dlopen of programs is supported.
12951dlopen_self=$enable_dlopen_self
12952
12953# Whether dlopen of statically linked programs is supported.
12954dlopen_self_static=$enable_dlopen_self_static
12955
12956# Compiler flag to prevent dynamic linking.
12957link_static_flag=$lt_lt_prog_compiler_static_CXX
12958
12959# Compiler flag to turn off builtin functions.
12960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12961
12962# Compiler flag to allow reflexive dlopens.
12963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12964
12965# Compiler flag to generate shared objects directly from archives.
12966whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12967
12968# Compiler flag to generate thread-safe objects.
12969thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12970
12971# Library versioning type.
12972version_type=$version_type
12973
12974# Format of library name prefix.
12975libname_spec=$lt_libname_spec
12976
12977# List of archive names. First name is the real one, the rest are links.
12978# The last name is the one that the linker finds with -lNAME.
12979library_names_spec=$lt_library_names_spec
12980
12981# The coded name of the library, if different from the real name.
12982soname_spec=$lt_soname_spec
12983
12984# Commands used to build and install an old-style archive.
12985RANLIB=$lt_RANLIB
12986old_archive_cmds=$lt_old_archive_cmds_CXX
12987old_postinstall_cmds=$lt_old_postinstall_cmds
12988old_postuninstall_cmds=$lt_old_postuninstall_cmds
12989
12990# Create an old-style archive from a shared archive.
12991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12992
12993# Create a temporary old-style archive to link instead of a shared archive.
12994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12995
12996# Commands used to build and install a shared archive.
12997archive_cmds=$lt_archive_cmds_CXX
12998archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12999postinstall_cmds=$lt_postinstall_cmds
13000postuninstall_cmds=$lt_postuninstall_cmds
13001
13002# Commands used to build a loadable module (assumed same as above if empty)
13003module_cmds=$lt_module_cmds_CXX
13004module_expsym_cmds=$lt_module_expsym_cmds_CXX
13005
13006# Commands to strip libraries.
13007old_striplib=$lt_old_striplib
13008striplib=$lt_striplib
13009
13010# Dependencies to place before the objects being linked to create a
13011# shared library.
13012predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13013
13014# Dependencies to place after the objects being linked to create a
13015# shared library.
13016postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13017
13018# Dependencies to place before the objects being linked to create a
13019# shared library.
13020predeps=$lt_predeps_CXX
13021
13022# Dependencies to place after the objects being linked to create a
13023# shared library.
13024postdeps=$lt_postdeps_CXX
13025
13026# The library search path used internally by the compiler when linking
13027# a shared library.
13028compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13029
13030# Method to check whether dependent libraries are shared objects.
13031deplibs_check_method=$lt_deplibs_check_method
13032
13033# Command to use when deplibs_check_method == file_magic.
13034file_magic_cmd=$lt_file_magic_cmd
13035
13036# Flag that allows shared libraries with undefined symbols to be built.
13037allow_undefined_flag=$lt_allow_undefined_flag_CXX
13038
13039# Flag that forces no undefined symbols.
13040no_undefined_flag=$lt_no_undefined_flag_CXX
13041
13042# Commands used to finish a libtool library installation in a directory.
13043finish_cmds=$lt_finish_cmds
13044
13045# Same as above, but a single script fragment to be evaled but not shown.
13046finish_eval=$lt_finish_eval
13047
13048# Take the output of nm and produce a listing of raw symbols and C names.
13049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13050
13051# Transform the output of nm in a proper C declaration
13052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13053
13054# Transform the output of nm in a C name address pair
13055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13056
13057# This is the shared library runtime path variable.
13058runpath_var=$runpath_var
13059
13060# This is the shared library path variable.
13061shlibpath_var=$shlibpath_var
13062
13063# Is shlibpath searched before the hard-coded library search path?
13064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13065
13066# How to hardcode a shared library path into an executable.
13067hardcode_action=$hardcode_action_CXX
13068
13069# Whether we should hardcode library paths into libraries.
13070hardcode_into_libs=$hardcode_into_libs
13071
13072# Flag to hardcode \$libdir into a binary during linking.
13073# This must work even if \$libdir does not exist.
13074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13075
13076# If ld is used when linking, flag to hardcode \$libdir into
13077# a binary during linking. This must work even if \$libdir does
13078# not exist.
13079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13080
13081# Whether we need a single -rpath flag with a separated argument.
13082hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13083
13084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13085# resulting binary.
13086hardcode_direct=$hardcode_direct_CXX
13087
13088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13089# resulting binary.
13090hardcode_minus_L=$hardcode_minus_L_CXX
13091
13092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13093# the resulting binary.
13094hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13095
13096# Set to yes if building a shared library automatically hardcodes DIR into the library
13097# and all subsequent libraries and executables linked against it.
13098hardcode_automatic=$hardcode_automatic_CXX
13099
13100# Variables whose values should be saved in libtool wrapper scripts and
13101# restored at relink time.
13102variables_saved_for_relink="$variables_saved_for_relink"
13103
13104# Whether libtool must link a program against all its dependency libraries.
13105link_all_deplibs=$link_all_deplibs_CXX
13106
13107# Compile-time system search path for libraries
13108sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13109
13110# Run-time system search path for libraries
13111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13112
13113# Fix the shell variable \$srcfile for the compiler.
13114fix_srcfile_path="$fix_srcfile_path_CXX"
13115
13116# Set to yes if exported symbols are required.
13117always_export_symbols=$always_export_symbols_CXX
13118
13119# The commands to list exported symbols.
13120export_symbols_cmds=$lt_export_symbols_cmds_CXX
13121
13122# The commands to extract the exported symbol list from a shared archive.
13123extract_expsyms_cmds=$lt_extract_expsyms_cmds
13124
13125# Symbols that should not be listed in the preloaded symbols.
13126exclude_expsyms=$lt_exclude_expsyms_CXX
13127
13128# Symbols that must always be exported.
13129include_expsyms=$lt_include_expsyms_CXX
13130
13131# ### END LIBTOOL TAG CONFIG: $tagname
13132
13133__EOF__
13134
13135
13136else
13137 # If there is no Makefile yet, we rely on a make rule to execute
13138 # `config.status --recheck' to rerun these tests and create the
13139 # libtool script then.
13140 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13141 if test -f "$ltmain_in"; then
13142 test -f Makefile && make "$ltmain"
13143 fi
13144fi
13145
13146
13147ac_ext=c
13148ac_cpp='$CPP $CPPFLAGS'
13149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151ac_compiler_gnu=$ac_cv_c_compiler_gnu
13152
13153CC=$lt_save_CC
13154LDCXX=$LD
13155LD=$lt_save_LD
13156GCC=$lt_save_GCC
13157with_gnu_ldcxx=$with_gnu_ld
13158with_gnu_ld=$lt_save_with_gnu_ld
13159lt_cv_path_LDCXX=$lt_cv_path_LD
13160lt_cv_path_LD=$lt_save_path_LD
13161lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13162lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13163
13164 else
13165 tagname=""
13166 fi
13167 ;;
13168
13169 F77)
13170 if test -n "$F77" && test "X$F77" != "Xno"; then
13171
13172ac_ext=f
13173ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13174ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13176
13177
13178archive_cmds_need_lc_F77=no
13179allow_undefined_flag_F77=
13180always_export_symbols_F77=no
13181archive_expsym_cmds_F77=
13182export_dynamic_flag_spec_F77=
13183hardcode_direct_F77=no
13184hardcode_libdir_flag_spec_F77=
13185hardcode_libdir_flag_spec_ld_F77=
13186hardcode_libdir_separator_F77=
13187hardcode_minus_L_F77=no
13188hardcode_automatic_F77=no
13189module_cmds_F77=
13190module_expsym_cmds_F77=
13191link_all_deplibs_F77=unknown
13192old_archive_cmds_F77=$old_archive_cmds
13193no_undefined_flag_F77=
13194whole_archive_flag_spec_F77=
13195enable_shared_with_static_runtimes_F77=no
13196
13197# Source file extension for f77 test sources.
13198ac_ext=f
13199
13200# Object file extension for compiled f77 test sources.
13201objext=o
13202objext_F77=$objext
13203
13204# Code to be used in simple compile tests
13205lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13206
13207# Code to be used in simple link tests
13208lt_simple_link_test_code=" program t\n end\n"
13209
13210# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13211
13212# If no C compiler was specified, use CC.
13213LTCC=${LTCC-"$CC"}
13214
13215# If no C compiler flags were specified, use CFLAGS.
13216LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13217
13218# Allow CC to be a program name with arguments.
13219compiler=$CC
13220
13221
13222# save warnings/boilerplate of simple test code
13223ac_outfile=conftest.$ac_objext
13224printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13225eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13226_lt_compiler_boilerplate=`cat conftest.err`
13227$rm conftest*
13228
13229ac_outfile=conftest.$ac_objext
13230printf "$lt_simple_link_test_code" >conftest.$ac_ext
13231eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13232_lt_linker_boilerplate=`cat conftest.err`
13233$rm conftest*
13234
13235
13236# Allow CC to be a program name with arguments.
13237lt_save_CC="$CC"
13238CC=${F77-"f77"}
13239compiler=$CC
13240compiler_F77=$CC
13241for cc_temp in $compiler""; do
13242 case $cc_temp in
13243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13245 \-*) ;;
13246 *) break;;
13247 esac
13248done
13249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13250
13251
13252echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13253echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13254echo "$as_me:$LINENO: result: $can_build_shared" >&5
13255echo "${ECHO_T}$can_build_shared" >&6
13256
13257echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13258echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13259test "$can_build_shared" = "no" && enable_shared=no
13260
13261# On AIX, shared libraries and static libraries use the same namespace, and
13262# are all built from PIC.
13263case $host_os in
13264aix3*)
13265 test "$enable_shared" = yes && enable_static=no
13266 if test -n "$RANLIB"; then
13267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13268 postinstall_cmds='$RANLIB $lib'
13269 fi
13270 ;;
13271aix4* | aix5*)
13272 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13273 test "$enable_shared" = yes && enable_static=no
13274 fi
13275 ;;
13276esac
13277echo "$as_me:$LINENO: result: $enable_shared" >&5
13278echo "${ECHO_T}$enable_shared" >&6
13279
13280echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13281echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13282# Make sure either enable_shared or enable_static is yes.
13283test "$enable_shared" = yes || enable_static=yes
13284echo "$as_me:$LINENO: result: $enable_static" >&5
13285echo "${ECHO_T}$enable_static" >&6
13286
13287GCC_F77="$G77"
13288LD_F77="$LD"
13289
13290lt_prog_compiler_wl_F77=
13291lt_prog_compiler_pic_F77=
13292lt_prog_compiler_static_F77=
13293
13294echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13295echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13296
13297 if test "$GCC" = yes; then
13298 lt_prog_compiler_wl_F77='-Wl,'
13299 lt_prog_compiler_static_F77='-static'
13300
13301 case $host_os in
13302 aix*)
13303 # All AIX code is PIC.
13304 if test "$host_cpu" = ia64; then
13305 # AIX 5 now supports IA64 processor
13306 lt_prog_compiler_static_F77='-Bstatic'
13307 fi
13308 ;;
13309
13310 amigaos*)
13311 # FIXME: we need at least 68020 code to build shared libraries, but
13312 # adding the `-m68020' flag to GCC prevents building anything better,
13313 # like `-m68040'.
13314 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13315 ;;
13316
13317 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13318 # PIC is the default for these OSes.
13319 ;;
13320
13321 mingw* | pw32* | os2*)
13322 # This hack is so that the source file can tell whether it is being
13323 # built for inclusion in a dll (and should export symbols for example).
13324 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13325 ;;
13326
13327 darwin* | rhapsody*)
13328 # PIC is the default on this platform
13329 # Common symbols not allowed in MH_DYLIB files
13330 lt_prog_compiler_pic_F77='-fno-common'
13331 ;;
13332
13333 interix3*)
13334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13335 # Instead, we relocate shared libraries at runtime.
13336 ;;
13337
13338 msdosdjgpp*)
13339 # Just because we use GCC doesn't mean we suddenly get shared libraries
13340 # on systems that don't support them.
13341 lt_prog_compiler_can_build_shared_F77=no
13342 enable_shared=no
13343 ;;
13344
13345 sysv4*MP*)
13346 if test -d /usr/nec; then
13347 lt_prog_compiler_pic_F77=-Kconform_pic
13348 fi
13349 ;;
13350
13351 hpux*)
13352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13353 # not for PA HP-UX.
13354 case $host_cpu in
13355 hppa*64*|ia64*)
13356 # +Z the default
13357 ;;
13358 *)
13359 lt_prog_compiler_pic_F77='-fPIC'
13360 ;;
13361 esac
13362 ;;
13363
13364 *)
13365 lt_prog_compiler_pic_F77='-fPIC'
13366 ;;
13367 esac
13368 else
13369 # PORTME Check for flag to pass linker flags through the system compiler.
13370 case $host_os in
13371 aix*)
13372 lt_prog_compiler_wl_F77='-Wl,'
13373 if test "$host_cpu" = ia64; then
13374 # AIX 5 now supports IA64 processor
13375 lt_prog_compiler_static_F77='-Bstatic'
13376 else
13377 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13378 fi
13379 ;;
13380 darwin*)
13381 # PIC is the default on this platform
13382 # Common symbols not allowed in MH_DYLIB files
13383 case $cc_basename in
13384 xlc*)
13385 lt_prog_compiler_pic_F77='-qnocommon'
13386 lt_prog_compiler_wl_F77='-Wl,'
13387 ;;
13388 esac
13389 ;;
13390
13391 mingw* | pw32* | os2*)
13392 # This hack is so that the source file can tell whether it is being
13393 # built for inclusion in a dll (and should export symbols for example).
13394 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13395 ;;
13396
13397 hpux9* | hpux10* | hpux11*)
13398 lt_prog_compiler_wl_F77='-Wl,'
13399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13400 # not for PA HP-UX.
13401 case $host_cpu in
13402 hppa*64*|ia64*)
13403 # +Z the default
13404 ;;
13405 *)
13406 lt_prog_compiler_pic_F77='+Z'
13407 ;;
13408 esac
13409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13410 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13411 ;;
13412
13413 irix5* | irix6* | nonstopux*)
13414 lt_prog_compiler_wl_F77='-Wl,'
13415 # PIC (with -KPIC) is the default.
13416 lt_prog_compiler_static_F77='-non_shared'
13417 ;;
13418
13419 newsos6)
13420 lt_prog_compiler_pic_F77='-KPIC'
13421 lt_prog_compiler_static_F77='-Bstatic'
13422 ;;
13423
13424 linux*)
13425 case $cc_basename in
13426 icc* | ecc*)
13427 lt_prog_compiler_wl_F77='-Wl,'
13428 lt_prog_compiler_pic_F77='-KPIC'
13429 lt_prog_compiler_static_F77='-static'
13430 ;;
13431 pgcc* | pgf77* | pgf90* | pgf95*)
13432 # Portland Group compilers (*not* the Pentium gcc compiler,
13433 # which looks to be a dead project)
13434 lt_prog_compiler_wl_F77='-Wl,'
13435 lt_prog_compiler_pic_F77='-fpic'
13436 lt_prog_compiler_static_F77='-Bstatic'
13437 ;;
13438 ccc*)
13439 lt_prog_compiler_wl_F77='-Wl,'
13440 # All Alpha code is PIC.
13441 lt_prog_compiler_static_F77='-non_shared'
13442 ;;
13443 esac
13444 ;;
13445
13446 osf3* | osf4* | osf5*)
13447 lt_prog_compiler_wl_F77='-Wl,'
13448 # All OSF/1 code is PIC.
13449 lt_prog_compiler_static_F77='-non_shared'
13450 ;;
13451
13452 solaris*)
13453 lt_prog_compiler_pic_F77='-KPIC'
13454 lt_prog_compiler_static_F77='-Bstatic'
13455 case $cc_basename in
13456 f77* | f90* | f95*)
13457 lt_prog_compiler_wl_F77='-Qoption ld ';;
13458 *)
13459 lt_prog_compiler_wl_F77='-Wl,';;
13460 esac
13461 ;;
13462
13463 sunos4*)
13464 lt_prog_compiler_wl_F77='-Qoption ld '
13465 lt_prog_compiler_pic_F77='-PIC'
13466 lt_prog_compiler_static_F77='-Bstatic'
13467 ;;
13468
13469 sysv4 | sysv4.2uw2* | sysv4.3*)
13470 lt_prog_compiler_wl_F77='-Wl,'
13471 lt_prog_compiler_pic_F77='-KPIC'
13472 lt_prog_compiler_static_F77='-Bstatic'
13473 ;;
13474
13475 sysv4*MP*)
13476 if test -d /usr/nec ;then
13477 lt_prog_compiler_pic_F77='-Kconform_pic'
13478 lt_prog_compiler_static_F77='-Bstatic'
13479 fi
13480 ;;
13481
13482 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13483 lt_prog_compiler_wl_F77='-Wl,'
13484 lt_prog_compiler_pic_F77='-KPIC'
13485 lt_prog_compiler_static_F77='-Bstatic'
13486 ;;
13487
13488 unicos*)
13489 lt_prog_compiler_wl_F77='-Wl,'
13490 lt_prog_compiler_can_build_shared_F77=no
13491 ;;
13492
13493 uts4*)
13494 lt_prog_compiler_pic_F77='-pic'
13495 lt_prog_compiler_static_F77='-Bstatic'
13496 ;;
13497
13498 *)
13499 lt_prog_compiler_can_build_shared_F77=no
13500 ;;
13501 esac
13502 fi
13503
13504echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13505echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13506
13507#
13508# Check to make sure the PIC flag actually works.
13509#
13510if test -n "$lt_prog_compiler_pic_F77"; then
13511
13512echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13513echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13514if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516else
13517 lt_prog_compiler_pic_works_F77=no
13518 ac_outfile=conftest.$ac_objext
13519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 # The option is referenced via a variable to avoid confusing sed.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 13530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
bf9f3bac 13531 (eval "$lt_compile" 2>conftest.err)
13532 ac_status=$?
13533 cat conftest.err >&5
0cbaeb11 13534 echo "$as_me:13534: \$? = $ac_status" >&5
bf9f3bac 13535 if (exit $ac_status) && test -s "$ac_outfile"; then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings other than the usual output.
13538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13541 lt_prog_compiler_pic_works_F77=yes
13542 fi
13543 fi
13544 $rm conftest*
13545
13546fi
13547echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13548echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13549
13550if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13551 case $lt_prog_compiler_pic_F77 in
13552 "" | " "*) ;;
13553 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13554 esac
13555else
13556 lt_prog_compiler_pic_F77=
13557 lt_prog_compiler_can_build_shared_F77=no
13558fi
13559
13560fi
13561case $host_os in
13562 # For platforms which do not support PIC, -DPIC is meaningless:
13563 *djgpp*)
13564 lt_prog_compiler_pic_F77=
13565 ;;
13566 *)
13567 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13568 ;;
13569esac
13570
13571#
13572# Check to make sure the static flag actually works.
13573#
13574wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13575echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13576echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13577if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579else
13580 lt_prog_compiler_static_works_F77=no
13581 save_LDFLAGS="$LDFLAGS"
13582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13583 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13585 # The linker can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test -s conftest.err; then
13588 # Append any errors to the config.log.
13589 cat conftest.err 1>&5
13590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13592 if diff conftest.exp conftest.er2 >/dev/null; then
13593 lt_prog_compiler_static_works_F77=yes
13594 fi
13595 else
13596 lt_prog_compiler_static_works_F77=yes
13597 fi
13598 fi
13599 $rm conftest*
13600 LDFLAGS="$save_LDFLAGS"
13601
13602fi
13603echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13604echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13605
13606if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13607 :
13608else
13609 lt_prog_compiler_static_F77=
13610fi
13611
13612
13613echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13614echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13615if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618 lt_cv_prog_compiler_c_o_F77=no
13619 $rm -r conftest 2>/dev/null
13620 mkdir conftest
13621 cd conftest
13622 mkdir out
13623 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13624
13625 lt_compiler_flag="-o out/conftest2.$ac_objext"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 13634 (eval echo "\"\$as_me:13634: $lt_compile\"" >&5)
bf9f3bac 13635 (eval "$lt_compile" 2>out/conftest.err)
13636 ac_status=$?
13637 cat out/conftest.err >&5
0cbaeb11 13638 echo "$as_me:13638: \$? = $ac_status" >&5
bf9f3bac 13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13640 then
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings
13643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13646 lt_cv_prog_compiler_c_o_F77=yes
13647 fi
13648 fi
13649 chmod u+w . 2>&5
13650 $rm conftest*
13651 # SGI C++ compiler will create directory out/ii_files/ for
13652 # template instantiation
13653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13654 $rm out/* && rmdir out
13655 cd ..
13656 rmdir conftest
13657 $rm conftest*
13658
13659fi
13660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13661echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13662
13663
13664hard_links="nottested"
13665if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13666 # do not overwrite the value of need_locks provided by the user
13667 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13668echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13669 hard_links=yes
13670 $rm conftest*
13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13672 touch conftest.a
13673 ln conftest.a conftest.b 2>&5 || hard_links=no
13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 echo "$as_me:$LINENO: result: $hard_links" >&5
13676echo "${ECHO_T}$hard_links" >&6
13677 if test "$hard_links" = no; then
13678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13679echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13680 need_locks=warn
13681 fi
13682else
13683 need_locks=no
13684fi
13685
13686echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13687echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13688
13689 runpath_var=
13690 allow_undefined_flag_F77=
13691 enable_shared_with_static_runtimes_F77=no
13692 archive_cmds_F77=
13693 archive_expsym_cmds_F77=
13694 old_archive_From_new_cmds_F77=
13695 old_archive_from_expsyms_cmds_F77=
13696 export_dynamic_flag_spec_F77=
13697 whole_archive_flag_spec_F77=
13698 thread_safe_flag_spec_F77=
13699 hardcode_libdir_flag_spec_F77=
13700 hardcode_libdir_flag_spec_ld_F77=
13701 hardcode_libdir_separator_F77=
13702 hardcode_direct_F77=no
13703 hardcode_minus_L_F77=no
13704 hardcode_shlibpath_var_F77=unsupported
13705 link_all_deplibs_F77=unknown
13706 hardcode_automatic_F77=no
13707 module_cmds_F77=
13708 module_expsym_cmds_F77=
13709 always_export_symbols_F77=no
13710 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13711 # include_expsyms should be a list of space-separated symbols to be *always*
13712 # included in the symbol list
13713 include_expsyms_F77=
13714 # exclude_expsyms can be an extended regexp of symbols to exclude
13715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13717 # as well as any symbol that contains `d'.
13718 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13720 # platforms (ab)use it in PIC code, but their linkers get confused if
13721 # the symbol is explicitly referenced. Since portable code cannot
13722 # rely on this symbol name, it's probably fine to never include it in
13723 # preloaded symbol tables.
13724 extract_expsyms_cmds=
13725 # Just being paranoid about ensuring that cc_basename is set.
13726 for cc_temp in $compiler""; do
13727 case $cc_temp in
13728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13730 \-*) ;;
13731 *) break;;
13732 esac
13733done
13734cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13735
13736 case $host_os in
13737 cygwin* | mingw* | pw32*)
13738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13739 # When not using gcc, we currently assume that we are using
13740 # Microsoft Visual C++.
13741 if test "$GCC" != yes; then
13742 with_gnu_ld=no
13743 fi
13744 ;;
13745 interix*)
13746 # we just hope/assume this is gcc and not c89 (= MSVC++)
13747 with_gnu_ld=yes
13748 ;;
13749 openbsd*)
13750 with_gnu_ld=no
13751 ;;
13752 esac
13753
13754 ld_shlibs_F77=yes
13755 if test "$with_gnu_ld" = yes; then
13756 # If archive_cmds runs LD, not CC, wlarc should be empty
13757 wlarc='${wl}'
13758
13759 # Set some defaults for GNU ld with shared library support. These
13760 # are reset later if shared libraries are not supported. Putting them
13761 # here allows them to be overridden if necessary.
13762 runpath_var=LD_RUN_PATH
13763 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13764 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13765 # ancient GNU ld didn't support --whole-archive et. al.
13766 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13767 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13768 else
13769 whole_archive_flag_spec_F77=
13770 fi
13771 supports_anon_versioning=no
13772 case `$LD -v 2>/dev/null` in
13773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13776 *\ 2.11.*) ;; # other 2.11 versions
13777 *) supports_anon_versioning=yes ;;
13778 esac
13779
13780 # See if GNU ld supports shared libraries.
13781 case $host_os in
13782 aix3* | aix4* | aix5*)
13783 # On AIX/PPC, the GNU linker is very broken
13784 if test "$host_cpu" != ia64; then
13785 ld_shlibs_F77=no
13786 cat <<EOF 1>&2
13787
13788*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13789*** to be unable to reliably create shared libraries on AIX.
13790*** Therefore, libtool is disabling shared libraries support. If you
13791*** really care for shared libraries, you may want to modify your PATH
13792*** so that a non-GNU linker is found, and then restart.
13793
13794EOF
13795 fi
13796 ;;
13797
13798 amigaos*)
13799 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)'
13800 hardcode_libdir_flag_spec_F77='-L$libdir'
13801 hardcode_minus_L_F77=yes
13802
13803 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13804 # that the semantics of dynamic libraries on AmigaOS, at least up
13805 # to version 4, is to share data among multiple programs linked
13806 # with the same dynamic library. Since this doesn't match the
13807 # behavior of shared libraries on other platforms, we can't use
13808 # them.
13809 ld_shlibs_F77=no
13810 ;;
13811
13812 beos*)
13813 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13814 allow_undefined_flag_F77=unsupported
13815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13816 # support --undefined. This deserves some investigation. FIXME
13817 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 else
13819 ld_shlibs_F77=no
13820 fi
13821 ;;
13822
13823 cygwin* | mingw* | pw32*)
13824 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13825 # as there is no search path for DLLs.
13826 hardcode_libdir_flag_spec_F77='-L$libdir'
13827 allow_undefined_flag_F77=unsupported
13828 always_export_symbols_F77=no
13829 enable_shared_with_static_runtimes_F77=yes
13830 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13831
13832 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13834 # If the export-symbols file already is a .def file (1st line
13835 # is EXPORTS), use it as is; otherwise, prepend...
13836 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13837 cp $export_symbols $output_objdir/$soname.def;
13838 else
13839 echo EXPORTS > $output_objdir/$soname.def;
13840 cat $export_symbols >> $output_objdir/$soname.def;
13841 fi~
13842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13843 else
13844 ld_shlibs_F77=no
13845 fi
13846 ;;
13847
13848 interix3*)
13849 hardcode_direct_F77=no
13850 hardcode_shlibpath_var_F77=no
13851 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13852 export_dynamic_flag_spec_F77='${wl}-E'
13853 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13854 # Instead, shared libraries are loaded at an image base (0x10000000 by
13855 # default) and relocated if they conflict, which is a slow very memory
13856 # consuming and fragmenting process. To avoid this, we pick a random,
13857 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13858 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13859 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13860 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13861 ;;
13862
13863 linux*)
13864 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13865 tmp_addflag=
13866 case $cc_basename,$host_cpu in
13867 pgcc*) # Portland Group C compiler
13868 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13869 tmp_addflag=' $pic_flag'
13870 ;;
13871 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13872 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13873 tmp_addflag=' $pic_flag -Mnomain' ;;
13874 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13875 tmp_addflag=' -i_dynamic' ;;
13876 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13877 tmp_addflag=' -i_dynamic -nofor_main' ;;
13878 ifc* | ifort*) # Intel Fortran compiler
13879 tmp_addflag=' -nofor_main' ;;
13880 esac
13881 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13882
13883 if test $supports_anon_versioning = yes; then
13884 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13886 $echo "local: *; };" >> $output_objdir/$libname.ver~
13887 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13888 fi
13889 else
13890 ld_shlibs_F77=no
13891 fi
13892 ;;
13893
13894 netbsd*)
13895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13896 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13897 wlarc=
13898 else
13899 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13901 fi
13902 ;;
13903
13904 solaris*)
13905 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13906 ld_shlibs_F77=no
13907 cat <<EOF 1>&2
13908
13909*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13910*** create shared libraries on Solaris systems. Therefore, libtool
13911*** is disabling shared libraries support. We urge you to upgrade GNU
13912*** binutils to release 2.9.1 or newer. Another option is to modify
13913*** your PATH or compiler configuration so that the native linker is
13914*** used, and then restart.
13915
13916EOF
13917 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13918 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13919 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13920 else
13921 ld_shlibs_F77=no
13922 fi
13923 ;;
13924
13925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13926 case `$LD -v 2>&1` in
13927 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13928 ld_shlibs_F77=no
13929 cat <<_LT_EOF 1>&2
13930
13931*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13932*** reliably create shared libraries on SCO systems. Therefore, libtool
13933*** is disabling shared libraries support. We urge you to upgrade GNU
13934*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13935*** your PATH or compiler configuration so that the native linker is
13936*** used, and then restart.
13937
13938_LT_EOF
13939 ;;
13940 *)
13941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13942 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13945 else
13946 ld_shlibs_F77=no
13947 fi
13948 ;;
13949 esac
13950 ;;
13951
13952 sunos4*)
13953 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954 wlarc=
13955 hardcode_direct_F77=yes
13956 hardcode_shlibpath_var_F77=no
13957 ;;
13958
13959 *)
13960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13961 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13962 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13963 else
13964 ld_shlibs_F77=no
13965 fi
13966 ;;
13967 esac
13968
13969 if test "$ld_shlibs_F77" = no; then
13970 runpath_var=
13971 hardcode_libdir_flag_spec_F77=
13972 export_dynamic_flag_spec_F77=
13973 whole_archive_flag_spec_F77=
13974 fi
13975 else
13976 # PORTME fill in a description of your system's linker (not GNU ld)
13977 case $host_os in
13978 aix3*)
13979 allow_undefined_flag_F77=unsupported
13980 always_export_symbols_F77=yes
13981 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'
13982 # Note: this linker hardcodes the directories in LIBPATH if there
13983 # are no directories specified by -L.
13984 hardcode_minus_L_F77=yes
13985 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13986 # Neither direct hardcoding nor static linking is supported with a
13987 # broken collect2.
13988 hardcode_direct_F77=unsupported
13989 fi
13990 ;;
13991
13992 aix4* | aix5*)
13993 if test "$host_cpu" = ia64; then
13994 # On IA64, the linker does run time linking by default, so we don't
13995 # have to do anything special.
13996 aix_use_runtimelinking=no
13997 exp_sym_flag='-Bexport'
13998 no_entry_flag=""
13999 else
14000 # If we're using GNU nm, then we don't want the "-C" option.
14001 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14002 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14003 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'
14004 else
14005 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'
14006 fi
14007 aix_use_runtimelinking=no
14008
14009 # Test if we are trying to use run time linking or normal
14010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14011 # need to do runtime linking.
14012 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14013 for ld_flag in $LDFLAGS; do
14014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14015 aix_use_runtimelinking=yes
14016 break
14017 fi
14018 done
14019 ;;
14020 esac
14021
14022 exp_sym_flag='-bexport'
14023 no_entry_flag='-bnoentry'
14024 fi
14025
14026 # When large executables or shared objects are built, AIX ld can
14027 # have problems creating the table of contents. If linking a library
14028 # or program results in "error TOC overflow" add -mminimal-toc to
14029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14031
14032 archive_cmds_F77=''
14033 hardcode_direct_F77=yes
14034 hardcode_libdir_separator_F77=':'
14035 link_all_deplibs_F77=yes
14036
14037 if test "$GCC" = yes; then
14038 case $host_os in aix4.[012]|aix4.[012].*)
14039 # We only want to do this on AIX 4.2 and lower, the check
14040 # below for broken collect2 doesn't work under 4.3+
14041 collect2name=`${CC} -print-prog-name=collect2`
14042 if test -f "$collect2name" && \
14043 strings "$collect2name" | grep resolve_lib_name >/dev/null
14044 then
14045 # We have reworked collect2
14046 hardcode_direct_F77=yes
14047 else
14048 # We have old collect2
14049 hardcode_direct_F77=unsupported
14050 # It fails to find uninstalled libraries when the uninstalled
14051 # path is not listed in the libpath. Setting hardcode_minus_L
14052 # to unsupported forces relinking
14053 hardcode_minus_L_F77=yes
14054 hardcode_libdir_flag_spec_F77='-L$libdir'
14055 hardcode_libdir_separator_F77=
14056 fi
14057 ;;
14058 esac
14059 shared_flag='-shared'
14060 if test "$aix_use_runtimelinking" = yes; then
14061 shared_flag="$shared_flag "'${wl}-G'
14062 fi
14063 else
14064 # not using gcc
14065 if test "$host_cpu" = ia64; then
14066 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14067 # chokes on -Wl,-G. The following line is correct:
14068 shared_flag='-G'
14069 else
14070 if test "$aix_use_runtimelinking" = yes; then
14071 shared_flag='${wl}-G'
14072 else
14073 shared_flag='${wl}-bM:SRE'
14074 fi
14075 fi
14076 fi
14077
14078 # It seems that -bexpall does not export symbols beginning with
14079 # underscore (_), so it is better to generate a list of symbols to export.
14080 always_export_symbols_F77=yes
14081 if test "$aix_use_runtimelinking" = yes; then
14082 # Warning - without using the other runtime loading flags (-brtl),
14083 # -berok will link without error, but may produce a broken library.
14084 allow_undefined_flag_F77='-berok'
14085 # Determine the default libpath from the value encoded in an empty executable.
14086 cat >conftest.$ac_ext <<_ACEOF
14087 program main
14088
14089 end
14090_ACEOF
14091rm -f conftest.$ac_objext conftest$ac_exeext
14092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_f77_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113
14114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14115}'`
14116# Check for a 64-bit object if we didn't find anything.
14117if 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; }
14118}'`; fi
14119else
14120 echo "$as_me: failed program was:" >&5
14121sed 's/^/| /' conftest.$ac_ext >&5
14122
14123fi
14124rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14127
14128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14130 else
14131 if test "$host_cpu" = ia64; then
14132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133 allow_undefined_flag_F77="-z nodefs"
14134 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14135 else
14136 # Determine the default libpath from the value encoded in an empty executable.
14137 cat >conftest.$ac_ext <<_ACEOF
14138 program main
14139
14140 end
14141_ACEOF
14142rm -f conftest.$ac_objext conftest$ac_exeext
14143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>conftest.er1
14145 ac_status=$?
14146 grep -v '^ *+' conftest.er1 >conftest.err
14147 rm -f conftest.er1
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_f77_werror_flag"
14152 || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164
14165aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14166}'`
14167# Check for a 64-bit object if we didn't find anything.
14168if 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; }
14169}'`; fi
14170else
14171 echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174fi
14175rm -f conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
14177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14178
14179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14180 # Warning - without using the other run time loading flags,
14181 # -berok will link without error, but may produce a broken library.
14182 no_undefined_flag_F77=' ${wl}-bernotok'
14183 allow_undefined_flag_F77=' ${wl}-berok'
14184 # Exported symbols can be pulled into shared objects from archives
14185 whole_archive_flag_spec_F77='$convenience'
14186 archive_cmds_need_lc_F77=yes
14187 # This is similar to how AIX traditionally builds its shared libraries.
14188 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14189 fi
14190 fi
14191 ;;
14192
14193 amigaos*)
14194 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)'
14195 hardcode_libdir_flag_spec_F77='-L$libdir'
14196 hardcode_minus_L_F77=yes
14197 # see comment about different semantics on the GNU ld section
14198 ld_shlibs_F77=no
14199 ;;
14200
14201 bsdi[45]*)
14202 export_dynamic_flag_spec_F77=-rdynamic
14203 ;;
14204
14205 cygwin* | mingw* | pw32*)
14206 # When not using gcc, we currently assume that we are using
14207 # Microsoft Visual C++.
14208 # hardcode_libdir_flag_spec is actually meaningless, as there is
14209 # no search path for DLLs.
14210 hardcode_libdir_flag_spec_F77=' '
14211 allow_undefined_flag_F77=unsupported
14212 # Tell ltmain to make .lib files, not .a files.
14213 libext=lib
14214 # Tell ltmain to make .dll files, not .so files.
14215 shrext_cmds=".dll"
14216 # FIXME: Setting linknames here is a bad hack.
14217 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14218 # The linker will automatically build a .lib file if we build a DLL.
14219 old_archive_From_new_cmds_F77='true'
14220 # FIXME: Should let the user specify the lib program.
14221 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14222 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14223 enable_shared_with_static_runtimes_F77=yes
14224 ;;
14225
14226 darwin* | rhapsody*)
14227 case $host_os in
14228 rhapsody* | darwin1.[012])
14229 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14230 ;;
14231 *) # Darwin 1.3 on
14232 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14233 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14234 else
14235 case ${MACOSX_DEPLOYMENT_TARGET} in
14236 10.[012])
14237 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14238 ;;
14239 10.*)
14240 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14241 ;;
14242 esac
14243 fi
14244 ;;
14245 esac
14246 archive_cmds_need_lc_F77=no
14247 hardcode_direct_F77=no
14248 hardcode_automatic_F77=yes
14249 hardcode_shlibpath_var_F77=unsupported
14250 whole_archive_flag_spec_F77=''
14251 link_all_deplibs_F77=yes
14252 if test "$GCC" = yes ; then
14253 output_verbose_link_cmd='echo'
14254 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14255 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14257 archive_expsym_cmds_F77='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}'
14258 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14259 else
14260 case $cc_basename in
14261 xlc*)
14262 output_verbose_link_cmd='echo'
14263 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14264 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14266 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14267 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14268 ;;
14269 *)
14270 ld_shlibs_F77=no
14271 ;;
14272 esac
14273 fi
14274 ;;
14275
14276 dgux*)
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_libdir_flag_spec_F77='-L$libdir'
14279 hardcode_shlibpath_var_F77=no
14280 ;;
14281
14282 freebsd1*)
14283 ld_shlibs_F77=no
14284 ;;
14285
14286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14287 # support. Future versions do this automatically, but an explicit c++rt0.o
14288 # does not break anything, and helps significantly (at the cost of a little
14289 # extra space).
14290 freebsd2.2*)
14291 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14292 hardcode_libdir_flag_spec_F77='-R$libdir'
14293 hardcode_direct_F77=yes
14294 hardcode_shlibpath_var_F77=no
14295 ;;
14296
14297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14298 freebsd2*)
14299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14300 hardcode_direct_F77=yes
14301 hardcode_minus_L_F77=yes
14302 hardcode_shlibpath_var_F77=no
14303 ;;
14304
14305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14306 freebsd* | kfreebsd*-gnu | dragonfly*)
14307 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14308 hardcode_libdir_flag_spec_F77='-R$libdir'
14309 hardcode_direct_F77=yes
14310 hardcode_shlibpath_var_F77=no
14311 ;;
14312
14313 hpux9*)
14314 if test "$GCC" = yes; then
14315 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'
14316 else
14317 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'
14318 fi
14319 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14320 hardcode_libdir_separator_F77=:
14321 hardcode_direct_F77=yes
14322
14323 # hardcode_minus_L: Not really in the search PATH,
14324 # but as the default location of the library.
14325 hardcode_minus_L_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-E'
14327 ;;
14328
14329 hpux10*)
14330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14331 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14332 else
14333 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14334 fi
14335 if test "$with_gnu_ld" = no; then
14336 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14337 hardcode_libdir_separator_F77=:
14338
14339 hardcode_direct_F77=yes
14340 export_dynamic_flag_spec_F77='${wl}-E'
14341
14342 # hardcode_minus_L: Not really in the search PATH,
14343 # but as the default location of the library.
14344 hardcode_minus_L_F77=yes
14345 fi
14346 ;;
14347
14348 hpux11*)
14349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14350 case $host_cpu in
14351 hppa*64*)
14352 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 ;;
14354 ia64*)
14355 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14356 ;;
14357 *)
14358 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14359 ;;
14360 esac
14361 else
14362 case $host_cpu in
14363 hppa*64*)
14364 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14365 ;;
14366 ia64*)
14367 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14368 ;;
14369 *)
14370 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14371 ;;
14372 esac
14373 fi
14374 if test "$with_gnu_ld" = no; then
14375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14376 hardcode_libdir_separator_F77=:
14377
14378 case $host_cpu in
14379 hppa*64*|ia64*)
14380 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14381 hardcode_direct_F77=no
14382 hardcode_shlibpath_var_F77=no
14383 ;;
14384 *)
14385 hardcode_direct_F77=yes
14386 export_dynamic_flag_spec_F77='${wl}-E'
14387
14388 # hardcode_minus_L: Not really in the search PATH,
14389 # but as the default location of the library.
14390 hardcode_minus_L_F77=yes
14391 ;;
14392 esac
14393 fi
14394 ;;
14395
14396 irix5* | irix6* | nonstopux*)
14397 if test "$GCC" = yes; then
14398 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'
14399 else
14400 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'
14401 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14402 fi
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 link_all_deplibs_F77=yes
14406 ;;
14407
14408 netbsd*)
14409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14411 else
14412 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14413 fi
14414 hardcode_libdir_flag_spec_F77='-R$libdir'
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 newsos6)
14420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421 hardcode_direct_F77=yes
14422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14423 hardcode_libdir_separator_F77=:
14424 hardcode_shlibpath_var_F77=no
14425 ;;
14426
14427 openbsd*)
14428 hardcode_direct_F77=yes
14429 hardcode_shlibpath_var_F77=no
14430 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14431 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14432 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14434 export_dynamic_flag_spec_F77='${wl}-E'
14435 else
14436 case $host_os in
14437 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14439 hardcode_libdir_flag_spec_F77='-R$libdir'
14440 ;;
14441 *)
14442 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444 ;;
14445 esac
14446 fi
14447 ;;
14448
14449 os2*)
14450 hardcode_libdir_flag_spec_F77='-L$libdir'
14451 hardcode_minus_L_F77=yes
14452 allow_undefined_flag_F77=unsupported
14453 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'
14454 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14455 ;;
14456
14457 osf3*)
14458 if test "$GCC" = yes; then
14459 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14460 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'
14461 else
14462 allow_undefined_flag_F77=' -expect_unresolved \*'
14463 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'
14464 fi
14465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14466 hardcode_libdir_separator_F77=:
14467 ;;
14468
14469 osf4* | osf5*) # as osf3* with the addition of -msym flag
14470 if test "$GCC" = yes; then
14471 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14472 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'
14473 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14474 else
14475 allow_undefined_flag_F77=' -expect_unresolved \*'
14476 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'
14477 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~
14478 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14479
14480 # Both c and cxx compiler support -rpath directly
14481 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14482 fi
14483 hardcode_libdir_separator_F77=:
14484 ;;
14485
14486 solaris*)
14487 no_undefined_flag_F77=' -z text'
14488 if test "$GCC" = yes; then
14489 wlarc='${wl}'
14490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14493 else
14494 wlarc=''
14495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14498 fi
14499 hardcode_libdir_flag_spec_F77='-R$libdir'
14500 hardcode_shlibpath_var_F77=no
14501 case $host_os in
14502 solaris2.[0-5] | solaris2.[0-5].*) ;;
14503 *)
14504 # The compiler driver will combine linker options so we
14505 # cannot just pass the convience library names through
14506 # without $wl, iff we do not link with $LD.
14507 # Luckily, gcc supports the same syntax we need for Sun Studio.
14508 # Supported since Solaris 2.6 (maybe 2.5.1?)
14509 case $wlarc in
14510 '')
14511 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14512 *)
14513 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14514 esac ;;
14515 esac
14516 link_all_deplibs_F77=yes
14517 ;;
14518
14519 sunos4*)
14520 if test "x$host_vendor" = xsequent; then
14521 # Use $CC to link under sequent, because it throws in some extra .o
14522 # files that make .init and .fini sections work.
14523 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14524 else
14525 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14526 fi
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_direct_F77=yes
14529 hardcode_minus_L_F77=yes
14530 hardcode_shlibpath_var_F77=no
14531 ;;
14532
14533 sysv4)
14534 case $host_vendor in
14535 sni)
14536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14537 hardcode_direct_F77=yes # is this really true???
14538 ;;
14539 siemens)
14540 ## LD is ld it makes a PLAMLIB
14541 ## CC just makes a GrossModule.
14542 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14543 reload_cmds_F77='$CC -r -o $output$reload_objs'
14544 hardcode_direct_F77=no
14545 ;;
14546 motorola)
14547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14549 ;;
14550 esac
14551 runpath_var='LD_RUN_PATH'
14552 hardcode_shlibpath_var_F77=no
14553 ;;
14554
14555 sysv4.3*)
14556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_shlibpath_var_F77=no
14558 export_dynamic_flag_spec_F77='-Bexport'
14559 ;;
14560
14561 sysv4*MP*)
14562 if test -d /usr/nec; then
14563 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14564 hardcode_shlibpath_var_F77=no
14565 runpath_var=LD_RUN_PATH
14566 hardcode_runpath_var=yes
14567 ld_shlibs_F77=yes
14568 fi
14569 ;;
14570
14571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14572 no_undefined_flag_F77='${wl}-z,text'
14573 archive_cmds_need_lc_F77=no
14574 hardcode_shlibpath_var_F77=no
14575 runpath_var='LD_RUN_PATH'
14576
14577 if test "$GCC" = yes; then
14578 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580 else
14581 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583 fi
14584 ;;
14585
14586 sysv5* | sco3.2v5* | sco5v6*)
14587 # Note: We can NOT use -z defs as we might desire, because we do not
14588 # link with -lc, and that would cause any symbols used from libc to
14589 # always be unresolved, which means just about no library would
14590 # ever link correctly. If we're not using GNU ld we use -z text
14591 # though, which does catch some bad symbols but isn't as heavy-handed
14592 # as -z defs.
14593 no_undefined_flag_F77='${wl}-z,text'
14594 allow_undefined_flag_F77='${wl}-z,nodefs'
14595 archive_cmds_need_lc_F77=no
14596 hardcode_shlibpath_var_F77=no
14597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14598 hardcode_libdir_separator_F77=':'
14599 link_all_deplibs_F77=yes
14600 export_dynamic_flag_spec_F77='${wl}-Bexport'
14601 runpath_var='LD_RUN_PATH'
14602
14603 if test "$GCC" = yes; then
14604 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14605 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14606 else
14607 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609 fi
14610 ;;
14611
14612 uts4*)
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_shlibpath_var_F77=no
14616 ;;
14617
14618 *)
14619 ld_shlibs_F77=no
14620 ;;
14621 esac
14622 fi
14623
14624echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14625echo "${ECHO_T}$ld_shlibs_F77" >&6
14626test "$ld_shlibs_F77" = no && can_build_shared=no
14627
14628#
14629# Do we need to explicitly link libc?
14630#
14631case "x$archive_cmds_need_lc_F77" in
14632x|xyes)
14633 # Assume -lc should be added
14634 archive_cmds_need_lc_F77=yes
14635
14636 if test "$enable_shared" = yes && test "$GCC" = yes; then
14637 case $archive_cmds_F77 in
14638 *'~'*)
14639 # FIXME: we may have to deal with multi-command sequences.
14640 ;;
14641 '$CC '*)
14642 # Test whether the compiler implicitly links with -lc since on some
14643 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14644 # to ld, don't add -lc before -lgcc.
14645 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14646echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14647 $rm conftest*
14648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14649
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } 2>conftest.err; then
14655 soname=conftest
14656 lib=conftest
14657 libobjs=conftest.$ac_objext
14658 deplibs=
14659 wl=$lt_prog_compiler_wl_F77
14660 pic_flag=$lt_prog_compiler_pic_F77
14661 compiler_flags=-v
14662 linker_flags=-v
14663 verstring=
14664 output_objdir=.
14665 libname=conftest
14666 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14667 allow_undefined_flag_F77=
14668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14669 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }
14673 then
14674 archive_cmds_need_lc_F77=no
14675 else
14676 archive_cmds_need_lc_F77=yes
14677 fi
14678 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14679 else
14680 cat conftest.err 1>&5
14681 fi
14682 $rm conftest*
14683 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14684echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14685 ;;
14686 esac
14687 fi
14688 ;;
14689esac
14690
14691echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14693library_names_spec=
14694libname_spec='lib$name'
14695soname_spec=
14696shrext_cmds=".so"
14697postinstall_cmds=
14698postuninstall_cmds=
14699finish_cmds=
14700finish_eval=
14701shlibpath_var=
14702shlibpath_overrides_runpath=unknown
14703version_type=none
14704dynamic_linker="$host_os ld.so"
14705sys_lib_dlsearch_path_spec="/lib /usr/lib"
14706if test "$GCC" = yes; then
14707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14708 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14709 # if the path contains ";" then we assume it to be the separator
14710 # otherwise default to the standard path separator (i.e. ":") - it is
14711 # assumed that no part of a normal pathname contains ";" but that should
14712 # okay in the real world where ";" in dirpaths is itself problematic.
14713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14714 else
14715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14716 fi
14717else
14718 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14719fi
14720need_lib_prefix=unknown
14721hardcode_into_libs=no
14722
14723# when you set need_version to no, make sure it does not cause -set_version
14724# flags to be left without arguments
14725need_version=unknown
14726
14727case $host_os in
14728aix3*)
14729 version_type=linux
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14731 shlibpath_var=LIBPATH
14732
14733 # AIX 3 has no versioning support, so we append a major version to the name.
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 ;;
14736
14737aix4* | aix5*)
14738 version_type=linux
14739 need_lib_prefix=no
14740 need_version=no
14741 hardcode_into_libs=yes
14742 if test "$host_cpu" = ia64; then
14743 # AIX 5 supports IA64
14744 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14745 shlibpath_var=LD_LIBRARY_PATH
14746 else
14747 # With GCC up to 2.95.x, collect2 would create an import file
14748 # for dependence libraries. The import file would start with
14749 # the line `#! .'. This would cause the generated library to
14750 # depend on `.', always an invalid library. This was fixed in
14751 # development snapshots of GCC prior to 3.0.
14752 case $host_os in
14753 aix4 | aix4.[01] | aix4.[01].*)
14754 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14755 echo ' yes '
14756 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14757 :
14758 else
14759 can_build_shared=no
14760 fi
14761 ;;
14762 esac
14763 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14764 # soname into executable. Probably we can add versioning support to
14765 # collect2, so additional links can be useful in future.
14766 if test "$aix_use_runtimelinking" = yes; then
14767 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14768 # instead of lib<name>.a to let people know that these are not
14769 # typical AIX shared libraries.
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 else
14772 # We preserve .a as extension for shared libraries through AIX4.2
14773 # and later when we are not doing run time linking.
14774 library_names_spec='${libname}${release}.a $libname.a'
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 fi
14777 shlibpath_var=LIBPATH
14778 fi
14779 ;;
14780
14781amigaos*)
14782 library_names_spec='$libname.ixlibrary $libname.a'
14783 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14784 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'
14785 ;;
14786
14787beos*)
14788 library_names_spec='${libname}${shared_ext}'
14789 dynamic_linker="$host_os ld.so"
14790 shlibpath_var=LIBRARY_PATH
14791 ;;
14792
14793bsdi[45]*)
14794 version_type=linux
14795 need_version=no
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14802 # the default ld.so.conf also contains /usr/contrib/lib and
14803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14804 # libtool to hard-code these into programs
14805 ;;
14806
14807cygwin* | mingw* | pw32*)
14808 version_type=windows
14809 shrext_cmds=".dll"
14810 need_version=no
14811 need_lib_prefix=no
14812
14813 case $GCC,$host_os in
14814 yes,cygwin* | yes,mingw* | yes,pw32*)
14815 library_names_spec='$libname.dll.a'
14816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14817 postinstall_cmds='base_file=`basename \${file}`~
14818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14819 dldir=$destdir/`dirname \$dlpath`~
14820 test -d \$dldir || mkdir -p \$dldir~
14821 $install_prog $dir/$dlname \$dldir/$dlname~
14822 chmod a+x \$dldir/$dlname'
14823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14824 dlpath=$dir/\$dldll~
14825 $rm \$dlpath'
14826 shlibpath_overrides_runpath=yes
14827
14828 case $host_os in
14829 cygwin*)
14830 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14831 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14832 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14833 ;;
14834 mingw*)
14835 # MinGW DLLs use traditional 'lib' prefix
14836 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14838 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14839 # It is most probably a Windows format PATH printed by
14840 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14841 # path with ; separators, and with drive letters. We can handle the
14842 # drive letters (cygwin fileutils understands them), so leave them,
14843 # especially as we might pass files found there to a mingw objdump,
14844 # which wouldn't understand a cygwinified path. Ahh.
14845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14846 else
14847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14848 fi
14849 ;;
14850 pw32*)
14851 # pw32 DLLs use 'pw' prefix rather than 'lib'
14852 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 ;;
14854 esac
14855 ;;
14856
14857 *)
14858 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14859 ;;
14860 esac
14861 dynamic_linker='Win32 ld.exe'
14862 # FIXME: first we should search . and the directory the executable is in
14863 shlibpath_var=PATH
14864 ;;
14865
14866darwin* | rhapsody*)
14867 dynamic_linker="$host_os dyld"
14868 version_type=darwin
14869 need_lib_prefix=no
14870 need_version=no
14871 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14872 soname_spec='${libname}${release}${major}$shared_ext'
14873 shlibpath_overrides_runpath=yes
14874 shlibpath_var=DYLD_LIBRARY_PATH
14875 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14876 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14877 if test "$GCC" = yes; then
14878 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"`
14879 else
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14881 fi
14882 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14883 ;;
14884
14885dgux*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 ;;
14893
14894freebsd1*)
14895 dynamic_linker=no
14896 ;;
14897
14898kfreebsd*-gnu)
14899 version_type=linux
14900 need_lib_prefix=no
14901 need_version=no
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 shlibpath_overrides_runpath=no
14906 hardcode_into_libs=yes
14907 dynamic_linker='GNU ld.so'
14908 ;;
14909
14910freebsd* | dragonfly*)
14911 # DragonFly does not have aout. When/if they implement a new
14912 # versioning mechanism, adjust this.
14913 if test -x /usr/bin/objformat; then
14914 objformat=`/usr/bin/objformat`
14915 else
14916 case $host_os in
14917 freebsd[123]*) objformat=aout ;;
14918 *) objformat=elf ;;
14919 esac
14920 fi
14921 version_type=freebsd-$objformat
14922 case $version_type in
14923 freebsd-elf*)
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925 need_version=no
14926 need_lib_prefix=no
14927 ;;
14928 freebsd-*)
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14930 need_version=yes
14931 ;;
14932 esac
14933 shlibpath_var=LD_LIBRARY_PATH
14934 case $host_os in
14935 freebsd2*)
14936 shlibpath_overrides_runpath=yes
14937 ;;
14938 freebsd3.[01]* | freebsdelf3.[01]*)
14939 shlibpath_overrides_runpath=yes
14940 hardcode_into_libs=yes
14941 ;;
14942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14944 shlibpath_overrides_runpath=no
14945 hardcode_into_libs=yes
14946 ;;
14947 freebsd*) # from 4.6 on
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14950 ;;
14951 esac
14952 ;;
14953
14954gnu*)
14955 version_type=linux
14956 need_lib_prefix=no
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 hardcode_into_libs=yes
14962 ;;
14963
14964hpux9* | hpux10* | hpux11*)
14965 # Give a soname corresponding to the major version so that dld.sl refuses to
14966 # link against other versions.
14967 version_type=sunos
14968 need_lib_prefix=no
14969 need_version=no
14970 case $host_cpu in
14971 ia64*)
14972 shrext_cmds='.so'
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.so"
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 if test "X$HPUX_IA64_MODE" = X32; then
14980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14981 else
14982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14983 fi
14984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14985 ;;
14986 hppa*64*)
14987 shrext_cmds='.sl'
14988 hardcode_into_libs=yes
14989 dynamic_linker="$host_os dld.sl"
14990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14996 ;;
14997 *)
14998 shrext_cmds='.sl'
14999 dynamic_linker="$host_os dld.sl"
15000 shlibpath_var=SHLIB_PATH
15001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 ;;
15005 esac
15006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15007 postinstall_cmds='chmod 555 $lib'
15008 ;;
15009
15010interix3*)
15011 version_type=linux
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath=no
15019 hardcode_into_libs=yes
15020 ;;
15021
15022irix5* | irix6* | nonstopux*)
15023 case $host_os in
15024 nonstopux*) version_type=nonstopux ;;
15025 *)
15026 if test "$lt_cv_prog_gnu_ld" = yes; then
15027 version_type=linux
15028 else
15029 version_type=irix
15030 fi ;;
15031 esac
15032 need_lib_prefix=no
15033 need_version=no
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15036 case $host_os in
15037 irix5* | nonstopux*)
15038 libsuff= shlibsuff=
15039 ;;
15040 *)
15041 case $LD in # libtool.m4 will add one of these switches to LD
15042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15043 libsuff= shlibsuff= libmagic=32-bit;;
15044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15045 libsuff=32 shlibsuff=N32 libmagic=N32;;
15046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15048 *) libsuff= shlibsuff= libmagic=never-match;;
15049 esac
15050 ;;
15051 esac
15052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15053 shlibpath_overrides_runpath=no
15054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15056 hardcode_into_libs=yes
15057 ;;
15058
15059# No shared lib support for Linux oldld, aout, or coff.
15060linux*oldld* | linux*aout* | linux*coff*)
15061 dynamic_linker=no
15062 ;;
15063
15064# This must be Linux ELF.
15065linux*)
15066 version_type=linux
15067 need_lib_prefix=no
15068 need_version=no
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=no
15074 # This implies no fast_install, which is unacceptable.
15075 # Some rework will be needed to allow for fast_install
15076 # before this can be enabled.
15077 hardcode_into_libs=yes
15078
15079 # find out which ABI we are using
15080 libsuff=
15081 case "$host_cpu" in
15082 x86_64*|s390x*|powerpc64*)
0cbaeb11 15083 echo '#line 15083 "configure"' > conftest.$ac_ext
bf9f3bac 15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; then
15089 case `/usr/bin/file conftest.$ac_objext` in
15090 *64-bit*)
15091 libsuff=64
15092 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15093 ;;
15094 esac
15095 fi
15096 rm -rf conftest*
15097 ;;
15098 esac
15099
15100 # Append ld.so.conf contents to the search path
15101 if test -f /etc/ld.so.conf; then
15102 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15103 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15104 fi
15105
15106 # We used to test for /lib/ld.so.1 and disable shared libraries on
15107 # powerpc, because MkLinux only supported shared libraries with the
15108 # GNU dynamic linker. Since this was broken with cross compilers,
15109 # most powerpc-linux boxes support dynamic linking these days and
15110 # people can always --disable-shared, the test was removed, and we
15111 # assume the GNU/Linux dynamic linker is in use.
15112 dynamic_linker='GNU/Linux ld.so'
15113 ;;
15114
15115knetbsd*-gnu)
15116 version_type=linux
15117 need_lib_prefix=no
15118 need_version=no
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=no
15123 hardcode_into_libs=yes
15124 dynamic_linker='GNU ld.so'
15125 ;;
15126
15127netbsd*)
15128 version_type=sunos
15129 need_lib_prefix=no
15130 need_version=no
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15134 dynamic_linker='NetBSD (a.out) ld.so'
15135 else
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 dynamic_linker='NetBSD ld.elf_so'
15139 fi
15140 shlibpath_var=LD_LIBRARY_PATH
15141 shlibpath_overrides_runpath=yes
15142 hardcode_into_libs=yes
15143 ;;
15144
15145newsos6)
15146 version_type=linux
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15150 ;;
15151
15152nto-qnx*)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157 soname_spec='${libname}${release}${shared_ext}$major'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 shlibpath_overrides_runpath=yes
15160 ;;
15161
15162openbsd*)
15163 version_type=sunos
15164 sys_lib_dlsearch_path_spec="/usr/lib"
15165 need_lib_prefix=no
15166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15167 case $host_os in
15168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15169 *) need_version=no ;;
15170 esac
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15175 case $host_os in
15176 openbsd2.[89] | openbsd2.[89].*)
15177 shlibpath_overrides_runpath=no
15178 ;;
15179 *)
15180 shlibpath_overrides_runpath=yes
15181 ;;
15182 esac
15183 else
15184 shlibpath_overrides_runpath=yes
15185 fi
15186 ;;
15187
15188os2*)
15189 libname_spec='$name'
15190 shrext_cmds=".dll"
15191 need_lib_prefix=no
15192 library_names_spec='$libname${shared_ext} $libname.a'
15193 dynamic_linker='OS/2 ld.exe'
15194 shlibpath_var=LIBPATH
15195 ;;
15196
15197osf3* | osf4* | osf5*)
15198 version_type=osf
15199 need_lib_prefix=no
15200 need_version=no
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15206 ;;
15207
15208solaris*)
15209 version_type=linux
15210 need_lib_prefix=no
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=yes
15216 hardcode_into_libs=yes
15217 # ldd complains unless libraries are executable
15218 postinstall_cmds='chmod +x $lib'
15219 ;;
15220
15221sunos4*)
15222 version_type=sunos
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15225 shlibpath_var=LD_LIBRARY_PATH
15226 shlibpath_overrides_runpath=yes
15227 if test "$with_gnu_ld" = yes; then
15228 need_lib_prefix=no
15229 fi
15230 need_version=yes
15231 ;;
15232
15233sysv4 | sysv4.3*)
15234 version_type=linux
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 case $host_vendor in
15239 sni)
15240 shlibpath_overrides_runpath=no
15241 need_lib_prefix=no
15242 export_dynamic_flag_spec='${wl}-Blargedynsym'
15243 runpath_var=LD_RUN_PATH
15244 ;;
15245 siemens)
15246 need_lib_prefix=no
15247 ;;
15248 motorola)
15249 need_lib_prefix=no
15250 need_version=no
15251 shlibpath_overrides_runpath=no
15252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15253 ;;
15254 esac
15255 ;;
15256
15257sysv4*MP*)
15258 if test -d /usr/nec ;then
15259 version_type=linux
15260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15261 soname_spec='$libname${shared_ext}.$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 fi
15264 ;;
15265
15266sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15267 version_type=freebsd-elf
15268 need_lib_prefix=no
15269 need_version=no
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 hardcode_into_libs=yes
15274 if test "$with_gnu_ld" = yes; then
15275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15276 shlibpath_overrides_runpath=no
15277 else
15278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15279 shlibpath_overrides_runpath=yes
15280 case $host_os in
15281 sco3.2v5*)
15282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15283 ;;
15284 esac
15285 fi
15286 sys_lib_dlsearch_path_spec='/usr/lib'
15287 ;;
15288
15289uts4*)
15290 version_type=linux
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 ;;
15295
15296*)
15297 dynamic_linker=no
15298 ;;
15299esac
15300echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15301echo "${ECHO_T}$dynamic_linker" >&6
15302test "$dynamic_linker" = no && can_build_shared=no
15303
15304variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15305if test "$GCC" = yes; then
15306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15307fi
15308
15309echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15310echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15311hardcode_action_F77=
15312if test -n "$hardcode_libdir_flag_spec_F77" || \
15313 test -n "$runpath_var_F77" || \
15314 test "X$hardcode_automatic_F77" = "Xyes" ; then
15315
15316 # We can hardcode non-existant directories.
15317 if test "$hardcode_direct_F77" != no &&
15318 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15319 # have to relink, otherwise we might link with an installed library
15320 # when we should be linking with a yet-to-be-installed one
15321 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15322 test "$hardcode_minus_L_F77" != no; then
15323 # Linking always hardcodes the temporary library directory.
15324 hardcode_action_F77=relink
15325 else
15326 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15327 hardcode_action_F77=immediate
15328 fi
15329else
15330 # We cannot hardcode anything, or else we can only hardcode existing
15331 # directories.
15332 hardcode_action_F77=unsupported
15333fi
15334echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15335echo "${ECHO_T}$hardcode_action_F77" >&6
15336
15337if test "$hardcode_action_F77" = relink; then
15338 # Fast installation is not supported
15339 enable_fast_install=no
15340elif test "$shlibpath_overrides_runpath" = yes ||
15341 test "$enable_shared" = no; then
15342 # Fast installation is not necessary
15343 enable_fast_install=needless
15344fi
15345
15346
15347# The else clause should only fire when bootstrapping the
15348# libtool distribution, otherwise you forgot to ship ltmain.sh
15349# with your package, and you will get complaints that there are
15350# no rules to generate ltmain.sh.
15351if test -f "$ltmain"; then
15352 # See if we are running on zsh, and set the options which allow our commands through
15353 # without removal of \ escapes.
15354 if test -n "${ZSH_VERSION+set}" ; then
15355 setopt NO_GLOB_SUBST
15356 fi
15357 # Now quote all the things that may contain metacharacters while being
15358 # careful not to overquote the AC_SUBSTed values. We take copies of the
15359 # variables and quote the copies for generation of the libtool script.
15360 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15361 SED SHELL STRIP \
15362 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15363 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15364 deplibs_check_method reload_flag reload_cmds need_locks \
15365 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15366 lt_cv_sys_global_symbol_to_c_name_address \
15367 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15368 old_postinstall_cmds old_postuninstall_cmds \
15369 compiler_F77 \
15370 CC_F77 \
15371 LD_F77 \
15372 lt_prog_compiler_wl_F77 \
15373 lt_prog_compiler_pic_F77 \
15374 lt_prog_compiler_static_F77 \
15375 lt_prog_compiler_no_builtin_flag_F77 \
15376 export_dynamic_flag_spec_F77 \
15377 thread_safe_flag_spec_F77 \
15378 whole_archive_flag_spec_F77 \
15379 enable_shared_with_static_runtimes_F77 \
15380 old_archive_cmds_F77 \
15381 old_archive_from_new_cmds_F77 \
15382 predep_objects_F77 \
15383 postdep_objects_F77 \
15384 predeps_F77 \
15385 postdeps_F77 \
15386 compiler_lib_search_path_F77 \
15387 archive_cmds_F77 \
15388 archive_expsym_cmds_F77 \
15389 postinstall_cmds_F77 \
15390 postuninstall_cmds_F77 \
15391 old_archive_from_expsyms_cmds_F77 \
15392 allow_undefined_flag_F77 \
15393 no_undefined_flag_F77 \
15394 export_symbols_cmds_F77 \
15395 hardcode_libdir_flag_spec_F77 \
15396 hardcode_libdir_flag_spec_ld_F77 \
15397 hardcode_libdir_separator_F77 \
15398 hardcode_automatic_F77 \
15399 module_cmds_F77 \
15400 module_expsym_cmds_F77 \
15401 lt_cv_prog_compiler_c_o_F77 \
15402 exclude_expsyms_F77 \
15403 include_expsyms_F77; do
15404
15405 case $var in
15406 old_archive_cmds_F77 | \
15407 old_archive_from_new_cmds_F77 | \
15408 archive_cmds_F77 | \
15409 archive_expsym_cmds_F77 | \
15410 module_cmds_F77 | \
15411 module_expsym_cmds_F77 | \
15412 old_archive_from_expsyms_cmds_F77 | \
15413 export_symbols_cmds_F77 | \
15414 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15415 postinstall_cmds | postuninstall_cmds | \
15416 old_postinstall_cmds | old_postuninstall_cmds | \
15417 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15418 # Double-quote double-evaled strings.
15419 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15420 ;;
15421 *)
15422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15423 ;;
15424 esac
15425 done
15426
15427 case $lt_echo in
15428 *'\$0 --fallback-echo"')
15429 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15430 ;;
15431 esac
15432
15433cfgfile="$ofile"
15434
15435 cat <<__EOF__ >> "$cfgfile"
15436# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15437
15438# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15439
15440# Shell to use when invoking shell scripts.
15441SHELL=$lt_SHELL
15442
15443# Whether or not to build shared libraries.
15444build_libtool_libs=$enable_shared
15445
15446# Whether or not to build static libraries.
15447build_old_libs=$enable_static
15448
15449# Whether or not to add -lc for building shared libraries.
15450build_libtool_need_lc=$archive_cmds_need_lc_F77
15451
15452# Whether or not to disallow shared libs when runtime libs are static
15453allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15454
15455# Whether or not to optimize for fast installation.
15456fast_install=$enable_fast_install
15457
15458# The host system.
15459host_alias=$host_alias
15460host=$host
15461host_os=$host_os
15462
15463# The build system.
15464build_alias=$build_alias
15465build=$build
15466build_os=$build_os
15467
15468# An echo program that does not interpret backslashes.
15469echo=$lt_echo
15470
15471# The archiver.
15472AR=$lt_AR
15473AR_FLAGS=$lt_AR_FLAGS
15474
15475# A C compiler.
15476LTCC=$lt_LTCC
15477
15478# LTCC compiler flags.
15479LTCFLAGS=$lt_LTCFLAGS
15480
15481# A language-specific compiler.
15482CC=$lt_compiler_F77
15483
15484# Is the compiler the GNU C compiler?
15485with_gcc=$GCC_F77
15486
15487gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15488gcc_ver=\`gcc -dumpversion\`
15489
15490# An ERE matcher.
15491EGREP=$lt_EGREP
15492
15493# The linker used to build libraries.
15494LD=$lt_LD_F77
15495
15496# Whether we need hard or soft links.
15497LN_S=$lt_LN_S
15498
15499# A BSD-compatible nm program.
15500NM=$lt_NM
15501
15502# A symbol stripping program
15503STRIP=$lt_STRIP
15504
15505# Used to examine libraries when file_magic_cmd begins "file"
15506MAGIC_CMD=$MAGIC_CMD
15507
15508# Used on cygwin: DLL creation program.
15509DLLTOOL="$DLLTOOL"
15510
15511# Used on cygwin: object dumper.
15512OBJDUMP="$OBJDUMP"
15513
15514# Used on cygwin: assembler.
15515AS="$AS"
15516
15517# The name of the directory that contains temporary libtool files.
15518objdir=$objdir
15519
15520# How to create reloadable object files.
15521reload_flag=$lt_reload_flag
15522reload_cmds=$lt_reload_cmds
15523
15524# How to pass a linker flag through the compiler.
15525wl=$lt_lt_prog_compiler_wl_F77
15526
15527# Object file suffix (normally "o").
15528objext="$ac_objext"
15529
15530# Old archive suffix (normally "a").
15531libext="$libext"
15532
15533# Shared library suffix (normally ".so").
15534shrext_cmds='$shrext_cmds'
15535
15536# Executable file suffix (normally "").
15537exeext="$exeext"
15538
15539# Additional compiler flags for building library objects.
15540pic_flag=$lt_lt_prog_compiler_pic_F77
15541pic_mode=$pic_mode
15542
15543# What is the maximum length of a command?
15544max_cmd_len=$lt_cv_sys_max_cmd_len
15545
15546# Does compiler simultaneously support -c and -o options?
15547compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15548
15549# Must we lock files when doing compilation?
15550need_locks=$lt_need_locks
15551
15552# Do we need the lib prefix for modules?
15553need_lib_prefix=$need_lib_prefix
15554
15555# Do we need a version for libraries?
15556need_version=$need_version
15557
15558# Whether dlopen is supported.
15559dlopen_support=$enable_dlopen
15560
15561# Whether dlopen of programs is supported.
15562dlopen_self=$enable_dlopen_self
15563
15564# Whether dlopen of statically linked programs is supported.
15565dlopen_self_static=$enable_dlopen_self_static
15566
15567# Compiler flag to prevent dynamic linking.
15568link_static_flag=$lt_lt_prog_compiler_static_F77
15569
15570# Compiler flag to turn off builtin functions.
15571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15572
15573# Compiler flag to allow reflexive dlopens.
15574export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15575
15576# Compiler flag to generate shared objects directly from archives.
15577whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15578
15579# Compiler flag to generate thread-safe objects.
15580thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15581
15582# Library versioning type.
15583version_type=$version_type
15584
15585# Format of library name prefix.
15586libname_spec=$lt_libname_spec
15587
15588# List of archive names. First name is the real one, the rest are links.
15589# The last name is the one that the linker finds with -lNAME.
15590library_names_spec=$lt_library_names_spec
15591
15592# The coded name of the library, if different from the real name.
15593soname_spec=$lt_soname_spec
15594
15595# Commands used to build and install an old-style archive.
15596RANLIB=$lt_RANLIB
15597old_archive_cmds=$lt_old_archive_cmds_F77
15598old_postinstall_cmds=$lt_old_postinstall_cmds
15599old_postuninstall_cmds=$lt_old_postuninstall_cmds
15600
15601# Create an old-style archive from a shared archive.
15602old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15603
15604# Create a temporary old-style archive to link instead of a shared archive.
15605old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15606
15607# Commands used to build and install a shared archive.
15608archive_cmds=$lt_archive_cmds_F77
15609archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15610postinstall_cmds=$lt_postinstall_cmds
15611postuninstall_cmds=$lt_postuninstall_cmds
15612
15613# Commands used to build a loadable module (assumed same as above if empty)
15614module_cmds=$lt_module_cmds_F77
15615module_expsym_cmds=$lt_module_expsym_cmds_F77
15616
15617# Commands to strip libraries.
15618old_striplib=$lt_old_striplib
15619striplib=$lt_striplib
15620
15621# Dependencies to place before the objects being linked to create a
15622# shared library.
15623predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15624
15625# Dependencies to place after the objects being linked to create a
15626# shared library.
15627postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15628
15629# Dependencies to place before the objects being linked to create a
15630# shared library.
15631predeps=$lt_predeps_F77
15632
15633# Dependencies to place after the objects being linked to create a
15634# shared library.
15635postdeps=$lt_postdeps_F77
15636
15637# The library search path used internally by the compiler when linking
15638# a shared library.
15639compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15640
15641# Method to check whether dependent libraries are shared objects.
15642deplibs_check_method=$lt_deplibs_check_method
15643
15644# Command to use when deplibs_check_method == file_magic.
15645file_magic_cmd=$lt_file_magic_cmd
15646
15647# Flag that allows shared libraries with undefined symbols to be built.
15648allow_undefined_flag=$lt_allow_undefined_flag_F77
15649
15650# Flag that forces no undefined symbols.
15651no_undefined_flag=$lt_no_undefined_flag_F77
15652
15653# Commands used to finish a libtool library installation in a directory.
15654finish_cmds=$lt_finish_cmds
15655
15656# Same as above, but a single script fragment to be evaled but not shown.
15657finish_eval=$lt_finish_eval
15658
15659# Take the output of nm and produce a listing of raw symbols and C names.
15660global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15661
15662# Transform the output of nm in a proper C declaration
15663global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15664
15665# Transform the output of nm in a C name address pair
15666global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15667
15668# This is the shared library runtime path variable.
15669runpath_var=$runpath_var
15670
15671# This is the shared library path variable.
15672shlibpath_var=$shlibpath_var
15673
15674# Is shlibpath searched before the hard-coded library search path?
15675shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15676
15677# How to hardcode a shared library path into an executable.
15678hardcode_action=$hardcode_action_F77
15679
15680# Whether we should hardcode library paths into libraries.
15681hardcode_into_libs=$hardcode_into_libs
15682
15683# Flag to hardcode \$libdir into a binary during linking.
15684# This must work even if \$libdir does not exist.
15685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15686
15687# If ld is used when linking, flag to hardcode \$libdir into
15688# a binary during linking. This must work even if \$libdir does
15689# not exist.
15690hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15691
15692# Whether we need a single -rpath flag with a separated argument.
15693hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15694
15695# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15696# resulting binary.
15697hardcode_direct=$hardcode_direct_F77
15698
15699# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15700# resulting binary.
15701hardcode_minus_L=$hardcode_minus_L_F77
15702
15703# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15704# the resulting binary.
15705hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15706
15707# Set to yes if building a shared library automatically hardcodes DIR into the library
15708# and all subsequent libraries and executables linked against it.
15709hardcode_automatic=$hardcode_automatic_F77
15710
15711# Variables whose values should be saved in libtool wrapper scripts and
15712# restored at relink time.
15713variables_saved_for_relink="$variables_saved_for_relink"
15714
15715# Whether libtool must link a program against all its dependency libraries.
15716link_all_deplibs=$link_all_deplibs_F77
15717
15718# Compile-time system search path for libraries
15719sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15720
15721# Run-time system search path for libraries
15722sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15723
15724# Fix the shell variable \$srcfile for the compiler.
15725fix_srcfile_path="$fix_srcfile_path_F77"
15726
15727# Set to yes if exported symbols are required.
15728always_export_symbols=$always_export_symbols_F77
15729
15730# The commands to list exported symbols.
15731export_symbols_cmds=$lt_export_symbols_cmds_F77
15732
15733# The commands to extract the exported symbol list from a shared archive.
15734extract_expsyms_cmds=$lt_extract_expsyms_cmds
15735
15736# Symbols that should not be listed in the preloaded symbols.
15737exclude_expsyms=$lt_exclude_expsyms_F77
15738
15739# Symbols that must always be exported.
15740include_expsyms=$lt_include_expsyms_F77
15741
15742# ### END LIBTOOL TAG CONFIG: $tagname
15743
15744__EOF__
15745
15746
15747else
15748 # If there is no Makefile yet, we rely on a make rule to execute
15749 # `config.status --recheck' to rerun these tests and create the
15750 # libtool script then.
15751 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15752 if test -f "$ltmain_in"; then
15753 test -f Makefile && make "$ltmain"
15754 fi
15755fi
15756
15757
15758ac_ext=c
15759ac_cpp='$CPP $CPPFLAGS'
15760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15762ac_compiler_gnu=$ac_cv_c_compiler_gnu
15763
15764CC="$lt_save_CC"
15765
15766 else
15767 tagname=""
15768 fi
15769 ;;
15770
15771 GCJ)
15772 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15773
15774
15775
15776# Source file extension for Java test sources.
15777ac_ext=java
15778
15779# Object file extension for compiled Java test sources.
15780objext=o
15781objext_GCJ=$objext
15782
15783# Code to be used in simple compile tests
15784lt_simple_compile_test_code="class foo {}\n"
15785
15786# Code to be used in simple link tests
15787lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15788
15789# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15790
15791# If no C compiler was specified, use CC.
15792LTCC=${LTCC-"$CC"}
15793
15794# If no C compiler flags were specified, use CFLAGS.
15795LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15796
15797# Allow CC to be a program name with arguments.
15798compiler=$CC
15799
15800
15801# save warnings/boilerplate of simple test code
15802ac_outfile=conftest.$ac_objext
15803printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15804eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15805_lt_compiler_boilerplate=`cat conftest.err`
15806$rm conftest*
15807
15808ac_outfile=conftest.$ac_objext
15809printf "$lt_simple_link_test_code" >conftest.$ac_ext
15810eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15811_lt_linker_boilerplate=`cat conftest.err`
15812$rm conftest*
15813
15814
15815# Allow CC to be a program name with arguments.
15816lt_save_CC="$CC"
15817CC=${GCJ-"gcj"}
15818compiler=$CC
15819compiler_GCJ=$CC
15820for cc_temp in $compiler""; do
15821 case $cc_temp in
15822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15824 \-*) ;;
15825 *) break;;
15826 esac
15827done
15828cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15829
15830
15831# GCJ did not exist at the time GCC didn't implicitly link libc in.
15832archive_cmds_need_lc_GCJ=no
15833
15834old_archive_cmds_GCJ=$old_archive_cmds
15835
15836
15837lt_prog_compiler_no_builtin_flag_GCJ=
15838
15839if test "$GCC" = yes; then
15840 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15841
15842
15843echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15844echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15845if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847else
15848 lt_cv_prog_compiler_rtti_exceptions=no
15849 ac_outfile=conftest.$ac_objext
15850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15851 lt_compiler_flag="-fno-rtti -fno-exceptions"
15852 # Insert the option either (1) after the last *FLAGS variable, or
15853 # (2) before a word containing "conftest.", or (3) at the end.
15854 # Note that $ac_compile itself does not contain backslashes and begins
15855 # with a dollar sign (not a hyphen), so the echo should work correctly.
15856 # The option is referenced via a variable to avoid confusing sed.
15857 lt_compile=`echo "$ac_compile" | $SED \
15858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15860 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 15861 (eval echo "\"\$as_me:15861: $lt_compile\"" >&5)
bf9f3bac 15862 (eval "$lt_compile" 2>conftest.err)
15863 ac_status=$?
15864 cat conftest.err >&5
0cbaeb11 15865 echo "$as_me:15865: \$? = $ac_status" >&5
bf9f3bac 15866 if (exit $ac_status) && test -s "$ac_outfile"; then
15867 # The compiler can only warn and ignore the option if not recognized
15868 # So say no if there are warnings other than the usual output.
15869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15872 lt_cv_prog_compiler_rtti_exceptions=yes
15873 fi
15874 fi
15875 $rm conftest*
15876
15877fi
15878echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15879echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15880
15881if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15882 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15883else
15884 :
15885fi
15886
15887fi
15888
15889lt_prog_compiler_wl_GCJ=
15890lt_prog_compiler_pic_GCJ=
15891lt_prog_compiler_static_GCJ=
15892
15893echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15894echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15895
15896 if test "$GCC" = yes; then
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 lt_prog_compiler_static_GCJ='-static'
15899
15900 case $host_os in
15901 aix*)
15902 # All AIX code is PIC.
15903 if test "$host_cpu" = ia64; then
15904 # AIX 5 now supports IA64 processor
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15906 fi
15907 ;;
15908
15909 amigaos*)
15910 # FIXME: we need at least 68020 code to build shared libraries, but
15911 # adding the `-m68020' flag to GCC prevents building anything better,
15912 # like `-m68040'.
15913 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15914 ;;
15915
15916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15917 # PIC is the default for these OSes.
15918 ;;
15919
15920 mingw* | pw32* | os2*)
15921 # This hack is so that the source file can tell whether it is being
15922 # built for inclusion in a dll (and should export symbols for example).
15923 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15924 ;;
15925
15926 darwin* | rhapsody*)
15927 # PIC is the default on this platform
15928 # Common symbols not allowed in MH_DYLIB files
15929 lt_prog_compiler_pic_GCJ='-fno-common'
15930 ;;
15931
15932 interix3*)
15933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15934 # Instead, we relocate shared libraries at runtime.
15935 ;;
15936
15937 msdosdjgpp*)
15938 # Just because we use GCC doesn't mean we suddenly get shared libraries
15939 # on systems that don't support them.
15940 lt_prog_compiler_can_build_shared_GCJ=no
15941 enable_shared=no
15942 ;;
15943
15944 sysv4*MP*)
15945 if test -d /usr/nec; then
15946 lt_prog_compiler_pic_GCJ=-Kconform_pic
15947 fi
15948 ;;
15949
15950 hpux*)
15951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15952 # not for PA HP-UX.
15953 case $host_cpu in
15954 hppa*64*|ia64*)
15955 # +Z the default
15956 ;;
15957 *)
15958 lt_prog_compiler_pic_GCJ='-fPIC'
15959 ;;
15960 esac
15961 ;;
15962
15963 *)
15964 lt_prog_compiler_pic_GCJ='-fPIC'
15965 ;;
15966 esac
15967 else
15968 # PORTME Check for flag to pass linker flags through the system compiler.
15969 case $host_os in
15970 aix*)
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 if test "$host_cpu" = ia64; then
15973 # AIX 5 now supports IA64 processor
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15975 else
15976 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15977 fi
15978 ;;
15979 darwin*)
15980 # PIC is the default on this platform
15981 # Common symbols not allowed in MH_DYLIB files
15982 case $cc_basename in
15983 xlc*)
15984 lt_prog_compiler_pic_GCJ='-qnocommon'
15985 lt_prog_compiler_wl_GCJ='-Wl,'
15986 ;;
15987 esac
15988 ;;
15989
15990 mingw* | pw32* | os2*)
15991 # This hack is so that the source file can tell whether it is being
15992 # built for inclusion in a dll (and should export symbols for example).
15993 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15994 ;;
15995
15996 hpux9* | hpux10* | hpux11*)
15997 lt_prog_compiler_wl_GCJ='-Wl,'
15998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15999 # not for PA HP-UX.
16000 case $host_cpu in
16001 hppa*64*|ia64*)
16002 # +Z the default
16003 ;;
16004 *)
16005 lt_prog_compiler_pic_GCJ='+Z'
16006 ;;
16007 esac
16008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16009 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16010 ;;
16011
16012 irix5* | irix6* | nonstopux*)
16013 lt_prog_compiler_wl_GCJ='-Wl,'
16014 # PIC (with -KPIC) is the default.
16015 lt_prog_compiler_static_GCJ='-non_shared'
16016 ;;
16017
16018 newsos6)
16019 lt_prog_compiler_pic_GCJ='-KPIC'
16020 lt_prog_compiler_static_GCJ='-Bstatic'
16021 ;;
16022
16023 linux*)
16024 case $cc_basename in
16025 icc* | ecc*)
16026 lt_prog_compiler_wl_GCJ='-Wl,'
16027 lt_prog_compiler_pic_GCJ='-KPIC'
16028 lt_prog_compiler_static_GCJ='-static'
16029 ;;
16030 pgcc* | pgf77* | pgf90* | pgf95*)
16031 # Portland Group compilers (*not* the Pentium gcc compiler,
16032 # which looks to be a dead project)
16033 lt_prog_compiler_wl_GCJ='-Wl,'
16034 lt_prog_compiler_pic_GCJ='-fpic'
16035 lt_prog_compiler_static_GCJ='-Bstatic'
16036 ;;
16037 ccc*)
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 # All Alpha code is PIC.
16040 lt_prog_compiler_static_GCJ='-non_shared'
16041 ;;
16042 esac
16043 ;;
16044
16045 osf3* | osf4* | osf5*)
16046 lt_prog_compiler_wl_GCJ='-Wl,'
16047 # All OSF/1 code is PIC.
16048 lt_prog_compiler_static_GCJ='-non_shared'
16049 ;;
16050
16051 solaris*)
16052 lt_prog_compiler_pic_GCJ='-KPIC'
16053 lt_prog_compiler_static_GCJ='-Bstatic'
16054 case $cc_basename in
16055 f77* | f90* | f95*)
16056 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16057 *)
16058 lt_prog_compiler_wl_GCJ='-Wl,';;
16059 esac
16060 ;;
16061
16062 sunos4*)
16063 lt_prog_compiler_wl_GCJ='-Qoption ld '
16064 lt_prog_compiler_pic_GCJ='-PIC'
16065 lt_prog_compiler_static_GCJ='-Bstatic'
16066 ;;
16067
16068 sysv4 | sysv4.2uw2* | sysv4.3*)
16069 lt_prog_compiler_wl_GCJ='-Wl,'
16070 lt_prog_compiler_pic_GCJ='-KPIC'
16071 lt_prog_compiler_static_GCJ='-Bstatic'
16072 ;;
16073
16074 sysv4*MP*)
16075 if test -d /usr/nec ;then
16076 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16077 lt_prog_compiler_static_GCJ='-Bstatic'
16078 fi
16079 ;;
16080
16081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16082 lt_prog_compiler_wl_GCJ='-Wl,'
16083 lt_prog_compiler_pic_GCJ='-KPIC'
16084 lt_prog_compiler_static_GCJ='-Bstatic'
16085 ;;
16086
16087 unicos*)
16088 lt_prog_compiler_wl_GCJ='-Wl,'
16089 lt_prog_compiler_can_build_shared_GCJ=no
16090 ;;
16091
16092 uts4*)
16093 lt_prog_compiler_pic_GCJ='-pic'
16094 lt_prog_compiler_static_GCJ='-Bstatic'
16095 ;;
16096
16097 *)
16098 lt_prog_compiler_can_build_shared_GCJ=no
16099 ;;
16100 esac
16101 fi
16102
16103echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16104echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16105
16106#
16107# Check to make sure the PIC flag actually works.
16108#
16109if test -n "$lt_prog_compiler_pic_GCJ"; then
16110
16111echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16113if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115else
16116 lt_prog_compiler_pic_works_GCJ=no
16117 ac_outfile=conftest.$ac_objext
16118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16120 # Insert the option either (1) after the last *FLAGS variable, or
16121 # (2) before a word containing "conftest.", or (3) at the end.
16122 # Note that $ac_compile itself does not contain backslashes and begins
16123 # with a dollar sign (not a hyphen), so the echo should work correctly.
16124 # The option is referenced via a variable to avoid confusing sed.
16125 lt_compile=`echo "$ac_compile" | $SED \
16126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16128 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 16129 (eval echo "\"\$as_me:16129: $lt_compile\"" >&5)
bf9f3bac 16130 (eval "$lt_compile" 2>conftest.err)
16131 ac_status=$?
16132 cat conftest.err >&5
0cbaeb11 16133 echo "$as_me:16133: \$? = $ac_status" >&5
bf9f3bac 16134 if (exit $ac_status) && test -s "$ac_outfile"; then
16135 # The compiler can only warn and ignore the option if not recognized
16136 # So say no if there are warnings other than the usual output.
16137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16140 lt_prog_compiler_pic_works_GCJ=yes
16141 fi
16142 fi
16143 $rm conftest*
16144
16145fi
16146echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16147echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16148
16149if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16150 case $lt_prog_compiler_pic_GCJ in
16151 "" | " "*) ;;
16152 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16153 esac
16154else
16155 lt_prog_compiler_pic_GCJ=
16156 lt_prog_compiler_can_build_shared_GCJ=no
16157fi
16158
16159fi
16160case $host_os in
16161 # For platforms which do not support PIC, -DPIC is meaningless:
16162 *djgpp*)
16163 lt_prog_compiler_pic_GCJ=
16164 ;;
16165 *)
16166 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16167 ;;
16168esac
16169
16170#
16171# Check to make sure the static flag actually works.
16172#
16173wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16174echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16176if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 lt_prog_compiler_static_works_GCJ=no
16180 save_LDFLAGS="$LDFLAGS"
16181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16184 # The linker can only warn and ignore the option if not recognized
16185 # So say no if there are warnings
16186 if test -s conftest.err; then
16187 # Append any errors to the config.log.
16188 cat conftest.err 1>&5
16189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16191 if diff conftest.exp conftest.er2 >/dev/null; then
16192 lt_prog_compiler_static_works_GCJ=yes
16193 fi
16194 else
16195 lt_prog_compiler_static_works_GCJ=yes
16196 fi
16197 fi
16198 $rm conftest*
16199 LDFLAGS="$save_LDFLAGS"
16200
16201fi
16202echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16203echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16204
16205if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16206 :
16207else
16208 lt_prog_compiler_static_GCJ=
16209fi
16210
16211
16212echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16214if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216else
16217 lt_cv_prog_compiler_c_o_GCJ=no
16218 $rm -r conftest 2>/dev/null
16219 mkdir conftest
16220 cd conftest
16221 mkdir out
16222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16223
16224 lt_compiler_flag="-o out/conftest2.$ac_objext"
16225 # Insert the option either (1) after the last *FLAGS variable, or
16226 # (2) before a word containing "conftest.", or (3) at the end.
16227 # Note that $ac_compile itself does not contain backslashes and begins
16228 # with a dollar sign (not a hyphen), so the echo should work correctly.
16229 lt_compile=`echo "$ac_compile" | $SED \
16230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16232 -e 's:$: $lt_compiler_flag:'`
0cbaeb11 16233 (eval echo "\"\$as_me:16233: $lt_compile\"" >&5)
bf9f3bac 16234 (eval "$lt_compile" 2>out/conftest.err)
16235 ac_status=$?
16236 cat out/conftest.err >&5
0cbaeb11 16237 echo "$as_me:16237: \$? = $ac_status" >&5
bf9f3bac 16238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16239 then
16240 # The compiler can only warn and ignore the option if not recognized
16241 # So say no if there are warnings
16242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16245 lt_cv_prog_compiler_c_o_GCJ=yes
16246 fi
16247 fi
16248 chmod u+w . 2>&5
16249 $rm conftest*
16250 # SGI C++ compiler will create directory out/ii_files/ for
16251 # template instantiation
16252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16253 $rm out/* && rmdir out
16254 cd ..
16255 rmdir conftest
16256 $rm conftest*
16257
16258fi
16259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16261
16262
16263hard_links="nottested"
16264if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16265 # do not overwrite the value of need_locks provided by the user
16266 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16268 hard_links=yes
16269 $rm conftest*
16270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16271 touch conftest.a
16272 ln conftest.a conftest.b 2>&5 || hard_links=no
16273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16274 echo "$as_me:$LINENO: result: $hard_links" >&5
16275echo "${ECHO_T}$hard_links" >&6
16276 if test "$hard_links" = no; then
16277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16279 need_locks=warn
16280 fi
16281else
16282 need_locks=no
16283fi
16284
16285echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16287
16288 runpath_var=
16289 allow_undefined_flag_GCJ=
16290 enable_shared_with_static_runtimes_GCJ=no
16291 archive_cmds_GCJ=
16292 archive_expsym_cmds_GCJ=
16293 old_archive_From_new_cmds_GCJ=
16294 old_archive_from_expsyms_cmds_GCJ=
16295 export_dynamic_flag_spec_GCJ=
16296 whole_archive_flag_spec_GCJ=
16297 thread_safe_flag_spec_GCJ=
16298 hardcode_libdir_flag_spec_GCJ=
16299 hardcode_libdir_flag_spec_ld_GCJ=
16300 hardcode_libdir_separator_GCJ=
16301 hardcode_direct_GCJ=no
16302 hardcode_minus_L_GCJ=no
16303 hardcode_shlibpath_var_GCJ=unsupported
16304 link_all_deplibs_GCJ=unknown
16305 hardcode_automatic_GCJ=no
16306 module_cmds_GCJ=
16307 module_expsym_cmds_GCJ=
16308 always_export_symbols_GCJ=no
16309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16310 # include_expsyms should be a list of space-separated symbols to be *always*
16311 # included in the symbol list
16312 include_expsyms_GCJ=
16313 # exclude_expsyms can be an extended regexp of symbols to exclude
16314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16316 # as well as any symbol that contains `d'.
16317 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16319 # platforms (ab)use it in PIC code, but their linkers get confused if
16320 # the symbol is explicitly referenced. Since portable code cannot
16321 # rely on this symbol name, it's probably fine to never include it in
16322 # preloaded symbol tables.
16323 extract_expsyms_cmds=
16324 # Just being paranoid about ensuring that cc_basename is set.
16325 for cc_temp in $compiler""; do
16326 case $cc_temp in
16327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16329 \-*) ;;
16330 *) break;;
16331 esac
16332done
16333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16334
16335 case $host_os in
16336 cygwin* | mingw* | pw32*)
16337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16338 # When not using gcc, we currently assume that we are using
16339 # Microsoft Visual C++.
16340 if test "$GCC" != yes; then
16341 with_gnu_ld=no
16342 fi
16343 ;;
16344 interix*)
16345 # we just hope/assume this is gcc and not c89 (= MSVC++)
16346 with_gnu_ld=yes
16347 ;;
16348 openbsd*)
16349 with_gnu_ld=no
16350 ;;
16351 esac
16352
16353 ld_shlibs_GCJ=yes
16354 if test "$with_gnu_ld" = yes; then
16355 # If archive_cmds runs LD, not CC, wlarc should be empty
16356 wlarc='${wl}'
16357
16358 # Set some defaults for GNU ld with shared library support. These
16359 # are reset later if shared libraries are not supported. Putting them
16360 # here allows them to be overridden if necessary.
16361 runpath_var=LD_RUN_PATH
16362 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16363 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16364 # ancient GNU ld didn't support --whole-archive et. al.
16365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16366 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16367 else
16368 whole_archive_flag_spec_GCJ=
16369 fi
16370 supports_anon_versioning=no
16371 case `$LD -v 2>/dev/null` in
16372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16375 *\ 2.11.*) ;; # other 2.11 versions
16376 *) supports_anon_versioning=yes ;;
16377 esac
16378
16379 # See if GNU ld supports shared libraries.
16380 case $host_os in
16381 aix3* | aix4* | aix5*)
16382 # On AIX/PPC, the GNU linker is very broken
16383 if test "$host_cpu" != ia64; then
16384 ld_shlibs_GCJ=no
16385 cat <<EOF 1>&2
16386
16387*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16388*** to be unable to reliably create shared libraries on AIX.
16389*** Therefore, libtool is disabling shared libraries support. If you
16390*** really care for shared libraries, you may want to modify your PATH
16391*** so that a non-GNU linker is found, and then restart.
16392
16393EOF
16394 fi
16395 ;;
16396
16397 amigaos*)
16398 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)'
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400 hardcode_minus_L_GCJ=yes
16401
16402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16403 # that the semantics of dynamic libraries on AmigaOS, at least up
16404 # to version 4, is to share data among multiple programs linked
16405 # with the same dynamic library. Since this doesn't match the
16406 # behavior of shared libraries on other platforms, we can't use
16407 # them.
16408 ld_shlibs_GCJ=no
16409 ;;
16410
16411 beos*)
16412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16413 allow_undefined_flag_GCJ=unsupported
16414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16415 # support --undefined. This deserves some investigation. FIXME
16416 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16417 else
16418 ld_shlibs_GCJ=no
16419 fi
16420 ;;
16421
16422 cygwin* | mingw* | pw32*)
16423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16424 # as there is no search path for DLLs.
16425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16426 allow_undefined_flag_GCJ=unsupported
16427 always_export_symbols_GCJ=no
16428 enable_shared_with_static_runtimes_GCJ=yes
16429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16430
16431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16432 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16433 # If the export-symbols file already is a .def file (1st line
16434 # is EXPORTS), use it as is; otherwise, prepend...
16435 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16436 cp $export_symbols $output_objdir/$soname.def;
16437 else
16438 echo EXPORTS > $output_objdir/$soname.def;
16439 cat $export_symbols >> $output_objdir/$soname.def;
16440 fi~
16441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16442 else
16443 ld_shlibs_GCJ=no
16444 fi
16445 ;;
16446
16447 interix3*)
16448 hardcode_direct_GCJ=no
16449 hardcode_shlibpath_var_GCJ=no
16450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16451 export_dynamic_flag_spec_GCJ='${wl}-E'
16452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16453 # Instead, shared libraries are loaded at an image base (0x10000000 by
16454 # default) and relocated if they conflict, which is a slow very memory
16455 # consuming and fragmenting process. To avoid this, we pick a random,
16456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16458 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16459 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16460 ;;
16461
16462 linux*)
16463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16464 tmp_addflag=
16465 case $cc_basename,$host_cpu in
16466 pgcc*) # Portland Group C compiler
16467 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16468 tmp_addflag=' $pic_flag'
16469 ;;
16470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16471 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16472 tmp_addflag=' $pic_flag -Mnomain' ;;
16473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16474 tmp_addflag=' -i_dynamic' ;;
16475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16476 tmp_addflag=' -i_dynamic -nofor_main' ;;
16477 ifc* | ifort*) # Intel Fortran compiler
16478 tmp_addflag=' -nofor_main' ;;
16479 esac
16480 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16481
16482 if test $supports_anon_versioning = yes; then
16483 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16485 $echo "local: *; };" >> $output_objdir/$libname.ver~
16486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16487 fi
16488 else
16489 ld_shlibs_GCJ=no
16490 fi
16491 ;;
16492
16493 netbsd*)
16494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16495 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16496 wlarc=
16497 else
16498 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16499 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16500 fi
16501 ;;
16502
16503 solaris*)
16504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16505 ld_shlibs_GCJ=no
16506 cat <<EOF 1>&2
16507
16508*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16509*** create shared libraries on Solaris systems. Therefore, libtool
16510*** is disabling shared libraries support. We urge you to upgrade GNU
16511*** binutils to release 2.9.1 or newer. Another option is to modify
16512*** your PATH or compiler configuration so that the native linker is
16513*** used, and then restart.
16514
16515EOF
16516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16519 else
16520 ld_shlibs_GCJ=no
16521 fi
16522 ;;
16523
16524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16525 case `$LD -v 2>&1` in
16526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16527 ld_shlibs_GCJ=no
16528 cat <<_LT_EOF 1>&2
16529
16530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16531*** reliably create shared libraries on SCO systems. Therefore, libtool
16532*** is disabling shared libraries support. We urge you to upgrade GNU
16533*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16534*** your PATH or compiler configuration so that the native linker is
16535*** used, and then restart.
16536
16537_LT_EOF
16538 ;;
16539 *)
16540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16542 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16543 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16544 else
16545 ld_shlibs_GCJ=no
16546 fi
16547 ;;
16548 esac
16549 ;;
16550
16551 sunos4*)
16552 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16553 wlarc=
16554 hardcode_direct_GCJ=yes
16555 hardcode_shlibpath_var_GCJ=no
16556 ;;
16557
16558 *)
16559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16560 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16561 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16562 else
16563 ld_shlibs_GCJ=no
16564 fi
16565 ;;
16566 esac
16567
16568 if test "$ld_shlibs_GCJ" = no; then
16569 runpath_var=
16570 hardcode_libdir_flag_spec_GCJ=
16571 export_dynamic_flag_spec_GCJ=
16572 whole_archive_flag_spec_GCJ=
16573 fi
16574 else
16575 # PORTME fill in a description of your system's linker (not GNU ld)
16576 case $host_os in
16577 aix3*)
16578 allow_undefined_flag_GCJ=unsupported
16579 always_export_symbols_GCJ=yes
16580 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'
16581 # Note: this linker hardcodes the directories in LIBPATH if there
16582 # are no directories specified by -L.
16583 hardcode_minus_L_GCJ=yes
16584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16585 # Neither direct hardcoding nor static linking is supported with a
16586 # broken collect2.
16587 hardcode_direct_GCJ=unsupported
16588 fi
16589 ;;
16590
16591 aix4* | aix5*)
16592 if test "$host_cpu" = ia64; then
16593 # On IA64, the linker does run time linking by default, so we don't
16594 # have to do anything special.
16595 aix_use_runtimelinking=no
16596 exp_sym_flag='-Bexport'
16597 no_entry_flag=""
16598 else
16599 # If we're using GNU nm, then we don't want the "-C" option.
16600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16602 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'
16603 else
16604 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'
16605 fi
16606 aix_use_runtimelinking=no
16607
16608 # Test if we are trying to use run time linking or normal
16609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16610 # need to do runtime linking.
16611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16612 for ld_flag in $LDFLAGS; do
16613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16614 aix_use_runtimelinking=yes
16615 break
16616 fi
16617 done
16618 ;;
16619 esac
16620
16621 exp_sym_flag='-bexport'
16622 no_entry_flag='-bnoentry'
16623 fi
16624
16625 # When large executables or shared objects are built, AIX ld can
16626 # have problems creating the table of contents. If linking a library
16627 # or program results in "error TOC overflow" add -mminimal-toc to
16628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16630
16631 archive_cmds_GCJ=''
16632 hardcode_direct_GCJ=yes
16633 hardcode_libdir_separator_GCJ=':'
16634 link_all_deplibs_GCJ=yes
16635
16636 if test "$GCC" = yes; then
16637 case $host_os in aix4.[012]|aix4.[012].*)
16638 # We only want to do this on AIX 4.2 and lower, the check
16639 # below for broken collect2 doesn't work under 4.3+
16640 collect2name=`${CC} -print-prog-name=collect2`
16641 if test -f "$collect2name" && \
16642 strings "$collect2name" | grep resolve_lib_name >/dev/null
16643 then
16644 # We have reworked collect2
16645 hardcode_direct_GCJ=yes
16646 else
16647 # We have old collect2
16648 hardcode_direct_GCJ=unsupported
16649 # It fails to find uninstalled libraries when the uninstalled
16650 # path is not listed in the libpath. Setting hardcode_minus_L
16651 # to unsupported forces relinking
16652 hardcode_minus_L_GCJ=yes
16653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654 hardcode_libdir_separator_GCJ=
16655 fi
16656 ;;
16657 esac
16658 shared_flag='-shared'
16659 if test "$aix_use_runtimelinking" = yes; then
16660 shared_flag="$shared_flag "'${wl}-G'
16661 fi
16662 else
16663 # not using gcc
16664 if test "$host_cpu" = ia64; then
16665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16666 # chokes on -Wl,-G. The following line is correct:
16667 shared_flag='-G'
16668 else
16669 if test "$aix_use_runtimelinking" = yes; then
16670 shared_flag='${wl}-G'
16671 else
16672 shared_flag='${wl}-bM:SRE'
16673 fi
16674 fi
16675 fi
16676
16677 # It seems that -bexpall does not export symbols beginning with
16678 # underscore (_), so it is better to generate a list of symbols to export.
16679 always_export_symbols_GCJ=yes
16680 if test "$aix_use_runtimelinking" = yes; then
16681 # Warning - without using the other runtime loading flags (-brtl),
16682 # -berok will link without error, but may produce a broken library.
16683 allow_undefined_flag_GCJ='-berok'
16684 # Determine the default libpath from the value encoded in an empty executable.
16685 cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691
16692int
16693main ()
16694{
16695
16696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext conftest$ac_exeext
16701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16702 (eval $ac_link) 2>conftest.er1
16703 ac_status=$?
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag"
16710 || test ! -s conftest.err'
16711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712 (eval $ac_try) 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16719 ac_status=$?
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; }; then
16722
16723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16724}'`
16725# Check for a 64-bit object if we didn't find anything.
16726if 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; }
16727}'`; fi
16728else
16729 echo "$as_me: failed program was:" >&5
16730sed 's/^/| /' conftest.$ac_ext >&5
16731
16732fi
16733rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16736
16737 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16738 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16739 else
16740 if test "$host_cpu" = ia64; then
16741 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16742 allow_undefined_flag_GCJ="-z nodefs"
16743 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16744 else
16745 # Determine the default libpath from the value encoded in an empty executable.
16746 cat >conftest.$ac_ext <<_ACEOF
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
16751/* end confdefs.h. */
16752
16753int
16754main ()
16755{
16756
16757 ;
16758 return 0;
16759}
16760_ACEOF
16761rm -f conftest.$ac_objext conftest$ac_exeext
16762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16763 (eval $ac_link) 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783
16784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16785}'`
16786# Check for a 64-bit object if we didn't find anything.
16787if 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; }
16788}'`; fi
16789else
16790 echo "$as_me: failed program was:" >&5
16791sed 's/^/| /' conftest.$ac_ext >&5
16792
16793fi
16794rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16797
16798 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16799 # Warning - without using the other run time loading flags,
16800 # -berok will link without error, but may produce a broken library.
16801 no_undefined_flag_GCJ=' ${wl}-bernotok'
16802 allow_undefined_flag_GCJ=' ${wl}-berok'
16803 # Exported symbols can be pulled into shared objects from archives
16804 whole_archive_flag_spec_GCJ='$convenience'
16805 archive_cmds_need_lc_GCJ=yes
16806 # This is similar to how AIX traditionally builds its shared libraries.
16807 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16808 fi
16809 fi
16810 ;;
16811
16812 amigaos*)
16813 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)'
16814 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16815 hardcode_minus_L_GCJ=yes
16816 # see comment about different semantics on the GNU ld section
16817 ld_shlibs_GCJ=no
16818 ;;
16819
16820 bsdi[45]*)
16821 export_dynamic_flag_spec_GCJ=-rdynamic
16822 ;;
16823
16824 cygwin* | mingw* | pw32*)
16825 # When not using gcc, we currently assume that we are using
16826 # Microsoft Visual C++.
16827 # hardcode_libdir_flag_spec is actually meaningless, as there is
16828 # no search path for DLLs.
16829 hardcode_libdir_flag_spec_GCJ=' '
16830 allow_undefined_flag_GCJ=unsupported
16831 # Tell ltmain to make .lib files, not .a files.
16832 libext=lib
16833 # Tell ltmain to make .dll files, not .so files.
16834 shrext_cmds=".dll"
16835 # FIXME: Setting linknames here is a bad hack.
16836 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16837 # The linker will automatically build a .lib file if we build a DLL.
16838 old_archive_From_new_cmds_GCJ='true'
16839 # FIXME: Should let the user specify the lib program.
16840 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16841 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16842 enable_shared_with_static_runtimes_GCJ=yes
16843 ;;
16844
16845 darwin* | rhapsody*)
16846 case $host_os in
16847 rhapsody* | darwin1.[012])
16848 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16849 ;;
16850 *) # Darwin 1.3 on
16851 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16852 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16853 else
16854 case ${MACOSX_DEPLOYMENT_TARGET} in
16855 10.[012])
16856 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16857 ;;
16858 10.*)
16859 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16860 ;;
16861 esac
16862 fi
16863 ;;
16864 esac
16865 archive_cmds_need_lc_GCJ=no
16866 hardcode_direct_GCJ=no
16867 hardcode_automatic_GCJ=yes
16868 hardcode_shlibpath_var_GCJ=unsupported
16869 whole_archive_flag_spec_GCJ=''
16870 link_all_deplibs_GCJ=yes
16871 if test "$GCC" = yes ; then
16872 output_verbose_link_cmd='echo'
16873 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16874 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16876 archive_expsym_cmds_GCJ='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}'
16877 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16878 else
16879 case $cc_basename in
16880 xlc*)
16881 output_verbose_link_cmd='echo'
16882 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16883 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16884 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16885 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16886 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16887 ;;
16888 *)
16889 ld_shlibs_GCJ=no
16890 ;;
16891 esac
16892 fi
16893 ;;
16894
16895 dgux*)
16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898 hardcode_shlibpath_var_GCJ=no
16899 ;;
16900
16901 freebsd1*)
16902 ld_shlibs_GCJ=no
16903 ;;
16904
16905 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16906 # support. Future versions do this automatically, but an explicit c++rt0.o
16907 # does not break anything, and helps significantly (at the cost of a little
16908 # extra space).
16909 freebsd2.2*)
16910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16912 hardcode_direct_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16914 ;;
16915
16916 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16917 freebsd2*)
16918 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16919 hardcode_direct_GCJ=yes
16920 hardcode_minus_L_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=no
16922 ;;
16923
16924 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16925 freebsd* | kfreebsd*-gnu | dragonfly*)
16926 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16927 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16928 hardcode_direct_GCJ=yes
16929 hardcode_shlibpath_var_GCJ=no
16930 ;;
16931
16932 hpux9*)
16933 if test "$GCC" = yes; then
16934 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'
16935 else
16936 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'
16937 fi
16938 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16939 hardcode_libdir_separator_GCJ=:
16940 hardcode_direct_GCJ=yes
16941
16942 # hardcode_minus_L: Not really in the search PATH,
16943 # but as the default location of the library.
16944 hardcode_minus_L_GCJ=yes
16945 export_dynamic_flag_spec_GCJ='${wl}-E'
16946 ;;
16947
16948 hpux10*)
16949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16950 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16951 else
16952 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16953 fi
16954 if test "$with_gnu_ld" = no; then
16955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16956 hardcode_libdir_separator_GCJ=:
16957
16958 hardcode_direct_GCJ=yes
16959 export_dynamic_flag_spec_GCJ='${wl}-E'
16960
16961 # hardcode_minus_L: Not really in the search PATH,
16962 # but as the default location of the library.
16963 hardcode_minus_L_GCJ=yes
16964 fi
16965 ;;
16966
16967 hpux11*)
16968 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16969 case $host_cpu in
16970 hppa*64*)
16971 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 ;;
16973 ia64*)
16974 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16975 ;;
16976 *)
16977 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16978 ;;
16979 esac
16980 else
16981 case $host_cpu in
16982 hppa*64*)
16983 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 ;;
16985 ia64*)
16986 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16987 ;;
16988 *)
16989 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16990 ;;
16991 esac
16992 fi
16993 if test "$with_gnu_ld" = no; then
16994 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16995 hardcode_libdir_separator_GCJ=:
16996
16997 case $host_cpu in
16998 hppa*64*|ia64*)
16999 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17000 hardcode_direct_GCJ=no
17001 hardcode_shlibpath_var_GCJ=no
17002 ;;
17003 *)
17004 hardcode_direct_GCJ=yes
17005 export_dynamic_flag_spec_GCJ='${wl}-E'
17006
17007 # hardcode_minus_L: Not really in the search PATH,
17008 # but as the default location of the library.
17009 hardcode_minus_L_GCJ=yes
17010 ;;
17011 esac
17012 fi
17013 ;;
17014
17015 irix5* | irix6* | nonstopux*)
17016 if test "$GCC" = yes; then
17017 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'
17018 else
17019 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'
17020 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17021 fi
17022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17023 hardcode_libdir_separator_GCJ=:
17024 link_all_deplibs_GCJ=yes
17025 ;;
17026
17027 netbsd*)
17028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17029 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17030 else
17031 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17032 fi
17033 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17034 hardcode_direct_GCJ=yes
17035 hardcode_shlibpath_var_GCJ=no
17036 ;;
17037
17038 newsos6)
17039 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct_GCJ=yes
17041 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17042 hardcode_libdir_separator_GCJ=:
17043 hardcode_shlibpath_var_GCJ=no
17044 ;;
17045
17046 openbsd*)
17047 hardcode_direct_GCJ=yes
17048 hardcode_shlibpath_var_GCJ=no
17049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17050 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17053 export_dynamic_flag_spec_GCJ='${wl}-E'
17054 else
17055 case $host_os in
17056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17059 ;;
17060 *)
17061 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17063 ;;
17064 esac
17065 fi
17066 ;;
17067
17068 os2*)
17069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070 hardcode_minus_L_GCJ=yes
17071 allow_undefined_flag_GCJ=unsupported
17072 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'
17073 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17074 ;;
17075
17076 osf3*)
17077 if test "$GCC" = yes; then
17078 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17079 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'
17080 else
17081 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17082 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'
17083 fi
17084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17085 hardcode_libdir_separator_GCJ=:
17086 ;;
17087
17088 osf4* | osf5*) # as osf3* with the addition of -msym flag
17089 if test "$GCC" = yes; then
17090 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17091 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'
17092 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17093 else
17094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17095 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'
17096 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~
17097 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17098
17099 # Both c and cxx compiler support -rpath directly
17100 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17101 fi
17102 hardcode_libdir_separator_GCJ=:
17103 ;;
17104
17105 solaris*)
17106 no_undefined_flag_GCJ=' -z text'
17107 if test "$GCC" = yes; then
17108 wlarc='${wl}'
17109 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17111 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17112 else
17113 wlarc=''
17114 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17117 fi
17118 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17119 hardcode_shlibpath_var_GCJ=no
17120 case $host_os in
17121 solaris2.[0-5] | solaris2.[0-5].*) ;;
17122 *)
17123 # The compiler driver will combine linker options so we
17124 # cannot just pass the convience library names through
17125 # without $wl, iff we do not link with $LD.
17126 # Luckily, gcc supports the same syntax we need for Sun Studio.
17127 # Supported since Solaris 2.6 (maybe 2.5.1?)
17128 case $wlarc in
17129 '')
17130 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17131 *)
17132 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17133 esac ;;
17134 esac
17135 link_all_deplibs_GCJ=yes
17136 ;;
17137
17138 sunos4*)
17139 if test "x$host_vendor" = xsequent; then
17140 # Use $CC to link under sequent, because it throws in some extra .o
17141 # files that make .init and .fini sections work.
17142 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17143 else
17144 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17145 fi
17146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17147 hardcode_direct_GCJ=yes
17148 hardcode_minus_L_GCJ=yes
17149 hardcode_shlibpath_var_GCJ=no
17150 ;;
17151
17152 sysv4)
17153 case $host_vendor in
17154 sni)
17155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156 hardcode_direct_GCJ=yes # is this really true???
17157 ;;
17158 siemens)
17159 ## LD is ld it makes a PLAMLIB
17160 ## CC just makes a GrossModule.
17161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17162 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17163 hardcode_direct_GCJ=no
17164 ;;
17165 motorola)
17166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17168 ;;
17169 esac
17170 runpath_var='LD_RUN_PATH'
17171 hardcode_shlibpath_var_GCJ=no
17172 ;;
17173
17174 sysv4.3*)
17175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17176 hardcode_shlibpath_var_GCJ=no
17177 export_dynamic_flag_spec_GCJ='-Bexport'
17178 ;;
17179
17180 sysv4*MP*)
17181 if test -d /usr/nec; then
17182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17183 hardcode_shlibpath_var_GCJ=no
17184 runpath_var=LD_RUN_PATH
17185 hardcode_runpath_var=yes
17186 ld_shlibs_GCJ=yes
17187 fi
17188 ;;
17189
17190 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17191 no_undefined_flag_GCJ='${wl}-z,text'
17192 archive_cmds_need_lc_GCJ=no
17193 hardcode_shlibpath_var_GCJ=no
17194 runpath_var='LD_RUN_PATH'
17195
17196 if test "$GCC" = yes; then
17197 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17199 else
17200 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17201 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17202 fi
17203 ;;
17204
17205 sysv5* | sco3.2v5* | sco5v6*)
17206 # Note: We can NOT use -z defs as we might desire, because we do not
17207 # link with -lc, and that would cause any symbols used from libc to
17208 # always be unresolved, which means just about no library would
17209 # ever link correctly. If we're not using GNU ld we use -z text
17210 # though, which does catch some bad symbols but isn't as heavy-handed
17211 # as -z defs.
17212 no_undefined_flag_GCJ='${wl}-z,text'
17213 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17214 archive_cmds_need_lc_GCJ=no
17215 hardcode_shlibpath_var_GCJ=no
17216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17217 hardcode_libdir_separator_GCJ=':'
17218 link_all_deplibs_GCJ=yes
17219 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17220 runpath_var='LD_RUN_PATH'
17221
17222 if test "$GCC" = yes; then
17223 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 else
17226 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17227 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17228 fi
17229 ;;
17230
17231 uts4*)
17232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17234 hardcode_shlibpath_var_GCJ=no
17235 ;;
17236
17237 *)
17238 ld_shlibs_GCJ=no
17239 ;;
17240 esac
17241 fi
17242
17243echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17244echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17245test "$ld_shlibs_GCJ" = no && can_build_shared=no
17246
17247#
17248# Do we need to explicitly link libc?
17249#
17250case "x$archive_cmds_need_lc_GCJ" in
17251x|xyes)
17252 # Assume -lc should be added
17253 archive_cmds_need_lc_GCJ=yes
17254
17255 if test "$enable_shared" = yes && test "$GCC" = yes; then
17256 case $archive_cmds_GCJ in
17257 *'~'*)
17258 # FIXME: we may have to deal with multi-command sequences.
17259 ;;
17260 '$CC '*)
17261 # Test whether the compiler implicitly links with -lc since on some
17262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17263 # to ld, don't add -lc before -lgcc.
17264 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17265echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17266 $rm conftest*
17267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17268
17269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270 (eval $ac_compile) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } 2>conftest.err; then
17274 soname=conftest
17275 lib=conftest
17276 libobjs=conftest.$ac_objext
17277 deplibs=
17278 wl=$lt_prog_compiler_wl_GCJ
17279 pic_flag=$lt_prog_compiler_pic_GCJ
17280 compiler_flags=-v
17281 linker_flags=-v
17282 verstring=
17283 output_objdir=.
17284 libname=conftest
17285 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17286 allow_undefined_flag_GCJ=
17287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17288 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }
17292 then
17293 archive_cmds_need_lc_GCJ=no
17294 else
17295 archive_cmds_need_lc_GCJ=yes
17296 fi
17297 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17298 else
17299 cat conftest.err 1>&5
17300 fi
17301 $rm conftest*
17302 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17303echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17304 ;;
17305 esac
17306 fi
17307 ;;
17308esac
17309
17310echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17311echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17312library_names_spec=
17313libname_spec='lib$name'
17314soname_spec=
17315shrext_cmds=".so"
17316postinstall_cmds=
17317postuninstall_cmds=
17318finish_cmds=
17319finish_eval=
17320shlibpath_var=
17321shlibpath_overrides_runpath=unknown
17322version_type=none
17323dynamic_linker="$host_os ld.so"
17324sys_lib_dlsearch_path_spec="/lib /usr/lib"
17325if test "$GCC" = yes; then
17326 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17327 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17328 # if the path contains ";" then we assume it to be the separator
17329 # otherwise default to the standard path separator (i.e. ":") - it is
17330 # assumed that no part of a normal pathname contains ";" but that should
17331 # okay in the real world where ";" in dirpaths is itself problematic.
17332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17333 else
17334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17335 fi
17336else
17337 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17338fi
17339need_lib_prefix=unknown
17340hardcode_into_libs=no
17341
17342# when you set need_version to no, make sure it does not cause -set_version
17343# flags to be left without arguments
17344need_version=unknown
17345
17346case $host_os in
17347aix3*)
17348 version_type=linux
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17350 shlibpath_var=LIBPATH
17351
17352 # AIX 3 has no versioning support, so we append a major version to the name.
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 ;;
17355
17356aix4* | aix5*)
17357 version_type=linux
17358 need_lib_prefix=no
17359 need_version=no
17360 hardcode_into_libs=yes
17361 if test "$host_cpu" = ia64; then
17362 # AIX 5 supports IA64
17363 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 else
17366 # With GCC up to 2.95.x, collect2 would create an import file
17367 # for dependence libraries. The import file would start with
17368 # the line `#! .'. This would cause the generated library to
17369 # depend on `.', always an invalid library. This was fixed in
17370 # development snapshots of GCC prior to 3.0.
17371 case $host_os in
17372 aix4 | aix4.[01] | aix4.[01].*)
17373 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17374 echo ' yes '
17375 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17376 :
17377 else
17378 can_build_shared=no
17379 fi
17380 ;;
17381 esac
17382 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17383 # soname into executable. Probably we can add versioning support to
17384 # collect2, so additional links can be useful in future.
17385 if test "$aix_use_runtimelinking" = yes; then
17386 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17387 # instead of lib<name>.a to let people know that these are not
17388 # typical AIX shared libraries.
17389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17390 else
17391 # We preserve .a as extension for shared libraries through AIX4.2
17392 # and later when we are not doing run time linking.
17393 library_names_spec='${libname}${release}.a $libname.a'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 fi
17396 shlibpath_var=LIBPATH
17397 fi
17398 ;;
17399
17400amigaos*)
17401 library_names_spec='$libname.ixlibrary $libname.a'
17402 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17403 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'
17404 ;;
17405
17406beos*)
17407 library_names_spec='${libname}${shared_ext}'
17408 dynamic_linker="$host_os ld.so"
17409 shlibpath_var=LIBRARY_PATH
17410 ;;
17411
17412bsdi[45]*)
17413 version_type=linux
17414 need_version=no
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17420 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17421 # the default ld.so.conf also contains /usr/contrib/lib and
17422 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17423 # libtool to hard-code these into programs
17424 ;;
17425
17426cygwin* | mingw* | pw32*)
17427 version_type=windows
17428 shrext_cmds=".dll"
17429 need_version=no
17430 need_lib_prefix=no
17431
17432 case $GCC,$host_os in
17433 yes,cygwin* | yes,mingw* | yes,pw32*)
17434 library_names_spec='$libname.dll.a'
17435 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17436 postinstall_cmds='base_file=`basename \${file}`~
17437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17438 dldir=$destdir/`dirname \$dlpath`~
17439 test -d \$dldir || mkdir -p \$dldir~
17440 $install_prog $dir/$dlname \$dldir/$dlname~
17441 chmod a+x \$dldir/$dlname'
17442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17443 dlpath=$dir/\$dldll~
17444 $rm \$dlpath'
17445 shlibpath_overrides_runpath=yes
17446
17447 case $host_os in
17448 cygwin*)
17449 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17451 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17452 ;;
17453 mingw*)
17454 # MinGW DLLs use traditional 'lib' prefix
17455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17456 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17457 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17458 # It is most probably a Windows format PATH printed by
17459 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17460 # path with ; separators, and with drive letters. We can handle the
17461 # drive letters (cygwin fileutils understands them), so leave them,
17462 # especially as we might pass files found there to a mingw objdump,
17463 # which wouldn't understand a cygwinified path. Ahh.
17464 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17465 else
17466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17467 fi
17468 ;;
17469 pw32*)
17470 # pw32 DLLs use 'pw' prefix rather than 'lib'
17471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17472 ;;
17473 esac
17474 ;;
17475
17476 *)
17477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17478 ;;
17479 esac
17480 dynamic_linker='Win32 ld.exe'
17481 # FIXME: first we should search . and the directory the executable is in
17482 shlibpath_var=PATH
17483 ;;
17484
17485darwin* | rhapsody*)
17486 dynamic_linker="$host_os dyld"
17487 version_type=darwin
17488 need_lib_prefix=no
17489 need_version=no
17490 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17491 soname_spec='${libname}${release}${major}$shared_ext'
17492 shlibpath_overrides_runpath=yes
17493 shlibpath_var=DYLD_LIBRARY_PATH
17494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17495 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17496 if test "$GCC" = yes; then
17497 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"`
17498 else
17499 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17500 fi
17501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17502 ;;
17503
17504dgux*)
17505 version_type=linux
17506 need_lib_prefix=no
17507 need_version=no
17508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17509 soname_spec='${libname}${release}${shared_ext}$major'
17510 shlibpath_var=LD_LIBRARY_PATH
17511 ;;
17512
17513freebsd1*)
17514 dynamic_linker=no
17515 ;;
17516
17517kfreebsd*-gnu)
17518 version_type=linux
17519 need_lib_prefix=no
17520 need_version=no
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=no
17525 hardcode_into_libs=yes
17526 dynamic_linker='GNU ld.so'
17527 ;;
17528
17529freebsd* | dragonfly*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr/bin/objformat; then
17533 objformat=`/usr/bin/objformat`
17534 else
17535 case $host_os in
17536 freebsd[123]*) objformat=aout ;;
17537 *) objformat=elf ;;
17538 esac
17539 fi
17540 version_type=freebsd-$objformat
17541 case $version_type in
17542 freebsd-elf*)
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17544 need_version=no
17545 need_lib_prefix=no
17546 ;;
17547 freebsd-*)
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17549 need_version=yes
17550 ;;
17551 esac
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_os in
17554 freebsd2*)
17555 shlibpath_overrides_runpath=yes
17556 ;;
17557 freebsd3.[01]* | freebsdelf3.[01]*)
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17560 ;;
17561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17565 ;;
17566 freebsd*) # from 4.6 on
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17569 ;;
17570 esac
17571 ;;
17572
17573gnu*)
17574 version_type=linux
17575 need_lib_prefix=no
17576 need_version=no
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 hardcode_into_libs=yes
17581 ;;
17582
17583hpux9* | hpux10* | hpux11*)
17584 # Give a soname corresponding to the major version so that dld.sl refuses to
17585 # link against other versions.
17586 version_type=sunos
17587 need_lib_prefix=no
17588 need_version=no
17589 case $host_cpu in
17590 ia64*)
17591 shrext_cmds='.so'
17592 hardcode_into_libs=yes
17593 dynamic_linker="$host_os dld.so"
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17597 soname_spec='${libname}${release}${shared_ext}$major'
17598 if test "X$HPUX_IA64_MODE" = X32; then
17599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17600 else
17601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17602 fi
17603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17604 ;;
17605 hppa*64*)
17606 shrext_cmds='.sl'
17607 hardcode_into_libs=yes
17608 dynamic_linker="$host_os dld.sl"
17609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17615 ;;
17616 *)
17617 shrext_cmds='.sl'
17618 dynamic_linker="$host_os dld.sl"
17619 shlibpath_var=SHLIB_PATH
17620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 ;;
17624 esac
17625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17626 postinstall_cmds='chmod 555 $lib'
17627 ;;
17628
17629interix3*)
17630 version_type=linux
17631 need_lib_prefix=no
17632 need_version=no
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17636 shlibpath_var=LD_LIBRARY_PATH
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17639 ;;
17640
17641irix5* | irix6* | nonstopux*)
17642 case $host_os in
17643 nonstopux*) version_type=nonstopux ;;
17644 *)
17645 if test "$lt_cv_prog_gnu_ld" = yes; then
17646 version_type=linux
17647 else
17648 version_type=irix
17649 fi ;;
17650 esac
17651 need_lib_prefix=no
17652 need_version=no
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17655 case $host_os in
17656 irix5* | nonstopux*)
17657 libsuff= shlibsuff=
17658 ;;
17659 *)
17660 case $LD in # libtool.m4 will add one of these switches to LD
17661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17662 libsuff= shlibsuff= libmagic=32-bit;;
17663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17664 libsuff=32 shlibsuff=N32 libmagic=N32;;
17665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17666 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17667 *) libsuff= shlibsuff= libmagic=never-match;;
17668 esac
17669 ;;
17670 esac
17671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17672 shlibpath_overrides_runpath=no
17673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17675 hardcode_into_libs=yes
17676 ;;
17677
17678# No shared lib support for Linux oldld, aout, or coff.
17679linux*oldld* | linux*aout* | linux*coff*)
17680 dynamic_linker=no
17681 ;;
17682
17683# This must be Linux ELF.
17684linux*)
17685 version_type=linux
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=no
17693 # This implies no fast_install, which is unacceptable.
17694 # Some rework will be needed to allow for fast_install
17695 # before this can be enabled.
17696 hardcode_into_libs=yes
17697
17698 # find out which ABI we are using
17699 libsuff=
17700 case "$host_cpu" in
17701 x86_64*|s390x*|powerpc64*)
0cbaeb11 17702 echo '#line 17702 "configure"' > conftest.$ac_ext
bf9f3bac 17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; then
17708 case `/usr/bin/file conftest.$ac_objext` in
17709 *64-bit*)
17710 libsuff=64
17711 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17712 ;;
17713 esac
17714 fi
17715 rm -rf conftest*
17716 ;;
17717 esac
17718
17719 # Append ld.so.conf contents to the search path
17720 if test -f /etc/ld.so.conf; then
17721 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17722 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17723 fi
17724
17725 # We used to test for /lib/ld.so.1 and disable shared libraries on
17726 # powerpc, because MkLinux only supported shared libraries with the
17727 # GNU dynamic linker. Since this was broken with cross compilers,
17728 # most powerpc-linux boxes support dynamic linking these days and
17729 # people can always --disable-shared, the test was removed, and we
17730 # assume the GNU/Linux dynamic linker is in use.
17731 dynamic_linker='GNU/Linux ld.so'
17732 ;;
17733
17734knetbsd*-gnu)
17735 version_type=linux
17736 need_lib_prefix=no
17737 need_version=no
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17739 soname_spec='${libname}${release}${shared_ext}$major'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=no
17742 hardcode_into_libs=yes
17743 dynamic_linker='GNU ld.so'
17744 ;;
17745
17746netbsd*)
17747 version_type=sunos
17748 need_lib_prefix=no
17749 need_version=no
17750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17753 dynamic_linker='NetBSD (a.out) ld.so'
17754 else
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17757 dynamic_linker='NetBSD ld.elf_so'
17758 fi
17759 shlibpath_var=LD_LIBRARY_PATH
17760 shlibpath_overrides_runpath=yes
17761 hardcode_into_libs=yes
17762 ;;
17763
17764newsos6)
17765 version_type=linux
17766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=yes
17769 ;;
17770
17771nto-qnx*)
17772 version_type=linux
17773 need_lib_prefix=no
17774 need_version=no
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 shlibpath_overrides_runpath=yes
17779 ;;
17780
17781openbsd*)
17782 version_type=sunos
17783 sys_lib_dlsearch_path_spec="/usr/lib"
17784 need_lib_prefix=no
17785 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17786 case $host_os in
17787 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17788 *) need_version=no ;;
17789 esac
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17792 shlibpath_var=LD_LIBRARY_PATH
17793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17794 case $host_os in
17795 openbsd2.[89] | openbsd2.[89].*)
17796 shlibpath_overrides_runpath=no
17797 ;;
17798 *)
17799 shlibpath_overrides_runpath=yes
17800 ;;
17801 esac
17802 else
17803 shlibpath_overrides_runpath=yes
17804 fi
17805 ;;
17806
17807os2*)
17808 libname_spec='$name'
17809 shrext_cmds=".dll"
17810 need_lib_prefix=no
17811 library_names_spec='$libname${shared_ext} $libname.a'
17812 dynamic_linker='OS/2 ld.exe'
17813 shlibpath_var=LIBPATH
17814 ;;
17815
17816osf3* | osf4* | osf5*)
17817 version_type=osf
17818 need_lib_prefix=no
17819 need_version=no
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17825 ;;
17826
17827solaris*)
17828 version_type=linux
17829 need_lib_prefix=no
17830 need_version=no
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17833 shlibpath_var=LD_LIBRARY_PATH
17834 shlibpath_overrides_runpath=yes
17835 hardcode_into_libs=yes
17836 # ldd complains unless libraries are executable
17837 postinstall_cmds='chmod +x $lib'
17838 ;;
17839
17840sunos4*)
17841 version_type=sunos
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 if test "$with_gnu_ld" = yes; then
17847 need_lib_prefix=no
17848 fi
17849 need_version=yes
17850 ;;
17851
17852sysv4 | sysv4.3*)
17853 version_type=linux
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 case $host_vendor in
17858 sni)
17859 shlibpath_overrides_runpath=no
17860 need_lib_prefix=no
17861 export_dynamic_flag_spec='${wl}-Blargedynsym'
17862 runpath_var=LD_RUN_PATH
17863 ;;
17864 siemens)
17865 need_lib_prefix=no
17866 ;;
17867 motorola)
17868 need_lib_prefix=no
17869 need_version=no
17870 shlibpath_overrides_runpath=no
17871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17872 ;;
17873 esac
17874 ;;
17875
17876sysv4*MP*)
17877 if test -d /usr/nec ;then
17878 version_type=linux
17879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17880 soname_spec='$libname${shared_ext}.$major'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 fi
17883 ;;
17884
17885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17886 version_type=freebsd-elf
17887 need_lib_prefix=no
17888 need_version=no
17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17890 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 hardcode_into_libs=yes
17893 if test "$with_gnu_ld" = yes; then
17894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17895 shlibpath_overrides_runpath=no
17896 else
17897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17898 shlibpath_overrides_runpath=yes
17899 case $host_os in
17900 sco3.2v5*)
17901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17902 ;;
17903 esac
17904 fi
17905 sys_lib_dlsearch_path_spec='/usr/lib'
17906 ;;
17907
17908uts4*)
17909 version_type=linux
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 ;;
17914
17915*)
17916 dynamic_linker=no
17917 ;;
17918esac
17919echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17920echo "${ECHO_T}$dynamic_linker" >&6
17921test "$dynamic_linker" = no && can_build_shared=no
17922
17923variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17924if test "$GCC" = yes; then
17925 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17926fi
17927
17928echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17929echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17930hardcode_action_GCJ=
17931if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17932 test -n "$runpath_var_GCJ" || \
17933 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17934
17935 # We can hardcode non-existant directories.
17936 if test "$hardcode_direct_GCJ" != no &&
17937 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17938 # have to relink, otherwise we might link with an installed library
17939 # when we should be linking with a yet-to-be-installed one
17940 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17941 test "$hardcode_minus_L_GCJ" != no; then
17942 # Linking always hardcodes the temporary library directory.
17943 hardcode_action_GCJ=relink
17944 else
17945 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17946 hardcode_action_GCJ=immediate
17947 fi
17948else
17949 # We cannot hardcode anything, or else we can only hardcode existing
17950 # directories.
17951 hardcode_action_GCJ=unsupported
17952fi
17953echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17954echo "${ECHO_T}$hardcode_action_GCJ" >&6
17955
17956if test "$hardcode_action_GCJ" = relink; then
17957 # Fast installation is not supported
17958 enable_fast_install=no
17959elif test "$shlibpath_overrides_runpath" = yes ||
17960 test "$enable_shared" = no; then
17961 # Fast installation is not necessary
17962 enable_fast_install=needless
17963fi
17964
17965
17966# The else clause should only fire when bootstrapping the
17967# libtool distribution, otherwise you forgot to ship ltmain.sh
17968# with your package, and you will get complaints that there are
17969# no rules to generate ltmain.sh.
17970if test -f "$ltmain"; then
17971 # See if we are running on zsh, and set the options which allow our commands through
17972 # without removal of \ escapes.
17973 if test -n "${ZSH_VERSION+set}" ; then
17974 setopt NO_GLOB_SUBST
17975 fi
17976 # Now quote all the things that may contain metacharacters while being
17977 # careful not to overquote the AC_SUBSTed values. We take copies of the
17978 # variables and quote the copies for generation of the libtool script.
17979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17980 SED SHELL STRIP \
17981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17983 deplibs_check_method reload_flag reload_cmds need_locks \
17984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17985 lt_cv_sys_global_symbol_to_c_name_address \
17986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17987 old_postinstall_cmds old_postuninstall_cmds \
17988 compiler_GCJ \
17989 CC_GCJ \
17990 LD_GCJ \
17991 lt_prog_compiler_wl_GCJ \
17992 lt_prog_compiler_pic_GCJ \
17993 lt_prog_compiler_static_GCJ \
17994 lt_prog_compiler_no_builtin_flag_GCJ \
17995 export_dynamic_flag_spec_GCJ \
17996 thread_safe_flag_spec_GCJ \
17997 whole_archive_flag_spec_GCJ \
17998 enable_shared_with_static_runtimes_GCJ \
17999 old_archive_cmds_GCJ \
18000 old_archive_from_new_cmds_GCJ \
18001 predep_objects_GCJ \
18002 postdep_objects_GCJ \
18003 predeps_GCJ \
18004 postdeps_GCJ \
18005 compiler_lib_search_path_GCJ \
18006 archive_cmds_GCJ \
18007 archive_expsym_cmds_GCJ \
18008 postinstall_cmds_GCJ \
18009 postuninstall_cmds_GCJ \
18010 old_archive_from_expsyms_cmds_GCJ \
18011 allow_undefined_flag_GCJ \
18012 no_undefined_flag_GCJ \
18013 export_symbols_cmds_GCJ \
18014 hardcode_libdir_flag_spec_GCJ \
18015 hardcode_libdir_flag_spec_ld_GCJ \
18016 hardcode_libdir_separator_GCJ \
18017 hardcode_automatic_GCJ \
18018 module_cmds_GCJ \
18019 module_expsym_cmds_GCJ \
18020 lt_cv_prog_compiler_c_o_GCJ \
18021 exclude_expsyms_GCJ \
18022 include_expsyms_GCJ; do
18023
18024 case $var in
18025 old_archive_cmds_GCJ | \
18026 old_archive_from_new_cmds_GCJ | \
18027 archive_cmds_GCJ | \
18028 archive_expsym_cmds_GCJ | \
18029 module_cmds_GCJ | \
18030 module_expsym_cmds_GCJ | \
18031 old_archive_from_expsyms_cmds_GCJ | \
18032 export_symbols_cmds_GCJ | \
18033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18034 postinstall_cmds | postuninstall_cmds | \
18035 old_postinstall_cmds | old_postuninstall_cmds | \
18036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18037 # Double-quote double-evaled strings.
18038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18039 ;;
18040 *)
18041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18042 ;;
18043 esac
18044 done
18045
18046 case $lt_echo in
18047 *'\$0 --fallback-echo"')
18048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18049 ;;
18050 esac
18051
18052cfgfile="$ofile"
18053
18054 cat <<__EOF__ >> "$cfgfile"
18055# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18056
18057# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18058
18059# Shell to use when invoking shell scripts.
18060SHELL=$lt_SHELL
18061
18062# Whether or not to build shared libraries.
18063build_libtool_libs=$enable_shared
18064
18065# Whether or not to build static libraries.
18066build_old_libs=$enable_static
18067
18068# Whether or not to add -lc for building shared libraries.
18069build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18070
18071# Whether or not to disallow shared libs when runtime libs are static
18072allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18073
18074# Whether or not to optimize for fast installation.
18075fast_install=$enable_fast_install
18076
18077# The host system.
18078host_alias=$host_alias
18079host=$host
18080host_os=$host_os
18081
18082# The build system.
18083build_alias=$build_alias
18084build=$build
18085build_os=$build_os
18086
18087# An echo program that does not interpret backslashes.
18088echo=$lt_echo
18089
18090# The archiver.
18091AR=$lt_AR
18092AR_FLAGS=$lt_AR_FLAGS
18093
18094# A C compiler.
18095LTCC=$lt_LTCC
18096
18097# LTCC compiler flags.
18098LTCFLAGS=$lt_LTCFLAGS
18099
18100# A language-specific compiler.
18101CC=$lt_compiler_GCJ
18102
18103# Is the compiler the GNU C compiler?
18104with_gcc=$GCC_GCJ
18105
18106gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18107gcc_ver=\`gcc -dumpversion\`
18108
18109# An ERE matcher.
18110EGREP=$lt_EGREP
18111
18112# The linker used to build libraries.
18113LD=$lt_LD_GCJ
18114
18115# Whether we need hard or soft links.
18116LN_S=$lt_LN_S
18117
18118# A BSD-compatible nm program.
18119NM=$lt_NM
18120
18121# A symbol stripping program
18122STRIP=$lt_STRIP
18123
18124# Used to examine libraries when file_magic_cmd begins "file"
18125MAGIC_CMD=$MAGIC_CMD
18126
18127# Used on cygwin: DLL creation program.
18128DLLTOOL="$DLLTOOL"
18129
18130# Used on cygwin: object dumper.
18131OBJDUMP="$OBJDUMP"
18132
18133# Used on cygwin: assembler.
18134AS="$AS"
18135
18136# The name of the directory that contains temporary libtool files.
18137objdir=$objdir
18138
18139# How to create reloadable object files.
18140reload_flag=$lt_reload_flag
18141reload_cmds=$lt_reload_cmds
18142
18143# How to pass a linker flag through the compiler.
18144wl=$lt_lt_prog_compiler_wl_GCJ
18145
18146# Object file suffix (normally "o").
18147objext="$ac_objext"
18148
18149# Old archive suffix (normally "a").
18150libext="$libext"
18151
18152# Shared library suffix (normally ".so").
18153shrext_cmds='$shrext_cmds'
18154
18155# Executable file suffix (normally "").
18156exeext="$exeext"
18157
18158# Additional compiler flags for building library objects.
18159pic_flag=$lt_lt_prog_compiler_pic_GCJ
18160pic_mode=$pic_mode
18161
18162# What is the maximum length of a command?
18163max_cmd_len=$lt_cv_sys_max_cmd_len
18164
18165# Does compiler simultaneously support -c and -o options?
18166compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18167
18168# Must we lock files when doing compilation?
18169need_locks=$lt_need_locks
18170
18171# Do we need the lib prefix for modules?
18172need_lib_prefix=$need_lib_prefix
18173
18174# Do we need a version for libraries?
18175need_version=$need_version
18176
18177# Whether dlopen is supported.
18178dlopen_support=$enable_dlopen
18179
18180# Whether dlopen of programs is supported.
18181dlopen_self=$enable_dlopen_self
18182
18183# Whether dlopen of statically linked programs is supported.
18184dlopen_self_static=$enable_dlopen_self_static
18185
18186# Compiler flag to prevent dynamic linking.
18187link_static_flag=$lt_lt_prog_compiler_static_GCJ
18188
18189# Compiler flag to turn off builtin functions.
18190no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18191
18192# Compiler flag to allow reflexive dlopens.
18193export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18194
18195# Compiler flag to generate shared objects directly from archives.
18196whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18197
18198# Compiler flag to generate thread-safe objects.
18199thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18200
18201# Library versioning type.
18202version_type=$version_type
18203
18204# Format of library name prefix.
18205libname_spec=$lt_libname_spec
18206
18207# List of archive names. First name is the real one, the rest are links.
18208# The last name is the one that the linker finds with -lNAME.
18209library_names_spec=$lt_library_names_spec
18210
18211# The coded name of the library, if different from the real name.
18212soname_spec=$lt_soname_spec
18213
18214# Commands used to build and install an old-style archive.
18215RANLIB=$lt_RANLIB
18216old_archive_cmds=$lt_old_archive_cmds_GCJ
18217old_postinstall_cmds=$lt_old_postinstall_cmds
18218old_postuninstall_cmds=$lt_old_postuninstall_cmds
18219
18220# Create an old-style archive from a shared archive.
18221old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18222
18223# Create a temporary old-style archive to link instead of a shared archive.
18224old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18225
18226# Commands used to build and install a shared archive.
18227archive_cmds=$lt_archive_cmds_GCJ
18228archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18229postinstall_cmds=$lt_postinstall_cmds
18230postuninstall_cmds=$lt_postuninstall_cmds
18231
18232# Commands used to build a loadable module (assumed same as above if empty)
18233module_cmds=$lt_module_cmds_GCJ
18234module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18235
18236# Commands to strip libraries.
18237old_striplib=$lt_old_striplib
18238striplib=$lt_striplib
18239
18240# Dependencies to place before the objects being linked to create a
18241# shared library.
18242predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18243
18244# Dependencies to place after the objects being linked to create a
18245# shared library.
18246postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18247
18248# Dependencies to place before the objects being linked to create a
18249# shared library.
18250predeps=$lt_predeps_GCJ
18251
18252# Dependencies to place after the objects being linked to create a
18253# shared library.
18254postdeps=$lt_postdeps_GCJ
18255
18256# The library search path used internally by the compiler when linking
18257# a shared library.
18258compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18259
18260# Method to check whether dependent libraries are shared objects.
18261deplibs_check_method=$lt_deplibs_check_method
18262
18263# Command to use when deplibs_check_method == file_magic.
18264file_magic_cmd=$lt_file_magic_cmd
18265
18266# Flag that allows shared libraries with undefined symbols to be built.
18267allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18268
18269# Flag that forces no undefined symbols.
18270no_undefined_flag=$lt_no_undefined_flag_GCJ
18271
18272# Commands used to finish a libtool library installation in a directory.
18273finish_cmds=$lt_finish_cmds
18274
18275# Same as above, but a single script fragment to be evaled but not shown.
18276finish_eval=$lt_finish_eval
18277
18278# Take the output of nm and produce a listing of raw symbols and C names.
18279global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18280
18281# Transform the output of nm in a proper C declaration
18282global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18283
18284# Transform the output of nm in a C name address pair
18285global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18286
18287# This is the shared library runtime path variable.
18288runpath_var=$runpath_var
18289
18290# This is the shared library path variable.
18291shlibpath_var=$shlibpath_var
18292
18293# Is shlibpath searched before the hard-coded library search path?
18294shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18295
18296# How to hardcode a shared library path into an executable.
18297hardcode_action=$hardcode_action_GCJ
18298
18299# Whether we should hardcode library paths into libraries.
18300hardcode_into_libs=$hardcode_into_libs
18301
18302# Flag to hardcode \$libdir into a binary during linking.
18303# This must work even if \$libdir does not exist.
18304hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18305
18306# If ld is used when linking, flag to hardcode \$libdir into
18307# a binary during linking. This must work even if \$libdir does
18308# not exist.
18309hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18310
18311# Whether we need a single -rpath flag with a separated argument.
18312hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18313
18314# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18315# resulting binary.
18316hardcode_direct=$hardcode_direct_GCJ
18317
18318# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18319# resulting binary.
18320hardcode_minus_L=$hardcode_minus_L_GCJ
18321
18322# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18323# the resulting binary.
18324hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18325
18326# Set to yes if building a shared library automatically hardcodes DIR into the library
18327# and all subsequent libraries and executables linked against it.
18328hardcode_automatic=$hardcode_automatic_GCJ
18329
18330# Variables whose values should be saved in libtool wrapper scripts and
18331# restored at relink time.
18332variables_saved_for_relink="$variables_saved_for_relink"
18333
18334# Whether libtool must link a program against all its dependency libraries.
18335link_all_deplibs=$link_all_deplibs_GCJ
18336
18337# Compile-time system search path for libraries
18338sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18339
18340# Run-time system search path for libraries
18341sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18342
18343# Fix the shell variable \$srcfile for the compiler.
18344fix_srcfile_path="$fix_srcfile_path_GCJ"
18345
18346# Set to yes if exported symbols are required.
18347always_export_symbols=$always_export_symbols_GCJ
18348
18349# The commands to list exported symbols.
18350export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18351
18352# The commands to extract the exported symbol list from a shared archive.
18353extract_expsyms_cmds=$lt_extract_expsyms_cmds
18354
18355# Symbols that should not be listed in the preloaded symbols.
18356exclude_expsyms=$lt_exclude_expsyms_GCJ
18357
18358# Symbols that must always be exported.
18359include_expsyms=$lt_include_expsyms_GCJ
18360
18361# ### END LIBTOOL TAG CONFIG: $tagname
18362
18363__EOF__
18364
18365
18366else
18367 # If there is no Makefile yet, we rely on a make rule to execute
18368 # `config.status --recheck' to rerun these tests and create the
18369 # libtool script then.
18370 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18371 if test -f "$ltmain_in"; then
18372 test -f Makefile && make "$ltmain"
18373 fi
18374fi
18375
18376
18377ac_ext=c
18378ac_cpp='$CPP $CPPFLAGS'
18379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381ac_compiler_gnu=$ac_cv_c_compiler_gnu
18382
18383CC="$lt_save_CC"
18384
18385 else
18386 tagname=""
18387 fi
18388 ;;
18389
18390 RC)
18391
18392
18393
18394# Source file extension for RC test sources.
18395ac_ext=rc
18396
18397# Object file extension for compiled RC test sources.
18398objext=o
18399objext_RC=$objext
18400
18401# Code to be used in simple compile tests
18402lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18403
18404# Code to be used in simple link tests
18405lt_simple_link_test_code="$lt_simple_compile_test_code"
18406
18407# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18408
18409# If no C compiler was specified, use CC.
18410LTCC=${LTCC-"$CC"}
18411
18412# If no C compiler flags were specified, use CFLAGS.
18413LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18414
18415# Allow CC to be a program name with arguments.
18416compiler=$CC
18417
18418
18419# save warnings/boilerplate of simple test code
18420ac_outfile=conftest.$ac_objext
18421printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18422eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18423_lt_compiler_boilerplate=`cat conftest.err`
18424$rm conftest*
18425
18426ac_outfile=conftest.$ac_objext
18427printf "$lt_simple_link_test_code" >conftest.$ac_ext
18428eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18429_lt_linker_boilerplate=`cat conftest.err`
18430$rm conftest*
18431
18432
18433# Allow CC to be a program name with arguments.
18434lt_save_CC="$CC"
18435CC=${RC-"windres"}
18436compiler=$CC
18437compiler_RC=$CC
18438for cc_temp in $compiler""; do
18439 case $cc_temp in
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442 \-*) ;;
18443 *) break;;
18444 esac
18445done
18446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
18448lt_cv_prog_compiler_c_o_RC=yes
18449
18450# The else clause should only fire when bootstrapping the
18451# libtool distribution, otherwise you forgot to ship ltmain.sh
18452# with your package, and you will get complaints that there are
18453# no rules to generate ltmain.sh.
18454if test -f "$ltmain"; then
18455 # See if we are running on zsh, and set the options which allow our commands through
18456 # without removal of \ escapes.
18457 if test -n "${ZSH_VERSION+set}" ; then
18458 setopt NO_GLOB_SUBST
18459 fi
18460 # Now quote all the things that may contain metacharacters while being
18461 # careful not to overquote the AC_SUBSTed values. We take copies of the
18462 # variables and quote the copies for generation of the libtool script.
18463 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18464 SED SHELL STRIP \
18465 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18466 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18467 deplibs_check_method reload_flag reload_cmds need_locks \
18468 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18469 lt_cv_sys_global_symbol_to_c_name_address \
18470 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18471 old_postinstall_cmds old_postuninstall_cmds \
18472 compiler_RC \
18473 CC_RC \
18474 LD_RC \
18475 lt_prog_compiler_wl_RC \
18476 lt_prog_compiler_pic_RC \
18477 lt_prog_compiler_static_RC \
18478 lt_prog_compiler_no_builtin_flag_RC \
18479 export_dynamic_flag_spec_RC \
18480 thread_safe_flag_spec_RC \
18481 whole_archive_flag_spec_RC \
18482 enable_shared_with_static_runtimes_RC \
18483 old_archive_cmds_RC \
18484 old_archive_from_new_cmds_RC \
18485 predep_objects_RC \
18486 postdep_objects_RC \
18487 predeps_RC \
18488 postdeps_RC \
18489 compiler_lib_search_path_RC \
18490 archive_cmds_RC \
18491 archive_expsym_cmds_RC \
18492 postinstall_cmds_RC \
18493 postuninstall_cmds_RC \
18494 old_archive_from_expsyms_cmds_RC \
18495 allow_undefined_flag_RC \
18496 no_undefined_flag_RC \
18497 export_symbols_cmds_RC \
18498 hardcode_libdir_flag_spec_RC \
18499 hardcode_libdir_flag_spec_ld_RC \
18500 hardcode_libdir_separator_RC \
18501 hardcode_automatic_RC \
18502 module_cmds_RC \
18503 module_expsym_cmds_RC \
18504 lt_cv_prog_compiler_c_o_RC \
18505 exclude_expsyms_RC \
18506 include_expsyms_RC; do
18507
18508 case $var in
18509 old_archive_cmds_RC | \
18510 old_archive_from_new_cmds_RC | \
18511 archive_cmds_RC | \
18512 archive_expsym_cmds_RC | \
18513 module_cmds_RC | \
18514 module_expsym_cmds_RC | \
18515 old_archive_from_expsyms_cmds_RC | \
18516 export_symbols_cmds_RC | \
18517 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18518 postinstall_cmds | postuninstall_cmds | \
18519 old_postinstall_cmds | old_postuninstall_cmds | \
18520 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18521 # Double-quote double-evaled strings.
18522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18523 ;;
18524 *)
18525 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18526 ;;
18527 esac
18528 done
18529
18530 case $lt_echo in
18531 *'\$0 --fallback-echo"')
18532 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18533 ;;
18534 esac
18535
18536cfgfile="$ofile"
18537
18538 cat <<__EOF__ >> "$cfgfile"
18539# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18540
18541# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18542
18543# Shell to use when invoking shell scripts.
18544SHELL=$lt_SHELL
18545
18546# Whether or not to build shared libraries.
18547build_libtool_libs=$enable_shared
18548
18549# Whether or not to build static libraries.
18550build_old_libs=$enable_static
18551
18552# Whether or not to add -lc for building shared libraries.
18553build_libtool_need_lc=$archive_cmds_need_lc_RC
18554
18555# Whether or not to disallow shared libs when runtime libs are static
18556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18557
18558# Whether or not to optimize for fast installation.
18559fast_install=$enable_fast_install
18560
18561# The host system.
18562host_alias=$host_alias
18563host=$host
18564host_os=$host_os
18565
18566# The build system.
18567build_alias=$build_alias
18568build=$build
18569build_os=$build_os
18570
18571# An echo program that does not interpret backslashes.
18572echo=$lt_echo
18573
18574# The archiver.
18575AR=$lt_AR
18576AR_FLAGS=$lt_AR_FLAGS
18577
18578# A C compiler.
18579LTCC=$lt_LTCC
18580
18581# LTCC compiler flags.
18582LTCFLAGS=$lt_LTCFLAGS
18583
18584# A language-specific compiler.
18585CC=$lt_compiler_RC
18586
18587# Is the compiler the GNU C compiler?
18588with_gcc=$GCC_RC
18589
18590gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18591gcc_ver=\`gcc -dumpversion\`
18592
18593# An ERE matcher.
18594EGREP=$lt_EGREP
18595
18596# The linker used to build libraries.
18597LD=$lt_LD_RC
18598
18599# Whether we need hard or soft links.
18600LN_S=$lt_LN_S
18601
18602# A BSD-compatible nm program.
18603NM=$lt_NM
18604
18605# A symbol stripping program
18606STRIP=$lt_STRIP
18607
18608# Used to examine libraries when file_magic_cmd begins "file"
18609MAGIC_CMD=$MAGIC_CMD
18610
18611# Used on cygwin: DLL creation program.
18612DLLTOOL="$DLLTOOL"
18613
18614# Used on cygwin: object dumper.
18615OBJDUMP="$OBJDUMP"
18616
18617# Used on cygwin: assembler.
18618AS="$AS"
18619
18620# The name of the directory that contains temporary libtool files.
18621objdir=$objdir
18622
18623# How to create reloadable object files.
18624reload_flag=$lt_reload_flag
18625reload_cmds=$lt_reload_cmds
18626
18627# How to pass a linker flag through the compiler.
18628wl=$lt_lt_prog_compiler_wl_RC
18629
18630# Object file suffix (normally "o").
18631objext="$ac_objext"
18632
18633# Old archive suffix (normally "a").
18634libext="$libext"
18635
18636# Shared library suffix (normally ".so").
18637shrext_cmds='$shrext_cmds'
18638
18639# Executable file suffix (normally "").
18640exeext="$exeext"
18641
18642# Additional compiler flags for building library objects.
18643pic_flag=$lt_lt_prog_compiler_pic_RC
18644pic_mode=$pic_mode
18645
18646# What is the maximum length of a command?
18647max_cmd_len=$lt_cv_sys_max_cmd_len
18648
18649# Does compiler simultaneously support -c and -o options?
18650compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18651
18652# Must we lock files when doing compilation?
18653need_locks=$lt_need_locks
18654
18655# Do we need the lib prefix for modules?
18656need_lib_prefix=$need_lib_prefix
18657
18658# Do we need a version for libraries?
18659need_version=$need_version
18660
18661# Whether dlopen is supported.
18662dlopen_support=$enable_dlopen
18663
18664# Whether dlopen of programs is supported.
18665dlopen_self=$enable_dlopen_self
18666
18667# Whether dlopen of statically linked programs is supported.
18668dlopen_self_static=$enable_dlopen_self_static
18669
18670# Compiler flag to prevent dynamic linking.
18671link_static_flag=$lt_lt_prog_compiler_static_RC
18672
18673# Compiler flag to turn off builtin functions.
18674no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18675
18676# Compiler flag to allow reflexive dlopens.
18677export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18678
18679# Compiler flag to generate shared objects directly from archives.
18680whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18681
18682# Compiler flag to generate thread-safe objects.
18683thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18684
18685# Library versioning type.
18686version_type=$version_type
18687
18688# Format of library name prefix.
18689libname_spec=$lt_libname_spec
18690
18691# List of archive names. First name is the real one, the rest are links.
18692# The last name is the one that the linker finds with -lNAME.
18693library_names_spec=$lt_library_names_spec
18694
18695# The coded name of the library, if different from the real name.
18696soname_spec=$lt_soname_spec
18697
18698# Commands used to build and install an old-style archive.
18699RANLIB=$lt_RANLIB
18700old_archive_cmds=$lt_old_archive_cmds_RC
18701old_postinstall_cmds=$lt_old_postinstall_cmds
18702old_postuninstall_cmds=$lt_old_postuninstall_cmds
18703
18704# Create an old-style archive from a shared archive.
18705old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18706
18707# Create a temporary old-style archive to link instead of a shared archive.
18708old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18709
18710# Commands used to build and install a shared archive.
18711archive_cmds=$lt_archive_cmds_RC
18712archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18713postinstall_cmds=$lt_postinstall_cmds
18714postuninstall_cmds=$lt_postuninstall_cmds
18715
18716# Commands used to build a loadable module (assumed same as above if empty)
18717module_cmds=$lt_module_cmds_RC
18718module_expsym_cmds=$lt_module_expsym_cmds_RC
18719
18720# Commands to strip libraries.
18721old_striplib=$lt_old_striplib
18722striplib=$lt_striplib
18723
18724# Dependencies to place before the objects being linked to create a
18725# shared library.
18726predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18727
18728# Dependencies to place after the objects being linked to create a
18729# shared library.
18730postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18731
18732# Dependencies to place before the objects being linked to create a
18733# shared library.
18734predeps=$lt_predeps_RC
18735
18736# Dependencies to place after the objects being linked to create a
18737# shared library.
18738postdeps=$lt_postdeps_RC
18739
18740# The library search path used internally by the compiler when linking
18741# a shared library.
18742compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18743
18744# Method to check whether dependent libraries are shared objects.
18745deplibs_check_method=$lt_deplibs_check_method
18746
18747# Command to use when deplibs_check_method == file_magic.
18748file_magic_cmd=$lt_file_magic_cmd
18749
18750# Flag that allows shared libraries with undefined symbols to be built.
18751allow_undefined_flag=$lt_allow_undefined_flag_RC
18752
18753# Flag that forces no undefined symbols.
18754no_undefined_flag=$lt_no_undefined_flag_RC
18755
18756# Commands used to finish a libtool library installation in a directory.
18757finish_cmds=$lt_finish_cmds
18758
18759# Same as above, but a single script fragment to be evaled but not shown.
18760finish_eval=$lt_finish_eval
18761
18762# Take the output of nm and produce a listing of raw symbols and C names.
18763global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18764
18765# Transform the output of nm in a proper C declaration
18766global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18767
18768# Transform the output of nm in a C name address pair
18769global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18770
18771# This is the shared library runtime path variable.
18772runpath_var=$runpath_var
18773
18774# This is the shared library path variable.
18775shlibpath_var=$shlibpath_var
18776
18777# Is shlibpath searched before the hard-coded library search path?
18778shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18779
18780# How to hardcode a shared library path into an executable.
18781hardcode_action=$hardcode_action_RC
18782
18783# Whether we should hardcode library paths into libraries.
18784hardcode_into_libs=$hardcode_into_libs
18785
18786# Flag to hardcode \$libdir into a binary during linking.
18787# This must work even if \$libdir does not exist.
18788hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18789
18790# If ld is used when linking, flag to hardcode \$libdir into
18791# a binary during linking. This must work even if \$libdir does
18792# not exist.
18793hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18794
18795# Whether we need a single -rpath flag with a separated argument.
18796hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18797
18798# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18799# resulting binary.
18800hardcode_direct=$hardcode_direct_RC
18801
18802# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18803# resulting binary.
18804hardcode_minus_L=$hardcode_minus_L_RC
18805
18806# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18807# the resulting binary.
18808hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18809
18810# Set to yes if building a shared library automatically hardcodes DIR into the library
18811# and all subsequent libraries and executables linked against it.
18812hardcode_automatic=$hardcode_automatic_RC
18813
18814# Variables whose values should be saved in libtool wrapper scripts and
18815# restored at relink time.
18816variables_saved_for_relink="$variables_saved_for_relink"
18817
18818# Whether libtool must link a program against all its dependency libraries.
18819link_all_deplibs=$link_all_deplibs_RC
18820
18821# Compile-time system search path for libraries
18822sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18823
18824# Run-time system search path for libraries
18825sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18826
18827# Fix the shell variable \$srcfile for the compiler.
18828fix_srcfile_path="$fix_srcfile_path_RC"
18829
18830# Set to yes if exported symbols are required.
18831always_export_symbols=$always_export_symbols_RC
18832
18833# The commands to list exported symbols.
18834export_symbols_cmds=$lt_export_symbols_cmds_RC
18835
18836# The commands to extract the exported symbol list from a shared archive.
18837extract_expsyms_cmds=$lt_extract_expsyms_cmds
18838
18839# Symbols that should not be listed in the preloaded symbols.
18840exclude_expsyms=$lt_exclude_expsyms_RC
18841
18842# Symbols that must always be exported.
18843include_expsyms=$lt_include_expsyms_RC
18844
18845# ### END LIBTOOL TAG CONFIG: $tagname
18846
18847__EOF__
18848
18849
18850else
18851 # If there is no Makefile yet, we rely on a make rule to execute
18852 # `config.status --recheck' to rerun these tests and create the
18853 # libtool script then.
18854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18855 if test -f "$ltmain_in"; then
18856 test -f Makefile && make "$ltmain"
18857 fi
18858fi
18859
18860
18861ac_ext=c
18862ac_cpp='$CPP $CPPFLAGS'
18863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18865ac_compiler_gnu=$ac_cv_c_compiler_gnu
18866
18867CC="$lt_save_CC"
18868
18869 ;;
18870
18871 *)
18872 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18873echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18874 { (exit 1); exit 1; }; }
18875 ;;
18876 esac
18877
18878 # Append the new tag name to the list of available tags.
18879 if test -n "$tagname" ; then
18880 available_tags="$available_tags $tagname"
18881 fi
18882 fi
18883 done
18884 IFS="$lt_save_ifs"
18885
18886 # Now substitute the updated list of available tags.
18887 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18888 mv "${ofile}T" "$ofile"
18889 chmod +x "$ofile"
18890 else
18891 rm -f "${ofile}T"
18892 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18893echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18894 { (exit 1); exit 1; }; }
18895 fi
18896fi
18897
18898
18899
18900# This can be used to rebuild libtool when needed
18901LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18902
18903# Always use our own libtool.
18904LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18905
18906# Prevent multiple expansion
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
bf9f3bac 18927
18928
bf9f3bac 18929
18930# Check whether --with-linux or --without-linux was given.
18931if test "${with_linux+set}" = set; then
18932 withval="$with_linux"
18933 kernelsrc="$withval"; kernelbuild="$withval"
18934fi;
18935
18936
18937# Check whether --with-linux-obj or --without-linux-obj was given.
18938if test "${with_linux_obj+set}" = set; then
18939 withval="$with_linux_obj"
18940 kernelbuild="$withval"
18941fi;
18942
18943 echo "$as_me:$LINENO: checking kernel source directory" >&5
18944echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
18945 if test -z "$kernelsrc"; then
bf338d8d
BB
18946 sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
18947 2>/dev/null | grep -v obj | tail -1`
bf9f3bac 18948
d4326403
BB
18949 if test -e ${sourcelink}; then
18950 kernelsrc=`readlink -f ${sourcelink}`
bf338d8d 18951 kernelbuild=
d4326403 18952 else
bf9f3bac 18953 echo "$as_me:$LINENO: result: Not found" >&5
18954echo "${ECHO_T}Not found" >&6
18955 { { echo "$as_me:$LINENO: error:
18956 *** Please specify the location of the kernel source
18957 *** with the '--with-linux=PATH' option" >&5
18958echo "$as_me: error:
18959 *** Please specify the location of the kernel source
18960 *** with the '--with-linux=PATH' option" >&2;}
18961 { (exit 1); exit 1; }; }
18962 fi
c5f70460
BB
18963 else
18964 if test "$kernelsrc" = "NONE"; then
18965 kernsrcver=NONE
18966 fi
bf9f3bac 18967 fi
18968
18969 echo "$as_me:$LINENO: result: $kernelsrc" >&5
18970echo "${ECHO_T}$kernelsrc" >&6
18971 echo "$as_me:$LINENO: checking kernel build directory" >&5
18972echo $ECHO_N "checking kernel build directory... $ECHO_C" >&6
bf338d8d
BB
18973 if test -z "$kernelbuild" && test -d ${kernelsrc}-obj; then
18974 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
18975 else
18976 kernelbuild=${kernelsrc}
18977 fi
bf9f3bac 18978 echo "$as_me:$LINENO: result: $kernelbuild" >&5
18979echo "${ECHO_T}$kernelbuild" >&6
18980
18981 echo "$as_me:$LINENO: checking kernel source version" >&5
18982echo $ECHO_N "checking kernel source version... $ECHO_C" >&6
18983 if test -r $kernelbuild/include/linux/version.h &&
18984 fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
18985
18986 kernsrcver=`(echo "#include <linux/version.h>";
18987 echo "kernsrcver=UTS_RELEASE") |
d4326403 18988 cpp -I $kernelbuild/include |
bf9f3bac 18989 grep "^kernsrcver=" | cut -d \" -f 2`
18990
18991 elif test -r $kernelbuild/include/linux/utsrelease.h &&
18992 fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
18993
18994 kernsrcver=`(echo "#include <linux/utsrelease.h>";
18995 echo "kernsrcver=UTS_RELEASE") |
d4326403 18996 cpp -I $kernelbuild/include |
bf9f3bac 18997 grep "^kernsrcver=" | cut -d \" -f 2`
18998 fi
18999
19000 if test -z "$kernsrcver"; then
19001 echo "$as_me:$LINENO: result: Not found" >&5
19002echo "${ECHO_T}Not found" >&6
19003 { { echo "$as_me:$LINENO: error:
19004 *** Cannot determine the version of the linux kernel source.
19005 *** Please prepare the kernel before running this script" >&5
19006echo "$as_me: error:
19007 *** Cannot determine the version of the linux kernel source.
19008 *** Please prepare the kernel before running this script" >&2;}
19009 { (exit 1); exit 1; }; }
19010 fi
19011
19012 echo "$as_me:$LINENO: result: $kernsrcver" >&5
19013echo "${ECHO_T}$kernsrcver" >&6
19014
bf9f3bac 19015 LINUX=${kernelsrc}
19016 LINUX_OBJ=${kernelbuild}
c5f70460
BB
19017 LINUX_VERSION=${kernsrcver}
19018
19019 abs_srcdir=`readlink -f ${srcdir}`
19020 kerninclude="-I${abs_srcdir} -I${abs_srcdir}/include"
19021 kernwarn="-Wstrict-prototypes -Werror"
19022
19023 if test "${LINUX_OBJ}" != "${LINUX}"; then
19024 kernobjs="O=$kernelbuild"
19025 fi
19026
19027 KERNELCFLAGS=
19028 KERNELCPPFLAGS="${kerninclude} ${kernwarn}"
19029 KERNELMAKE_PARAMS="${kernobjs}"
19030
19031
19032
bf9f3bac 19033
19034
19035
19036
19037
19038
19039 echo "$as_me:$LINENO: checking license" >&5
19040echo $ECHO_N "checking license... $ECHO_C" >&6
19041 echo "$as_me:$LINENO: result: GPL" >&5
19042echo "${ECHO_T}GPL" >&6
19043 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
19044
19045
19046 echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19047echo $ECHO_N "checking whether debugging is enabled... $ECHO_C" >&6
19048 # Check whether --enable-debug or --disable-debug was given.
19049if test "${enable_debug+set}" = set; then
19050 enableval="$enable_debug"
19051 case "$enableval" in
19052 yes) spl_ac_debug=yes ;;
19053 no) spl_ac_debug=no ;;
19054 *) echo "$as_me:$LINENO: result: Error!" >&5
19055echo "${ECHO_T}Error!" >&6
19056 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug" >&5
19057echo "$as_me: error: Bad value \"$enableval\" for --enable-debug" >&2;}
19058 { (exit 1); exit 1; }; } ;;
19059 esac
19060
19061fi;
19062 if test "$spl_ac_debug" = yes; then
19063 echo "$as_me:$LINENO: result: yes" >&5
19064echo "${ECHO_T}yes" >&6
19065 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG"
19066 else
19067 echo "$as_me:$LINENO: result: no" >&5
19068echo "${ECHO_T}no" >&6
bf9f3bac 19069 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
19070 fi
19071
19072
19073 echo "$as_me:$LINENO: checking whether kmem debugging is enabled" >&5
19074echo $ECHO_N "checking whether kmem debugging is enabled... $ECHO_C" >&6
19075 # Check whether --enable-debug-kmem or --disable-debug-kmem was given.
19076if test "${enable_debug_kmem+set}" = set; then
19077 enableval="$enable_debug_kmem"
19078 case "$enableval" in
19079 yes) spl_ac_debug_kmem=yes ;;
19080 no) spl_ac_debug_kmem=no ;;
19081 *) echo "$as_me:$LINENO: result: Error!" >&5
19082echo "${ECHO_T}Error!" >&6
19083 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kmem" >&5
19084echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kmem" >&2;}
19085 { (exit 1); exit 1; }; } ;;
19086 esac
19087
19088fi;
19089 if test "$spl_ac_debug_kmem" = yes; then
19090 echo "$as_me:$LINENO: result: yes" >&5
19091echo "${ECHO_T}yes" >&6
19092
19093cat >>confdefs.h <<\_ACEOF
19094#define DEBUG_KMEM 1
19095_ACEOF
19096
19097 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
19098 else
19099 echo "$as_me:$LINENO: result: no" >&5
19100echo "${ECHO_T}no" >&6
19101 fi
19102
19103
19104 echo "$as_me:$LINENO: checking whether mutex debugging is enabled" >&5
19105echo $ECHO_N "checking whether mutex debugging is enabled... $ECHO_C" >&6
19106 # Check whether --enable-debug-mutex or --disable-debug-mutex was given.
19107if test "${enable_debug_mutex+set}" = set; then
19108 enableval="$enable_debug_mutex"
19109 case "$enableval" in
19110 yes) spl_ac_debug_mutex=yes ;;
19111 no) spl_ac_debug_mutex=no ;;
19112 *) echo "$as_me:$LINENO: result: Error!" >&5
19113echo "${ECHO_T}Error!" >&6
19114 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-mutex" >&5
19115echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-mutex" >&2;}
19116 { (exit 1); exit 1; }; } ;;
19117 esac
19118
19119fi;
19120 if test "$spl_ac_debug_mutex" = yes; then
19121 echo "$as_me:$LINENO: result: yes" >&5
19122echo "${ECHO_T}yes" >&6
19123
19124cat >>confdefs.h <<\_ACEOF
19125#define DEBUG_MUTEX 1
19126_ACEOF
19127
19128 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_MUTEX"
19129 else
19130 echo "$as_me:$LINENO: result: no" >&5
19131echo "${ECHO_T}no" >&6
19132 fi
19133
19134
19135 echo "$as_me:$LINENO: checking whether kstat debugging is enabled" >&5
19136echo $ECHO_N "checking whether kstat debugging is enabled... $ECHO_C" >&6
19137 # Check whether --enable-debug-kstat or --disable-debug-kstat was given.
19138if test "${enable_debug_kstat+set}" = set; then
19139 enableval="$enable_debug_kstat"
19140 case "$enableval" in
19141 yes) spl_ac_debug_kstat=yes ;;
19142 no) spl_ac_debug_kstat=no ;;
19143 *) echo "$as_me:$LINENO: result: Error!" >&5
19144echo "${ECHO_T}Error!" >&6
19145 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-kstat" >&5
19146echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-kstat" >&2;}
19147 { (exit 1); exit 1; }; } ;;
19148 esac
19149
19150fi;
19151 if test "$spl_ac_debug_kstat" = yes; then
19152 echo "$as_me:$LINENO: result: yes" >&5
19153echo "${ECHO_T}yes" >&6
19154
19155cat >>confdefs.h <<\_ACEOF
19156#define DEBUG_KSTAT 1
19157_ACEOF
19158
19159 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KSTAT"
19160 else
19161 echo "$as_me:$LINENO: result: no" >&5
19162echo "${ECHO_T}no" >&6
19163 fi
19164
19165
19166 echo "$as_me:$LINENO: checking whether callb debugging is enabled" >&5
19167echo $ECHO_N "checking whether callb debugging is enabled... $ECHO_C" >&6
19168 # Check whether --enable-debug-callb or --disable-debug-callb was given.
19169if test "${enable_debug_callb+set}" = set; then
19170 enableval="$enable_debug_callb"
19171 case "$enableval" in
19172 yes) spl_ac_debug_callb=yes ;;
19173 no) spl_ac_debug_callb=no ;;
19174 *) echo "$as_me:$LINENO: result: Error!" >&5
19175echo "${ECHO_T}Error!" >&6
19176 { { echo "$as_me:$LINENO: error: Bad value \"$enableval\" for --enable-debug-callb" >&5
19177echo "$as_me: error: Bad value \"$enableval\" for --enable-debug-callb" >&2;}
19178 { (exit 1); exit 1; }; } ;;
19179 esac
19180
19181fi;
19182 if test "$spl_ac_debug_callb" = yes; then
19183 echo "$as_me:$LINENO: result: yes" >&5
19184echo "${ECHO_T}yes" >&6
19185
19186cat >>confdefs.h <<\_ACEOF
19187#define DEBUG_CALLB 1
19188_ACEOF
19189
19190 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_CALLB"
19191 else
19192 echo "$as_me:$LINENO: result: no" >&5
19193echo "${ECHO_T}no" >&6
19194 fi
19195
19196echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
19197echo $ECHO_N "checking whether kernel defines uintptr_t... $ECHO_C" >&6
19198
19199
19200cat >conftest.c <<_ACEOF
19201/* confdefs.h. */
19202_ACEOF
19203cat confdefs.h >>conftest.$ac_ext
19204cat >>conftest.$ac_ext <<_ACEOF
19205/* end confdefs.h. */
19206
19207
19208 #include <linux/types.h>
19209
19210int
19211main (void)
19212{
19213
19214 uintptr_t *ptr;
19215
19216 ;
19217 return 0;
19218}
19219
19220_ACEOF
19221
c5f70460
BB
19222
19223 rm -Rf build && mkdir -p build
19224 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19225 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19227 (eval $ac_try) 2>&5
19228 ac_status=$?
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236
19237 echo "$as_me:$LINENO: result: yes" >&5
19238echo "${ECHO_T}yes" >&6
19239
19240cat >>confdefs.h <<\_ACEOF
19241#define HAVE_UINTPTR_T 1
19242_ACEOF
19243
19244
19245else
19246 echo "$as_me: failed program was:" >&5
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
bf9f3bac 19249 echo "$as_me:$LINENO: result: no" >&5
19250echo "${ECHO_T}no" >&6
19251
c5f70460
BB
19252
19253
bf9f3bac 19254fi
c5f70460
BB
19255
19256 rm -Rf build
19257
bf9f3bac 19258
19259
19260echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
19261echo $ECHO_N "checking whether kernel defines atomic64_t... $ECHO_C" >&6
19262
19263
19264cat >conftest.c <<_ACEOF
19265/* confdefs.h. */
19266_ACEOF
19267cat confdefs.h >>conftest.$ac_ext
19268cat >>conftest.$ac_ext <<_ACEOF
19269/* end confdefs.h. */
19270
19271
19272 #include <asm/atomic.h>
19273
19274int
19275main (void)
19276{
19277
19278 atomic64_t *ptr;
19279
19280 ;
19281 return 0;
19282}
19283
19284_ACEOF
19285
c5f70460
BB
19286
19287 rm -Rf build && mkdir -p build
19288 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19289 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300
19301 echo "$as_me:$LINENO: result: yes" >&5
19302echo "${ECHO_T}yes" >&6
19303
19304cat >>confdefs.h <<\_ACEOF
19305#define HAVE_ATOMIC64_T 1
19306_ACEOF
19307
19308
19309else
19310 echo "$as_me: failed program was:" >&5
19311sed 's/^/| /' conftest.$ac_ext >&5
19312
bf9f3bac 19313 echo "$as_me:$LINENO: result: no" >&5
19314echo "${ECHO_T}no" >&6
19315
c5f70460
BB
19316
19317
bf9f3bac 19318fi
c5f70460
BB
19319
19320 rm -Rf build
19321
bf9f3bac 19322
19323
19324echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
19325echo $ECHO_N "checking whether INIT_WORK wants 3 args... $ECHO_C" >&6
19326
19327
19328cat >conftest.c <<_ACEOF
19329/* confdefs.h. */
19330_ACEOF
19331cat confdefs.h >>conftest.$ac_ext
19332cat >>conftest.$ac_ext <<_ACEOF
19333/* end confdefs.h. */
19334
19335
19336 #include <linux/workqueue.h>
19337
19338int
19339main (void)
19340{
19341
19342 struct work_struct work;
19343 INIT_WORK(&work, NULL, NULL);
19344
19345 ;
19346 return 0;
19347}
19348
19349_ACEOF
19350
c5f70460
BB
19351
19352 rm -Rf build && mkdir -p build
19353 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19354 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19356 (eval $ac_try) 2>&5
19357 ac_status=$?
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365
19366 echo "$as_me:$LINENO: result: yes" >&5
19367echo "${ECHO_T}yes" >&6
19368
19369cat >>confdefs.h <<\_ACEOF
19370#define HAVE_3ARGS_INIT_WORK 1
19371_ACEOF
19372
19373
19374else
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
bf9f3bac 19378 echo "$as_me:$LINENO: result: no" >&5
19379echo "${ECHO_T}no" >&6
19380
c5f70460
BB
19381
19382
bf9f3bac 19383fi
c5f70460
BB
19384
19385 rm -Rf build
19386
bf9f3bac 19387
19388
19389echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
19390echo $ECHO_N "checking whether register_sysctl_table() wants 2 args... $ECHO_C" >&6
19391
19392
19393cat >conftest.c <<_ACEOF
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399
19400
19401 #include <linux/sysctl.h>
19402
19403int
19404main (void)
19405{
19406
19407 return register_sysctl_table(NULL,0);
19408
19409 ;
19410 return 0;
19411}
19412
19413_ACEOF
19414
c5f70460
BB
19415
19416 rm -Rf build && mkdir -p build
19417 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19418 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429
19430 echo "$as_me:$LINENO: result: yes" >&5
19431echo "${ECHO_T}yes" >&6
19432
19433cat >>confdefs.h <<\_ACEOF
19434#define HAVE_2ARGS_REGISTER_SYSCTL 1
19435_ACEOF
19436
19437
19438else
19439 echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
bf9f3bac 19442 echo "$as_me:$LINENO: result: no" >&5
19443echo "${ECHO_T}no" >&6
19444
c5f70460
BB
19445
19446
bf9f3bac 19447fi
c5f70460
BB
19448
19449 rm -Rf build
19450
bf9f3bac 19451
19452
19453
19454 echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
19455echo $ECHO_N "checking whether set_shrinker() available... $ECHO_C" >&6
19456
19457
19458cat >conftest.c <<_ACEOF
19459/* confdefs.h. */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h. */
19464
19465
19466 #include <linux/mm.h>
19467
19468int
19469main (void)
19470{
19471
19472 return set_shrinker(DEFAULT_SEEKS, NULL);
19473
19474 ;
19475 return 0;
19476}
19477
19478_ACEOF
19479
c5f70460
BB
19480
19481 rm -Rf build && mkdir -p build
19482 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19483 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494
19495 echo "$as_me:$LINENO: result: yes" >&5
19496echo "${ECHO_T}yes" >&6
19497
19498cat >>confdefs.h <<\_ACEOF
19499#define HAVE_SET_SHRINKER 1
19500_ACEOF
19501
19502
19503else
19504 echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
bf9f3bac 19507 echo "$as_me:$LINENO: result: no" >&5
19508echo "${ECHO_T}no" >&6
19509
c5f70460
BB
19510
19511
bf9f3bac 19512fi
c5f70460
BB
19513
19514 rm -Rf build
19515
bf9f3bac 19516
19517
19518echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
19519echo $ECHO_N "checking whether struct path used in struct nameidata... $ECHO_C" >&6
19520
19521
19522cat >conftest.c <<_ACEOF
19523/* confdefs.h. */
19524_ACEOF
19525cat confdefs.h >>conftest.$ac_ext
19526cat >>conftest.$ac_ext <<_ACEOF
19527/* end confdefs.h. */
19528
19529
19530 #include <linux/namei.h>
19531
19532int
19533main (void)
19534{
19535
19536 struct nameidata nd;
19537
19538 nd.path.mnt = NULL;
19539 nd.path.dentry = NULL;
19540
19541 ;
19542 return 0;
19543}
19544
19545_ACEOF
19546
c5f70460
BB
19547
19548 rm -Rf build && mkdir -p build
19549 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19550 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561
19562 echo "$as_me:$LINENO: result: yes" >&5
19563echo "${ECHO_T}yes" >&6
19564
19565cat >>confdefs.h <<\_ACEOF
19566#define HAVE_PATH_IN_NAMEIDATA 1
19567_ACEOF
19568
19569
19570else
19571 echo "$as_me: failed program was:" >&5
19572sed 's/^/| /' conftest.$ac_ext >&5
19573
bf9f3bac 19574 echo "$as_me:$LINENO: result: no" >&5
19575echo "${ECHO_T}no" >&6
19576
c5f70460
BB
19577
19578
bf9f3bac 19579fi
c5f70460
BB
19580
19581 rm -Rf build
19582
bf9f3bac 19583
19584
19585
19586 echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
19587echo $ECHO_N "checking whether symbol task_curr is exported... $ECHO_C" >&6
d1ff2312 19588 grep -q -E '[[:space:]]task_curr[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
bf9f3bac 19589 rc=$?
19590 if test $rc -ne 0; then
19591 export=0
19592 for file in kernel/sched.c; do
d1ff2312 19593 grep -q -E "EXPORT_SYMBOL.*(task_curr)" "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 19594 rc=$?
19595 if test $rc -eq 0; then
19596 export=1
19597 break;
19598 fi
19599 done
19600 if test $export -eq 0; then
19601 echo "$as_me:$LINENO: result: no" >&5
19602echo "${ECHO_T}no" >&6
19603
19604 else
19605 echo "$as_me:$LINENO: result: yes" >&5
19606echo "${ECHO_T}yes" >&6
19607
19608cat >>confdefs.h <<\_ACEOF
19609#define HAVE_TASK_CURR 1
19610_ACEOF
19611
19612 fi
19613 else
19614 echo "$as_me:$LINENO: result: yes" >&5
19615echo "${ECHO_T}yes" >&6
19616
19617cat >>confdefs.h <<\_ACEOF
19618#define HAVE_TASK_CURR 1
19619_ACEOF
19620
19621 fi
19622
19623
19624echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
19625echo $ECHO_N "checking whether unnumbered sysctl support exists... $ECHO_C" >&6
19626
19627
19628cat >conftest.c <<_ACEOF
19629/* confdefs.h. */
19630_ACEOF
19631cat confdefs.h >>conftest.$ac_ext
19632cat >>conftest.$ac_ext <<_ACEOF
19633/* end confdefs.h. */
19634
19635
19636 #include <linux/sysctl.h>
19637
19638int
19639main (void)
19640{
19641
19642 #ifndef CTL_UNNUMBERED
19643 #error CTL_UNNUMBERED undefined
19644 #endif
19645
19646 ;
19647 return 0;
19648}
19649
19650_ACEOF
19651
c5f70460
BB
19652
19653 rm -Rf build && mkdir -p build
19654 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19655 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666
19667 echo "$as_me:$LINENO: result: yes" >&5
19668echo "${ECHO_T}yes" >&6
19669
19670cat >>confdefs.h <<\_ACEOF
19671#define HAVE_CTL_UNNUMBERED 1
19672_ACEOF
19673
19674
19675else
19676 echo "$as_me: failed program was:" >&5
19677sed 's/^/| /' conftest.$ac_ext >&5
19678
bf9f3bac 19679 echo "$as_me:$LINENO: result: no" >&5
19680echo "${ECHO_T}no" >&6
19681
c5f70460
BB
19682
19683
bf9f3bac 19684fi
c5f70460
BB
19685
19686 rm -Rf build
19687
bf9f3bac 19688
19689
19690echo "$as_me:$LINENO: checking whether fls64() is available" >&5
19691echo $ECHO_N "checking whether fls64() is available... $ECHO_C" >&6
19692
19693
19694cat >conftest.c <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700
19701
19702 #include <linux/bitops.h>
19703
19704int
19705main (void)
19706{
19707
19708 return fls64(0);
19709
19710 ;
19711 return 0;
19712}
19713
19714_ACEOF
19715
c5f70460
BB
19716
19717 rm -Rf build && mkdir -p build
19718 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19719 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730
19731 echo "$as_me:$LINENO: result: yes" >&5
19732echo "${ECHO_T}yes" >&6
19733
19734cat >>confdefs.h <<\_ACEOF
19735#define HAVE_FLS64 1
19736_ACEOF
19737
19738
19739else
19740 echo "$as_me: failed program was:" >&5
19741sed 's/^/| /' conftest.$ac_ext >&5
19742
bf9f3bac 19743 echo "$as_me:$LINENO: result: no" >&5
19744echo "${ECHO_T}no" >&6
19745
c5f70460
BB
19746
19747
bf9f3bac 19748fi
c5f70460
BB
19749
19750 rm -Rf build
19751
bf9f3bac 19752
19753
19754
19755 echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
19756echo $ECHO_N "checking whether symbol device_create is exported... $ECHO_C" >&6
d1ff2312 19757 grep -q -E '[[:space:]]device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
bf9f3bac 19758 rc=$?
19759 if test $rc -ne 0; then
19760 export=0
19761 for file in drivers/base/core.c; do
d1ff2312 19762 grep -q -E "EXPORT_SYMBOL.*(device_create)" "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 19763 rc=$?
19764 if test $rc -eq 0; then
19765 export=1
19766 break;
19767 fi
19768 done
19769 if test $export -eq 0; then
19770 echo "$as_me:$LINENO: result: no" >&5
19771echo "${ECHO_T}no" >&6
19772
19773 else
19774 echo "$as_me:$LINENO: result: yes" >&5
19775echo "${ECHO_T}yes" >&6
19776
19777cat >>confdefs.h <<\_ACEOF
19778#define HAVE_DEVICE_CREATE 1
19779_ACEOF
19780
19781 fi
19782 else
19783 echo "$as_me:$LINENO: result: yes" >&5
19784echo "${ECHO_T}yes" >&6
19785
19786cat >>confdefs.h <<\_ACEOF
19787#define HAVE_DEVICE_CREATE 1
19788_ACEOF
19789
19790 fi
19791
19792
19793
8123ac4f
BB
19794 echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
19795echo $ECHO_N "checking whether device_create() wants 5 args... $ECHO_C" >&6
19796 tmp_flags="$EXTRA_KCFLAGS"
19797 EXTRA_KCFLAGS="-Werror"
19798
19799
19800cat >conftest.c <<_ACEOF
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
19806
19807
19808 #include <linux/device.h>
19809
19810int
19811main (void)
19812{
19813
19814 device_create(NULL, NULL, 0, NULL, "%d", 1);
19815
19816 ;
19817 return 0;
19818}
19819
19820_ACEOF
19821
19822
19823 rm -Rf build && mkdir -p build
19824 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19825 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836
19837 echo "$as_me:$LINENO: result: yes" >&5
19838echo "${ECHO_T}yes" >&6
19839
19840cat >>confdefs.h <<\_ACEOF
19841#define HAVE_5ARGS_DEVICE_CREATE 1
19842_ACEOF
19843
19844
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 echo "$as_me:$LINENO: result: no" >&5
19850echo "${ECHO_T}no" >&6
19851
19852
19853
19854fi
19855
19856 rm -Rf build
19857
19858
19859 EXTRA_KCFLAGS="$tmp_flags"
19860
19861
bf9f3bac 19862 echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
19863echo $ECHO_N "checking whether symbol class_device_create is exported... $ECHO_C" >&6
d1ff2312 19864 grep -q -E '[[:space:]]class_device_create[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
bf9f3bac 19865 rc=$?
19866 if test $rc -ne 0; then
19867 export=0
19868 for file in drivers/base/class.c; do
d1ff2312 19869 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 19870 rc=$?
19871 if test $rc -eq 0; then
19872 export=1
19873 break;
19874 fi
19875 done
19876 if test $export -eq 0; then
19877 echo "$as_me:$LINENO: result: no" >&5
19878echo "${ECHO_T}no" >&6
19879
19880 else
19881 echo "$as_me:$LINENO: result: yes" >&5
19882echo "${ECHO_T}yes" >&6
19883
19884cat >>confdefs.h <<\_ACEOF
19885#define HAVE_CLASS_DEVICE_CREATE 1
19886_ACEOF
19887
19888 fi
19889 else
19890 echo "$as_me:$LINENO: result: yes" >&5
19891echo "${ECHO_T}yes" >&6
19892
19893cat >>confdefs.h <<\_ACEOF
19894#define HAVE_CLASS_DEVICE_CREATE 1
19895_ACEOF
19896
19897 fi
19898
19899
19900
19901 echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
19902echo $ECHO_N "checking whether symbol set_normalized_timespec is exported... $ECHO_C" >&6
d1ff2312 19903 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
bf9f3bac 19904 rc=$?
19905 if test $rc -ne 0; then
19906 export=0
19907 for file in kernel/time.c; do
d1ff2312 19908 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 19909 rc=$?
19910 if test $rc -eq 0; then
19911 export=1
19912 break;
19913 fi
19914 done
19915 if test $export -eq 0; then
19916 echo "$as_me:$LINENO: result: no" >&5
19917echo "${ECHO_T}no" >&6
19918
19919 else
19920 echo "$as_me:$LINENO: result: yes" >&5
19921echo "${ECHO_T}yes" >&6
19922
19923cat >>confdefs.h <<\_ACEOF
19924#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19925_ACEOF
19926
19927 fi
19928 else
19929 echo "$as_me:$LINENO: result: yes" >&5
19930echo "${ECHO_T}yes" >&6
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
19934_ACEOF
19935
19936 fi
19937
19938
19939
19940 echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
19941echo $ECHO_N "checking whether set_normalized_timespec() is an inline... $ECHO_C" >&6
19942
19943
19944cat >conftest.c <<_ACEOF
19945/* confdefs.h. */
19946_ACEOF
19947cat confdefs.h >>conftest.$ac_ext
19948cat >>conftest.$ac_ext <<_ACEOF
19949/* end confdefs.h. */
19950
19951
19952 #include <linux/time.h>
19953 void set_normalized_timespec(struct timespec *ts,
19954 time_t sec, long nsec) { }
19955
19956int
19957main (void)
19958{
19959
19960 ;
19961 return 0;
19962}
19963
19964_ACEOF
19965
c5f70460
BB
19966
19967 rm -Rf build && mkdir -p build
19968 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 19969 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980
19981 echo "$as_me:$LINENO: result: no" >&5
19982echo "${ECHO_T}no" >&6
19983
19984else
19985 echo "$as_me: failed program was:" >&5
19986sed 's/^/| /' conftest.$ac_ext >&5
19987
bf9f3bac 19988 echo "$as_me:$LINENO: result: yes" >&5
19989echo "${ECHO_T}yes" >&6
19990
19991cat >>confdefs.h <<\_ACEOF
19992#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
19993_ACEOF
19994
19995
c5f70460
BB
19996
19997
bf9f3bac 19998fi
c5f70460
BB
19999
20000 rm -Rf build
20001
bf9f3bac 20002
20003
20004
20005 echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
20006echo $ECHO_N "checking whether timespec_sub() is available... $ECHO_C" >&6
20007
20008
20009cat >conftest.c <<_ACEOF
20010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h. */
20015
20016
20017 #include <linux/time.h>
20018
20019int
20020main (void)
20021{
20022
20023 struct timespec a, b, c = { 0 };
20024 c = timespec_sub(a, b);
20025
20026 ;
20027 return 0;
20028}
20029
20030_ACEOF
20031
c5f70460
BB
20032
20033 rm -Rf build && mkdir -p build
20034 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20035 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046
20047 echo "$as_me:$LINENO: result: yes" >&5
20048echo "${ECHO_T}yes" >&6
20049
20050cat >>confdefs.h <<\_ACEOF
20051#define HAVE_TIMESPEC_SUB 1
20052_ACEOF
20053
20054
20055else
20056 echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
bf9f3bac 20059 echo "$as_me:$LINENO: result: no" >&5
20060echo "${ECHO_T}no" >&6
20061
c5f70460
BB
20062
20063
bf9f3bac 20064fi
c5f70460
BB
20065
20066 rm -Rf build
20067
bf9f3bac 20068
20069
20070
20071 echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
20072echo $ECHO_N "checking whether init_utsname() is available... $ECHO_C" >&6
20073
20074
20075cat >conftest.c <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081
20082
20083 #include <linux/utsname.h>
20084
20085int
20086main (void)
20087{
20088
20089 struct new_utsname *a = init_utsname();
20090
20091 ;
20092 return 0;
20093}
20094
20095_ACEOF
20096
c5f70460
BB
20097
20098 rm -Rf build && mkdir -p build
20099 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20100 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111
20112 echo "$as_me:$LINENO: result: yes" >&5
20113echo "${ECHO_T}yes" >&6
20114
20115cat >>confdefs.h <<\_ACEOF
20116#define HAVE_INIT_UTSNAME 1
20117_ACEOF
20118
20119
20120else
20121 echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
bf9f3bac 20124 echo "$as_me:$LINENO: result: no" >&5
20125echo "${ECHO_T}no" >&6
20126
c5f70460
BB
20127
20128
bf9f3bac 20129fi
c5f70460
BB
20130
20131 rm -Rf build
20132
bf9f3bac 20133
20134
20135
20136 echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
20137echo $ECHO_N "checking whether header linux/fdtable.h exists... $ECHO_C" >&6
20138
20139
20140cat >conftest.c <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146
20147
20148 #include <linux/fdtable.h>
20149
20150int
20151main (void)
20152{
20153
20154 return 0;
20155
20156 ;
20157 return 0;
20158}
20159
20160_ACEOF
20161
c5f70460
BB
20162
20163 rm -Rf build && mkdir -p build
20164 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20165 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20168 ac_status=$?
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176
20177
20178cat >>confdefs.h <<\_ACEOF
20179#define HAVE_FDTABLE_HEADER 1
20180_ACEOF
20181
20182 echo "$as_me:$LINENO: result: yes" >&5
20183echo "${ECHO_T}yes" >&6
20184
20185
20186else
20187 echo "$as_me: failed program was:" >&5
20188sed 's/^/| /' conftest.$ac_ext >&5
20189
bf9f3bac 20190 echo "$as_me:$LINENO: result: no" >&5
20191echo "${ECHO_T}no" >&6
20192
20193
c5f70460
BB
20194
20195
bf9f3bac 20196fi
c5f70460
BB
20197
20198 rm -Rf build
20199
bf9f3bac 20200
20201
20202
20203
20204 echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
20205echo $ECHO_N "checking whether files_fdtable() is available... $ECHO_C" >&6
20206
20207
20208cat >conftest.c <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h. */
20214
20215
20216 #include <linux/sched.h>
20217 #include <linux/file.h>
20218 #ifdef HAVE_FDTABLE_HEADER
20219 #include <linux/fdtable.h>
20220 #endif
20221
20222int
20223main (void)
20224{
20225
20226 struct files_struct *files = current->files;
20227 struct fdtable *fdt = files_fdtable(files);
20228
20229 ;
20230 return 0;
20231}
20232
20233_ACEOF
20234
c5f70460
BB
20235
20236 rm -Rf build && mkdir -p build
20237 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20238 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249
20250 echo "$as_me:$LINENO: result: yes" >&5
20251echo "${ECHO_T}yes" >&6
20252
20253cat >>confdefs.h <<\_ACEOF
20254#define HAVE_FILES_FDTABLE 1
20255_ACEOF
20256
20257
20258else
20259 echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
bf9f3bac 20262 echo "$as_me:$LINENO: result: no" >&5
20263echo "${ECHO_T}no" >&6
20264
c5f70460
BB
20265
20266
bf9f3bac 20267fi
c5f70460
BB
20268
20269 rm -Rf build
20270
bf9f3bac 20271
20272
20273
20274 echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
20275echo $ECHO_N "checking whether header linux/uaccess.h exists... $ECHO_C" >&6
20276
20277
20278cat >conftest.c <<_ACEOF
20279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284
20285
20286 #include <linux/uaccess.h>
20287
20288int
20289main (void)
20290{
20291
20292 return 0;
20293
20294 ;
20295 return 0;
20296}
20297
20298_ACEOF
20299
c5f70460
BB
20300
20301 rm -Rf build && mkdir -p build
20302 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20303 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314
20315
20316cat >>confdefs.h <<\_ACEOF
20317#define HAVE_UACCESS_HEADER 1
20318_ACEOF
20319
20320 echo "$as_me:$LINENO: result: yes" >&5
20321echo "${ECHO_T}yes" >&6
20322
20323
20324else
20325 echo "$as_me: failed program was:" >&5
20326sed 's/^/| /' conftest.$ac_ext >&5
20327
bf9f3bac 20328 echo "$as_me:$LINENO: result: no" >&5
20329echo "${ECHO_T}no" >&6
20330
20331
c5f70460
BB
20332
20333
bf9f3bac 20334fi
c5f70460
BB
20335
20336 rm -Rf build
20337
bf9f3bac 20338
20339
20340
20341
20342 echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
20343echo $ECHO_N "checking whether kmalloc_node() is available... $ECHO_C" >&6
20344
20345
20346cat >conftest.c <<_ACEOF
20347/* confdefs.h. */
20348_ACEOF
20349cat confdefs.h >>conftest.$ac_ext
20350cat >>conftest.$ac_ext <<_ACEOF
20351/* end confdefs.h. */
20352
20353
20354 #include <linux/slab.h>
20355
20356int
20357main (void)
20358{
20359
20360 void *a = kmalloc_node(1, GFP_KERNEL, 0);
20361
20362 ;
20363 return 0;
20364}
20365
20366_ACEOF
20367
c5f70460
BB
20368
20369 rm -Rf build && mkdir -p build
20370 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20371 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382
20383 echo "$as_me:$LINENO: result: yes" >&5
20384echo "${ECHO_T}yes" >&6
20385
20386cat >>confdefs.h <<\_ACEOF
20387#define HAVE_KMALLOC_NODE 1
20388_ACEOF
20389
20390
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
bf9f3bac 20395 echo "$as_me:$LINENO: result: no" >&5
20396echo "${ECHO_T}no" >&6
20397
c5f70460
BB
20398
20399
bf9f3bac 20400fi
c5f70460
BB
20401
20402 rm -Rf build
20403
bf9f3bac 20404
20405
20406
20407 echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
20408echo $ECHO_N "checking whether symbol monotonic_clock is exported... $ECHO_C" >&6
d1ff2312 20409 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
bf9f3bac 20410 rc=$?
20411 if test $rc -ne 0; then
20412 export=0
20413 for file in ; do
d1ff2312 20414 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 20415 rc=$?
20416 if test $rc -eq 0; then
20417 export=1
20418 break;
20419 fi
20420 done
20421 if test $export -eq 0; then
20422 echo "$as_me:$LINENO: result: no" >&5
20423echo "${ECHO_T}no" >&6
20424
20425 else
20426 echo "$as_me:$LINENO: result: yes" >&5
20427echo "${ECHO_T}yes" >&6
20428
20429cat >>confdefs.h <<\_ACEOF
20430#define HAVE_MONOTONIC_CLOCK 1
20431_ACEOF
20432
20433 fi
20434 else
20435 echo "$as_me:$LINENO: result: yes" >&5
20436echo "${ECHO_T}yes" >&6
20437
20438cat >>confdefs.h <<\_ACEOF
20439#define HAVE_MONOTONIC_CLOCK 1
20440_ACEOF
20441
20442 fi
20443
20444
20445
20446 echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
20447echo $ECHO_N "checking whether struct inode has i_mutex... $ECHO_C" >&6
20448
20449
20450cat >conftest.c <<_ACEOF
20451/* confdefs.h. */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h. */
20456
20457
20458 #include <linux/fs.h>
20459 #include <linux/mutex.h>
20460
20461int
20462main (void)
20463{
20464
20465 struct inode i;
20466 mutex_init(&i.i_mutex);
20467
20468 ;
20469 return 0;
20470}
20471
20472_ACEOF
20473
c5f70460
BB
20474
20475 rm -Rf build && mkdir -p build
20476 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20477 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488
20489 echo "$as_me:$LINENO: result: yes" >&5
20490echo "${ECHO_T}yes" >&6
20491
20492cat >>confdefs.h <<\_ACEOF
20493#define HAVE_INODE_I_MUTEX 1
20494_ACEOF
20495
20496
20497else
20498 echo "$as_me: failed program was:" >&5
20499sed 's/^/| /' conftest.$ac_ext >&5
20500
bf9f3bac 20501 echo "$as_me:$LINENO: result: no" >&5
20502echo "${ECHO_T}no" >&6
20503
c5f70460
BB
20504
20505
bf9f3bac 20506fi
c5f70460
BB
20507
20508 rm -Rf build
20509
bf9f3bac 20510
20511
20512
6c9433c1
BB
20513 echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
20514echo $ECHO_N "checking whether mutex_lock_nested() is available... $ECHO_C" >&6
20515
20516
20517cat >conftest.c <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523
20524
20525 #include <linux/mutex.h>
20526
20527int
20528main (void)
20529{
20530
20531 struct mutex mutex;
20532 mutex_init(&mutex);
20533 mutex_lock_nested(&mutex, 0);
20534
20535 ;
20536 return 0;
20537}
20538
20539_ACEOF
20540
20541
20542 rm -Rf build && mkdir -p build
20543 echo "obj-m := conftest.o" >build/Makefile
20544 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555
20556 echo "$as_me:$LINENO: result: yes" >&5
20557echo "${ECHO_T}yes" >&6
20558
20559cat >>confdefs.h <<\_ACEOF
20560#define HAVE_MUTEX_LOCK_NESTED 1
20561_ACEOF
20562
20563
20564else
20565 echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568 echo "$as_me:$LINENO: result: no" >&5
20569echo "${ECHO_T}no" >&6
20570
20571
20572
20573fi
20574
20575 rm -Rf build
20576
20577
20578
20579
96dded38
BB
20580 echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
20581echo $ECHO_N "checking whether symbol div64_64 is exported... $ECHO_C" >&6
20582 grep -q -E '[[:space:]]div64_64[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20583 rc=$?
20584 if test $rc -ne 0; then
20585 export=0
20586 for file in ; do
20587 grep -q -E "EXPORT_SYMBOL.*(div64_64)" "$LINUX_OBJ/$file" 2>/dev/null
20588 rc=$?
20589 if test $rc -eq 0; then
20590 export=1
20591 break;
20592 fi
20593 done
20594 if test $export -eq 0; then
20595 echo "$as_me:$LINENO: result: no" >&5
20596echo "${ECHO_T}no" >&6
bf9f3bac 20597
96dded38
BB
20598 else
20599 echo "$as_me:$LINENO: result: yes" >&5
20600echo "${ECHO_T}yes" >&6
bf9f3bac 20601
96dded38
BB
20602cat >>confdefs.h <<\_ACEOF
20603#define HAVE_DIV64_64 1
bf9f3bac 20604_ACEOF
20605
96dded38
BB
20606 fi
20607 else
bf9f3bac 20608 echo "$as_me:$LINENO: result: yes" >&5
20609echo "${ECHO_T}yes" >&6
20610
20611cat >>confdefs.h <<\_ACEOF
20612#define HAVE_DIV64_64 1
20613_ACEOF
20614
96dded38
BB
20615 fi
20616
bf9f3bac 20617
31a033ec 20618
96dded38
BB
20619 echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
20620echo $ECHO_N "checking whether symbol div64_u64 is exported... $ECHO_C" >&6
20621 grep -q -E '[[:space:]]div64_u64[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20622 rc=$?
20623 if test $rc -ne 0; then
20624 export=0
20625 for file in ; do
20626 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" "$LINUX_OBJ/$file" 2>/dev/null
20627 rc=$?
20628 if test $rc -eq 0; then
20629 export=1
20630 break;
20631 fi
20632 done
20633 if test $export -eq 0; then
20634 echo "$as_me:$LINENO: result: no" >&5
31a033ec
BB
20635echo "${ECHO_T}no" >&6
20636
96dded38
BB
20637 else
20638 echo "$as_me:$LINENO: result: yes" >&5
20639echo "${ECHO_T}yes" >&6
c5f70460 20640
96dded38
BB
20641cat >>confdefs.h <<\_ACEOF
20642#define HAVE_DIV64_U64 1
20643_ACEOF
c5f70460 20644
96dded38
BB
20645 fi
20646 else
20647 echo "$as_me:$LINENO: result: yes" >&5
20648echo "${ECHO_T}yes" >&6
c5f70460 20649
96dded38
BB
20650cat >>confdefs.h <<\_ACEOF
20651#define HAVE_DIV64_U64 1
20652_ACEOF
c5f70460 20653
96dded38 20654 fi
31a033ec
BB
20655
20656
20657
20658 echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
20659echo $ECHO_N "checking whether on_each_cpu() wants 3 args... $ECHO_C" >&6
20660
20661
20662cat >conftest.c <<_ACEOF
20663/* confdefs.h. */
20664_ACEOF
20665cat confdefs.h >>conftest.$ac_ext
20666cat >>conftest.$ac_ext <<_ACEOF
20667/* end confdefs.h. */
20668
20669
20670 #include <linux/smp.h>
20671
20672int
20673main (void)
20674{
20675
20676 on_each_cpu(NULL, NULL, 0);
20677
20678 ;
20679 return 0;
20680}
20681
20682_ACEOF
20683
c5f70460
BB
20684
20685 rm -Rf build && mkdir -p build
20686 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 20687 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20690 ac_status=$?
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698
20699 echo "$as_me:$LINENO: result: yes" >&5
20700echo "${ECHO_T}yes" >&6
20701
20702cat >>confdefs.h <<\_ACEOF
20703#define HAVE_3ARGS_ON_EACH_CPU 1
20704_ACEOF
20705
20706
bf9f3bac 20707else
20708 echo "$as_me: failed program was:" >&5
20709sed 's/^/| /' conftest.$ac_ext >&5
20710
bf9f3bac 20711 echo "$as_me:$LINENO: result: no" >&5
20712echo "${ECHO_T}no" >&6
20713
c5f70460
BB
20714
20715
bf9f3bac 20716fi
c5f70460
BB
20717
20718 rm -Rf build
20719
bf9f3bac 20720
20721
20722
d1ff2312
BB
20723 echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
20724echo $ECHO_N "checking whether symbol kallsyms_lookup_name is exported... $ECHO_C" >&6
20725 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20726 rc=$?
20727 if test $rc -ne 0; then
20728 export=0
20729 for file in ; do
20730 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" "$LINUX_OBJ/$file" 2>/dev/null
20731 rc=$?
20732 if test $rc -eq 0; then
20733 export=1
20734 break;
20735 fi
20736 done
20737 if test $export -eq 0; then
20738 echo "$as_me:$LINENO: result: no" >&5
20739echo "${ECHO_T}no" >&6
20740
20741 else
20742 echo "$as_me:$LINENO: result: yes" >&5
20743echo "${ECHO_T}yes" >&6
20744
20745cat >>confdefs.h <<\_ACEOF
20746#define HAVE_KALLSYMS_LOOKUP_NAME 1
20747_ACEOF
20748
20749 fi
20750 else
20751 echo "$as_me:$LINENO: result: yes" >&5
20752echo "${ECHO_T}yes" >&6
20753
20754cat >>confdefs.h <<\_ACEOF
20755#define HAVE_KALLSYMS_LOOKUP_NAME 1
20756_ACEOF
20757
20758 fi
20759
20760
20761
20762 echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
20763echo $ECHO_N "checking whether symbol get_vmalloc_info is exported... $ECHO_C" >&6
20764 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
20765 rc=$?
20766 if test $rc -ne 0; then
20767 export=0
20768 for file in ; do
20769 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" "$LINUX_OBJ/$file" 2>/dev/null
20770 rc=$?
20771 if test $rc -eq 0; then
20772 export=1
20773 break;
20774 fi
20775 done
20776 if test $export -eq 0; then
20777 echo "$as_me:$LINENO: result: no" >&5
20778echo "${ECHO_T}no" >&6
20779
20780 else
20781 echo "$as_me:$LINENO: result: yes" >&5
20782echo "${ECHO_T}yes" >&6
20783
20784cat >>confdefs.h <<\_ACEOF
20785#define HAVE_GET_VMALLOC_INFO 1
20786_ACEOF
20787
20788 fi
20789 else
20790 echo "$as_me:$LINENO: result: yes" >&5
20791echo "${ECHO_T}yes" >&6
20792
20793cat >>confdefs.h <<\_ACEOF
20794#define HAVE_GET_VMALLOC_INFO 1
20795_ACEOF
20796
20797 fi
20798
20799
20800
36b313da
BB
20801 echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
20802echo $ECHO_N "checking whether symbol first_online_pgdat is exported... $ECHO_C" >&6
d1ff2312 20803 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
36b313da
BB
20804 rc=$?
20805 if test $rc -ne 0; then
20806 export=0
20807 for file in ; do
d1ff2312 20808 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
20809 rc=$?
20810 if test $rc -eq 0; then
20811 export=1
20812 break;
20813 fi
20814 done
20815 if test $export -eq 0; then
20816 echo "$as_me:$LINENO: result: no" >&5
20817echo "${ECHO_T}no" >&6
20818
20819 else
20820 echo "$as_me:$LINENO: result: yes" >&5
20821echo "${ECHO_T}yes" >&6
20822
20823cat >>confdefs.h <<\_ACEOF
20824#define HAVE_FIRST_ONLINE_PGDAT 1
20825_ACEOF
20826
20827 fi
20828 else
20829 echo "$as_me:$LINENO: result: yes" >&5
20830echo "${ECHO_T}yes" >&6
20831
20832cat >>confdefs.h <<\_ACEOF
20833#define HAVE_FIRST_ONLINE_PGDAT 1
20834_ACEOF
20835
20836 fi
20837
20838
20839
20840 echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
20841echo $ECHO_N "checking whether symbol next_online_pgdat is exported... $ECHO_C" >&6
d1ff2312 20842 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
36b313da
BB
20843 rc=$?
20844 if test $rc -ne 0; then
20845 export=0
20846 for file in ; do
d1ff2312 20847 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
20848 rc=$?
20849 if test $rc -eq 0; then
20850 export=1
20851 break;
20852 fi
20853 done
20854 if test $export -eq 0; then
20855 echo "$as_me:$LINENO: result: no" >&5
20856echo "${ECHO_T}no" >&6
20857
20858 else
20859 echo "$as_me:$LINENO: result: yes" >&5
20860echo "${ECHO_T}yes" >&6
20861
20862cat >>confdefs.h <<\_ACEOF
20863#define HAVE_NEXT_ONLINE_PGDAT 1
20864_ACEOF
20865
20866 fi
20867 else
20868 echo "$as_me:$LINENO: result: yes" >&5
20869echo "${ECHO_T}yes" >&6
20870
20871cat >>confdefs.h <<\_ACEOF
20872#define HAVE_NEXT_ONLINE_PGDAT 1
20873_ACEOF
20874
20875 fi
20876
20877
20878
20879 echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
20880echo $ECHO_N "checking whether symbol next_zone is exported... $ECHO_C" >&6
d1ff2312 20881 grep -q -E '[[:space:]]next_zone[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
36b313da
BB
20882 rc=$?
20883 if test $rc -ne 0; then
20884 export=0
20885 for file in ; do
d1ff2312 20886 grep -q -E "EXPORT_SYMBOL.*(next_zone)" "$LINUX_OBJ/$file" 2>/dev/null
36b313da
BB
20887 rc=$?
20888 if test $rc -eq 0; then
20889 export=1
20890 break;
20891 fi
20892 done
20893 if test $export -eq 0; then
20894 echo "$as_me:$LINENO: result: no" >&5
20895echo "${ECHO_T}no" >&6
20896
20897 else
20898 echo "$as_me:$LINENO: result: yes" >&5
20899echo "${ECHO_T}yes" >&6
20900
20901cat >>confdefs.h <<\_ACEOF
20902#define HAVE_NEXT_ZONE 1
20903_ACEOF
20904
20905 fi
20906 else
20907 echo "$as_me:$LINENO: result: yes" >&5
20908echo "${ECHO_T}yes" >&6
20909
20910cat >>confdefs.h <<\_ACEOF
20911#define HAVE_NEXT_ZONE 1
20912_ACEOF
20913
20914 fi
20915
20916
20917
4ab13d3b
BB
20918 echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
20919echo $ECHO_N "checking whether symbol get_zone_counts is exported... $ECHO_C" >&6
d1ff2312 20920 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' $LINUX_OBJ/Module.symvers 2>/dev/null
4ab13d3b
BB
20921 rc=$?
20922 if test $rc -ne 0; then
20923 export=0
20924 for file in ; do
d1ff2312 20925 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" "$LINUX_OBJ/$file" 2>/dev/null
4ab13d3b
BB
20926 rc=$?
20927 if test $rc -eq 0; then
20928 export=1
20929 break;
20930 fi
20931 done
20932 if test $export -eq 0; then
20933 echo "$as_me:$LINENO: result: no" >&5
20934echo "${ECHO_T}no" >&6
20935
20936 else
20937 echo "$as_me:$LINENO: result: yes" >&5
20938echo "${ECHO_T}yes" >&6
20939
20940cat >>confdefs.h <<\_ACEOF
20941#define HAVE_GET_ZONE_COUNTS 1
20942_ACEOF
20943
20944 fi
20945 else
20946 echo "$as_me:$LINENO: result: yes" >&5
20947echo "${ECHO_T}yes" >&6
20948
20949cat >>confdefs.h <<\_ACEOF
20950#define HAVE_GET_ZONE_COUNTS 1
20951_ACEOF
20952
20953 fi
96dded38
BB
20954
20955
20956
20957 echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
20958echo $ECHO_N "checking whether global_page_state() is available... $ECHO_C" >&6
20959
20960
20961cat >conftest.c <<_ACEOF
20962/* confdefs.h. */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
20966/* end confdefs.h. */
20967
20968
20969 #include <linux/vmstat.h>
20970
20971int
20972main (void)
20973{
20974
20975 unsigned long state;
20976 state = global_page_state(NR_FREE_PAGES);
20977
20978 ;
20979 return 0;
20980}
20981
20982_ACEOF
20983
20984
20985 rm -Rf build && mkdir -p build
20986 echo "obj-m := conftest.o" >build/Makefile
20987 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; }; then
20998
20999 echo "$as_me:$LINENO: result: yes" >&5
21000echo "${ECHO_T}yes" >&6
21001
21002cat >>confdefs.h <<\_ACEOF
21003#define HAVE_GLOBAL_PAGE_STATE 1
21004_ACEOF
21005
21006
21007else
21008 echo "$as_me: failed program was:" >&5
21009sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 echo "$as_me:$LINENO: result: no" >&5
21012echo "${ECHO_T}no" >&6
21013
21014
21015
21016fi
21017
21018 rm -Rf build
21019
4ab13d3b
BB
21020
21021
21022
e11d6c5f
BB
21023 echo "$as_me:$LINENO: checking whether free/inactive/active page state is available" >&5
21024echo $ECHO_N "checking whether free/inactive/active page state is available... $ECHO_C" >&6
21025
21026
21027cat >conftest.c <<_ACEOF
21028/* confdefs.h. */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h. */
21033
21034
21035 #include <linux/mmzone.h>
21036
21037int
21038main (void)
21039{
21040
21041 enum zone_stat_item i1, i2, i3;
21042 i1 = NR_FREE_PAGES;
21043 i2 = NR_INACTIVE;
21044 i3 = NR_ACTIVE;
21045
21046 ;
21047 return 0;
21048}
21049
21050_ACEOF
21051
21052
21053 rm -Rf build && mkdir -p build
21054 echo "obj-m := conftest.o" >build/Makefile
bf338d8d 21055 if { ac_try='cp conftest.c build && make modules LINUXINCLUDE="-Iinclude -Iinclude2 -I$LINUX/include -include include/linux/autoconf.h" -o tmp_include_depends -o scripts -o include/config/MARKER -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066
21067 echo "$as_me:$LINENO: result: yes" >&5
21068echo "${ECHO_T}yes" >&6
21069
21070cat >>confdefs.h <<\_ACEOF
21071#define HAVE_ZONE_STAT_ITEM_FIA 1
21072_ACEOF
21073
21074
21075else
21076 echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 echo "$as_me:$LINENO: result: no" >&5
21080echo "${ECHO_T}no" >&6
21081
21082
21083
21084fi
21085
21086 rm -Rf build
21087
21088
21089
21090
c5f70460 21091 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec"
bf9f3bac 21092
21093
21094cat >confcache <<\_ACEOF
21095# This file is a shell script that caches the results of configure
21096# tests run on this system so they can be shared between configure
21097# scripts and configure runs, see configure's option --config-cache.
21098# It is not useful on other systems. If it contains results you don't
21099# want to keep, you may remove or edit it.
21100#
21101# config.status only pays attention to the cache file if you give it
21102# the --recheck option to rerun configure.
21103#
21104# `ac_cv_env_foo' variables (set or unset) will be overridden when
21105# loading this file, other *unset* `ac_cv_foo' will be assigned the
21106# following values.
21107
21108_ACEOF
21109
21110# The following way of writing the cache mishandles newlines in values,
21111# but we know of no workaround that is simple, portable, and efficient.
21112# So, don't put newlines in cache variables' values.
21113# Ultrix sh set writes to stderr and can't be redirected directly,
21114# and sets the high bit in the cache file unless we assign to the vars.
21115{
21116 (set) 2>&1 |
21117 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21118 *ac_space=\ *)
21119 # `set' does not quote correctly, so add quotes (double-quote
21120 # substitution turns \\\\ into \\, and sed turns \\ into \).
21121 sed -n \
21122 "s/'/'\\\\''/g;
21123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21124 ;;
21125 *)
21126 # `set' quotes correctly as required by POSIX, so do not add quotes.
21127 sed -n \
21128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21129 ;;
21130 esac;
21131} |
21132 sed '
21133 t clear
21134 : clear
21135 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21136 t end
21137 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21138 : end' >>confcache
21139if diff $cache_file confcache >/dev/null 2>&1; then :; else
21140 if test -w $cache_file; then
21141 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21142 cat confcache >$cache_file
21143 else
21144 echo "not updating unwritable cache $cache_file"
21145 fi
21146fi
21147rm -f confcache
21148
21149test "x$prefix" = xNONE && prefix=$ac_default_prefix
21150# Let make expand exec_prefix.
21151test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21152
21153# VPATH may cause trouble with some makes, so we remove $(srcdir),
21154# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21155# trailing colons and then remove the whole line if VPATH becomes empty
21156# (actually we leave an empty line to preserve line numbers).
21157if test "x$srcdir" = x.; then
21158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21159s/:*\$(srcdir):*/:/;
21160s/:*\${srcdir}:*/:/;
21161s/:*@srcdir@:*/:/;
21162s/^\([^=]*=[ ]*\):*/\1/;
21163s/:*$//;
21164s/^[^=]*=[ ]*$//;
21165}'
21166fi
21167
21168DEFS=-DHAVE_CONFIG_H
21169
21170ac_libobjs=
21171ac_ltlibobjs=
21172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21173 # 1. Remove the extension, and $U if already installed.
21174 ac_i=`echo "$ac_i" |
21175 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21176 # 2. Add them.
21177 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21178 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21179done
21180LIBOBJS=$ac_libobjs
21181
21182LTLIBOBJS=$ac_ltlibobjs
21183
21184
21185if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21186 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21187Usually this means the macro was only invoked conditionally." >&5
21188echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21189Usually this means the macro was only invoked conditionally." >&2;}
21190 { (exit 1); exit 1; }; }
21191fi
21192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21193 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21194Usually this means the macro was only invoked conditionally." >&5
21195echo "$as_me: error: conditional \"AMDEP\" was never defined.
21196Usually this means the macro was only invoked conditionally." >&2;}
21197 { (exit 1); exit 1; }; }
21198fi
21199if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21200 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21201Usually this means the macro was only invoked conditionally." >&5
21202echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21203Usually this means the macro was only invoked conditionally." >&2;}
21204 { (exit 1); exit 1; }; }
21205fi
21206if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21207 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21208Usually this means the macro was only invoked conditionally." >&5
21209echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21210Usually this means the macro was only invoked conditionally." >&2;}
21211 { (exit 1); exit 1; }; }
21212fi
21213
21214: ${CONFIG_STATUS=./config.status}
21215ac_clean_files_save=$ac_clean_files
21216ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21217{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21218echo "$as_me: creating $CONFIG_STATUS" >&6;}
21219cat >$CONFIG_STATUS <<_ACEOF
21220#! $SHELL
21221# Generated by $as_me.
21222# Run this file to recreate the current configuration.
21223# Compiler output produced by configure, useful for debugging
21224# configure, is in config.log if it exists.
21225
21226debug=false
21227ac_cs_recheck=false
21228ac_cs_silent=false
21229SHELL=\${CONFIG_SHELL-$SHELL}
21230_ACEOF
21231
21232cat >>$CONFIG_STATUS <<\_ACEOF
21233## --------------------- ##
21234## M4sh Initialization. ##
21235## --------------------- ##
21236
21237# Be Bourne compatible
21238if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21239 emulate sh
21240 NULLCMD=:
21241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21242 # is contrary to our usage. Disable this feature.
21243 alias -g '${1+"$@"}'='"$@"'
21244elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21245 set -o posix
21246fi
21247DUALCASE=1; export DUALCASE # for MKS sh
21248
21249# Support unset when possible.
21250if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21251 as_unset=unset
21252else
21253 as_unset=false
21254fi
21255
21256
21257# Work around bugs in pre-3.0 UWIN ksh.
21258$as_unset ENV MAIL MAILPATH
21259PS1='$ '
21260PS2='> '
21261PS4='+ '
21262
21263# NLS nuisances.
21264for as_var in \
21265 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21266 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21267 LC_TELEPHONE LC_TIME
21268do
21269 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21270 eval $as_var=C; export $as_var
21271 else
21272 $as_unset $as_var
21273 fi
21274done
21275
21276# Required to use basename.
21277if expr a : '\(a\)' >/dev/null 2>&1; then
21278 as_expr=expr
21279else
21280 as_expr=false
21281fi
21282
21283if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21284 as_basename=basename
21285else
21286 as_basename=false
21287fi
21288
21289
21290# Name of the executable.
21291as_me=`$as_basename "$0" ||
21292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21293 X"$0" : 'X\(//\)$' \| \
21294 X"$0" : 'X\(/\)$' \| \
21295 . : '\(.\)' 2>/dev/null ||
21296echo X/"$0" |
21297 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21298 /^X\/\(\/\/\)$/{ s//\1/; q; }
21299 /^X\/\(\/\).*/{ s//\1/; q; }
21300 s/.*/./; q'`
21301
21302
21303# PATH needs CR, and LINENO needs CR and PATH.
21304# Avoid depending upon Character Ranges.
21305as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308as_cr_digits='0123456789'
21309as_cr_alnum=$as_cr_Letters$as_cr_digits
21310
21311# The user is always right.
21312if test "${PATH_SEPARATOR+set}" != set; then
21313 echo "#! /bin/sh" >conf$$.sh
21314 echo "exit 0" >>conf$$.sh
21315 chmod +x conf$$.sh
21316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21317 PATH_SEPARATOR=';'
21318 else
21319 PATH_SEPARATOR=:
21320 fi
21321 rm -f conf$$.sh
21322fi
21323
21324
21325 as_lineno_1=$LINENO
21326 as_lineno_2=$LINENO
21327 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21328 test "x$as_lineno_1" != "x$as_lineno_2" &&
21329 test "x$as_lineno_3" = "x$as_lineno_2" || {
21330 # Find who we are. Look in the path if we contain no path at all
21331 # relative or not.
21332 case $0 in
21333 *[\\/]* ) as_myself=$0 ;;
21334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21335for as_dir in $PATH
21336do
21337 IFS=$as_save_IFS
21338 test -z "$as_dir" && as_dir=.
21339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21340done
21341
21342 ;;
21343 esac
21344 # We did not find ourselves, most probably we were run as `sh COMMAND'
21345 # in which case we are not to be found in the path.
21346 if test "x$as_myself" = x; then
21347 as_myself=$0
21348 fi
21349 if test ! -f "$as_myself"; then
21350 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21351echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21352 { (exit 1); exit 1; }; }
21353 fi
21354 case $CONFIG_SHELL in
21355 '')
21356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21357for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21358do
21359 IFS=$as_save_IFS
21360 test -z "$as_dir" && as_dir=.
21361 for as_base in sh bash ksh sh5; do
21362 case $as_dir in
21363 /*)
21364 if ("$as_dir/$as_base" -c '
21365 as_lineno_1=$LINENO
21366 as_lineno_2=$LINENO
21367 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21368 test "x$as_lineno_1" != "x$as_lineno_2" &&
21369 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21370 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21371 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21372 CONFIG_SHELL=$as_dir/$as_base
21373 export CONFIG_SHELL
21374 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21375 fi;;
21376 esac
21377 done
21378done
21379;;
21380 esac
21381
21382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21383 # uniformly replaced by the line number. The first 'sed' inserts a
21384 # line-number line before each line; the second 'sed' does the real
21385 # work. The second script uses 'N' to pair each line-number line
21386 # with the numbered line, and appends trailing '-' during
21387 # substitution so that $LINENO is not a special case at line end.
21388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21389 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21390 sed '=' <$as_myself |
21391 sed '
21392 N
21393 s,$,-,
21394 : loop
21395 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21396 t loop
21397 s,-$,,
21398 s,^['$as_cr_digits']*\n,,
21399 ' >$as_me.lineno &&
21400 chmod +x $as_me.lineno ||
21401 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21402echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21403 { (exit 1); exit 1; }; }
21404
21405 # Don't try to exec as it changes $[0], causing all sort of problems
21406 # (the dirname of $[0] is not the place where we might find the
21407 # original and so on. Autoconf is especially sensible to this).
21408 . ./$as_me.lineno
21409 # Exit status is that of the last command.
21410 exit
21411}
21412
21413
21414case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21415 *c*,-n*) ECHO_N= ECHO_C='
21416' ECHO_T=' ' ;;
21417 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21418 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21419esac
21420
21421if expr a : '\(a\)' >/dev/null 2>&1; then
21422 as_expr=expr
21423else
21424 as_expr=false
21425fi
21426
21427rm -f conf$$ conf$$.exe conf$$.file
21428echo >conf$$.file
21429if ln -s conf$$.file conf$$ 2>/dev/null; then
21430 # We could just check for DJGPP; but this test a) works b) is more generic
21431 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21432 if test -f conf$$.exe; then
21433 # Don't use ln at all; we don't have any links
21434 as_ln_s='cp -p'
21435 else
21436 as_ln_s='ln -s'
21437 fi
21438elif ln conf$$.file conf$$ 2>/dev/null; then
21439 as_ln_s=ln
21440else
21441 as_ln_s='cp -p'
21442fi
21443rm -f conf$$ conf$$.exe conf$$.file
21444
21445if mkdir -p . 2>/dev/null; then
21446 as_mkdir_p=:
21447else
21448 test -d ./-p && rmdir ./-p
21449 as_mkdir_p=false
21450fi
21451
21452as_executable_p="test -f"
21453
21454# Sed expression to map a string onto a valid CPP name.
21455as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21456
21457# Sed expression to map a string onto a valid variable name.
21458as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21459
21460
21461# IFS
21462# We need space, tab and new line, in precisely that order.
21463as_nl='
21464'
21465IFS=" $as_nl"
21466
21467# CDPATH.
21468$as_unset CDPATH
21469
21470exec 6>&1
21471
21472# Open the log real soon, to keep \$[0] and so on meaningful, and to
21473# report actual input values of CONFIG_FILES etc. instead of their
21474# values after options handling. Logging --version etc. is OK.
21475exec 5>>config.log
21476{
21477 echo
21478 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21479## Running $as_me. ##
21480_ASBOX
21481} >&5
21482cat >&5 <<_CSEOF
21483
21484This file was extended by $as_me, which was
21485generated by GNU Autoconf 2.59. Invocation command line was
21486
21487 CONFIG_FILES = $CONFIG_FILES
21488 CONFIG_HEADERS = $CONFIG_HEADERS
21489 CONFIG_LINKS = $CONFIG_LINKS
21490 CONFIG_COMMANDS = $CONFIG_COMMANDS
21491 $ $0 $@
21492
21493_CSEOF
21494echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21495echo >&5
21496_ACEOF
21497
21498# Files that config.status was made for.
21499if test -n "$ac_config_files"; then
21500 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21501fi
21502
21503if test -n "$ac_config_headers"; then
21504 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21505fi
21506
21507if test -n "$ac_config_links"; then
21508 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21509fi
21510
21511if test -n "$ac_config_commands"; then
21512 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21513fi
21514
21515cat >>$CONFIG_STATUS <<\_ACEOF
21516
21517ac_cs_usage="\
21518\`$as_me' instantiates files from templates according to the
21519current configuration.
21520
21521Usage: $0 [OPTIONS] [FILE]...
21522
21523 -h, --help print this help, then exit
21524 -V, --version print version number, then exit
21525 -q, --quiet do not print progress messages
21526 -d, --debug don't remove temporary files
21527 --recheck update $as_me by reconfiguring in the same conditions
21528 --file=FILE[:TEMPLATE]
21529 instantiate the configuration file FILE
21530 --header=FILE[:TEMPLATE]
21531 instantiate the configuration header FILE
21532
21533Configuration files:
21534$config_files
21535
21536Configuration headers:
21537$config_headers
21538
21539Configuration commands:
21540$config_commands
21541
21542Report bugs to <bug-autoconf@gnu.org>."
21543_ACEOF
21544
21545cat >>$CONFIG_STATUS <<_ACEOF
21546ac_cs_version="\\
21547config.status
21548configured by $0, generated by GNU Autoconf 2.59,
21549 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21550
21551Copyright (C) 2003 Free Software Foundation, Inc.
21552This config.status script is free software; the Free Software Foundation
21553gives unlimited permission to copy, distribute and modify it."
21554srcdir=$srcdir
21555INSTALL="$INSTALL"
21556_ACEOF
21557
21558cat >>$CONFIG_STATUS <<\_ACEOF
21559# If no file are specified by the user, then we need to provide default
21560# value. By we need to know if files were specified by the user.
21561ac_need_defaults=:
21562while test $# != 0
21563do
21564 case $1 in
21565 --*=*)
21566 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21567 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21568 ac_shift=:
21569 ;;
21570 -*)
21571 ac_option=$1
21572 ac_optarg=$2
21573 ac_shift=shift
21574 ;;
21575 *) # This is not an option, so the user has probably given explicit
21576 # arguments.
21577 ac_option=$1
21578 ac_need_defaults=false;;
21579 esac
21580
21581 case $ac_option in
21582 # Handling of the options.
21583_ACEOF
21584cat >>$CONFIG_STATUS <<\_ACEOF
21585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21586 ac_cs_recheck=: ;;
21587 --version | --vers* | -V )
21588 echo "$ac_cs_version"; exit 0 ;;
21589 --he | --h)
21590 # Conflict between --help and --header
21591 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21592Try \`$0 --help' for more information." >&5
21593echo "$as_me: error: ambiguous option: $1
21594Try \`$0 --help' for more information." >&2;}
21595 { (exit 1); exit 1; }; };;
21596 --help | --hel | -h )
21597 echo "$ac_cs_usage"; exit 0 ;;
21598 --debug | --d* | -d )
21599 debug=: ;;
21600 --file | --fil | --fi | --f )
21601 $ac_shift
21602 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21603 ac_need_defaults=false;;
21604 --header | --heade | --head | --hea )
21605 $ac_shift
21606 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21607 ac_need_defaults=false;;
21608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21610 ac_cs_silent=: ;;
21611
21612 # This is an error.
21613 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21614Try \`$0 --help' for more information." >&5
21615echo "$as_me: error: unrecognized option: $1
21616Try \`$0 --help' for more information." >&2;}
21617 { (exit 1); exit 1; }; } ;;
21618
21619 *) ac_config_targets="$ac_config_targets $1" ;;
21620
21621 esac
21622 shift
21623done
21624
21625ac_configure_extra_args=
21626
21627if $ac_cs_silent; then
21628 exec 6>/dev/null
21629 ac_configure_extra_args="$ac_configure_extra_args --silent"
21630fi
21631
21632_ACEOF
21633cat >>$CONFIG_STATUS <<_ACEOF
21634if \$ac_cs_recheck; then
21635 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21636 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21637fi
21638
21639_ACEOF
21640
21641cat >>$CONFIG_STATUS <<_ACEOF
21642#
21643# INIT-COMMANDS section.
21644#
21645
21646AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21647
21648_ACEOF
21649
21650
21651
21652cat >>$CONFIG_STATUS <<\_ACEOF
21653for ac_config_target in $ac_config_targets
21654do
21655 case "$ac_config_target" in
21656 # Handling of arguments.
21657 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21658 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21659 "cmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
617d5a67
BB
21660 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21661 "module/spl/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21662 "module/splat/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
bf9f3bac 21663 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
bf9f3bac 21664 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
c5f70460 21665 "spl.spec" ) CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
bf9f3bac 21666 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21667 "spl_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21668 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21669echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21670 { (exit 1); exit 1; }; };;
21671 esac
21672done
21673
21674# If the user did not use the arguments to specify the items to instantiate,
21675# then the envvar interface is used. Set only those that are not.
21676# We use the long form for the default assignment because of an extremely
21677# bizarre bug on SunOS 4.1.3.
21678if $ac_need_defaults; then
21679 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21680 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21682fi
21683
21684# Have a temporary directory for convenience. Make it in the build tree
21685# simply because there is no reason to put it here, and in addition,
21686# creating and moving files from /tmp can sometimes cause problems.
21687# Create a temporary directory, and hook for its removal unless debugging.
21688$debug ||
21689{
21690 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21691 trap '{ (exit 1); exit 1; }' 1 2 13 15
21692}
21693
21694# Create a (secure) tmp directory for tmp files.
21695
21696{
21697 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21698 test -n "$tmp" && test -d "$tmp"
21699} ||
21700{
21701 tmp=./confstat$$-$RANDOM
21702 (umask 077 && mkdir $tmp)
21703} ||
21704{
21705 echo "$me: cannot create a temporary directory in ." >&2
21706 { (exit 1); exit 1; }
21707}
21708
21709_ACEOF
21710
21711cat >>$CONFIG_STATUS <<_ACEOF
21712
21713#
21714# CONFIG_FILES section.
21715#
21716
21717# No need to generate the scripts if there are no CONFIG_FILES.
21718# This happens for instance when ./config.status config.h
21719if test -n "\$CONFIG_FILES"; then
21720 # Protect against being on the right side of a sed subst in config.status.
21721 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21722 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21723s,@SHELL@,$SHELL,;t t
21724s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21725s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21726s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21727s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21728s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21729s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21730s,@exec_prefix@,$exec_prefix,;t t
21731s,@prefix@,$prefix,;t t
21732s,@program_transform_name@,$program_transform_name,;t t
21733s,@bindir@,$bindir,;t t
21734s,@sbindir@,$sbindir,;t t
21735s,@libexecdir@,$libexecdir,;t t
21736s,@datadir@,$datadir,;t t
21737s,@sysconfdir@,$sysconfdir,;t t
21738s,@sharedstatedir@,$sharedstatedir,;t t
21739s,@localstatedir@,$localstatedir,;t t
21740s,@libdir@,$libdir,;t t
21741s,@includedir@,$includedir,;t t
21742s,@oldincludedir@,$oldincludedir,;t t
21743s,@infodir@,$infodir,;t t
21744s,@mandir@,$mandir,;t t
21745s,@build_alias@,$build_alias,;t t
21746s,@host_alias@,$host_alias,;t t
21747s,@target_alias@,$target_alias,;t t
21748s,@DEFS@,$DEFS,;t t
21749s,@ECHO_C@,$ECHO_C,;t t
21750s,@ECHO_N@,$ECHO_N,;t t
21751s,@ECHO_T@,$ECHO_T,;t t
21752s,@LIBS@,$LIBS,;t t
abc3ca14
BB
21753s,@SPL_META_NAME@,$SPL_META_NAME,;t t
21754s,@SPL_META_VERSION@,$SPL_META_VERSION,;t t
21755s,@SPL_META_RELEASE@,$SPL_META_RELEASE,;t t
72e7de60 21756s,@SPL_META_ALIAS@,$SPL_META_ALIAS,;t t
abc3ca14
BB
21757s,@SPL_META_DATA@,$SPL_META_DATA,;t t
21758s,@SPL_META_AUTHOR@,$SPL_META_AUTHOR,;t t
21759s,@SPL_META_LT_CURRENT@,$SPL_META_LT_CURRENT,;t t
21760s,@SPL_META_LT_REVISION@,$SPL_META_LT_REVISION,;t t
21761s,@SPL_META_LT_AGE@,$SPL_META_LT_AGE,;t t
bf9f3bac 21762s,@build@,$build,;t t
21763s,@build_cpu@,$build_cpu,;t t
21764s,@build_vendor@,$build_vendor,;t t
21765s,@build_os@,$build_os,;t t
21766s,@host@,$host,;t t
21767s,@host_cpu@,$host_cpu,;t t
21768s,@host_vendor@,$host_vendor,;t t
21769s,@host_os@,$host_os,;t t
21770s,@target@,$target,;t t
21771s,@target_cpu@,$target_cpu,;t t
21772s,@target_vendor@,$target_vendor,;t t
21773s,@target_os@,$target_os,;t t
21774s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21775s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21776s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21777s,@CYGPATH_W@,$CYGPATH_W,;t t
21778s,@PACKAGE@,$PACKAGE,;t t
21779s,@VERSION@,$VERSION,;t t
21780s,@ACLOCAL@,$ACLOCAL,;t t
21781s,@AUTOCONF@,$AUTOCONF,;t t
21782s,@AUTOMAKE@,$AUTOMAKE,;t t
21783s,@AUTOHEADER@,$AUTOHEADER,;t t
21784s,@MAKEINFO@,$MAKEINFO,;t t
21785s,@install_sh@,$install_sh,;t t
21786s,@STRIP@,$STRIP,;t t
21787s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21788s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21789s,@mkdir_p@,$mkdir_p,;t t
21790s,@AWK@,$AWK,;t t
21791s,@SET_MAKE@,$SET_MAKE,;t t
21792s,@am__leading_dot@,$am__leading_dot,;t t
21793s,@AMTAR@,$AMTAR,;t t
21794s,@am__tar@,$am__tar,;t t
21795s,@am__untar@,$am__untar,;t t
21796s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21797s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21798s,@MAINT@,$MAINT,;t t
21799s,@CC@,$CC,;t t
21800s,@CFLAGS@,$CFLAGS,;t t
21801s,@LDFLAGS@,$LDFLAGS,;t t
21802s,@CPPFLAGS@,$CPPFLAGS,;t t
21803s,@ac_ct_CC@,$ac_ct_CC,;t t
21804s,@EXEEXT@,$EXEEXT,;t t
21805s,@OBJEXT@,$OBJEXT,;t t
21806s,@DEPDIR@,$DEPDIR,;t t
21807s,@am__include@,$am__include,;t t
21808s,@am__quote@,$am__quote,;t t
21809s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21810s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21811s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21812s,@CCDEPMODE@,$CCDEPMODE,;t t
21813s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21814s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21815s,@SED@,$SED,;t t
21816s,@EGREP@,$EGREP,;t t
21817s,@LN_S@,$LN_S,;t t
21818s,@ECHO@,$ECHO,;t t
21819s,@AR@,$AR,;t t
21820s,@ac_ct_AR@,$ac_ct_AR,;t t
21821s,@RANLIB@,$RANLIB,;t t
21822s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21823s,@CPP@,$CPP,;t t
21824s,@CXX@,$CXX,;t t
21825s,@CXXFLAGS@,$CXXFLAGS,;t t
21826s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21827s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21828s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21829s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21830s,@CXXCPP@,$CXXCPP,;t t
21831s,@F77@,$F77,;t t
21832s,@FFLAGS@,$FFLAGS,;t t
21833s,@ac_ct_F77@,$ac_ct_F77,;t t
21834s,@LIBTOOL@,$LIBTOOL,;t t
21835s,@LINUX@,$LINUX,;t t
21836s,@LINUX_OBJ@,$LINUX_OBJ,;t t
c5f70460 21837s,@LINUX_VERSION@,$LINUX_VERSION,;t t
bf9f3bac 21838s,@KERNELMAKE_PARAMS@,$KERNELMAKE_PARAMS,;t t
21839s,@KERNELCPPFLAGS@,$KERNELCPPFLAGS,;t t
21840s,@KERNELCFLAGS@,$KERNELCFLAGS,;t t
21841s,@LIBOBJS@,$LIBOBJS,;t t
21842s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21843CEOF
21844
21845_ACEOF
21846
21847 cat >>$CONFIG_STATUS <<\_ACEOF
21848 # Split the substitutions into bite-sized pieces for seds with
21849 # small command number limits, like on Digital OSF/1 and HP-UX.
21850 ac_max_sed_lines=48
21851 ac_sed_frag=1 # Number of current file.
21852 ac_beg=1 # First line for current file.
21853 ac_end=$ac_max_sed_lines # Line after last line for current file.
21854 ac_more_lines=:
21855 ac_sed_cmds=
21856 while $ac_more_lines; do
21857 if test $ac_beg -gt 1; then
21858 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21859 else
21860 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21861 fi
21862 if test ! -s $tmp/subs.frag; then
21863 ac_more_lines=false
21864 else
21865 # The purpose of the label and of the branching condition is to
21866 # speed up the sed processing (if there are no `@' at all, there
21867 # is no need to browse any of the substitutions).
21868 # These are the two extra sed commands mentioned above.
21869 (echo ':t
21870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21871 if test -z "$ac_sed_cmds"; then
21872 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21873 else
21874 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21875 fi
21876 ac_sed_frag=`expr $ac_sed_frag + 1`
21877 ac_beg=$ac_end
21878 ac_end=`expr $ac_end + $ac_max_sed_lines`
21879 fi
21880 done
21881 if test -z "$ac_sed_cmds"; then
21882 ac_sed_cmds=cat
21883 fi
21884fi # test -n "$CONFIG_FILES"
21885
21886_ACEOF
21887cat >>$CONFIG_STATUS <<\_ACEOF
21888for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21890 case $ac_file in
21891 - | *:- | *:-:* ) # input from stdin
21892 cat >$tmp/stdin
21893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21897 * ) ac_file_in=$ac_file.in ;;
21898 esac
21899
21900 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21901 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21902$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21903 X"$ac_file" : 'X\(//\)[^/]' \| \
21904 X"$ac_file" : 'X\(//\)$' \| \
21905 X"$ac_file" : 'X\(/\)' \| \
21906 . : '\(.\)' 2>/dev/null ||
21907echo X"$ac_file" |
21908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21910 /^X\(\/\/\)$/{ s//\1/; q; }
21911 /^X\(\/\).*/{ s//\1/; q; }
21912 s/.*/./; q'`
21913 { if $as_mkdir_p; then
21914 mkdir -p "$ac_dir"
21915 else
21916 as_dir="$ac_dir"
21917 as_dirs=
21918 while test ! -d "$as_dir"; do
21919 as_dirs="$as_dir $as_dirs"
21920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21921$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21922 X"$as_dir" : 'X\(//\)[^/]' \| \
21923 X"$as_dir" : 'X\(//\)$' \| \
21924 X"$as_dir" : 'X\(/\)' \| \
21925 . : '\(.\)' 2>/dev/null ||
21926echo X"$as_dir" |
21927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21929 /^X\(\/\/\)$/{ s//\1/; q; }
21930 /^X\(\/\).*/{ s//\1/; q; }
21931 s/.*/./; q'`
21932 done
21933 test ! -n "$as_dirs" || mkdir $as_dirs
21934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21935echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21936 { (exit 1); exit 1; }; }; }
21937
21938 ac_builddir=.
21939
21940if test "$ac_dir" != .; then
21941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21942 # A "../" for each directory in $ac_dir_suffix.
21943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21944else
21945 ac_dir_suffix= ac_top_builddir=
21946fi
21947
21948case $srcdir in
21949 .) # No --srcdir option. We are building in place.
21950 ac_srcdir=.
21951 if test -z "$ac_top_builddir"; then
21952 ac_top_srcdir=.
21953 else
21954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21955 fi ;;
21956 [\\/]* | ?:[\\/]* ) # Absolute path.
21957 ac_srcdir=$srcdir$ac_dir_suffix;
21958 ac_top_srcdir=$srcdir ;;
21959 *) # Relative path.
21960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21962esac
21963
21964# Do not use `cd foo && pwd` to compute absolute paths, because
21965# the directories may not exist.
21966case `pwd` in
21967.) ac_abs_builddir="$ac_dir";;
21968*)
21969 case "$ac_dir" in
21970 .) ac_abs_builddir=`pwd`;;
21971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21973 esac;;
21974esac
21975case $ac_abs_builddir in
21976.) ac_abs_top_builddir=${ac_top_builddir}.;;
21977*)
21978 case ${ac_top_builddir}. in
21979 .) ac_abs_top_builddir=$ac_abs_builddir;;
21980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21982 esac;;
21983esac
21984case $ac_abs_builddir in
21985.) ac_abs_srcdir=$ac_srcdir;;
21986*)
21987 case $ac_srcdir in
21988 .) ac_abs_srcdir=$ac_abs_builddir;;
21989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21991 esac;;
21992esac
21993case $ac_abs_builddir in
21994.) ac_abs_top_srcdir=$ac_top_srcdir;;
21995*)
21996 case $ac_top_srcdir in
21997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22000 esac;;
22001esac
22002
22003
22004 case $INSTALL in
22005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22006 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22007 esac
22008
22009 if test x"$ac_file" != x-; then
22010 { echo "$as_me:$LINENO: creating $ac_file" >&5
22011echo "$as_me: creating $ac_file" >&6;}
22012 rm -f "$ac_file"
22013 fi
22014 # Let's still pretend it is `configure' which instantiates (i.e., don't
22015 # use $as_me), people would be surprised to read:
22016 # /* config.h. Generated by config.status. */
22017 if test x"$ac_file" = x-; then
22018 configure_input=
22019 else
22020 configure_input="$ac_file. "
22021 fi
22022 configure_input=$configure_input"Generated from `echo $ac_file_in |
22023 sed 's,.*/,,'` by configure."
22024
22025 # First look for the input files in the build tree, otherwise in the
22026 # src tree.
22027 ac_file_inputs=`IFS=:
22028 for f in $ac_file_in; do
22029 case $f in
22030 -) echo $tmp/stdin ;;
22031 [\\/$]*)
22032 # Absolute (can't be DOS-style, as IFS=:)
22033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22034echo "$as_me: error: cannot find input file: $f" >&2;}
22035 { (exit 1); exit 1; }; }
22036 echo "$f";;
22037 *) # Relative
22038 if test -f "$f"; then
22039 # Build tree
22040 echo "$f"
22041 elif test -f "$srcdir/$f"; then
22042 # Source tree
22043 echo "$srcdir/$f"
22044 else
22045 # /dev/null tree
22046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22047echo "$as_me: error: cannot find input file: $f" >&2;}
22048 { (exit 1); exit 1; }; }
22049 fi;;
22050 esac
22051 done` || { (exit 1); exit 1; }
22052_ACEOF
22053cat >>$CONFIG_STATUS <<_ACEOF
22054 sed "$ac_vpsub
22055$extrasub
22056_ACEOF
22057cat >>$CONFIG_STATUS <<\_ACEOF
22058:t
22059/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22060s,@configure_input@,$configure_input,;t t
22061s,@srcdir@,$ac_srcdir,;t t
22062s,@abs_srcdir@,$ac_abs_srcdir,;t t
22063s,@top_srcdir@,$ac_top_srcdir,;t t
22064s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22065s,@builddir@,$ac_builddir,;t t
22066s,@abs_builddir@,$ac_abs_builddir,;t t
22067s,@top_builddir@,$ac_top_builddir,;t t
22068s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22069s,@INSTALL@,$ac_INSTALL,;t t
22070" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22071 rm -f $tmp/stdin
22072 if test x"$ac_file" != x-; then
22073 mv $tmp/out $ac_file
22074 else
22075 cat $tmp/out
22076 rm -f $tmp/out
22077 fi
22078
22079done
22080_ACEOF
22081cat >>$CONFIG_STATUS <<\_ACEOF
22082
22083#
22084# CONFIG_HEADER section.
22085#
22086
22087# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22088# NAME is the cpp macro being defined and VALUE is the value it is being given.
22089#
22090# ac_d sets the value in "#define NAME VALUE" lines.
22091ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22092ac_dB='[ ].*$,\1#\2'
22093ac_dC=' '
22094ac_dD=',;t'
22095# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22096ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22097ac_uB='$,\1#\2define\3'
22098ac_uC=' '
22099ac_uD=',;t'
22100
22101for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22102 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22103 case $ac_file in
22104 - | *:- | *:-:* ) # input from stdin
22105 cat >$tmp/stdin
22106 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22108 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22109 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22110 * ) ac_file_in=$ac_file.in ;;
22111 esac
22112
22113 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22114echo "$as_me: creating $ac_file" >&6;}
22115
22116 # First look for the input files in the build tree, otherwise in the
22117 # src tree.
22118 ac_file_inputs=`IFS=:
22119 for f in $ac_file_in; do
22120 case $f in
22121 -) echo $tmp/stdin ;;
22122 [\\/$]*)
22123 # Absolute (can't be DOS-style, as IFS=:)
22124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22125echo "$as_me: error: cannot find input file: $f" >&2;}
22126 { (exit 1); exit 1; }; }
22127 # Do quote $f, to prevent DOS paths from being IFS'd.
22128 echo "$f";;
22129 *) # Relative
22130 if test -f "$f"; then
22131 # Build tree
22132 echo "$f"
22133 elif test -f "$srcdir/$f"; then
22134 # Source tree
22135 echo "$srcdir/$f"
22136 else
22137 # /dev/null tree
22138 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22139echo "$as_me: error: cannot find input file: $f" >&2;}
22140 { (exit 1); exit 1; }; }
22141 fi;;
22142 esac
22143 done` || { (exit 1); exit 1; }
22144 # Remove the trailing spaces.
22145 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22146
22147_ACEOF
22148
22149# Transform confdefs.h into two sed scripts, `conftest.defines' and
22150# `conftest.undefs', that substitutes the proper values into
22151# config.h.in to produce config.h. The first handles `#define'
22152# templates, and the second `#undef' templates.
22153# And first: Protect against being on the right side of a sed subst in
22154# config.status. Protect against being in an unquoted here document
22155# in config.status.
22156rm -f conftest.defines conftest.undefs
22157# Using a here document instead of a string reduces the quoting nightmare.
22158# Putting comments in sed scripts is not portable.
22159#
22160# `end' is used to avoid that the second main sed command (meant for
22161# 0-ary CPP macros) applies to n-ary macro definitions.
22162# See the Autoconf documentation for `clear'.
22163cat >confdef2sed.sed <<\_ACEOF
22164s/[\\&,]/\\&/g
22165s,[\\$`],\\&,g
22166t clear
22167: clear
22168s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22169t end
22170s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22171: end
22172_ACEOF
22173# If some macros were called several times there might be several times
22174# the same #defines, which is useless. Nevertheless, we may not want to
22175# sort them, since we want the *last* AC-DEFINE to be honored.
22176uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22177sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22178rm -f confdef2sed.sed
22179
22180# This sed command replaces #undef with comments. This is necessary, for
22181# example, in the case of _POSIX_SOURCE, which is predefined and required
22182# on some systems where configure will not decide to define it.
22183cat >>conftest.undefs <<\_ACEOF
22184s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22185_ACEOF
22186
22187# Break up conftest.defines because some shells have a limit on the size
22188# of here documents, and old seds have small limits too (100 cmds).
22189echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22190echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22191echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22192echo ' :' >>$CONFIG_STATUS
22193rm -f conftest.tail
22194while grep . conftest.defines >/dev/null
22195do
22196 # Write a limited-size here document to $tmp/defines.sed.
22197 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22198 # Speed up: don't consider the non `#define' lines.
22199 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22200 # Work around the forget-to-reset-the-flag bug.
22201 echo 't clr' >>$CONFIG_STATUS
22202 echo ': clr' >>$CONFIG_STATUS
22203 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22204 echo 'CEOF
22205 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22206 rm -f $tmp/in
22207 mv $tmp/out $tmp/in
22208' >>$CONFIG_STATUS
22209 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22210 rm -f conftest.defines
22211 mv conftest.tail conftest.defines
22212done
22213rm -f conftest.defines
22214echo ' fi # grep' >>$CONFIG_STATUS
22215echo >>$CONFIG_STATUS
22216
22217# Break up conftest.undefs because some shells have a limit on the size
22218# of here documents, and old seds have small limits too (100 cmds).
22219echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22220rm -f conftest.tail
22221while grep . conftest.undefs >/dev/null
22222do
22223 # Write a limited-size here document to $tmp/undefs.sed.
22224 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22225 # Speed up: don't consider the non `#undef'
22226 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22227 # Work around the forget-to-reset-the-flag bug.
22228 echo 't clr' >>$CONFIG_STATUS
22229 echo ': clr' >>$CONFIG_STATUS
22230 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22231 echo 'CEOF
22232 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22233 rm -f $tmp/in
22234 mv $tmp/out $tmp/in
22235' >>$CONFIG_STATUS
22236 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22237 rm -f conftest.undefs
22238 mv conftest.tail conftest.undefs
22239done
22240rm -f conftest.undefs
22241
22242cat >>$CONFIG_STATUS <<\_ACEOF
22243 # Let's still pretend it is `configure' which instantiates (i.e., don't
22244 # use $as_me), people would be surprised to read:
22245 # /* config.h. Generated by config.status. */
22246 if test x"$ac_file" = x-; then
22247 echo "/* Generated by configure. */" >$tmp/config.h
22248 else
22249 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22250 fi
22251 cat $tmp/in >>$tmp/config.h
22252 rm -f $tmp/in
22253 if test x"$ac_file" != x-; then
22254 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22255 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22256echo "$as_me: $ac_file is unchanged" >&6;}
22257 else
22258 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22259$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260 X"$ac_file" : 'X\(//\)[^/]' \| \
22261 X"$ac_file" : 'X\(//\)$' \| \
22262 X"$ac_file" : 'X\(/\)' \| \
22263 . : '\(.\)' 2>/dev/null ||
22264echo X"$ac_file" |
22265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22267 /^X\(\/\/\)$/{ s//\1/; q; }
22268 /^X\(\/\).*/{ s//\1/; q; }
22269 s/.*/./; q'`
22270 { if $as_mkdir_p; then
22271 mkdir -p "$ac_dir"
22272 else
22273 as_dir="$ac_dir"
22274 as_dirs=
22275 while test ! -d "$as_dir"; do
22276 as_dirs="$as_dir $as_dirs"
22277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22279 X"$as_dir" : 'X\(//\)[^/]' \| \
22280 X"$as_dir" : 'X\(//\)$' \| \
22281 X"$as_dir" : 'X\(/\)' \| \
22282 . : '\(.\)' 2>/dev/null ||
22283echo X"$as_dir" |
22284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22286 /^X\(\/\/\)$/{ s//\1/; q; }
22287 /^X\(\/\).*/{ s//\1/; q; }
22288 s/.*/./; q'`
22289 done
22290 test ! -n "$as_dirs" || mkdir $as_dirs
22291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22292echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22293 { (exit 1); exit 1; }; }; }
22294
22295 rm -f $ac_file
22296 mv $tmp/config.h $ac_file
22297 fi
22298 else
22299 cat $tmp/config.h
22300 rm -f $tmp/config.h
22301 fi
22302# Compute $ac_file's index in $config_headers.
22303_am_stamp_count=1
22304for _am_header in $config_headers :; do
22305 case $_am_header in
22306 $ac_file | $ac_file:* )
22307 break ;;
22308 * )
22309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22310 esac
22311done
22312echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22313$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314 X$ac_file : 'X\(//\)[^/]' \| \
22315 X$ac_file : 'X\(//\)$' \| \
22316 X$ac_file : 'X\(/\)' \| \
22317 . : '\(.\)' 2>/dev/null ||
22318echo X$ac_file |
22319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22320 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22321 /^X\(\/\/\)$/{ s//\1/; q; }
22322 /^X\(\/\).*/{ s//\1/; q; }
22323 s/.*/./; q'`/stamp-h$_am_stamp_count
22324done
22325_ACEOF
22326cat >>$CONFIG_STATUS <<\_ACEOF
22327
22328#
22329# CONFIG_COMMANDS section.
22330#
22331for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22332 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22333 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22334 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22335$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22336 X"$ac_dest" : 'X\(//\)[^/]' \| \
22337 X"$ac_dest" : 'X\(//\)$' \| \
22338 X"$ac_dest" : 'X\(/\)' \| \
22339 . : '\(.\)' 2>/dev/null ||
22340echo X"$ac_dest" |
22341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22343 /^X\(\/\/\)$/{ s//\1/; q; }
22344 /^X\(\/\).*/{ s//\1/; q; }
22345 s/.*/./; q'`
22346 { if $as_mkdir_p; then
22347 mkdir -p "$ac_dir"
22348 else
22349 as_dir="$ac_dir"
22350 as_dirs=
22351 while test ! -d "$as_dir"; do
22352 as_dirs="$as_dir $as_dirs"
22353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22355 X"$as_dir" : 'X\(//\)[^/]' \| \
22356 X"$as_dir" : 'X\(//\)$' \| \
22357 X"$as_dir" : 'X\(/\)' \| \
22358 . : '\(.\)' 2>/dev/null ||
22359echo X"$as_dir" |
22360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22362 /^X\(\/\/\)$/{ s//\1/; q; }
22363 /^X\(\/\).*/{ s//\1/; q; }
22364 s/.*/./; q'`
22365 done
22366 test ! -n "$as_dirs" || mkdir $as_dirs
22367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22368echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22369 { (exit 1); exit 1; }; }; }
22370
22371 ac_builddir=.
22372
22373if test "$ac_dir" != .; then
22374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22375 # A "../" for each directory in $ac_dir_suffix.
22376 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22377else
22378 ac_dir_suffix= ac_top_builddir=
22379fi
22380
22381case $srcdir in
22382 .) # No --srcdir option. We are building in place.
22383 ac_srcdir=.
22384 if test -z "$ac_top_builddir"; then
22385 ac_top_srcdir=.
22386 else
22387 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22388 fi ;;
22389 [\\/]* | ?:[\\/]* ) # Absolute path.
22390 ac_srcdir=$srcdir$ac_dir_suffix;
22391 ac_top_srcdir=$srcdir ;;
22392 *) # Relative path.
22393 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22394 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22395esac
22396
22397# Do not use `cd foo && pwd` to compute absolute paths, because
22398# the directories may not exist.
22399case `pwd` in
22400.) ac_abs_builddir="$ac_dir";;
22401*)
22402 case "$ac_dir" in
22403 .) ac_abs_builddir=`pwd`;;
22404 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22405 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22406 esac;;
22407esac
22408case $ac_abs_builddir in
22409.) ac_abs_top_builddir=${ac_top_builddir}.;;
22410*)
22411 case ${ac_top_builddir}. in
22412 .) ac_abs_top_builddir=$ac_abs_builddir;;
22413 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22414 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22415 esac;;
22416esac
22417case $ac_abs_builddir in
22418.) ac_abs_srcdir=$ac_srcdir;;
22419*)
22420 case $ac_srcdir in
22421 .) ac_abs_srcdir=$ac_abs_builddir;;
22422 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22423 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22424 esac;;
22425esac
22426case $ac_abs_builddir in
22427.) ac_abs_top_srcdir=$ac_top_srcdir;;
22428*)
22429 case $ac_top_srcdir in
22430 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22431 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22432 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22433 esac;;
22434esac
22435
22436
22437 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22438echo "$as_me: executing $ac_dest commands" >&6;}
22439 case $ac_dest in
22440 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22441 # Strip MF so we end up with the name of the file.
22442 mf=`echo "$mf" | sed -e 's/:.*$//'`
22443 # Check whether this is an Automake generated Makefile or not.
22444 # We used to match only the files named `Makefile.in', but
22445 # some people rename them; so instead we look at the file content.
22446 # Grep'ing the first line is not enough: some people post-process
22447 # each Makefile.in and add a new line on top of each file to say so.
22448 # So let's grep whole file.
22449 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22450 dirpart=`(dirname "$mf") 2>/dev/null ||
22451$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22452 X"$mf" : 'X\(//\)[^/]' \| \
22453 X"$mf" : 'X\(//\)$' \| \
22454 X"$mf" : 'X\(/\)' \| \
22455 . : '\(.\)' 2>/dev/null ||
22456echo X"$mf" |
22457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22459 /^X\(\/\/\)$/{ s//\1/; q; }
22460 /^X\(\/\).*/{ s//\1/; q; }
22461 s/.*/./; q'`
22462 else
22463 continue
22464 fi
22465 # Extract the definition of DEPDIR, am__include, and am__quote
22466 # from the Makefile without running `make'.
22467 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22468 test -z "$DEPDIR" && continue
22469 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22470 test -z "am__include" && continue
22471 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22472 # When using ansi2knr, U may be empty or an underscore; expand it
22473 U=`sed -n 's/^U = //p' < "$mf"`
22474 # Find all dependency output files, they are included files with
22475 # $(DEPDIR) in their names. We invoke sed twice because it is the
22476 # simplest approach to changing $(DEPDIR) to its actual value in the
22477 # expansion.
22478 for file in `sed -n "
22479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22481 # Make sure the directory exists.
22482 test -f "$dirpart/$file" && continue
22483 fdir=`(dirname "$file") 2>/dev/null ||
22484$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485 X"$file" : 'X\(//\)[^/]' \| \
22486 X"$file" : 'X\(//\)$' \| \
22487 X"$file" : 'X\(/\)' \| \
22488 . : '\(.\)' 2>/dev/null ||
22489echo X"$file" |
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492 /^X\(\/\/\)$/{ s//\1/; q; }
22493 /^X\(\/\).*/{ s//\1/; q; }
22494 s/.*/./; q'`
22495 { if $as_mkdir_p; then
22496 mkdir -p $dirpart/$fdir
22497 else
22498 as_dir=$dirpart/$fdir
22499 as_dirs=
22500 while test ! -d "$as_dir"; do
22501 as_dirs="$as_dir $as_dirs"
22502 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22503$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22504 X"$as_dir" : 'X\(//\)[^/]' \| \
22505 X"$as_dir" : 'X\(//\)$' \| \
22506 X"$as_dir" : 'X\(/\)' \| \
22507 . : '\(.\)' 2>/dev/null ||
22508echo X"$as_dir" |
22509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22511 /^X\(\/\/\)$/{ s//\1/; q; }
22512 /^X\(\/\).*/{ s//\1/; q; }
22513 s/.*/./; q'`
22514 done
22515 test ! -n "$as_dirs" || mkdir $as_dirs
22516 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22517echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22518 { (exit 1); exit 1; }; }; }
22519
22520 # echo "creating $dirpart/$file"
22521 echo '# dummy' > "$dirpart/$file"
22522 done
22523done
22524 ;;
22525 esac
22526done
22527_ACEOF
22528
22529cat >>$CONFIG_STATUS <<\_ACEOF
22530
22531{ (exit 0); exit 0; }
22532_ACEOF
22533chmod +x $CONFIG_STATUS
22534ac_clean_files=$ac_clean_files_save
22535
22536
22537# configure is writing to config.log, and then calls config.status.
22538# config.status does its own redirection, appending to config.log.
22539# Unfortunately, on DOS this fails, as config.log is still kept open
22540# by configure, so config.status won't be able to write to it; its
22541# output is simply discarded. So we exec the FD to /dev/null,
22542# effectively closing config.log, so it can be properly (re)opened and
22543# appended to by config.status. When coming back to configure, we
22544# need to make the FD available again.
22545if test "$no_create" != yes; then
22546 ac_cs_success=:
22547 ac_config_status_args=
22548 test "$silent" = yes &&
22549 ac_config_status_args="$ac_config_status_args --quiet"
22550 exec 5>/dev/null
22551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22552 exec 5>>config.log
22553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22554 # would make configure fail if this is the last instruction.
22555 $ac_cs_success || { (exit 1); exit 1; }
22556fi
22557